Prev: AC41 Up: Map Next: ACCC
ACA6: Copy Display Data To Display Buffer
Used by the routine at AB52.
Copies display data from the character data structure to the display buffer at AAA8. If bit 6 of E is set, copies from offset 04; if bit 7 is set, copies from offset 0E. Always sets bit 0 of the return value.
Input
E Flags (bits 6 and 7 indicate which display data set to copy)
Output
A Bit 0 is set if data was copied
CopyDisplayDataToDisplayBuffer ACA6 BIT 6,E
ACA8 JR Z,CopyDisplayDataToDisplayBuffer_0
ACAA RES 6,E
ACAC PUSH DE
ACAD LD DE,$0004
ACB0 JR CopyDisplayDataToDisplayBuffer_1
CopyDisplayDataToDisplayBuffer_0 ACB2 BIT 7,E
ACB4 RET Z
ACB5 RES 7,E
ACB7 PUSH DE
ACB8 LD DE,$000E
CopyDisplayDataToDisplayBuffer_1 ACBB PUSH IY
ACBD POP HL
ACBE ADD HL,DE
ACBF LD DE,$AAA8
ACC2 EX DE,HL
ACC3 LD BC,$000A
ACC6 LDIR
ACC8 POP DE
ACC9 OR $01
ACCB RET
Prev: AC41 Up: Map Next: ACCC