From cd2b29395d7881d7e8e8e8f07eeb52c380d1bb98 Mon Sep 17 00:00:00 2001 From: Stephane Carrez Date: Tue, 13 Aug 2002 22:45:22 +0000 Subject: [PATCH] * gas/m68hc11/all.exp: Run the new test. * gas/m68hc11/insns12.s: New file to test specific 68HC12 insns. * gas/m68hc11/insns12.d: New file. * gas/m68hc11/branchs12.s: New test. * gas/m68hc11/branchs12.d: New test. * gas/m68hc11/all_insns.d: Dump the relocs to verify that they are against symbols and not sections (for linker relaxation). * gas/m68hc11/insns-dwarf2.d: Likewise. * gas/m68hc11/insns.d: Likewise. * gas/m68hc11/lbranch.d: Likewise. * gas/m68hc11/lbranch-dwarf2.d: Likewise. * gas/m68hc11/opers12.d: Likewise. * gas/m68hc11/opers12-dwarf2.d: Likewise. --- gas/testsuite/ChangeLog | 17 + gas/testsuite/gas/m68hc11/all.exp | 4 +- gas/testsuite/gas/m68hc11/all_insns.d | 834 ++++++++++++--------- gas/testsuite/gas/m68hc11/branchs12.d | 225 ++++++ gas/testsuite/gas/m68hc11/branchs12.s | 111 +++ gas/testsuite/gas/m68hc11/insns-dwarf2.d | 16 +- gas/testsuite/gas/m68hc11/insns.d | 93 ++- gas/testsuite/gas/m68hc11/insns12.d | 85 +++ gas/testsuite/gas/m68hc11/insns12.s | 71 ++ gas/testsuite/gas/m68hc11/lbranch-dwarf2.d | 36 +- gas/testsuite/gas/m68hc11/lbranch.d | 73 +- gas/testsuite/gas/m68hc11/opers12-dwarf2.d | 36 +- gas/testsuite/gas/m68hc11/opers12.d | 200 ++--- 13 files changed, 1265 insertions(+), 536 deletions(-) create mode 100644 gas/testsuite/gas/m68hc11/branchs12.d create mode 100644 gas/testsuite/gas/m68hc11/branchs12.s create mode 100644 gas/testsuite/gas/m68hc11/insns12.d create mode 100644 gas/testsuite/gas/m68hc11/insns12.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 924865690c..0c8718c885 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,20 @@ +2002-08-13 Stephane Carrez + + * gas/m68hc11/all.exp: Run the new test. + * gas/m68hc11/insns12.s: New file to test specific 68HC12 insns. + * gas/m68hc11/insns12.d: New file. + * gas/m68hc11/branchs12.s: New test. + * gas/m68hc11/branchs12.d: New test. + + * gas/m68hc11/all_insns.d: Dump the relocs to verify that they + are against symbols and not sections (for linker relaxation). + * gas/m68hc11/insns-dwarf2.d: Likewise. + * gas/m68hc11/insns.d: Likewise. + * gas/m68hc11/lbranch.d: Likewise. + * gas/m68hc11/lbranch-dwarf2.d: Likewise. + * gas/m68hc11/opers12.d: Likewise. + * gas/m68hc11/opers12-dwarf2.d: Likewise. + 2002-08-12 Richard Sandiford * gas/mips/elf-consthilo.[sd]: New test. diff --git a/gas/testsuite/gas/m68hc11/all.exp b/gas/testsuite/gas/m68hc11/all.exp index 9fe5bf466d..a31ec91715 100644 --- a/gas/testsuite/gas/m68hc11/all.exp +++ b/gas/testsuite/gas/m68hc11/all.exp @@ -21,4 +21,6 @@ run_dump_test malis # Some 68HC12 tests run_dump_test opers12 -run_dump_test opers12-dwarf2 \ No newline at end of file +run_dump_test opers12-dwarf2 +run_dump_test branchs12 +run_dump_test insns12 diff --git a/gas/testsuite/gas/m68hc11/all_insns.d b/gas/testsuite/gas/m68hc11/all_insns.d index adb516cb7a..3531b3a576 100644 --- a/gas/testsuite/gas/m68hc11/all_insns.d +++ b/gas/testsuite/gas/m68hc11/all_insns.d @@ -1,4 +1,4 @@ -#objdump: -d --prefix-addresses +#objdump: -d --prefix-addresses --reloc #as: -m68hc11 #name: all_insns @@ -7,346 +7,494 @@ .*: +file format elf32\-m68hc11 Disassembly of section .text: -0+000 aba -0+001 abx -0+002 aby -0+004 adca #103 -0+006 adca \*0+000 -0+008 adca 105,x -0+00a adca 0+000 -0+00d adca 81,x -0+00f adcb #255 -0+011 adcb \*0+000 -0+013 adcb 236,x -0+015 adcb 0+000 -0+018 adcb 205,x -0+01a adda #186 -0+01c adda \*0+000 -0+01e adda 242,x -0+020 adda 0+000 -0+023 adda 227,x -0+025 addb #70 -0+027 addb \*0+000 -0+029 addb 194,x -0+02b addb 0+000 -0+02e addb 248,x -0+030 addd #0000231b -0+033 addd \*0+000 -0+035 addd 231,x -0+037 addd 0+000 -0+03a addd 118,x -0+03c anda #90 -0+03e anda \*0+000 -0+040 anda 99,x -0+042 anda 0+000 -0+045 anda 159,x -0+047 andb #201 -0+049 andb \*0+000 -0+04b andb 102,x -0+04d andb 0+000 -0+050 andb 13,x -0+052 asl 183,x -0+054 asl 0+000 -0+057 asl 88,x -0+059 asla -0+05a aslb -0+05b asld -0+05c asr 163,x -0+05e asr 0+000 -0+061 asr 37,x -0+063 asra -0+064 asrb -0+065 bcs 0+06a -0+067 jmp 0+0f3 -0+06a bclr \*0+000 #\$00 -0+06d bclr 88,x #\$00 -0+070 bclr 94,x #\$00 -0+073 bcc 0+078 -0+075 jmp 0+1a8 -0+078 bne 0+07d -0+07a jmp 0+1b6 -0+07d blt 0+082 -0+07f jmp 0+1f5 -0+082 ble 0+087 -0+084 jmp 0+1e4 -0+087 bls 0+08c -0+089 jmp 0+18a -0+08c bcs 0+091 -0+08e jmp 0+1bb -0+091 bita #84 -0+093 bita \*0+000 -0+095 bita 14,x -0+097 bita 0+000 -0+09a bita 116,x -0+09c bitb #65 -0+09e bitb \*0+000 -0+0a0 bitb 61,x -0+0a2 bitb 0+000 -0+0a5 bitb 135,x -0+0a7 ble 0+11d -0+0a9 bcc 0+0ae -0+0ab jmp 0+22e -0+0ae bls 0+097 -0+0b0 bge 0+0b5 -0+0b2 jmp 0+197 -0+0b5 bmi 0+09e -0+0b7 beq 0+0bc -0+0b9 jmp 0+220 -0+0bc bmi 0+0c1 -0+0be jmp 0+24e -0+0c1 bra 0+106 -0+0c3 brclr \*0+000 #\$00 0+145 -0+0c7 brclr 151,x #\$00 0+127 -0+0cb brclr 107,x #\$00 0+0de -0+0cf brn 0+082 -0+0d1 brset \*0+000 #\$00 0+141 -0+0d5 brset 176,x #\$00 0+154 -0+0d9 brset 50,x #\$00 0+119 -0+0dd bset \*0+000 #\$00 -0+0e0 bset 24,x #\$00 -0+0e3 bset 92,x #\$00 -0+0e6 jsr 0+037 -0+0e9 bvs 0+0ee -0+0eb jmp 0+253 -0+0ee bvs 0+0a2 -0+0f0 cba -0+0f1 clc -0+0f2 cli -0+0f3 clr 251,x -0+0f5 clr 0+000 -0+0f8 clr 170,x -0+0fa clra -0+0fb clrb -0+0fc clv -0+0fd cmpa #58 -0+0ff cmpa \*0+000 -0+101 cmpa 41,x -0+103 cmpa 0+000 -0+106 cmpa 230,x -0+108 cmpb #5 -0+10a cmpb \*0+000 -0+10c cmpb 124,x -0+10e cmpb 0+000 -0+111 cmpb 117,x -0+113 cpd #0+fd8 -0+117 cpd \*0+000 -0+11a cpd 97,x -0+11d cpd 0+000 -0+121 cpd 249,x -0+124 cpx #0000af5c -0+127 cpx \*0+000 -0+129 cpx 168,x -0+12b cpx 0+000 -0+12e cpx 15,x -0+130 cpy #00004095 -0+134 cpy \*0+000 -0+137 cpy 235,x -0+13a cpy 0+000 -0+13e cpy 179,x -0+141 com 5,x -0+143 com 0+000 -0+146 com 247,x -0+148 coma -0+149 comb -0+14a cpd #0000bf00 -0+14e cpd \*0+000 -0+151 cpd 161,x -0+154 cpd 0+000 -0+158 cpd 229,x -0+15b cpx #00008fca -0+15e cpx \*0+000 -0+160 cpx 203,x -0+162 cpx 0+000 -0+165 cpx 72,x -0+167 cpy #0+247 -0+16b cpy \*0+000 -0+16e cpy 189,x -0+171 cpy 0+000 -0+175 cpy 35,x -0+178 daa -0+179 dec 30,x -0+17b dec 0+000 -0+17e dec 28,x -0+180 deca -0+181 decb -0+182 des -0+183 dex -0+184 dey -0+186 eora #123 -0+188 eora \*0+000 -0+18a eora 197,x -0+18c eora 0+000 -0+18f eora 115,x -0+191 eorb #90 -0+193 eorb \*0+000 -0+195 eorb 94,x -0+197 eorb 0+000 -0+19a eorb 121,x -0+19c fdiv -0+19d idiv -0+19e inc 99,x -0+1a0 inc 0+000 -0+1a3 inc 112,x -0+1a5 inca -0+1a6 incb -0+1a7 ins -0+1a8 inx -0+1a9 iny -0+1ab jmp 100,x -0+1ad jmp 0+000 -0+1b0 jmp 17,x -0+1b2 jsr \*0+000 -0+1b4 jsr 9,x -0+1b6 jsr 0+000 -0+1b9 jsr 170,x -0+1bb ldaa #212 -0+1bd ldaa \*0+000 -0+1bf ldaa 242,x -0+1c1 ldaa 0+000 -0+1c4 ldaa 16,x -0+1c6 ldab #175 -0+1c8 ldab \*0+000 -0+1ca ldab 51,x -0+1cc ldab 0+000 -0+1cf ldab 227,x -0+1d1 ldd #0000c550 -0+1d4 ldd \*0+000 -0+1d6 ldd 71,x -0+1d8 ldd 0+000 -0+1db ldd 92,x -0+1dd lds #00004fbb -0+1e0 lds \*0+000 -0+1e2 lds 34,x -0+1e4 lds 0+000 -0+1e7 lds 186,x -0+1e9 ldx #0000579b -0+1ec ldx \*0+000 -0+1ee ldx 245,x -0+1f0 ldx 0+000 -0+1f3 ldx 225,x -0+1f5 ldy #0000ac1a -0+1f9 ldy \*0+000 -0+1fc ldy 127,x -0+1ff ldy 0+000 -0+203 ldy 248,x -0+206 asl 41,x -0+208 asl 0+000 -0+20b asl 164,x -0+20d asla -0+20e aslb -0+20f asld -0+210 lsr 27,x -0+212 lsr 0+000 -0+215 lsr 181,x -0+217 lsra -0+218 lsrb -0+219 lsrd -0+21a mul -0+21b neg 202,x -0+21d neg 0+000 -0+220 neg 232,x -0+222 nega -0+223 negb -0+224 nop -0+225 oraa #152 -0+227 oraa \*0+000 -0+229 oraa 56,x -0+22b oraa 0+000 -0+22e oraa 121,x -0+230 orab #77 -0+232 orab \*0+000 -0+234 orab 52,x -0+236 orab 0+000 -0+239 orab 95,x -0+23b psha -0+23c pshb -0+23d pshx -0+23e pshy -0+240 pula -0+241 pulb -0+242 pulx -0+243 puly -0+245 rol 78,x -0+247 rol 0+000 -0+24a rol 250,x -0+24c rola -0+24d rolb -0+24e ror 203,x -0+250 ror 0+000 -0+253 ror 5,x -0+255 rora -0+256 rorb -0+257 rti -0+258 rts -0+259 sba -0+25a sbca #172 -0+25c sbca \*0+000 -0+25e sbca 33,x -0+260 sbca 0+000 -0+263 sbca 170,x -0+265 sbcb #26 -0+267 sbcb \*0+000 -0+269 sbcb 162,x -0+26b sbcb 0+000 -0+26e sbcb 112,x -0+270 sec -0+271 sei -0+272 sev -0+273 staa \*0+000 -0+275 staa 115,x -0+277 staa 0+000 -0+27a staa 4,x -0+27c stab \*0+000 -0+27e stab 211,x -0+280 stab 0+000 -0+283 stab 148,x -0+285 std \*0+000 -0+287 std 175,x -0+289 std 0+000 -0+28c std 240,x -0+28e stop -0+28f sts \*0+000 -0+291 sts 158,x -0+293 sts 0+000 -0+296 sts 50,x -0+298 stx \*0+000 -0+29a stx 73,x -0+29c stx 0+000 -0+29f stx 130,x -0+2a1 sty \*0+000 -0+2a4 sty 169,x -0+2a7 sty 0+000 -0+2ab sty 112,x -0+2ae suba #212 -0+2b0 suba \*0+000 -0+2b2 suba 138,x -0+2b4 suba 0+000 -0+2b7 suba 84,x -0+2b9 subb #72 -0+2bb subb \*0+000 -0+2bd subb 10,x -0+2bf subb 0+000 -0+2c2 subb 213,x -0+2c4 subd #0000f10e -0+2c7 subd \*0+000 -0+2c9 subd 168,x -0+2cb subd 0+000 -0+2ce subd 172,x -0+2d0 swi -0+2d1 tab -0+2d2 tap -0+2d3 tba +0+0+ aba +0+0001 abx +0+0002 aby +0+0004 adca #103 +0+0006 adca \*0+0+ + 7: R_M68HC11_8 Z198 +0+0008 adca 105,x +0+000a adca 0+0+ + b: R_M68HC11_16 symbol115 +0+000d adca 81,x +0+000f adcb #255 +0+0011 adcb \*0+0+ + 12: R_M68HC11_8 Z74 +0+0013 adcb 236,x +0+0015 adcb 0+0+ + 16: R_M68HC11_16 symbol41 +0+0018 adcb 205,x +0+001a adda #186 +0+001c adda \*0+0+ + 1d: R_M68HC11_8 Z171 +0+001e adda 242,x +0+0020 adda 0+0+ + 21: R_M68HC11_16 symbol251 +0+0023 adda 227,x +0+0025 addb #70 +0+0027 addb \*0+0+ + 28: R_M68HC11_8 Z124 +0+0029 addb 194,x +0+002b addb 0+0+ + 2c: R_M68HC11_16 symbol84 +0+002e addb 248,x +0+0030 addd #0+231b +0+0033 addd \*0+0+ + 34: R_M68HC11_8 Z232 +0+0035 addd 231,x +0+0037 addd 0+0+ + 38: R_M68HC11_16 symbol141 +0+003a addd 118,x +0+003c anda #90 +0+003e anda \*0+0+ + 3f: R_M68HC11_8 Z46 +0+0040 anda 99,x +0+0042 anda 0+0+ + 43: R_M68HC11_16 symbol51 +0+0045 anda 159,x +0+0047 andb #201 +0+0049 andb \*0+0+ + 4a: R_M68HC11_8 Z154 +0+004b andb 102,x +0+004d andb 0+0+ + 4e: R_M68HC11_16 symbol50 +0+0050 andb 13,x +0+0052 asl 183,x +0+0054 asl 0+0+ + 55: R_M68HC11_16 symbol49 +0+0057 asl 88,x +0+0059 asla +0+005a aslb +0+005b asld +0+005c asr 163,x +0+005e asr 0+0+ + 5f: R_M68HC11_16 symbol90 +0+0061 asr 37,x +0+0063 asra +0+0064 asrb +0+0065 bcs 0+006a + 65: R_M68HC11_RL_JUMP \*ABS\* +0+0067 jmp 0+0+ + 68: R_M68HC11_16 L93 +0+006a bclr \*0+0+ #\$00 + 6b: R_M68HC11_8 Z5 + 6c: R_M68HC11_8 \$17 +0+006d bclr 88,x #\$00 + 6f: R_M68HC11_8 \$e9 +0+0070 bclr 94,x #\$00 + 72: R_M68HC11_8 \$d4 +0+0073 bcc 0+0078 + 73: R_M68HC11_RL_JUMP \*ABS\* +0+0075 jmp 0+0+ + 76: R_M68HC11_16 L171 +0+0078 bne 0+007d + 78: R_M68HC11_RL_JUMP \*ABS\* +0+007a jmp 0+0+ + 7b: R_M68HC11_16 L178 +0+007d blt 0+0082 + 7d: R_M68HC11_RL_JUMP \*ABS\* +0+007f jmp 0+0+ + 80: R_M68HC11_16 L205 +0+0082 ble 0+0087 + 82: R_M68HC11_RL_JUMP \*ABS\* +0+0084 jmp 0+0+ + 85: R_M68HC11_16 L198 +0+0087 bls 0+008c + 87: R_M68HC11_RL_JUMP \*ABS\* +0+0089 jmp 0+0+ + 8a: R_M68HC11_16 L155 +0+008c bcs 0+0091 + 8c: R_M68HC11_RL_JUMP \*ABS\* +0+008e jmp 0+0+ + 8f: R_M68HC11_16 L180 +0+0091 bita #84 +0+0093 bita \*0+0+ + 94: R_M68HC11_8 Z17 +0+0095 bita 14,x +0+0097 bita 0+0+ + 98: R_M68HC11_16 symbol130 +0+009a bita 116,x +0+009c bitb #65 +0+009e bitb \*0+0+ + 9f: R_M68HC11_8 Z33 +0+00a0 bitb 61,x +0+00a2 bitb 0+0+ + a3: R_M68HC11_16 symbol220 +0+00a5 bitb 135,x +0+00a7 ble 0+011d + a7: R_M68HC11_RL_JUMP \*ABS\* +0+00a9 bcc 0+00ae + a9: R_M68HC11_RL_JUMP \*ABS\* +0+00ab jmp 0+0+ + ac: R_M68HC11_16 L233 +0+00ae bls 0+0097 + ae: R_M68HC11_RL_JUMP \*ABS\* +0+00b0 bge 0+00b5 + b0: R_M68HC11_RL_JUMP \*ABS\* +0+00b2 jmp 0+0+ + b3: R_M68HC11_16 L161 +0+00b5 bmi 0+009e + b5: R_M68HC11_RL_JUMP \*ABS\* +0+00b7 beq 0+00bc + b7: R_M68HC11_RL_JUMP \*ABS\* +0+00b9 jmp 0+0+ + ba: R_M68HC11_16 L225 +0+00bc bmi 0+00c1 + bc: R_M68HC11_RL_JUMP \*ABS\* +0+00be jmp 0+0+ + bf: R_M68HC11_16 L252 +0+00c1 bra 0+0106 + c1: R_M68HC11_RL_JUMP \*ABS\* +0+00c3 brclr \*0+0+ #\$00 0+0145 + c3: R_M68HC11_RL_JUMP \*ABS\* + c4: R_M68HC11_8 Z62 + c5: R_M68HC11_8 \$01 +0+00c7 brclr 151,x #\$00 0+0127 + c7: R_M68HC11_RL_JUMP \*ABS\* + c9: R_M68HC11_8 \$ea +0+00cb brclr 107,x #\$00 0+00de + cb: R_M68HC11_RL_JUMP \*ABS\* + cd: R_M68HC11_8 \$96 +0+00cf brn 0+0082 + cf: R_M68HC11_RL_JUMP \*ABS\* +0+00d1 brset \*0+0+ #\$00 0+0141 + d1: R_M68HC11_RL_JUMP \*ABS\* + d2: R_M68HC11_8 Z92 + d3: R_M68HC11_8 \$2a +0+00d5 brset 176,x #\$00 0+0154 + d5: R_M68HC11_RL_JUMP \*ABS\* + d7: R_M68HC11_8 \$3b +0+00d9 brset 50,x #\$00 0+0119 + d9: R_M68HC11_RL_JUMP \*ABS\* + db: R_M68HC11_8 \$af +0+00dd bset \*0+0+ #\$00 + de: R_M68HC11_8 Z84 + df: R_M68HC11_8 \$ec +0+00e0 bset 24,x #\$00 + e2: R_M68HC11_8 \$db +0+00e3 bset 92,x #\$00 + e5: R_M68HC11_8 \$02 +0+00e6 jsr 0+0+ + e6: R_M68HC11_RL_JUMP \*ABS\* + e7: R_M68HC11_16 L26 +0+00e9 bvs 0+00ee + e9: R_M68HC11_RL_JUMP \*ABS\* +0+00eb jmp 0+0+ + ec: R_M68HC11_16 L254 +0+00ee bvs 0+00a2 + ee: R_M68HC11_RL_JUMP \*ABS\* +0+00f0 cba +0+00f1 clc +0+00f2 cli +0+00f3 clr 251,x +0+00f5 clr 0+0+ + f6: R_M68HC11_16 symbol250 +0+00f8 clr 170,x +0+00fa clra +0+00fb clrb +0+00fc clv +0+00fd cmpa #58 +0+00ff cmpa \*0+0+ + 100: R_M68HC11_8 Z251 +0+0101 cmpa 41,x +0+0103 cmpa 0+0+ + 104: R_M68HC11_16 symbol209 +0+0106 cmpa 230,x +0+0108 cmpb #5 +0+010a cmpb \*0+0+ + 10b: R_M68HC11_8 Z60 +0+010c cmpb 124,x +0+010e cmpb 0+0+ + 10f: R_M68HC11_16 symbol148 +0+0111 cmpb 117,x +0+0113 cpd #0+0fd8 +0+0117 cpd \*0+0+ + 119: R_M68HC11_8 Z190 +0+011a cpd 97,x +0+011d cpd 0+0+ + 11f: R_M68HC11_16 symbol137 +0+0121 cpd 249,x +0+0124 cpx #0+af5c +0+0127 cpx \*0+0+ + 128: R_M68HC11_8 Z187 +0+0129 cpx 168,x +0+012b cpx 0+0+ + 12c: R_M68HC11_16 symbol153 +0+012e cpx 15,x +0+0130 cpy #0+4095 +0+0134 cpy \*0+0+ + 136: R_M68HC11_8 Z177 +0+0137 cpy 235,x +0+013a cpy 0+0+ + 13c: R_M68HC11_16 symbol241 +0+013e cpy 179,x +0+0141 com 5,x +0+0143 com 0+0+ + 144: R_M68HC11_16 symbol239 +0+0146 com 247,x +0+0148 coma +0+0149 comb +0+014a cpd #0+bf00 +0+014e cpd \*0+0+ + 150: R_M68HC11_8 Z233 +0+0151 cpd 161,x +0+0154 cpd 0+0+ + 156: R_M68HC11_16 symbol58 +0+0158 cpd 229,x +0+015b cpx #0+8fca +0+015e cpx \*0+0+ + 15f: R_M68HC11_8 Z11 +0+0160 cpx 203,x +0+0162 cpx 0+0+ + 163: R_M68HC11_16 symbol208 +0+0165 cpx 72,x +0+0167 cpy #0+0247 +0+016b cpy \*0+0+ + 16d: R_M68HC11_8 Z100 +0+016e cpy 189,x +0+0171 cpy 0+0+ + 173: R_M68HC11_16 symbol31 +0+0175 cpy 35,x +0+0178 daa +0+0179 dec 30,x +0+017b dec 0+0+ + 17c: R_M68HC11_16 symbol168 +0+017e dec 28,x +0+0180 deca +0+0181 decb +0+0182 des +0+0183 dex +0+0184 dey +0+0186 eora #123 +0+0188 eora \*0+0+ + 189: R_M68HC11_8 Z100 +0+018a eora 197,x +0+018c eora 0+0+ + 18d: R_M68HC11_16 symbol20 +0+018f eora 115,x +0+0191 eorb #90 +0+0193 eorb \*0+0+ + 194: R_M68HC11_8 Z197 +0+0195 eorb 94,x +0+0197 eorb 0+0+ + 198: R_M68HC11_16 symbol75 +0+019a eorb 121,x +0+019c fdiv +0+019d idiv +0+019e inc 99,x +0+01a0 inc 0+0+ + 1a1: R_M68HC11_16 symbol59 +0+01a3 inc 112,x +0+01a5 inca +0+01a6 incb +0+01a7 ins +0+01a8 inx +0+01a9 iny +0+01ab jmp 100,x +0+01ad jmp 0+0+ + 1ad: R_M68HC11_RL_JUMP \*ABS\* + 1ae: R_M68HC11_16 symbol36 +0+01b0 jmp 17,x +0+01b2 jsr \*0+0+ + 1b2: R_M68HC11_RL_JUMP \*ABS\* + 1b3: R_M68HC11_8 Z158 +0+01b4 jsr 9,x +0+01b6 jsr 0+0+ + 1b6: R_M68HC11_RL_JUMP \*ABS\* + 1b7: R_M68HC11_16 symbol220 +0+01b9 jsr 170,x +0+01bb ldaa #212 +0+01bd ldaa \*0+0+ + 1be: R_M68HC11_8 Z172 +0+01bf ldaa 242,x +0+01c1 ldaa 0+0+ + 1c2: R_M68HC11_16 symbol27 +0+01c4 ldaa 16,x +0+01c6 ldab #175 +0+01c8 ldab \*0+0+ + 1c9: R_M68HC11_8 Z59 +0+01ca ldab 51,x +0+01cc ldab 0+0+ + 1cd: R_M68HC11_16 symbol205 +0+01cf ldab 227,x +0+01d1 ldd #0+c550 +0+01d4 ldd \*0+0+ + 1d5: R_M68HC11_8 Z72 +0+01d6 ldd 71,x +0+01d8 ldd 0+0+ + 1d9: R_M68HC11_16 symbol21 +0+01db ldd 92,x +0+01dd lds #0+4fbb +0+01e0 lds \*0+0+ + 1e1: R_M68HC11_8 Z111 +0+01e2 lds 34,x +0+01e4 lds 0+0+ + 1e5: R_M68HC11_16 symbol25 +0+01e7 lds 186,x +0+01e9 ldx #0+579b +0+01ec ldx \*0+0+ + 1ed: R_M68HC11_8 Z125 +0+01ee ldx 245,x +0+01f0 ldx 0+0+ + 1f1: R_M68HC11_16 symbol11 +0+01f3 ldx 225,x +0+01f5 ldy #0+ac1a +0+01f9 ldy \*0+0+ + 1fb: R_M68HC11_8 Z28 +0+01fc ldy 127,x +0+01ff ldy 0+0+ + 201: R_M68HC11_16 symbol35 +0+0203 ldy 248,x +0+0206 asl 41,x +0+0208 asl 0+0+ + 209: R_M68HC11_16 symbol248 +0+020b asl 164,x +0+020d asla +0+020e aslb +0+020f asld +0+0210 lsr 27,x +0+0212 lsr 0+0+ + 213: R_M68HC11_16 symbol19 +0+0215 lsr 181,x +0+0217 lsra +0+0218 lsrb +0+0219 lsrd +0+021a mul +0+021b neg 202,x +0+021d neg 0+0+ + 21e: R_M68HC11_16 symbol78 +0+0220 neg 232,x +0+0222 nega +0+0223 negb +0+0224 nop +0+0225 oraa #152 +0+0227 oraa \*0+0+ + 228: R_M68HC11_8 Z50 +0+0229 oraa 56,x +0+022b oraa 0+0+ + 22c: R_M68HC11_16 symbol224 +0+022e oraa 121,x +0+0230 orab #77 +0+0232 orab \*0+0+ + 233: R_M68HC11_8 Z61 +0+0234 orab 52,x +0+0236 orab 0+0+ + 237: R_M68HC11_16 symbol188 +0+0239 orab 95,x +0+023b psha +0+023c pshb +0+023d pshx +0+023e pshy +0+0240 pula +0+0241 pulb +0+0242 pulx +0+0243 puly +0+0245 rol 78,x +0+0247 rol 0+0+ + 248: R_M68HC11_16 symbol119 +0+024a rol 250,x +0+024c rola +0+024d rolb +0+024e ror 203,x +0+0250 ror 0+0+ + 251: R_M68HC11_16 symbol108 +0+0253 ror 5,x +0+0255 rora +0+0256 rorb +0+0257 rti +0+0258 rts +0+0259 sba +0+025a sbca #172 +0+025c sbca \*0+0+ + 25d: R_M68HC11_8 Z134 +0+025e sbca 33,x +0+0260 sbca 0+0+ + 261: R_M68HC11_16 symbol43 +0+0263 sbca 170,x +0+0265 sbcb #26 +0+0267 sbcb \*0+0+ + 268: R_M68HC11_8 Z85 +0+0269 sbcb 162,x +0+026b sbcb 0+0+ + 26c: R_M68HC11_16 symbol190 +0+026e sbcb 112,x +0+0270 sec +0+0271 sei +0+0272 sev +0+0273 staa \*0+0+ + 274: R_M68HC11_8 Z181 +0+0275 staa 115,x +0+0277 staa 0+0+ + 278: R_M68HC11_16 symbol59 +0+027a staa 4,x +0+027c stab \*0+0+ + 27d: R_M68HC11_8 Z92 +0+027e stab 211,x +0+0280 stab 0+0+ + 281: R_M68HC11_16 symbol54 +0+0283 stab 148,x +0+0285 std \*0+0+ + 286: R_M68HC11_8 Z179 +0+0287 std 175,x +0+0289 std 0+0+ + 28a: R_M68HC11_16 symbol226 +0+028c std 240,x +0+028e stop +0+028f sts \*0+0+ + 290: R_M68HC11_8 Z228 +0+0291 sts 158,x +0+0293 sts 0+0+ + 294: R_M68HC11_16 symbol79 +0+0296 sts 50,x +0+0298 stx \*0+0+ + 299: R_M68HC11_8 Z21 +0+029a stx 73,x +0+029c stx 0+0+ + 29d: R_M68HC11_16 symbol253 +0+029f stx 130,x +0+02a1 sty \*0+0+ + 2a3: R_M68HC11_8 Z78 +0+02a4 sty 169,x +0+02a7 sty 0+0+ + 2a9: R_M68HC11_16 symbol8 +0+02ab sty 112,x +0+02ae suba #212 +0+02b0 suba \*0+0+ + 2b1: R_M68HC11_8 Z178 +0+02b2 suba 138,x +0+02b4 suba 0+0+ + 2b5: R_M68HC11_16 symbol41 +0+02b7 suba 84,x +0+02b9 subb #72 +0+02bb subb \*0+0+ + 2bc: R_M68HC11_8 Z154 +0+02bd subb 10,x +0+02bf subb 0+0+ + 2c0: R_M68HC11_16 symbol188 +0+02c2 subb 213,x +0+02c4 subd #0+f10e +0+02c7 subd \*0+0+ + 2c8: R_M68HC11_8 Z24 +0+02c9 subd 168,x +0+02cb subd 0+0+ + 2cc: R_M68HC11_16 symbol68 +0+02ce subd 172,x +0+02d0 swi +0+02d1 tab +0+02d2 tap +0+02d3 tba ... -0+2d5 tpa -0+2d6 tst 91,x -0+2d8 tst 0+000 -0+2db tst 142,x -0+2dd tsta -0+2de tstb -0+2df tsx -0+2e0 tsy -0+2e2 txs -0+2e3 tys -0+2e5 wai -0+2e6 xgdx -0+2e7 xgdy +0+02d5 tpa +0+02d6 tst 91,x +0+02d8 tst 0+0+ + 2d9: R_M68HC11_16 symbol243 +0+02db tst 142,x +0+02dd tsta +0+02de tstb +0+02df tsx +0+02e0 tsy +0+02e2 txs +0+02e3 tys +0+02e5 wai +0+02e6 xgdx +0+02e7 xgdy diff --git a/gas/testsuite/gas/m68hc11/branchs12.d b/gas/testsuite/gas/m68hc11/branchs12.d new file mode 100644 index 0000000000..682b1ccf05 --- /dev/null +++ b/gas/testsuite/gas/m68hc11/branchs12.d @@ -0,0 +1,225 @@ +#objdump: -d --prefix-addresses --reloc +#as: -m68hc12 +#name: 68HC12 branchs + +.*: +file format elf32\-m68hc12 + +Disassembly of section .text: +0+00 bgt 0+48 +[ ]+0: R_M68HC12_RL_JUMP \*ABS\* +0+02 bge 0+48 +[ ]+2: R_M68HC12_RL_JUMP \*ABS\* +0+04 ble 0+48 +[ ]+4: R_M68HC12_RL_JUMP \*ABS\* +0+06 blt 0+48 +[ ]+6: R_M68HC12_RL_JUMP \*ABS\* +0+08 bhi 0+48 +[ ]+8: R_M68HC12_RL_JUMP \*ABS\* +0+0a bcc 0+48 +[ ]+a: R_M68HC12_RL_JUMP \*ABS\* +0+0c bcc 0+48 +[ ]+c: R_M68HC12_RL_JUMP \*ABS\* +0+0e beq 0+48 +[ ]+e: R_M68HC12_RL_JUMP \*ABS\* +0+10 bls 0+48 +[ ]+10: R_M68HC12_RL_JUMP \*ABS\* +0+12 bcs 0+48 +[ ]+12: R_M68HC12_RL_JUMP \*ABS\* +0+14 bcs 0+48 +[ ]+14: R_M68HC12_RL_JUMP \*ABS\* +0+16 bmi 0+48 +[ ]+16: R_M68HC12_RL_JUMP \*ABS\* +0+18 bvs 0+48 +[ ]+18: R_M68HC12_RL_JUMP \*ABS\* +0+1a bra 0+48 +[ ]+1a: R_M68HC12_RL_JUMP \*ABS\* +0+1c bvc 0+48 +[ ]+1c: R_M68HC12_RL_JUMP \*ABS\* +0+1e bne 0+48 +[ ]+1e: R_M68HC12_RL_JUMP \*ABS\* +0+20 bpl 0+48 +[ ]+20: R_M68HC12_RL_JUMP \*ABS\* +0+22 brn 0+48 +[ ]+22: R_M68HC12_RL_JUMP \*ABS\* +0+24 bgt 0+00 +[ ]+24: R_M68HC12_RL_JUMP \*ABS\* +0+26 bge 0+00 +[ ]+26: R_M68HC12_RL_JUMP \*ABS\* +0+28 ble 0+00 +[ ]+28: R_M68HC12_RL_JUMP \*ABS\* +0+2a blt 0+00 +[ ]+2a: R_M68HC12_RL_JUMP \*ABS\* +0+2c bhi 0+00 +[ ]+2c: R_M68HC12_RL_JUMP \*ABS\* +0+2e bcc 0+00 +[ ]+2e: R_M68HC12_RL_JUMP \*ABS\* +0+30 bcc 0+00 +[ ]+30: R_M68HC12_RL_JUMP \*ABS\* +0+32 beq 0+00 +[ ]+32: R_M68HC12_RL_JUMP \*ABS\* +0+34 bls 0+00 +[ ]+34: R_M68HC12_RL_JUMP \*ABS\* +0+36 bcs 0+00 +[ ]+36: R_M68HC12_RL_JUMP \*ABS\* +0+38 bcs 0+00 +[ ]+38: R_M68HC12_RL_JUMP \*ABS\* +0+3a bmi 0+00 +[ ]+3a: R_M68HC12_RL_JUMP \*ABS\* +0+3c bvs 0+00 +[ ]+3c: R_M68HC12_RL_JUMP \*ABS\* +0+3e bra 0+00 +[ ]+3e: R_M68HC12_RL_JUMP \*ABS\* +0+40 bvc 0+00 +[ ]+40: R_M68HC12_RL_JUMP \*ABS\* +0+42 bne 0+00 +[ ]+42: R_M68HC12_RL_JUMP \*ABS\* +0+44 bpl 0+00 +[ ]+44: R_M68HC12_RL_JUMP \*ABS\* +0+46 brn 0+00 +[ ]+46: R_M68HC12_RL_JUMP \*ABS\* +0+48 lbgt 0+1e7 +[ ]+48: R_M68HC12_RL_JUMP \*ABS\* +0+4c lbge 0+1e7 +[ ]+4c: R_M68HC12_RL_JUMP \*ABS\* +0+50 lble 0+1e7 +[ ]+50: R_M68HC12_RL_JUMP \*ABS\* +0+54 lblt 0+1e7 +[ ]+54: R_M68HC12_RL_JUMP \*ABS\* +0+58 lbhi 0+1e7 +[ ]+58: R_M68HC12_RL_JUMP \*ABS\* +0+5c lbcc 0+1e7 +[ ]+5c: R_M68HC12_RL_JUMP \*ABS\* +0+60 lbcc 0+1e7 +[ ]+60: R_M68HC12_RL_JUMP \*ABS\* +0+64 lbeq 0+1e7 +[ ]+64: R_M68HC12_RL_JUMP \*ABS\* +0+68 lbls 0+1e7 +[ ]+68: R_M68HC12_RL_JUMP \*ABS\* +0+6c lbcs 0+1e7 +[ ]+6c: R_M68HC12_RL_JUMP \*ABS\* +0+70 lbcs 0+1e7 +[ ]+70: R_M68HC12_RL_JUMP \*ABS\* +0+74 lbmi 0+1e7 +[ ]+74: R_M68HC12_RL_JUMP \*ABS\* +0+78 lbvs 0+1e7 +[ ]+78: R_M68HC12_RL_JUMP \*ABS\* +0+7c lbra 0+1e7 +[ ]+7c: R_M68HC12_RL_JUMP \*ABS\* +0+80 lbvc 0+1e7 +[ ]+80: R_M68HC12_RL_JUMP \*ABS\* +0+84 lbne 0+1e7 +[ ]+84: R_M68HC12_RL_JUMP \*ABS\* +0+88 lbpl 0+1e7 +[ ]+88: R_M68HC12_RL_JUMP \*ABS\* +0+8c lbrn 0+1e7 +[ ]+8c: R_M68HC12_RL_JUMP \*ABS\* +0+90 lbgt 0+00 +[ ]+90: R_M68HC12_RL_JUMP \*ABS\* +[ ]+92: R_M68HC12_PCREL_16 undefined +0+94 lbge 0+00 +[ ]+94: R_M68HC12_RL_JUMP \*ABS\* +[ ]+96: R_M68HC12_PCREL_16 undefined +0+98 lble 0+00 +[ ]+98: R_M68HC12_RL_JUMP \*ABS\* +[ ]+9a: R_M68HC12_PCREL_16 undefined +0+9c lblt 0+00 +[ ]+9c: R_M68HC12_RL_JUMP \*ABS\* +[ ]+9e: R_M68HC12_PCREL_16 undefined +0+a0 lbhi 0+00 +[ ]+a0: R_M68HC12_RL_JUMP \*ABS\* +[ ]+a2: R_M68HC12_PCREL_16 undefined +0+a4 lbcc 0+00 +[ ]+a4: R_M68HC12_RL_JUMP \*ABS\* +[ ]+a6: R_M68HC12_PCREL_16 undefined +0+a8 lbcc 0+00 +[ ]+a8: R_M68HC12_RL_JUMP \*ABS\* +[ ]+aa: R_M68HC12_PCREL_16 undefined +0+ac lbeq 0+00 +[ ]+ac: R_M68HC12_RL_JUMP \*ABS\* +[ ]+ae: R_M68HC12_PCREL_16 undefined +0+b0 lbls 0+00 +[ ]+b0: R_M68HC12_RL_JUMP \*ABS\* +[ ]+b2: R_M68HC12_PCREL_16 undefined +0+b4 lbcs 0+00 +[ ]+b4: R_M68HC12_RL_JUMP \*ABS\* +[ ]+b6: R_M68HC12_PCREL_16 undefined +0+b8 lbcs 0+00 +[ ]+b8: R_M68HC12_RL_JUMP \*ABS\* +[ ]+ba: R_M68HC12_PCREL_16 undefined +0+bc lbmi 0+00 +[ ]+bc: R_M68HC12_RL_JUMP \*ABS\* +[ ]+be: R_M68HC12_PCREL_16 undefined +0+c0 lbvs 0+00 +[ ]+c0: R_M68HC12_RL_JUMP \*ABS\* +[ ]+c2: R_M68HC12_PCREL_16 undefined +0+c4 jmp 0+00 +[ ]+c4: R_M68HC12_RL_JUMP \*ABS\* +[ ]+c5: R_M68HC12_16 undefined +0+c7 lbvc 0+00 +[ ]+c7: R_M68HC12_RL_JUMP \*ABS\* +[ ]+c9: R_M68HC12_PCREL_16 undefined +0+cb lbne 0+00 +[ ]+cb: R_M68HC12_RL_JUMP \*ABS\* +[ ]+cd: R_M68HC12_PCREL_16 undefined +0+cf lbpl 0+00 +[ ]+cf: R_M68HC12_RL_JUMP \*ABS\* +[ ]+d1: R_M68HC12_PCREL_16 undefined +0+d3 lbrn 0+00 +[ ]+d3: R_M68HC12_RL_JUMP \*ABS\* +[ ]+d5: R_M68HC12_PCREL_16 undefined +0+d7 lbgt 0+10 +[ ]+d7: R_M68HC12_RL_JUMP \*ABS\* +[ ]+d9: R_M68HC12_PCREL_16 undefined +0+db lbge 0+10 +[ ]+db: R_M68HC12_RL_JUMP \*ABS\* +[ ]+dd: R_M68HC12_PCREL_16 undefined +0+df lble 0+10 +[ ]+df: R_M68HC12_RL_JUMP \*ABS\* +[ ]+e1: R_M68HC12_PCREL_16 undefined +0+e3 lblt 0+10 +[ ]+e3: R_M68HC12_RL_JUMP \*ABS\* +[ ]+e5: R_M68HC12_PCREL_16 undefined +0+e7 lbhi 0+10 +[ ]+e7: R_M68HC12_RL_JUMP \*ABS\* +[ ]+e9: R_M68HC12_PCREL_16 undefined +0+eb lbcc 0+10 +[ ]+eb: R_M68HC12_RL_JUMP \*ABS\* +[ ]+ed: R_M68HC12_PCREL_16 undefined +0+ef lbcc 0+10 +[ ]+ef: R_M68HC12_RL_JUMP \*ABS\* +[ ]+f1: R_M68HC12_PCREL_16 undefined +0+f3 lbeq 0+10 +[ ]+f3: R_M68HC12_RL_JUMP \*ABS\* +[ ]+f5: R_M68HC12_PCREL_16 undefined +0+f7 lbls 0+10 +[ ]+f7: R_M68HC12_RL_JUMP \*ABS\* +[ ]+f9: R_M68HC12_PCREL_16 undefined +0+fb lbcs 0+10 +[ ]+fb: R_M68HC12_RL_JUMP \*ABS\* +[ ]+fd: R_M68HC12_PCREL_16 undefined +0+ff lbcs 0+10 +[ ]+ff: R_M68HC12_RL_JUMP \*ABS\* +[ ]+101: R_M68HC12_PCREL_16 undefined +0+103 lbmi 0+10 +[ ]+103: R_M68HC12_RL_JUMP \*ABS\* +[ ]+105: R_M68HC12_PCREL_16 undefined +0+107 lbvs 0+10 +[ ]+107: R_M68HC12_RL_JUMP \*ABS\* +[ ]+109: R_M68HC12_PCREL_16 undefined +0+10b lbra 0+10 +[ ]+10b: R_M68HC12_RL_JUMP \*ABS\* +[ ]+10d: R_M68HC12_PCREL_16 undefined +0+10f lbvc 0+10 +[ ]+10f: R_M68HC12_RL_JUMP \*ABS\* +[ ]+111: R_M68HC12_PCREL_16 undefined +0+113 lbne 0+10 +[ ]+113: R_M68HC12_RL_JUMP \*ABS\* +[ ]+115: R_M68HC12_PCREL_16 undefined +0+117 lbpl 0+10 +[ ]+117: R_M68HC12_RL_JUMP \*ABS\* +[ ]+119: R_M68HC12_PCREL_16 undefined +0+11b lbrn 0+10 +[ ]+11b: R_M68HC12_RL_JUMP \*ABS\* +[ ]+11d: R_M68HC12_PCREL_16 undefined + ... +0+1e7 rts diff --git a/gas/testsuite/gas/m68hc11/branchs12.s b/gas/testsuite/gas/m68hc11/branchs12.s new file mode 100644 index 0000000000..6aa9b62f44 --- /dev/null +++ b/gas/testsuite/gas/m68hc11/branchs12.s @@ -0,0 +1,111 @@ +# +# Try to verify all branchs for 68HC12 +# Ensures that PC-relative relocations are correct. +# + sect .text + globl start + +start: +L0: + ;; Branchs to defined symbols, positive offset < 128 + bgt L1 + bge L1 + ble L1 + blt L1 + bhi L1 + bhs L1 + bcc L1 + beq L1 + bls L1 + blo L1 + bcs L1 + bmi L1 + bvs L1 + bra L1 + bvc L1 + bne L1 + bpl L1 + brn L1 + + ;; Branchs to defined symbols, negative offset > -128 + bgt L0 + bge L0 + ble L0 + blt L0 + bhi L0 + bhs L0 + bcc L0 + beq L0 + bls L0 + blo L0 + bcs L0 + bmi L0 + bvs L0 + bra L0 + bvc L0 + bne L0 + bpl L0 + brn L0 +L1: + ;; Branchs to defined symbols, positive offset > -128 + lbgt L2 + lbge L2 + lble L2 + lblt L2 + lbhi L2 + lbhs L2 + lbcc L2 + lbeq L2 + lbls L2 + lblo L2 + lbcs L2 + lbmi L2 + lbvs L2 + lbra L2 + lbvc L2 + lbne L2 + lbpl L2 + lbrn L2 + + ;; Branchs to undefined symbols, translated into lbcc + bgt undefined + bge undefined + ble undefined + blt undefined + bhi undefined + bhs undefined + bcc undefined + beq undefined + bls undefined + blo undefined + bcs undefined + bmi undefined + bvs undefined + bra undefined + bvc undefined + bne undefined + bpl undefined + brn undefined + + ;; Far branchs to undefined symbols + lbgt undefined+16 + lbge undefined+16 + lble undefined+16 + lblt undefined+16 + lbhi undefined+16 + lbhs undefined+16 + lbcc undefined+16 + lbeq undefined+16 + lbls undefined+16 + lblo undefined+16 + lbcs undefined+16 + lbmi undefined+16 + lbvs undefined+16 + lbra undefined+16 + lbvc undefined+16 + lbne undefined+16 + lbpl undefined+16 + lbrn undefined+16 + .skip 200 +L2: + rts diff --git a/gas/testsuite/gas/m68hc11/insns-dwarf2.d b/gas/testsuite/gas/m68hc11/insns-dwarf2.d index 419d69b05c..0ecea9676b 100644 --- a/gas/testsuite/gas/m68hc11/insns-dwarf2.d +++ b/gas/testsuite/gas/m68hc11/insns-dwarf2.d @@ -9,20 +9,20 @@ Disassembly of section .text: -0+0 <_start>: +00000000 <_start>: .globl _start .sect .text _start: lds #stack\+1024 - 0: 8e 04 00 lds #400 + 0: 8e 04 00 lds #400 <.L0\+0x3a4> ldx #1 3: ce 00 01 ldx #1 <_start\+0x1> -00000006 : +0+06 : Loop: jsr test - 6: bd 00 10 jsr 10 + 6: bd 00 00 jsr 0 <_start> dex 9: 09 dex bne Loop @@ -43,7 +43,7 @@ test: ldd #2 10: cc 00 02 ldd #2 <_start\+0x2> jsr test2 - 13: bd 00 17 jsr 17 + 13: bd 00 00 jsr 0 <_start> rts 16: 39 rts @@ -87,7 +87,7 @@ test2: brclr \*ZD2\+2, #40, test2 3d: 13 02 28 d6 brclr \*2 <_start\+0x2> #\$28 17 ldy #24\+_start-44 - 41: 18 ce ff ec ldy #ffec + 41: 18 ce ff ec ldy #ffec <.L0\+0xff90> ldd B_low,y 45: 18 ec 0c ldd 12,y addd A_low,y @@ -99,9 +99,9 @@ test2: subd #A_low 51: 83 00 2c subd #2c jmp Stop - 54: 7e 00 0c jmp c + 54: 7e 00 00 jmp 0 <_start> -0+057 : +00000057 : L1: anda #%lo\(test2\) 57: 84 17 anda #23 diff --git a/gas/testsuite/gas/m68hc11/insns.d b/gas/testsuite/gas/m68hc11/insns.d index fe09680eb9..520b2e1c58 100644 --- a/gas/testsuite/gas/m68hc11/insns.d +++ b/gas/testsuite/gas/m68hc11/insns.d @@ -1,4 +1,4 @@ -#objdump: -d --prefix-addresses +#objdump: -d --prefix-addresses --reloc #as: -m68hc11 #name: insns @@ -7,38 +7,59 @@ .*: +file format elf32\-m68hc11 Disassembly of section .text: -0+000 <_start> lds #0+0400 -0+003 <_start\+0x3> ldx #0+0001 <_start\+0x1> -0+006 jsr 0+0010 -0+009 dex -0+00a bne 0+0006 -0+00c .byte 0xcd, 0x03 -0+00e bra 0+0000 <_start> -0+010 ldd #0+0002 <_start\+0x2> -0+013 jsr 0+0017 -0+016 rts -0+017 ldx 23,y -0+01a std 23,x -0+01c ldd 0,x -0+01e sty 0,y -0+021 stx 0,y -0+024 brclr 6,x #\$04 00000017 -0+028 brclr 12,x #\$08 00000017 -0+02c ldd \*0+0 <_start> -0+02e ldx \*0+2 <_start\+0x2> -0+030 clr 0+0 <_start> -0+033 clr 0+1 <_start\+0x1> -0+036 bne 0+34 -0+038 beq 0+3c -0+03a bclr \*0+1 <_start\+0x1> #\$20 -0+03d brclr \*0+2 <_start\+0x2> #\$28 0+017 -0+041 ldy #0+ffec -0+045 ldd 12,y -0+048 addd 44,y -0+04b addd 50,y -0+04e subd 0+02c -0+051 subd #0+02c -0+054 jmp 0000000c -0+057 anda #23 -0+059 andb #0 -0+05b rts \ No newline at end of file +0+0+ <_start> lds #0+0400 +[ ]+1: R_M68HC11_16 stack +0+0003 <_start\+0x3> ldx #0+0001 <_start\+0x1> +0+0006 jsr 0+0+ <_start> +[ ]+6: R_M68HC11_RL_JUMP \*ABS\* +[ ]+7: R_M68HC11_16 test +0+0009 dex +0+000a bne 0+0006 +[ ]+a: R_M68HC11_RL_JUMP \*ABS\* +0+000c .byte 0xcd, 0x03 +0+000e bra 0+0+ <_start> +[ ]+e: R_M68HC11_RL_JUMP \*ABS\* +0+0010 ldd #0+0002 <_start\+0x2> +0+0013 jsr 0+0+ <_start> +[ ]+13: R_M68HC11_RL_JUMP \*ABS\* +[ ]+14: R_M68HC11_16 test2 +0+0016 rts +0+0017 ldx 23,y +0+001a std 23,x +0+001c ldd 0,x +0+001e sty 0,y +0+0021 stx 0,y +0+0024 brclr 6,x #\$04 0+0017 +[ ]+24: R_M68HC11_RL_JUMP \*ABS\* +0+0028 brclr 12,x #\$08 0+0017 +[ ]+28: R_M68HC11_RL_JUMP \*ABS\* +0+002c ldd \*0+0+ <_start> +[ ]+2d: R_M68HC11_8 ZD1 +0+002e ldx \*0+0002 <_start\+0x2> +[ ]+2f: R_M68HC11_8 ZD1 +0+0030 clr 0+0+ <_start> +[ ]+31: R_M68HC11_16 ZD2 +0+0033 clr 0+0001 <_start\+0x1> +[ ]+34: R_M68HC11_16 ZD2 +0+0036 bne 0+0034 +0+0038 beq 0+003c +0+003a bclr \*0+0001 <_start\+0x1> #\$20 +[ ]+3b: R_M68HC11_8 ZD1 +0+003d brclr \*0+0002 <_start\+0x2> #\$28 0+0017 +[ ]+3d: R_M68HC11_RL_JUMP \*ABS\* +[ ]+3e: R_M68HC11_8 ZD2 +0+0041 ldy #0+ffec +[ ]+43: R_M68HC11_16 _start +0+0045 ldd 12,y +0+0048 addd 44,y +0+004b addd 50,y +0+004e subd 0+002c +0+0051 subd #0+002c +0+0054 jmp 0+0+ <_start> +[ ]+54: R_M68HC11_RL_JUMP \*ABS\* +[ ]+55: R_M68HC11_16 Stop +0+0057 anda #23 +[ ]+58: R_M68HC11_LO8 .text +0+0059 andb #0 +[ ]+5a: R_M68HC11_HI8 .text +0+005b rts diff --git a/gas/testsuite/gas/m68hc11/insns12.d b/gas/testsuite/gas/m68hc11/insns12.d new file mode 100644 index 0000000000..57ed84b216 --- /dev/null +++ b/gas/testsuite/gas/m68hc11/insns12.d @@ -0,0 +1,85 @@ +#objdump: -d --prefix-addresses --reloc +#as: -m68hc12 +#name: insns12 + +.*: +file format elf32-m68hc12 + +Disassembly of section .text: +0+ call 0+ \{0+ , 0\} + 0: R_M68HC12_RL_JUMP \*ABS\* + 1: R_M68HC12_24 _foo +0+4 call 0+ \{0+ , 1\} + 4: R_M68HC12_RL_JUMP \*ABS\* + 5: R_M68HC12_LO16 _foo +0+8 call 0+ \{0+ , 0\} + 8: R_M68HC12_RL_JUMP \*ABS\* + 9: R_M68HC12_LO16 _foo + b: R_M68HC12_PAGE foo_page +0+c call 0,X, 3 + c: R_M68HC12_RL_JUMP \*ABS\* +0+f call 4,Y, 12 + f: R_M68HC12_RL_JUMP \*ABS\* +0+12 call 7,SP, 13 + 12: R_M68HC12_RL_JUMP \*ABS\* +0+15 call 12,X, 0 + 15: R_M68HC12_RL_JUMP \*ABS\* + 17: R_M68HC12_PAGE foo_page +0+18 call 4,Y, 0 + 18: R_M68HC12_RL_JUMP \*ABS\* + 1a: R_M68HC12_PAGE foo_page +0+1b call 7,SP, 0 + 1b: R_M68HC12_RL_JUMP \*ABS\* + 1d: R_M68HC12_PAGE foo_page +0+1e call \[D,X\] + 1e: R_M68HC12_RL_JUMP \*ABS\* +0+20 ldab \[32767,SP\] +0+24 call \[2048,SP\] + 24: R_M68HC12_RL_JUMP \*ABS\* +0+28 call \[0,X\] + 28: R_M68HC12_RL_JUMP \*ABS\* + 2a: R_M68HC12_16 _foo +0+2c rtc +0+2d emacs 0+ + 2f: R_M68HC12_16 _foo +0+31 maxa 0,X +0+34 maxa 819,Y +0+39 maxa \[D,X\] +0+3c maxa \[0,X\] + 3f: R_M68HC12_16 _foo +0+41 maxm 0,X +0+44 maxm 819,Y +0+49 maxm \[D,X\] +0+4c maxm \[0,X\] + 4f: R_M68HC12_16 _foo +0+51 emaxd 0,X +0+54 emaxd 819,Y +0+59 emaxd \[D,X\] +0+5c emaxd \[0,X\] + 5f: R_M68HC12_16 _foo +0+61 emaxm 0,X +0+64 emaxm 819,Y +0+69 emaxm \[D,X\] +0+6c emaxm \[0,X\] + 6f: R_M68HC12_16 _foo +0+71 mina 0,X +0+74 mina 819,Y +0+79 mina \[D,X\] +0+7c mina \[0,X\] + 7f: R_M68HC12_16 _foo +0+81 minm 0,X +0+84 minm 819,Y +0+89 minm \[D,X\] +0+8c minm \[0,X\] + 8f: R_M68HC12_16 _foo +0+91 emind 0,X +0+94 emind 819,Y +0+99 emind \[D,X\] +0+9c emind \[0,X\] + 9f: R_M68HC12_16 _foo +0+a1 emul +0+a2 emuls +0+a4 etbl 3,X +0+a7 etbl 4,PC +0+aa rev +0+ac revw +0+ae wav diff --git a/gas/testsuite/gas/m68hc11/insns12.s b/gas/testsuite/gas/m68hc11/insns12.s new file mode 100644 index 0000000000..34364fd639 --- /dev/null +++ b/gas/testsuite/gas/m68hc11/insns12.s @@ -0,0 +1,71 @@ +# Test for correct generation of 68HC12 specific insns. + + .sect .text + +;; Test the call insns +call_test: + call _foo ; 24-bit reloc + call _foo,1 ; 16-bit reloc, immediate page specification + call _foo,foo_page ; 16-bit reloc and 8-bit page reloc + call 0,x,3 ; 8-bit page reloc + call 4,y,12 + call 7,sp,13 + call 12,x,foo_page ; 8-bit page reloc + call 4,y,foo_page + call 7,sp,foo_page + call [d,x] ; No reloc + ldab [32767,sp] + call [2048,sp] ; No reloc + call [_foo,x] ; 16-bit reloc + rtc +;; Test special insn +special_test: + emacs _foo ; Wonderful, Emacs as a single instruction! + +;; Min instruction + maxa 0,x + maxa 819,y + maxa [d,x] + maxa [_foo,x] + + maxm 0,x + maxm 819,y + maxm [d,x] + maxm [_foo,x] + + emaxd 0,x + emaxd 819,y + emaxd [d,x] + emaxd [_foo,x] + + emaxm 0,x + emaxm 819,y + emaxm [d,x] + emaxm [_foo,x] + +;; Min instruction + mina 0,x + mina 819,y + mina [d,x] + mina [_foo,x] + + minm 0,x + minm 819,y + minm [d,x] + minm [_foo,x] + + emind 0,x + emind 819,y + emind [d,x] + emind [_foo,x] +;; Mul + emul + emuls + etbl 3,x + etbl 4,pc + +;; + rev + revw + wav +;; diff --git a/gas/testsuite/gas/m68hc11/lbranch-dwarf2.d b/gas/testsuite/gas/m68hc11/lbranch-dwarf2.d index 1f896b5cd2..1122680e88 100644 --- a/gas/testsuite/gas/m68hc11/lbranch-dwarf2.d +++ b/gas/testsuite/gas/m68hc11/lbranch-dwarf2.d @@ -9,56 +9,56 @@ Disassembly of section .text: -0+0 <_rcall>: +0+00 <_rcall>: .globl _rcall .globl _start _start: _rcall: - ldaa \#0x10 ;86 10 - 0: 86 10 ldaa \#16 + ldaa #0x10 ;86 10 + 0: 86 10 ldaa #16 jbra Lend ; Must be switched to a jmp - 2: 7e 01 0b jmp 10b - jbsr toto ; \-> to a jsr - 5: bd 01 1b jsr 11b - jbne toto ; \-> to a beq\+jmp + 2: 7e 00 00 jmp 0 <_rcall> + jbsr toto ; -> to a jsr + 5: bd 00 00 jsr 0 <_rcall> + jbne toto ; -> to a beq\+jmp 8: 27 03 beq d <_rcall\+0xd> - a: 7e 01 1b jmp 11b + a: 7e 00 00 jmp 0 <_rcall> jbeq toto ; -> to a bne\+jmp d: 26 03 bne 12 <_rcall\+0x12> - f: 7e 01 1b jmp 11b + f: 7e 00 00 jmp 0 <_rcall> jbcs toto ; -> to a bcc\+jmp 12: 24 03 bcc 17 <_rcall\+0x17> - 14: 7e 01 1b jmp 11b + 14: 7e 00 00 jmp 0 <_rcall> jbcc toto ; -> to a bcs\+jmp 17: 25 03 bcs 1c <_rcall\+0x1c> - 19: 7e 01 1b jmp 11b + 19: 7e 00 00 jmp 0 <_rcall> xgdx 1c: 8f xgdx xgdx 1d: 8f xgdx beq bidule ; -> to a bne\+jmp 1e: 26 03 bne 23 <_rcall\+0x23> - 20: 7e 01 80 jmp 180 + 20: 7e 00 00 jmp 0 <_rcall> bcs bidule ; -> to a bcc\+jmp 23: 24 03 bcc 28 <_rcall\+0x28> - 25: 7e 01 80 jmp 180 + 25: 7e 00 00 jmp 0 <_rcall> bcc bidule ; -> to a bcs\+jmp 28: 25 03 bcs 2d <_rcall\+0x2d> - 2a: 7e 01 80 jmp 180 + 2a: 7e 00 00 jmp 0 <_rcall> xgdx 2d: 8f xgdx jbra 200 2e: 7e 00 c8 jmp c8 <_rcall\+0xc8> jbsr 1923 - 31: bd 07 83 jsr 783 + 31: bd 07 83 jsr 783 <.L0\+0x602> bne Lend ; -> to a beq\+jmp 34: 27 03 beq 39 <_rcall\+0x39> - 36: 7e 01 0b jmp 10b + 36: 7e 00 00 jmp 0 <_rcall> jbsr toto - 39: bd 01 1b jsr 11b + 39: bd 00 00 jsr 0 <_rcall> jbeq toto 3c: 26 03 bne 41 <_rcall\+0x41> - 3e: 7e 01 1b jmp 11b + 3e: 7e 00 00 jmp 0 <_rcall> ... .skip 200 ldaa \*dir ;96 33 diff --git a/gas/testsuite/gas/m68hc11/lbranch.d b/gas/testsuite/gas/m68hc11/lbranch.d index 74cda030d1..4770a4ab22 100644 --- a/gas/testsuite/gas/m68hc11/lbranch.d +++ b/gas/testsuite/gas/m68hc11/lbranch.d @@ -1,4 +1,4 @@ -#objdump: -d --prefix-addresses +#objdump: -d --prefix-addresses --reloc #as: -m68hc11 #name: lbranch @@ -7,41 +7,74 @@ .*: +file format elf32\-m68hc11 Disassembly of section .text: -0+0000 <_rcall> ldaa #16 -0+0002 <_rcall\+0x2> jmp 0+010b -0+0005 <_rcall\+0x5> jsr 0+011b +0+0+ <_rcall> ldaa #16 +0+0002 <_rcall\+0x2> jmp 0+0+ <_rcall> +[ ]+2: R_M68HC11_RL_JUMP \*ABS\* +[ ]+3: R_M68HC11_16 Lend +0+0005 <_rcall\+0x5> jsr 0+0+ <_rcall> +[ ]+5: R_M68HC11_RL_JUMP \*ABS\* +[ ]+6: R_M68HC11_16 toto 0+0008 <_rcall\+0x8> beq 0+000d <_rcall\+0xd> -0+000a <_rcall\+0xa> jmp 0+011b +[ ]+8: R_M68HC11_RL_JUMP \*ABS\* +0+000a <_rcall\+0xa> jmp 0+0+ <_rcall> +[ ]+b: R_M68HC11_16 toto 0+000d <_rcall\+0xd> bne 0+0012 <_rcall\+0x12> -0+000f <_rcall\+0xf> jmp 0+011b +[ ]+d: R_M68HC11_RL_JUMP \*ABS\* +0+000f <_rcall\+0xf> jmp 0+0+ <_rcall> +[ ]+10: R_M68HC11_16 toto 0+0012 <_rcall\+0x12> bcc 0+0017 <_rcall\+0x17> -0+0014 <_rcall\+0x14> jmp 0+011b +[ ]+12: R_M68HC11_RL_JUMP \*ABS\* +0+0014 <_rcall\+0x14> jmp 0+0+ <_rcall> +[ ]+15: R_M68HC11_16 toto 0+0017 <_rcall\+0x17> bcs 0+001c <_rcall\+0x1c> -0+0019 <_rcall\+0x19> jmp 0+011b +[ ]+17: R_M68HC11_RL_JUMP \*ABS\* +0+0019 <_rcall\+0x19> jmp 0+0+ <_rcall> +[ ]+1a: R_M68HC11_16 toto 0+001c <_rcall\+0x1c> xgdx 0+001d <_rcall\+0x1d> xgdx 0+001e <_rcall\+0x1e> bne 0+0023 <_rcall\+0x23> -0+0020 <_rcall\+0x20> jmp 0+0180 +[ ]+1e: R_M68HC11_RL_JUMP \*ABS\* +0+0020 <_rcall\+0x20> jmp 0+0+ <_rcall> +[ ]+21: R_M68HC11_16 bidule 0+0023 <_rcall\+0x23> bcc 0+0028 <_rcall\+0x28> -0+0025 <_rcall\+0x25> jmp 0+0180 +[ ]+23: R_M68HC11_RL_JUMP \*ABS\* +0+0025 <_rcall\+0x25> jmp 0+0+ <_rcall> +[ ]+26: R_M68HC11_16 bidule 0+0028 <_rcall\+0x28> bcs 0+002d <_rcall\+0x2d> -0+002a <_rcall\+0x2a> jmp 0+0180 +[ ]+28: R_M68HC11_RL_JUMP \*ABS\* +0+002a <_rcall\+0x2a> jmp 0+0+ <_rcall> +[ ]+2b: R_M68HC11_16 bidule 0+002d <_rcall\+0x2d> xgdx 0+002e <_rcall\+0x2e> jmp 0+00c8 <_rcall\+0xc8> +[ ]+2e: R_M68HC11_RL_JUMP \*ABS\* 0+0031 <_rcall\+0x31> jsr 0+0783 +[ ]+31: R_M68HC11_RL_JUMP \*ABS\* 0+0034 <_rcall\+0x34> beq 0+0039 <_rcall\+0x39> -0+0036 <_rcall\+0x36> jmp 0+010b -0+0039 <_rcall\+0x39> jsr 0+011b +[ ]+34: R_M68HC11_RL_JUMP \*ABS\* +0+0036 <_rcall\+0x36> jmp 0+0+ <_rcall> +[ ]+37: R_M68HC11_16 Lend +0+0039 <_rcall\+0x39> jsr 0+0+ <_rcall> +[ ]+39: R_M68HC11_RL_JUMP \*ABS\* +[ ]+3a: R_M68HC11_16 toto 0+003c <_rcall\+0x3c> bne 0+0041 <_rcall\+0x41> -0+003e <_rcall\+0x3e> jmp 0+011b -[ ]*\.\.\. -0+0109 <_rcall\+0x109> ldaa \*0+0000 <_rcall> +[ ]+3c: R_M68HC11_RL_JUMP \*ABS\* +0+003e <_rcall\+0x3e> jmp 0+0+ <_rcall> +[ ]+3f: R_M68HC11_16 toto + ... +0+0109 <_rcall\+0x109> ldaa \*0+0+ <_rcall> +[ ]+10a: R_M68HC11_8 .page0 0+010b bls 0+0110 -0+010d jmp 0+0000 <_rcall> +[ ]+10b: R_M68HC11_RL_JUMP \*ABS\* +0+010d jmp 0+0+ <_rcall> +[ ]+10e: R_M68HC11_16 external_op 0+0110 bhi 0+0115 -0+0112 jmp 0+0000 <_rcall> -0+0115 jsr 0+0000 <_rcall> +[ ]+110: R_M68HC11_RL_JUMP \*ABS\* +0+0112 jmp 0+0+ <_rcall> +[ ]+113: R_M68HC11_16 external_op +0+0115 jsr 0+0+ <_rcall> +[ ]+115: R_M68HC11_RL_JUMP \*ABS\* +[ ]+116: R_M68HC11_16 out 0+0118 ldx #0+000c <_rcall\+0xc> 0+011b rts -[ ]*\.\.\. + ... 0+0180 rts diff --git a/gas/testsuite/gas/m68hc11/opers12-dwarf2.d b/gas/testsuite/gas/m68hc11/opers12-dwarf2.d index e8944afa39..04cc835592 100644 --- a/gas/testsuite/gas/m68hc11/opers12-dwarf2.d +++ b/gas/testsuite/gas/m68hc11/opers12-dwarf2.d @@ -7,7 +7,7 @@ Disassembly of section .text: -0+0 : +0+00 : sect .text globl start @@ -17,9 +17,9 @@ start: ldaa #10 4: 86 0a ldaa #10 ldx L1 - 6: fe 00 09 ldx 9 + 6: fe 00 00 ldx 0 -00000009 : +0+09 : L1: ldy ,x 9: ed 00 ldy 0,X addd 1,y ; Offset from register @@ -118,24 +118,24 @@ L1: ldy ,x movb #23, 1,\-sp 84: 18 08 af 17 movb #23, 1,\-SP movb L1, L2 - 88: 18 0c 00 09 movb 9 , bc - 8c: 00 bc + 88: 18 0c 00 00 movb 0 , 0 + 8c: 00 00 movb L1, a,x - 8e: 18 09 e4 00 movb 9 , A,X - 92: 09 + 8e: 18 09 e4 00 movb 0 , A,X + 92: 00 movw L1, b,x - 93: 18 01 e5 00 movw 9 , B,X - 97: 09 + 93: 18 01 e5 00 movw 0 , B,X + 97: 00 movw L1, d,x - 98: 18 01 e6 00 movw 9 , D,X - 9c: 09 + 98: 18 01 e6 00 movw 0 , D,X + 9c: 00 movw d,x, a,x 9d: 18 02 e6 e4 movw D,X, A,X movw b,sp, d,pc a1: 18 02 f5 fe movw B,SP, D,PC movw b,sp, L1 - a5: 18 05 f5 00 movw B,SP, 9 - a9: 09 + a5: 18 05 f5 00 movw B,SP, 0 + a9: 00 movw b,sp, 1,x aa: 18 02 f5 01 movw B,SP, 1,X movw d,x, a,y @@ -151,7 +151,7 @@ L1: ldy ,x trap #255 ba: 18 ff trap #255 -000000bc : +0+bc : L2: movw 1,x,2,x bc: 18 02 01 02 movw 1,X, 2,X @@ -185,7 +185,7 @@ L2: rts f0: 3d rts -000000f1 : +0+f1 : ;; ;; Post\-index byte with relocation ;; @@ -194,7 +194,7 @@ t1: leas abort,x f1: 1b e2 00 00 leas 0,X -000000f5 : +0+f5 : t2: leax t2\-t1,y f5: 1a 44 leax 4,Y @@ -219,7 +219,7 @@ t2: ;; Disassembler bug with movb ;; movb #23,0x2345 - 117: 18 0b 17 23 movb #23, 2345 + 117: 18 0b 17 23 movb #23, 2345 <.L0\+0x2208> 11b: 45 movb #40,12,sp 11c: 18 08 8c 28 movb #40, 12,SP @@ -237,5 +237,5 @@ t2: 133: 18 00 a2 39 movw #3900 , 3,\+SP 137: 00 movw #0x2000,14,sp - 138: 18 00 8e 20 movw #2000 , 14,SP + 138: 18 00 8e 20 movw #2000 <.L0\+0x1ec3>, 14,SP 13c: 00 diff --git a/gas/testsuite/gas/m68hc11/opers12.d b/gas/testsuite/gas/m68hc11/opers12.d index 645a5fe46c..c38c0b1c59 100644 --- a/gas/testsuite/gas/m68hc11/opers12.d +++ b/gas/testsuite/gas/m68hc11/opers12.d @@ -1,98 +1,114 @@ -#objdump: -d --prefix-addresses +#objdump: -d --prefix-addresses --reloc #as: -m68hc12 #name: opers .*: +file format elf32\-m68hc12 Disassembly of section .text: -0+000 anda \[12,X\] -0+004 ldaa #10 -0+006 ldx 0+009 -0+009 ldy 0,X -0+00b addd 1,Y -0+00d subd -1,Y -0+00f eora 15,Y -0+011 eora -16,Y -0+013 eorb 16,Y -0+016 eorb -17,Y -0+019 oraa 128,SP -0+01c orab -128,SP -0+01f orab 255,X -0+022 orab -256,X -0+025 anda 256,X -0+029 andb -257,X -0+02d anda \[12,X\] -0+031 ldaa \[257,Y\] -0+035 ldab \[32767,SP\] -0+039 ldd \[32768,PC\] -0+03d ldd 9,PC -0+040 std A,X -0+042 ldx B,X -0+044 stx D,Y -0+046 addd 1,\+X -0+048 addd 2,\+X -0+04a addd 8,\+X -0+04c addd 1,SP\+ -0+04e addd 2,SP\+ -0+050 addd 8,SP\+ -0+052 subd 1,\-Y -0+054 subd 2,\-Y -0+056 subd 8,\-Y -0+058 addd 1,Y\- -0+05a addd 2,Y\- -0+05c addd 8,Y\- -0+05e std \[D,X\] -0+060 std \[D,Y\] -0+062 std \[D,SP\] -0+064 std \[D,PC\] -0+066 beq 0+009 -0+068 lbeq 0+000 -0+06c lbcc 0+0bc -0+070 movb 0+000 , 1,X -0+075 movw 1,X, 0+000 -0+07a movb 0+000 , 1,\+X -0+07f movb 0+000 , 1,\-X -0+084 movb #23, 1,\-SP -0+088 movb 0+009 , 0+0bc -0+08e movb 0+009 , A,X -0+093 movw 0+009 , B,X -0+098 movw 0+009 , D,X -0+09d movw D,X, A,X -0+0a1 movw B,SP, D,PC -0+0a5 movw B,SP, 0+009 -0+0aa movw B,SP, 1,X -0+0ae movw D,X, A,Y -0+0b2 trap #48 -0+0b4 trap #57 -0+0b6 trap #64 -0+0b8 trap #128 -0+0ba trap #255 -0+0bc movw 1,X, 2,X -0+0c0 movw 0+0ffff , 0000ffff -0+0c6 movw 0+0ffff , 1,X -0+0cb movw #0+0ffff , 1,X -0+0d0 movw 0+03 , 0+08 -0+0d6 movw #0+03 , 0+03 -0+0dc movw #0+03 , 1,X -0+0e1 movw 0+03 , 1,X -0+0e6 movw 0+03 , 2,X -0+0eb movw 0+04 , -2,X -0+0f0 rts -0+0f1 leas 0,X -0+0f5 leax 4,Y -0+0f7 leax 100,X -0+0fb leas 110,SP -0+0ff leay 10,X -0+103 leas 10240,Y -0+107 leas 255,PC -0+10b leas 0,PC -0+10f leas 255,PC -0+113 leas 0,PC -0+117 movb #23, 0+2345 -0+11c movb #40, 12,SP -0+120 movb #39, 3,\+SP -0+124 movb #20, 14,SP -0+128 movw #0+3210 , 0+3456 -0+12e movw #0+4040 , 12,SP -0+133 movw #0+3900 , 3,\+SP -0+138 movw #0+2000 , 14,SP +0+0+ anda \[12,X\] +0+0004 ldaa #10 +0+0006 ldx 0+0+ +[ ]+7: R_M68HC12_16 L1 +0+0009 ldy 0,X +0+000b addd 1,Y +0+000d subd \-1,Y +0+000f eora 15,Y +0+0011 eora \-16,Y +0+0013 eorb 16,Y +0+0016 eorb \-17,Y +0+0019 oraa 128,SP +0+001c orab \-128,SP +0+001f orab 255,X +0+0022 orab \-256,X +0+0025 anda 256,X +0+0029 andb \-257,X +0+002d anda \[12,X\] +0+0031 ldaa \[257,Y\] +0+0035 ldab \[32767,SP\] +0+0039 ldd \[32768,PC\] +0+003d ldd 9,PC +[ ]+3f: R_M68HC12_8 .text +0+0040 std A,X +0+0042 ldx B,X +0+0044 stx D,Y +0+0046 addd 1,\+X +0+0048 addd 2,\+X +0+004a addd 8,\+X +0+004c addd 1,SP\+ +0+004e addd 2,SP\+ +0+0050 addd 8,SP\+ +0+0052 subd 1,\-Y +0+0054 subd 2,\-Y +0+0056 subd 8,\-Y +0+0058 addd 1,Y\- +0+005a addd 2,Y\- +0+005c addd 8,Y\- +0+005e std \[D,X\] +0+0060 std \[D,Y\] +0+0062 std \[D,SP\] +0+0064 std \[D,PC\] +0+0066 beq 0+0009 +[ ]+66: R_M68HC12_RL_JUMP \*ABS\* +0+0068 lbeq 0+0+ +[ ]+68: R_M68HC12_RL_JUMP \*ABS\* +0+006c lbcc 0+00bc +[ ]+6c: R_M68HC12_RL_JUMP \*ABS\* +0+0070 movb 0+0+ , 1,X +[ ]+73: R_M68HC12_16 start +0+0075 movw 1,X, 0+0+ +[ ]+78: R_M68HC12_16 start +0+007a movb 0+0+ , 1,\+X +[ ]+7d: R_M68HC12_16 start +0+007f movb 0+0+ , 1,\-X +[ ]+82: R_M68HC12_16 start +0+0084 movb #23, 1,\-SP +0+0088 movb 0+0+ , 0+0+ +[ ]+8a: R_M68HC12_16 L1 +[ ]+8c: R_M68HC12_16 L2 +0+008e movb 0+0+ , A,X +[ ]+91: R_M68HC12_16 L1 +0+0093 movw 0+0+ , B,X +[ ]+96: R_M68HC12_16 L1 +0+0098 movw 0+0+ , D,X +[ ]+9b: R_M68HC12_16 L1 +0+009d movw D,X, A,X +0+00a1 movw B,SP, D,PC +0+00a5 movw B,SP, 0+0+ +[ ]+a8: R_M68HC12_16 L1 +0+00aa movw B,SP, 1,X +0+00ae movw D,X, A,Y +0+00b2 trap #48 +0+00b4 trap #57 +0+00b6 trap #64 +0+00b8 trap #128 +0+00ba trap #255 +0+00bc movw 1,X, 2,X +0+00c0 movw 0+ffff , 0+ffff +0+00c6 movw 0+ffff , 1,X +0+00cb movw #0+ffff , 1,X +0+00d0 movw 0+0003 , 0+0008 +0+00d6 movw #0+0003 , 0+0003 +0+00dc movw #0+0003 , 1,X +0+00e1 movw 0+0003 , 1,X +0+00e6 movw 0+0003 , 2,X +0+00eb movw 0+0004 , \-2,X +0+00f0 rts +0+00f1 leas 0,X +[ ]+f3: R_M68HC12_16 abort +0+00f5 leax 4,Y +0+00f7 leax 100,X +0+00fb leas 110,SP +0+00ff leay 10,X +0+0103 leas 10240,Y +0+0107 leas 255,PC +0+010b leas 0,PC +0+010f leas 255,PC +0+0113 leas 0,PC +0+0117 movb #23, 0+2345 +0+011c movb #40, 12,SP +0+0120 movb #39, 3,\+SP +0+0124 movb #20, 14,SP +0+0128 movw #0+3210 , 0+3456 +0+012e movw #0+4040 , 12,SP +0+0133 movw #0+3900 , 3,\+SP +0+0138 movw #0+2000 , 14,SP -- 2.34.1