| ... | ... |
@@ -114,10 +114,12 @@ system_init(Uxn *u, Uint8 *ram, char *rom) |
| 114 | 114 |
void |
| 115 | 115 |
system_deo(Uxn *u, Uint8 *d, Uint8 port) |
| 116 | 116 |
{
|
| 117 |
+ Uint8 *ram; |
|
| 118 |
+ Uint16 addr; |
|
| 117 | 119 |
switch(port) {
|
| 118 | 120 |
case 0x3: |
| 119 |
- Uint8 *ram = u->ram; |
|
| 120 |
- Uint16 addr = PEEK2(d + 2); |
|
| 121 |
+ ram = u->ram; |
|
| 122 |
+ addr = PEEK2(d + 2); |
|
| 121 | 123 |
if(ram[addr] == 0x1) {
|
| 122 | 124 |
Uint16 i, length = PEEK2(ram + addr + 1); |
| 123 | 125 |
Uint16 a_page = PEEK2(ram + addr + 1 + 2), a_addr = PEEK2(ram + addr + 1 + 4); |
| ... | ... |
@@ -46,7 +46,7 @@ uxn_eval(Uxn *u, Uint16 pc) |
| 46 | 46 |
switch(!(ins & 0x1f) ? (0 - (ins >> 5)) & 0xff : ins & 0x3f) {
|
| 47 | 47 |
/* IMM */ |
| 48 | 48 |
case 0x00: /* BRK */ return 1; |
| 49 |
- case 0xff: /* JCI */ if(!s->dat[--s->ptr]) { pc += 2; break; }
|
|
| 49 |
+ case 0xff: /* JCI */ if(!s->dat[--s->ptr]) { pc += 2; break; } /* else fallthrough */
|
|
| 50 | 50 |
case 0xfe: /* JMI */ pc += PEEK2(ram + pc) + 2; break; |
| 51 | 51 |
case 0xfd: /* JSI */ SET(0, 2) PUT2(pc + 2) pc += PEEK2(ram + pc) + 2; break; |
| 52 | 52 |
case 0xfc: /* LITr */ case 0xfa: SET(0, 1) PUT1(ram[pc++]) break; |