Commit | Line | Data |
---|---|---|
cd2b2939 | 1 | #objdump: -d --prefix-addresses --reloc |
60bcf0fa NC |
2 | #as: -m68hc11 |
3 | #name: insns | |
4 | ||
5 | # Test handling of basic instructions. | |
6 | ||
7 | .*: +file format elf32\-m68hc11 | |
8 | ||
9 | Disassembly of section .text: | |
6927f982 | 10 | 0+0+ <_start> lds #0x0+0400 <stack_end> |
cd2b2939 | 11 | [ ]+1: R_M68HC11_16 stack |
6927f982 NC |
12 | 0+0003 <_start\+0x3> ldx #0x0+0001 <_start\+0x1> |
13 | 0+0006 <Loop> jsr 0x0+0+ <_start> | |
cd2b2939 SC |
14 | [ ]+6: R_M68HC11_RL_JUMP \*ABS\* |
15 | [ ]+7: R_M68HC11_16 test | |
16 | 0+0009 <Loop\+0x3> dex | |
6927f982 | 17 | 0+000a <Loop\+0x4> bne 0x0+0006 <Loop> |
cd2b2939 SC |
18 | [ ]+a: R_M68HC11_RL_JUMP \*ABS\* |
19 | 0+000c <Stop> .byte 0xcd, 0x03 | |
6927f982 | 20 | 0+000e <Stop\+0x2> bra 0x0+0+ <_start> |
cd2b2939 | 21 | [ ]+e: R_M68HC11_RL_JUMP \*ABS\* |
6927f982 NC |
22 | 0+0010 <test> ldd #0x0+0002 <_start\+0x2> |
23 | 0+0013 <test\+0x3> jsr 0x0+0+ <_start> | |
cd2b2939 SC |
24 | [ ]+13: R_M68HC11_RL_JUMP \*ABS\* |
25 | [ ]+14: R_M68HC11_16 test2 | |
26 | 0+0016 <test\+0x6> rts | |
6927f982 NC |
27 | 0+0017 <test2> ldx 0x17,y |
28 | 0+001a <test2\+0x3> std 0x17,x | |
29 | 0+001c <test2\+0x5> ldd 0x0,x | |
30 | 0+001e <test2\+0x7> sty 0x0,y | |
31 | 0+0021 <test2\+0xa> stx 0x0,y | |
32 | 0+0024 <test2\+0xd> brclr 0x6,x, #0x04, 0x0+0017 <test2> | |
cd2b2939 | 33 | [ ]+24: R_M68HC11_RL_JUMP \*ABS\* |
6927f982 | 34 | 0+0028 <test2\+0x11> brclr 0xc,x, #0x08, 0x0+0017 <test2> |
cd2b2939 | 35 | [ ]+28: R_M68HC11_RL_JUMP \*ABS\* |
6927f982 | 36 | 0+002c <test2\+0x15> ldd \*0x0+0+ <_start> |
cd2b2939 | 37 | [ ]+2d: R_M68HC11_8 ZD1 |
6927f982 | 38 | 0+002e <test2\+0x17> ldx \*0x0+0002 <_start\+0x2> |
cd2b2939 | 39 | [ ]+2f: R_M68HC11_8 ZD1 |
6927f982 | 40 | 0+0030 <test2\+0x19> clr 0x0+0+ <_start> |
cd2b2939 | 41 | [ ]+31: R_M68HC11_16 ZD2 |
6927f982 | 42 | 0+0033 <test2\+0x1c> clr 0x0+0001 <_start\+0x1> |
cd2b2939 | 43 | [ ]+34: R_M68HC11_16 ZD2 |
6927f982 NC |
44 | 0+0036 <test2\+0x1f> bne 0x0+0034 <test2\+0x1d> |
45 | 0+0038 <test2\+0x21> beq 0x0+003c <test2\+0x25> | |
46 | 0+003a <test2\+0x23> bclr \*0x0+0001 <_start\+0x1>, #0x20 | |
cd2b2939 | 47 | [ ]+3b: R_M68HC11_8 ZD1 |
6927f982 | 48 | 0+003d <test2\+0x26> brclr \*0x0+0002 <_start\+0x2>, #0x28, 0x0+0017 <test2> |
cd2b2939 SC |
49 | [ ]+3d: R_M68HC11_RL_JUMP \*ABS\* |
50 | [ ]+3e: R_M68HC11_8 ZD2 | |
6927f982 | 51 | 0+0041 <test2\+0x2a> ldy #0x0+ffec <stack_end\+0xfbec> |
cd2b2939 | 52 | [ ]+43: R_M68HC11_16 _start |
6927f982 NC |
53 | 0+0045 <test2\+0x2e> ldd 0xc,y |
54 | 0+0048 <test2\+0x31> addd 0x2c,y | |
55 | 0+004b <test2\+0x34> addd 0x32,y | |
56 | 0+004e <test2\+0x37> subd 0x0+002c <test2\+0x15> | |
57 | 0+0051 <test2\+0x3a> subd #0x0+002c <test2\+0x15> | |
58 | 0+0054 <test2\+0x3d> jmp 0x0+0+ <_start> | |
cd2b2939 SC |
59 | [ ]+54: R_M68HC11_RL_JUMP \*ABS\* |
60 | [ ]+55: R_M68HC11_16 Stop | |
6927f982 | 61 | 0+0057 <L1> anda #0x17 |
98b37a6b | 62 | [ ]+58: R_M68HC11_LO8 \.text |
6927f982 | 63 | 0+0059 <L1\+0x2> andb #0x0 |
98b37a6b | 64 | [ ]+5a: R_M68HC11_HI8 \.text |
6927f982 | 65 | 0+5b <L1\+0x4> ldab #0x0 |
ab53523a | 66 | [ ]+5c: R_M68HC11_PAGE test2 |
6927f982 | 67 | 0+5d <L1\+0x6> ldy #0x0+ <_start> |
ab53523a SC |
68 | [ ]+5f: R_M68HC11_LO16 test2 |
69 | 0+61 <L1\+0xa> rts |