[A89] Re: Interrupts


[Prev][Next][Index][Thread]

[A89] Re: Interrupts




Thanks for the help, I got what I wanted working with the interrupts.  I
have a different problem now.  My game would keep generating an illegal
instruction after pressing enter to start the game.  I fiddled around with
the code a lot, trying to locate the problem, and it seems to be sprintf and
GrayOn clashing.  I use sprintf to prepare a string for DrawStr, then a
couple lines later, I turn on grayscale.  If I comment out the sprintf line,
it will run fine.  I couldn't find anything in the TIGCC help or the list
archives, any ideas?

Brett
----- Original Message -----
From: "Olle Hedman" <alh@home.se>
To: <assembly-89@lists.ticalc.org>
Sent: Friday, April 12, 2002 7:24 AM
Subject: [A89] Re: Interrupts


>
> At 08:43 2002-04-12, you wrote:
>
> >http://tict.ticalc.org/docs/J89hw.txt contains all the 89 HW info you
want.
> >I do ASM, no C so I just use move,and,or commands to set the ports. BTW,
you
> >can always read old mailing-list-posts on www.ticalc.org .
>
> In TIGCC you most easily change ports with the peekIO and pokeIO macros.
> You can use typecasts and just assign or and or or (no pun intended), but
> if you don't know exactly what you do, there is a chance that the compiler
> optimizes away your change.
> and peekIO and pokeIO make the code easy to read too.
>
> ///Olle
>
>




Follow-Ups: References: