Blame | Last modification | View Log | Download
# file opened: relocation_z80n.asm1 0000 OPT --zxnext2 0000 ORG $10003 10004 1000 RELOCATE_START5 10006 1000 ASSERT 2 * relocate_count == relocate_size7 1000 ASSERT 3 == relocate_count8 1000 03 00 dw relocate_count9 1002 06 00 dw relocate_size10 100411 1004 add_r16_imm16:12 1004 ED 34 04 10 add hl,add_r16_imm1613 1008 ED 35 04 10 add de,add_r16_imm1614 100C ED 36 04 10 add bc,add_r16_imm1615 101016 1010 push_imm16:relocation_z80n.asm(17): error: PUSH imm16 is big-endian encoded and can't be part of RELOCATE_TABLE: push push_imm1617 1010 ED 8A 10 10 push push_imm16 ; not suitable for relocation because big-endian encoding18 1014 ; try multi arg variation, it will report two errors for two expressionsrelocation_z80n.asm(19): error: PUSH imm16 is big-endian encoded and can't be part of RELOCATE_TABLE: push 0x1234, push_imm16, 0x2345, push_imm16relocation_z80n.asm(19): error: PUSH imm16 is big-endian encoded and can't be part of RELOCATE_TABLE: push 0x1234, push_imm16, 0x2345, push_imm1619 1014 ED 8A 12 34 push 0x1234, push_imm16, 0x2345, push_imm1619 1018 ED 8A 10 1019 101C ED 8A 23 4519 1020 ED 8A 10 1020 102421 1024 imm8_warnings: ; warning allrelocation_z80n.asm(22): warning[relunstable]: Relocation makes one of the expressions unstable, resulting machine code is not relocatable22 1024 ED 92 10 nextreg high imm8_warnings,arelocation_z80n.asm(23): warning[relunstable]: Relocation makes one of the expressions unstable, resulting machine code is not relocatable23 1027 ED 91 10 34 nextreg high imm8_warnings,$34relocation_z80n.asm(24): warning[relunstable]: Relocation makes one of the expressions unstable, resulting machine code is not relocatable24 102B ED 91 12 10 nextreg $12,high imm8_warningsrelocation_z80n.asm(25): warning[relunstable]: Relocation makes one of the expressions unstable, resulting machine code is not relocatable25 102F ED 27 10 test high imm8_warnings26 103227 1032 RELOCATE_END28 103229 1032 06 10 0A 10 RELOCATE_TABLE29 1036 0E 1030 103831 1038 ;===================================================================================32 1038 ; here comes the copy of all the instructions, but outside of relocation block33 1038 ; but using the labels which are affected by relocation (this should still *NOT*34 1038 ; add to the relocation table, as instructions are outside of relocation block)35 1038 ; and thus this should also *NOT* warn about unstable relocation.36 1038 ;===================================================================================37 103838 1038 ;add_r16_imm16:39 1038 ED 34 04 10 add hl,add_r16_imm1640 103C ED 35 04 10 add de,add_r16_imm1641 1040 ED 36 04 10 add bc,add_r16_imm1642 104443 1044 ;push_imm16:44 1044 ED 8A 10 10 push push_imm16 ; not suitable for relocation because big-endian encoding45 1048 ; multi arg variation46 1048 ED 8A 12 34 push 0x1234, push_imm16, 0x2345, push_imm1646 104C ED 8A 10 1046 1050 ED 8A 23 4546 1054 ED 8A 10 1047 105848 1058 ;imm8_warnings:49 1058 ED 92 10 nextreg high imm8_warnings,a50 105B ED 91 10 34 nextreg high imm8_warnings,$3451 105F ED 91 12 10 nextreg $12,high imm8_warnings52 1063 ED 27 10 test high imm8_warnings53 106654 1066 06 10 0A 10 RELOCATE_TABLE54 106A 0E 1055 106C56 106C ASSERT 3 == 357 106C ASSERT 4 == 458 106C# file closed: relocation_z80n.asmValue Label------ - -----------------------------------------------------------0x1004 add_r16_imm160x1024 imm8_warnings0x1010 push_imm160x0003 relocate_count0x0006 relocate_size