Re: [stella] HMBL 2600 Programmer

Subject: Re: [stella] HMBL 2600 Programmer
From: Christopher Tumber <christophertumber@xxxxxxxxxx>
Date: Mon, 14 Oct 2002 16:10:53 -0400
>A tip here: This stuff gets way more *stable* and 
>predictable, when you start your display kernel at the 
>beginning of the cartridge, so the kernel doesn't move 
>anymore. Now when you add/remove anything it is 
>happening _after_ the kernel.

FWIW a reasonably simple work-around if Krik's already got a bunch of code written and doesn't want to move everything around is to do something like:

;   <Existing game code here>

   jmp DisplayKernal

; Now a bunch of empty space here

   org $F400   ;Start of the next or a later page, wherever that is. Leave some room for your game code to grow

DisplayKernal:

;   <Existing display kernal's code here>



You may just be postponing really dealing with this until later and once your program gets big it becomes more difficult to anchor chunks like this but in the meantime it's a pretty easy fix to just add the jmp/org and adjust the org as needed...


Chris...

Been bit by that one, oh yeah!

----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread