READY prompt - indirect vector?

Started by MIRKOSOFT, March 04, 2010, 05:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MIRKOSOFT

Hi!


I want to ask about READY prompt of C128.
Has any vector to change? I want only after every BASIC command have my info and then print READY, e.g. active drive is 8, so my prompt will be:


8>
READY.


It's simple if I'm using my own commands (BASIC extension), but how to do it with all BASIC commands? Problem is when I'm checking of my commands and is not found, I let control to BASIC, then I can't write any own prompt, only before standard command output, e.g.:
8>
READY.
LIST

8>
10 PRINT "COMMODORE 128"
20 END
READY.
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk

Hydrophilic

I think you want to change ($0302) vector.

The bad thing about changing this vector, is BASIC ROM is stupid... it does not a set a specific MMU configuration before JMP ($0302).  What this means is MMU will be either in RAM Bank 0 or RAM Bank 1... and I/O or char ROM will be active... you can never know for sure in advance!

The same warning / danger also applies to ($0300) vector for error messages; if program has error, it will JMP ($0300), otherwise it will end okay with JMP ($0302).  After direct-mode command or entry of a program line, BASIC will again JMP ($0302).

I hope this helps!
I'm kupo for kupo nuts!

MIRKOSOFT

Yes, I used $0302 to checking my own commands... so this way is unusable.
And also error messages are not usable 'cause no everytime error happens.


But thank you very much.


Miro
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk