Prev: FC43 Up: Map Next: FC57
FC46: Generate the table of mirrored values of 0x00-0xFF
Used by the routines at F8AE and FC6A. Generates the table of mirrored values of 0x00-0xFF at 7E00.
FC46 LD HL,$7E00 Point HL at the first slot in the table
FC49 LD A,L A=byte that will be mirrored
FC4A LD BC,$0800 B=8, C=0
FC4D RLCA Generate the mirror byte in C
FC4E RR C
FC50 DJNZ $FC4D
FC52 LD (HL),C Store the mirror byte
FC53 INC L Point HL at the next slot in the table
FC54 JR NZ,$FC49 Jump back until the table is complete
FC56 RET
Prev: FC43 Up: Map Next: FC57