Removed FLAG_RETURN.
This commit is contained in:
parent
44157aae5b
commit
12552c51a7
|
@ -132,9 +132,7 @@ lituxn(Uxn *u, Uint8 instr)
|
||||||
void
|
void
|
||||||
opcuxn(Uxn *u, Uint8 instr)
|
opcuxn(Uxn *u, Uint8 instr)
|
||||||
{
|
{
|
||||||
Uint8 op = instr & 0x3f, freturn;
|
Uint8 op = instr & 0x3f, freturn = instr & 0x40;
|
||||||
setflag(&u->status, FLAG_RETURN, (instr >> 6) & 1);
|
|
||||||
freturn = getflag(&u->status, FLAG_RETURN);
|
|
||||||
u->src = freturn ? &u->rst : &u->wst;
|
u->src = freturn ? &u->rst : &u->wst;
|
||||||
u->dst = freturn ? &u->wst : &u->rst;
|
u->dst = freturn ? &u->wst : &u->rst;
|
||||||
(*ops[op])(u);
|
(*ops[op])(u);
|
||||||
|
|
|
@ -17,7 +17,6 @@ typedef unsigned short Uint16;
|
||||||
typedef signed short Sint16;
|
typedef signed short Sint16;
|
||||||
|
|
||||||
#define FLAG_HALT 0x01
|
#define FLAG_HALT 0x01
|
||||||
#define FLAG_RETURN 0x04
|
|
||||||
#define PAGE_DEVICE 0x0100
|
#define PAGE_DEVICE 0x0100
|
||||||
#define PAGE_VECTORS 0x0200
|
#define PAGE_VECTORS 0x0200
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue