Prev: 6D3C Up: Map Next: 6D76
6D49: Converts a stored position to address of top bit of DF & ATTR.
Used by the routine at Vector_Main.
Input
IX Ptr to Y,X pos stored values.
ConvertPosToScr 6D49 LD A,(IX+$01)
6D4C RRA
6D4D RRA
6D4E RRA
6D4F AND $1F
6D51 LD L,A
6D52 LD A,(IX+$00)
6D55 RLCA
6D56 RLCA
6D57 LD H,A
6D58 AND $E0
6D5A OR L
6D5B LD L,A
6D5C LD E,A
6D5D LD A,H
6D5E AND $03
6D60 LD H,A
6D61 RLA
6D62 RLA
6D63 RLA
6D64 LD D,A
6D65 LD A,(IX+$00)
6D68 AND $07
6D6A OR D
6D6B LD D,A
6D6C LD BC,$5800
6D6F ADD HL,BC
6D70 EX DE,HL
6D71 LD BC,$4000
6D74 ADD HL,BC
6D75 RET
Prev: 6D3C Up: Map Next: 6D76