by ekimekim · 2w ago · 0 comments
You can also get savings by using the "store and increment HL" combined instruction, which saves time over "inc HL", but this requires you to move from the popped registers into A (this instruction only works with the A register). You can't pop directly into the A register because that pop variant, "pop AF", pops into A plus the hidden flags register which is not helpful.
So it looks like:
pop DE
ld A, D
ld [HL+], A
ld A, E
ld [HL+], ANo comments yet.