Prev: C047 Up: Map Next: C0B1
C093: Get ATTR(H (pixel_y),L (pixel_x) ) in A
Used by the routines at Wally_Handler and Demo.
Input
HL Position(Y,X)
Output
A=ATTR(pixel_HY, pixel_LX) C093 PUSH HL
C094 PUSH DE
C095 SRL L
C097 SRL H
C099 SRL L
C09B SRL H
C09D SRL L
C09F SRL H
C0A1 LD D,$58
C0A3 LD E,L
C0A4 LD L,H
C0A5 LD H,$00
C0A7 ADD HL,HL
C0A8 ADD HL,HL
C0A9 ADD HL,HL
C0AA ADD HL,HL
C0AB ADD HL,HL
C0AC ADD HL,DE
C0AD LD A,(HL)
C0AE POP DE
C0AF POP HL
C0B0 RET
Prev: C047 Up: Map Next: C0B1