Search found 176 matches

by Soruk
Mon Oct 15, 2018 4:24 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

On a branch (rpigpio), I'm experimenting with adding GPIO support for the Raspberry Pi, while not breaking anything for any other platform. In keeping with the BBC Micro style of I/O ports being memory-mapped, if Brandy is able to open /dev/gpiomem for read-write, then it'll mmap() it, and the follo...
by Soruk
Fri Oct 12, 2018 8:59 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

and didn't you only today announce that Matrix Brandy can now access the Windows command line (e.g. *dir)?! It has always been able to, what I fixed was the output being returned to the SDL window which was previously broken. There is no capability of SYS to access arbitrary host (or even SDL) func...
by Soruk
Fri Oct 12, 2018 6:07 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

I came across this ( https://groups.io/g/bb4w/topic/25390331 ) earlier today. Richard, I'm sorry you sometimes feel Matrix Brandy is a "threat". That is not, and has never been my intention. BB4W is a mature, stable and highly acclaimed product which you should be rightly proud of. BBCSDL, while muc...
by Soruk
Fri Oct 12, 2018 10:45 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

The last changes produces some compiler warnings: src/graphsdl.c: In function ‘scroll’: src/graphsdl.c:919:19: warning: iteration 24 invokes undefined behavior [-Waggressive-loop-optimizations] mode7changed[n+1]=mode7changed[n]; ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ src/graphsdl.c:917:7: note: within t...
by Soruk
Fri Oct 12, 2018 10:41 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

Hi, I've just put together version 1.21.15, it's on the website and Github as usual. This release includes a handful of bug fixes (one of which I inadvertently introduced back in 1.21.8 ) and enhancements, some of which are: - Bug fix: Setting *KEY15 scribbled outside array bounds. - Bug fix: Errone...
by Soruk
Thu Oct 11, 2018 1:04 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

Is control+shift implemented? I mean, the keys that pause text scrolling. I don't remember if control+shift is the right combination. Should it be relevant, Ctrl+Shift pausing is implemented in BBC BASIC for Windows , but not in BBC BASIC for SDL 2.0 . VDU 14 pausing is implemented in both. OK - we...
by Soruk
Wed Oct 10, 2018 5:13 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

Is control+shift implemented? I mean, the keys that pause text scrolling. I don't remember if control+shift is the right combination. I mean, my hand knows, if you know what I mean. (I'm away from a computer and typing this on my phone) I don't know about that combination... so I'll have to test th...
by Soruk
Tue Oct 09, 2018 2:43 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

That's the rest of VDU23,16 implemented, apart from bit 3 (so making the x-axis vertical and y-axis horizontal is not supported).
by Soruk
Sun Oct 07, 2018 5:26 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

Default value for the byte is 1 The default is zero in BB4W and BBCSDL. To get rid of the gap in those versions it's necessary to change the setting explicitly: MODE 1 VDU 23,16,1| PRINT STRING$(40,"*") The other bits of VDU 23,16 are also implemented in BB4W and BBCSDL: MODE 1 VDU 23,16,2|13 PRINT...
by Soruk
Sat Oct 06, 2018 10:58 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

Might as well do it right. VDU23,16 enabled. The byte is set in its entirety as per the spec, but for now only bit 0 has any functionality. Default value for the byte is 1 (as per *CONFIGURE NOSCROLL on the Master and RISC OS, and the state the VDU is left in by the desktop irrespective of the *CONF...
by Soruk
Tue Oct 02, 2018 6:04 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

I've just pushed a few bug fixes: *KEY15 was scribbling out of bounds of the array (an off by one error in array allocation) When a program was doing lots of reading the mouse state and INKEY(negative), the event queue was filling up, causing some events to get lost. This queue is now cleared on rea...
by Soruk
Tue Oct 02, 2018 9:55 am
Forum: projects
Topic: Viewdata Service
Replies: 115
Views: 5885

Re: Viewdata Service

John_Newcombe wrote:
Tue Oct 02, 2018 8:59 am
Soruk wrote:
Tue Oct 02, 2018 8:02 am
The latest build (which I'm pretty sure wasn't there yesterday) is rendering completely empty pages for practically all the content.

Tested using both my Brandy-based client and Richard's BBCSDL client on Android.
Fixed!
Confirmed!
by Soruk
Tue Oct 02, 2018 8:02 am
Forum: projects
Topic: Viewdata Service
Replies: 115
Views: 5885

Re: Viewdata Service

The latest build (which I'm pretty sure wasn't there yesterday) is rendering completely empty pages for practically all the content.

Tested using both my Brandy-based client and Richard's BBCSDL client on Android.
by Soruk
Sun Sep 30, 2018 9:06 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

Soruk wrote:
Sun Sep 30, 2018 12:00 pm
I'd forgotten about COLOUR OF and ON - both already work in Brandy (quick test in MODE 1 - COLOUR OF 2 ON 1 for example), but I need to check they work correctly in 24bpp modes.
And, they do indeed work with no further code changes required.
by Soruk
Sun Sep 30, 2018 2:03 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

It's from RISC OS 5: https://www.riscosopen.org/forum/forums/5/topics/1711#posts-20372 I'm not sure that I should thank you for reminding me of that five-year-old thread, which was distressing at the time and which is distressing to read now; having a failing memory is sometimes useful. I don't thi...
by Soruk
Sun Sep 30, 2018 12:00 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

You can set the graphics background colour using GCOL ON r,g,b Is this a syntax you've devised or something RISC OS BASIC had all along but which wasn't previously noted here? It's from RISC OS 5: https://www.riscosopen.org/forum/forums/5/topics/1711#posts-20372 The underlying code for Brandy alrea...
by Soruk
Fri Sep 28, 2018 2:54 pm
Forum: software & utilities for the pc, mac or unix
Topic: Request for help in organising/releasing source code
Replies: 92
Views: 2750

Re: Request for help in organising/releasing source code

I've got it working by copying the bbcsdl binary and libstl.so to top-level. Unless you've modified the makefile, its last two lines do that already. That didn't happen for me. I'll have a look at the Makefile to see if it's being upset by something in Fedora. Update: I see what happened. libSDL2ma...
by Soruk
Fri Sep 28, 2018 12:33 pm
Forum: software & utilities for the pc, mac or unix
Topic: Request for help in organising/releasing source code
Replies: 92
Views: 2750

Re: Request for help in organising/releasing source code

I've got it compiled, it runs - but, the IDE chooser just shows the error "File or path not found" Just to be clear, you're running the executable in the same directory as 'bbcsdl.bbc' and the subdirectories 'lib' and 'examples' are also present there (and are populated)? You would probably get tha...
by Soruk
Fri Sep 28, 2018 12:31 pm
Forum: software & utilities for the pc, mac or unix
Topic: Request for help in organising/releasing source code
Replies: 92
Views: 2750

Re: Request for help in organising/releasing source code

And, it really objects to a non-tokenised program (with a .bas suffix) - with "Bad program". That's what you would expect, isn't it? Brandy and Matrix Brandy allow you to LOAD text files as programs, so maybe Soruk is used to doing that. If I remember correctly, ARM BASIC doesn't allow you to load ...
by Soruk
Fri Sep 28, 2018 11:38 am
Forum: software & utilities for the pc, mac or unix
Topic: Request for help in organising/releasing source code
Replies: 92
Views: 2750

Re: Request for help in organising/releasing source code

While I haven't tried to compile your BASIC on it (it's a 32-bit only machine) It should compile now I've modified the makefile so that it automatically adapts to 32 or 64 bits. I've got it compiled, it runs - but, the IDE chooser just shows the error "File or path not found" (and, since you've rem...
by Soruk
Fri Sep 28, 2018 9:06 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

Hi, Hi've just released Matrix Brandy V1.21.14. Quite a lot has gone into this one. Bugs fixed include: * Similar to the GET fix in V1.21.11, the same problem of spurious zero returns was occurring with INKEY(delay) * CLS when a text window is active, the cursor was not being homed * VDU28 text wind...
by Soruk
Fri Sep 28, 2018 8:13 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

bakoulis wrote:
Thu Sep 27, 2018 10:31 pm
Now the previously test program looks like this!
Argh.

I've found the commit that broke it, now to fix it again.

Edit: Fixed. Was a mistake in my earlier code cleanup.
by Soruk
Fri Sep 28, 2018 8:11 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

COLOUR r,g,b and GCOL r,g,b (sorry Richard!) There's no need to apologise: Brandy is attempting to emulate Acorn's BASIC, warts and all (I was going to say Sophie's BASIC, but I bet she had nothing to do with GCOL r,g,b and would probably be as upset by it as I am). Does Matrix Brandy support some ...
by Soruk
Wed Sep 26, 2018 11:55 am
Forum: projects
Topic: Viewdata Service
Replies: 115
Views: 5885

Re: Viewdata Service

Would live rail disruption information be of interest? Possibly, given suitable feeds (and time!!), could expand to a comprehensive road, rail and air travel news section. http://www.nationalrail.co.uk/100298.aspx http://www.nationalrail.co.uk/static/documents/NRE%20Feeds_Developer%20Pack%20v.01-04....
by Soruk
Wed Sep 26, 2018 9:54 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

In a bit of a diversion, I've commited a change that goes some way towards getting 24-bit colour working. Mode 80 is also now defined as a 24-bit version of MODE 15. Edit: So far tested: *NEWMODE, MODE x,y,bpp, MODE "X<val> Y<val> C16M"; COLOUR r,g,b and GCOL r,g,b (sorry Richard!) - and SYS "Colour...
by Soruk
Tue Sep 25, 2018 2:22 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

Thanks. When this came up before I think we established that GCOL r,g,b is 'peculiar' in neither having a VDU equivalent (bypassing the VDU stream altogether and calling some OS function directly!) nor specifying which palette entry it is changing the colour of! More recently I realised that becaus...
by Soruk
Tue Sep 25, 2018 10:58 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

While I'm at it, I'd like to share this silly program I wrote for fun last night and this afternoon: http://dusthillguy.ddns.net/folder/JimmyWales.basic In BB4W and BBCSDL I get a syntax error from line 470, which appears to be a GCOL statement with three parameters. I've never come across a varian...
by Soruk
Tue Sep 25, 2018 8:32 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

I've checked in a couple of changes concerning CLS and text windows; firstly the cursor wasn't being sent to the top left, and secondly, in Mode 7 any teletext codes outside the window were being lost on CLS, and only reactivated once the line was redrawn (noticable with a background being set).
by Soruk
Fri Sep 21, 2018 9:34 am
Forum: software & utilities for the pc, mac or unix
Topic: Request for help in organising/releasing source code
Replies: 92
Views: 2750

Re: Request for help in organising/releasing source code

Actually, his compiler might be too new If a "too new" version of GCC has removed ‘ __builtin_saddll_overflow ’ I'm screwed, because I make heavy use of that and other similar built-ins (it is possible to predict an overflow by examining the operands, but it's much slower than simply testing the CP...
by Soruk
Fri Sep 21, 2018 9:32 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC V for Linux with SDL: V1.21.15 released
Replies: 314
Views: 8479

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

Thank you for that - and that's an interesting insight into what's going on under the lid. Change committed :D Also, I've made changes to the standalone app mechanism, it now builds a static library which you can then link your app.o file to. The RPM SPEC file included has also been updated to build...