Updated BASIC Editor

discussion of beeb/electron applications, languages, utils and educational s/w
jregel
Posts: 176
Joined: Fri Dec 20, 2013 6:39 pm
Location: Gloucestershire
Contact:

Re: Updated BASIC Editor

Post by jregel » Thu Sep 20, 2018 5:36 pm

Just having a quick play with the latest version.

Tom, what new editing keys did you implement? I'm not seeing new behaviour?
BBC Master Turbo, Retroclinic External Datacentre, VideoNuLA, PiTubeDirect with Pi Zero, Gotek USB Floppy Emulator

tom_seddon
Posts: 363
Joined: Mon Aug 29, 2005 11:42 pm
Contact:

Re: Updated BASIC Editor

Post by tom_seddon » Thu Sep 20, 2018 5:42 pm

There's none in this version - it has speed improvements, size reductions, and the program name-related changes. The stuff on my list of plans is so far just plans.

The version changelist in the GitHub releases page will definitely mention it when more stuff comes :)

Watch this space...

--Tom

jregel
Posts: 176
Joined: Fri Dec 20, 2013 6:39 pm
Location: Gloucestershire
Contact:

Re: Updated BASIC Editor

Post by jregel » Thu Sep 20, 2018 5:54 pm

Ah, sorry Tom.

I missed the "plans" bit :-)
BBC Master Turbo, Retroclinic External Datacentre, VideoNuLA, PiTubeDirect with Pi Zero, Gotek USB Floppy Emulator

tom_seddon
Posts: 363
Joined: Mon Aug 29, 2005 11:42 pm
Contact:

Re: Updated BASIC Editor

Post by tom_seddon » Fri Sep 21, 2018 6:15 pm

I've added 1.42-beta, which has the new editing stuff: beginning/end of line, next/previous statement, and new edit mode shortcuts for ZSAVE and ZRUN. Feedback sought!

The BASIC integration stuff is still on the agenda in some form, though I realised it's going to be a bit more tricky to make it work with the second processor, so I need to sleep on it a bit more...

--Tom
Last edited by tom_seddon on Fri Sep 21, 2018 6:17 pm, edited 2 times in total.

tom_seddon
Posts: 363
Joined: Mon Aug 29, 2005 11:42 pm
Contact:

Re: Updated BASIC Editor

Post by tom_seddon » Fri Sep 21, 2018 6:27 pm

tom_seddon wrote:
Sun Sep 09, 2018 10:21 pm
There wasn't much room left in the original Acornsoft ROM, so there can't have been all that much new code in there ... But on the bright side it doesn't look like the two halves interact in a very complicated way.
I was completely wrong about this, and it actually looks like it's a bit complicated :( - the ROMs do in fact communicate, there's a bunch of new code to handle it, and all the editor error messages appear to have moved into the utils half to make space for the extra stuff. So I'm not going to do this in the end, as I don't use the PRES utils myself.

--Tom
Last edited by tom_seddon on Fri Sep 21, 2018 6:28 pm, edited 1 time in total.

jregel
Posts: 176
Joined: Fri Dec 20, 2013 6:39 pm
Location: Gloucestershire
Contact:

Re: Updated BASIC Editor

Post by jregel » Sat Oct 06, 2018 6:35 pm

tom_seddon wrote:
Fri Sep 21, 2018 6:15 pm
I've added 1.42-beta, which has the new editing stuff: beginning/end of line, next/previous statement, and new edit mode shortcuts for ZSAVE and ZRUN. Feedback sought!

The BASIC integration stuff is still on the agenda in some form, though I realised it's going to be a bit more tricky to make it work with the second processor, so I need to sleep on it a bit more...

--Tom
Sorry for the delay in responding. I've only just had a go with the 1.43 beta release and the new keyboard shortcuts for start/end of line and previous/next statement on line are great additions! Thank you for adding them!

I do notice The functionality that is described in the manual for CTRL-Up (first statement on screen) and CTRL-Down (last statement on screen) doesn't appear to work anymore. Is this intentional? I see in a previous comment you were considering changing this functionality to previous/next line, but I'm not sure if that gives much more than just normal cursor keys (especially as Shift-Tab does the beginning of the next line already).

If the CTRL-Up/CTRL-Down functionality could be restored, it would make navigating around really quick, using Shift-Up/Down to find the right screen (aka page up/page down), then CTRL-Up/Down to move the cursor near to the line you want to edit on the screen, followed by the new additions/modifications of moving left and right along a line.

Thanks!
BBC Master Turbo, Retroclinic External Datacentre, VideoNuLA, PiTubeDirect with Pi Zero, Gotek USB Floppy Emulator

tom_seddon
Posts: 363
Joined: Mon Aug 29, 2005 11:42 pm
Contact:

Re: Updated BASIC Editor

Post by tom_seddon » Sat Oct 20, 2018 8:47 pm

jregel wrote:
Sat Oct 06, 2018 6:35 pm
Sorry for the delay in responding. I've only just had a go with the 1.43 beta release and the new keyboard shortcuts for start/end of line and previous/next statement on line are great additions! Thank you for adding them!

...

If the CTRL-Up/CTRL-Down functionality could be restored, it would make navigating around really quick, using Shift-Up/Down to find the right screen (aka page up/page down), then CTRL-Up/Down to move the cursor near to the line you want to edit on the screen, followed by the new additions/modifications of moving left and right along a line.
Thanks for the feedback, and I'm very glad you managed to miss the disastrous 1.42-beta (of which we shall speak no more).

I'll tweak it so the old ctrl+up/ctrl+down comes back again. I made that change after figuring that the top/bottom of screen functionality was a bit useless (by which I mean: I've never used it myself), and that it could do with being replaced with something that struck me as probably a bit more useful. But having used the editor a bit since I made these changes, I've actually not found myself using the new next/prev line functionality either :) So I'll roll it back.

--Tom

P.S. if the editor has been behaving itself during your use of it, as it has been during mine, then the next version will probably also not be a beta. It's looking like the invasive changes of 1.41 haven't introduced any problems...
Last edited by tom_seddon on Sat Oct 20, 2018 8:50 pm, edited 1 time in total.

jregel
Posts: 176
Joined: Fri Dec 20, 2013 6:39 pm
Location: Gloucestershire
Contact:

Re: Updated BASIC Editor

Post by jregel » Tue Oct 23, 2018 8:50 am

tom_seddon wrote:
Sat Oct 20, 2018 8:47 pm
P.S. if the editor has been behaving itself during your use of it, as it has been during mine, then the next version will probably also not be a beta. It's looking like the invasive changes of 1.41 haven't introduced any problems...
My testing was primarily around the new keyboard changes, but I didn't notice anything else that was problematic.
BBC Master Turbo, Retroclinic External Datacentre, VideoNuLA, PiTubeDirect with Pi Zero, Gotek USB Floppy Emulator

thearttrooper
Posts: 36
Joined: Fri Dec 09, 2011 9:56 am
Contact:

Re: Updated BASIC Editor

Post by thearttrooper » Sun Nov 18, 2018 6:02 pm

I am trying to load the BASICED.ROM into BeebEm. I added it to the ROM configuration of the Master 128 (ROM 8 ) but it doesn't show up in *ROMS. I made an SSD containing the ROM image and then used *SRLOAD BASICED 8000 4 but that results in a Channel error.

I'd like to go the sideways RAM route if that's possible so that i can try it on my real Master.



Chris.
Last edited by 1024MAK on Wed Nov 21, 2018 11:49 pm, edited 1 time in total.
Reason: Edited due to the cool smiley stealing the 8!

User avatar
geraldholdsworth
Posts: 588
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: Updated BASIC Editor

Post by geraldholdsworth » Sun Nov 18, 2018 6:26 pm

thearttrooper wrote:
Sun Nov 18, 2018 6:02 pm
I am trying to load the BASICED.ROM into BeebEm. I added it to the ROM configuration of the Master 128 (ROM 8) but it doesn't show up in *ROMS. I made an SSD containing the ROM image and then used *SRLOAD BASICED 8000 4 but that results in a Channel error.
Is it a valid ROM image?...i.e. make sure it has not been corrupted.
I've never seen a channel error with SRLOAD - only a Bad command (when I got the parameters the wrong way round). SRLOAD will load in non-ROM images (i.e. data) without reporting any errors (IIRC).
Gerald Holdsworth
Repton Resource Page
www.reptonresourcepage.co.uk

tom_seddon
Posts: 363
Joined: Mon Aug 29, 2005 11:42 pm
Contact:

Re: Updated BASIC Editor

Post by tom_seddon » Sun Nov 18, 2018 6:30 pm

thearttrooper wrote:
Sun Nov 18, 2018 6:02 pm
I am trying to load the BASICED.ROM into BeebEm. I added it to the ROM configuration of the Master 128 (ROM 8) but it doesn't show up in *ROMS. I made an SSD containing the ROM image and then used *SRLOAD BASICED 8000 4 but that results in a Channel error.

I'd like to go the sideways RAM route if that's possible so that i can try it on my real Master.
Hmm, that should all work? - I had a quick go in BeebEm just now (I've got 4.14), adding the 1.43-beta BASICED.ROM as ROM 8, and it showed up in the *ROMS list. And there should certainly be no problem loading it in with *SRLOAD, as that's how I load it in myself on my real Master.

I've never seen a Channel error from SRLOAD either, so I'm not really sure what the problem could be, or what to suggest...

--Tom

Coeus
Posts: 1426
Joined: Mon Jul 25, 2016 11:05 am
Contact:

Re: Updated BASIC Editor

Post by Coeus » Mon Nov 19, 2018 9:27 pm

thearttrooper wrote:
Sun Nov 18, 2018 6:02 pm
...and then used *SRLOAD BASICED 8000 4 but that results in a Channel error...
Is the file too big? I wonder if it is overwriting the filing system workspace and thus causing the channel error. The filing system workspace would be low on a BBC B but on a master I believe it is in some RAM that is paged over the VDU drivers in the OS ROM so if copying into a sideways RAM bank run past the end of the RAM bank with a filing system as the active ROM that workspace is probably what would get written to.

User avatar
sweh
Posts: 2135
Joined: Sat Mar 10, 2012 12:05 pm
Location: New York, New York
Contact:

Re: Updated BASIC Editor

Post by sweh » Mon Nov 19, 2018 10:22 pm

IIRC, *SRLOAD opens the file reads byte by byte.

So... do you get the same error if you use the "Q" flag to *SRLOAD? This is "quick" mode and loads the data into low memory then moves it into SWRam.

What SSD ROM are you using? Some of the older ones have bugs that you might be hitting, especially since they were based on old versions of DOS that don't understand Master high memory workspace.
Rgds
Stephen

thearttrooper
Posts: 36
Joined: Fri Dec 09, 2011 9:56 am
Contact:

Re: Updated BASIC Editor

Post by thearttrooper » Tue Nov 20, 2018 8:30 pm

I was able to load the 1.43 beta ROM into BeebEm 4.14. Another dumb question: how do I make sure I am *EDIT into the right editor? Iv'e tried *UNPLUG <ROM> containing the standard Basic editor.

I also made a new SSD using the same BeebEm containing the ROM. This *SRLOADed correctly on my Master - no channel error. But I have the same challenge: how to be sure I'm loading the right editor.

Thanks.

User avatar
geraldholdsworth
Posts: 588
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: Updated BASIC Editor

Post by geraldholdsworth » Tue Nov 20, 2018 9:05 pm

thearttrooper wrote:
Tue Nov 20, 2018 8:30 pm
But I have the same challenge: how to be sure I'm loading the right editor.
*EDIT takes you into Edit
*BE takes you into The BASIC Editor
Gerald Holdsworth
Repton Resource Page
www.reptonresourcepage.co.uk

thearttrooper
Posts: 36
Joined: Fri Dec 09, 2011 9:56 am
Contact:

Re: Updated BASIC Editor

Post by thearttrooper » Wed Nov 21, 2018 6:59 am

Using BeebEm with the ROM loaded into sideways RAM (slot 4), *BE reports "Bad command". Clearly, I've been far too long gone from my beeb days. Suggestions welcomed.

thearttrooper
Posts: 36
Joined: Fri Dec 09, 2011 9:56 am
Contact:

Re: Updated BASIC Editor

Post by thearttrooper » Wed Nov 21, 2018 7:07 am

I turned on the "Basic Hardware Only" in BeebEm and the editor is working. Thanks everyone for your help.

tom_seddon
Posts: 363
Joined: Mon Aug 29, 2005 11:42 pm
Contact:

Re: Updated BASIC Editor

Post by tom_seddon » Sun Oct 27, 2019 12:36 am

There's a new version of the BASIC editor out! Get ver 1.44 from GitHub: https://github.com/tom-seddon/basic_edi ... r/releases

What's new:
  • Reinstate old CTRL+up/down behaviour
  • Fix screen drawing bug
  • More reliably clear screen before returning to command mode
  • Switch to Mode 135/Mode 7 when loading a file that's too large for the current mode
  • Fix occasionally missing output when using *BR or *BZ
  • Add separate IFIND, ICHANGE and QICHANGE commands for case-insensitive searching. CASE and NOCASE are gone
  • You can press SHIFT+ESCAPE in edit mode to get back to BASIC
  • When not in the second processor, you can (optionally - see docs) press SHIFT+ESCAPE in BASIC to get back to The BASIC Editor
--Tom

User avatar
Yrrah2
Posts: 381
Joined: Tue Feb 06, 2007 6:06 pm
Location: Netherlands
Contact:

Re: Updated BASIC Editor

Post by Yrrah2 » Tue Oct 29, 2019 12:22 pm

Nice work Tom!

Cheers
Happy with my BBC Master
www.mybbcmaster.nl

Rfairman
Posts: 136
Joined: Mon Jul 15, 2019 7:58 am
Contact:

Re: Updated BASIC Editor

Post by Rfairman » Sun Feb 09, 2020 11:32 am

Hi Tom

love the new Basic Editor

One question, i am programming in control basic
Does the Editor simply act as a simple word processor or does it always call basic when Run is used

Is there a way of calling Control Basic when Run is used I supposed i could save the edited file and then run it from disc

Whoever designed the built in BBC B editor must have had a perverse sense of humour I have never been able to fathom it out or even follow the written instructions

regards

Richard

tom_seddon
Posts: 363
Joined: Mon Aug 29, 2005 11:42 pm
Contact:

Re: Updated BASIC Editor

Post by tom_seddon » Sun Feb 09, 2020 11:31 pm

Rfairman wrote:
Sun Feb 09, 2020 11:32 am
Hi Tom

love the new Basic Editor

One question, i am programming in control basic
Does the Editor simply act as a simple word processor or does it always call basic when Run is used

Is there a way of calling Control Basic when Run is used I supposed i could save the edited file and then run it from disc

Whoever designed the built in BBC B editor must have had a perverse sense of humour I have never been able to fathom it out or even follow the written instructions
Hi Richard,

Thanks for the kind words. I'm glad you like it!

The editor isn't a word processor or text editor as such - it works directly with the BBC BASIC tokenized format. So it's only compatible with BBC BASIC.

I've briefly tried Control Basic in an emulator, using the disk image you posted, and it looks like it might be an extension to BBC BASIC, rather than an entirely separate program. This suggests it might be feasible to support it, which is something I'd be very happy to do, if it proves not too much work.

It's not obvious what extra functionality it's providing, though! What can I do to test it out?

Thanks,

--Tom

Rfairman
Posts: 136
Joined: Mon Jul 15, 2019 7:58 am
Contact:

Re: Updated BASIC Editor

Post by Rfairman » Sun Feb 09, 2020 11:44 pm

Hi

I was given this code to list the control basic command but i could not get it to work

Unless it implements a HELP command, your best bet is something like:
FOR A%=&8000 TO &BFFF
IF ?A%>64:IF ?A%<96:VDU ?A% ELSE IF POS PRINT
NEXT A%

I have asked for a copy of the control basic documentation from the museum in Cambridge hopefully as a pdf and I will post it here

Regards

Richard

User avatar
Wheel_nut
Posts: 183
Joined: Wed May 01, 2019 12:46 pm
Location: West of Scotland
Contact:

Re: Updated BASIC Editor

Post by Wheel_nut » Wed Feb 19, 2020 3:35 pm

Hi Tom, A couple of questions before I attempt to use Version 1.44 on my BBC B:

1) Do all of the commands documented in the Basic Editor V1.32 PDF Manual still work exactly as documented?

2) Is there an "addendum" document to the V1.32 PDF Manual showing the additional commands and functions of V1.44.

Thank you for what looks like an impressive piece of work and I am looking forward to using it.

Robin
#1 BBC Model B Issue 7 + 1770 DFS + Dual TEAC Floppy
#2 BBC Model B Issue 7 + 8271 DFS + Dual Floppy + Speech + PiTubeDirect on KenLowe's Tube Level Shifter
#3 BBC Model B Issue 7 + 8271 DFS + Cumana Single Floppy

tom_seddon
Posts: 363
Joined: Mon Aug 29, 2005 11:42 pm
Contact:

Re: Updated BASIC Editor

Post by tom_seddon » Fri Feb 21, 2020 10:50 pm

Hi Robin,
Wheel_nut wrote:
Wed Feb 19, 2020 3:35 pm
1) Do all of the commands documented in the Basic Editor V1.32 PDF Manual still work exactly as documented?
The command mode commands should all behave the same, but some of the edit mode keyboard shortcuts are different. Which leads us neatly on to...
Wheel_nut wrote:
Wed Feb 19, 2020 3:35 pm
2) Is there an "addendum" document to the V1.32 PDF Manual showing the additional commands and functions of V1.44.
Such as it is, that's here: https://github.com/tom-seddon/basic_edi ... ocs/doc.md

It doesn't go into very much detail (please let me know if there's anything that's not clear enough!), but I think it covers everything. I do try to keep it updated when I add new stuff.

Thanks,

--Tom

P.S. the edit mode key changes mean that the normal function key strip is not quite right any more! - I do plan on making a PDF with an updated one, that you can print and cut out...

User avatar
Wheel_nut
Posts: 183
Joined: Wed May 01, 2019 12:46 pm
Location: West of Scotland
Contact:

Re: Updated BASIC Editor

Post by Wheel_nut » Sat Feb 22, 2020 1:50 am

Hi Tom and thank you for your very detailed answers to my queries. I have copied the addendum documentation and added it to my manual.

It may be some time before I can give you some meaningful feedback but I will install it and use it.

Best regards, Robin
#1 BBC Model B Issue 7 + 1770 DFS + Dual TEAC Floppy
#2 BBC Model B Issue 7 + 8271 DFS + Dual Floppy + Speech + PiTubeDirect on KenLowe's Tube Level Shifter
#3 BBC Model B Issue 7 + 8271 DFS + Cumana Single Floppy

Post Reply