[A83] ex af,af'


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

[A83] ex af,af'




What is the difference between

   push af
   ld a,d
   lcddata
   pop af

and:

   ex af,af'
   ld a,d
   lcddata
   ex af,af'

excluding the fact that the value in af' gets lost? As interrupts are =
disabled, I figured that the latter could work just like the first one, =
but I was mistaken. If I use the ex af,af' method of preserving a, the =
rle decoding routine that it is part of decodes the image erroneously =
SOMETIMES. The decoder's function gets unreliable. How can this be?

/Jens





Follow-Ups: References: