...
Code Block |
---|
; Address $C0BF, or offset $00BF in SPELL.63 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 $07 ; D6 07 ...relative to running bank (3F, or SPELL.63) 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 |
...