Re: A89: compiling help


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

Re: A89: compiling help




In a message dated 98-12-26 20:18:35 EST, you write:

<< At 20:12 1998-12-26 EST, you wrote:
 >tic:	
 >     dc.b	"Tic Tac Toe",0
 >_comment:
 >     dc.b "Tic Tac Toe".0     <------ HERE
 >
 >     end
 >and here is the error:
 >  "Unknown symbol type number $8B"
 
 What happens if you change "dc.b "Tic Tac Toe".0" to "dc.b "Tic Tac Toe",0"?
 
 //Olle
  >>


Boy do I feel like an idiot...I must have went over that a million+ times and
never noticed :( ...So, thanks a million...it at least compiles now...but
unfortunately there is another problem: Whenever I try to run it, it crashes
and gives me an address error...well, here is the code again:

     include "tios.h"
     include "util.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 #2,-(a7)
     move.w #50,-(a7)
     jsr tios::DrawStrXY
     add.l #10,a7
     jsr util::idle_loop
     rts


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

     end