mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-04 13:25:04 +00:00
Removed LINK req in uxncli
This commit is contained in:
parent
cfd29ac511
commit
a65c1cb9a8
2 changed files with 2 additions and 3 deletions
|
@ -33,7 +33,7 @@ WITH REGARD TO THIS SOFTWARE.
|
||||||
|
|
||||||
#define HALT(c) { return emu_halt(u, ins, c, pc - 1); }
|
#define HALT(c) { return emu_halt(u, ins, c, pc - 1); }
|
||||||
#define FLIP { s = ins & 0x40 ? &u->wst : &u->rst; }
|
#define FLIP { s = ins & 0x40 ? &u->wst : &u->rst; }
|
||||||
#define SET(x, y) { r = s->ptr; if(x > r) HALT(1) r += (x & k) + y; if(r > 254) HALT(2) ptr = s->dat + r - 1; s->ptr = r; }
|
#define SET(x, y) { r = s->ptr; if(x > r) HALT(1) r += y; if(ins & 0x80) r += x; if(r > 254) HALT(2) ptr = s->dat + r - 1; s->ptr = r; }
|
||||||
#define SHIFT(y) { r = s->ptr + y; if(r > 254) HALT(2) ptr = s->dat + r - 1; s->ptr = r; }
|
#define SHIFT(y) { r = s->ptr + y; if(r > 254) HALT(2) ptr = s->dat + r - 1; s->ptr = r; }
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -44,7 +44,6 @@ uxn_eval(Uxn *u, Uint16 pc)
|
||||||
if(!pc || u->dev[0x0f]) return 0;
|
if(!pc || u->dev[0x0f]) return 0;
|
||||||
for(;;) {
|
for(;;) {
|
||||||
int ins = ram[pc++];
|
int ins = ram[pc++];
|
||||||
int k = ins & 0x80 ? 0xff : 0;
|
|
||||||
Stack *s = ins & 0x40 ? &u->rst : &u->wst;
|
Stack *s = ins & 0x40 ? &u->rst : &u->wst;
|
||||||
Uint8 *ptr = s->dat + s->ptr - 1, *rr;
|
Uint8 *ptr = s->dat + s->ptr - 1, *rr;
|
||||||
switch(ins & 0x1f ? ins & 0x3f : ins << 4) {
|
switch(ins & 0x1f ? ins & 0x3f : ins << 4) {
|
||||||
|
|
|
@ -72,7 +72,7 @@ main(int argc, char **argv)
|
||||||
system_connect(0xc, DATETIME_VERSION, DATETIME_DEIMASK, DATETIME_DEOMASK);
|
system_connect(0xc, DATETIME_VERSION, DATETIME_DEIMASK, DATETIME_DEOMASK);
|
||||||
/* Read flags */
|
/* Read flags */
|
||||||
if(argv[i][0] == '-' && argv[i][1] == 'v')
|
if(argv[i][0] == '-' && argv[i][1] == 'v')
|
||||||
return system_version("Uxncli - Console Varvara Emulator", "30 Aug 2023");
|
return system_version("Uxncli - Console Varvara Emulator", "29 Aug 2023");
|
||||||
if(!system_init(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), argv[i++]))
|
if(!system_init(&u, (Uint8 *)calloc(0x10000 * RAM_PAGES, sizeof(Uint8)), argv[i++]))
|
||||||
return system_error("Init", "Failed to initialize uxn.");
|
return system_error("Init", "Failed to initialize uxn.");
|
||||||
/* Game Loop */
|
/* Game Loop */
|
||||||
|
|
Loading…
Reference in a new issue