Re: A89: A simple? Question
[Prev][Next][Index][Thread]
Re: A89: A simple? Question
nevermind, I see what's wrong.. maybe we should tell Rusty to fix hello
world also.. by the way, someone please answer my question about the 4 on
the stack.. also, what is pc again?
-Ahmed
At 02:53 PM 10/24/98 -0400, you wrote:
>
>Hello, can someone tell me what is wrong with this :( It doesn't want to
>compile :( I am doing it with PlusShell stuff.
>Also, why do you load 4 on the stack at first?
>
>-Ahmed
>
> include "tios.h"
> include "util.h"
>
> xdef _main
> xdef _comment
> xdef _ti89
>
>_main:
> jsr util::clr_scr
> move.w #4,-(a7)
> lea string(pc),a0
> move.l a0,-(a7)
> move.w #0,-(a7)
> move.w #0,-(a7)
> jsr tios::DrawStrXY
> add.l #10,(a7)
> jrs util::idle_loop ;this line doesn't compile
>
> rts
>
>_string:
> dc.b "Ahmed El-Helw",0
>
>_comment:
> dc.b "Ahmed's First Program in 68k",0
>
> end
>Ahmed El-Helw <ahmed@ticalc.org>
>Program Ideas, Upcoming Programs
>the ticalc.org project - http://www.ticalc.org/
>_____________________________
>http://hail.icestorm.net/asm
>ICQ : 3350394
>
>
Ahmed El-Helw <ahmed@ticalc.org>
Program Ideas, Upcoming Programs
the ticalc.org project - http://www.ticalc.org/
_____________________________
http://hail.icestorm.net/asm
ICQ : 3350394
Follow-Ups:
References: