Go to advanced search

by RichardRussell
Thu May 14, 2020 11:39 am
Forum: Other programming languages
Topic: javascript
Replies: 22
Views: 973

Re: javascript

jahboater wrote:
Thu May 14, 2020 12:13 am
Javascript (and C)
-12 % 5 returns -2
1 % -2 returns 1
BBC BASIC too:

-12 MOD 5 returns -2
1 MOD -2 returns 1

Looks like Python is a bit of an outlier here, which is surprising.
by RichardRussell
Fri May 08, 2020 5:16 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

I've released version 1.12a 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 Updated the MacOS edition (only) to SDL 2.0.12 to fix some graphical gl...
by RichardRussell
Fri Apr 17, 2020 1:06 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

Is this the best manual to use for the Raspberry Pi BBC BASIC for SDL 2.0? The 'official' URL (which is where the Help menu in BBC BASIC itself takes you) is here , but that is currently virtually identical to the BBC BASIC for Windows manual and barely mentions the differences in BBC BASIC for SDL...
by RichardRussell
Wed Apr 15, 2020 9:56 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

Now that you mentioned the above; that explains why there was no art work for the needles. There's hour.bmp and minute.bmp , both in the examples/graphics/ folder; don't they count as "artwork"? I did see in the manual that there were sprites. Possibly that was the BBC BASIC for Windows manual. BBC...
by RichardRussell
Wed Apr 15, 2020 5:25 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

Your clock program is encouraging, because that is how many flight gauges/instruments are modeled. Bear in mind that if performance is important then you'll probably be wanting to use something more efficient than the pixel-at-a-time processing that program uses. Leveraging SDL2's hardware-accelera...
by RichardRussell
Mon Apr 13, 2020 8:44 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

I am amazed that one person could achieve a project of this size. Even working on it for 20 years. Amazing ! ! ! To be fair, it's more like 38 years since I wrote the Z80 version of BBC BASIC (helped by knowledge I gained of the original 6502 version, partly from its author Sophie Wilson). It would...
by RichardRussell
Sun Apr 12, 2020 9:20 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

Will the BBC BASIC, for the Pi, compile a BBC BASIC script like the BBC BASIC for Windows will compile for the Windows OP? Generic Linux doesn't have the concept of 'standalone app' in quite the way that Windows, MacOS and Android do, so when you bundle a BBC BASIC program for Linux what actually g...
by RichardRussell
Sun Apr 12, 2020 5:32 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

BBC BASIC is not just the language, it's the whole environment, framework, whatever one may call it. If you look across the spectrum of BBC BASIC versions, over the last 38 years, (and there have been a lot of them!) there has been no attempt at standardisation of the "environment" or "framework", ...
by RichardRussell
Sun Apr 12, 2020 11:24 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

I think that is a discussion for a whole other thread, or even other forum. This is a BBC BASIC thread. You saved me the trouble, thanks, although it's legitimate to discuss other languages in a 'comparative' fashion (e.g. how does it differ from BBC BASIC and which is better?). Several of the exte...
by RichardRussell
Thu Apr 02, 2020 5:14 pm
Forum: Other programming languages
Topic: C# WiringPi - unable to load libwiringPi.so
Replies: 16
Views: 6610

Re: C# WiringPi - unable to load libwiringPi.so

DougieLawson wrote:
Thu Apr 02, 2020 9:54 am
What's stopping you using python with pigpio / pigpiod?
Or even BBC BASIC with the gpiolib library?! 8-)
by RichardRussell
Sat Mar 28, 2020 11:04 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

Changed the default MODE 7 font to be more similar to RISC OS and Matrix Brandy. This is the font I am now using for MODE 7. It's loosely based on the Bedstead-ext font but, since that is a 12x20 bitmap stretched (with anti-aliasing) to 16x20, 'smooth' diagonals run at a different angle; this parti...
by RichardRussell
Fri Mar 27, 2020 9:59 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

I've released version 1.11a 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 Enabled render batching (in SDL 2.0.10 and later) which should improve ...
by RichardRussell
Tue Mar 24, 2020 8:59 pm
Forum: Other programming languages
Topic: How to adjust image size in accordance to the size of the screen?
Replies: 4
Views: 344

Re: How to adjust image size in accordance to the size of the screen?

chugjug wrote:
Tue Mar 24, 2020 7:30 pm
My apologies for linking to an external website however I believe it is relevant to my situation
An unfortunate choice of example, since the subject matter is completely fake!
by RichardRussell
Thu Mar 19, 2020 10:56 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

So it going take bit of time to learn most of what commands does! If you're a complete beginner you may find the tutorial helpful (it was originally written for BBC BASIC for Windows but is substantially relevant to BBC BASIC for SDL 2.0 ). On the other hand if you're familiar with the BASIC langua...
by RichardRussell
Sun Mar 15, 2020 7:39 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

Amiga Man wrote:
Sun Mar 15, 2020 7:09 pm
What am I doing wrong?
Sorry, no idea. Try running it from the command prompt (./bbcsdl) rather than using the icon.
by RichardRussell
Fri Feb 28, 2020 6:48 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

sudo apt-get install mesa-utils I'm not sure that you actually need mesa-utils to run BBC BASIC, I think I recommended installing it so that you can run glxinfo and glxgears to assess OpenGL performance and confirm that the 'experimental' GL driver is enabled (necessary on an RPi 3 to achieve accep...
by RichardRussell
Fri Feb 28, 2020 3:13 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

Could you create something with my ( I hope ) apparent intent ? No. If I knew how to write a script that will install BBC BASIC in a single command don't you think I would have already done so to make a user's life easier?! The fact is that the only OS I know how to use in any detail is Windows; Li...
by RichardRussell
Fri Feb 28, 2020 2:21 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

Is there a way to transfer an installed RPi bbcbasic from one Raspbian version to another ? I.E. if I want to update (or go back) or refresh my SD without having to reinstall bbcbasic .... You need to distinguish BBC BASIC itself from the SDL2, SDL2_ttf and SDL2_net libraries that it relies on. Tho...
by RichardRussell
Thu Feb 27, 2020 3:42 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

Can the old ( er ? ) forum ( not the present ( blue one ) ) be viewed anyplace ? The archives of the original Yahoo! group (back to 2005) can be browsed and searched at the current Groups.io group: https://groups.io/g/bb4w The archives of the old Conforums boards (back to 2007) can be browsed and s...
by RichardRussell
Wed Feb 26, 2020 11:56 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

O . K ........ data 1 writes ( visually ) ..... data 2 does not The characters you are writing to the file are, according to their traditional ASCII mnemonics, NUL, SOH, STX, ETX and EOT. They are 'control characters', they do not have a "visual" representation. Your insistence on 'viewing' the con...
by RichardRussell
Wed Feb 26, 2020 9:33 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

I cannot fathom the difference between the i and the z i runs from 0 to 7 whereas z runs from 1 to 8 . Bearing in mind that 0 (NUL) is often used as a string terminator I am not at all surprised that one displays something and the other doesn't when you view the file's contents in an inappropriate ...
by RichardRussell
Wed Feb 26, 2020 8:28 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

BPUT x leaves file blank (visually anyways) We've explained to you that the file contains binary numbers that do not correspond to visible characters. I ask again: what is the length of the file? If it's 4 bytes you can be confident that your program has worked. Don't attempt to view the contents o...
by RichardRussell
Wed Feb 26, 2020 7:28 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

hitsware wrote:
Wed Feb 26, 2020 5:49 pm
This write's nothing to the file
What length is the file you created? If it's 4 bytes the program has worked.
by RichardRussell
Wed Feb 26, 2020 4:36 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

The above will write the value of z to the file, but not x ???? Sorry, I don't understand. The code you listed creates a file exactly 4 bytes long, with those bytes having the values 0, 1, 2, and 3 respectively; that's precisely what it should do. The only thing about the program that I would consi...
by RichardRussell
Thu Feb 20, 2020 10:40 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 667
Views: 71465

Re: Introduction to BBC BASIC

Reminds me my first P.C. music. A Commodore Vic-20. Had 3 8-bit dividers with outputs. I find it interesting that my own experience with writing tone-generation software completely skipped the 'programmable divider' phase, which was so popular with chip manufacturers and hardware designers in the e...

Go to advanced search