1! Like rel-1.s, but using "$", not "datalabel $" as self expression. It's 2! not as useful, but should emit the obvious output. 3 4 .mode SHmedia 5 .text 6start: 7 movi data1 - $,r10 8 movi (data2 - $) & 65535,r10 9 movi ((data3 - $) >> 0) & 65535,r10 10 movi ((data4 - $) >> 16) & 65535,r10 11 movi data5 + 8 - $,r10 12 movi (data6 + 16 - $) & 65535,r10 13 movi ((data7 + 12 - $) >> 0) & 65535,r10 14 movi ((data8 + 4 - $) >> 16) & 65535,r10 15 16 movi othertext1 - $,r10 17 movi (othertext2 - $) & 65535,r10 18 movi ((othertext3 - $) >> 0) & 65535,r10 19 movi ((othertext4 - $) >> 16) & 65535,r10 20 movi othertext5 + 8 - $,r10 21 movi (othertext6 + 16 - $) & 65535,r10 22 movi ((othertext7 + 12 - $) >> 0) & 65535,r10 23 movi ((othertext8 + 4 - $) >> 16) & 65535,r10 24 25 movi extern1 - $,r10 26 movi (extern2 - $) & 65535,r10 27 movi ((extern3 - $) >> 0) & 65535,r10 28 movi ((extern4 - $) >> 16) & 65535,r10 29 movi extern5 + 8 - $,r10 30 movi (extern6 + 16 - $) & 65535,r10 31 movi ((extern7 + 12 - $) >> 0) & 65535,r10 32 movi ((extern8 + 4 - $) >> 16) & 65535,r10 33 34 movi gdata1 - $,r10 35 movi (gdata2 - $) & 65535,r10 36 movi ((gdata3 - $) >> 0) & 65535,r10 37 movi ((gdata4 - $) >> 16) & 65535,r10 38 movi gdata5 + 8 - $,r10 39 movi (gdata6 + 16 - $) & 65535,r10 40 movi ((gdata7 + 12 - $) >> 0) & 65535,r10 41 movi ((gdata8 + 4 - $) >> 16) & 65535,r10 42 43 movi gothertext1 - $,r10 44 movi (gothertext2 - $) & 65535,r10 45 movi ((gothertext3 - $) >> 0) & 65535,r10 46 movi ((gothertext4 - $) >> 16) & 65535,r10 47 movi gothertext5 + 8 - $,r10 48 movi (gothertext6 + 16 - $) & 65535,r10 49 movi ((gothertext7 + 12 - $) >> 0) & 65535,r10 50 movi ((gothertext8 + 4 - $) >> 16) & 65535,r10 51 52 .section .othertext,"ax" 53x: 54 nop 55othertext1: 56 nop 57othertext2: 58 nop 59othertext3: 60 nop 61othertext4: 62 nop 63othertext5: 64 nop 65othertext6: 66 nop 67othertext7: 68 nop 69othertext8: 70 nop 71 .global gothertext1 72gothertext1: 73 nop 74 .global gothertext2 75gothertext2: 76 nop 77 .global gothertext3 78gothertext3: 79 nop 80 .global gothertext4 81gothertext4: 82 nop 83 .global gothertext5 84gothertext5: 85 nop 86 .global gothertext6 87gothertext6: 88 nop 89 .global gothertext7 90gothertext7: 91 nop 92 .global gothertext8 93gothertext8: 94 nop 95 96 .data 97y: 98 .long 0 99data1: 100 .long 0 101data2: 102 .long 0 103data3: 104 .long 0 105data4: 106 .long 0 107data5: 108 .long 0 109data6: 110 .long 0 111data7: 112 .long 0 113data8: 114 .long 0 115 .global gdata1 116gdata1: 117 .long 0 118 .global gdata2 119gdata2: 120 .long 0 121 .global gdata3 122gdata3: 123 .long 0 124 .global gdata4 125gdata4: 126 .long 0 127 .global gdata5 128gdata5: 129 .long 0 130 .global gdata6 131gdata6: 132 .long 0 133 .global gdata7 134gdata7: 135 .long 0 136 .global gdata8 137gdata8: 138 .long 0 139