RE: A85: Interupts
[Prev][Next][Index][Thread]
RE: A85: Interupts
Here is the source I wrote. I stole some of the code from a grayscale routine. Have fun. It should work...
#include "ti-85.h"
IntLocation =$8D00
IValue =$8D
Interrupt =$8C8C
Interrupt2 =$8989
Length =128 ;# of pointers
.org 0
.db "Special Interrupt Tester", 0
GetLoop:
call GET_KEY
cp K_F1
jr Z,InstallInterrupt
cp K_F2
jr Z,Unload
cp K_EXIT
ret Z
jr GetLoop
Unload:
im 1
ret
InstallInterrupt:
im 1
ld DE,Interrupt
ld HL,IntLocation
ld B,Length
CopyLoop:
ld (HL),E
inc HL
ld (HL),D
inc HL
djnz CopyLoop
ld a,IValue
ld i,a
im 2
ret
Int_Rout:
ex AF,AF'
exx
in a,(3)
bit 1,a ;make sure the LCD is on (I don't know why,
jr z,EndInt ;but it needs this, even if you know it will
;be on, say if you are running it only from
;within a certain program, like grayscale)
ld IY,_IY_TABLE
ld DE,CURSOR_ROW
ld A,(DE)
ld H,A
inc DE
ld A,(DE)
ld L,A
push HL
ld HL,$0700
ld (CURSOR_ROW),HL
ld A,'I'
ROM_CALL(TR_CHARPUT) ;places the text on the screen
pop HL
ld A,H
ld (CURSOR_ROW),A
ld A,L
ld (CURSOR_COL),A
EndInt:
exx
ex AF,AF'
jp $38
Int_RoutEnd:
.end
----------
From: JIF578@aol.com[SMTP:JIF578@aol.com]
Sent: Saturday, January 16, 1999 8:10 PM
To: assembly-85@lists.ticalc.org
Subject: Re: A85: Interupts
sure, but what it it?? and how do i make ASM's from .85p prog's any1 know??
thanks,
/ | Jeff | /
begin 600 WINMAIL.DAT
M>)\^(BX3`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$-@ 0`
M`@````(``@`!!) &`$@!```!````# ````,``# #````"P`/#@`````"`?\/
M`0```%<`````````@2L?I+ZC$!F=;@#=`0]4`@````!A<W-E;6)L>2TX-4!L
M:7-T<RYT:6-A;&,N;W)G`%--5% `87-S96UB;'DM.#5 ;&ES=',N=&EC86QC
M+F]R9P``'@`", $````%````4TU44 `````>``,P`0```!T```!A<W-E;6)L
M>2TX-4!L:7-T<RYT:6-A;&,N;W)G``````,`%0P!`````P#^#P8````>``$P
M`0```!\````G87-S96UB;'DM.#5 ;&ES=',N=&EC86QC+F]R9R<```(!"S !
M````(@```%--5% Z05-314U"3%DM.#5 3$E35%,N5$E#04Q#+D]21P````,`
M`#D`````"P! .@$````"`?8/`0````0````````#PD$!"( '`!@```!)4$TN
M36EC<F]S;V9T($UA:6PN3F]T90`Q" $$@ $`$P```%)%.B!!.#4Z($EN=&5R
M=7!T<P#'!0$%@ ,`#@```,\'`0`2``P`*P`$``$`)0$!(( #``X```#/!P$`
M$@`,`"@`'@`!`#P!`0F `0`A````-#DR0S R04%$,D%%1#(Q,4%%,C8T-#0U
M-3,U-# P,# `Z@8!`Y &`+ &```2````"P`C```````#`"8```````L`*0``
M`````P`V``````! `#D`8,)YPQI#O@$>`' ``0```!,```!213H@03@U.B!)
M;G1E<G5P=',```(!<0`!````%@````&^0QK#<JH"+$JNTA'2KB9$15-4````
M`!X`'@P!````!0```%--5% `````'@`?# $````;````<FEC:&%R9&QE=VES
M0&-E9&%R8VET>2YN970```,`!A G;9,7`P`'$ 0$```>``@0`0```&4```!(
M15)%25-42$533U520T5)5U)/5$5)4U1/3$533TU%3T942$5#3T1%1E)/34%'
M4D%94T-!3$523U5424Y%2$%614953DE44TA/54Q$5T]22R-)3D-,541%(E1)
M+3@U2"))3E1,``````(!"1 !````,@4``"X%``"1"P``3%I&=1GG3*O_``H!
M#P(5`J@%ZP*#`% "\@D"`&-H"L!S970R-P8`!L,"@S(#Q0(`<')"<1'B<W1E
M;0*#,S<"Y <3`H,T!$83,S$@=PA5![("@'T*@ C/"=D[\1@/,C4U`H *@0VQ
M"V#@;F<Q,#,44 L*%6$E"_)C`$ @2 2092!1! `@=&@=(',(86,Q'2!)('<#
M8!/0+B ?'A$3P ;P'9('@"!O9A<=8P6@#; @`U(@82!U"<!A$[!C!T =( -@
M=49T"X >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