BLOAD "<disk unit>" ,S

By PingPong

Prophet (3185)

PingPong's picture

15-02-2019, 09:43

Just a quick question.
BLOAD load a binary file into memory. can load from tape, disk, or other devices.
however when working with disks it also have a ",S" options to load into vram.
this is not available on cas for example.
the question: is the bload command handled by disk rom?
should every device, define a specific implementation?

Login or register to post comments

By NYYRIKKI

Enlighted (5173)

NYYRIKKI's picture

15-02-2019, 10:04

PingPong wrote:

the question: is the bload command handled by disk rom?

Yes

PingPong wrote:

should every device, define a specific implementation?

No

By PingPong

Prophet (3185)

PingPong's picture

15-02-2019, 12:24

OK, but if the aswer to the second question is "no", why bload "CAS:",S does not work?
Or it is that the ",S" is always a valid option and the implementation on tape "should return unsupported" instead of "syntax error" ?

By NYYRIKKI

Enlighted (5173)

NYYRIKKI's picture

15-02-2019, 12:54

PingPong wrote:

OK, but if the aswer to the second question is "no", why bload "CAS:",S does not work?
Or it is that the ",S" is always a valid option and the implementation on tape "should return unsupported" instead of "syntax error" ?

Ok, I think I understood the question a bit wrong at first time... (Should every device define BLOAD command handler? = No) but the thing is that the BLOAD-command handler in MSX-BASIC ROM does not have any special check for ",S". This is something that has been added to Disk BASIC ROM version of the handler... With this I mean that it does not work with any other device like "MEM:" etc... This is purely disk specific stuff and not any kind of standard parameter of BLOAD-command.

BTW I don't think this returns Syntax error on cassette... I believe the S is handled just like any other variable.

My MSX profile