Page 3 of 3

RELative file support in X16?

Posted: Mon Jan 18, 2021 1:42 pm
by JimmyDansbo


20 minutes ago, desertfish said:




The few extra existing commands that were added can't account for the other 5-6 kilobyte surely?



I can't tell you, I just thought that the Commander X16 specific command already added was the reason we ran into space issues.


RELative file support in X16?

Posted: Mon Jan 18, 2021 3:22 pm
by AndyMt


1 hour ago, desertfish said:




Something i was wondering - isn't the basic ROM bank size on the cx16,  16 kilobyte?



Actually BASIC has to fit into 8KB if I'm not mistaken. Aren't the other 8KB used by the KERNAL ROM?


RELative file support in X16?

Posted: Mon Jan 18, 2021 3:48 pm
by desertfish

Hmm, that's not how I now understand the banked roms to be working in the memory map from the documentation https://github.com/commanderx16/x16-docs/blob/master/Commander X16 Programmer's Reference Guide.md#memory-map   and the discussion in the file i/o performance topic.   I read that as "basic is in a different banked rom, namely 4, as the kernal, which is in bank 0" and the rom banks are 16 kb each....


RELative file support in X16?

Posted: Mon Jan 18, 2021 3:49 pm
by SlithyMatt


1 minute ago, desertfish said:




I read that as "basic is in a different banked rom, namely 4, as the kernal, which is in bank 0" and the rom banks are 16 kb each....



That's correct


RELative file support in X16?

Posted: Mon Jan 18, 2021 4:05 pm
by AndyMt

I must have mixed it with the C64 or some other machine then ?.


RELative file support in X16?

Posted: Mon Jan 18, 2021 6:29 pm
by Greg King


4 hours ago, desertfish said:




The few extra existing commands that were added can't account for the other 5-6 kilobyte surely?



It's more than a "few extra"!  I counted over 20 new features.  Also, Michael probably fell into the trap of thinking, "hey, there's plenty of room now, I don't need to write tight, small code".


RELative file support in X16?

Posted: Tue Jan 19, 2021 1:07 am
by TomXP411


9 hours ago, AndyMt said:




Actually BASIC has to fit into 8KB if I'm not mistaken. Aren't the other 8KB used by the KERNAL ROM?



Well, that's "sort of" correct. From what I've read, there is some BASIC code in the KERNAL ROM, so the KERNAL is more like 6K and BASIC is more like 10K. When you add in the graphic commands and the other enhancements, I'm not surprised BASIC has already grown beyond 16KB.


RELative file support in X16?

Posted: Tue Jan 19, 2021 7:06 pm
by BruceMcF


17 hours ago, TomXP411 said:




Well, that's "sort of" correct. From what I've read, there is some BASIC code in the KERNAL ROM, so the KERNAL is more like 6K and BASIC is more like 10K. When you add in the graphic commands and the other enhancements, I'm not surprised BASIC has already grown beyond 16KB.



Quite right about the Basic/KERNAL ROMS not being cleanly divided between Basic and KERNAL code.

Note that much of the graphic commands seem to be calls into the GEOS Kernel, but there's still a certain amount of processing each Basic Keyword has to do to parse it's arguments.