RELative file support in X16?

Chat about anything CX16 related that doesn't fit elsewhere
User avatar
JimmyDansbo
Posts: 476
Joined: Sun Apr 26, 2020 8:10 pm
Location: Denmark
Contact:

RELative file support in X16?

Post 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.

Visit my Github repo
or my personal site with CX16/C64/6502 related information.
Feel free to contact me regarding any of my projects or even about meeting up somewhere near Denmark
User avatar
AndyMt
Posts: 326
Joined: Sun Jun 21, 2020 3:02 pm
Location: Switzerland

RELative file support in X16?

Post 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?

User avatar
desertfish
Posts: 1123
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

RELative file support in X16?

Post 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....

SlithyMatt
Posts: 913
Joined: Tue Apr 28, 2020 2:45 am

RELative file support in X16?

Post 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

User avatar
AndyMt
Posts: 326
Joined: Sun Jun 21, 2020 3:02 pm
Location: Switzerland

RELative file support in X16?

Post by AndyMt »


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

Greg King
Posts: 162
Joined: Wed Jul 08, 2020 1:14 pm

RELative file support in X16?

Post 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".

TomXP411
Posts: 1804
Joined: Tue May 19, 2020 8:49 pm

RELative file support in X16?

Post 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.

BruceMcF
Posts: 1336
Joined: Fri Jul 03, 2020 4:27 am

RELative file support in X16?

Post 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.

Post Reply