Search found 470 matches

by Soruk
Tue Dec 10, 2019 4:15 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released

HIMEM can always be reduced and memory between new-HIMEM and old-HIMEM used. So does Matrix Brandy default to setting HIMEM high and expecting the user to reduce it if necessary? My BASICs (BB4W and BBCSDL) work the other way: HIMEM by default is set quite low (2 Mbytes above PAGE) but can be raise...
by Soruk
Tue Dec 10, 2019 12:25 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released

Latest changes: Tek now only enabled on Unix-like platforms (not including Cygwin, the terminal mode build runs in a console window, so won't run in a Cygwin xterm). The call SYS "Brandy_TekEnabled" is simply ignored where not supported. Large memory model available, neither 32-bit nor 64-bit builds...
by Soruk
Thu Dec 05, 2019 11:11 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.2 released

Another quick question if I may: the 'experimental' Windows version of Matrix Brandy (which is the only one I ever run) is described at the website as a "32-bit build". Is that still the case, now support for 64-bit addresses is, as I understand it, a standard feature? To update this, I've started ...
by Soruk
Mon Dec 02, 2019 10:58 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.2 released

annoyingly the call to return the base of video memory tells me that it's in the first 2GB - no matter what I try. That's very similar to what I was finding, except I think it was something like a texture pointer that was always below 2 GB on Linux but not on Mac OS (bearing in mind that I'm using ...
by Soruk
Sun Dec 01, 2019 8:56 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.2 released

On my 64-bit CentOS 6 machine... PAGE = &7F691173E010, HIMEM = &7F69117BE010 I think I'm right in remembering that what broke 'Forces of Darkness' on MacOS was not workspace pointers (which as you say need 64-bit variables in Linux too) but 64-bit values returned from SYS calls. For whatever reason...
by Soruk
Sun Dec 01, 2019 6:32 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.2 released

Interestingly, although Linux is better at detecting 64-bit compatibilty it's nothing like as good as Mac OS. I thought I had fully adapted David Williams' 'Forces of Darkness' game to be 64-bit compatible, because it ran perfectly on 64-bit Ubuntu. But as soon as I tried it on Mac OS it fell over,...
by Soruk
Sun Dec 01, 2019 4:49 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.2 released

In the release (not nightly) zip files, they're in docs/swis.txt . Ah, OK. I would never have thought to look for SYS under SWI; to somebody not familiar with RISC OS, the link isn't obvious. Indeed, the keyword SYS doesn't appear anywhere in that file! Another quick question if I may: the 'experim...
by Soruk
Sun Dec 01, 2019 1:09 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.2 released

SYS "Brandy_TekEnabled",1,9600 Sorry if this is something I should already know, but where can I find a full list of these special SYS calls which affect the internal workings of the interpreter? Are there too many to be included in the *HELP summaries? In the release (not nightly) zip files, they'...
by Soruk
Fri Nov 29, 2019 11:04 pm
Forum: software: other
Topic: Calculating digits of Pi in Basic
Replies: 37
Views: 1027

Re: Calculating digits of Pi in Basic

Timing just the calculation, 50 digits in 44 seconds: Or in BBC BASIC for SDL 2 on a i7-4790K @ 4.00GHz, 4400 digits in 44 seconds. Couldn't get it to run at all in Matrix Brandy on the same machine. It failed with Address exception at line 100 . I suspect a 64 bit problem, as it seems to run fine ...
by Soruk
Thu Nov 28, 2019 1:06 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released

And, to more useful stuff. A handful of regressions were fixed (as a result of the 64-bit int work): * Assigning a float array from a list wasn't being instantiated correctly * Incorrectly trying to pop a 64-bit int when it should have been a 32-bit, thus completely breaking the stack pointer and co...
by Soruk
Wed Nov 27, 2019 2:44 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.2 released

More Tek tweaking: I've just pushed an update that extends SYS "Brandy_TekEnabled" to take a second parameter. If non-zero, it is used as an approximate bit rate for drawing the graphics. For example, SYS "Brandy_TekEnabled",1,9600 will simulate the maximal speed of a Tektronix 4010. Possibly useful...
by Soruk
Tue Nov 26, 2019 12:02 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.2 released

The 38h possibly comes from the codes used by xterm to switch the cursor between the VT (text) window and the Tek window. I suspect the tek4010 emulator won't recognise them as there's nothing for it to switch to. I had a chat with Rene Richarz, the author of Tek4010, about this and he notes that t...
by Soruk
Mon Nov 25, 2019 9:20 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.2 released

Hi, I've just released V1.22.2 of Matrix Brandy BASIC VI. Changes since V1.22.1 include: - Merge in 64-bit int capability - Remove offset memory model, PAGE, HIMEM and indirection operators now use actual memory locations. - Text-mode builds available for Windows with Cygwin build environment. - Cha...
by Soruk
Fri Nov 22, 2019 2:50 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

Hi Soruk, The 'original' Brandy BASIC is listed on this page http://www.bbcbasic.co.uk/bbcbasic.html as being for "RISC OS, NetBSD, OpenBSD, FreeBSD, Linux, Mac OS X, Amiga OS, MS-DOS." Matrix Brandy BASIC is listed for "Linux, Raspberry Pi and Windows." Can Matrix Brandy BASIC also be compiled and...
by Soruk
Fri Nov 22, 2019 9:27 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

This code, which I would have expected to do something sensible, reports 'Address exception': 10 B = PI 20 PROC1 30 END 50 DEF PROC1 60 LOCAL A,B 70 LOCAL ERROR 80 ON ERROR PRINT REPORT$ ", B = ";B : STOP 100 B = 0 110 A = 1/B 120 ENDPROC For that, I need to point a debugger at it, as Matrix Brandy...
by Soruk
Thu Nov 21, 2019 5:57 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

I don't understand how it is happening. I trust you remembered to change both RESTORE LOCALs to RESTORE ERROR for your test. If you changed only the one in PROC2 it's not in the least surprising that 3.14159265 woud be printed! Yes, I did. Saying that, when trying it in BBCSDL I only changed the se...
by Soruk
Thu Nov 21, 2019 3:51 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

Prior to that, the PROC2 error handler worked, but then it stopped as if no error handler were in place. And calling PROC1 from the command line resulted in a segfault! It's all good now. Obviously I would not want you to make any changes to Matrix Brandy that unnecessarily impair its compatibility...
by Soruk
Thu Nov 21, 2019 2:11 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

Edit: I've just checked in a couple of new demos, sine and spiral, which will use the normal graphics in the SDL build, and Tektronix graphics in tbrandy. There's no path switching in the code, it just switches on TekEnabled then goes ahead with regular BASIC graphics commands. Ooh, nicer still! So...
by Soruk
Thu Nov 21, 2019 1:07 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

RESTORE LOCAL restores everything that would normally be restored on ENDPROC. So that includes stacked parameters and LOCAL variables (and PRIVATE variables in my BASICs) as well as doing a RESTORE DATA and/or RESTORE ERROR just as ENDPROC does. If you're calling the same code as ENDPROC and = uses...
by Soruk
Thu Nov 21, 2019 12:23 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

That's now implemented on git, it'll be in tonight's nightly build for Windows. Wow, you have surpassed yourself! Well, it wasn't exactly right, as it turned out the ON ERROR handler was only correctly stacked if you used LOCAL ERROR then ON ERROR, but not ON ERROR LOCAL. While I'm not 100% certain...
by Soruk
Wed Nov 20, 2019 4:53 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

I've mentioned in other threads the invaluable (in my opinion) extension to BB4W and BBCSDL: RESTORE LOCAL ; would you consider incorporating it in Matrix Brandy? In my BASICs it was almost trivial to implement, because it activates a mechanism that must already exist: restoring formal parameters a...
by Soruk
Tue Nov 19, 2019 9:08 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

Interesting feature. Could you post some screenshots and code snippets demonstrating it? examples/graphdemo runs in both the SDL build and tbrandy (within an xterm). The tekdemo1, tekdemo2 and tekspiral demos do not require this feature, as they use teklib which itself generates the Tektronics code...
by Soruk
Mon Nov 18, 2019 5:06 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

Just for the sheer hell of it, I've implemented some basic graphics in the text-mode tbrandy client.

This is not enabled by default, and requires tbrandy to be run in an xterm window.
To enable, use: SYS "Brandy_TekEnabled",1
This SYS call is ignored with no error on other builds.
by Soruk
Tue Nov 12, 2019 11:47 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

Over on the BBC BASIC forum ( here ), I inadvertently uncovered a bug in GOTO parameter handling in Brandy (this code is untouched from the upstream source). Initially, from quick testing (GOTO x% and getting Syntax error) I came to the erroneous conclusion that Brandy didn't support variables as a ...
by Soruk
Mon Nov 11, 2019 3:30 pm
Forum: software & utilities for the pc, mac or unix
Topic: Proposal for BBC BASIC 'FOR lists'
Replies: 27
Views: 928

Re: Proposal for BBC BASIC 'FOR lists'

I like it. Similar to 'for' in the bash shell. (I wonder how hard that'll be to implement in Matrix Brandy) Cross-posting my reply in the other forum: Right now there's a lot going on in the real world that precludes me spending a lot of time on something that might be used a little, if at all, to ...
by Soruk
Fri Nov 08, 2019 3:46 pm
Forum: software & utilities for the pc, mac or unix
Topic: Proposal for BBC BASIC 'FOR lists'
Replies: 27
Views: 928

Re: Proposal for BBC BASIC 'FOR lists'

I like it. Similar to 'for' in the bash shell.

(I wonder how hard that'll be to implement in Matrix Brandy)
by Soruk
Wed Oct 16, 2019 6:40 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

dhg2 wrote:
Wed Oct 16, 2019 12:17 pm
Sorry to spam you
Nope, not spamming me. Real bug reports like these, especially with a test harness, are most welcome.
by Soruk
Wed Oct 16, 2019 12:32 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

Thanks for looking into it. Sorry to spam you, but, I notice now that there seems to be some trouble with stuff getting drawn outside of the graphics window. Tested with this code: MODE 13 PROCgcol(0,0,0):RECTANGLE FILL 0,0,1280,1024 VDU 24, 100;100;400;400; PROCgcol(0,0,128):RECTANGLE FILL 0,0,128...
by Soruk
Wed Oct 16, 2019 9:33 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

Hello, I notice that if you try to draw text at the location of the graphics cursor (with VDU 5 and then PRINT), and if the current graphics colour is black, no text is drawn. Tested with this program: MODE 1 PROCtextdraw(100,100,"Matrix Brandy BBC BASIC") END DEF PROCtextdraw(x%,y%,s$) LOCAL xx%,y...
by Soruk
Tue Oct 15, 2019 4:39 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 831
Views: 45433

Re: Matrix Brandy BASIC VI for Linux with SDL: V1.22.1 released

Hello, I notice that if you try to draw text at the location of the graphics cursor (with VDU 5 and then PRINT), and if the current graphics colour is black, no text is drawn. Good spot. Yup, need to fix that. Edit: The reason this is happening is, that it's building the character cell, blitting tr...