Search found 621 matches

by Richard Russell
Fri Feb 22, 2019 11:02 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.18 released
Replies: 475
Views: 19493

Re: Matrix Brandy BASIC V for Linux with SDL: V1.21.18 released

Whether that's bundled in the same executable as the Basic interpreter is irrelevant, it's not part of BASIC, it's part of the filing system layer. I can't speak for Matrix Brandy, but in BBCSDL there are indeed two distinct 'layers', which run in different threads and communicate with each other v...
by Richard Russell
Fri Feb 22, 2019 9:40 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.18 released
Replies: 475
Views: 19493

Re: Matrix Brandy BASIC V for Linux with SDL: V1.21.18 released

I've just discovered a bug with EOF#. EOF#0 returns 0, instead of causing an "invalid channel" error as it does in other versions of BBC BASIC. That's not a function of BASIC, that's a function of the filing system Whilst that would be true if Brandy was running on RISC OS, it's not when the filing...
by Richard Russell
Thu Feb 14, 2019 1:51 pm
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

you could use any editor on the PC to edit basic programs. Not 'tokenised' (internal format) BASIC programs, which is what programs in an SSD are likely to be. "Any editor on the PC" is only going to be useful for plain text files, such as might be created by *SPOOL and/or loaded with *EXEC, but th...
by Richard Russell
Thu Feb 14, 2019 12:56 pm
Forum: off-topic
Topic: Sound Export
Replies: 23
Views: 634

Re: Sound Export

EVERY bit of music coding I've written since about 1983 has been based on 101=middle C. On which channel? As I understand it, Acorn have deliberately made the different 'tone' channels (1, 2, 3) generate slightly different frequencies so that if you play the same note on two or three channels toget...
by Richard Russell
Thu Feb 14, 2019 9:38 am
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

The problem you're encountering is that SLIDE uses Richard Russel's newer tokenized format instead of Acorns. As I've mentioned, since SDLIDE is itself written in BBC BASIC adapting it to output Acorn-format tokenised programs would not be difficult (the latest version already loads Acorn format fi...
by Richard Russell
Thu Feb 14, 2019 9:17 am
Forum: general
Topic: Bit of fun Part Two - CPU Swap
Replies: 28
Views: 632

Re: Bit of fun Part Two - CPU Swap

would be looking to double the performance... and the Z80 didn't have the headroom for that, I think. Assuming an approximately 2:1 difference between clock rates for equivalent performance (i.e. a 4 MHz Z80 roughly equivalent to a 2 MHz 6502) the relevant dates, according to the internet , are: Z8...
by Richard Russell
Wed Feb 13, 2019 2:34 pm
Forum: general
Topic: Bit of fun Part Two - CPU Swap
Replies: 28
Views: 632

Re: Bit of fun Part Two - CPU Swap

The only issue I'd have with that is the fact that upon startup it erm demands a data disc or such rather than drop straight into Basic My recollection is quite vague after all these years, but I suspect we (i.e. the BBC) had an RFS ROM containing Z80 BBC BASIC which could be run without a disk (it...
by Richard Russell
Sat Feb 09, 2019 5:37 pm
Forum: projects
Topic: Viewdata Service
Replies: 131
Views: 8632

Re: Viewdata Service

trixster wrote:
Sat Feb 09, 2019 1:18 pm
I can only assume something has change wrt glasstty.com
It seems to be fine when accessed from my telstar.bbc program (supplied with BBC BASIC for SDL 2.0).
by Richard Russell
Thu Feb 07, 2019 5:43 pm
Forum: software: other
Topic: BASIC Tokenizer
Replies: 7
Views: 384

Re: BASIC Tokenizer

Here's a BASIC program to do the job. I have uploaded a Windows executable here , it has not been extensively tested but seems to work. REM!Exefile tokenise.exe,signed,encrypt,console ON ERROR PRINT REPORT$ : QUIT REM Standard console program rubric: SYS "GetStdHandle", -10 TO @hfile%(1) SYS "GetStd...
by Richard Russell
Thu Feb 07, 2019 9:16 am
Forum: software: other
Topic: BASIC Tokenizer
Replies: 7
Views: 384

Re: BASIC Tokenizer

Is there an easy way to tokenize plain text BASIC files? You can call the built-in tokeniser (in all versions of BBC BASIC except Brandy) using a cheat involving EVAL . Jonathan has a BASIC library which incorporates this code and will run on 6502, Z80, 32000, RISC OS, MS-DOS or Windows BBC BASIC. ...
by Richard Russell
Sun Feb 03, 2019 2:42 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v1.00a released
Replies: 0
Views: 68

BBC BASIC for SDL 2.0 v1.00a released

After three years of (intermittent) development I have been persuaded to bump the BBCSDL version number to 1.00a, which I have duly released. See the full announcement here.
by Richard Russell
Sat Feb 02, 2019 3:14 pm
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

dominicbeesley wrote:
Thu Jan 31, 2019 11:30 am
When I get time I'll have a go at changing SDLIDE to save as Acorn format too.
Version 1.00a of SDLIDE, released today, supports loading (but not saving) of Acorn-format programs.
by Richard Russell
Fri Feb 01, 2019 11:44 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.18 released
Replies: 475
Views: 19493

Re: Matrix Brandy BASIC V for Linux with SDL: V1.21.18 released

Soruk wrote:
Fri Feb 01, 2019 11:26 am
I don't have any Bezier curve capability in the SDL code yet, but SDL_gfx for SDL1.2 might.
It does (SDL_gfx and SDL2_gfx are almost identical functionally I think).
by Richard Russell
Thu Jan 31, 2019 4:04 pm
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

this will not work in Brandy. Its internal structures are not visible to a running BASIC program, indeed PAGE = 0 on Linux and Windows builds. So what memory is visible to a running BASIC program? Presumably everything between LOMEM and HIMEM is, otherwise indirection would not work. What about abo...
by Richard Russell
Thu Jan 31, 2019 2:00 pm
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

Incidentally, RTR - how/why did the different BASIC formats come about? There were two main factors. Firstly, the CPU families for which I've written BBC BASIC interpreters (Z80, 8086, IA-32) are all little-endian, that is they expect 16-bit values stored in memory to have the least-significant 8-b...
by Richard Russell
Wed Jan 30, 2019 11:27 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.18 released
Replies: 475
Views: 19493

Re: Matrix Brandy BASIC V for Linux with SDL: V1.21.18 released

Trouble is I'm struggling to understand the maths to make it not leave gaps or draw jagged edges.... I don't support non-axis-aligned ellipses natively in BB4W or BBCSDL, because the graphics libraries they rely on ( Windows GDI in the case of BB4W, SDL2_gfx in the case of BBCSDL) don't support the...
by Richard Russell
Tue Jan 29, 2019 5:17 pm
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

Anyway, just a thought. You may have other requirements that I haven't fully appreciated. I don't have any "requirements" since I'm not the OP! I'm personally not interested in running programs on a Beeb (or an emulator) or in 'retro-computing' of any sort. I get my kicks from pushing BBC BASIC to ...
by Richard Russell
Tue Jan 29, 2019 3:22 pm
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

I suppose I was thinking more of the delay while the user waits for the program encoded in the UEF to load into the emulated Beeb's memory from the emulated cassette recorder. So is the default to load at the same speed as a real Beeb would load from a tape? If so (and I might argue that's taking e...
by Richard Russell
Tue Jan 29, 2019 1:40 pm
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

Just to clarify: you’re looking for BASIC code that would construct a blank .SSD in memory; add a file to the .SSD — the content of the file being a tokenised BASIC program which the user has been editing and wants to test in BeebEm (or another emulator); and then write the .SSD to a file on the ho...
by Richard Russell
Tue Jan 29, 2019 12:47 am
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

RTR, as Tricky says you can use BeebAsm to make an SSD BeebAsm sounds like an assembler so I didn't think that comment was directed at me. What I'm really looking for is BASIC code that I can incorporate in a patched version of SDLIDE, not (ideally) an external utility that it would have to call - ...
by Richard Russell
Mon Jan 28, 2019 9:33 pm
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

Will I have to make a .ssd or .uef file, and if so which is the simpler of the two to build? Nobody? Being able to run the program on a Beeb emulator at the click of a button - no need to save from the editor and then load into the Beeb, or copy to the clipboard and then *EXEC - seemed pretty cool ...
by Richard Russell
Sat Jan 26, 2019 5:30 pm
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

That's why I suggested SDLIDE, because you can adapt it to do anything you want. To run the program on an emulator you wouldn't even need to save it first, you could arrange for that to happen simply by clicking the Run button! I've been experimenting with doing that using BeebEm, but it's seemingl...
by Richard Russell
Thu Jan 24, 2019 3:11 pm
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

does TAB do anything special in the editor TAB currently does nothing in the SDLIDE editor. CTRL+I, which generates the same keycode, is a shortcut for 'Insert file', but the TAB key is explictly ignored by testing INKEY(-97): WHEN 314,9: IF NOT INKEY(-97) THEN PROCundosave(Buffer$(), UndoLevel%, R...
by Richard Russell
Thu Jan 24, 2019 12:37 pm
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

it doesn't seem to expand abbreviated keywords like BBC Basic for windows or am I missing an option somewhere - I naturally abbreviate BASIC. Keyword abbreviations too often clash with the structure-member syntax in BB4W/BBCSDL so I always disable them anyway. But the only reason they don't work in...
by Richard Russell
Thu Jan 24, 2019 9:38 am
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

tom_seddon wrote:
Thu Jan 24, 2019 12:54 am
JSBeeb's tokenizer does something interesting: it runs the tokenizer from the BASIC 4 ROM!
All versions of BBC BASIC (with the possible exception of Brandy, I need to check that) allow you to run their built-in tokeniser via a cheat involving EVAL.
by Richard Russell
Thu Jan 24, 2019 9:31 am
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

I really want something "seamless" - what I'd like to do is be able to hit save in my PC editor, saving to my HostFS share and then instantly run on the real beeb. That's why I suggested SDLIDE, because you can adapt it to do anything you want. To run the program on an emulator you wouldn't even ne...
by Richard Russell
Wed Jan 23, 2019 6:50 pm
Forum: programming
Topic: How do you edit your BASIC programs?
Replies: 49
Views: 1136

Re: How do you edit your BASIC programs?

Are there any programs that will directly edit BBC Basic programs on a PC? The closest I've found is BBC Basic for Windows but that doesn't seem to save out in "old style" tokenized basic and requires an extra step to export as text then *exec it on the beeb which is a bit of a pain. You could modi...
by Richard Russell
Tue Jan 22, 2019 11:52 am
Forum: general
Topic: "Outline specification for the BBC MICROCOMPUTER system"
Replies: 220
Views: 20813

Re: "Outline specification for the BBC MICROCOMPUTER system"

Not as momentous as the original spec you posted but all part of the history. Although I don't think I have my own copy, I strongly suspect I wrote it! I've spotted one mistake: it implies that semicolon acts in INPUT as it does in PRINT, but although that was true of some contemporary BASICs it ne...
by Richard Russell
Mon Jan 21, 2019 10:02 pm
Forum: general
Topic: "Outline specification for the BBC MICROCOMPUTER system"
Replies: 220
Views: 20813

Re: "Outline specification for the BBC MICROCOMPUTER system"

scruss wrote:
Mon Jan 21, 2019 9:05 pm
Seems mostly to be a BBC BASIC language spec plus some physical/electronic details.
I note that the keyboard layout (last page) appears to have been produced by Chris Turner (CBT) and somebody with the initials RR. I wonder who that might be! :lol:
by Richard Russell
Sat Jan 19, 2019 11:04 pm
Forum: hardware
Topic: Retro Hardware in FPGA's
Replies: 13
Views: 703

Re: Retro Hardware in FPGA's

The assumption I have come to is that because the logic is running at low speeds i.e. sub 10Mhz the above points are as critical ? When something is described as 'best practice' (and I agree with all the recommendations you listed) it doesn't mean that ignoring the advice will definitely cause the ...