Prev: 90E0 Up: Map Next: 910D
90F0: PR_CHR
Used by the routine at main_routine.
PR_CHR 90F0 LD A,(ROMP) read ROMP into A
90F3 LD HL,W_TAB set HL to W_TAB
90F6 LD D,$00 get address of desired entry in table of pointers to character sprite data by doubling A to and adding to address of table
90F8 SLA A
90FA LD E,A
90FB ADD HL,DE
90FC LD C,(HL) read the table entry and store in C_DATA
90FD INC HL
90FE LD B,(HL)
90FF LD (C_DATA),BC
9103 LD HL,(POSPRI) copy POSPRI to LC_POS
9106 LD (LC_POS),HL
9109 CALL P_CHAR call P_CHAR then return
910C RET
Prev: 90E0 Up: Map Next: 910D