Re: LF: Fargo programming
[Prev][Next][Index][Thread]
Re: LF: Fargo programming
Hmlacage@aol.com wrote:
>
> I am new in 68k asm, more precisely in asm...
> Here is a prog i wrote wich doesn' t work...
> Could someone tell me what is wrong ?
> Thanks
>
> Mathieu <hm lacage@aol.com>
What exactly is it suposed to do?
One problem is that you have to put stuff on the stack before you call
puttext.
>
> @Program prog_code,prog_name
>
> prog_code:
>
> jsr flib[clr_scr]
> main:
You should push something on the stack here.
>
> jsr romlib[puttext]
You should pop the stuff off the stack here.
> move.l ess(PC),D0
> bsr affich
> jsr flib[idle_loop]
> bsr fin
>
> affich:
>
> move.w #4,-(A7)
> move.l D0,-(A7)
> move.w #10,-(A7)
> move.w #10,-(A7)
> lea 10(A7),A7
>
> fin:
>
> rts
>
> ess: dc.b "coucou",0
>
> prog_name:
> dc.b "essai",0
>
> reloc_open
> add_library romlib
> add_library flib
> reloc_close
> end
References: