...
Patched code location 1:
Code Block | ||
---|---|---|
| ||
; Address $C1B6, or offset $01B6 in SPELL.62 LD A, (IX+0) ; DD 7E 00 Retrieve dictionary bank value from IX SRL A ; CB 3F SRL A ; CB 3F SRL A ; CB 3F SRL A ; CB 3F SRL A ; CB 3F Divide it by 32 NOP ; 00 NOP ; 00 NOP ; 00 LD C, $03 ; 0E 03 OZ OS_Mgb ; E7 5A Get bank bound to segment 3 (running bank), stored in B ADD A, B ; 80 Calculate target dictionary bank address... SUB $06 ; D6 06 ...relative to running bank (3E, or SPELL.62) NOP ; 00 LD ($1F84), A ; 32 84 1F Store target dictionary bank address LD L, (IX+1) ; DD 6E 01 LD H, (IX+2) ; DD 66 02 LD ($1F82), HL ; 22 82 1F Store position in full dictionary? LD C, $02 ; 0E 02 LD B, A ; 47 OZ OS_Mpb ; E7 5D Bind target dictionary bank to segment 2 SCF ; 37 CCF ; 3F RET ; C9 Return |
...