Blame | Last modification | View Log | Download
# file opened: relocation_issue_with_max_count.asm1 0000 ; the forward reference to reloc_label2 without knowing it's relocatable does cause2 0000 ; "reloc_label2-reloc_label" to be reported as one more thing to relocate in pass 13 0000 ; thus the max_count is then 2 when pass 1 is finished = bug in early prototype4 0000 ORG $12345 12346 1234 RELOCATE_START7 12348 1234 ASSERT 2 * relocate_count == relocate_size9 1234 ASSERT 1 == relocate_count10 1234 01 00 dw relocate_count11 1236 02 00 dw relocate_size12 123813 1238 reloc_label:14 1238 21 38 12 ld hl,reloc_label ; relocation needed15 123B 01 06 00 ld bc,reloc_label2-reloc_label ; no relocation16 123E17 123E reloc_label2:18 123E19 123E RELOCATE_END20 123E21 123E 39 12 RELOCATE_TABLE22 124023 1240 ASSERT 0 == 024 1240 ASSERT 0 == 025 1240# file closed: relocation_issue_with_max_count.asmValue Label------ - -----------------------------------------------------------0x1238 reloc_label0x123E reloc_label20x0001 relocate_count0x0002 relocate_size