Artifact 5fe0b5ddd6709e3a95d85ffe8a91243f1859a6c3:


0000: 40 20 54 72 61 6d 70 6f 6c 69 6e 65 20 66 6f 72  @ Trampoline for
0010: 20 61 72 6d 20 43 50 55 0a 0a 40 20 43 6f 70 79   arm CPU..@ Copy
0020: 72 69 67 68 74 20 31 39 39 35 20 42 72 75 6e 6f  right 1995 Bruno
0030: 20 48 61 69 62 6c 65 2c 20 3c 62 72 75 6e 6f 40   Haible, <bruno@
0040: 63 6c 69 73 70 2e 6f 72 67 3e 0a 40 0a 40 20 54  clisp.org>.@.@ T
0050: 68 69 73 20 69 73 20 66 72 65 65 20 73 6f 66 74  his is free soft
0060: 77 61 72 65 20 64 69 73 74 72 69 62 75 74 65 64  ware distributed
0070: 20 75 6e 64 65 72 20 74 68 65 20 47 4e 55 20 47   under the GNU G
0080: 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 4c 69  eneral Public Li
0090: 63 65 6e 63 65 0a 40 20 64 65 73 63 72 69 62 65  cence.@ describe
00a0: 64 20 69 6e 20 74 68 65 20 66 69 6c 65 20 43 4f  d in the file CO
00b0: 50 59 49 4e 47 2e 20 43 6f 6e 74 61 63 74 20 74  PYING. Contact t
00c0: 68 65 20 61 75 74 68 6f 72 20 69 66 20 79 6f 75  he author if you
00d0: 20 64 6f 6e 27 74 20 68 61 76 65 20 74 68 69 73   don't have this
00e0: 0a 40 20 6f 72 20 63 61 6e 27 74 20 6c 69 76 65  .@ or can't live
00f0: 20 77 69 74 68 20 69 74 2e 20 54 68 65 72 65 20   with it. There 
0100: 69 73 20 41 42 53 4f 4c 55 54 45 4c 59 20 4e 4f  is ABSOLUTELY NO
0110: 20 57 41 52 52 41 4e 54 59 2c 20 65 78 70 6c 69   WARRANTY, expli
0120: 63 69 74 20 6f 72 20 69 6d 70 6c 69 65 64 2c 0a  cit or implied,.
0130: 40 20 6f 6e 20 74 68 69 73 20 73 6f 66 74 77 61  @ on this softwa
0140: 72 65 2e 0a 0a 40 20 41 76 61 69 6c 61 62 6c 65  re...@ Available
0150: 20 72 65 67 69 73 74 65 72 73 3a 20 69 70 2e 0a   registers: ip..
0160: 0a 72 66 70 09 2e 72 65 71 09 72 39 0a 73 6c 09  .rfp..req.r9.sl.
0170: 2e 72 65 71 09 72 31 30 0a 66 70 09 2e 72 65 71  .req.r10.fp..req
0180: 09 72 31 31 0a 69 70 09 2e 72 65 71 09 72 31 32  .r11.ip..req.r12
0190: 0a 73 70 09 2e 72 65 71 09 72 31 33 0a 6c 72 09  .sp..req.r13.lr.
01a0: 2e 72 65 71 09 72 31 34 0a 70 63 09 2e 72 65 71  .req.r14.pc..req
01b0: 09 72 31 35 0a 2e 74 65 78 74 0a 09 2e 61 6c 69  .r15..text...ali
01c0: 67 6e 09 30 0a 09 2e 67 6c 6f 62 61 6c 09 5f 74  gn.0...global._t
01d0: 72 61 6d 70 0a 5f 74 72 61 6d 70 3a 0a 09 40 20  ramp._tramp:..@ 
01e0: 49 6d 6d 65 64 69 61 74 65 20 63 6f 6e 73 74 61  Immediate consta
01f0: 6e 74 73 20 61 72 65 20 61 20 70 72 6f 62 6c 65  nts are a proble
0200: 6d 2e 20 49 20 74 61 6b 65 20 74 68 65 20 69 6e  m. I take the in
0210: 64 69 72 65 63 74 20 6c 6f 61 64 20 61 70 70 72  direct load appr
0220: 6f 61 63 68 0a 09 40 20 62 65 63 61 75 73 65 20  oach..@ because 
0230: 49 20 64 6f 6e 27 74 20 77 61 6e 74 20 34 20 69  I don't want 4 i
0240: 6e 73 74 72 75 63 74 69 6f 6e 73 20 66 6f 72 20  nstructions for 
0250: 65 61 63 68 20 63 6f 6e 73 74 61 6e 74 2e 0a 09  each constant...
0260: 73 74 6d 66 64 09 73 70 21 2c 7b 72 30 7d 0a 09  stmfd.sp!,{r0}..
0270: 6c 64 72 09 72 30 2c 5b 70 63 2c 23 31 32 5d 0a  ldr.r0,[pc,#12].
0280: 09 6c 64 72 09 69 70 2c 5b 70 63 2c 23 31 32 5d  .ldr.ip,[pc,#12]
0290: 0a 09 73 74 72 09 72 30 2c 5b 69 70 5d 0a 09 6c  ..str.r0,[ip]..l
02a0: 64 6d 66 64 09 73 70 21 2c 7b 72 30 7d 0a 09 6c  dmfd.sp!,{r0}..l
02b0: 64 72 09 70 63 2c 5b 70 63 2c 23 34 5d 0a 0a 09  dr.pc,[pc,#4]...
02c0: 2e 67 6c 6f 62 61 6c 09 5f 64 61 74 61 0a 09 2e  .global._data...
02d0: 61 6c 69 67 6e 09 30 0a 5f 64 61 74 61 3a 0a 09  align.0._data:..
02e0: 2e 77 6f 72 64 09 30 78 37 33 35 35 34 37 31 31  .word.0x73554711
02f0: 0a 0a 09 2e 67 6c 6f 62 61 6c 09 5f 76 61 72 69  ....global._vari
0300: 61 62 6c 65 0a 09 2e 61 6c 69 67 6e 09 30 0a 5f  able...align.0._
0310: 76 61 72 69 61 62 6c 65 3a 0a 09 2e 77 6f 72 64  variable:...word
0320: 09 30 78 31 32 33 34 35 36 37 38 0a 0a 09 2e 67  .0x12345678....g
0330: 6c 6f 62 61 6c 09 5f 66 75 6e 63 74 69 6f 6e 0a  lobal._function.
0340: 09 2e 61 6c 69 67 6e 09 30 0a 5f 66 75 6e 63 74  ..align.0._funct
0350: 69 6f 6e 3a 0a 09 2e 77 6f 72 64 09 30 78 62 61  ion:...word.0xba
0360: 62 65 62 65 63 30 0a                             bebec0.