Commodore 128 Alive!

Commodore 128 => 128 programmers => Topic started by: MIRKOSOFT on November 15, 2009, 04:03 AM

Title: Where to locate large ML program?
Post by: MIRKOSOFT on November 15, 2009, 04:03 AM
Hi!

I have 'think big problem.
I don't know which bank to select. I want to programming BASIC7 extension of disk acces commands.
So, where's problem?
1. For my solution is space $1300-$1C00 too small.
2. I want to leave some space for BASIC programming free.
3. I don't know which bank select, 'cause I need to have KERNAL, I/O available - yes ideal is bank #15 but...

...where to put the code of my program?

I wanted to use BANK1 (higher 64kB of C128 RAM) - there's variables, arrays, etc. - so I can to reduce it in this location...
...but when I have routine in BANK1 I can't access KERNAL, I/O...

Or can I load whole program first and then copy routines to other locations and when is routine calling, copy it and the execute?

So, please explain me somebody how to do it.

Thanks for all replies.

Miro
Title: Re: Where to locate large ML program?
Post by: Hydrophilic on November 15, 2009, 12:41 PM
My post was lost!

Ok, here is the quick version:


10 A=DEC("8001"):BANK0:POKE 45,A-32768 AND 1:POKE 46,A/256:POKE A-1,0
20 U=PEEK(186):RUN"PROGRAM",U(U)

I couldn't attach this "HiBasicLoader" because I think Lance is upgrading the server today.  It does the following for you:
  This is what you want right?

Import things to avoid:
  I hope this helps!
EhPortal 1.34 © 2025, WebDev