A83: Re: Interrupt routines
[Prev][Next][Index][Thread]
A83: Re: Interrupt routines
If you want to do it in Ion, you'll have to use some code something like
this:
#ifdef TI83
SetVector:
ld hl,$8400
ld a,h
ld de,$8401
ld bc,$0100
ld (hl),$82
ldir
ld i,a
LoadInterrupt:
ld hl,InterruptStart
ld de,$8282
ld bc,InterruptEnd-InterruptStart
ldir
im 2
ei
ret
#else
SetVector:
ld hl,$8700
ld a,h
ld de,$8701
ld bc,$0100
ld (hl),$88
ldir
ld i,a
LoadInterrupt:
ld hl,InterruptStart
ld de,$8888
ld bc,InterruptEnd-InterruptStart
ldir
im 2
ei
ret
#endif
InterruptStart:
;....Code goes here
InterruptEnd:
If you want to do it in MirageOS, it's much, much, easier. All you have to
do is three lines of code:
ld hl,interruptstart:
ld a,40
call setupint
-Dan Englender
----- Original Message -----
From: "John" <tankrshr77@yahoo.com>
To: <assembly-83@lists.ticalc.org>
Sent: Monday, September 04, 2000 12:57 PM
Subject: A83: Interrupt routines
>
> Does anyone know where i can find code that runs an
> interrupt routine in an ion/mirage game? will the one
> in asmguru work without major changes?
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
References: