Blame | Last modification | View Log | Download
# file opened: relocation_only_desired_offset.asm1 0000 ORG $10002 1000 RELOCATE_START3 1000 ASSERT 2 * relocate_count == relocate_size4 1000 ASSERT 2 == relocate_count5 1000 02 00 dw relocate_count6 1002 04 00 dw relocate_size7 10048 1004 reloc1:9 1004 21 04 10 ld hl,reloc1 ; to be relocated10 1007 11 16 10 ld de,reloc2 ; to be relocated11 100A 01 12 00 ld bc,reloc2-reloc1 ; not affected by relocation12 100D 31 DC 17 ld sp,absolute1 ; not affected by relocationrelocation_only_desired_offset.asm(13): warning[reldiverts]: Expression can't be relocated by simple "+offset" mechanics, value diverts differently.13 1010 21 2C 20 ld hl,reloc2*2 ; affected but not relocated (invalid difference) (warning)14 1013 21 2C 20 ld hl,reloc2*2 ; reldiverts-ok ; warning suppressed15 101616 1016 reloc2:17 1016 RELOCATE_END18 101619 1016 ; no relocation area (no warnings, no relocation data)20 1016 ORG $17DC21 17DC absolute1:22 17DC 21 04 10 ld hl,reloc123 17DF 11 16 10 ld de,reloc224 17E2 01 12 00 ld bc,reloc2-reloc125 17E5 31 DC 17 ld sp,absolute126 17E8 21 2C 20 ld hl,reloc2*227 17EB28 17EB 05 10 08 10 RELOCATE_TABLE29 17EF30 17EF ASSERT 0 == 031 17EF ASSERT 1 == 132 17EF# file closed: relocation_only_desired_offset.asmValue Label------ - -----------------------------------------------------------0x17DC absolute10x1004 reloc10x1016 reloc20x0002 relocate_count0x0004 relocate_size