Blame | Last modification | View Log | Download
# file opened: relocation_simple.asm1 0000 ORG $10002 1000 RELOCATE_START3 10004 1000 ASSERT 2 * relocate_count == relocate_size5 1000 ASSERT 3 == relocate_count6 1000 0B 10 0E 10 RELOCATE_TABLE ; should emit the three addresses of opcode data:6 1004 12 107 1006 ; $100B, $100E, $10128 10069 1006 03 00 dw relocate_count10 1008 06 00 dw relocate_size11 100A relocatable_label: ; usage of this label should trigger relocation12 100A 21 0A 10 ld hl,relocatable_label ; opcode should be in relocation table13 100D 2A 0A 10 ld hl,(relocatable_label) ; opcode should be in relocation table14 1010 C9 ret15 1011 C3 0A 10 jp relocatable_label ; opcode should be in relocation table16 1014 equ_label equ $100117 1014 21 01 10 ld hl,equ_label ; should be absolute (equ) value (not in relocate data)18 1017 2A 01 10 ld hl,(equ_label) ; should be absolute (equ) address (not in relocate data)19 101A C3 01 10 jp equ_label ; jump to absolute address (not in relocate data)20 101D21 101D RELOCATE_END22 101D# file closed: relocation_simple.asmValue Label------ - -----------------------------------------------------------0x1001 equ_label0x100A relocatable_label0x0003 relocate_count0x0006 relocate_size