Search found 518 matches

by Soruk
Thu Feb 13, 2020 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: 862
Views: 52571

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

Matrix brandy is following the ARM BBC BASIC shifts... in 32-bit mode it'll always return something that can be shoved into a 32-bit integer variable even if the input was a float. If your objective is maximum compatibility with ARM BASIC I don't think you've achieved it. If you try running this co...
by Soruk
Thu Feb 13, 2020 11:12 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 862
Views: 52571

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

Right now yes, but if that is erroneous behaviour then I can put that one back to the way it was. My argument, FWIW, is that's it's useful to be able to perform 64-bit shifts even when in 32-bit mode. This is particularly the case in library functions, when you may not want to switch mode because i...
by Soruk
Wed Feb 12, 2020 3: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: 862
Views: 52571

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

default behaviour is shifts now are 32-bit but 64-bit shifts can be enabled with SYS "Brandy_BitShift64",1 Does that affect all shifts? If so it would make Matrix Brandy's behaviour different from my BASICs, in which the signed right-shift operator (>>) is not affected by the 32-bit/64-bit switch, ...
by Soruk
Wed Feb 12, 2020 9:59 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 862
Views: 52571

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

Hello, I've just noticed that one of my old programs is experiencing a problem when I run it in the most recent version of Matrix Brandy. I'll look at this from middle of next week, as I'm going away for a long weekend. Just FYI :) Do you know which previous version(s) it worked on? It seems like 1...
by Soruk
Fri Feb 07, 2020 7: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: 862
Views: 52571

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

dhg2 wrote:
Fri Feb 07, 2020 6:14 pm
Hello,

I've just noticed that one of my old programs is experiencing a problem when I run it in the most recent version of Matrix Brandy.
I'll look at this from middle of next week, as I'm going away for a long weekend. Just FYI :)
Do you know which previous version(s) it worked on?
by Soruk
Fri Jan 24, 2020 4:53 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 version 1.09a released
Replies: 67
Views: 1747

Re: BBC BASIC for SDL 2.0 version 1.09a released

Is this to be expected? Probably. VDU 7, rather predictably, converts to printf ("\7") so what happens, if anything, is entirely down to how the OS handles that BEL character being sent to stdout. I don't have a lot of choice in the matter, because although the SOUND system is functional there's qu...
by Soruk
Fri Jan 24, 2020 12:25 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 version 1.09a released
Replies: 67
Views: 1747

Re: BBC BASIC for SDL 2.0 version 1.09a released

Richard Russell wrote:
Thu Jan 23, 2020 5:26 pm
Following up from a post in the Matrix Brandy thread:
Soruk wrote:
Thu Jan 23, 2020 3:44 pm
VDU23,18,3,<0|1>| will switch it - this VDU code is from RISC OS 5.
OK. Generally I have not implemented RISC OS-specific VDU commands (VDU 23,16... is the only one I think);
I believe VDU23,16 was introduced on the Master.
by Soruk
Thu Jan 23, 2020 3: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: 862
Views: 52571

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

Currently I don't think I'm checking for &8C You probably don't need to; I've not looked at my code for a long time either. I don't currently support the 'black text' and 'black graphics' modes (which I believe Matrix Brandy does) because they're not available on a genuine BBC Micro. For the same r...
by Soruk
Thu Jan 23, 2020 1:42 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 862
Views: 52571

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

Matrix does handle this Indeed, any MODE 7 emulator has to be independent of the order in which the characters are written (I have tested mine with reverse-order and random-order). However, it's not necessary always to process the entire 40x25 frame at once, because the potential for a change 'prop...
by Soruk
Thu Jan 23, 2020 12:19 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 862
Views: 52571

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

That was exactly it. Text was shuffled - but graphics weren't being. Ah. On the BBC Micro only the SAA5050 chip knows whether a character will be rendered as alphanumeric or as graphics, so the OS couldn't do anything different in the two cases even if it wanted to (consider the case when the chara...
by Soruk
Wed Jan 22, 2020 12: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: 862
Views: 52571

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

- Fixed a Teletext graphics high-bit translation error. If you are prepared to reveal, how did this error manifest itself? As far as I am aware, setting bit 7 should only have the effect of disabling the £#— character 'shuffle' (which can impact teletext graphics as well as text). That was exactly ...
by Soruk
Tue Jan 21, 2020 2:23 pm
Forum: archive submissions
Topic: Chalksoft Collection
Replies: 23
Views: 3588

Re: Chalksoft Collection

Just for a bit of fun, here's a "port" of Pirate - both parts - to Windows (it barely qualifies as a port, it's almost the original BASIC code, using Brandy as an execution engine).
by Soruk
Mon Jan 20, 2020 5: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: 862
Views: 52571

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

Latest updates:
- Fixed setjmp() failing sometimes on Win64 (known MinGW issue).
- Fixed a Teletext graphics high-bit translation error.
by Soruk
Mon Jan 20, 2020 4:30 pm
Forum: archive submissions
Topic: Chalksoft Collection
Replies: 23
Views: 3588

Re: Chalksoft Collection

That is a nice find. =D> Do the key card and package have a flip side that you could photo and post, please? [-o< I can then add these to my archive. Hi, John. Er, I did say that it was only the pic itself that I'd found! :( http://www.ebay.co.uk/itm/291181135241 Sorry for the thread archaeology......
by Soruk
Sat Jan 18, 2020 9:45 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 version 1.09a released
Replies: 67
Views: 1747

Re: BBC BASIC for SDL 2.0 version 1.09a released

a recent announcement put RISC OS under the Apache 2.0 licence (open source), and Apache licensed code can be used under the GPL. OK. I don't think fonts count as 'code' from an IPR viewpoint but the Apache licence is quite permissive (more so than GPL). I was looking at it through the lens of the ...
by Soruk
Sat Jan 18, 2020 2:56 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 version 1.09a released
Replies: 67
Views: 1747

Re: BBC BASIC for SDL 2.0 version 1.09a released

Your MODE 7 has different high-bit characters as shown by your screenshot. My screenshot wasn't of MODE 7, it was of the internal 16x16 ANSI character set. It's used in MODE 7 as well, by default, but of course there are no high-bit-set characters in that case (MODE 7 is 7-bits only as far as the c...
by Soruk
Sat Jan 18, 2020 2:13 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 version 1.09a released
Replies: 67
Views: 1747

Re: BBC BASIC for SDL 2.0 version 1.09a released

For MODE 7, Matrix Brandy follows RISC OS and the BBC. So how does that differ from mine? I presume that Matrix Brandy has the same restriction as BBC BASIC for SDL 2.0 , i.e. that pixels have to be 'square', so it's not possible to reproduce the MODE 7 font without using anti-aliasing (MODE 7 uses...
by Soruk
Sat Jan 18, 2020 11:35 am
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 version 1.09a released
Replies: 67
Views: 1747

Re: BBC BASIC for SDL 2.0 version 1.09a released

For the record there are two 'built-in' bitmapped character sets in BBC BASIC for SDL 2.0 : there's an 8x8 character set used normally in MODEs 0 to 6 and there's a 16x16 character set used in MODE 7 (if one isn't using a 'proper' teletext font like Bedstead ) and user-defined modes specifying char...
by Soruk
Sat Jan 18, 2020 11:34 am
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 version 1.09a released
Replies: 67
Views: 1747

Re: BBC BASIC for SDL 2.0 version 1.09a released

For the record there are two 'built-in' bitmapped character sets in BBC BASIC for SDL 2.0 : there's an 8x8 character set used normally in MODEs 0 to 6 and there's a 16x16 character set used in MODE 7 (if one isn't using a 'proper' teletext font like Bedstead ) and user-defined modes specifying char...
by Soruk
Sat Jan 18, 2020 11:23 am
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 862
Views: 52571

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

For reference, here's the Matrix Brandy character set (heavily based on RISC OS). Normal (non-Teletext) mode, take in MODE 6: http://pegasus.matrixnetwork.co.uk/matrixbrandy/brandy-charset-normal.png MODE 7 (uses a 16x20 character grid): http://pegasus.matrixnetwork.co.uk/matrixbrandy/brandy-charset...
by Soruk
Sat Jan 18, 2020 11:03 am
Forum: adventures
Topic: Nellan Is Thirsty (1980)
Replies: 19
Views: 923

Re: Nellan Is Thirsty (1980)

But the cut'n'paste code above fails when pasted / *EXECed in. I agree it's reasonable for paste (if supported) to work like *EXEC. To paste a program into BB4W/BBCSDL one would use the IDE, so that's an entirely different process from *EXECing directly into the interpreter's immediate mode (and it...
by Soruk
Sat Jan 18, 2020 10:14 am
Forum: adventures
Topic: Nellan Is Thirsty (1980)
Replies: 19
Views: 923

Re: Nellan Is Thirsty (1980)

should work on BBCSDL and certainly works on Brandy. Neither BB4W nor BBCSDL currently allows you to load a program using *EXEC (which AFAIK should be the only circumstance when a line having only a line number implies 'delete') so the issue doesn't arise. If Brandy is interpreting a blank line tha...
by Soruk
Sat Jan 18, 2020 9:49 am
Forum: adventures
Topic: Nellan Is Thirsty (1980)
Replies: 19
Views: 923

Re: Nellan Is Thirsty (1980)

Line 1010, being blank, is taken as a command to delete the line, thus the GOSUB on line 105 fails. Make it read 1010 : and all is good. When loading as tokenised, the blank line is present and works, but I'm not sure how you entered it! There should be a single space on the line..? :?: That might ...
by Soruk
Fri Jan 17, 2020 8:47 pm
Forum: adventures
Topic: Nellan Is Thirsty (1980)
Replies: 19
Views: 923

Re: Nellan Is Thirsty (1980)

I had some problems with the cut'n'paste code in Matrix Brandy Fixed ! :idea: Nearly 8) Line 1010, being blank, is taken as a command to delete the line, thus the GOSUB on line 105 fails. Make it read 1010 : and all is good. When loading as tokenised, the blank line is present and works, but I'm no...
by Soruk
Fri Jan 17, 2020 8:35 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 version 1.09a released
Replies: 67
Views: 1747

Re: BBC BASIC for SDL 2.0 version 1.09a released

The Master certainly had all characters 128-255 defined OK, but I'm pretty sure the Model B didn't. Finding somewhere to put the pound sign whilst keeping the hash at its normal ASCII code was something that preoccupied the BBC in the very early days, and the MODE 7 musical chairs of £, # and — was...
by Soruk
Fri Jan 17, 2020 6:09 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 version 1.09a released
Replies: 67
Views: 1747

Re: BBC BASIC for SDL 2.0 version 1.09a released

Right now, it doesn't support it at all. All characters are 8-bit entities, like on the Beeb and ARM BBC BASIC on RISC OS. I don't think the BBC Micro had any pre-defined character 'shapes' for the codes 128-255, they were reserved solely for being user-defined (with VDU 23) as I recall. Therefore ...
by Soruk
Fri Jan 17, 2020 3:52 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 version 1.09a released
Replies: 67
Views: 1747

Re: BBC BASIC for SDL 2.0 version 1.09a released

a Brandy-saved (text form) file shows the correct characters, no carons. What do you consider to be the the "correct" character? If you mean the ÿ character, that's what you get if the literal strings are interpreted as ANSI but not when interpreted as UTF-8. To what extent does Matrix Brandy suppo...
by Soruk
Fri Jan 17, 2020 3:36 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 version 1.09a released
Replies: 67
Views: 1747

Re: BBC BASIC for SDL 2.0 version 1.09a released

Is it available somewhere as a tokenised BASIC file (other than in a disc image)? Here you go: NELLAN.$.zip EDIT: Ah, yes, having opened that tokenised BASIC file in your editor and run it, I can see that the graphics look right now. EDIT2: This looks a bit weird though: Screenshot 2020-01-17 at 14...
by Soruk
Fri Jan 17, 2020 3:25 pm
Forum: adventures
Topic: Nellan Is Thirsty (1980)
Replies: 19
Views: 923

Re: Nellan Is Thirsty (1980)

I had some problems with the cut'n'paste code in Matrix Brandy, but the tokenised version here viewtopic.php?f=12&t=18534&p=257513#p257590 loads and runs fine.
by Soruk
Thu Jan 16, 2020 2:19 pm
Forum: software & utilities for the pc, mac or unix
Topic: Matrix Brandy BASIC VI for Linux with SDL: V1.22.3 released
Replies: 862
Views: 52571

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

Latest updates:
New command line option -swsurface -- this makes SDL use a software surface instead of a hardware surface. This MAY help in some framebuffer situations.
Also - some CLI options are now recognised for BrandyApp builds (Previously none were acted upon).