Re: A89: (please someone help me...)


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

Re: A89: (please someone help me...)






>
>In a message dated 98-12-28 18:02:11 EST, you write:
>I have sent this message quite a few times and have not received any help.
I
>reallize that many people are very busy and do not have time to reply to
all
>their mail, but this source is very small and very direct, It would only
take
>a matter of minutes to quickly read through to determine what is the source
of
>my problem.  If I am dumbly overlooking something simple I can understand
why
>others would not want to reply...but I just can't seem to find the problem
at
>all...
>
>I very respectfully ask for the help that I am in dire need of...
>
><original message>
>
><I seem to be having trouble compiling again...it says no errors are
detected
> but instead of saying the amount of code it says d0
code...hmm...puzzling!!!

d0 is the amount of code ... it's hex

> It does however create a .z file but when run it crashes and displays
>"illegal
> instruction"...Again, any help would be greatly appreciated...thanks...
>
>
>      include "tios.h"
>      include "util.h"
>      include "linelib.h"
>
>      xdef _main
>      xdef _comment
>      xdef _ti89
>
>
> _main:
>      jsr util::clr_scr
>      move.w #2,-(a7)
>      jsr tios::FontSetSys
>      add.l #2,a7
>      move.w #4,-(a7)
>      pea tic(pc)
>      move.w #0,-(a7)
>      move.w #0,-(a7)
>      jsr tios::DrawStrXY
>      add.l #10,a7
>      jsr util::idle_loop

I assume it gets this far without crashing, right?

> ;----title screen exited----
>      jsr util::clr_scr
>      bsr drawgrid
> ;----program begins here----
>      jsr util::idle_loop
>      rts
>
> drawgrid:
>      move.l #LCD_MEM,a0;line 1
>      move.w #47,d0
>      move.w #57,d1
>      move.w #113,d2
>      move.w #57,d3
>      jsr linelib::fline
>
>      move.l #LCD_MEM,a0;line 2
>      move.w #47,d0
>      move.w #35,d1
>      move.w #113,d2
>      move.w #35,d3
>      jsr linelib::fline
>
>      move.l #LCD_MEM,a0;line 3
>      move.w #69,d0
>      move.w #79,d1
>      move.w #69,d2
>      move.w #13,d3
>      jsr linelib::fline
>
>      move.l #LCD_MEM,a0;line 4
>      move.w #91,d0
>      move.w #79,d1
>      move.w #91,d2
>      move.w #13,d3
>      jsr linelib::fline

if it crashes during this subroutine (it makes it past the first idle_loop),
then there must be a bug in the library.
try restarting your computer and recompiling, because sometimes a68k screws
up and you have to restart the computer in order to fix it.


>
>      rts
>
>
> tic:
>      dc.b "Tic Tac Toe",0
> _comment:
>      dc.b "Tic Tac Toe",0
>
>      end
>  >>