A89: more compiling problems


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

A89: more compiling problems






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!!!
 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
 ;----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
 
      rts
 
 
 tic:	
      dc.b "Tic Tac Toe",0
 _comment:
      dc.b "Tic Tac Toe",0
 
      end