Search found 145 matches

by dhg2
Tue Nov 19, 2019 1:53 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?
by dhg2
Tue Nov 12, 2019 12:11 pm
Forum: software & utilities for the pc, mac or unix
Topic: Uses of the semicolon in BBC BASIC
Replies: 11
Views: 411

Re: Uses of the semicolon in BBC BASIC

This is a complete guess but I have the impression RISC OS is mostly written in assembly language, so the multiple return values possibly correspond to the contents of the ARM registers presumably starting at r0, and I assume 'flags' corresponds to the processor status flags after executing the syst...
by dhg2
Fri Nov 08, 2019 10:23 am
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'

Looks nice. It reminds me of 'foreach' from Tcl.
by dhg2
Wed Oct 16, 2019 12:17 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,1280...
by dhg2
Tue Oct 15, 2019 4:10 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. Tested with this program: MODE 1 PROCtextdraw(100,100,"Matrix Brandy BBC BASIC") END DEF PROCtextdraw(x%,y%,s$) LOCAL xx%,yy...
by dhg2
Fri Oct 11, 2019 10:48 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 Richard, I actually wasn't aware that Matrix Brandy had been changed to use true 64 bit addresses. (I've been a bit busy lately and haven't been following things as closely. I should have read up more before posting, sorry) This is a really cool new feature and I'm excited to learn that it's ...
by dhg2
Fri Oct 11, 2019 9:26 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've just noticed today that one of my old programs from last year causes an 'Address exception' error on the latest github version of matrix brandy.
Here is the program that causes the error:
jimmywales.txt
(67.05 KiB) Downloaded 6 times
by dhg2
Tue Oct 01, 2019 5:21 pm
Forum: off-topic
Topic: I made a simple programming language & interpreter
Replies: 1
Views: 237

I made a simple programming language & interpreter

Hello, I've been working on a simple programming language and interpreter, just as a experiment and as a project for fun in my spare time. This is something I've wanted to do for a long while, and finally got around to doing this past month. It's written in C, and it has support for graphics (powere...
by dhg2
Fri Sep 20, 2019 8: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

@Soruk Thanks! @Richard I recognise that it's correct to remove it, and that it's non-standard behaviour that will break a lot of programs written for other versions of BASIC. In my case I have one or two programs written for brandy that used it, and I might otherwise have needed to update them. So ...
by dhg2
Fri Sep 20, 2019 1:18 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 would be cool, if it's not a hassle for you to implement. Perhaps it would be good as a compile time option.
by dhg2
Fri Sep 20, 2019 12:37 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

Bug fix for VAL - it should ONLY handle decimal numbers (not hex or binary)
I think that's unfortunate. That was a pretty nice feature that I used quite a bit. Though I can understand why you removed it.
by dhg2
Thu Sep 12, 2019 10:18 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.0 released

I'm noticing a problem with the latest brandy from github. WAIT with a number parameter doesn't seem to work anymore. Typing, for example, "WAIT 1000" at the prompt just returns instantly.
by dhg2
Fri Sep 06, 2019 12: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.0 released

Sorry, I forgot to mention that in the case of bb4w, I changed that procedure to something like this: COLOUR 4, r, g, b: GCOL 4 I also changed the MODE number to something different. The rest of the program worked without modifications. That's actually part of why I made a wrapper procedure for GCOL...
by dhg2
Fri Sep 06, 2019 12:12 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.0 released

Hello, I think I might have found a bug in matrix brandy. For fun last night I wrote a program that makes an approximation of a sine/cosine curve. While I was doing that, I noticed that it behaved incorrectly on the latest version of matrix brandy, but it behaves correctly on older versions of matri...
by dhg2
Sat Aug 31, 2019 10:24 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.0 released

Hello, Today I tried to compile brandy on a spare computer with Debian Unstable. I'm using the latest version from github. I got this error: /usr/bin/ld: src/fileio.o: in function `fileio_eof': fileio.c:(.text+0x18c9): undefined reference to `kbd_pending' /usr/bin/ld: src/mos.o: in function `mos_osb...
by dhg2
Sat Aug 10, 2019 12:48 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.0 released

Hello, I've been playing around with the new sound feature a bit more, and I've noticed that there's a difference from how sound works on RISC OS. On RISC OS it's possible to play a sound which is completely silent by using 0 as the volume parameter for the SOUND command. This can be useful for cutt...
by dhg2
Thu Aug 08, 2019 7: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.0 released

Sorry if this question is already answered. Is it possible to check whether there's something in the keyboard buffer in Matrix Brandy? I notice that ADVAL(-1) always returns 0.
by dhg2
Mon Aug 05, 2019 3:00 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.0 released

Sorry, I see now that I was wrong about the lowest note available being a# (pitch number 0). I actually wasn't aware of the finer control that's allowed by specifiying numbers between 256 and 32767. Now that I know about that I'll be using it. At the same time, I still think the feature that lets yo...
by dhg2
Mon Aug 05, 2019 11:34 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.0 released

I actually discovered it by accident... If it's undocumented it shouldn't be used (or emulated), in my opinion. There's nothing to say that it's safe to use or that it will work reliably. I understand and respect your opinion, but I disagree. It's a very useful feature. It seems to be impossible to...
by dhg2
Sun Aug 04, 2019 11:31 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.0 released

A useful feature of SOUND that RISC OS has is that you can supply a negative number as the pitch parameter in order to play a sound at a specific frequency in hz. FWIW, that feature seems not to be documented here so maybe it was a late addition. Ah that's Interesting. I actually discovered it by a...
by dhg2
Sun Aug 04, 2019 12:33 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.0 released

I'm really glad to see that sound support has been added, big thanks to you and David H for this. A useful feature of SOUND that RISC OS has is that you can supply a negative number as the pitch parameter in order to play a sound at a specific frequency in hz. I tested it with a short program and I ...
by dhg2
Thu Jul 25, 2019 12:07 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 V for Linux with SDL: V1.21.21 released

It's been a long time coming, but I've just checked in a commit that implements AUTO. Thanks very much for this! By the way, tonight I've come across something that's surprised me and I don't know if it's a bug in brandy, or if I'm just doing something very wrong. I was bored and I wrote a silly pr...
by dhg2
Tue Jul 09, 2019 6:22 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 V for Linux with SDL: V1.21.21 released

Maybe so, but don't forget that *EXEC is useful for stuff like pre-filling the INPUT buffer.
by dhg2
Thu Jun 20, 2019 6:16 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 V for Linux with SDL: V1.21.20 released

I just compiled the latest version of brandy and unlike previous versions (and unlike the original brandy) it immediately closes after the program ends if you run it with a program file as a command line argument. Previously it only did that if you specified -quit. Is this intentional? If it is inte...
by dhg2
Mon May 13, 2019 3:34 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 version 1.03a released
Replies: 12
Views: 854

Re: BBC BASIC for SDL 2.0 version 1.03a released

and many people (certainly within the RISC OS community) consider me to be something of a traitor and to be 'anti Acorn'
If this is true, those people are just being silly and you shouldn't be concerned about what they think.
by dhg2
Tue Apr 09, 2019 2:30 am
Forum: off-topic
Topic: Sound Export
Replies: 35
Views: 1680

Re: Sound Export

That's our man Richard. This sound recorder app is great!
by dhg2
Mon Apr 01, 2019 2: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 V for Linux with SDL: V1.21.19 released

I don't have anything important to say, but I just wanted to say again, big thanks for all your work on Matrix Brandy. I use it a lot and I'm really glad that it's being maintained.
by dhg2
Thu Feb 28, 2019 7:35 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 V for Linux with SDL: V1.21.18 released

It's not closely related to the current discussion, but I'm wondering, is there any chance that matrix brandy would be ported to SDL2 at some point in the future? I'm thinking that problems like this would be less likely to happen with SDL2. Using SDL2 might also make it easier to implement features...