[Coco] CCASM procedures

Robert Gault robert.gault at worldnet.att.net
Sat Dec 4 08:49:49 EST 2004


Roger Taylor wrote:

> I'm about to add procedure call support to CCASM/Portal-9.
> 
> You'll be able to declare a procedure like this:
> 
> cls    proc    color:byte,size:word
>     ldx    #1024
>     ldy    size
>     lda    color
> a@    sta    ,x+
>     leay    -1,y
>     bne    a@
>     rts
>     endproc
> 
> 
>     call    cls,128,512
> 
> 
> The call function will push the params, call the procedure entry, then 
> upon return, pop the regs back off the stack.  I'm not sure of the exact 
> details right now but that's the basics.  This should be enough to allow 
> one to write a "source-based" library of some sort.
> 
> 
> 
> 
> 

So this is much like the macro call of EDTASM+ ?



More information about the Coco mailing list