Blame | Last modification | View Log | Download
# file opened: relocation_0000_region.asm1 0000 ; the implementation is providing alternate label values being offset by -0x02012 0000 ; to their real value. This test does try relocation blocks near beginnging and end3 0000 ; of memory regions to verify that there is no connection between the -0x201 offset4 0000 ; and assembling results (there should not be).5 00006 0000 ORG 07 0000 RELOCATE_START8 0000 02 00 label1: DW label29 0002 21 00 00 label2: ld hl,label110 0005 ED 5B 00 00 ld de,(label1)11 0009 01 02 00 ld bc,label2 - label112 000C CD 00 00 call label113 000F CF rst $0814 001015 0010 00 00 03 00 RELOCATE_TABLE ; first copy of relocate table15 0014 07 00 0D 0015 0018 F9 FF FD FF15 001C 00 0016 001E17 001E ; try ORG within the same block, try end region of memory18 001E ORG $FFF819 FFF8 C3 02 00 label3: jp label220 FFFB F8 FF dw label3 - label121 FFFD F8 FF dw label322 FFFF ; check crossing memory limit by instruction in relocation block23 FFFF ; this emits "incosistent warning" because the table was already emitted24 FFFF ; but with truncated 0x0000 value, while the new value to be inserted25 FFFF ; is 0x10000relocation_0000_region.asm(26): warning: Relocation table seems internally inconsistent: table content differs in last passrelocation_0000_region.asm(26): warning: RAM limit exceeded 0x10000 by ORG26 FFFF CD F8 FF call label327 0002 RELOCATE_END28 000229 0002 ; second copy of relocation table, make it fill memory up to 64kiB boundary30 0002 ORG $10000 - relocate_size31 FFF2 00 00 03 00 RELOCATE_TABLE31 FFF6 07 00 0D 0031 FFFA F9 FF FD FF31 FFFE 00 0032 000033 0000 ; third copy of relocation table, make it leak 1B beyond 0x1000034 0000 ORG $10000 - relocate_size + 1relocation_0000_region.asm(35): warning: RAM limit exceeded 0x10000 by ORG35 FFF3 00 00 03 00 RELOCATE_TABLE35 FFF7 07 00 0D 0035 FFFB F9 FF FD FF35 FFFF 00 0036 0001# file closed: relocation_0000_region.asmValue Label------ - -----------------------------------------------------------0x0000 label10x0002 label20xFFF8 label30x0007 X relocate_count0x000E relocate_size