Close uxnemu on System/halt
This commit is contained in:
parent
243c5866ac
commit
08fb3e7f0a
|
@ -6,6 +6,8 @@
|
||||||
%<< { LTH2 } %>> { GTH2 } %== { EQU2 } %!! { NEQ2 }
|
%<< { LTH2 } %>> { GTH2 } %== { EQU2 } %!! { NEQ2 }
|
||||||
%!~ { NEQk NIP }
|
%!~ { NEQk NIP }
|
||||||
|
|
||||||
|
%HALT { #01 #0f DEO }
|
||||||
|
|
||||||
%RTN { JMP2r }
|
%RTN { JMP2r }
|
||||||
%TOS { #00 SWP }
|
%TOS { #00 SWP }
|
||||||
%MOD { DUP2 / * - }
|
%MOD { DUP2 / * - }
|
||||||
|
@ -130,6 +132,7 @@ BRK
|
||||||
#3b .octave LDZ #0c * + ;play JSR2 &no-b
|
#3b .octave LDZ #0c * + ;play JSR2 &no-b
|
||||||
[ LIT 'k ] !~ ,&no-c2 JCN
|
[ LIT 'k ] !~ ,&no-c2 JCN
|
||||||
#3c .octave LDZ #0c * + ;play JSR2 &no-c2
|
#3c .octave LDZ #0c * + ;play JSR2 &no-c2
|
||||||
|
[ #1b ] !~ ,&no-esc JCN HALT &no-esc
|
||||||
POP
|
POP
|
||||||
|
|
||||||
( release )
|
( release )
|
||||||
|
|
|
@ -497,7 +497,7 @@ run(Uxn *u)
|
||||||
{
|
{
|
||||||
uxn_eval(u, PAGE_PROGRAM);
|
uxn_eval(u, PAGE_PROGRAM);
|
||||||
redraw(u);
|
redraw(u);
|
||||||
while(1) {
|
while(!devsystem->dat[0xf]) {
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
double elapsed, start = 0;
|
double elapsed, start = 0;
|
||||||
if(!BENCH)
|
if(!BENCH)
|
||||||
|
|
Loading…
Reference in New Issue