EBFF: Renders a string
menu_draw_string |
EBFF |
LD C,(HL) |
|
EC00 |
RL C |
|
EC02 |
EX AF,AF' |
|
EC03 |
SRL C |
|
EC05 |
INC HL |
|
EC06 |
LD E,(HL) |
|
EC07 |
INC HL |
|
EC08 |
LD D,(HL) |
|
EC09 |
INC HL |
|
EC0A |
PUSH HL |
|
EC0B |
LD A,D |
|
EC0C |
RRA |
|
EC0D |
RRA |
|
EC0E |
RRA |
|
EC0F |
AND $03 |
|
EC11 |
ADD A,$58 |
|
EC13 |
LD H,A |
|
EC14 |
LD L,E |
|
EC15 |
EXX |
|
EC16 |
EX (SP),HL |
|
EC17 |
PUSH DE |
|
EC18 |
PUSH BC |
menu_draw_string_loop |
EC19 |
LD A,(HL) |
|
EC1A |
AND $7F |
|
EC1C |
PUSH HL |
|
EC1D |
CALL menu_draw_char |
|
EC20 |
POP HL |
|
EC21 |
BIT 7,(HL) |
|
EC23 |
INC HL |
|
EC24 |
JR Z,menu_draw_string_loop |
|
EC26 |
EXX |
|
EC27 |
POP BC |
|
EC28 |
POP DE |
|
EC29 |
POP HL |
|
EC2A |
EXX |
|
EC2B |
RET |