| ... | ... |
@@ -68,7 +68,7 @@ static void op_and(Uxn *u) { Uint8 a = pop8(u->src), b = pop8(u->src); push8(u->
|
| 68 | 68 |
static void op_ora(Uxn *u) { Uint8 a = pop8(u->src), b = pop8(u->src); push8(u->src, b | a); }
|
| 69 | 69 |
static void op_eor(Uxn *u) { Uint8 a = pop8(u->src), b = pop8(u->src); push8(u->src, b ^ a); }
|
| 70 | 70 |
static void op_sft(Uxn *u) { Uint8 a = pop8(u->src), b = pop8(u->src); push8(u->src, b >> (a & 0x07) << ((a & 0x70) >> 4)); }
|
| 71 |
-/* Stack */ |
|
| 71 |
+/* Stack(16-bits) */ |
|
| 72 | 72 |
static void op_lit16(Uxn *u) { push16(u->src, mempeek16(u->ram.dat, u->ram.ptr++)); u->ram.ptr++; }
|
| 73 | 73 |
static void op_inc16(Uxn *u) { Uint16 a = pop16(u->src); push16(u->src, a + 1); }
|
| 74 | 74 |
static void op_pop16(Uxn *u) { pop16(u->src); }
|
| ... | ... |
@@ -160,7 +160,7 @@ uxn_boot(Uxn *u) |
| 160 | 160 |
unsigned int i; |
| 161 | 161 |
char *cptr = (char *)u; |
| 162 | 162 |
for(i = 0; i < sizeof(*u); i++) |
| 163 |
- cptr[i] = 0; |
|
| 163 |
+ cptr[i] = 0x00; |
|
| 164 | 164 |
return 1; |
| 165 | 165 |
} |
| 166 | 166 |
|
| ... | ... |
@@ -268,6 +268,7 @@ doctrl(Uxn *u, SDL_Event *event, int z) |
| 268 | 268 |
} else |
| 269 | 269 |
devctrl->dat[2] &= ~flag; |
| 270 | 270 |
} |
| 271 |
+ |
|
| 271 | 272 |
static void |
| 272 | 273 |
docolors(Device *d) |
| 273 | 274 |
{
|
| ... | ... |
@@ -482,9 +483,8 @@ run(Uxn *u) |
| 482 | 483 |
if(event.type == stdin_event) {
|
| 483 | 484 |
devconsole->dat[0x2] = event.cbutton.button; |
| 484 | 485 |
uxn_eval(u, mempeek16(devconsole->dat, 0)); |
| 485 |
- } else if(event.type >= audio0_event && event.type < audio0_event + POLYPHONY) {
|
|
| 486 |
+ } else if(event.type >= audio0_event && event.type < audio0_event + POLYPHONY) |
|
| 486 | 487 |
uxn_eval(u, mempeek16((devaudio0 + (event.type - audio0_event))->dat, 0)); |
| 487 |
- } |
|
| 488 | 488 |
} |
| 489 | 489 |
} |
| 490 | 490 |
uxn_eval(u, mempeek16(devscreen->dat, 0)); |