Search found 163 matches

by Richard Russell
Tue Oct 03, 2017 8:00 pm
Forum: programming
Topic: Many DEFPROC, 1 ENDPROC?
Replies: 12
Views: 320

Re: Many DEFPROC, 1 ENDPROC?

In your example though, doesn't the "LOCAL flag" get processed in exactly the same way as the procedure parameter? Well, not "exactly" because LOCALs don't have to be copied from the 'actual' parameters after saving. But that's not really the point, it's the 'real' parameters of...
by Richard Russell
Tue Oct 03, 2017 4:24 pm
Forum: programming
Topic: Many DEFPROC, 1 ENDPROC?
Replies: 12
Views: 320

Re: Many DEFPROC, 1 ENDPROC?

The deeper call stack probably means it runs a bit slower It could be substantially slower, especially if there are multiple parameters (and even worse if some of them are RETURNed parameters). Interpreted BBC BASIC has a lot of work to do in making the formal parameters (especially strings) 'local...
by Richard Russell
Tue Oct 03, 2017 11:33 am
Forum: programming
Topic: Many DEFPROC, 1 ENDPROC?
Replies: 12
Views: 320

Re: Many DEFPROC, 1 ENDPROC?

It's even possible in some versions of BBC Basic to do "overloading" As far as I'm aware the only 'overloading' you can do is of a function or procedure with no parameters and one of the same name with one or more parameters . This works - at least in my versions - because the opening par...
by Richard Russell
Sat Sep 30, 2017 8:57 pm
Forum: development tools
Topic: BASIC cruncher for PC
Replies: 22
Views: 597

Re: BASIC cruncher for PC

Ah, the memories of trying to fix a crunched broken program with no access to the uncrunched version... For amusement, here's a snippet from 'lblib.bbcc', the crunched library used by LBB. It includes an example of one of the tricky cases: a space between '6' and 'E' being retained because otherwis...
by Richard Russell
Sat Sep 30, 2017 9:47 am
Forum: development tools
Topic: BASIC cruncher for PC
Replies: 22
Views: 597

Re: BASIC cruncher for PC

I guess one big, huge, glaring question to ask in crunching BASIC programs is: does the EVAL token occur anywhere? If not, you've got a lot more latitude to shrink variable and function names. Leaving all variable/function names intact just because there's a single EVAL in the program is rather dra...
by Richard Russell
Sat Sep 30, 2017 9:38 am
Forum: development tools
Topic: BASIC cruncher for PC
Replies: 22
Views: 597

Re: BASIC cruncher for PC

My *CRUNCH doesn't do this, and I haven't run through it mentally to check, but all spaces before and after arithmetic operators and brackets The rules for removing spaces are complicated, as I've found to my cost (it took years for the edge-cases to be discovered and fixed in BB4W; as far as I kno...
by Richard Russell
Fri Sep 29, 2017 8:34 pm
Forum: development tools
Topic: BASIC cruncher for PC
Replies: 22
Views: 597

Re: BASIC cruncher for PC

I've tried BBC BASIC (bbcsdl) before and didn't like either of the ide's People's taste in IDEs differ, so it's impossible to please everybody. That's one of the main reasons why the BBCSDL IDEs are themselves written in BBC BASIC, making it relatively straightforward to customise them to suit indi...
by Richard Russell
Fri Sep 29, 2017 7:00 pm
Forum: development tools
Topic: BASIC cruncher for PC
Replies: 22
Views: 597

Re: BASIC cruncher for PC

It's written in FreeBASIC so it should compile and work on any system FreeBASIC is available on which is linux,Windows,OSX and I think android. What a shame it's not written in BBC BASIC! I would have thought that was the 'obvious' choice, and of course it's also available on Windows, Linux (includ...
by Richard Russell
Fri Sep 29, 2017 5:45 pm
Forum: programming
Topic: Differences between BASIC1/2 and BASIC4 in handling an EVAL?
Replies: 20
Views: 366

Re: Differences between BASIC1/2 and BASIC4 in handling an EVAL?

The following segfaults on BB4W 6.11a The reason is much simpler than you think! Remember that 'formal parameters' are automatically LOCAL, so the first thing that happens on calling a PROC/FN is that the existing value of each formal parameter is stored on the stack so that it can be restored on e...
by Richard Russell
Thu Sep 14, 2017 9:32 pm
Forum: other vintage computer hardware, software and games
Topic: Eastern Blok computers
Replies: 7
Views: 474

Eastern Block computers

Nice to see a mention of FOCAL, the first programming language I ever used (in 1970 or thereabouts).

Richard.
by Richard Russell
Wed Aug 16, 2017 10:23 pm
Forum: other vintage computer hardware, software and games
Topic: Tatung Einstien..
Replies: 58
Views: 5089

Re: Tatung Einstien..

Commie_User wrote:I'd be amazed if BBC BASIC on the Tatung was as good as it is on the real thing.

It was my BBC BASIC (Z80), so effectively identical to what was in Acorn's Z80 Second Processor.
by Richard Russell
Mon Aug 07, 2017 11:27 am
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.18a released
Replies: 10
Views: 388

Re: BBC BASIC for SDL 2.0 v0.18a released

One of the new features of BBCSDL v0.18a is full support for 3D (OpenGL) graphics on the Raspberry Pi. Here's a video showing some of the supplied 3D example programs running on that platform.

Richard.
by Richard Russell
Thu Aug 03, 2017 9:02 am
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.18a released
Replies: 10
Views: 388

Re: BBC BASIC for SDL 2.0 v0.18a released

The idea of passing parameters in two places seems like a clever workaround. It quite literally came to me in the middle of the night. Persuading a C compiler to do it was challenging, and relies on a non-standard GCC extension (nested functions). I found it necessary to disable optimisation for th...
by Richard Russell
Tue Aug 01, 2017 9:17 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.18a released
Replies: 10
Views: 388

Re: BBC BASIC for SDL 2.0 v0.18a released

Can you share a link to that long discussion? https://groups.io/g/bb4w/message/21739 I found this one Wow, a lot has happened since then (not least that I eventually did introduce 64-bit integers, using a %% suffix). The thread is a good illustration of how I have cycled between being optimistic an...
by Richard Russell
Tue Aug 01, 2017 8:34 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.18a released
Replies: 10
Views: 388

Re: BBC BASIC for SDL 2.0 v0.18a released

limiting Basic's memory arena to 4Gbyte. Limiting BBC BASIC's 'arena' to 4Gbytes is all very well, but as soon as you need to interact with the OS that scheme doesn't work. Most problematic in that respect is the SYS statement, used for calling API functions, which may need to be able to pass 64-bi...
by Richard Russell
Tue Aug 01, 2017 4:21 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.18a released
Replies: 10
Views: 388

Re: BBC BASIC for SDL 2.0 v0.18a released

A pure 64-bit Linux version will be very welcome. A 64-bit BBC BASIC raises a number of thorny issues, as I'm sure you're aware - not least that BBC BASIC's integer variables are 32-bits! There was a recent long thread on the subject at the BB4W Discussion Group, but without any firm conclusion oth...
by Richard Russell
Tue Aug 01, 2017 9:56 am
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.18a released
Replies: 10
Views: 388

BBC BASIC for SDL 2.0 v0.18a released

I have updated BBCSDL, the cross-platform version of BBC BASIC for Windows, Linux, Mac-OS X, Raspberry Pi and Android. A major new feature is full support for 3D graphics programming on Android. Full details of the new release may be found at the forum.

Richard.
by Richard Russell
Sun Jul 30, 2017 10:19 pm
Forum: general
Topic: Post pictures of your beeb setup
Replies: 205
Views: 17390

Re: Post pictures of your beeb setup

My oh my, where did they make tubes small enough to fit in that capacitor? You may think you are joking, but they certainly did make 'tubes' (valves) small enough to fit in that capacitor. I had a wire-ended hearing-aid valve (tetrode, probably) that I encapsulated with a few other components to ma...
by Richard Russell
Mon Jul 17, 2017 8:20 am
Forum: software & utilities for the pc, mac or unix
Topic: Help with translation to ARM code
Replies: 2
Views: 512

Re: Help with translation to ARM code

Instead of replacing the x86 assembly code with ARM assembly code, is it not possible to rewrite it purely in BASIC? No, it's not. The debugging/profiling code runs in a separate thread (strictly, in a timer interrupt) and BBC BASIC is not multi-thread capable. If you think about the requirements o...
by Richard Russell
Mon Jul 10, 2017 8:44 am
Forum: general
Topic: Remarkable videos recently posted on Youtube
Replies: 125
Views: 9223

Re: Remarkable videos recently posted on Youtube

From Acorn World back in May: How Graphics were Created for BBC TV Programmes in the 90s . With reference to a comment made near the beginning of the video, the small onscreen clock displayed during breakfast TV, at least initially, was generated by dedicated hardware known as BAT (Breakfast Analog...
by Richard Russell
Fri Jul 07, 2017 4:02 pm
Forum: software & utilities for the pc, mac or unix
Topic: Help with translation to ARM code
Replies: 2
Views: 512

Help with translation to ARM code

I've posted this on the BBC BASIC forums but there may be a better chance of somebody being willing and able to help here: " Those of you who have tried the Raspberry Pi edition of BBCSDL will have spotted that neither the Run... Debug nor Run... Profile options are available. This is because b...
by Richard Russell
Wed Jun 28, 2017 12:47 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.17a released
Replies: 20
Views: 1268

Re: BBC BASIC for SDL 2.0 v0.17a released

There is only so much I can do in terms of providing explanations and evidence. I will not waste my, or your, time by posting again.

Richard.
by Richard Russell
Wed Jun 28, 2017 8:34 am
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.17a released
Replies: 20
Views: 1268

Re: BBC BASIC for SDL 2.0 v0.17a released

Box starts at 64,64 and finishes at 96,96 which is 17 pixels wide and 17 pixels high, not 16 as we might expect Why are you "expecting" RECTANGLE to work differently from the way it works on Acorn products? That seems a surprising attitude on StarDot! I wrote the following simple test pro...
by Richard Russell
Mon Jun 26, 2017 8:58 am
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.17a released
Replies: 20
Views: 1268

Re: BBC BASIC for SDL 2.0 v0.17a released

Only Microsoft could come up with a coordinate system where a height of 200 pixels actually equals 199 No, Microsoft think a height of 200 equals 200 pixels whereas Acorn think a height of 200 means 201 pixels! Now which do you think is strange? :? Consider the statement 'RECTANGLE FILL 200,200,200...
by Richard Russell
Sun Jun 25, 2017 10:10 am
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.17a released
Replies: 20
Views: 1268

Re: BBC BASIC for SDL 2.0 v0.17a released

I am trying to wrap my head around how rectangles and filled rectangles operate, I've noticed that a rectangle fill using the same coords as a rectangle doesn't completely fill in the same area. Does this answer your question? In particular: " Solid shapes, such as filled triangles, rectangles...
by Richard Russell
Wed May 31, 2017 9:19 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.17a released
Replies: 20
Views: 1268

Re: BBC BASIC for SDL 2.0 v0.17a released

I'm interested to know what the SDL version differences are though? Here is a comparison between BBC BASIC for Windows (BB4W) and BBC BASIC for SDL 2.0 (BBCSDL). It is far from exhaustive, but hopefully will be useful: ⋅ The BBC BASIC interpreters, i.e. the language itself, are identical ...
by Richard Russell
Fri May 26, 2017 3:36 pm
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.17a released
Replies: 20
Views: 1268

Re: BBC BASIC for SDL 2.0 v0.17a released

Does the SDL version allow for a compiled executable? You need to specify the OS. In the case of Windows there's no particular problem with creating a standalone executable using exactly the same technique as BB4W. In Mac OS-X it's not too difficult to create a .dmg file (the usual form in which an...
by Richard Russell
Fri May 26, 2017 6:30 am
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.17a released
Replies: 20
Views: 1268

Re: BBC BASIC for SDL 2.0 v0.17a released

BB4W is limited to 32k program size and cannot compile. I appreciate it was just a typo, but for clarity it's only the free (trial) edition of BB4W that has those limitations! not sure if there is any ram limitation with SDL. 256 Mbytes, if I remember rightly, so half that of BB4W (512 Mbytes max)....
by Richard Russell
Thu May 04, 2017 9:33 pm
Forum: general
Topic: Should the Elk have been a 'full' Beeb?
Replies: 161
Views: 6303

Re: Should the Elk have been a 'full' Beeb?

Did the BBC itself own BBC BASIC? The name 'BBC BASIC' certainly; I am only allowed to call my products BBC BASIC because I have the BBC's permission to do so (and of course it's not "did" but "does"). But one cannot protect, e.g. copyright or patent, the language itself (i.e. i...
by Richard Russell
Mon May 01, 2017 11:28 am
Forum: software & utilities for the pc, mac or unix
Topic: BBC BASIC for SDL 2.0 v0.17a released
Replies: 20
Views: 1268

BBC BASIC for SDL 2.0 v0.17a released

I've updated BBCSDL, the free cross-platform BBC BASIC for Windows , Linux (86), Mac OS-X , Android and Raspberry Pi , to version 0.17a. It may be downloaded as follows: ⋅ Win32: http://www.rtr.myzen.co.uk/bbcsdl20.zip ⋅ Linux (x86): http://www.rtr.myzen.co.uk/bbclinux.zip ⋅...

Go to advanced search