*DBOOT (MMFS) from BASIC

bbc/electron apps, languages, utils, educational progs, demos + more
Post Reply
User avatar
0xC0DE
Posts: 681
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

*DBOOT (MMFS) from BASIC

Post by 0xC0DE » Sun Jan 12, 2020 12:42 pm

I have no trouble using *DBOOT from the command line to boot a disk image by number or by name.
However, when I try to do the same from a simple BASIC program, only *DBOOT by disk number seems to work, not by disk name.
What am I doing wrong?
(using Acorn Electron, MMFS 1.41, ElkSD64)
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my demos for Acorn Electron and BBC Micro

User avatar
Pernod
Posts: 2193
Joined: Fri Jun 08, 2012 11:01 pm
Location: Croydon, UK
Contact:

Re: *DBOOT (MMFS) from BASIC

Post by Pernod » Sun Jan 12, 2020 12:46 pm

Are you using OSCLI to form the command?
- Nigel

BBC Model B: ATPL Sidewise, Acorn Speech, 2xWatford Floppy Drives, AMX Mouse, Viglen case, BeebZIF, etc.

User avatar
0xC0DE
Posts: 681
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: *DBOOT (MMFS) from BASIC

Post by 0xC0DE » Sun Jan 12, 2020 12:54 pm

Yes, OSCLI and *DBOOT literally.
I think I solved this already. It probably shows my abysmal BBC BASIC skills.
I need to explicitly END the BASIC program after *DBOOT. Doesn't seem quite logical to me (?).
Probably because *DBOOT just inserts some commands into the keybuffer?

So, this will work as expected (but not if you omit the END):

Code: Select all

10A$=GET$
20IF A$="A" THEN OSCLI "DBOOT MYPROG": END
30GOTO 10
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my demos for Acorn Electron and BBC Micro

User avatar
tricky
Posts: 4578
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: *DBOOT (MMFS) from BASIC

Post by tricky » Sun Jan 12, 2020 2:39 pm

I guess it is the same as returning to the BASIC promt after any * command in immediate mode.

User avatar
hoglet
Posts: 9390
Joined: Sat Oct 13, 2012 7:21 pm
Location: Bristol
Contact:

Re: *DBOOT (MMFS) from BASIC

Post by hoglet » Sun Jan 12, 2020 4:30 pm

Try adding a line 15 to your program and you'll see what's going on:

Code: Select all

15 PRINT A$
The problem case here is when the boot option is 3 (EXEC), because indeed EXEC does just insert things into the keyboard buffer.

I don't think it should matter whether then disk number or disk name is used.

Other boot options (like RUN) should work immediately.

Dave

Post Reply

Return to “8-bit acorn software: other”