[Coco] CCASM procedures

Roger Taylor rtaylor at bayou.com
Sat Dec 4 01:46:19 EST 2004


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.





-- 
Roger Taylor




More information about the Coco mailing list