Home | History | Annotate | Download | only in m68hc11
      1 # Example of M68hc11 instructions
      2 	.sect .text
      3 _start:
      4 L0:	aba
      5 L1:	abx
      6 L2:	aby
      7 L3:	adca #103
      8 L4:	adca *Z198
      9 L5:	adca 105,X
     10 L6:	adca symbol115
     11 L7:	adca 81,X
     12 L8:	adcb #255
     13 L9:	adcb *Z74
     14 L10:	adcb 236,X
     15 L11:	adcb symbol41
     16 L12:	adcb 205,X
     17 L13:	adda #186
     18 L14:	adda *Z171
     19 L15:	adda 242,X
     20 L16:	adda symbol251
     21 L17:	adda 227,X
     22 L18:	addb #70
     23 L19:	addb *Z124
     24 L20:	addb 194,X
     25 L21:	addb symbol84
     26 L22:	addb 248,X
     27 L23:	addd #8987
     28 L24:	addd *Z232
     29 L25:	addd 231,X
     30 L26:	addd symbol141
     31 L27:	addd 118,X
     32 L28:	anda #90
     33 L29:	anda *Z46
     34 L30:	anda 99,X
     35 L31:	anda symbol51
     36 L32:	anda 159,X
     37 L33:	andb #201
     38 L34:	andb *Z154
     39 L35:	andb 102,X
     40 L36:	andb symbol50
     41 L37:	andb 13,X
     42 L38:	asl 183,X
     43 L39:	asl symbol49
     44 L40:	asl 88,X
     45 L41:	asla
     46 L42:	aslb
     47 L43:	asld
     48 L44:	asr 163,X
     49 L45:	asr symbol90
     50 L46:	asr 37,X
     51 L47:	asra
     52 L48:	asrb
     53 L49:	bcc L93
     54 L50:	bclr *Z5 #$17
     55 L51:	bclr 88,X #$e9
     56 L52:	bclr 94,X #$d4
     57 L53:	bcs L171
     58 L54:	beq L178
     59 L55:	bge L205
     60 L56:	bgt L198
     61 L57:	bhi L155
     62 L58:	bhs L180
     63 L59:	bita #84
     64 L60:	bita *Z17
     65 L61:	bita 14,X
     66 L62:	bita symbol130
     67 L63:	bita 116,X
     68 L64:	bitb #65
     69 L65:	bitb *Z33
     70 L66:	bitb 61,X
     71 L67:	bitb symbol220
     72 L68:	bitb 135,X
     73 L69:	ble L112
     74 L70:	blo L233
     75 L71:	bls L62
     76 L72:	blt L161
     77 L73:	bmi L65
     78 L74:	bne L225
     79 L75:	bpl L252
     80 L76:	bra L103
     81 L77:	brclr *Z62 #$01 .+126
     82 L78:	brclr 151,X #$ea .+92
     83 L79:	brclr 107,X #$96 .+15
     84 L80:	brn L56
     85 L81:	brset *Z92 #$2a .+108
     86 L82:	brset 176,X #$3b .+123
     87 L83:	brset 50,X #$af .+60
     88 L84:	bset *Z84 #$ec
     89 L85:	bset 24,X #$db
     90 L86:	bset 92,X #$02
     91 L87:	bsr L26
     92 L88:	bvc L254
     93 L89:	bvs L67
     94 L90:	cba
     95 L91:	clc
     96 L92:	cli
     97 L93:	clr 251,X
     98 L94:	clr symbol250
     99 L95:	clr 170,X
    100 L96:	clra
    101 L97:	clrb
    102 L98:	clv
    103 L99:	cmpa #58
    104 L100:	cmpa *Z251
    105 L101:	cmpa 41,X
    106 L102:	cmpa symbol209
    107 L103:	cmpa 230,X
    108 L104:	cmpb #5
    109 L105:	cmpb *Z60
    110 L106:	cmpb 124,X
    111 L107:	cmpb symbol148
    112 L108:	cmpb 117,X
    113 L109:	cmpd #4056
    114 L110:	cmpd *Z190
    115 L111:	cmpd 97,X
    116 L112:	cmpd symbol137
    117 L113:	cmpd 249,X
    118 L114:	cmpx #44892
    119 L115:	cmpx *Z187
    120 L116:	cmpx 168,X
    121 L117:	cmpx symbol153
    122 L118:	cmpx 15,X
    123 L119:	cmpy #16533
    124 L120:	cmpy *Z177
    125 L121:	cmpy 235,X
    126 L122:	cmpy symbol241
    127 L123:	cmpy 179,X
    128 L124:	com 5,X
    129 L125:	com symbol239
    130 L126:	com 247,X
    131 L127:	coma
    132 L128:	comb
    133 L129:	cpd #48896
    134 L130:	cpd *Z233
    135 L131:	cpd 161,X
    136 L132:	cpd symbol58
    137 L133:	cpd 229,X
    138 L134:	cpx #36810
    139 L135:	cpx *Z11
    140 L136:	cpx 203,X
    141 L137:	cpx symbol208
    142 L138:	cpx 72,X
    143 L139:	cpy #583
    144 L140:	cpy *Z100
    145 L141:	cpy 189,X
    146 L142:	cpy symbol31
    147 L143:	cpy 35,X
    148 L144:	daa
    149 L145:	dec 30,X
    150 L146:	dec symbol168
    151 L147:	dec 28,X
    152 L148:	deca
    153 L149:	decb
    154 L150:	des
    155 L151:	dex
    156 L152:	dey
    157 L153:	eora #123
    158 L154:	eora *Z100
    159 L155:	eora 197,X
    160 L156:	eora symbol20
    161 L157:	eora 115,X
    162 L158:	eorb #90
    163 L159:	eorb *Z197
    164 L160:	eorb 94,X
    165 L161:	eorb symbol75
    166 L162:	eorb 121,X
    167 L163:	fdiv
    168 L164:	idiv
    169 L165:	inc 99,X
    170 L166:	inc symbol59
    171 L167:	inc 112,X
    172 L168:	inca
    173 L169:	incb
    174 L170:	ins
    175 L171:	inx
    176 L172:	iny
    177 L173:	jmp 100,X
    178 L174:	jmp symbol36
    179 L175:	jmp 17,X
    180 L176:	jsr *Z158
    181 L177:	jsr 9,X
    182 L178:	jsr symbol220
    183 L179:	jsr 170,X
    184 L180:	ldaa #212
    185 L181:	ldaa *Z172
    186 L182:	ldaa 242,X
    187 L183:	ldaa symbol27
    188 L184:	ldaa 16,X
    189 L185:	ldab #175
    190 L186:	ldab *Z59
    191 L187:	ldab 51,X
    192 L188:	ldab symbol205
    193 L189:	ldab 227,X
    194 L190:	ldd #50512
    195 L191:	ldd *Z72
    196 L192:	ldd 71,X
    197 L193:	ldd symbol21
    198 L194:	ldd 92,X
    199 L195:	lds #20411
    200 L196:	lds *Z111
    201 L197:	lds 34,X
    202 L198:	lds symbol25
    203 L199:	lds 186,X
    204 L200:	ldx #22427
    205 L201:	ldx *Z125
    206 L202:	ldx 245,X
    207 L203:	ldx symbol11
    208 L204:	ldx 225,X
    209 L205:	ldy #44058
    210 L206:	ldy *Z28
    211 L207:	ldy 127,X
    212 L208:	ldy symbol35
    213 L209:	ldy 248,X
    214 L210:	lsl 41,X
    215 L211:	lsl symbol248
    216 L212:	lsl 164,X
    217 L213:	lsla
    218 L214:	lslb
    219 L215:	lsld
    220 L216:	lsr 27,X
    221 L217:	lsr symbol19
    222 L218:	lsr 181,X
    223 L219:	lsra
    224 L220:	lsrb
    225 L221:	lsrd
    226 L222:	mul
    227 L223:	neg 202,X
    228 L224:	neg symbol78
    229 L225:	neg 232,X
    230 L226:	nega
    231 L227:	negb
    232 L228:	nop
    233 L229:	oraa #152
    234 L230:	oraa *Z50
    235 L231:	oraa 56,X
    236 L232:	oraa symbol224
    237 L233:	oraa 121,X
    238 L234:	orab #77
    239 L235:	orab *Z61
    240 L236:	orab 52,X
    241 L237:	orab symbol188
    242 L238:	orab 95,X
    243 L239:	psha
    244 L240:	pshb
    245 L241:	pshx
    246 L242:	pshy
    247 L243:	pula
    248 L244:	pulb
    249 L245:	pulx
    250 L246:	puly
    251 L247:	rol 78,X
    252 L248:	rol symbol119
    253 L249:	rol 250,X
    254 L250:	rola
    255 L251:	rolb
    256 L252:	ror 203,X
    257 L253:	ror symbol108
    258 L254:	ror 5,X
    259 L255:	rora
    260 L256:	rorb
    261 L257:	rti
    262 L258:	rts
    263 L259:	sba
    264 L260:	sbca #172
    265 L261:	sbca *Z134
    266 L262:	sbca 33,X
    267 L263:	sbca symbol43
    268 L264:	sbca 170,X
    269 L265:	sbcb #26
    270 L266:	sbcb *Z85
    271 L267:	sbcb 162,X
    272 L268:	sbcb symbol190
    273 L269:	sbcb 112,X
    274 L270:	sec
    275 L271:	sei
    276 L272:	sev
    277 L273:	staa *Z181
    278 L274:	staa 115,X
    279 L275:	staa symbol59
    280 L276:	staa 4,X
    281 L277:	stab *Z92
    282 L278:	stab 211,X
    283 L279:	stab symbol54
    284 L280:	stab 148,X
    285 L281:	std *Z179
    286 L282:	std 175,X
    287 L283:	std symbol226
    288 L284:	std 240,X
    289 L285:	stop
    290 L286:	sts *Z228
    291 L287:	sts 158,X
    292 L288:	sts symbol79
    293 L289:	sts 50,X
    294 L290:	stx *Z21
    295 L291:	stx 73,X
    296 L292:	stx symbol253
    297 L293:	stx 130,X
    298 L294:	sty *Z78
    299 L295:	sty 169,X
    300 L296:	sty symbol8
    301 L297:	sty 112,X
    302 L298:	suba #212
    303 L299:	suba *Z178
    304 L300:	suba 138,X
    305 L301:	suba symbol41
    306 L302:	suba 84,X
    307 L303:	subb #72
    308 L304:	subb *Z154
    309 L305:	subb 10,X
    310 L306:	subb symbol188
    311 L307:	subb 213,X
    312 L308:	subd #61710
    313 L309:	subd *Z24
    314 L310:	subd 168,X
    315 L311:	subd symbol68
    316 L312:	subd 172,X
    317 L313:	swi
    318 L314:	tab
    319 L315:	tap
    320 L316:	tba
    321 L317:	test
    322 L318:	tpa
    323 L319:	tst 91,X
    324 L320:	tst symbol243
    325 L321:	tst 142,X
    326 L322:	tsta
    327 L323:	tstb
    328 L324:	tsx
    329 L325:	tsy
    330 L326:	txs
    331 L327:	tys
    332 L328:	wai
    333 L329:	xgdx
    334 L330:	xgdy
    335 
    336