Blame | Last modification | View Log | Download
# file opened: relocation_transitive_equ.asm1 0000 ORG $10002 1000 RELOCATE_START3 1000 ASSERT 2 * relocate_count == relocate_size4 1000 ASSERT 1 == relocate_count5 1000 01 00 dw relocate_count6 1002 02 00 dw relocate_size7 10048 1004 reloc1:9 100410 1004 equRel EQU reloc1 + $020311 1004 equNoRel EQU reloc2 - reloc112 1004 equAbs EQU absolute113 1004 equNoRel2 EQU reloc1 * 3 ; can't be easily relocated by "+offset" - silent drop of flag14 100415 1004 21 07 12 ld hl,equRel ; to be relocated16 1007 11 12 00 ld de,equNoRel ; not affected by relocation17 100A 01 DC 17 ld bc,equAbs ; not affected by relocationrelocation_transitive_equ.asm(18): warning[reldiverts]: Expression can't be relocated by simple "+offset" mechanics, value diverts differently.18 100D 21 0E 24 ld hl,equRel*2 ; affected but not relocated (invalid difference) (warning)19 1010 11 0E 24 ld de,equRel*2 ; reldiverts-ok ; suppressed warning20 1013 01 0C 30 ld bc,equNoRel2 ; not affected by relocation21 101622 1016 reloc2:23 1016 RELOCATE_END24 101625 1016 ; no relocation area (no warnings, no relocation data)26 1016 ORG $17DC27 17DC absolute1:28 17DC 21 07 12 ld hl,equRel29 17DF 11 12 00 ld de,equNoRel30 17E2 01 DC 17 ld bc,equAbs31 17E5 21 0E 24 ld hl,equRel*232 17E8 01 0C 30 ld bc,equNoRel233 17EB34 17EB 05 10 RELOCATE_TABLE35 17ED36 17ED ASSERT 0 == 037 17ED ASSERT 1 == 138 17ED# file closed: relocation_transitive_equ.asmValue Label------ - -----------------------------------------------------------0x17DC absolute10x17DC equAbs0x0012 equNoRel0x300C equNoRel20x1207 equRel0x1004 reloc10x1016 reloc20x0001 relocate_count0x0002 relocate_size