... | ... |
@@ -324,7 +324,7 @@ evaluxn(Uxn *u, Uint16 vec) |
324 | 324 |
local n = _list_0[_index_0] |
325 | 325 |
_with_0:write(('\t\tcase 0x%02x: /* %s */\n'):format(n, allops[n + 1].name)) |
326 | 326 |
end |
327 |
- _with_0:write(('\t\t\t__asm__( "evaluxn_%02x_%s:" );\n'):format(allops[i].n[1], allops[i].name)) |
|
327 |
+ _with_0:write(('\t\t\t__asm__("evaluxn_%02x_%s:");\n'):format(allops[i].n[1], allops[i].name)) |
|
328 | 328 |
_with_0:write(allops[i].body) |
329 | 329 |
_continue_0 = true |
330 | 330 |
until true |
... | ... |
@@ -229,7 +229,7 @@ evaluxn(Uxn *u, Uint16 vec) |
229 | 229 |
continue |
230 | 230 |
for n in *allops[i].n |
231 | 231 |
\write '\t\tcase 0x%02x: /* %s */\n'\format n, allops[n + 1].name |
232 |
- \write '\t\t\t__asm__( "evaluxn_%02x_%s:" );\n'\format allops[i].n[1], allops[i].name |
|
232 |
+ \write '\t\t\t__asm__("evaluxn_%02x_%s:");\n'\format allops[i].n[1], allops[i].name |
|
233 | 233 |
\write allops[i].body |
234 | 234 |
\write [[ |
235 | 235 |
#pragma GCC diagnostic pop |
... | ... |
@@ -57,14 +57,14 @@ evaluxn(Uxn *u, Uint16 vec) |
57 | 57 |
case 0xa0: /* BRK2k */ |
58 | 58 |
case 0xc0: /* BRKkr */ |
59 | 59 |
case 0xe0: /* BRK2kr */ |
60 |
- __asm__( "evaluxn_00_BRK:" ); |
|
60 |
+ __asm__("evaluxn_00_BRK:"); |
|
61 | 61 |
{ |
62 | 62 |
u->ram.ptr = 0; |
63 | 63 |
} |
64 | 64 |
break; |
65 | 65 |
case 0x01: /* LIT */ |
66 | 66 |
case 0x81: /* LITk */ |
67 |
- __asm__( "evaluxn_01_LIT:" ); |
|
67 |
+ __asm__("evaluxn_01_LIT:"); |
|
68 | 68 |
{ |
69 | 69 |
u->wst.dat[u->wst.ptr] = mempeek8(u->ram.dat, u->ram.ptr++); |
70 | 70 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -84,13 +84,13 @@ evaluxn(Uxn *u, Uint16 vec) |
84 | 84 |
case 0xa2: /* NOP2k */ |
85 | 85 |
case 0xc2: /* NOPkr */ |
86 | 86 |
case 0xe2: /* NOP2kr */ |
87 |
- __asm__( "evaluxn_02_NOP:" ); |
|
87 |
+ __asm__("evaluxn_02_NOP:"); |
|
88 | 88 |
{ |
89 | 89 |
(void)u; |
90 | 90 |
} |
91 | 91 |
break; |
92 | 92 |
case 0x03: /* POP */ |
93 |
- __asm__( "evaluxn_03_POP:" ); |
|
93 |
+ __asm__("evaluxn_03_POP:"); |
|
94 | 94 |
{ |
95 | 95 |
u->wst.dat[u->wst.ptr - 1]; |
96 | 96 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -103,7 +103,7 @@ evaluxn(Uxn *u, Uint16 vec) |
103 | 103 |
} |
104 | 104 |
break; |
105 | 105 |
case 0x04: /* DUP */ |
106 |
- __asm__( "evaluxn_04_DUP:" ); |
|
106 |
+ __asm__("evaluxn_04_DUP:"); |
|
107 | 107 |
{ |
108 | 108 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
109 | 109 |
u->wst.dat[u->wst.ptr] = a; |
... | ... |
@@ -121,7 +121,7 @@ evaluxn(Uxn *u, Uint16 vec) |
121 | 121 |
} |
122 | 122 |
break; |
123 | 123 |
case 0x05: /* SWP */ |
124 |
- __asm__( "evaluxn_05_SWP:" ); |
|
124 |
+ __asm__("evaluxn_05_SWP:"); |
|
125 | 125 |
{ |
126 | 126 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
127 | 127 |
u->wst.dat[u->wst.ptr - 2] = a; |
... | ... |
@@ -135,7 +135,7 @@ evaluxn(Uxn *u, Uint16 vec) |
135 | 135 |
} |
136 | 136 |
break; |
137 | 137 |
case 0x06: /* OVR */ |
138 |
- __asm__( "evaluxn_06_OVR:" ); |
|
138 |
+ __asm__("evaluxn_06_OVR:"); |
|
139 | 139 |
{ |
140 | 140 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
141 | 141 |
u->wst.dat[u->wst.ptr] = b; |
... | ... |
@@ -153,7 +153,7 @@ evaluxn(Uxn *u, Uint16 vec) |
153 | 153 |
} |
154 | 154 |
break; |
155 | 155 |
case 0x07: /* ROT */ |
156 |
- __asm__( "evaluxn_07_ROT:" ); |
|
156 |
+ __asm__("evaluxn_07_ROT:"); |
|
157 | 157 |
{ |
158 | 158 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3]; |
159 | 159 |
u->wst.dat[u->wst.ptr - 3] = b; |
... | ... |
@@ -168,7 +168,7 @@ evaluxn(Uxn *u, Uint16 vec) |
168 | 168 |
} |
169 | 169 |
break; |
170 | 170 |
case 0x08: /* EQU */ |
171 |
- __asm__( "evaluxn_08_EQU:" ); |
|
171 |
+ __asm__("evaluxn_08_EQU:"); |
|
172 | 172 |
{ |
173 | 173 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
174 | 174 |
u->wst.dat[u->wst.ptr - 2] = b == a; |
... | ... |
@@ -182,7 +182,7 @@ evaluxn(Uxn *u, Uint16 vec) |
182 | 182 |
} |
183 | 183 |
break; |
184 | 184 |
case 0x09: /* NEQ */ |
185 |
- __asm__( "evaluxn_09_NEQ:" ); |
|
185 |
+ __asm__("evaluxn_09_NEQ:"); |
|
186 | 186 |
{ |
187 | 187 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
188 | 188 |
u->wst.dat[u->wst.ptr - 2] = b != a; |
... | ... |
@@ -196,7 +196,7 @@ evaluxn(Uxn *u, Uint16 vec) |
196 | 196 |
} |
197 | 197 |
break; |
198 | 198 |
case 0x0a: /* GTH */ |
199 |
- __asm__( "evaluxn_0a_GTH:" ); |
|
199 |
+ __asm__("evaluxn_0a_GTH:"); |
|
200 | 200 |
{ |
201 | 201 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
202 | 202 |
u->wst.dat[u->wst.ptr - 2] = b > a; |
... | ... |
@@ -210,7 +210,7 @@ evaluxn(Uxn *u, Uint16 vec) |
210 | 210 |
} |
211 | 211 |
break; |
212 | 212 |
case 0x0b: /* LTH */ |
213 |
- __asm__( "evaluxn_0b_LTH:" ); |
|
213 |
+ __asm__("evaluxn_0b_LTH:"); |
|
214 | 214 |
{ |
215 | 215 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
216 | 216 |
u->wst.dat[u->wst.ptr - 2] = b < a; |
... | ... |
@@ -224,7 +224,7 @@ evaluxn(Uxn *u, Uint16 vec) |
224 | 224 |
} |
225 | 225 |
break; |
226 | 226 |
case 0x0c: /* JMP */ |
227 |
- __asm__( "evaluxn_0c_JMP:" ); |
|
227 |
+ __asm__("evaluxn_0c_JMP:"); |
|
228 | 228 |
{ |
229 | 229 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
230 | 230 |
u->ram.ptr += (Sint8)a; |
... | ... |
@@ -238,7 +238,7 @@ evaluxn(Uxn *u, Uint16 vec) |
238 | 238 |
} |
239 | 239 |
break; |
240 | 240 |
case 0x0d: /* JCN */ |
241 |
- __asm__( "evaluxn_0d_JCN:" ); |
|
241 |
+ __asm__("evaluxn_0d_JCN:"); |
|
242 | 242 |
{ |
243 | 243 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
244 | 244 |
if(u->wst.dat[u->wst.ptr - 2]) u->ram.ptr += (Sint8)a; |
... | ... |
@@ -252,7 +252,7 @@ evaluxn(Uxn *u, Uint16 vec) |
252 | 252 |
} |
253 | 253 |
break; |
254 | 254 |
case 0x0e: /* JSR */ |
255 |
- __asm__( "evaluxn_0e_JSR:" ); |
|
255 |
+ __asm__("evaluxn_0e_JSR:"); |
|
256 | 256 |
{ |
257 | 257 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
258 | 258 |
u->rst.dat[u->rst.ptr] = u->ram.ptr >> 8; |
... | ... |
@@ -275,7 +275,7 @@ evaluxn(Uxn *u, Uint16 vec) |
275 | 275 |
} |
276 | 276 |
break; |
277 | 277 |
case 0x0f: /* STH */ |
278 |
- __asm__( "evaluxn_0f_STH:" ); |
|
278 |
+ __asm__("evaluxn_0f_STH:"); |
|
279 | 279 |
{ |
280 | 280 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
281 | 281 |
u->rst.dat[u->rst.ptr] = a; |
... | ... |
@@ -296,7 +296,7 @@ evaluxn(Uxn *u, Uint16 vec) |
296 | 296 |
} |
297 | 297 |
break; |
298 | 298 |
case 0x10: /* LDZ */ |
299 |
- __asm__( "evaluxn_10_LDZ:" ); |
|
299 |
+ __asm__("evaluxn_10_LDZ:"); |
|
300 | 300 |
{ |
301 | 301 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
302 | 302 |
u->wst.dat[u->wst.ptr - 1] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -309,7 +309,7 @@ evaluxn(Uxn *u, Uint16 vec) |
309 | 309 |
} |
310 | 310 |
break; |
311 | 311 |
case 0x11: /* STZ */ |
312 |
- __asm__( "evaluxn_11_STZ:" ); |
|
312 |
+ __asm__("evaluxn_11_STZ:"); |
|
313 | 313 |
{ |
314 | 314 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
315 | 315 |
Uint8 b = u->wst.dat[u->wst.ptr - 2]; |
... | ... |
@@ -324,7 +324,7 @@ evaluxn(Uxn *u, Uint16 vec) |
324 | 324 |
} |
325 | 325 |
break; |
326 | 326 |
case 0x12: /* LDR */ |
327 |
- __asm__( "evaluxn_12_LDR:" ); |
|
327 |
+ __asm__("evaluxn_12_LDR:"); |
|
328 | 328 |
{ |
329 | 329 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
330 | 330 |
u->wst.dat[u->wst.ptr - 1] = mempeek8(u->ram.dat, u->ram.ptr + (Sint8)a); |
... | ... |
@@ -337,7 +337,7 @@ evaluxn(Uxn *u, Uint16 vec) |
337 | 337 |
} |
338 | 338 |
break; |
339 | 339 |
case 0x13: /* STR */ |
340 |
- __asm__( "evaluxn_13_STR:" ); |
|
340 |
+ __asm__("evaluxn_13_STR:"); |
|
341 | 341 |
{ |
342 | 342 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
343 | 343 |
Uint8 b = u->wst.dat[u->wst.ptr - 2]; |
... | ... |
@@ -352,7 +352,7 @@ evaluxn(Uxn *u, Uint16 vec) |
352 | 352 |
} |
353 | 353 |
break; |
354 | 354 |
case 0x14: /* LDA */ |
355 |
- __asm__( "evaluxn_14_LDA:" ); |
|
355 |
+ __asm__("evaluxn_14_LDA:"); |
|
356 | 356 |
{ |
357 | 357 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
358 | 358 |
u->wst.dat[u->wst.ptr - 2] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -366,7 +366,7 @@ evaluxn(Uxn *u, Uint16 vec) |
366 | 366 |
} |
367 | 367 |
break; |
368 | 368 |
case 0x15: /* STA */ |
369 |
- __asm__( "evaluxn_15_STA:" ); |
|
369 |
+ __asm__("evaluxn_15_STA:"); |
|
370 | 370 |
{ |
371 | 371 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
372 | 372 |
Uint8 b = u->wst.dat[u->wst.ptr - 3]; |
... | ... |
@@ -381,7 +381,7 @@ evaluxn(Uxn *u, Uint16 vec) |
381 | 381 |
} |
382 | 382 |
break; |
383 | 383 |
case 0x16: /* DEI */ |
384 |
- __asm__( "evaluxn_16_DEI:" ); |
|
384 |
+ __asm__("evaluxn_16_DEI:"); |
|
385 | 385 |
{ |
386 | 386 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
387 | 387 |
u->wst.dat[u->wst.ptr - 1] = devpeek8(&u->dev[a >> 4], a); |
... | ... |
@@ -394,7 +394,7 @@ evaluxn(Uxn *u, Uint16 vec) |
394 | 394 |
} |
395 | 395 |
break; |
396 | 396 |
case 0x17: /* DEO */ |
397 |
- __asm__( "evaluxn_17_DEO:" ); |
|
397 |
+ __asm__("evaluxn_17_DEO:"); |
|
398 | 398 |
{ |
399 | 399 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
400 | 400 |
devpoke8(&u->dev[a >> 4], a, b); |
... | ... |
@@ -408,7 +408,7 @@ evaluxn(Uxn *u, Uint16 vec) |
408 | 408 |
} |
409 | 409 |
break; |
410 | 410 |
case 0x18: /* ADD */ |
411 |
- __asm__( "evaluxn_18_ADD:" ); |
|
411 |
+ __asm__("evaluxn_18_ADD:"); |
|
412 | 412 |
{ |
413 | 413 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
414 | 414 |
u->wst.dat[u->wst.ptr - 2] = b + a; |
... | ... |
@@ -422,7 +422,7 @@ evaluxn(Uxn *u, Uint16 vec) |
422 | 422 |
} |
423 | 423 |
break; |
424 | 424 |
case 0x19: /* SUB */ |
425 |
- __asm__( "evaluxn_19_SUB:" ); |
|
425 |
+ __asm__("evaluxn_19_SUB:"); |
|
426 | 426 |
{ |
427 | 427 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
428 | 428 |
u->wst.dat[u->wst.ptr - 2] = b - a; |
... | ... |
@@ -436,7 +436,7 @@ evaluxn(Uxn *u, Uint16 vec) |
436 | 436 |
} |
437 | 437 |
break; |
438 | 438 |
case 0x1a: /* MUL */ |
439 |
- __asm__( "evaluxn_1a_MUL:" ); |
|
439 |
+ __asm__("evaluxn_1a_MUL:"); |
|
440 | 440 |
{ |
441 | 441 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
442 | 442 |
u->wst.dat[u->wst.ptr - 2] = b * a; |
... | ... |
@@ -450,7 +450,7 @@ evaluxn(Uxn *u, Uint16 vec) |
450 | 450 |
} |
451 | 451 |
break; |
452 | 452 |
case 0x1b: /* DIV */ |
453 |
- __asm__( "evaluxn_1b_DIV:" ); |
|
453 |
+ __asm__("evaluxn_1b_DIV:"); |
|
454 | 454 |
{ |
455 | 455 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
456 | 456 |
u->wst.dat[u->wst.ptr - 2] = b / a; |
... | ... |
@@ -464,7 +464,7 @@ evaluxn(Uxn *u, Uint16 vec) |
464 | 464 |
} |
465 | 465 |
break; |
466 | 466 |
case 0x1c: /* AND */ |
467 |
- __asm__( "evaluxn_1c_AND:" ); |
|
467 |
+ __asm__("evaluxn_1c_AND:"); |
|
468 | 468 |
{ |
469 | 469 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
470 | 470 |
u->wst.dat[u->wst.ptr - 2] = b & a; |
... | ... |
@@ -478,7 +478,7 @@ evaluxn(Uxn *u, Uint16 vec) |
478 | 478 |
} |
479 | 479 |
break; |
480 | 480 |
case 0x1d: /* ORA */ |
481 |
- __asm__( "evaluxn_1d_ORA:" ); |
|
481 |
+ __asm__("evaluxn_1d_ORA:"); |
|
482 | 482 |
{ |
483 | 483 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
484 | 484 |
u->wst.dat[u->wst.ptr - 2] = b | a; |
... | ... |
@@ -492,7 +492,7 @@ evaluxn(Uxn *u, Uint16 vec) |
492 | 492 |
} |
493 | 493 |
break; |
494 | 494 |
case 0x1e: /* EOR */ |
495 |
- __asm__( "evaluxn_1e_EOR:" ); |
|
495 |
+ __asm__("evaluxn_1e_EOR:"); |
|
496 | 496 |
{ |
497 | 497 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
498 | 498 |
u->wst.dat[u->wst.ptr - 2] = b ^ a; |
... | ... |
@@ -506,7 +506,7 @@ evaluxn(Uxn *u, Uint16 vec) |
506 | 506 |
} |
507 | 507 |
break; |
508 | 508 |
case 0x1f: /* SFT */ |
509 |
- __asm__( "evaluxn_1f_SFT:" ); |
|
509 |
+ __asm__("evaluxn_1f_SFT:"); |
|
510 | 510 |
{ |
511 | 511 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
512 | 512 |
u->wst.dat[u->wst.ptr - 2] = b >> (a & 0x07) << ((a & 0x70) >> 4); |
... | ... |
@@ -521,7 +521,7 @@ evaluxn(Uxn *u, Uint16 vec) |
521 | 521 |
break; |
522 | 522 |
case 0x21: /* LIT2 */ |
523 | 523 |
case 0xa1: /* LIT2k */ |
524 |
- __asm__( "evaluxn_21_LIT2:" ); |
|
524 |
+ __asm__("evaluxn_21_LIT2:"); |
|
525 | 525 |
{ |
526 | 526 |
u->wst.dat[u->wst.ptr] = mempeek8(u->ram.dat, u->ram.ptr++); |
527 | 527 |
u->wst.dat[u->wst.ptr + 1] = mempeek8(u->ram.dat, u->ram.ptr++); |
... | ... |
@@ -535,7 +535,7 @@ evaluxn(Uxn *u, Uint16 vec) |
535 | 535 |
} |
536 | 536 |
break; |
537 | 537 |
case 0x23: /* POP2 */ |
538 |
- __asm__( "evaluxn_23_POP2:" ); |
|
538 |
+ __asm__("evaluxn_23_POP2:"); |
|
539 | 539 |
{ |
540 | 540 |
(u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
541 | 541 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -548,7 +548,7 @@ evaluxn(Uxn *u, Uint16 vec) |
548 | 548 |
} |
549 | 549 |
break; |
550 | 550 |
case 0x24: /* DUP2 */ |
551 |
- __asm__( "evaluxn_24_DUP2:" ); |
|
551 |
+ __asm__("evaluxn_24_DUP2:"); |
|
552 | 552 |
{ |
553 | 553 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
554 | 554 |
u->wst.dat[u->wst.ptr] = b; |
... | ... |
@@ -567,7 +567,7 @@ evaluxn(Uxn *u, Uint16 vec) |
567 | 567 |
} |
568 | 568 |
break; |
569 | 569 |
case 0x25: /* SWP2 */ |
570 |
- __asm__( "evaluxn_25_SWP2:" ); |
|
570 |
+ __asm__("evaluxn_25_SWP2:"); |
|
571 | 571 |
{ |
572 | 572 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3], d = u->wst.dat[u->wst.ptr - 4]; |
573 | 573 |
u->wst.dat[u->wst.ptr - 4] = b; |
... | ... |
@@ -583,7 +583,7 @@ evaluxn(Uxn *u, Uint16 vec) |
583 | 583 |
} |
584 | 584 |
break; |
585 | 585 |
case 0x26: /* OVR2 */ |
586 |
- __asm__( "evaluxn_26_OVR2:" ); |
|
586 |
+ __asm__("evaluxn_26_OVR2:"); |
|
587 | 587 |
{ |
588 | 588 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3], d = u->wst.dat[u->wst.ptr - 4]; |
589 | 589 |
u->wst.dat[u->wst.ptr] = d; |
... | ... |
@@ -602,7 +602,7 @@ evaluxn(Uxn *u, Uint16 vec) |
602 | 602 |
} |
603 | 603 |
break; |
604 | 604 |
case 0x27: /* ROT2 */ |
605 |
- __asm__( "evaluxn_27_ROT2:" ); |
|
605 |
+ __asm__("evaluxn_27_ROT2:"); |
|
606 | 606 |
{ |
607 | 607 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3], d = u->wst.dat[u->wst.ptr - 4], e = u->wst.dat[u->wst.ptr - 5], f = u->wst.dat[u->wst.ptr - 6]; |
608 | 608 |
u->wst.dat[u->wst.ptr - 6] = d; |
... | ... |
@@ -620,7 +620,7 @@ evaluxn(Uxn *u, Uint16 vec) |
620 | 620 |
} |
621 | 621 |
break; |
622 | 622 |
case 0x28: /* EQU2 */ |
623 |
- __asm__( "evaluxn_28_EQU2:" ); |
|
623 |
+ __asm__("evaluxn_28_EQU2:"); |
|
624 | 624 |
{ |
625 | 625 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
626 | 626 |
u->wst.dat[u->wst.ptr - 4] = b == a; |
... | ... |
@@ -634,7 +634,7 @@ evaluxn(Uxn *u, Uint16 vec) |
634 | 634 |
} |
635 | 635 |
break; |
636 | 636 |
case 0x29: /* NEQ2 */ |
637 |
- __asm__( "evaluxn_29_NEQ2:" ); |
|
637 |
+ __asm__("evaluxn_29_NEQ2:"); |
|
638 | 638 |
{ |
639 | 639 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
640 | 640 |
u->wst.dat[u->wst.ptr - 4] = b != a; |
... | ... |
@@ -648,7 +648,7 @@ evaluxn(Uxn *u, Uint16 vec) |
648 | 648 |
} |
649 | 649 |
break; |
650 | 650 |
case 0x2a: /* GTH2 */ |
651 |
- __asm__( "evaluxn_2a_GTH2:" ); |
|
651 |
+ __asm__("evaluxn_2a_GTH2:"); |
|
652 | 652 |
{ |
653 | 653 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
654 | 654 |
u->wst.dat[u->wst.ptr - 4] = b > a; |
... | ... |
@@ -662,7 +662,7 @@ evaluxn(Uxn *u, Uint16 vec) |
662 | 662 |
} |
663 | 663 |
break; |
664 | 664 |
case 0x2b: /* LTH2 */ |
665 |
- __asm__( "evaluxn_2b_LTH2:" ); |
|
665 |
+ __asm__("evaluxn_2b_LTH2:"); |
|
666 | 666 |
{ |
667 | 667 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
668 | 668 |
u->wst.dat[u->wst.ptr - 4] = b < a; |
... | ... |
@@ -676,7 +676,7 @@ evaluxn(Uxn *u, Uint16 vec) |
676 | 676 |
} |
677 | 677 |
break; |
678 | 678 |
case 0x2c: /* JMP2 */ |
679 |
- __asm__( "evaluxn_2c_JMP2:" ); |
|
679 |
+ __asm__("evaluxn_2c_JMP2:"); |
|
680 | 680 |
{ |
681 | 681 |
u->ram.ptr = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
682 | 682 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -689,7 +689,7 @@ evaluxn(Uxn *u, Uint16 vec) |
689 | 689 |
} |
690 | 690 |
break; |
691 | 691 |
case 0x2d: /* JCN2 */ |
692 |
- __asm__( "evaluxn_2d_JCN2:" ); |
|
692 |
+ __asm__("evaluxn_2d_JCN2:"); |
|
693 | 693 |
{ |
694 | 694 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
695 | 695 |
if(u->wst.dat[u->wst.ptr - 3]) u->ram.ptr = a; |
... | ... |
@@ -703,7 +703,7 @@ evaluxn(Uxn *u, Uint16 vec) |
703 | 703 |
} |
704 | 704 |
break; |
705 | 705 |
case 0x2e: /* JSR2 */ |
706 |
- __asm__( "evaluxn_2e_JSR2:" ); |
|
706 |
+ __asm__("evaluxn_2e_JSR2:"); |
|
707 | 707 |
{ |
708 | 708 |
u->rst.dat[u->rst.ptr] = u->ram.ptr >> 8; |
709 | 709 |
u->rst.dat[u->rst.ptr + 1] = u->ram.ptr & 0xff; |
... | ... |
@@ -725,7 +725,7 @@ evaluxn(Uxn *u, Uint16 vec) |
725 | 725 |
} |
726 | 726 |
break; |
727 | 727 |
case 0x2f: /* STH2 */ |
728 |
- __asm__( "evaluxn_2f_STH2:" ); |
|
728 |
+ __asm__("evaluxn_2f_STH2:"); |
|
729 | 729 |
{ |
730 | 730 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
731 | 731 |
u->rst.dat[u->rst.ptr] = b; |
... | ... |
@@ -747,7 +747,7 @@ evaluxn(Uxn *u, Uint16 vec) |
747 | 747 |
} |
748 | 748 |
break; |
749 | 749 |
case 0x30: /* LDZ2 */ |
750 |
- __asm__( "evaluxn_30_LDZ2:" ); |
|
750 |
+ __asm__("evaluxn_30_LDZ2:"); |
|
751 | 751 |
{ |
752 | 752 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
753 | 753 |
u->wst.dat[u->wst.ptr - 1] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -766,7 +766,7 @@ evaluxn(Uxn *u, Uint16 vec) |
766 | 766 |
} |
767 | 767 |
break; |
768 | 768 |
case 0x31: /* STZ2 */ |
769 |
- __asm__( "evaluxn_31_STZ2:" ); |
|
769 |
+ __asm__("evaluxn_31_STZ2:"); |
|
770 | 770 |
{ |
771 | 771 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
772 | 772 |
Uint16 b = (u->wst.dat[u->wst.ptr - 2] | (u->wst.dat[u->wst.ptr - 3] << 8)); |
... | ... |
@@ -781,7 +781,7 @@ evaluxn(Uxn *u, Uint16 vec) |
781 | 781 |
} |
782 | 782 |
break; |
783 | 783 |
case 0x32: /* LDR2 */ |
784 |
- __asm__( "evaluxn_32_LDR2:" ); |
|
784 |
+ __asm__("evaluxn_32_LDR2:"); |
|
785 | 785 |
{ |
786 | 786 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
787 | 787 |
u->wst.dat[u->wst.ptr - 1] = mempeek8(u->ram.dat, u->ram.ptr + (Sint8)a); |
... | ... |
@@ -800,7 +800,7 @@ evaluxn(Uxn *u, Uint16 vec) |
800 | 800 |
} |
801 | 801 |
break; |
802 | 802 |
case 0x33: /* STR2 */ |
803 |
- __asm__( "evaluxn_33_STR2:" ); |
|
803 |
+ __asm__("evaluxn_33_STR2:"); |
|
804 | 804 |
{ |
805 | 805 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
806 | 806 |
Uint16 b = (u->wst.dat[u->wst.ptr - 2] | (u->wst.dat[u->wst.ptr - 3] << 8)); |
... | ... |
@@ -815,7 +815,7 @@ evaluxn(Uxn *u, Uint16 vec) |
815 | 815 |
} |
816 | 816 |
break; |
817 | 817 |
case 0x34: /* LDA2 */ |
818 |
- __asm__( "evaluxn_34_LDA2:" ); |
|
818 |
+ __asm__("evaluxn_34_LDA2:"); |
|
819 | 819 |
{ |
820 | 820 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
821 | 821 |
u->wst.dat[u->wst.ptr - 2] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -829,7 +829,7 @@ evaluxn(Uxn *u, Uint16 vec) |
829 | 829 |
} |
830 | 830 |
break; |
831 | 831 |
case 0x35: /* STA2 */ |
832 |
- __asm__( "evaluxn_35_STA2:" ); |
|
832 |
+ __asm__("evaluxn_35_STA2:"); |
|
833 | 833 |
{ |
834 | 834 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
835 | 835 |
Uint16 b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
... | ... |
@@ -844,7 +844,7 @@ evaluxn(Uxn *u, Uint16 vec) |
844 | 844 |
} |
845 | 845 |
break; |
846 | 846 |
case 0x36: /* DEI2 */ |
847 |
- __asm__( "evaluxn_36_DEI2:" ); |
|
847 |
+ __asm__("evaluxn_36_DEI2:"); |
|
848 | 848 |
{ |
849 | 849 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
850 | 850 |
u->wst.dat[u->wst.ptr - 1] = devpeek8(&u->dev[a >> 4], a); |
... | ... |
@@ -863,7 +863,7 @@ evaluxn(Uxn *u, Uint16 vec) |
863 | 863 |
} |
864 | 864 |
break; |
865 | 865 |
case 0x37: /* DEO2 */ |
866 |
- __asm__( "evaluxn_37_DEO2:" ); |
|
866 |
+ __asm__("evaluxn_37_DEO2:"); |
|
867 | 867 |
{ |
868 | 868 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
869 | 869 |
Uint16 b = (u->wst.dat[u->wst.ptr - 2] | (u->wst.dat[u->wst.ptr - 3] << 8)); |
... | ... |
@@ -878,7 +878,7 @@ evaluxn(Uxn *u, Uint16 vec) |
878 | 878 |
} |
879 | 879 |
break; |
880 | 880 |
case 0x38: /* ADD2 */ |
881 |
- __asm__( "evaluxn_38_ADD2:" ); |
|
881 |
+ __asm__("evaluxn_38_ADD2:"); |
|
882 | 882 |
{ |
883 | 883 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
884 | 884 |
u->wst.dat[u->wst.ptr - 4] = (b + a) >> 8; |
... | ... |
@@ -893,7 +893,7 @@ evaluxn(Uxn *u, Uint16 vec) |
893 | 893 |
} |
894 | 894 |
break; |
895 | 895 |
case 0x39: /* SUB2 */ |
896 |
- __asm__( "evaluxn_39_SUB2:" ); |
|
896 |
+ __asm__("evaluxn_39_SUB2:"); |
|
897 | 897 |
{ |
898 | 898 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
899 | 899 |
u->wst.dat[u->wst.ptr - 4] = (b - a) >> 8; |
... | ... |
@@ -908,7 +908,7 @@ evaluxn(Uxn *u, Uint16 vec) |
908 | 908 |
} |
909 | 909 |
break; |
910 | 910 |
case 0x3a: /* MUL2 */ |
911 |
- __asm__( "evaluxn_3a_MUL2:" ); |
|
911 |
+ __asm__("evaluxn_3a_MUL2:"); |
|
912 | 912 |
{ |
913 | 913 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
914 | 914 |
u->wst.dat[u->wst.ptr - 4] = (b * a) >> 8; |
... | ... |
@@ -923,7 +923,7 @@ evaluxn(Uxn *u, Uint16 vec) |
923 | 923 |
} |
924 | 924 |
break; |
925 | 925 |
case 0x3b: /* DIV2 */ |
926 |
- __asm__( "evaluxn_3b_DIV2:" ); |
|
926 |
+ __asm__("evaluxn_3b_DIV2:"); |
|
927 | 927 |
{ |
928 | 928 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
929 | 929 |
u->wst.dat[u->wst.ptr - 4] = (b / a) >> 8; |
... | ... |
@@ -938,7 +938,7 @@ evaluxn(Uxn *u, Uint16 vec) |
938 | 938 |
} |
939 | 939 |
break; |
940 | 940 |
case 0x3c: /* AND2 */ |
941 |
- __asm__( "evaluxn_3c_AND2:" ); |
|
941 |
+ __asm__("evaluxn_3c_AND2:"); |
|
942 | 942 |
{ |
943 | 943 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3], d = u->wst.dat[u->wst.ptr - 4]; |
944 | 944 |
u->wst.dat[u->wst.ptr - 4] = d & b; |
... | ... |
@@ -953,7 +953,7 @@ evaluxn(Uxn *u, Uint16 vec) |
953 | 953 |
} |
954 | 954 |
break; |
955 | 955 |
case 0x3d: /* ORA2 */ |
956 |
- __asm__( "evaluxn_3d_ORA2:" ); |
|
956 |
+ __asm__("evaluxn_3d_ORA2:"); |
|
957 | 957 |
{ |
958 | 958 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3], d = u->wst.dat[u->wst.ptr - 4]; |
959 | 959 |
u->wst.dat[u->wst.ptr - 4] = d | b; |
... | ... |
@@ -968,7 +968,7 @@ evaluxn(Uxn *u, Uint16 vec) |
968 | 968 |
} |
969 | 969 |
break; |
970 | 970 |
case 0x3e: /* EOR2 */ |
971 |
- __asm__( "evaluxn_3e_EOR2:" ); |
|
971 |
+ __asm__("evaluxn_3e_EOR2:"); |
|
972 | 972 |
{ |
973 | 973 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3], d = u->wst.dat[u->wst.ptr - 4]; |
974 | 974 |
u->wst.dat[u->wst.ptr - 4] = d ^ b; |
... | ... |
@@ -983,7 +983,7 @@ evaluxn(Uxn *u, Uint16 vec) |
983 | 983 |
} |
984 | 984 |
break; |
985 | 985 |
case 0x3f: /* SFT2 */ |
986 |
- __asm__( "evaluxn_3f_SFT2:" ); |
|
986 |
+ __asm__("evaluxn_3f_SFT2:"); |
|
987 | 987 |
{ |
988 | 988 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
989 | 989 |
Uint16 b = (u->wst.dat[u->wst.ptr - 2] | (u->wst.dat[u->wst.ptr - 3] << 8)); |
... | ... |
@@ -1000,7 +1000,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1000 | 1000 |
break; |
1001 | 1001 |
case 0x41: /* LITr */ |
1002 | 1002 |
case 0xc1: /* LITkr */ |
1003 |
- __asm__( "evaluxn_41_LITr:" ); |
|
1003 |
+ __asm__("evaluxn_41_LITr:"); |
|
1004 | 1004 |
{ |
1005 | 1005 |
u->rst.dat[u->rst.ptr] = mempeek8(u->ram.dat, u->ram.ptr++); |
1006 | 1006 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -1013,7 +1013,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1013 | 1013 |
} |
1014 | 1014 |
break; |
1015 | 1015 |
case 0x43: /* POPr */ |
1016 |
- __asm__( "evaluxn_43_POPr:" ); |
|
1016 |
+ __asm__("evaluxn_43_POPr:"); |
|
1017 | 1017 |
{ |
1018 | 1018 |
u->rst.dat[u->rst.ptr - 1]; |
1019 | 1019 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -1026,7 +1026,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1026 | 1026 |
} |
1027 | 1027 |
break; |
1028 | 1028 |
case 0x44: /* DUPr */ |
1029 |
- __asm__( "evaluxn_44_DUPr:" ); |
|
1029 |
+ __asm__("evaluxn_44_DUPr:"); |
|
1030 | 1030 |
{ |
1031 | 1031 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1032 | 1032 |
u->rst.dat[u->rst.ptr] = a; |
... | ... |
@@ -1044,7 +1044,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1044 | 1044 |
} |
1045 | 1045 |
break; |
1046 | 1046 |
case 0x45: /* SWPr */ |
1047 |
- __asm__( "evaluxn_45_SWPr:" ); |
|
1047 |
+ __asm__("evaluxn_45_SWPr:"); |
|
1048 | 1048 |
{ |
1049 | 1049 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1050 | 1050 |
u->rst.dat[u->rst.ptr - 2] = a; |
... | ... |
@@ -1058,7 +1058,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1058 | 1058 |
} |
1059 | 1059 |
break; |
1060 | 1060 |
case 0x46: /* OVRr */ |
1061 |
- __asm__( "evaluxn_46_OVRr:" ); |
|
1061 |
+ __asm__("evaluxn_46_OVRr:"); |
|
1062 | 1062 |
{ |
1063 | 1063 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1064 | 1064 |
u->rst.dat[u->rst.ptr] = b; |
... | ... |
@@ -1076,7 +1076,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1076 | 1076 |
} |
1077 | 1077 |
break; |
1078 | 1078 |
case 0x47: /* ROTr */ |
1079 |
- __asm__( "evaluxn_47_ROTr:" ); |
|
1079 |
+ __asm__("evaluxn_47_ROTr:"); |
|
1080 | 1080 |
{ |
1081 | 1081 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3]; |
1082 | 1082 |
u->rst.dat[u->rst.ptr - 3] = b; |
... | ... |
@@ -1091,7 +1091,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1091 | 1091 |
} |
1092 | 1092 |
break; |
1093 | 1093 |
case 0x48: /* EQUr */ |
1094 |
- __asm__( "evaluxn_48_EQUr:" ); |
|
1094 |
+ __asm__("evaluxn_48_EQUr:"); |
|
1095 | 1095 |
{ |
1096 | 1096 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1097 | 1097 |
u->rst.dat[u->rst.ptr - 2] = b == a; |
... | ... |
@@ -1105,7 +1105,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1105 | 1105 |
} |
1106 | 1106 |
break; |
1107 | 1107 |
case 0x49: /* NEQr */ |
1108 |
- __asm__( "evaluxn_49_NEQr:" ); |
|
1108 |
+ __asm__("evaluxn_49_NEQr:"); |
|
1109 | 1109 |
{ |
1110 | 1110 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1111 | 1111 |
u->rst.dat[u->rst.ptr - 2] = b != a; |
... | ... |
@@ -1119,7 +1119,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1119 | 1119 |
} |
1120 | 1120 |
break; |
1121 | 1121 |
case 0x4a: /* GTHr */ |
1122 |
- __asm__( "evaluxn_4a_GTHr:" ); |
|
1122 |
+ __asm__("evaluxn_4a_GTHr:"); |
|
1123 | 1123 |
{ |
1124 | 1124 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1125 | 1125 |
u->rst.dat[u->rst.ptr - 2] = b > a; |
... | ... |
@@ -1133,7 +1133,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1133 | 1133 |
} |
1134 | 1134 |
break; |
1135 | 1135 |
case 0x4b: /* LTHr */ |
1136 |
- __asm__( "evaluxn_4b_LTHr:" ); |
|
1136 |
+ __asm__("evaluxn_4b_LTHr:"); |
|
1137 | 1137 |
{ |
1138 | 1138 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1139 | 1139 |
u->rst.dat[u->rst.ptr - 2] = b < a; |
... | ... |
@@ -1147,7 +1147,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1147 | 1147 |
} |
1148 | 1148 |
break; |
1149 | 1149 |
case 0x4c: /* JMPr */ |
1150 |
- __asm__( "evaluxn_4c_JMPr:" ); |
|
1150 |
+ __asm__("evaluxn_4c_JMPr:"); |
|
1151 | 1151 |
{ |
1152 | 1152 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1153 | 1153 |
u->ram.ptr += (Sint8)a; |
... | ... |
@@ -1161,7 +1161,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1161 | 1161 |
} |
1162 | 1162 |
break; |
1163 | 1163 |
case 0x4d: /* JCNr */ |
1164 |
- __asm__( "evaluxn_4d_JCNr:" ); |
|
1164 |
+ __asm__("evaluxn_4d_JCNr:"); |
|
1165 | 1165 |
{ |
1166 | 1166 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1167 | 1167 |
if(u->rst.dat[u->rst.ptr - 2]) u->ram.ptr += (Sint8)a; |
... | ... |
@@ -1175,7 +1175,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1175 | 1175 |
} |
1176 | 1176 |
break; |
1177 | 1177 |
case 0x4e: /* JSRr */ |
1178 |
- __asm__( "evaluxn_4e_JSRr:" ); |
|
1178 |
+ __asm__("evaluxn_4e_JSRr:"); |
|
1179 | 1179 |
{ |
1180 | 1180 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1181 | 1181 |
u->wst.dat[u->wst.ptr] = u->ram.ptr >> 8; |
... | ... |
@@ -1198,7 +1198,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1198 | 1198 |
} |
1199 | 1199 |
break; |
1200 | 1200 |
case 0x4f: /* STHr */ |
1201 |
- __asm__( "evaluxn_4f_STHr:" ); |
|
1201 |
+ __asm__("evaluxn_4f_STHr:"); |
|
1202 | 1202 |
{ |
1203 | 1203 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1204 | 1204 |
u->wst.dat[u->wst.ptr] = a; |
... | ... |
@@ -1219,7 +1219,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1219 | 1219 |
} |
1220 | 1220 |
break; |
1221 | 1221 |
case 0x50: /* LDZr */ |
1222 |
- __asm__( "evaluxn_50_LDZr:" ); |
|
1222 |
+ __asm__("evaluxn_50_LDZr:"); |
|
1223 | 1223 |
{ |
1224 | 1224 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1225 | 1225 |
u->rst.dat[u->rst.ptr - 1] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -1232,7 +1232,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1232 | 1232 |
} |
1233 | 1233 |
break; |
1234 | 1234 |
case 0x51: /* STZr */ |
1235 |
- __asm__( "evaluxn_51_STZr:" ); |
|
1235 |
+ __asm__("evaluxn_51_STZr:"); |
|
1236 | 1236 |
{ |
1237 | 1237 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1238 | 1238 |
Uint8 b = u->rst.dat[u->rst.ptr - 2]; |
... | ... |
@@ -1247,7 +1247,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1247 | 1247 |
} |
1248 | 1248 |
break; |
1249 | 1249 |
case 0x52: /* LDRr */ |
1250 |
- __asm__( "evaluxn_52_LDRr:" ); |
|
1250 |
+ __asm__("evaluxn_52_LDRr:"); |
|
1251 | 1251 |
{ |
1252 | 1252 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1253 | 1253 |
u->rst.dat[u->rst.ptr - 1] = mempeek8(u->ram.dat, u->ram.ptr + (Sint8)a); |
... | ... |
@@ -1260,7 +1260,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1260 | 1260 |
} |
1261 | 1261 |
break; |
1262 | 1262 |
case 0x53: /* STRr */ |
1263 |
- __asm__( "evaluxn_53_STRr:" ); |
|
1263 |
+ __asm__("evaluxn_53_STRr:"); |
|
1264 | 1264 |
{ |
1265 | 1265 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1266 | 1266 |
Uint8 b = u->rst.dat[u->rst.ptr - 2]; |
... | ... |
@@ -1275,7 +1275,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1275 | 1275 |
} |
1276 | 1276 |
break; |
1277 | 1277 |
case 0x54: /* LDAr */ |
1278 |
- __asm__( "evaluxn_54_LDAr:" ); |
|
1278 |
+ __asm__("evaluxn_54_LDAr:"); |
|
1279 | 1279 |
{ |
1280 | 1280 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
1281 | 1281 |
u->rst.dat[u->rst.ptr - 2] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -1289,7 +1289,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1289 | 1289 |
} |
1290 | 1290 |
break; |
1291 | 1291 |
case 0x55: /* STAr */ |
1292 |
- __asm__( "evaluxn_55_STAr:" ); |
|
1292 |
+ __asm__("evaluxn_55_STAr:"); |
|
1293 | 1293 |
{ |
1294 | 1294 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
1295 | 1295 |
Uint8 b = u->rst.dat[u->rst.ptr - 3]; |
... | ... |
@@ -1304,7 +1304,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1304 | 1304 |
} |
1305 | 1305 |
break; |
1306 | 1306 |
case 0x56: /* DEIr */ |
1307 |
- __asm__( "evaluxn_56_DEIr:" ); |
|
1307 |
+ __asm__("evaluxn_56_DEIr:"); |
|
1308 | 1308 |
{ |
1309 | 1309 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1310 | 1310 |
u->rst.dat[u->rst.ptr - 1] = devpeek8(&u->dev[a >> 4], a); |
... | ... |
@@ -1317,7 +1317,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1317 | 1317 |
} |
1318 | 1318 |
break; |
1319 | 1319 |
case 0x57: /* DEOr */ |
1320 |
- __asm__( "evaluxn_57_DEOr:" ); |
|
1320 |
+ __asm__("evaluxn_57_DEOr:"); |
|
1321 | 1321 |
{ |
1322 | 1322 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1323 | 1323 |
devpoke8(&u->dev[a >> 4], a, b); |
... | ... |
@@ -1331,7 +1331,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1331 | 1331 |
} |
1332 | 1332 |
break; |
1333 | 1333 |
case 0x58: /* ADDr */ |
1334 |
- __asm__( "evaluxn_58_ADDr:" ); |
|
1334 |
+ __asm__("evaluxn_58_ADDr:"); |
|
1335 | 1335 |
{ |
1336 | 1336 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1337 | 1337 |
u->rst.dat[u->rst.ptr - 2] = b + a; |
... | ... |
@@ -1345,7 +1345,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1345 | 1345 |
} |
1346 | 1346 |
break; |
1347 | 1347 |
case 0x59: /* SUBr */ |
1348 |
- __asm__( "evaluxn_59_SUBr:" ); |
|
1348 |
+ __asm__("evaluxn_59_SUBr:"); |
|
1349 | 1349 |
{ |
1350 | 1350 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1351 | 1351 |
u->rst.dat[u->rst.ptr - 2] = b - a; |
... | ... |
@@ -1359,7 +1359,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1359 | 1359 |
} |
1360 | 1360 |
break; |
1361 | 1361 |
case 0x5a: /* MULr */ |
1362 |
- __asm__( "evaluxn_5a_MULr:" ); |
|
1362 |
+ __asm__("evaluxn_5a_MULr:"); |
|
1363 | 1363 |
{ |
1364 | 1364 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1365 | 1365 |
u->rst.dat[u->rst.ptr - 2] = b * a; |
... | ... |
@@ -1373,7 +1373,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1373 | 1373 |
} |
1374 | 1374 |
break; |
1375 | 1375 |
case 0x5b: /* DIVr */ |
1376 |
- __asm__( "evaluxn_5b_DIVr:" ); |
|
1376 |
+ __asm__("evaluxn_5b_DIVr:"); |
|
1377 | 1377 |
{ |
1378 | 1378 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1379 | 1379 |
u->rst.dat[u->rst.ptr - 2] = b / a; |
... | ... |
@@ -1387,7 +1387,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1387 | 1387 |
} |
1388 | 1388 |
break; |
1389 | 1389 |
case 0x5c: /* ANDr */ |
1390 |
- __asm__( "evaluxn_5c_ANDr:" ); |
|
1390 |
+ __asm__("evaluxn_5c_ANDr:"); |
|
1391 | 1391 |
{ |
1392 | 1392 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1393 | 1393 |
u->rst.dat[u->rst.ptr - 2] = b & a; |
... | ... |
@@ -1401,7 +1401,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1401 | 1401 |
} |
1402 | 1402 |
break; |
1403 | 1403 |
case 0x5d: /* ORAr */ |
1404 |
- __asm__( "evaluxn_5d_ORAr:" ); |
|
1404 |
+ __asm__("evaluxn_5d_ORAr:"); |
|
1405 | 1405 |
{ |
1406 | 1406 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1407 | 1407 |
u->rst.dat[u->rst.ptr - 2] = b | a; |
... | ... |
@@ -1415,7 +1415,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1415 | 1415 |
} |
1416 | 1416 |
break; |
1417 | 1417 |
case 0x5e: /* EORr */ |
1418 |
- __asm__( "evaluxn_5e_EORr:" ); |
|
1418 |
+ __asm__("evaluxn_5e_EORr:"); |
|
1419 | 1419 |
{ |
1420 | 1420 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1421 | 1421 |
u->rst.dat[u->rst.ptr - 2] = b ^ a; |
... | ... |
@@ -1429,7 +1429,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1429 | 1429 |
} |
1430 | 1430 |
break; |
1431 | 1431 |
case 0x5f: /* SFTr */ |
1432 |
- __asm__( "evaluxn_5f_SFTr:" ); |
|
1432 |
+ __asm__("evaluxn_5f_SFTr:"); |
|
1433 | 1433 |
{ |
1434 | 1434 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1435 | 1435 |
u->rst.dat[u->rst.ptr - 2] = b >> (a & 0x07) << ((a & 0x70) >> 4); |
... | ... |
@@ -1444,7 +1444,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1444 | 1444 |
break; |
1445 | 1445 |
case 0x61: /* LIT2r */ |
1446 | 1446 |
case 0xe1: /* LIT2kr */ |
1447 |
- __asm__( "evaluxn_61_LIT2r:" ); |
|
1447 |
+ __asm__("evaluxn_61_LIT2r:"); |
|
1448 | 1448 |
{ |
1449 | 1449 |
u->rst.dat[u->rst.ptr] = mempeek8(u->ram.dat, u->ram.ptr++); |
1450 | 1450 |
u->rst.dat[u->rst.ptr + 1] = mempeek8(u->ram.dat, u->ram.ptr++); |
... | ... |
@@ -1458,7 +1458,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1458 | 1458 |
} |
1459 | 1459 |
break; |
1460 | 1460 |
case 0x63: /* POP2r */ |
1461 |
- __asm__( "evaluxn_63_POP2r:" ); |
|
1461 |
+ __asm__("evaluxn_63_POP2r:"); |
|
1462 | 1462 |
{ |
1463 | 1463 |
(u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
1464 | 1464 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -1471,7 +1471,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1471 | 1471 |
} |
1472 | 1472 |
break; |
1473 | 1473 |
case 0x64: /* DUP2r */ |
1474 |
- __asm__( "evaluxn_64_DUP2r:" ); |
|
1474 |
+ __asm__("evaluxn_64_DUP2r:"); |
|
1475 | 1475 |
{ |
1476 | 1476 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1477 | 1477 |
u->rst.dat[u->rst.ptr] = b; |
... | ... |
@@ -1490,7 +1490,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1490 | 1490 |
} |
1491 | 1491 |
break; |
1492 | 1492 |
case 0x65: /* SWP2r */ |
1493 |
- __asm__( "evaluxn_65_SWP2r:" ); |
|
1493 |
+ __asm__("evaluxn_65_SWP2r:"); |
|
1494 | 1494 |
{ |
1495 | 1495 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3], d = u->rst.dat[u->rst.ptr - 4]; |
1496 | 1496 |
u->rst.dat[u->rst.ptr - 4] = b; |
... | ... |
@@ -1506,7 +1506,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1506 | 1506 |
} |
1507 | 1507 |
break; |
1508 | 1508 |
case 0x66: /* OVR2r */ |
1509 |
- __asm__( "evaluxn_66_OVR2r:" ); |
|
1509 |
+ __asm__("evaluxn_66_OVR2r:"); |
|
1510 | 1510 |
{ |
1511 | 1511 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3], d = u->rst.dat[u->rst.ptr - 4]; |
1512 | 1512 |
u->rst.dat[u->rst.ptr] = d; |
... | ... |
@@ -1525,7 +1525,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1525 | 1525 |
} |
1526 | 1526 |
break; |
1527 | 1527 |
case 0x67: /* ROT2r */ |
1528 |
- __asm__( "evaluxn_67_ROT2r:" ); |
|
1528 |
+ __asm__("evaluxn_67_ROT2r:"); |
|
1529 | 1529 |
{ |
1530 | 1530 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3], d = u->rst.dat[u->rst.ptr - 4], e = u->rst.dat[u->rst.ptr - 5], f = u->rst.dat[u->rst.ptr - 6]; |
1531 | 1531 |
u->rst.dat[u->rst.ptr - 6] = d; |
... | ... |
@@ -1543,7 +1543,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1543 | 1543 |
} |
1544 | 1544 |
break; |
1545 | 1545 |
case 0x68: /* EQU2r */ |
1546 |
- __asm__( "evaluxn_68_EQU2r:" ); |
|
1546 |
+ __asm__("evaluxn_68_EQU2r:"); |
|
1547 | 1547 |
{ |
1548 | 1548 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
1549 | 1549 |
u->rst.dat[u->rst.ptr - 4] = b == a; |
... | ... |
@@ -1557,7 +1557,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1557 | 1557 |
} |
1558 | 1558 |
break; |
1559 | 1559 |
case 0x69: /* NEQ2r */ |
1560 |
- __asm__( "evaluxn_69_NEQ2r:" ); |
|
1560 |
+ __asm__("evaluxn_69_NEQ2r:"); |
|
1561 | 1561 |
{ |
1562 | 1562 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
1563 | 1563 |
u->rst.dat[u->rst.ptr - 4] = b != a; |
... | ... |
@@ -1571,7 +1571,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1571 | 1571 |
} |
1572 | 1572 |
break; |
1573 | 1573 |
case 0x6a: /* GTH2r */ |
1574 |
- __asm__( "evaluxn_6a_GTH2r:" ); |
|
1574 |
+ __asm__("evaluxn_6a_GTH2r:"); |
|
1575 | 1575 |
{ |
1576 | 1576 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
1577 | 1577 |
u->rst.dat[u->rst.ptr - 4] = b > a; |
... | ... |
@@ -1585,7 +1585,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1585 | 1585 |
} |
1586 | 1586 |
break; |
1587 | 1587 |
case 0x6b: /* LTH2r */ |
1588 |
- __asm__( "evaluxn_6b_LTH2r:" ); |
|
1588 |
+ __asm__("evaluxn_6b_LTH2r:"); |
|
1589 | 1589 |
{ |
1590 | 1590 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
1591 | 1591 |
u->rst.dat[u->rst.ptr - 4] = b < a; |
... | ... |
@@ -1599,7 +1599,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1599 | 1599 |
} |
1600 | 1600 |
break; |
1601 | 1601 |
case 0x6c: /* JMP2r */ |
1602 |
- __asm__( "evaluxn_6c_JMP2r:" ); |
|
1602 |
+ __asm__("evaluxn_6c_JMP2r:"); |
|
1603 | 1603 |
{ |
1604 | 1604 |
u->ram.ptr = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
1605 | 1605 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -1612,7 +1612,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1612 | 1612 |
} |
1613 | 1613 |
break; |
1614 | 1614 |
case 0x6d: /* JCN2r */ |
1615 |
- __asm__( "evaluxn_6d_JCN2r:" ); |
|
1615 |
+ __asm__("evaluxn_6d_JCN2r:"); |
|
1616 | 1616 |
{ |
1617 | 1617 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
1618 | 1618 |
if(u->rst.dat[u->rst.ptr - 3]) u->ram.ptr = a; |
... | ... |
@@ -1626,7 +1626,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1626 | 1626 |
} |
1627 | 1627 |
break; |
1628 | 1628 |
case 0x6e: /* JSR2r */ |
1629 |
- __asm__( "evaluxn_6e_JSR2r:" ); |
|
1629 |
+ __asm__("evaluxn_6e_JSR2r:"); |
|
1630 | 1630 |
{ |
1631 | 1631 |
u->wst.dat[u->wst.ptr] = u->ram.ptr >> 8; |
1632 | 1632 |
u->wst.dat[u->wst.ptr + 1] = u->ram.ptr & 0xff; |
... | ... |
@@ -1648,7 +1648,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1648 | 1648 |
} |
1649 | 1649 |
break; |
1650 | 1650 |
case 0x6f: /* STH2r */ |
1651 |
- __asm__( "evaluxn_6f_STH2r:" ); |
|
1651 |
+ __asm__("evaluxn_6f_STH2r:"); |
|
1652 | 1652 |
{ |
1653 | 1653 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
1654 | 1654 |
u->wst.dat[u->wst.ptr] = b; |
... | ... |
@@ -1670,7 +1670,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1670 | 1670 |
} |
1671 | 1671 |
break; |
1672 | 1672 |
case 0x70: /* LDZ2r */ |
1673 |
- __asm__( "evaluxn_70_LDZ2r:" ); |
|
1673 |
+ __asm__("evaluxn_70_LDZ2r:"); |
|
1674 | 1674 |
{ |
1675 | 1675 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1676 | 1676 |
u->rst.dat[u->rst.ptr - 1] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -1689,7 +1689,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1689 | 1689 |
} |
1690 | 1690 |
break; |
1691 | 1691 |
case 0x71: /* STZ2r */ |
1692 |
- __asm__( "evaluxn_71_STZ2r:" ); |
|
1692 |
+ __asm__("evaluxn_71_STZ2r:"); |
|
1693 | 1693 |
{ |
1694 | 1694 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1695 | 1695 |
Uint16 b = (u->rst.dat[u->rst.ptr - 2] | (u->rst.dat[u->rst.ptr - 3] << 8)); |
... | ... |
@@ -1704,7 +1704,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1704 | 1704 |
} |
1705 | 1705 |
break; |
1706 | 1706 |
case 0x72: /* LDR2r */ |
1707 |
- __asm__( "evaluxn_72_LDR2r:" ); |
|
1707 |
+ __asm__("evaluxn_72_LDR2r:"); |
|
1708 | 1708 |
{ |
1709 | 1709 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1710 | 1710 |
u->rst.dat[u->rst.ptr - 1] = mempeek8(u->ram.dat, u->ram.ptr + (Sint8)a); |
... | ... |
@@ -1723,7 +1723,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1723 | 1723 |
} |
1724 | 1724 |
break; |
1725 | 1725 |
case 0x73: /* STR2r */ |
1726 |
- __asm__( "evaluxn_73_STR2r:" ); |
|
1726 |
+ __asm__("evaluxn_73_STR2r:"); |
|
1727 | 1727 |
{ |
1728 | 1728 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1729 | 1729 |
Uint16 b = (u->rst.dat[u->rst.ptr - 2] | (u->rst.dat[u->rst.ptr - 3] << 8)); |
... | ... |
@@ -1738,7 +1738,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1738 | 1738 |
} |
1739 | 1739 |
break; |
1740 | 1740 |
case 0x74: /* LDA2r */ |
1741 |
- __asm__( "evaluxn_74_LDA2r:" ); |
|
1741 |
+ __asm__("evaluxn_74_LDA2r:"); |
|
1742 | 1742 |
{ |
1743 | 1743 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
1744 | 1744 |
u->rst.dat[u->rst.ptr - 2] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -1752,7 +1752,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1752 | 1752 |
} |
1753 | 1753 |
break; |
1754 | 1754 |
case 0x75: /* STA2r */ |
1755 |
- __asm__( "evaluxn_75_STA2r:" ); |
|
1755 |
+ __asm__("evaluxn_75_STA2r:"); |
|
1756 | 1756 |
{ |
1757 | 1757 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
1758 | 1758 |
Uint16 b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
... | ... |
@@ -1767,7 +1767,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1767 | 1767 |
} |
1768 | 1768 |
break; |
1769 | 1769 |
case 0x76: /* DEI2r */ |
1770 |
- __asm__( "evaluxn_76_DEI2r:" ); |
|
1770 |
+ __asm__("evaluxn_76_DEI2r:"); |
|
1771 | 1771 |
{ |
1772 | 1772 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1773 | 1773 |
u->rst.dat[u->rst.ptr - 1] = devpeek8(&u->dev[a >> 4], a); |
... | ... |
@@ -1786,7 +1786,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1786 | 1786 |
} |
1787 | 1787 |
break; |
1788 | 1788 |
case 0x77: /* DEO2r */ |
1789 |
- __asm__( "evaluxn_77_DEO2r:" ); |
|
1789 |
+ __asm__("evaluxn_77_DEO2r:"); |
|
1790 | 1790 |
{ |
1791 | 1791 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1792 | 1792 |
Uint16 b = (u->rst.dat[u->rst.ptr - 2] | (u->rst.dat[u->rst.ptr - 3] << 8)); |
... | ... |
@@ -1801,7 +1801,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1801 | 1801 |
} |
1802 | 1802 |
break; |
1803 | 1803 |
case 0x78: /* ADD2r */ |
1804 |
- __asm__( "evaluxn_78_ADD2r:" ); |
|
1804 |
+ __asm__("evaluxn_78_ADD2r:"); |
|
1805 | 1805 |
{ |
1806 | 1806 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
1807 | 1807 |
u->rst.dat[u->rst.ptr - 4] = (b + a) >> 8; |
... | ... |
@@ -1816,7 +1816,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1816 | 1816 |
} |
1817 | 1817 |
break; |
1818 | 1818 |
case 0x79: /* SUB2r */ |
1819 |
- __asm__( "evaluxn_79_SUB2r:" ); |
|
1819 |
+ __asm__("evaluxn_79_SUB2r:"); |
|
1820 | 1820 |
{ |
1821 | 1821 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
1822 | 1822 |
u->rst.dat[u->rst.ptr - 4] = (b - a) >> 8; |
... | ... |
@@ -1831,7 +1831,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1831 | 1831 |
} |
1832 | 1832 |
break; |
1833 | 1833 |
case 0x7a: /* MUL2r */ |
1834 |
- __asm__( "evaluxn_7a_MUL2r:" ); |
|
1834 |
+ __asm__("evaluxn_7a_MUL2r:"); |
|
1835 | 1835 |
{ |
1836 | 1836 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
1837 | 1837 |
u->rst.dat[u->rst.ptr - 4] = (b * a) >> 8; |
... | ... |
@@ -1846,7 +1846,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1846 | 1846 |
} |
1847 | 1847 |
break; |
1848 | 1848 |
case 0x7b: /* DIV2r */ |
1849 |
- __asm__( "evaluxn_7b_DIV2r:" ); |
|
1849 |
+ __asm__("evaluxn_7b_DIV2r:"); |
|
1850 | 1850 |
{ |
1851 | 1851 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
1852 | 1852 |
u->rst.dat[u->rst.ptr - 4] = (b / a) >> 8; |
... | ... |
@@ -1861,7 +1861,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1861 | 1861 |
} |
1862 | 1862 |
break; |
1863 | 1863 |
case 0x7c: /* AND2r */ |
1864 |
- __asm__( "evaluxn_7c_AND2r:" ); |
|
1864 |
+ __asm__("evaluxn_7c_AND2r:"); |
|
1865 | 1865 |
{ |
1866 | 1866 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3], d = u->rst.dat[u->rst.ptr - 4]; |
1867 | 1867 |
u->rst.dat[u->rst.ptr - 4] = d & b; |
... | ... |
@@ -1876,7 +1876,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1876 | 1876 |
} |
1877 | 1877 |
break; |
1878 | 1878 |
case 0x7d: /* ORA2r */ |
1879 |
- __asm__( "evaluxn_7d_ORA2r:" ); |
|
1879 |
+ __asm__("evaluxn_7d_ORA2r:"); |
|
1880 | 1880 |
{ |
1881 | 1881 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3], d = u->rst.dat[u->rst.ptr - 4]; |
1882 | 1882 |
u->rst.dat[u->rst.ptr - 4] = d | b; |
... | ... |
@@ -1891,7 +1891,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1891 | 1891 |
} |
1892 | 1892 |
break; |
1893 | 1893 |
case 0x7e: /* EOR2r */ |
1894 |
- __asm__( "evaluxn_7e_EOR2r:" ); |
|
1894 |
+ __asm__("evaluxn_7e_EOR2r:"); |
|
1895 | 1895 |
{ |
1896 | 1896 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3], d = u->rst.dat[u->rst.ptr - 4]; |
1897 | 1897 |
u->rst.dat[u->rst.ptr - 4] = d ^ b; |
... | ... |
@@ -1906,7 +1906,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1906 | 1906 |
} |
1907 | 1907 |
break; |
1908 | 1908 |
case 0x7f: /* SFT2r */ |
1909 |
- __asm__( "evaluxn_7f_SFT2r:" ); |
|
1909 |
+ __asm__("evaluxn_7f_SFT2r:"); |
|
1910 | 1910 |
{ |
1911 | 1911 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
1912 | 1912 |
Uint16 b = (u->rst.dat[u->rst.ptr - 2] | (u->rst.dat[u->rst.ptr - 3] << 8)); |
... | ... |
@@ -1922,7 +1922,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1922 | 1922 |
} |
1923 | 1923 |
break; |
1924 | 1924 |
case 0x83: /* POPk */ |
1925 |
- __asm__( "evaluxn_83_POPk:" ); |
|
1925 |
+ __asm__("evaluxn_83_POPk:"); |
|
1926 | 1926 |
{ |
1927 | 1927 |
u->wst.dat[u->wst.ptr - 1]; |
1928 | 1928 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -1934,7 +1934,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1934 | 1934 |
} |
1935 | 1935 |
break; |
1936 | 1936 |
case 0x84: /* DUPk */ |
1937 |
- __asm__( "evaluxn_84_DUPk:" ); |
|
1937 |
+ __asm__("evaluxn_84_DUPk:"); |
|
1938 | 1938 |
{ |
1939 | 1939 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
1940 | 1940 |
u->wst.dat[u->wst.ptr] = a; |
... | ... |
@@ -1953,7 +1953,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1953 | 1953 |
} |
1954 | 1954 |
break; |
1955 | 1955 |
case 0x85: /* SWPk */ |
1956 |
- __asm__( "evaluxn_85_SWPk:" ); |
|
1956 |
+ __asm__("evaluxn_85_SWPk:"); |
|
1957 | 1957 |
{ |
1958 | 1958 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
1959 | 1959 |
u->wst.dat[u->wst.ptr] = a; |
... | ... |
@@ -1972,7 +1972,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1972 | 1972 |
} |
1973 | 1973 |
break; |
1974 | 1974 |
case 0x86: /* OVRk */ |
1975 |
- __asm__( "evaluxn_86_OVRk:" ); |
|
1975 |
+ __asm__("evaluxn_86_OVRk:"); |
|
1976 | 1976 |
{ |
1977 | 1977 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
1978 | 1978 |
u->wst.dat[u->wst.ptr] = b; |
... | ... |
@@ -1992,7 +1992,7 @@ evaluxn(Uxn *u, Uint16 vec) |
1992 | 1992 |
} |
1993 | 1993 |
break; |
1994 | 1994 |
case 0x87: /* ROTk */ |
1995 |
- __asm__( "evaluxn_87_ROTk:" ); |
|
1995 |
+ __asm__("evaluxn_87_ROTk:"); |
|
1996 | 1996 |
{ |
1997 | 1997 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3]; |
1998 | 1998 |
u->wst.dat[u->wst.ptr] = b; |
... | ... |
@@ -2012,7 +2012,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2012 | 2012 |
} |
2013 | 2013 |
break; |
2014 | 2014 |
case 0x88: /* EQUk */ |
2015 |
- __asm__( "evaluxn_88_EQUk:" ); |
|
2015 |
+ __asm__("evaluxn_88_EQUk:"); |
|
2016 | 2016 |
{ |
2017 | 2017 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2018 | 2018 |
u->wst.dat[u->wst.ptr] = b == a; |
... | ... |
@@ -2030,7 +2030,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2030 | 2030 |
} |
2031 | 2031 |
break; |
2032 | 2032 |
case 0x89: /* NEQk */ |
2033 |
- __asm__( "evaluxn_89_NEQk:" ); |
|
2033 |
+ __asm__("evaluxn_89_NEQk:"); |
|
2034 | 2034 |
{ |
2035 | 2035 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2036 | 2036 |
u->wst.dat[u->wst.ptr] = b != a; |
... | ... |
@@ -2048,7 +2048,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2048 | 2048 |
} |
2049 | 2049 |
break; |
2050 | 2050 |
case 0x8a: /* GTHk */ |
2051 |
- __asm__( "evaluxn_8a_GTHk:" ); |
|
2051 |
+ __asm__("evaluxn_8a_GTHk:"); |
|
2052 | 2052 |
{ |
2053 | 2053 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2054 | 2054 |
u->wst.dat[u->wst.ptr] = b > a; |
... | ... |
@@ -2066,7 +2066,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2066 | 2066 |
} |
2067 | 2067 |
break; |
2068 | 2068 |
case 0x8b: /* LTHk */ |
2069 |
- __asm__( "evaluxn_8b_LTHk:" ); |
|
2069 |
+ __asm__("evaluxn_8b_LTHk:"); |
|
2070 | 2070 |
{ |
2071 | 2071 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2072 | 2072 |
u->wst.dat[u->wst.ptr] = b < a; |
... | ... |
@@ -2084,7 +2084,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2084 | 2084 |
} |
2085 | 2085 |
break; |
2086 | 2086 |
case 0x8c: /* JMPk */ |
2087 |
- __asm__( "evaluxn_8c_JMPk:" ); |
|
2087 |
+ __asm__("evaluxn_8c_JMPk:"); |
|
2088 | 2088 |
{ |
2089 | 2089 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2090 | 2090 |
u->ram.ptr += (Sint8)a; |
... | ... |
@@ -2097,7 +2097,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2097 | 2097 |
} |
2098 | 2098 |
break; |
2099 | 2099 |
case 0x8d: /* JCNk */ |
2100 |
- __asm__( "evaluxn_8d_JCNk:" ); |
|
2100 |
+ __asm__("evaluxn_8d_JCNk:"); |
|
2101 | 2101 |
{ |
2102 | 2102 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2103 | 2103 |
if(u->wst.dat[u->wst.ptr - 2]) u->ram.ptr += (Sint8)a; |
... | ... |
@@ -2110,7 +2110,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2110 | 2110 |
} |
2111 | 2111 |
break; |
2112 | 2112 |
case 0x8e: /* JSRk */ |
2113 |
- __asm__( "evaluxn_8e_JSRk:" ); |
|
2113 |
+ __asm__("evaluxn_8e_JSRk:"); |
|
2114 | 2114 |
{ |
2115 | 2115 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2116 | 2116 |
u->rst.dat[u->rst.ptr] = u->ram.ptr >> 8; |
... | ... |
@@ -2130,7 +2130,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2130 | 2130 |
} |
2131 | 2131 |
break; |
2132 | 2132 |
case 0x8f: /* STHk */ |
2133 |
- __asm__( "evaluxn_8f_STHk:" ); |
|
2133 |
+ __asm__("evaluxn_8f_STHk:"); |
|
2134 | 2134 |
{ |
2135 | 2135 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2136 | 2136 |
u->rst.dat[u->rst.ptr] = a; |
... | ... |
@@ -2148,7 +2148,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2148 | 2148 |
} |
2149 | 2149 |
break; |
2150 | 2150 |
case 0x90: /* LDZk */ |
2151 |
- __asm__( "evaluxn_90_LDZk:" ); |
|
2151 |
+ __asm__("evaluxn_90_LDZk:"); |
|
2152 | 2152 |
{ |
2153 | 2153 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2154 | 2154 |
u->wst.dat[u->wst.ptr] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -2166,7 +2166,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2166 | 2166 |
} |
2167 | 2167 |
break; |
2168 | 2168 |
case 0x91: /* STZk */ |
2169 |
- __asm__( "evaluxn_91_STZk:" ); |
|
2169 |
+ __asm__("evaluxn_91_STZk:"); |
|
2170 | 2170 |
{ |
2171 | 2171 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2172 | 2172 |
Uint8 b = u->wst.dat[u->wst.ptr - 2]; |
... | ... |
@@ -2180,7 +2180,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2180 | 2180 |
} |
2181 | 2181 |
break; |
2182 | 2182 |
case 0x92: /* LDRk */ |
2183 |
- __asm__( "evaluxn_92_LDRk:" ); |
|
2183 |
+ __asm__("evaluxn_92_LDRk:"); |
|
2184 | 2184 |
{ |
2185 | 2185 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2186 | 2186 |
u->wst.dat[u->wst.ptr] = mempeek8(u->ram.dat, u->ram.ptr + (Sint8)a); |
... | ... |
@@ -2198,7 +2198,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2198 | 2198 |
} |
2199 | 2199 |
break; |
2200 | 2200 |
case 0x93: /* STRk */ |
2201 |
- __asm__( "evaluxn_93_STRk:" ); |
|
2201 |
+ __asm__("evaluxn_93_STRk:"); |
|
2202 | 2202 |
{ |
2203 | 2203 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2204 | 2204 |
Uint8 b = u->wst.dat[u->wst.ptr - 2]; |
... | ... |
@@ -2212,7 +2212,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2212 | 2212 |
} |
2213 | 2213 |
break; |
2214 | 2214 |
case 0x94: /* LDAk */ |
2215 |
- __asm__( "evaluxn_94_LDAk:" ); |
|
2215 |
+ __asm__("evaluxn_94_LDAk:"); |
|
2216 | 2216 |
{ |
2217 | 2217 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
2218 | 2218 |
u->wst.dat[u->wst.ptr] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -2230,7 +2230,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2230 | 2230 |
} |
2231 | 2231 |
break; |
2232 | 2232 |
case 0x95: /* STAk */ |
2233 |
- __asm__( "evaluxn_95_STAk:" ); |
|
2233 |
+ __asm__("evaluxn_95_STAk:"); |
|
2234 | 2234 |
{ |
2235 | 2235 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
2236 | 2236 |
Uint8 b = u->wst.dat[u->wst.ptr - 3]; |
... | ... |
@@ -2244,7 +2244,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2244 | 2244 |
} |
2245 | 2245 |
break; |
2246 | 2246 |
case 0x96: /* DEIk */ |
2247 |
- __asm__( "evaluxn_96_DEIk:" ); |
|
2247 |
+ __asm__("evaluxn_96_DEIk:"); |
|
2248 | 2248 |
{ |
2249 | 2249 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2250 | 2250 |
u->wst.dat[u->wst.ptr] = devpeek8(&u->dev[a >> 4], a); |
... | ... |
@@ -2262,7 +2262,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2262 | 2262 |
} |
2263 | 2263 |
break; |
2264 | 2264 |
case 0x97: /* DEOk */ |
2265 |
- __asm__( "evaluxn_97_DEOk:" ); |
|
2265 |
+ __asm__("evaluxn_97_DEOk:"); |
|
2266 | 2266 |
{ |
2267 | 2267 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2268 | 2268 |
devpoke8(&u->dev[a >> 4], a, b); |
... | ... |
@@ -2275,7 +2275,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2275 | 2275 |
} |
2276 | 2276 |
break; |
2277 | 2277 |
case 0x98: /* ADDk */ |
2278 |
- __asm__( "evaluxn_98_ADDk:" ); |
|
2278 |
+ __asm__("evaluxn_98_ADDk:"); |
|
2279 | 2279 |
{ |
2280 | 2280 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2281 | 2281 |
u->wst.dat[u->wst.ptr] = b + a; |
... | ... |
@@ -2293,7 +2293,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2293 | 2293 |
} |
2294 | 2294 |
break; |
2295 | 2295 |
case 0x99: /* SUBk */ |
2296 |
- __asm__( "evaluxn_99_SUBk:" ); |
|
2296 |
+ __asm__("evaluxn_99_SUBk:"); |
|
2297 | 2297 |
{ |
2298 | 2298 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2299 | 2299 |
u->wst.dat[u->wst.ptr] = b - a; |
... | ... |
@@ -2311,7 +2311,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2311 | 2311 |
} |
2312 | 2312 |
break; |
2313 | 2313 |
case 0x9a: /* MULk */ |
2314 |
- __asm__( "evaluxn_9a_MULk:" ); |
|
2314 |
+ __asm__("evaluxn_9a_MULk:"); |
|
2315 | 2315 |
{ |
2316 | 2316 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2317 | 2317 |
u->wst.dat[u->wst.ptr] = b * a; |
... | ... |
@@ -2329,7 +2329,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2329 | 2329 |
} |
2330 | 2330 |
break; |
2331 | 2331 |
case 0x9b: /* DIVk */ |
2332 |
- __asm__( "evaluxn_9b_DIVk:" ); |
|
2332 |
+ __asm__("evaluxn_9b_DIVk:"); |
|
2333 | 2333 |
{ |
2334 | 2334 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2335 | 2335 |
u->wst.dat[u->wst.ptr] = b / a; |
... | ... |
@@ -2347,7 +2347,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2347 | 2347 |
} |
2348 | 2348 |
break; |
2349 | 2349 |
case 0x9c: /* ANDk */ |
2350 |
- __asm__( "evaluxn_9c_ANDk:" ); |
|
2350 |
+ __asm__("evaluxn_9c_ANDk:"); |
|
2351 | 2351 |
{ |
2352 | 2352 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2353 | 2353 |
u->wst.dat[u->wst.ptr] = b & a; |
... | ... |
@@ -2365,7 +2365,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2365 | 2365 |
} |
2366 | 2366 |
break; |
2367 | 2367 |
case 0x9d: /* ORAk */ |
2368 |
- __asm__( "evaluxn_9d_ORAk:" ); |
|
2368 |
+ __asm__("evaluxn_9d_ORAk:"); |
|
2369 | 2369 |
{ |
2370 | 2370 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2371 | 2371 |
u->wst.dat[u->wst.ptr] = b | a; |
... | ... |
@@ -2383,7 +2383,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2383 | 2383 |
} |
2384 | 2384 |
break; |
2385 | 2385 |
case 0x9e: /* EORk */ |
2386 |
- __asm__( "evaluxn_9e_EORk:" ); |
|
2386 |
+ __asm__("evaluxn_9e_EORk:"); |
|
2387 | 2387 |
{ |
2388 | 2388 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2389 | 2389 |
u->wst.dat[u->wst.ptr] = b ^ a; |
... | ... |
@@ -2401,7 +2401,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2401 | 2401 |
} |
2402 | 2402 |
break; |
2403 | 2403 |
case 0x9f: /* SFTk */ |
2404 |
- __asm__( "evaluxn_9f_SFTk:" ); |
|
2404 |
+ __asm__("evaluxn_9f_SFTk:"); |
|
2405 | 2405 |
{ |
2406 | 2406 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2407 | 2407 |
u->wst.dat[u->wst.ptr] = b >> (a & 0x07) << ((a & 0x70) >> 4); |
... | ... |
@@ -2419,7 +2419,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2419 | 2419 |
} |
2420 | 2420 |
break; |
2421 | 2421 |
case 0xa3: /* POP2k */ |
2422 |
- __asm__( "evaluxn_a3_POP2k:" ); |
|
2422 |
+ __asm__("evaluxn_a3_POP2k:"); |
|
2423 | 2423 |
{ |
2424 | 2424 |
(u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
2425 | 2425 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -2431,7 +2431,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2431 | 2431 |
} |
2432 | 2432 |
break; |
2433 | 2433 |
case 0xa4: /* DUP2k */ |
2434 |
- __asm__( "evaluxn_a4_DUP2k:" ); |
|
2434 |
+ __asm__("evaluxn_a4_DUP2k:"); |
|
2435 | 2435 |
{ |
2436 | 2436 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2437 | 2437 |
u->wst.dat[u->wst.ptr] = b; |
... | ... |
@@ -2452,7 +2452,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2452 | 2452 |
} |
2453 | 2453 |
break; |
2454 | 2454 |
case 0xa5: /* SWP2k */ |
2455 |
- __asm__( "evaluxn_a5_SWP2k:" ); |
|
2455 |
+ __asm__("evaluxn_a5_SWP2k:"); |
|
2456 | 2456 |
{ |
2457 | 2457 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3], d = u->wst.dat[u->wst.ptr - 4]; |
2458 | 2458 |
u->wst.dat[u->wst.ptr] = b; |
... | ... |
@@ -2473,7 +2473,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2473 | 2473 |
} |
2474 | 2474 |
break; |
2475 | 2475 |
case 0xa6: /* OVR2k */ |
2476 |
- __asm__( "evaluxn_a6_OVR2k:" ); |
|
2476 |
+ __asm__("evaluxn_a6_OVR2k:"); |
|
2477 | 2477 |
{ |
2478 | 2478 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3], d = u->wst.dat[u->wst.ptr - 4]; |
2479 | 2479 |
u->wst.dat[u->wst.ptr] = d; |
... | ... |
@@ -2496,7 +2496,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2496 | 2496 |
} |
2497 | 2497 |
break; |
2498 | 2498 |
case 0xa7: /* ROT2k */ |
2499 |
- __asm__( "evaluxn_a7_ROT2k:" ); |
|
2499 |
+ __asm__("evaluxn_a7_ROT2k:"); |
|
2500 | 2500 |
{ |
2501 | 2501 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3], d = u->wst.dat[u->wst.ptr - 4], e = u->wst.dat[u->wst.ptr - 5], f = u->wst.dat[u->wst.ptr - 6]; |
2502 | 2502 |
u->wst.dat[u->wst.ptr] = d; |
... | ... |
@@ -2519,7 +2519,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2519 | 2519 |
} |
2520 | 2520 |
break; |
2521 | 2521 |
case 0xa8: /* EQU2k */ |
2522 |
- __asm__( "evaluxn_a8_EQU2k:" ); |
|
2522 |
+ __asm__("evaluxn_a8_EQU2k:"); |
|
2523 | 2523 |
{ |
2524 | 2524 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
2525 | 2525 |
u->wst.dat[u->wst.ptr] = b == a; |
... | ... |
@@ -2537,7 +2537,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2537 | 2537 |
} |
2538 | 2538 |
break; |
2539 | 2539 |
case 0xa9: /* NEQ2k */ |
2540 |
- __asm__( "evaluxn_a9_NEQ2k:" ); |
|
2540 |
+ __asm__("evaluxn_a9_NEQ2k:"); |
|
2541 | 2541 |
{ |
2542 | 2542 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
2543 | 2543 |
u->wst.dat[u->wst.ptr] = b != a; |
... | ... |
@@ -2555,7 +2555,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2555 | 2555 |
} |
2556 | 2556 |
break; |
2557 | 2557 |
case 0xaa: /* GTH2k */ |
2558 |
- __asm__( "evaluxn_aa_GTH2k:" ); |
|
2558 |
+ __asm__("evaluxn_aa_GTH2k:"); |
|
2559 | 2559 |
{ |
2560 | 2560 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
2561 | 2561 |
u->wst.dat[u->wst.ptr] = b > a; |
... | ... |
@@ -2573,7 +2573,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2573 | 2573 |
} |
2574 | 2574 |
break; |
2575 | 2575 |
case 0xab: /* LTH2k */ |
2576 |
- __asm__( "evaluxn_ab_LTH2k:" ); |
|
2576 |
+ __asm__("evaluxn_ab_LTH2k:"); |
|
2577 | 2577 |
{ |
2578 | 2578 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
2579 | 2579 |
u->wst.dat[u->wst.ptr] = b < a; |
... | ... |
@@ -2591,7 +2591,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2591 | 2591 |
} |
2592 | 2592 |
break; |
2593 | 2593 |
case 0xac: /* JMP2k */ |
2594 |
- __asm__( "evaluxn_ac_JMP2k:" ); |
|
2594 |
+ __asm__("evaluxn_ac_JMP2k:"); |
|
2595 | 2595 |
{ |
2596 | 2596 |
u->ram.ptr = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
2597 | 2597 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -2603,7 +2603,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2603 | 2603 |
} |
2604 | 2604 |
break; |
2605 | 2605 |
case 0xad: /* JCN2k */ |
2606 |
- __asm__( "evaluxn_ad_JCN2k:" ); |
|
2606 |
+ __asm__("evaluxn_ad_JCN2k:"); |
|
2607 | 2607 |
{ |
2608 | 2608 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
2609 | 2609 |
if(u->wst.dat[u->wst.ptr - 3]) u->ram.ptr = a; |
... | ... |
@@ -2616,7 +2616,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2616 | 2616 |
} |
2617 | 2617 |
break; |
2618 | 2618 |
case 0xae: /* JSR2k */ |
2619 |
- __asm__( "evaluxn_ae_JSR2k:" ); |
|
2619 |
+ __asm__("evaluxn_ae_JSR2k:"); |
|
2620 | 2620 |
{ |
2621 | 2621 |
u->rst.dat[u->rst.ptr] = u->ram.ptr >> 8; |
2622 | 2622 |
u->rst.dat[u->rst.ptr + 1] = u->ram.ptr & 0xff; |
... | ... |
@@ -2635,7 +2635,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2635 | 2635 |
} |
2636 | 2636 |
break; |
2637 | 2637 |
case 0xaf: /* STH2k */ |
2638 |
- __asm__( "evaluxn_af_STH2k:" ); |
|
2638 |
+ __asm__("evaluxn_af_STH2k:"); |
|
2639 | 2639 |
{ |
2640 | 2640 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2]; |
2641 | 2641 |
u->rst.dat[u->rst.ptr] = b; |
... | ... |
@@ -2654,7 +2654,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2654 | 2654 |
} |
2655 | 2655 |
break; |
2656 | 2656 |
case 0xb0: /* LDZ2k */ |
2657 |
- __asm__( "evaluxn_b0_LDZ2k:" ); |
|
2657 |
+ __asm__("evaluxn_b0_LDZ2k:"); |
|
2658 | 2658 |
{ |
2659 | 2659 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2660 | 2660 |
u->wst.dat[u->wst.ptr] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -2673,7 +2673,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2673 | 2673 |
} |
2674 | 2674 |
break; |
2675 | 2675 |
case 0xb1: /* STZ2k */ |
2676 |
- __asm__( "evaluxn_b1_STZ2k:" ); |
|
2676 |
+ __asm__("evaluxn_b1_STZ2k:"); |
|
2677 | 2677 |
{ |
2678 | 2678 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2679 | 2679 |
Uint16 b = (u->wst.dat[u->wst.ptr - 2] | (u->wst.dat[u->wst.ptr - 3] << 8)); |
... | ... |
@@ -2687,7 +2687,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2687 | 2687 |
} |
2688 | 2688 |
break; |
2689 | 2689 |
case 0xb2: /* LDR2k */ |
2690 |
- __asm__( "evaluxn_b2_LDR2k:" ); |
|
2690 |
+ __asm__("evaluxn_b2_LDR2k:"); |
|
2691 | 2691 |
{ |
2692 | 2692 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2693 | 2693 |
u->wst.dat[u->wst.ptr] = mempeek8(u->ram.dat, u->ram.ptr + (Sint8)a); |
... | ... |
@@ -2706,7 +2706,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2706 | 2706 |
} |
2707 | 2707 |
break; |
2708 | 2708 |
case 0xb3: /* STR2k */ |
2709 |
- __asm__( "evaluxn_b3_STR2k:" ); |
|
2709 |
+ __asm__("evaluxn_b3_STR2k:"); |
|
2710 | 2710 |
{ |
2711 | 2711 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2712 | 2712 |
Uint16 b = (u->wst.dat[u->wst.ptr - 2] | (u->wst.dat[u->wst.ptr - 3] << 8)); |
... | ... |
@@ -2720,7 +2720,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2720 | 2720 |
} |
2721 | 2721 |
break; |
2722 | 2722 |
case 0xb4: /* LDA2k */ |
2723 |
- __asm__( "evaluxn_b4_LDA2k:" ); |
|
2723 |
+ __asm__("evaluxn_b4_LDA2k:"); |
|
2724 | 2724 |
{ |
2725 | 2725 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
2726 | 2726 |
u->wst.dat[u->wst.ptr] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -2739,7 +2739,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2739 | 2739 |
} |
2740 | 2740 |
break; |
2741 | 2741 |
case 0xb5: /* STA2k */ |
2742 |
- __asm__( "evaluxn_b5_STA2k:" ); |
|
2742 |
+ __asm__("evaluxn_b5_STA2k:"); |
|
2743 | 2743 |
{ |
2744 | 2744 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)); |
2745 | 2745 |
Uint16 b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
... | ... |
@@ -2753,7 +2753,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2753 | 2753 |
} |
2754 | 2754 |
break; |
2755 | 2755 |
case 0xb6: /* DEI2k */ |
2756 |
- __asm__( "evaluxn_b6_DEI2k:" ); |
|
2756 |
+ __asm__("evaluxn_b6_DEI2k:"); |
|
2757 | 2757 |
{ |
2758 | 2758 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2759 | 2759 |
u->wst.dat[u->wst.ptr] = devpeek8(&u->dev[a >> 4], a); |
... | ... |
@@ -2772,7 +2772,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2772 | 2772 |
} |
2773 | 2773 |
break; |
2774 | 2774 |
case 0xb7: /* DEO2k */ |
2775 |
- __asm__( "evaluxn_b7_DEO2k:" ); |
|
2775 |
+ __asm__("evaluxn_b7_DEO2k:"); |
|
2776 | 2776 |
{ |
2777 | 2777 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2778 | 2778 |
Uint16 b = (u->wst.dat[u->wst.ptr - 2] | (u->wst.dat[u->wst.ptr - 3] << 8)); |
... | ... |
@@ -2786,7 +2786,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2786 | 2786 |
} |
2787 | 2787 |
break; |
2788 | 2788 |
case 0xb8: /* ADD2k */ |
2789 |
- __asm__( "evaluxn_b8_ADD2k:" ); |
|
2789 |
+ __asm__("evaluxn_b8_ADD2k:"); |
|
2790 | 2790 |
{ |
2791 | 2791 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
2792 | 2792 |
u->wst.dat[u->wst.ptr] = (b + a) >> 8; |
... | ... |
@@ -2805,7 +2805,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2805 | 2805 |
} |
2806 | 2806 |
break; |
2807 | 2807 |
case 0xb9: /* SUB2k */ |
2808 |
- __asm__( "evaluxn_b9_SUB2k:" ); |
|
2808 |
+ __asm__("evaluxn_b9_SUB2k:"); |
|
2809 | 2809 |
{ |
2810 | 2810 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
2811 | 2811 |
u->wst.dat[u->wst.ptr] = (b - a) >> 8; |
... | ... |
@@ -2824,7 +2824,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2824 | 2824 |
} |
2825 | 2825 |
break; |
2826 | 2826 |
case 0xba: /* MUL2k */ |
2827 |
- __asm__( "evaluxn_ba_MUL2k:" ); |
|
2827 |
+ __asm__("evaluxn_ba_MUL2k:"); |
|
2828 | 2828 |
{ |
2829 | 2829 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
2830 | 2830 |
u->wst.dat[u->wst.ptr] = (b * a) >> 8; |
... | ... |
@@ -2843,7 +2843,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2843 | 2843 |
} |
2844 | 2844 |
break; |
2845 | 2845 |
case 0xbb: /* DIV2k */ |
2846 |
- __asm__( "evaluxn_bb_DIV2k:" ); |
|
2846 |
+ __asm__("evaluxn_bb_DIV2k:"); |
|
2847 | 2847 |
{ |
2848 | 2848 |
Uint16 a = (u->wst.dat[u->wst.ptr - 1] | (u->wst.dat[u->wst.ptr - 2] << 8)), b = (u->wst.dat[u->wst.ptr - 3] | (u->wst.dat[u->wst.ptr - 4] << 8)); |
2849 | 2849 |
u->wst.dat[u->wst.ptr] = (b / a) >> 8; |
... | ... |
@@ -2862,7 +2862,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2862 | 2862 |
} |
2863 | 2863 |
break; |
2864 | 2864 |
case 0xbc: /* AND2k */ |
2865 |
- __asm__( "evaluxn_bc_AND2k:" ); |
|
2865 |
+ __asm__("evaluxn_bc_AND2k:"); |
|
2866 | 2866 |
{ |
2867 | 2867 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3], d = u->wst.dat[u->wst.ptr - 4]; |
2868 | 2868 |
u->wst.dat[u->wst.ptr] = d & b; |
... | ... |
@@ -2881,7 +2881,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2881 | 2881 |
} |
2882 | 2882 |
break; |
2883 | 2883 |
case 0xbd: /* ORA2k */ |
2884 |
- __asm__( "evaluxn_bd_ORA2k:" ); |
|
2884 |
+ __asm__("evaluxn_bd_ORA2k:"); |
|
2885 | 2885 |
{ |
2886 | 2886 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3], d = u->wst.dat[u->wst.ptr - 4]; |
2887 | 2887 |
u->wst.dat[u->wst.ptr] = d | b; |
... | ... |
@@ -2900,7 +2900,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2900 | 2900 |
} |
2901 | 2901 |
break; |
2902 | 2902 |
case 0xbe: /* EOR2k */ |
2903 |
- __asm__( "evaluxn_be_EOR2k:" ); |
|
2903 |
+ __asm__("evaluxn_be_EOR2k:"); |
|
2904 | 2904 |
{ |
2905 | 2905 |
Uint8 a = u->wst.dat[u->wst.ptr - 1], b = u->wst.dat[u->wst.ptr - 2], c = u->wst.dat[u->wst.ptr - 3], d = u->wst.dat[u->wst.ptr - 4]; |
2906 | 2906 |
u->wst.dat[u->wst.ptr] = d ^ b; |
... | ... |
@@ -2919,7 +2919,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2919 | 2919 |
} |
2920 | 2920 |
break; |
2921 | 2921 |
case 0xbf: /* SFT2k */ |
2922 |
- __asm__( "evaluxn_bf_SFT2k:" ); |
|
2922 |
+ __asm__("evaluxn_bf_SFT2k:"); |
|
2923 | 2923 |
{ |
2924 | 2924 |
Uint8 a = u->wst.dat[u->wst.ptr - 1]; |
2925 | 2925 |
Uint16 b = (u->wst.dat[u->wst.ptr - 2] | (u->wst.dat[u->wst.ptr - 3] << 8)); |
... | ... |
@@ -2939,7 +2939,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2939 | 2939 |
} |
2940 | 2940 |
break; |
2941 | 2941 |
case 0xc3: /* POPkr */ |
2942 |
- __asm__( "evaluxn_c3_POPkr:" ); |
|
2942 |
+ __asm__("evaluxn_c3_POPkr:"); |
|
2943 | 2943 |
{ |
2944 | 2944 |
u->rst.dat[u->rst.ptr - 1]; |
2945 | 2945 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -2951,7 +2951,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2951 | 2951 |
} |
2952 | 2952 |
break; |
2953 | 2953 |
case 0xc4: /* DUPkr */ |
2954 |
- __asm__( "evaluxn_c4_DUPkr:" ); |
|
2954 |
+ __asm__("evaluxn_c4_DUPkr:"); |
|
2955 | 2955 |
{ |
2956 | 2956 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
2957 | 2957 |
u->rst.dat[u->rst.ptr] = a; |
... | ... |
@@ -2970,7 +2970,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2970 | 2970 |
} |
2971 | 2971 |
break; |
2972 | 2972 |
case 0xc5: /* SWPkr */ |
2973 |
- __asm__( "evaluxn_c5_SWPkr:" ); |
|
2973 |
+ __asm__("evaluxn_c5_SWPkr:"); |
|
2974 | 2974 |
{ |
2975 | 2975 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
2976 | 2976 |
u->rst.dat[u->rst.ptr] = a; |
... | ... |
@@ -2989,7 +2989,7 @@ evaluxn(Uxn *u, Uint16 vec) |
2989 | 2989 |
} |
2990 | 2990 |
break; |
2991 | 2991 |
case 0xc6: /* OVRkr */ |
2992 |
- __asm__( "evaluxn_c6_OVRkr:" ); |
|
2992 |
+ __asm__("evaluxn_c6_OVRkr:"); |
|
2993 | 2993 |
{ |
2994 | 2994 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
2995 | 2995 |
u->rst.dat[u->rst.ptr] = b; |
... | ... |
@@ -3009,7 +3009,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3009 | 3009 |
} |
3010 | 3010 |
break; |
3011 | 3011 |
case 0xc7: /* ROTkr */ |
3012 |
- __asm__( "evaluxn_c7_ROTkr:" ); |
|
3012 |
+ __asm__("evaluxn_c7_ROTkr:"); |
|
3013 | 3013 |
{ |
3014 | 3014 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3]; |
3015 | 3015 |
u->rst.dat[u->rst.ptr] = b; |
... | ... |
@@ -3029,7 +3029,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3029 | 3029 |
} |
3030 | 3030 |
break; |
3031 | 3031 |
case 0xc8: /* EQUkr */ |
3032 |
- __asm__( "evaluxn_c8_EQUkr:" ); |
|
3032 |
+ __asm__("evaluxn_c8_EQUkr:"); |
|
3033 | 3033 |
{ |
3034 | 3034 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3035 | 3035 |
u->rst.dat[u->rst.ptr] = b == a; |
... | ... |
@@ -3047,7 +3047,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3047 | 3047 |
} |
3048 | 3048 |
break; |
3049 | 3049 |
case 0xc9: /* NEQkr */ |
3050 |
- __asm__( "evaluxn_c9_NEQkr:" ); |
|
3050 |
+ __asm__("evaluxn_c9_NEQkr:"); |
|
3051 | 3051 |
{ |
3052 | 3052 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3053 | 3053 |
u->rst.dat[u->rst.ptr] = b != a; |
... | ... |
@@ -3065,7 +3065,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3065 | 3065 |
} |
3066 | 3066 |
break; |
3067 | 3067 |
case 0xca: /* GTHkr */ |
3068 |
- __asm__( "evaluxn_ca_GTHkr:" ); |
|
3068 |
+ __asm__("evaluxn_ca_GTHkr:"); |
|
3069 | 3069 |
{ |
3070 | 3070 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3071 | 3071 |
u->rst.dat[u->rst.ptr] = b > a; |
... | ... |
@@ -3083,7 +3083,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3083 | 3083 |
} |
3084 | 3084 |
break; |
3085 | 3085 |
case 0xcb: /* LTHkr */ |
3086 |
- __asm__( "evaluxn_cb_LTHkr:" ); |
|
3086 |
+ __asm__("evaluxn_cb_LTHkr:"); |
|
3087 | 3087 |
{ |
3088 | 3088 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3089 | 3089 |
u->rst.dat[u->rst.ptr] = b < a; |
... | ... |
@@ -3101,7 +3101,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3101 | 3101 |
} |
3102 | 3102 |
break; |
3103 | 3103 |
case 0xcc: /* JMPkr */ |
3104 |
- __asm__( "evaluxn_cc_JMPkr:" ); |
|
3104 |
+ __asm__("evaluxn_cc_JMPkr:"); |
|
3105 | 3105 |
{ |
3106 | 3106 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3107 | 3107 |
u->ram.ptr += (Sint8)a; |
... | ... |
@@ -3114,7 +3114,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3114 | 3114 |
} |
3115 | 3115 |
break; |
3116 | 3116 |
case 0xcd: /* JCNkr */ |
3117 |
- __asm__( "evaluxn_cd_JCNkr:" ); |
|
3117 |
+ __asm__("evaluxn_cd_JCNkr:"); |
|
3118 | 3118 |
{ |
3119 | 3119 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3120 | 3120 |
if(u->rst.dat[u->rst.ptr - 2]) u->ram.ptr += (Sint8)a; |
... | ... |
@@ -3127,7 +3127,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3127 | 3127 |
} |
3128 | 3128 |
break; |
3129 | 3129 |
case 0xce: /* JSRkr */ |
3130 |
- __asm__( "evaluxn_ce_JSRkr:" ); |
|
3130 |
+ __asm__("evaluxn_ce_JSRkr:"); |
|
3131 | 3131 |
{ |
3132 | 3132 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3133 | 3133 |
u->wst.dat[u->wst.ptr] = u->ram.ptr >> 8; |
... | ... |
@@ -3147,7 +3147,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3147 | 3147 |
} |
3148 | 3148 |
break; |
3149 | 3149 |
case 0xcf: /* STHkr */ |
3150 |
- __asm__( "evaluxn_cf_STHkr:" ); |
|
3150 |
+ __asm__("evaluxn_cf_STHkr:"); |
|
3151 | 3151 |
{ |
3152 | 3152 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3153 | 3153 |
u->wst.dat[u->wst.ptr] = a; |
... | ... |
@@ -3165,7 +3165,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3165 | 3165 |
} |
3166 | 3166 |
break; |
3167 | 3167 |
case 0xd0: /* LDZkr */ |
3168 |
- __asm__( "evaluxn_d0_LDZkr:" ); |
|
3168 |
+ __asm__("evaluxn_d0_LDZkr:"); |
|
3169 | 3169 |
{ |
3170 | 3170 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3171 | 3171 |
u->rst.dat[u->rst.ptr] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -3183,7 +3183,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3183 | 3183 |
} |
3184 | 3184 |
break; |
3185 | 3185 |
case 0xd1: /* STZkr */ |
3186 |
- __asm__( "evaluxn_d1_STZkr:" ); |
|
3186 |
+ __asm__("evaluxn_d1_STZkr:"); |
|
3187 | 3187 |
{ |
3188 | 3188 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3189 | 3189 |
Uint8 b = u->rst.dat[u->rst.ptr - 2]; |
... | ... |
@@ -3197,7 +3197,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3197 | 3197 |
} |
3198 | 3198 |
break; |
3199 | 3199 |
case 0xd2: /* LDRkr */ |
3200 |
- __asm__( "evaluxn_d2_LDRkr:" ); |
|
3200 |
+ __asm__("evaluxn_d2_LDRkr:"); |
|
3201 | 3201 |
{ |
3202 | 3202 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3203 | 3203 |
u->rst.dat[u->rst.ptr] = mempeek8(u->ram.dat, u->ram.ptr + (Sint8)a); |
... | ... |
@@ -3215,7 +3215,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3215 | 3215 |
} |
3216 | 3216 |
break; |
3217 | 3217 |
case 0xd3: /* STRkr */ |
3218 |
- __asm__( "evaluxn_d3_STRkr:" ); |
|
3218 |
+ __asm__("evaluxn_d3_STRkr:"); |
|
3219 | 3219 |
{ |
3220 | 3220 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3221 | 3221 |
Uint8 b = u->rst.dat[u->rst.ptr - 2]; |
... | ... |
@@ -3229,7 +3229,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3229 | 3229 |
} |
3230 | 3230 |
break; |
3231 | 3231 |
case 0xd4: /* LDAkr */ |
3232 |
- __asm__( "evaluxn_d4_LDAkr:" ); |
|
3232 |
+ __asm__("evaluxn_d4_LDAkr:"); |
|
3233 | 3233 |
{ |
3234 | 3234 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
3235 | 3235 |
u->rst.dat[u->rst.ptr] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -3247,7 +3247,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3247 | 3247 |
} |
3248 | 3248 |
break; |
3249 | 3249 |
case 0xd5: /* STAkr */ |
3250 |
- __asm__( "evaluxn_d5_STAkr:" ); |
|
3250 |
+ __asm__("evaluxn_d5_STAkr:"); |
|
3251 | 3251 |
{ |
3252 | 3252 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
3253 | 3253 |
Uint8 b = u->rst.dat[u->rst.ptr - 3]; |
... | ... |
@@ -3261,7 +3261,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3261 | 3261 |
} |
3262 | 3262 |
break; |
3263 | 3263 |
case 0xd6: /* DEIkr */ |
3264 |
- __asm__( "evaluxn_d6_DEIkr:" ); |
|
3264 |
+ __asm__("evaluxn_d6_DEIkr:"); |
|
3265 | 3265 |
{ |
3266 | 3266 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3267 | 3267 |
u->rst.dat[u->rst.ptr] = devpeek8(&u->dev[a >> 4], a); |
... | ... |
@@ -3279,7 +3279,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3279 | 3279 |
} |
3280 | 3280 |
break; |
3281 | 3281 |
case 0xd7: /* DEOkr */ |
3282 |
- __asm__( "evaluxn_d7_DEOkr:" ); |
|
3282 |
+ __asm__("evaluxn_d7_DEOkr:"); |
|
3283 | 3283 |
{ |
3284 | 3284 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3285 | 3285 |
devpoke8(&u->dev[a >> 4], a, b); |
... | ... |
@@ -3292,7 +3292,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3292 | 3292 |
} |
3293 | 3293 |
break; |
3294 | 3294 |
case 0xd8: /* ADDkr */ |
3295 |
- __asm__( "evaluxn_d8_ADDkr:" ); |
|
3295 |
+ __asm__("evaluxn_d8_ADDkr:"); |
|
3296 | 3296 |
{ |
3297 | 3297 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3298 | 3298 |
u->rst.dat[u->rst.ptr] = b + a; |
... | ... |
@@ -3310,7 +3310,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3310 | 3310 |
} |
3311 | 3311 |
break; |
3312 | 3312 |
case 0xd9: /* SUBkr */ |
3313 |
- __asm__( "evaluxn_d9_SUBkr:" ); |
|
3313 |
+ __asm__("evaluxn_d9_SUBkr:"); |
|
3314 | 3314 |
{ |
3315 | 3315 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3316 | 3316 |
u->rst.dat[u->rst.ptr] = b - a; |
... | ... |
@@ -3328,7 +3328,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3328 | 3328 |
} |
3329 | 3329 |
break; |
3330 | 3330 |
case 0xda: /* MULkr */ |
3331 |
- __asm__( "evaluxn_da_MULkr:" ); |
|
3331 |
+ __asm__("evaluxn_da_MULkr:"); |
|
3332 | 3332 |
{ |
3333 | 3333 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3334 | 3334 |
u->rst.dat[u->rst.ptr] = b * a; |
... | ... |
@@ -3346,7 +3346,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3346 | 3346 |
} |
3347 | 3347 |
break; |
3348 | 3348 |
case 0xdb: /* DIVkr */ |
3349 |
- __asm__( "evaluxn_db_DIVkr:" ); |
|
3349 |
+ __asm__("evaluxn_db_DIVkr:"); |
|
3350 | 3350 |
{ |
3351 | 3351 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3352 | 3352 |
u->rst.dat[u->rst.ptr] = b / a; |
... | ... |
@@ -3364,7 +3364,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3364 | 3364 |
} |
3365 | 3365 |
break; |
3366 | 3366 |
case 0xdc: /* ANDkr */ |
3367 |
- __asm__( "evaluxn_dc_ANDkr:" ); |
|
3367 |
+ __asm__("evaluxn_dc_ANDkr:"); |
|
3368 | 3368 |
{ |
3369 | 3369 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3370 | 3370 |
u->rst.dat[u->rst.ptr] = b & a; |
... | ... |
@@ -3382,7 +3382,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3382 | 3382 |
} |
3383 | 3383 |
break; |
3384 | 3384 |
case 0xdd: /* ORAkr */ |
3385 |
- __asm__( "evaluxn_dd_ORAkr:" ); |
|
3385 |
+ __asm__("evaluxn_dd_ORAkr:"); |
|
3386 | 3386 |
{ |
3387 | 3387 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3388 | 3388 |
u->rst.dat[u->rst.ptr] = b | a; |
... | ... |
@@ -3400,7 +3400,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3400 | 3400 |
} |
3401 | 3401 |
break; |
3402 | 3402 |
case 0xde: /* EORkr */ |
3403 |
- __asm__( "evaluxn_de_EORkr:" ); |
|
3403 |
+ __asm__("evaluxn_de_EORkr:"); |
|
3404 | 3404 |
{ |
3405 | 3405 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3406 | 3406 |
u->rst.dat[u->rst.ptr] = b ^ a; |
... | ... |
@@ -3418,7 +3418,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3418 | 3418 |
} |
3419 | 3419 |
break; |
3420 | 3420 |
case 0xdf: /* SFTkr */ |
3421 |
- __asm__( "evaluxn_df_SFTkr:" ); |
|
3421 |
+ __asm__("evaluxn_df_SFTkr:"); |
|
3422 | 3422 |
{ |
3423 | 3423 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3424 | 3424 |
u->rst.dat[u->rst.ptr] = b >> (a & 0x07) << ((a & 0x70) >> 4); |
... | ... |
@@ -3436,7 +3436,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3436 | 3436 |
} |
3437 | 3437 |
break; |
3438 | 3438 |
case 0xe3: /* POP2kr */ |
3439 |
- __asm__( "evaluxn_e3_POP2kr:" ); |
|
3439 |
+ __asm__("evaluxn_e3_POP2kr:"); |
|
3440 | 3440 |
{ |
3441 | 3441 |
(u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
3442 | 3442 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -3448,7 +3448,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3448 | 3448 |
} |
3449 | 3449 |
break; |
3450 | 3450 |
case 0xe4: /* DUP2kr */ |
3451 |
- __asm__( "evaluxn_e4_DUP2kr:" ); |
|
3451 |
+ __asm__("evaluxn_e4_DUP2kr:"); |
|
3452 | 3452 |
{ |
3453 | 3453 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3454 | 3454 |
u->rst.dat[u->rst.ptr] = b; |
... | ... |
@@ -3469,7 +3469,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3469 | 3469 |
} |
3470 | 3470 |
break; |
3471 | 3471 |
case 0xe5: /* SWP2kr */ |
3472 |
- __asm__( "evaluxn_e5_SWP2kr:" ); |
|
3472 |
+ __asm__("evaluxn_e5_SWP2kr:"); |
|
3473 | 3473 |
{ |
3474 | 3474 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3], d = u->rst.dat[u->rst.ptr - 4]; |
3475 | 3475 |
u->rst.dat[u->rst.ptr] = b; |
... | ... |
@@ -3490,7 +3490,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3490 | 3490 |
} |
3491 | 3491 |
break; |
3492 | 3492 |
case 0xe6: /* OVR2kr */ |
3493 |
- __asm__( "evaluxn_e6_OVR2kr:" ); |
|
3493 |
+ __asm__("evaluxn_e6_OVR2kr:"); |
|
3494 | 3494 |
{ |
3495 | 3495 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3], d = u->rst.dat[u->rst.ptr - 4]; |
3496 | 3496 |
u->rst.dat[u->rst.ptr] = d; |
... | ... |
@@ -3513,7 +3513,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3513 | 3513 |
} |
3514 | 3514 |
break; |
3515 | 3515 |
case 0xe7: /* ROT2kr */ |
3516 |
- __asm__( "evaluxn_e7_ROT2kr:" ); |
|
3516 |
+ __asm__("evaluxn_e7_ROT2kr:"); |
|
3517 | 3517 |
{ |
3518 | 3518 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3], d = u->rst.dat[u->rst.ptr - 4], e = u->rst.dat[u->rst.ptr - 5], f = u->rst.dat[u->rst.ptr - 6]; |
3519 | 3519 |
u->rst.dat[u->rst.ptr] = d; |
... | ... |
@@ -3536,7 +3536,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3536 | 3536 |
} |
3537 | 3537 |
break; |
3538 | 3538 |
case 0xe8: /* EQU2kr */ |
3539 |
- __asm__( "evaluxn_e8_EQU2kr:" ); |
|
3539 |
+ __asm__("evaluxn_e8_EQU2kr:"); |
|
3540 | 3540 |
{ |
3541 | 3541 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
3542 | 3542 |
u->rst.dat[u->rst.ptr] = b == a; |
... | ... |
@@ -3554,7 +3554,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3554 | 3554 |
} |
3555 | 3555 |
break; |
3556 | 3556 |
case 0xe9: /* NEQ2kr */ |
3557 |
- __asm__( "evaluxn_e9_NEQ2kr:" ); |
|
3557 |
+ __asm__("evaluxn_e9_NEQ2kr:"); |
|
3558 | 3558 |
{ |
3559 | 3559 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
3560 | 3560 |
u->rst.dat[u->rst.ptr] = b != a; |
... | ... |
@@ -3572,7 +3572,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3572 | 3572 |
} |
3573 | 3573 |
break; |
3574 | 3574 |
case 0xea: /* GTH2kr */ |
3575 |
- __asm__( "evaluxn_ea_GTH2kr:" ); |
|
3575 |
+ __asm__("evaluxn_ea_GTH2kr:"); |
|
3576 | 3576 |
{ |
3577 | 3577 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
3578 | 3578 |
u->rst.dat[u->rst.ptr] = b > a; |
... | ... |
@@ -3590,7 +3590,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3590 | 3590 |
} |
3591 | 3591 |
break; |
3592 | 3592 |
case 0xeb: /* LTH2kr */ |
3593 |
- __asm__( "evaluxn_eb_LTH2kr:" ); |
|
3593 |
+ __asm__("evaluxn_eb_LTH2kr:"); |
|
3594 | 3594 |
{ |
3595 | 3595 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
3596 | 3596 |
u->rst.dat[u->rst.ptr] = b < a; |
... | ... |
@@ -3608,7 +3608,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3608 | 3608 |
} |
3609 | 3609 |
break; |
3610 | 3610 |
case 0xec: /* JMP2kr */ |
3611 |
- __asm__( "evaluxn_ec_JMP2kr:" ); |
|
3611 |
+ __asm__("evaluxn_ec_JMP2kr:"); |
|
3612 | 3612 |
{ |
3613 | 3613 |
u->ram.ptr = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
3614 | 3614 |
#ifndef NO_STACK_CHECKS |
... | ... |
@@ -3620,7 +3620,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3620 | 3620 |
} |
3621 | 3621 |
break; |
3622 | 3622 |
case 0xed: /* JCN2kr */ |
3623 |
- __asm__( "evaluxn_ed_JCN2kr:" ); |
|
3623 |
+ __asm__("evaluxn_ed_JCN2kr:"); |
|
3624 | 3624 |
{ |
3625 | 3625 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
3626 | 3626 |
if(u->rst.dat[u->rst.ptr - 3]) u->ram.ptr = a; |
... | ... |
@@ -3633,7 +3633,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3633 | 3633 |
} |
3634 | 3634 |
break; |
3635 | 3635 |
case 0xee: /* JSR2kr */ |
3636 |
- __asm__( "evaluxn_ee_JSR2kr:" ); |
|
3636 |
+ __asm__("evaluxn_ee_JSR2kr:"); |
|
3637 | 3637 |
{ |
3638 | 3638 |
u->wst.dat[u->wst.ptr] = u->ram.ptr >> 8; |
3639 | 3639 |
u->wst.dat[u->wst.ptr + 1] = u->ram.ptr & 0xff; |
... | ... |
@@ -3652,7 +3652,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3652 | 3652 |
} |
3653 | 3653 |
break; |
3654 | 3654 |
case 0xef: /* STH2kr */ |
3655 |
- __asm__( "evaluxn_ef_STH2kr:" ); |
|
3655 |
+ __asm__("evaluxn_ef_STH2kr:"); |
|
3656 | 3656 |
{ |
3657 | 3657 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2]; |
3658 | 3658 |
u->wst.dat[u->wst.ptr] = b; |
... | ... |
@@ -3671,7 +3671,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3671 | 3671 |
} |
3672 | 3672 |
break; |
3673 | 3673 |
case 0xf0: /* LDZ2kr */ |
3674 |
- __asm__( "evaluxn_f0_LDZ2kr:" ); |
|
3674 |
+ __asm__("evaluxn_f0_LDZ2kr:"); |
|
3675 | 3675 |
{ |
3676 | 3676 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3677 | 3677 |
u->rst.dat[u->rst.ptr] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -3690,7 +3690,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3690 | 3690 |
} |
3691 | 3691 |
break; |
3692 | 3692 |
case 0xf1: /* STZ2kr */ |
3693 |
- __asm__( "evaluxn_f1_STZ2kr:" ); |
|
3693 |
+ __asm__("evaluxn_f1_STZ2kr:"); |
|
3694 | 3694 |
{ |
3695 | 3695 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3696 | 3696 |
Uint16 b = (u->rst.dat[u->rst.ptr - 2] | (u->rst.dat[u->rst.ptr - 3] << 8)); |
... | ... |
@@ -3704,7 +3704,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3704 | 3704 |
} |
3705 | 3705 |
break; |
3706 | 3706 |
case 0xf2: /* LDR2kr */ |
3707 |
- __asm__( "evaluxn_f2_LDR2kr:" ); |
|
3707 |
+ __asm__("evaluxn_f2_LDR2kr:"); |
|
3708 | 3708 |
{ |
3709 | 3709 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3710 | 3710 |
u->rst.dat[u->rst.ptr] = mempeek8(u->ram.dat, u->ram.ptr + (Sint8)a); |
... | ... |
@@ -3723,7 +3723,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3723 | 3723 |
} |
3724 | 3724 |
break; |
3725 | 3725 |
case 0xf3: /* STR2kr */ |
3726 |
- __asm__( "evaluxn_f3_STR2kr:" ); |
|
3726 |
+ __asm__("evaluxn_f3_STR2kr:"); |
|
3727 | 3727 |
{ |
3728 | 3728 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3729 | 3729 |
Uint16 b = (u->rst.dat[u->rst.ptr - 2] | (u->rst.dat[u->rst.ptr - 3] << 8)); |
... | ... |
@@ -3737,7 +3737,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3737 | 3737 |
} |
3738 | 3738 |
break; |
3739 | 3739 |
case 0xf4: /* LDA2kr */ |
3740 |
- __asm__( "evaluxn_f4_LDA2kr:" ); |
|
3740 |
+ __asm__("evaluxn_f4_LDA2kr:"); |
|
3741 | 3741 |
{ |
3742 | 3742 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
3743 | 3743 |
u->rst.dat[u->rst.ptr] = mempeek8(u->ram.dat, a); |
... | ... |
@@ -3756,7 +3756,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3756 | 3756 |
} |
3757 | 3757 |
break; |
3758 | 3758 |
case 0xf5: /* STA2kr */ |
3759 |
- __asm__( "evaluxn_f5_STA2kr:" ); |
|
3759 |
+ __asm__("evaluxn_f5_STA2kr:"); |
|
3760 | 3760 |
{ |
3761 | 3761 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)); |
3762 | 3762 |
Uint16 b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
... | ... |
@@ -3770,7 +3770,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3770 | 3770 |
} |
3771 | 3771 |
break; |
3772 | 3772 |
case 0xf6: /* DEI2kr */ |
3773 |
- __asm__( "evaluxn_f6_DEI2kr:" ); |
|
3773 |
+ __asm__("evaluxn_f6_DEI2kr:"); |
|
3774 | 3774 |
{ |
3775 | 3775 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3776 | 3776 |
u->rst.dat[u->rst.ptr] = devpeek8(&u->dev[a >> 4], a); |
... | ... |
@@ -3789,7 +3789,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3789 | 3789 |
} |
3790 | 3790 |
break; |
3791 | 3791 |
case 0xf7: /* DEO2kr */ |
3792 |
- __asm__( "evaluxn_f7_DEO2kr:" ); |
|
3792 |
+ __asm__("evaluxn_f7_DEO2kr:"); |
|
3793 | 3793 |
{ |
3794 | 3794 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3795 | 3795 |
Uint16 b = (u->rst.dat[u->rst.ptr - 2] | (u->rst.dat[u->rst.ptr - 3] << 8)); |
... | ... |
@@ -3803,7 +3803,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3803 | 3803 |
} |
3804 | 3804 |
break; |
3805 | 3805 |
case 0xf8: /* ADD2kr */ |
3806 |
- __asm__( "evaluxn_f8_ADD2kr:" ); |
|
3806 |
+ __asm__("evaluxn_f8_ADD2kr:"); |
|
3807 | 3807 |
{ |
3808 | 3808 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
3809 | 3809 |
u->rst.dat[u->rst.ptr] = (b + a) >> 8; |
... | ... |
@@ -3822,7 +3822,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3822 | 3822 |
} |
3823 | 3823 |
break; |
3824 | 3824 |
case 0xf9: /* SUB2kr */ |
3825 |
- __asm__( "evaluxn_f9_SUB2kr:" ); |
|
3825 |
+ __asm__("evaluxn_f9_SUB2kr:"); |
|
3826 | 3826 |
{ |
3827 | 3827 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
3828 | 3828 |
u->rst.dat[u->rst.ptr] = (b - a) >> 8; |
... | ... |
@@ -3841,7 +3841,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3841 | 3841 |
} |
3842 | 3842 |
break; |
3843 | 3843 |
case 0xfa: /* MUL2kr */ |
3844 |
- __asm__( "evaluxn_fa_MUL2kr:" ); |
|
3844 |
+ __asm__("evaluxn_fa_MUL2kr:"); |
|
3845 | 3845 |
{ |
3846 | 3846 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
3847 | 3847 |
u->rst.dat[u->rst.ptr] = (b * a) >> 8; |
... | ... |
@@ -3860,7 +3860,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3860 | 3860 |
} |
3861 | 3861 |
break; |
3862 | 3862 |
case 0xfb: /* DIV2kr */ |
3863 |
- __asm__( "evaluxn_fb_DIV2kr:" ); |
|
3863 |
+ __asm__("evaluxn_fb_DIV2kr:"); |
|
3864 | 3864 |
{ |
3865 | 3865 |
Uint16 a = (u->rst.dat[u->rst.ptr - 1] | (u->rst.dat[u->rst.ptr - 2] << 8)), b = (u->rst.dat[u->rst.ptr - 3] | (u->rst.dat[u->rst.ptr - 4] << 8)); |
3866 | 3866 |
u->rst.dat[u->rst.ptr] = (b / a) >> 8; |
... | ... |
@@ -3879,7 +3879,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3879 | 3879 |
} |
3880 | 3880 |
break; |
3881 | 3881 |
case 0xfc: /* AND2kr */ |
3882 |
- __asm__( "evaluxn_fc_AND2kr:" ); |
|
3882 |
+ __asm__("evaluxn_fc_AND2kr:"); |
|
3883 | 3883 |
{ |
3884 | 3884 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3], d = u->rst.dat[u->rst.ptr - 4]; |
3885 | 3885 |
u->rst.dat[u->rst.ptr] = d & b; |
... | ... |
@@ -3898,7 +3898,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3898 | 3898 |
} |
3899 | 3899 |
break; |
3900 | 3900 |
case 0xfd: /* ORA2kr */ |
3901 |
- __asm__( "evaluxn_fd_ORA2kr:" ); |
|
3901 |
+ __asm__("evaluxn_fd_ORA2kr:"); |
|
3902 | 3902 |
{ |
3903 | 3903 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3], d = u->rst.dat[u->rst.ptr - 4]; |
3904 | 3904 |
u->rst.dat[u->rst.ptr] = d | b; |
... | ... |
@@ -3917,7 +3917,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3917 | 3917 |
} |
3918 | 3918 |
break; |
3919 | 3919 |
case 0xfe: /* EOR2kr */ |
3920 |
- __asm__( "evaluxn_fe_EOR2kr:" ); |
|
3920 |
+ __asm__("evaluxn_fe_EOR2kr:"); |
|
3921 | 3921 |
{ |
3922 | 3922 |
Uint8 a = u->rst.dat[u->rst.ptr - 1], b = u->rst.dat[u->rst.ptr - 2], c = u->rst.dat[u->rst.ptr - 3], d = u->rst.dat[u->rst.ptr - 4]; |
3923 | 3923 |
u->rst.dat[u->rst.ptr] = d ^ b; |
... | ... |
@@ -3936,7 +3936,7 @@ evaluxn(Uxn *u, Uint16 vec) |
3936 | 3936 |
} |
3937 | 3937 |
break; |
3938 | 3938 |
case 0xff: /* SFT2kr */ |
3939 |
- __asm__( "evaluxn_ff_SFT2kr:" ); |
|
3939 |
+ __asm__("evaluxn_ff_SFT2kr:"); |
|
3940 | 3940 |
{ |
3941 | 3941 |
Uint8 a = u->rst.dat[u->rst.ptr - 1]; |
3942 | 3942 |
Uint16 b = (u->rst.dat[u->rst.ptr - 2] | (u->rst.dat[u->rst.ptr - 3] << 8)); |