Go to advanced search

by RichardRussell
Sun Nov 10, 2019 6:23 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

Congratulations are due to David Williams (aka BasicBoy) whose BBC BASIC game 'Tyoob' has won Second Prize at the recent SyntaxBomb game coding competition . Here's a YouTube video of the game running on a Raspberry Pi 3 (apparently it runs rather more smoothly on a RPi 4). David has had great succe...
by RichardRussell
Mon Nov 04, 2019 12:04 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

I found a rather nasty bug yesterday, which (in admittedly statistically unlikely circumstances) could cause the INSTALL statement to hang. The source at GitHub has been updated with the fix.
by RichardRussell
Thu Oct 31, 2019 3:37 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

In 32-bit mode on ARM "long double" is the same as "double", that is 64-bits. In 64-bit mode, ARM "long double" is 128-bits! Indeed (and the 128-bit 'long double' is currently a software emulation) which is why I redefine those 'long double' library functions to their ordinary 'double' equivalents....
by RichardRussell
Thu Oct 31, 2019 2:02 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

Now down to a fabsl fabs warning in bbceval.c Looks like long double instead of long, but that's for fixing tmr. I don't think I get any warnings when compiling for iOS (which is Clang/aarch64), at least none that Xcode draws to my attention. The redefining of fabsl to fabs (and others similar) is ...
by RichardRussell
Thu Oct 31, 2019 12:18 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

Got this warning on main, exec, eval, smb_asm, but every other c file compiled individually on Gentoo64. That's likely to be due to this code in bbc.h : // Register globals: #ifdef __llvm__ extern signed char *esi ; // Program pointer extern heapptr *esp ; // Stack pointer #else #ifdef __i386__ reg...
by RichardRussell
Thu Oct 31, 2019 9:29 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

Could BBC basic be made into a baremetal version? In principle, certainly. Right from the very start (i.e. on the BBC Micro in 1981) a clear distinction was made, and a well-defined interface established, between the 'language' and the 'operating system'. This was rare in the 8-bit home computer da...
by RichardRussell
Wed Oct 30, 2019 2:07 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

Is there a aarch64 version of BBC Basic? The iOS edition of BBC BASIC is aarch64 (as mandated by Apple) but with so few RPis running a 64-bits OS I've not bothered to support that configuration. Ok, found the source on github but no instruction on how to make? The makefile is in the bin/raspi direc...
by RichardRussell
Sun Oct 27, 2019 5:34 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

Unless someone is paying, the audience for any program I write is precisely one, me. I can't believe that's true. You surely sometimes write 'informative' programs, e.g. a program designed to illustrate the capabilities of a language or a coding tecnnique, without expecting to be paid? That's what ...
by RichardRussell
Thu Oct 24, 2019 1:54 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

Nah, I want the real stuff The USNO UCAC4 star catalog with 113 millions stars to magnitude 16 ! It depends on what you consider the audience for the program to be. Most 'hobby' astronomers aren't going to be interested in that, or have a telescope capable of imaging most of those stars, anyway (to...
by RichardRussell
Thu Oct 24, 2019 11:48 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

Where does that BBC BASIC get it's planetarium data from? I've included web links in the source code, preceding the blocks of DATA statements at the end of the program. No guarantees that they are the 'best' sources nor that they are the most accurate, just ones that Google found. As I mentioned, t...
by RichardRussell
Tue Oct 22, 2019 12:21 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

Some screenshots from the 'planetarium' program featured in the recent release:
skybaby1_small.png
skybaby1_small.png (123.45 KiB) Viewed 1536 times
skybaby2_small.png
skybaby2_small.png (169.35 KiB) Viewed 1536 times
skybaby3.png
skybaby3.png (250.4 KiB) Viewed 1536 times
by RichardRussell
Sun Oct 20, 2019 3:51 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

Version 1.07a of BBC BASIC for SDL 2.0 - the cross-platform programming language for Windows, MacOS, Linux, Raspbian, Android and iOS - has been released. The changes in this version are as follows: BASIC Interpreter / Run Time Engine User-defined characters may be used even if *FONT is active (impr...
by RichardRussell
Wed Sep 04, 2019 9:55 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

Here's what the supplied example program aagfxdem.bbc produces, on all the supported platforms:

Image
by RichardRussell
Tue Sep 03, 2019 3:48 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

I have released version 1.06a of BBC BASIC for SDL 2.0 , the cross-platform programming language for Windows, MacOS, Linux, Raspbian, Android and iOS. The changes in this version are as follows: BASIC Interpreter / Run Time Engine Added support for antialiased 2D graphics (extending SDL2_gfx). Incre...
by RichardRussell
Wed Aug 28, 2019 8:23 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

Speed. It's painful without it. Plus, we have accelerated graphics, so why not use them? In any case I don't have any choice in the matter: it's BBC BASIC for SDL 2.0 and SDL2 uses OpenGL as the rendering backend when running on Linux (including Raspbian). So it's always using OpenGL, either hardwa...
by RichardRussell
Tue Aug 27, 2019 3:58 pm
Forum: Advanced users
Topic: glLogicOp(GL_OR) not working on Raspberry Pi 4?
Replies: 10
Views: 763

Re: glLogicOp(GL_OR) not working on Raspberry Pi 4?

trejan wrote:
Fri Aug 09, 2019 5:20 pm
No idea how long you'll need to wait for a newer Mesa to appear in Raspbian.
To tie up loose ends, the issue is fixed in this Mesa release candidate:

https://www.raspberrypi.org/forums/view ... 6&t=249650
by RichardRussell
Tue Aug 27, 2019 2:57 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

For those wanting to use BBC BASIC on the Raspberry Pi 4, who may have been affected by the glLogicOp() function not working (and hence BBC BASIC's GCOL statement being broken), I'm pleased to confirm that this Mesa update resolves the issue and restores BBC BASIC for SDL 2.0 to a fully functional s...
by RichardRussell
Tue Aug 27, 2019 2:51 pm
Forum: Raspbian
Topic: Mesa 19.2.0-rc1 available for testing
Replies: 9
Views: 1524

Re: Mesa 19.2.0-rc1 available for testing

This week, Mesa have announced a release candidate for the 19.2.0 release, which we would like to switch over to. I'm pleased to confirm that this 19.2 candidate fixes the issue with glLogicOp() not being implemented, and makes BBC BASIC work properly again! This is really good news, and I look for...
by RichardRussell
Tue Aug 20, 2019 4:53 pm
Forum: Raspbian
Topic: STICKY: Raspbian 'Buster' 2019-06-20 / 07-10
Replies: 134
Views: 36518

Re: Raspbian 'Buster' 2019-06-20 / 07-10

It isn't a performance issue. VC4 driver isn't compatible at all. Shame. It leaves software mesa (disabling FKMS) as the only option for getting a functional glLogicOp(), which whilst it works is unusably slow for running BBC BASIC. This is an unfortunate regression as far as I am concerned, but I ...
by RichardRussell
Tue Aug 20, 2019 1:45 pm
Forum: Raspbian
Topic: STICKY: Raspbian 'Buster' 2019-06-20 / 07-10
Replies: 134
Views: 36518

Re: Raspbian 'Buster' 2019-06-20 / 07-10

I'll see how far I get anyway, but it's possible that we'll need to sort it out another way which may take a few weeks. I appreciate your efforts. I notice that raspi-config provides no option for selecting the VC4 driver (as used on the RPI 3) but only the V3D driver that is currently missing glLo...
by RichardRussell
Sun Aug 18, 2019 9:28 am
Forum: Raspbian
Topic: STICKY: Raspbian 'Buster' 2019-06-20 / 07-10
Replies: 134
Views: 36518

Re: Raspbian 'Buster' 2019-06-20 / 07-10

It was more of a workaround. Something to do with switching from a gtk 2 to a gtk 3 backend is all I remember. Thank you, that explains what has been something of a mystery. Mesa also has a proper fix, but that hasn't made its way into raspbian yet. I am looking at updating it soon. That would be g...
by RichardRussell
Sun Aug 18, 2019 12:21 am
Forum: Raspbian
Topic: STICKY: Raspbian 'Buster' 2019-06-20 / 07-10
Replies: 134
Views: 36518

Re: Raspbian 'Buster' 2019-06-20 / 07-10

Out of interest here is the changlog 2019-07-10: * Fix for missing text insertion cursor in LibreOffice on Pi 4 Are there any details of what this 'fix' involves? My understanding was that the missing cursor in LibreOffice arose because of the absence of glLogicOp() functionality from the V3D drive...
by RichardRussell
Wed Aug 14, 2019 1:06 pm
Forum: Raspbian
Topic: Buster bug report thread
Replies: 241
Views: 40171

Re: Buster bug report thread

RichardRussell wrote:
Sat Aug 10, 2019 9:31 am
Is there a forecast for when this V3D driver fix will be incorporated in Buster?
If it would be helpful to report this at the official github repo, which category does mesa/V3D belong in: linux, firmware or userland?
by RichardRussell
Mon Aug 12, 2019 11:11 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

Unless I have missed a point, if you want to make something more like regular application that leaves the problem of connecting up the emscript SDL image to a real window. I don't have any need to make "something more like a regular application" because BBC BASIC is already multi-platform (courtesy...
by RichardRussell
Mon Aug 12, 2019 8:38 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 44697

Re: Introduction to BBC BASIC

But as far as I can tell there is a long way to go between that and creating useful programs with GUI's and so on. Not so much if the GUI is created using SDL 2.0, because Emscripten can easily pull in the SDL libraries when building the WASM binary. What limitations do you have in mind there? You ...

Go to advanced search