[stella] Start addresses...

Subject: [stella] Start addresses...
From: Robin Harbron <robinh@xxxxxxxxxxxxxxx>
Date: Fri, 12 Sep 1997 23:26:05 -0400
Well, I've been doing some digging around on the
net, looking through Bob's makewav source...
it seems that the start address of the program
is located in the 3rd and 4th last bytes of the
file.  Let me quote:

/* Get last page of game file - it contains the start address of the
code */

        get_page(file_page_count-1,0);
                
/* The first two bytes of data indicate the beginning address of the
code */

        if (!sflag) {
          startlo = buffer[0xfc];
          starthi = buffer[0xfd];

Is the comment in error?  The _first_ two bytes?  I think so...
And is this true for all file sizes?  Or just 2048, 4096, and
?6144? ?

Thanks!

--
Robin Harbron   robinh@xxxxxxxxxxxxxxx
    http://www.tbaytel.net/macbeth

--
Archives updated once/day at http://www.biglist.com/lists/stella/archives/
Unsubscribing and other info at http://www.biglist.com/lists/stella/stella.html

Current Thread