Confused about boot file

discussion of beeb/electron applications, languages, utils and educational s/w
User avatar
pau1ie
Posts: 269
Joined: Thu May 10, 2012 9:48 pm
Location: Bedford

Confused about boot file

Postby pau1ie » Tue Jun 27, 2017 10:37 pm

I am trying to get Dart by AUCBE to work. The UEF asks you if you have a turtle or not, and then creates a program which you have to save as "DART0" . I saved it to a SSD image, and then tried to create a !BOOT file using

Code: Select all

*BUILD !BOOT
CH."DART0"
<ESC>


When I do shift-break it messes up keyboard input somehow, so the opening screen displays then disappears, then some weird effects occur on the screen.

Is there something obvious I am missing here to make the boot file work? Typing the chain command in by hand works fine.
I'm working on http://bbcmicro.co.uk

User avatar
lurkio
Posts: 1142
Joined: Tue Apr 09, 2013 11:30 pm
Location: Doomawangara
Contact:

Re: Confused about boot file

Postby lurkio » Tue Jun 27, 2017 11:18 pm

Use the standard bbcmicro.co.uk !BOOT file:

Code: Select all

*BASIC
*FX21,0
CLOSE#0:CHAIN "DART0"

In the case of Dart, it seems to be the *FX21,0 (flush keyboard buffer) that makes the difference -- not sure exactly why.

:idea:

User avatar
ctr
Posts: 93
Joined: Wed Jul 16, 2014 2:53 pm

Re: Confused about boot file

Postby ctr » Wed Jun 28, 2017 12:25 am

The break key is function key 10. When you press break the OS puts the (notional) key code for f10 into the keyboard buffer. When a program asks for keyboard input the function key definition is returned one character at a time until it is exhausted. e.g. try typing "*KEY10 HELLO" and pressing break.

Normally when you press break, BASIC shows a prompt and immediately asks the OS for keyboard input. The OS finds the f10 in the keyboard buffer, but f10 isn't defined so nothing happens.

When you press shift+break Dart is loaded and overwrites the function key definition area at &B00-&BFF. The first time Dart asks for keyboard input the OS finds the f10 in the keyboard buffer, and expands it using whatever random stuff Dart has put in the function key definition area.

The *FX21,0 removes the f10 from the keyboard buffer.

This is the usual cause anyway. I haven't looked at Dart.

User avatar
flaxcottage
Posts: 2729
Joined: Thu Dec 13, 2012 8:46 pm
Location: Derbyshire

Re: Confused about boot file

Postby flaxcottage » Wed Jun 28, 2017 10:50 am

Interesting.

Worth bearing in mind, thanks. :D
- John

Currently running Level 4 Econet with BBC B, BBC B+ 128K, Master 128K, 4Mb A3000, 4Mb A3020, 4Mb A4000, 4Mb A5000 dual FDD; UK101; HP41CX setup; Psion 3a, 3mx and 5mx; Z88; TI-58c, TI-59 and printer

User avatar
pau1ie
Posts: 269
Joined: Thu May 10, 2012 9:48 pm
Location: Bedford

Re: Confused about boot file

Postby pau1ie » Wed Jun 28, 2017 7:44 pm

Brilliant! That works, and thanks for the explanation.
I'm working on http://bbcmicro.co.uk


Return to “software: other”

Who is online

Users browsing this forum: Bing [Bot], daveejhitchins, sydney and 3 guests