Author |
Topic: BBC BASIC for SDL 2.0 v0.14a released (Read 1539 times) |
|
jbk
New Member
member is offline


Posts: 12
|
 |
Re: BBC BASIC for SDL 2.0 v0.14a released
« Reply #4 on: Aug 2nd, 2016, 1:43pm » |
|
Richard, that's exactly what I did but the program segfaults, however if I launch it as I mentioned then it works. Quote:Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008 Exception Note: EXC_CORPSE_NOTIFY |
|
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 803
|
 |
Re: BBC BASIC for SDL 2.0 v0.14a released
« Reply #5 on: Aug 2nd, 2016, 2:02pm » |
|
on Aug 2nd, 2016, 1:43pm, jbk wrote:| Richard, that's exactly what I did but the program segfaults |
|
Very strange. Perhaps you could investigate further and if possible let me know where the problem arises. As you probably know, when you double-click on an app bundle it executes the file having the same name as the bundle, in the Contents/MacOS folder.
So in this case you should be able to simulate the effect of double-clicking on the application by executing the file BBCBasic.app/Contents/MacOS/BBCBasic. This is a hard link to the file BBCBasic.app/Contents/Resources/bbcsdl. The symptom you describe would happen if the disk image file didn't properly recreate the link, but that would be a bit worrying.
Richard.
|
|
Logged
|
|
|
|
jbk
New Member
member is offline


Posts: 12
|
 |
Re: BBC BASIC for SDL 2.0 v0.14a released
« Reply #6 on: Aug 2nd, 2016, 3:03pm » |
|
Richard, from the terminal I cd into BBCBasic.app/Contents/MacOS and then issued ./BBCBasic BBCBasic.bbc a window opened with the message "choose ide" but after a couple of seconds it segfaulted
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 803
|
 |
Re: BBC BASIC for SDL 2.0 v0.14a released
« Reply #7 on: Aug 2nd, 2016, 4:04pm » |
|
on Aug 2nd, 2016, 3:03pm, jbk wrote:| Richard, from the terminal I cd into BBCBasic.app/Contents/MacOS and then issued ./BBCBasic BBCBasic.bbc a window opened with the message "choose ide" but after a couple of seconds it segfaulted |
|
OK. I'm not too sure why you added the BBCBasic.bbc parameter because obviously Mac OS doesn't do that. To reproduce what the OS does when you double-click on the app you should be issuing the command ./BBCBasic alone.
However I don't expect that makes any difference in practice. If I have understood what you have said so far, issuing the command ./bbcsdl in the Resources folder works, but issuing the command ./BBCBasic in the MacOS folder doesn't. But that ought to be 'impossible' because the latter is a hard link to the former, so as far as the OS is concerned you are doing exactly the same thing!
I am unavoidably having to use SDL 2.0.3 because the latest release (2.0.4) isn't available as a 32-bit Framework for Mac OS for some strange reason (it'a almost as if the SDL maintainers have forgotten that modern Macs still happily execute 32-bit applications!).
Richard.
|
|
Logged
|
|
|
|
jbk
New Member
member is offline


Posts: 12
|
 |
Re: BBC BASIC for SDL 2.0 v0.14a released
« Reply #8 on: Aug 2nd, 2016, 4:37pm » |
|
Richard I am happy that it's working on the Mac, I made a shell script to launch BBCBasic and so far all the demos work.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 803
|
 |
Re: BBC BASIC for SDL 2.0 v0.14a released
« Reply #9 on: Aug 2nd, 2016, 4:59pm » |
|
on Aug 2nd, 2016, 4:37pm, jbk wrote:| Richard I am happy that it's working on the Mac, I made a shell script to launch BBCBasic and so far all the demos work. |
|
opengl.bbc doesn't work, but that is to be expected as it makes platform-specific SYS calls (it doesn't work on Android either).
Richard.
|
|
Logged
|
|
|
|
RNBW
New Member
member is offline


Gender: 
Posts: 23
|
 |
Re: BBC BASIC for SDL 2.0 v0.14a released
« Reply #10 on: Aug 3rd, 2016, 10:58am » |
|
on Aug 1st, 2016, 10:27am, Richard Russell wrote:I am pleased to announce the release of version 0.14a of the Cross-Platform (SDL 2.0) implementation of BBC BASIC. |
|
Richard
I've tried out BBCSDL2.0 v0.14a on Windows and Mac (both latest OS), not all the files, but those I have tried work perfectly. I'm pleased to see it working on the Mac because I bought a second hand Mac Mini, which I've upgraded. It will be good to be able to use BBC Basic on it.
First impressions about the IDEs: Looks: I prefer yours. Working: I prefer a light background and I couldn't immediately see if the colours could be changed on Andy's IDE. I think I will play with both of them for a while, to see which I like best.
Ray
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 803
|
 |
Re: BBC BASIC for SDL 2.0 v0.14a released
« Reply #11 on: Aug 3rd, 2016, 10:25pm » |
|
on Aug 3rd, 2016, 10:58am, RNBW wrote:| I prefer a light background and I couldn't immediately see if the colours could be changed on Andy's IDE. |
|
To be fair, there's no way to get a non-white background on my IDE (other than to edit the code)! The other syntax colours can be selected, but not the editor background.
Richard.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 803
|
 |
Re: BBC BASIC for SDL 2.0 v0.14a released
« Reply #12 on: Aug 4th, 2016, 08:35am » |
|
Although it works fine here, a couple of people have reported that the Win32 edition crashes in bbcsdl.bbc as a result of this statement:
Code: SYS "SDL_SetWindowSize", @hwnd%, dlg%!8 DIV 2, dlg%!12 DIV 2 The reason for the crash isn't clear, but experimentally it seems that changing the window size using VDU 23,22 instead fixes the issue:
Code: VDU 23,22,dlg%!8 DIV 2;dlg%!12 DIV 2;8,16,16,128+8 I've uploaded a new version with that change:
http://www.rtr.myzen.co.uk/bbcsdl20.zip
As far as I am aware neither the Linux nor Mac OS version is affected, so I haven't replaced those.
Richard.
|
|
|
|
|