Dun Darach | Routines |
Prev: 94A8 | Up: Map |
Used by the routine at Bg_CalcAndDraw.
|
|||||||
A description string can contain a reference to another inner sub-string.
The draw engine will use this inner string until complete before returning to the original string.
|
|||||||
Bg_UseInnerStr | 9500 | SUB $DD | Offset reference value to true string index. | ||||
9502 | LD L,A | convert into address within table. | |||||
9503 | LD H,$00 | ||||||
9505 | ADD HL,HL | ||||||
9506 | LD DE,PtrTble_BgStr | ||||||
9509 | ADD HL,DE | ||||||
950A | LD E,(HL) | Get pointer, to string, from table. | |||||
950B | INC HL | ||||||
950C | LD D,(HL) | ||||||
950D | PUSH IX | ||||||
950F | PUSH DE | ||||||
9510 | POP IX | ||||||
9512 | LD HL,($92D9) | ||||||
9515 | PUSH HL | ||||||
9516 | LD HL,($92DB) | ||||||
9519 | PUSH HL | ||||||
951A | LD C,(IX+$00) | ||||||
951D | CALL Bg_CalcAndDraw_15 | ||||||
9520 | POP HL | ||||||
9521 | LD ($92DB),HL | ||||||
9524 | POP HL | ||||||
9525 | LD ($92D9),HL | ||||||
9528 | POP IX | ||||||
952A | POP BC | ||||||
952B | JP Bg_CalcAndDraw_14 |
Prev: 94A8 | Up: Map |