Hi!
I finished my aceCommander128 and code was written at $1300 - $7450...
So, I relocated code at $1c70 - $7de0, written sub-routine which configures RAM and jumps to $7e00 to copying back to $1300.
I wrote little BASIC program, like:
10 ...testing and de-allocating RAM if needed...
20 SYS 7232 - to start sub-routine and copying, after :END
As you can see it overwrites BASIC program and result is copied code and message: ?SYNTAX ERROR IN 20
I protected it by keyboard buffer where I gave values for command SYS4864[return] and number of characters in buffer #8...
...not successful
So, I protected it with IRQ where I backup old-irq pointer and set irq pointer at $1300 (#4864) and add at beginning code write back old-irq and continue...
... not successful
Why really don't works keyboard buffer and IRQ????
Can anybody help me, sure will be in credits (name or nick, like is wishing).
I can't release it with: "Start it by BLOAD"NAME":SYS4864"
it must be pretty "LOAD & RUN..."
So, awaiting problem is now here, but no solution...
Many many thanks for help to everybody.
Miro
Main problem is which I don't understand:
At the end of copy routine is jump to begin aceCommnader, but it seems like there's not any jump, behaviour of program is that after copy ends...
This really don't understand.
Miro
Are you maybe in the wrong memory bank after the copy routine? Or do you perhaps overwrite the copying routine itself accidently in the copy process? I had this happen myself one time.
You could also try using PUCRUNCH on a PC to create a neat, packed executable. It creates exactly what you want (a RUN-able executable) and also uses LZH to compress it. Give it a try:
http://www.cs.tut.fi/~albert/Dev/pucrunch/
Scroll all the way down to find documentation and download links.
Yes! BANK was problem!
Many many thanks.
Miro