Re: A86: calc-Off
[Prev][Next][Index][Thread]
Re: A86: calc-Off
In a message dated 97-12-16 07:39:16 EST, you write:
> I'm pretty sure you'd have to install an interrupt routine that would
> restart your program...I can't think of any other way you could do it. I
> think an interrupt routine something like this should work:
>
> bit onRunning,(iy+onflags)
> ret z
> ;I'm not sure exactly how to use _exec_assembly, but use it here to
> ;restart your program - you could pass it some value that would let
> ;it know where to pick up.
> res 2,(iy+35) ;uninstall interrupt
> ret
------------------------------------------------------------------------------
----------------------------------------
I just figured it out last night after I sent the message. It's really
not too complicated.
.org _asm_exec_ram
ld a,1
out (3),a
halt <- ; these next two lines are all
that you really need
res onInterrupt,(iy+onflags)<-; in order to start when its turned
back on. I just
ld hl,30 ; made it display something so
I knew it worked.
ld (_penCol),hl
ld hl,27
ld (_penRow),hl
ld hl,Str0
call _vputs
call _getkey
ret
Str0:
.db "It Works",0