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

discuss PC<>Acorn file transfer issues & the use of FDC, XFER, Omniflop/disk etc.
User avatar
jgharston
Posts: 3245
Joined: Thu Sep 24, 2009 11:22 am
Location: Whitby/Sheffield
Contact:

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

Post by jgharston » Mon Sep 10, 2018 6:25 pm

dhg2 wrote:
Mon Sep 10, 2018 2:29 pm
Perhaps we could make a list of features that would need demonstrating, and then people can choose one (or many) features to write a program to demonstrate. For example, INKEY with negative number parameters, *refresh, etc.
I've written various test programs over the years to test the functionality of various bits of BASIC here, and every now and then add to this list of things I've run through BB4W.

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.25
(C) Copyright J.G.Harston 1989,2005-2015
>_

Soruk
Posts: 215
Joined: Mon Jul 09, 2018 10:31 am
Location: Basingstoke, Hampshire
Contact:

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

Post by Soruk » Mon Sep 10, 2018 7:04 pm

Richard Russell wrote:
Mon Sep 10, 2018 4:45 pm
Do you envisage such demonstration programs being Matrix Brandy specific or might some at least be sufficiently generic to also run in BBCSDL? In the latter case I would be keen to try to negotiate the right to use or adapt them, especially as I think ideas and content from some of my existing example programs have already made the reverse journey! (I apologise once again for abusing Soruk's thread by mentioning a competitive product).
I don't think they should be Matrix Brandy specific.

Certainly the data file from your Mode 7 demo was extremely helpful when it came to my Mode 7 emulation (though I also put together other test harnesses to compare edge cases with the implementation found in RISC OS). The mode7demo recently added to my examples embeds it as DATA statements instead of reading from a file, with some run-length encoding as a basic compression method. It MIGHT run on a 6502 Tube (after some questionable ways of shrinking the data it just about fits in !65Tube on RiscOS), failing that it needs an Archimedes or bigger due to its size.
The Telstar client, though very much inspired by yours, is a ground up write from scratch. I wanted there to be at least some original code in my release!
Last edited by Soruk on Tue Sep 11, 2018 11:06 am, edited 1 time in total.

Soruk
Posts: 215
Joined: Mon Jul 09, 2018 10:31 am
Location: Basingstoke, Hampshire
Contact:

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

Post by Soruk » Fri Sep 14, 2018 10:38 am

Hi,

After a slow fortnight (and life getting in the way), I've released version 1.21.13 of Matrix Brandy.
* Reworked temp file code to use mkstemp() instead of tmpnam() - it's more secure, and gets rid of a compiler warning.
* Mode 7 aspect setting via VDU23,18,255 has been reinstated. The window does not change size, and selecting Mode 7 resets back to default.
* Added *ScreenSave and *ScreenLoad, functionally similar to their RISC OS counterparts but saves and loads BMP files. MODE 7 screens can be saved.
* Initial Makefile for building using MinGW under Cygwin (resulting binary does not require Cygwin libraries). It's likely many things don't quite work correctly.
(And a new Mode 7 demo, that will run on a BBC B or later (except Electron) including Prestel graphics and some screens from edit.tf - this doesn't use an external data file, the screens are embedded rather horribly in the program. This is why I don't write data compression software :lol: )

The website includes download links to an experimental Windows build (built on Cygwin under Windows 7 32-bit on a netbook), and an even more experimental standalone Telstar client app for Windows. Also, by request earlier in this thread the KINGDOM game from the BBC Micro welcome disc is also downloadable from the website.

The release cycle is definitely slowing down a bit - it's becoming rather harder to break it!
Last edited by Soruk on Fri Sep 14, 2018 1:23 pm, edited 1 time in total.

User avatar
bakoulis
Posts: 290
Joined: Wed Feb 08, 2012 9:45 pm
Location: Athens, Greece
Contact:

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

Post by bakoulis » Fri Sep 14, 2018 3:31 pm

If someone helps you to add real sound, will be an almost complete BBC Basic programming tool.
:D
2xElectron, 3xBBC B, BBC Master.
2xAcorn A310, A420/1, 2xA3000, 2xA3010, A3020, A4000, A5000.
2xRISC PC, Acorn Pocket Book, Acorn Pocket Book II.

Soruk
Posts: 215
Joined: Mon Jul 09, 2018 10:31 am
Location: Basingstoke, Hampshire
Contact:

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

Post by Soruk » Mon Sep 17, 2018 1:02 pm

Soruk wrote:
Fri Sep 14, 2018 10:38 am
The release cycle is definitely slowing down a bit - it's becoming rather harder to break it!
Of course, no sooner do I put together a release, than a bug is found. That spurious zero bug on GET and arrow keys also affected INKEY(delay) - which is now fixed in git.

User avatar
dhg2
Posts: 96
Joined: Tue Oct 25, 2016 7:37 pm
Contact:

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

Post by dhg2 » Mon Sep 17, 2018 7:17 pm

bakoulis wrote:
Fri Sep 14, 2018 3:31 pm
If someone helps you to add real sound, will be an almost complete BBC Basic programming tool.
:D
I was thinking it would be cool if the SOUND and ENVELOPE commands would be implemented in such a way that it sounded and behaved like the sound system on the BBC Micro. Maybe the appropriate code for emulating the SN76489 could be lifted from BeebEm or something.
Regards,
- Patrick

Soruk
Posts: 215
Joined: Mon Jul 09, 2018 10:31 am
Location: Basingstoke, Hampshire
Contact:

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

Post by Soruk » Mon Sep 17, 2018 8:07 pm

dhg2 wrote:
Mon Sep 17, 2018 7:17 pm
bakoulis wrote:
Fri Sep 14, 2018 3:31 pm
If someone helps you to add real sound, will be an almost complete BBC Basic programming tool.
:D
I was thinking it would be cool if the SOUND and ENVELOPE commands would be implemented in such a way that it sounded and behaved like the sound system on the BBC Micro. Maybe the appropriate code for emulating the SN76489 could be lifted from BeebEm or something.
That is exactly what I am thinking about doing. Also, BeebEm 0.0.13 supports this and is also using SDL 1.2. I expect this to be quite tricky so it'll take me quite a long time to get anything remotely working for this. (Probably also a good time to figure out branches and how to use them optimally in git).

Edit: Having taken a look at the beebem audio code, it looks very tightly tied in with the BBC Micro hardware - are there any docs on how the BBC sound system hangs together and works? As in - SOUND ch,x,y,z and ENVELOPE <loads of parameters> turned into which syscalls, which twiddle which I/O ports?
Last edited by Soruk on Tue Sep 18, 2018 11:47 am, edited 3 times in total.

Soruk
Posts: 215
Joined: Mon Jul 09, 2018 10:31 am
Location: Basingstoke, Hampshire
Contact:

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

Post by Soruk » Tue Sep 18, 2018 4:18 pm

I've just pushed an update to git - which enables the actions of GCOL action codes (for foreground colours). I have no idea how action codes for GCOL background colours are supposed to work...
Edit: And, PLOT with Inverse code also seems to work now.
Last edited by Soruk on Tue Sep 18, 2018 4:53 pm, edited 1 time in total.

User avatar
Richard Russell
Posts: 526
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

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

Post by Richard Russell » Tue Sep 18, 2018 5:55 pm

Soruk wrote:
Tue Sep 18, 2018 4:18 pm
I have no idea how action codes for GCOL background colours are supposed to work...
Exactly the same, for example you can invert the entire screen using:

Code: Select all

GCOL 3,135 : CLG
I feel I'm missing something though, surely this must previously have worked in Brandy? I've checked Napoleon Brandy and it certainly works there.

User avatar
dhg2
Posts: 96
Joined: Tue Oct 25, 2016 7:37 pm
Contact:

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

Post by dhg2 » Tue Sep 18, 2018 7:45 pm

It seems like exclusive-or (or other special) drawing modes weren't supported in older, non-matrix (or non-napoleon) versions of Brandy.
gcol.png
Regards,
- Patrick

Soruk
Posts: 215
Joined: Mon Jul 09, 2018 10:31 am
Location: Basingstoke, Hampshire
Contact:

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

Post by Soruk » Tue Sep 18, 2018 8:45 pm

Richard Russell wrote:
Tue Sep 18, 2018 5:55 pm
Soruk wrote:
Tue Sep 18, 2018 4:18 pm
I have no idea how action codes for GCOL background colours are supposed to work...
Exactly the same, for example you can invert the entire screen using:

Code: Select all

GCOL 3,135 : CLG
I feel I'm missing something though, surely this must previously have worked in Brandy? I've checked Napoleon Brandy and it certainly works there.
Napoleon is another fork - and WIndows-only. I'll have to see how the code translates to SDL, as it doesn't (yet) work in Matrix Brandy, and certainly doesn't work in upstream 1.20.1.

Edit: Having tested it on RISC OS (thank you RPCEmu!) that is interesting - I didn't know that feature existed!
Last edited by Soruk on Tue Sep 18, 2018 8:59 pm, edited 1 time in total.

User avatar
Richard Russell
Posts: 526
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

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

Post by Richard Russell » Tue Sep 18, 2018 9:10 pm

dhg2 wrote:
Tue Sep 18, 2018 7:45 pm
It seems like exclusive-or (or other special) drawing modes weren't supported in older, non-matrix (or non-napoleon) versions of Brandy.
I'm genuinely surprised; maybe I'm unusual in using them so frequently in my BASIC programs. For example my recent jigsaw puzzle program ensures that there is no 'black' in the picture by OR-ing it with a small (and hopefully invisible) amount of blue:

Code: Select all

COLOUR 1,0,0,4
GCOL 1,128+1
CLG
Having done that I can draw the jigsaw 'cut lines' in black and then flood-fill the individual pieces (that is how I isolate them as rectangular tiles). Without the background OR plotting mode I don't know how I could have done it.

Soruk
Posts: 215
Joined: Mon Jul 09, 2018 10:31 am
Location: Basingstoke, Hampshire
Contact:

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

Post by Soruk » Tue Sep 18, 2018 10:03 pm

I've just pushed a commit which makes this work. Is the background action code (or colour for that matter) used on anything other than CLG?

User avatar
Richard Russell
Posts: 526
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

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

Post by Richard Russell » Wed Sep 19, 2018 12:48 am

Soruk wrote:
Tue Sep 18, 2018 10:03 pm
Is the background action code (or colour for that matter) used on anything other than CLG?
Rather stating the obvious, it's used whenever a plot operation specifies that the background colour should be used:

Code: Select all

      MODE 1
      PRINT TAB(0,16) "Inverted rectangle"
      GCOL 3,135
      MOVE 0,320
      PLOT 99,300,320 : REM plot a rectangle in the current background colour

Soruk
Posts: 215
Joined: Mon Jul 09, 2018 10:31 am
Location: Basingstoke, Hampshire
Contact:

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

Post by Soruk » Wed Sep 19, 2018 8:56 am

Richard Russell wrote:
Wed Sep 19, 2018 12:48 am
Soruk wrote:
Tue Sep 18, 2018 10:03 pm
Is the background action code (or colour for that matter) used on anything other than CLG?
Rather stating the obvious, it's used whenever a plot operation specifies that the background colour should be used:

Code: Select all

      MODE 1
      PRINT TAB(0,16) "Inverted rectangle"
      GCOL 3,135
      MOVE 0,320
      PLOT 99,300,320 : REM plot a rectangle in the current background colour
Thank you. Graphics really aren't my strong point.

I've now commited a change where, with any luck, all the supported PLOT codes now follow the action code and use a new GCOL-action-aware couple of primitives

User avatar
Richard Russell
Posts: 526
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

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

Post by Richard Russell » Wed Sep 19, 2018 11:29 am

Soruk wrote:
Wed Sep 19, 2018 8:56 am
Graphics really aren't my strong point.
Another situation when the graphics background colour is used is when backspacing through text in VDU 5 mode:

Code: Select all

MODE 1
GCOL 0,129
VDU 5,30,65,66,67,127,127,127,10

User avatar
bakoulis
Posts: 290
Joined: Wed Feb 08, 2012 9:45 pm
Location: Athens, Greece
Contact:

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

Post by bakoulis » Wed Sep 19, 2018 11:50 am

Richard Russell wrote:
Wed Sep 19, 2018 11:29 am
Soruk wrote:
Wed Sep 19, 2018 8:56 am
Graphics really aren't my strong point.
Another situation when the graphics background colour is used is when backspacing through text in VDU 5 mode:

Code: Select all

MODE 1
GCOL 0,129
VDU 5,30,65,66,67,127,127,127,10
This last listing gives different results on BBCSDL and Matrix.
I suppose the expected result is this on BBCSDL, but the Matrix screen looks more attractive!
Attachments
basic.png
2xElectron, 3xBBC B, BBC Master.
2xAcorn A310, A420/1, 2xA3000, 2xA3010, A3020, A4000, A5000.
2xRISC PC, Acorn Pocket Book, Acorn Pocket Book II.

Soruk
Posts: 215
Joined: Mon Jul 09, 2018 10:31 am
Location: Basingstoke, Hampshire
Contact:

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

Post by Soruk » Wed Sep 19, 2018 12:29 pm

bakoulis wrote:
Wed Sep 19, 2018 11:50 am
Richard Russell wrote:
Wed Sep 19, 2018 11:29 am
Soruk wrote:
Wed Sep 19, 2018 8:56 am
Graphics really aren't my strong point.
Another situation when the graphics background colour is used is when backspacing through text in VDU 5 mode:

Code: Select all

MODE 1
GCOL 0,129
VDU 5,30,65,66,67,127,127,127,10
This last listing gives different results on BBCSDL and Matrix.
I suppose the expected result is this on BBCSDL, but the Matrix screen looks more attractive!
On RISC OS, the resulting output is the same as seen in BBCSL - but with the colours from Matrix. OK, that's something else for the to-do list!

User avatar
Richard Russell
Posts: 526
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

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

Post by Richard Russell » Wed Sep 19, 2018 2:39 pm

bakoulis wrote:
Wed Sep 19, 2018 11:50 am
This last listing gives different results on BBCSDL and Matrix.
As will many things, because BB4W and BBCSDL are not designed to be compatible with Acorn BASICs whereas Brandy is (in general). Specifically, the colour palettes are quite different: in Acorn's BASICs there are 8 primary colours (0-7) and 8 flashing colours (8-15) but my BASICs don't support flashing colours (because PC hardware doesn't have that capability, and they are generally not 'useful'). Instead, colours 8-15 in the palette are 'intensified' versions of colours 0-7.

In addition, in 4-colour modes (MODE 1 and MODE 5) BB4W and BBCSDL use a completely different default palette from Acorn's that stems back to BBC BASIC (86) for MS-DOS and the old CGA card, which is why you are seeing magenta rather than red. 17 years ago, when BB4W was released, compatibility with MS-DOS BASIC was far more important to me than compatibility with any Acorn product - I hadn't used one of those since the BBC Micro nearly 20 years before!

Coeus
Posts: 1079
Joined: Mon Jul 25, 2016 11:05 am
Contact:

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

Post by Coeus » Wed Sep 19, 2018 8:39 pm

So I think we are saying the divergence started after BBC Basic for the BBC Micro. Didn't Z80 Basic add some keywords? I presume it would have been the same, graphics-wise as it would have been sending VDU codes over the tube to a normal BBC micro. The graphics divergence, then, was between Basic 86 and the Archimedes BASIC because of differing capabilities of the PC and the Archimedes.

As for flashing colours, I didn't think the BBC micro did have hardware flashing colours. I thought it just has a hardware palette into which the logical colour is an index and the OS re-programmed the hardware palette from a timer to achieve the flashing?

User avatar
jgharston
Posts: 3245
Joined: Thu Sep 24, 2009 11:22 am
Location: Whitby/Sheffield
Contact:

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

Post by jgharston » Wed Sep 19, 2018 11:35 pm

Coeus wrote:
Wed Sep 19, 2018 8:39 pm
So I think we are saying the divergence started after BBC Basic for the BBC Micro. Didn't Z80 Basic add some keywords? I presume it would have been the same, graphics-wise as it would have been sending VDU codes over the tube to a normal BBC micro. The graphics divergence, then, was between Basic 86 and the Archimedes BASIC because of differing capabilities of the PC and the Archimedes.
As you point out, it's a video *hardware* difference, not a BASIC difference. BASIC neither knows nor cares what capabilities or implementation the video system has, it purely and simply just sends instructions to the VDU driver for the VDU driver to do whatever the hell the VDU driver choses to do with them.

The sole difference between Z80 BASIC and 6502 BASIC II is the addition of the PUT command using the then-unused &CE token (which 6502 BASIC IV used for EDIT), to do the Z80 OUT (port),value operation. The complementary IN reg,(port) was implemented with GET(port), with the brackets extending the syntax. I can't remember when, but later on 80x86 BASIC also added GET(x,y) to read the character at the screen position (x,y).

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.25
(C) Copyright J.G.Harston 1989,2005-2015
>_

User avatar
jgharston
Posts: 3245
Joined: Thu Sep 24, 2009 11:22 am
Location: Whitby/Sheffield
Contact:

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

Post by jgharston » Wed Sep 19, 2018 11:41 pm

Coeus wrote:
Wed Sep 19, 2018 8:39 pm
As for flashing colours, I didn't think the BBC micro did have hardware flashing colours. I thought it just has a hardware palette into which the logical colour is an index and the OS re-programmed the hardware palette from a timer to achieve the flashing?
No, the palette has flashing colours, the OS simply toggles a bit in the palette register to tell it whether to complement the flashing colour or not. You can have arbitary flashing colours using the method you describe, eg, flashing between blue and red:
Image

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.25
(C) Copyright J.G.Harston 1989,2005-2015
>_

User avatar
Richard Russell
Posts: 526
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

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

Post by Richard Russell » Thu Sep 20, 2018 8:45 am

jgharston wrote:
Wed Sep 19, 2018 11:35 pm
BASIC neither knows nor cares what capabilities or implementation the video system has, it purely and simply just sends instructions to the VDU driver
"BASIC" may not care, but the BASIC programmer certainly does! In BB4W, BBCSDL and Brandy the 'BASIC' and the 'VDU drivers' are so tightly bound together that they can be considered a single unit. Video related BASIC keywords such as COLOUR and RECTANGLE are not documented any differently from ENDPROC or WHILE, they are all 'BBC BASIC'. It would be a far less useful language if one could have no expectation that graphics and sound would work in a substantially compatible way on multiple platforms!

Having said that, there is a difference in objective between 'my' BASICs and Brandy. In BB4W and BBCSDL, compatibility with Acorn BASICs takes second place to supporting the native capabilities of the host operating system (or SDL in the case of BBCSDL). I have always promoted BBC BASIC as a general purpose programming language, capable of doing 'anything' (within reason) that one might do in Java or Python for example. In particular that means support for SYS is absolutely vital. Brandy seems to place its emphasis on compatibility with Acorn's BASICs rather than supporting the host OS.

Soruk
Posts: 215
Joined: Mon Jul 09, 2018 10:31 am
Location: Basingstoke, Hampshire
Contact:

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

Post by Soruk » Thu Sep 20, 2018 1:00 pm

Soruk wrote:
Wed Sep 19, 2018 12:29 pm
bakoulis wrote:
Wed Sep 19, 2018 11:50 am
Richard Russell wrote:
Wed Sep 19, 2018 11:29 am

Another situation when the graphics background colour is used is when backspacing through text in VDU 5 mode:

Code: Select all

MODE 1
GCOL 0,129
VDU 5,30,65,66,67,127,127,127,10
This last listing gives different results on BBCSDL and Matrix.
I suppose the expected result is this on BBCSDL, but the Matrix screen looks more attractive!
On RISC OS, the resulting output is the same as seen in BBCSL - but with the colours from Matrix. OK, that's something else for the to-do list!
... and should now be fixed.

User avatar
bakoulis
Posts: 290
Joined: Wed Feb 08, 2012 9:45 pm
Location: Athens, Greece
Contact:

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

Post by bakoulis » Thu Sep 20, 2018 3:27 pm

Now is fixed.
But the compilation produces some new errors.
Maybe are not all the errors new, but to my eyes looks more than before.

Code: Select all

src/errors.c: In function ‘cmderror’:
src/errors.c:319:5: warning: format not a string literal and no format arguments [-Wformat-security]
     printf(badcmdtable[errnumber].msgtext);
     ^

Code: Select all

src/mos.c: In function ‘cmd_cd’:
src/mos.c:1235:7: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
  chdir(command);
       ^

Code: Select all

src/editor.c: In function ‘read_textfile’:
src/editor.c:536:9: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
   fread (tokenline, 1, 3, textfile);
         ^
Last edited by bakoulis on Thu Sep 20, 2018 3:47 pm, edited 4 times in total.
2xElectron, 3xBBC B, BBC Master.
2xAcorn A310, A420/1, 2xA3000, 2xA3010, A3020, A4000, A5000.
2xRISC PC, Acorn Pocket Book, Acorn Pocket Book II.

Soruk
Posts: 215
Joined: Mon Jul 09, 2018 10:31 am
Location: Basingstoke, Hampshire
Contact:

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

Post by Soruk » Thu Sep 20, 2018 4:02 pm

bakoulis wrote:
Thu Sep 20, 2018 3:27 pm
Now is fixed.
But the compilation produces some new errors.
Maybe are not all the errors new, but to my eyes looks more than before.
I'm not getting any build errors either on my Raspberry Pi, or CentOS 6 32-bit and 64-bit machines, even when I add -Wall to the makefile.

What's your build environment?

User avatar
dhg2
Posts: 96
Joined: Tue Oct 25, 2016 7:37 pm
Contact:

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

Post by dhg2 » Thu Sep 20, 2018 4:35 pm

I just got the latest version from github, and I didn't get any warnings (or errors) when compiling it.
Regards,
- Patrick

User avatar
bakoulis
Posts: 290
Joined: Wed Feb 08, 2012 9:45 pm
Location: Athens, Greece
Contact:

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

Post by bakoulis » Thu Sep 20, 2018 8:15 pm

Soruk wrote:
Thu Sep 20, 2018 4:02 pm
bakoulis wrote:
Thu Sep 20, 2018 3:27 pm
Now is fixed.
But the compilation produces some new errors.
Maybe are not all the errors new, but to my eyes looks more than before.
I'm not getting any build errors either on my Raspberry Pi, or CentOS 6 32-bit and 64-bit machines, even when I add -Wall to the makefile.

What's your build environment?
Linux Mint 17.3 32bit
The compilation completed and the produced brandy file works well.
But at the compilation gives this errors/warnings.
Not only the last build gives errors and warnings. I have errors from the 1.21.4 which first start used.
I don't know why.
2xElectron, 3xBBC B, BBC Master.
2xAcorn A310, A420/1, 2xA3000, 2xA3010, A3020, A4000, A5000.
2xRISC PC, Acorn Pocket Book, Acorn Pocket Book II.

Soruk
Posts: 215
Joined: Mon Jul 09, 2018 10:31 am
Location: Basingstoke, Hampshire
Contact:

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

Post by Soruk » Thu Sep 20, 2018 8:18 pm

bakoulis wrote:
Thu Sep 20, 2018 8:15 pm
Soruk wrote:
Thu Sep 20, 2018 4:02 pm
bakoulis wrote:
Thu Sep 20, 2018 3:27 pm
Now is fixed.
But the compilation produces some new errors.
Maybe are not all the errors new, but to my eyes looks more than before.
I'm not getting any build errors either on my Raspberry Pi, or CentOS 6 32-bit and 64-bit machines, even when I add -Wall to the makefile.

What's your build environment?
Linux Mint 17.3 32bit
The compilation completed and the produced brandy file works well.
But at the compilation gives this errors/warnings.
Not only the last build gives errors and warnings. I have errors from the 1.21.4 which first start used.
I don't know why.
If you're getting those errors, the printf one we'll just have to live with, as that's how the error handler works, but the other two I might be able to suppress.

Edit: Which I have now done, you should only see the warning for printf. Nothing I can do about that one, as the error is correct, the first parameter supplied isn't a string literal, but an entry from the error table. That's how the error handler works.
Last edited by Soruk on Thu Sep 20, 2018 9:34 pm, edited 1 time in total.

User avatar
bakoulis
Posts: 290
Joined: Wed Feb 08, 2012 9:45 pm
Location: Athens, Greece
Contact:

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

Post by bakoulis » Thu Sep 20, 2018 9:55 pm

Soruk wrote:
Thu Sep 20, 2018 8:18 pm

Edit: Which I have now done, you should only see the warning for printf. Nothing I can do about that one, as the error is correct, the first parameter supplied isn't a string literal, but an entry from the error table. That's how the error handler works.
Now only the printf warning survived. So the job have done!
2xElectron, 3xBBC B, BBC Master.
2xAcorn A310, A420/1, 2xA3000, 2xA3010, A3020, A4000, A5000.
2xRISC PC, Acorn Pocket Book, Acorn Pocket Book II.

Post Reply