[Coco] Writing a program for a cartridge

Barry Nelson Barry.Nelson at amobiledevice.com
Mon Jan 25 11:43:43 EST 2016


Oops! Drat! Darn it! I should have caught that!

 

>        William Astle lost at l-w.ca  <mailto:coco%40maltedmedia.com?Subject=Re%3A%20%5BCoco%5D%20Writing%20a%20program%20for%20a%20cartridge&In-Reply-To=%3C56A64719.3090300%40l-w.ca%3E> 
Mon Jan 25 11:02:33 EST 2016 

 

>        You have a problem with your asm code. You're not actually copying the 

>         code to $3000. You're copying it to whatever address is *stored at* 
>         $3000. You want immediate mode on the LDY instruction (#$3000).
 
>         Similarly, you want immediate mode for the CMPX instruction. Otherwise, 
>         you're comparing the end of the copy with whatever 16 bit value is 
>         stored at ENDRT, which will, of course, depend what's in your ROM at 
>         that point.

 



More information about the Coco mailing list