Routines
Prev:
64579
Up:
Map
Next:
64599
64582: Generate the table of mirrored values of 0-255
Used by the routines at
63662
and
64618
. Generates the table of mirrored values of 0-255 at
32256
.
64582
LD HL,32256
Point
HL
at the first slot in the table
64585
LD A,L
A
=byte that will be mirrored
64586
LD BC,2048
B
=8,
C
=0
64589
RLCA
Generate the mirror byte in
C
64590
RR C
64592
DJNZ 64589
64594
LD (HL),C
Store the mirror byte
64595
INC L
Point
HL
at the next slot in the table
64596
JR NZ,64585
Jump back until the table is complete
64598
RET
Prev:
64579
Up:
Map
Next:
64599