[A83] Re: ugly symbols with an directory list


[Prev][Next][Index][Thread]

[A83] Re: ugly symbols with an directory list



> I tried to use:
> 
> // on top:
> #define blieb 8400h
> 
> 
> ld (blieb),a
> ld    a,(skipcounter) ;new
> dec   a                ;new ;is skipcounter=1?
> jr    nz,badprog       ;new ;if no, skip this program
> ld a,(blieb)

Have you really read the code I posted? What do you think why do I
restore the accumulator BEFORE the jump? Use your head.

> ld (tempvar),a
> ld a,(skipcounter)
> dec a ; is skipcounter=1?
> ld a,(tempvar) ; (you can do this, because it doesn't affect the flags)
> jr nz,badprog ; if no, skip this program

PG

-- 
http://www.fastmail.fm - Or how I learned to stop worrying and
                          love email again



References: