[Coco] CCASM procedures

Roger Taylor rtaylor at bayou.com
Sat Dec 4 15:03:52 EST 2004


At 07:49 AM 12/4/2004, you wrote:
>So this is much like the macro call of EDTASM+ ?


There's only one instance of the procedure/subroutine, whereas a macro gets 
cloned.

I'll be much easier to whip out a new CoCo game or app using a prewritten 
library (that isn't hard to use).

         include "glib.asm"

start   call    SetMode,320,200,16
         call    SetPage,screentop
         call    ClrScr,0
         bra     *


The call function will expand to something like this:

         ldd     #320
         pshs    d
         ldd     #200
         pshs    d
         lda     #16
         pshs    a
         jsr     SetMode
         leas    5,s



-- 
Roger Taylor




More information about the Coco mailing list