more pages please

23 views
Skip to first unread message

james cardona

unread,
Dec 17, 2012, 9:07:04 AM12/17/12
to fre...@googlegroups.com
I am pretty maxed out with text page and all 5 machine pages full.  how can I add a machine page 6?  I have been searching through the tools directory for a few hours and I can't find where the data is sent to their pages.

james cardona

unread,
Dec 17, 2012, 9:11:08 AM12/17/12
to fre...@googlegroups.com
another thing - there are some system pages that are not full - could I put my code there?  such as the common page and effects page (pages 56 and 57)?  if so, how would I do that?  specify __COMMON__ instead of __MACHINE5_PAGE__?

Brian Dominy

unread,
Dec 17, 2012, 9:16:47 AM12/17/12
to fre...@googlegroups.com
All of the required changes are in the top-level Makefile and in include/env.h.  You'll sacrifice a page of DMD graphics though... I would use page 51.

Take a look at these previous commits when machine4/5 were added (git show from the command-line, or browse on github):

16cfed0131
b249a53ea
ba8214ce48

You could use the common page, but it is already pretty full and you risk your code not compiling when I make changes to the OS.

I haven't studied your code in depth, but you ought to go through it all and try to use reusable functions as much as possible, to keep the code size down.  If you find yourself copying and pasting a lot, then the code size will grow quickly.

- Brian

james cardona

unread,
Dec 18, 2012, 9:38:20 AM12/18/12
to fre...@googlegroups.com, br...@oddchange.com
ok I changed the way the sizes are reported to 50% in stead of 90% so I can better see how to move things around and also deleted some hand drawn deffs that I didn't use much which gave me almost a page.  I may fill up the common as a last resort.  I think I can get at least 2 video modes in with this amount of space, but probably not 3.

direct    XXXXXXXXXXXXXXXXXXXXX...  warning: 85% full
ram       XXXXXXXXXXXXXXXXXXXX....  warning: 80% full
local     XXXXXXXXXXXXXX..........  warning: 57% full
permanent XXXXX...................
nvram     XXXXX...................
dirtab    XXXXXXXXXXXXXXXXXXXXXXXXX  warning: 100% full
registers ........................
.flag     XXXXX...................
.globalfla........................
.freetimer........................
page52    XXXXXXXXXXXXXXXXX.......  warning: 68% full   (MACHINE5)
page53    XXXXX...................   (MACHINE4)
page54    XXXXXXXXXXXXXXXXXXXXXXXX  warning: 98% full   (MACHINE3)
page55    XXXXXXXXXXXXXXXXXXXXXXXX  warning: 98% full   (MACHINE2)
page56    XXXXXXXXXXXXXXXXXX......  warning: 75% full   (COMMON)
page57    XXXXXXXXXX..............   (EFFECT DEFF LEFF TRANS INIT)
page58    XXXXXXXXXXXXXXXXXXXX....  warning: 82% full   (TEST MACHINE_TEST)
page59    XXXXXXXXXXXXXXXXXXXXXXXX  warning: 96% full   (MACHINE EVENT)
page60    XXXXXXXXXXXXXXXXXXXXXX..  warning: 91% full   (PAGED_MD TEST2 COMMON2)
page61    XXXXXXXXXXXXXXXXXXXXX...  warning: 86% full   (FONT FON)
.text     XXXXXXXXXXXXXXXXXXXXXX..  warning: 90% full

Ewan Meadows

unread,
Dec 18, 2012, 1:15:47 PM12/18/12
to fre...@googlegroups.com
Sheesh, and I thought I was running short of space on my TZ rom.

Very well done!
Reply all
Reply to author
Forward
0 new messages