Search found 31 matches

by Kweepa
Sun Nov 15, 2020 6:08 pm
Forum: 8-bit acorn software: other
Topic: Why was BBC BASIC so fast?
Replies: 196
Views: 7325

Re: Why was BBC BASIC so fast?

Has anyone analysed the differences between BBC, Master, and Master Compact BASIC?
I'm amazed at the improvements in the speed of the math routines over the versions.
by Kweepa
Fri Oct 30, 2020 10:43 pm
Forum: new projects in development: games
Topic: Patolas' Adventures #1
Replies: 7
Views: 374

Re: Patolas' Adventures #1

Looks lovely!
by Kweepa
Sun Oct 25, 2020 3:25 pm
Forum: 8-bit acorn software: other
Topic: Why was BBC BASIC so fast?
Replies: 196
Views: 7325

Re: Why was BBC BASIC so fast?

MS BASIC on the Beeb. Seems like sacrilege! Nice work!
(Did you compile it with 32- or 40-bit floats?)
by Kweepa
Fri Oct 23, 2020 11:55 pm
Forum: 8-bit acorn software: other
Topic: Why was BBC BASIC so fast?
Replies: 196
Views: 7325

Re: Why was BBC BASIC so fast?

julie_m wrote:
Fri Oct 23, 2020 10:16 pm
Old-fashioned GOTO and GOSUB were really only provided for converting type-in listings from legacy systems.
There's not really an efficient substitute for ON X GOTO/GOSUB though, so they still have their place.
by Kweepa
Fri Oct 23, 2020 9:32 pm
Forum: 8-bit acorn software: other
Topic: Why was BBC BASIC so fast?
Replies: 196
Views: 7325

Re: Why was BBC BASIC so fast?

Interesting. The variants used by Commodore and Apple are both 40-bit, though.
by Kweepa
Fri Oct 23, 2020 6:11 pm
Forum: 8-bit acorn software: other
Topic: Why was BBC BASIC so fast?
Replies: 196
Views: 7325

Re: Why was BBC BASIC so fast?

These include having 40-bit floats, when most other BASICs had 32-bit floats, 32-bit integers when most others had 16-bit, arbitrarily long variable names etc. Microsoft BASIC and Sinclair BASIC both use 40-bit floats. Microsoft BASIC allows you to define integer variables using the same % syntax b...
by Kweepa
Thu Sep 24, 2020 8:36 pm
Forum: 8-bit acorn software: games - high scores
Topic: High Score Challenge S14 - R08 - Manic Miner
Replies: 118
Views: 3274

Re: High Score Challenge S14 - R08 - Manic Miner

I had to play through the whole game when I ported it to VIC-20.
The hardest level by a large margin is yet to come - The Warehouse.
I think I died 100 times.
by Kweepa
Fri Sep 18, 2020 4:33 pm
Forum: development tools
Topic: Which debugger do you use?
Replies: 8
Views: 1408

Re: Which debugger do you use?

That didn't work when I tried it before, and it didn't work this time either. I pressed 'break' to stop the 6502 (so it says 'cancel' on the button), then typed 'n' and hit enter. Nothing appeared in the output window. Nothing for 'next' or 'next 1' either. Typing code works, as do peek, watch, etc....
by Kweepa
Fri Sep 18, 2020 3:47 pm
Forum: development tools
Topic: Which debugger do you use?
Replies: 8
Views: 1408

Re: Which debugger do you use?

I'm trying to debug some assembly I've written using the BASIC assembler in beebem (4.14/4.15), but I don't even know how to display the contents of the registers (PC, A, X, Y, F). It seems that 'code' shows them once after a break but that's it. I'd really like to single step through a loop. Could ...
by Kweepa
Wed Sep 16, 2020 7:24 pm
Forum: new projects and releases: demoscene
Topic: Ray tracing in a tweet
Replies: 4
Views: 427

Re: Ray tracing in a tweet

Yes? No. :( I must admit I didn't look into it too carefully. EDIT: this fixes it (note the addition of H). 1MO.2:F.V=0TO255:F.U=0TO159:X=(U-80)/80:Y=(V-128)/160:Z=1/SQR(X*X+Y*Y+1):X=X*Z:Y=Y*Z:H=2.2 2D=4*Z*Z+.04*Y*Y-3.04:B=0:IFD>0T=2*Z-.2*Y-SQRD:X=T*X:Y=T*Y+.2:Z=T*Z-2:B=4:H=2+Y 3IFY<0P=H/Y:C=((INT(X...
by Kweepa
Wed Sep 16, 2020 4:19 pm
Forum: new projects and releases: demoscene
Topic: Ray tracing in a tweet
Replies: 4
Views: 427

Ray tracing in a tweet

https://twitter.com/bbcmicrobot/status/1305994639258853379 (For some reason I called it ray casting...) 1MO.2:P.'" Ray caster":H=.23:J=H*H:F.V=4TO32:F.U=0TO19:X=(U-10)/10:Y=(16-V)/20:Z=1/SQR(X*X+Y*Y+1):X=X*Z:Y=Y*Z 2D=4*Z*Z+J*Y*Y-3-J:B=0:IFD>0T=2*Z-H*Y-SQRD:X=T*X:Y=T*Y+H:Z=T*Z-2:B=4 3IFY<0P=(Y+2)/Y:C...
by Kweepa
Tue Sep 01, 2020 10:11 pm
Forum: 8-bit acorn software: classic games
Topic: BBC Elite source, now fully documented and explained
Replies: 75
Views: 3942

Re: BBC Elite source, now fully documented and explained

Don't have much to contribute except woo! great job!
by Kweepa
Sat Aug 29, 2020 5:43 pm
Forum: programming
Topic: Assembly language - Loading / Saving save game files
Replies: 10
Views: 484

Re: Assembly language - Loading / Saving save game files

If you are using disk routines, they will likely touch some of &90-&ff, &300-&3ff, &800-&8ff or &d00-&dff.
by Kweepa
Tue Aug 25, 2020 7:03 pm
Forum: 8-bit acorn software: classic games
Topic: Acornsoft Maze random maze generation
Replies: 4
Views: 414

Re: Acornsoft Maze random maze generation

I don't have the answer but you could use a standard algorithm then punch some random holes in the walls.
by Kweepa
Wed Aug 05, 2020 3:24 pm
Forum: new projects and releases: demoscene
Topic: Boing ball BASIC demo
Replies: 38
Views: 2339

Re: Boing ball BASIC demo

tricky wrote:
Mon Aug 03, 2020 5:06 pm
The aliens never move in my AstroBlaster game either ;)
Lovely!
by Kweepa
Tue Aug 04, 2020 2:58 pm
Forum: new projects and releases: demoscene
Topic: Boing ball BASIC demo
Replies: 38
Views: 2339

Re: Boing ball BASIC demo

I like the keyboard control in SPINNER. That's a nice touch.
The screen tearing as the palette changes could be removed with just a little rearrangement of the code...
by Kweepa
Mon Aug 03, 2020 3:06 pm
Forum: new projects and releases: demoscene
Topic: Boing ball BASIC demo
Replies: 38
Views: 2339

Re: Boing ball BASIC demo

Yeah, the ball is made up of 8 different colours, so the ball rotation is in four steps. Then, the vertical lines of the background grid are two different colours. So in total there are 13 used colours (8 for the ball, 1 cyan background, 1 blue shadow, 2 vertical grid lines, 1 horizontal grid line)....
by Kweepa
Tue Jul 28, 2020 11:35 pm
Forum: new projects and releases: demoscene
Topic: Boing ball BASIC demo
Replies: 38
Views: 2339

Re: Boing ball BASIC demo

Yes, when I draw the screen I have already set the second line colour to cyan to hide the second set of lines.
by Kweepa
Tue Jul 28, 2020 9:15 pm
Forum: 8-bit acorn software: other
Topic: Most efficient ToUpper function in BBC BASIC?
Replies: 35
Views: 1495

Re: Most efficient ToUpper function in BBC BASIC?

Yes, it was a smidgen (~0.06sec) faster that way, for the reason you state.
by Kweepa
Tue Jul 28, 2020 8:03 pm
Forum: 8-bit acorn software: other
Topic: Most efficient ToUpper function in BBC BASIC?
Replies: 35
Views: 1495

Re: Most efficient ToUpper function in BBC BASIC?

0DIMT%255 1T$="HelloWorld!":T$=STRING$(23,T$):T=TI. 2T$=FNtU(T$) 4P.;(TI.-T)/100;"sec to get ";T$:END 5DEFFNtU($T%):LOCALP%,W%,X%,Y%,Z%:X%=32:Y%=96:Z%=123:FORP%=T%TOT%+LEN$T%:?P%=?P%+X%*(?P%>Y%A.?P%<Z%):NEXT:=$T% Based on Richard Russell's code (with another check to not screw up {|}~), this takes ...
by Kweepa
Tue Jul 28, 2020 7:35 pm
Forum: new projects and releases: demoscene
Topic: Boing ball BASIC demo
Replies: 38
Views: 2339

Re: Boing ball BASIC demo

In my implementation the vertical grid lines are drawn 2 pixels apart in two different colours, so the left to right ball movement can be 4 pixel resolution rather than 8. Then when the screen scrolls, one of the sets of grid lines is recoloured cyan and the other set purple. In Sweet Dreams, there ...
by Kweepa
Mon Jul 27, 2020 11:08 pm
Forum: new projects and releases: demoscene
Topic: Boing ball BASIC demo
Replies: 38
Views: 2339

Re: Boing ball BASIC demo

Nice. Orlando's actually blits the ball, and it has a nice grid and the sound effects are close to the original. The Sweet Dreams version (by Ian Hutt, according to the endscreen) does just about everything except a smooth bounce curve. I can see a pixel at the top of the screen where the grid colou...
by Kweepa
Sun Jul 26, 2020 5:05 pm
Forum: new projects and releases: demoscene
Topic: Boing ball BASIC demo
Replies: 38
Views: 2339

Re: Boing ball BASIC demo

Teamwork!
by Kweepa
Sun Jul 26, 2020 5:02 pm
Forum: new projects and releases: demoscene
Topic: Boing ball BASIC demo
Replies: 38
Views: 2339

Re: Boing ball BASIC demo

Here's a video of it in action: https://www.youtube.com/watch?v=N7znhqt4ZdM And a one-filer, since I am not a fan of multiloads: 10 REM Program Beach Ball 20 REM Version B 0.2 30 REM Author Barry Christie 40 REM Beebug October 1987 50 REM Program subject to copyright 60 REM Minimal mods to make one-...
by Kweepa
Sun Jul 26, 2020 4:11 pm
Forum: new projects and releases: demoscene
Topic: Boing ball BASIC demo
Replies: 38
Views: 2339

Re: Boing ball BASIC demo

Part 2: 10 REM Program Bounce 20 REM Version B 0.2 30 REM Author Barry Christie 40 REM Beebug October 1987 50 REM Program subject to copyright 60 : 100 MODE 1 110 ON ERROR GOTO 1040 120 VDU 19,1,11;0; 130 VDU 19,2,12;0; 140 VDU 19,3,2;0; 150 VDU 23,1,0;0;0;0; 160 *FX 9,0 170 *FX 10,0 180 startL=&80:...
by Kweepa
Sun Jul 26, 2020 3:46 pm
Forum: new projects and releases: demoscene
Topic: Boing ball BASIC demo
Replies: 38
Views: 2339

Re: Boing ball BASIC demo

Part one: 10 REM Program Beach Ball 20 REM Version B 0.2 30 REM Author Barry Christie 40 REM Beebug October 1987 50 REM Program subject to copyright 60 : 100 MODE 1 110 PROCinitialize 120 PROCbackground 130 PROCdrawball 140 MODE 7:END 150 : 160 DEF PROCdrawball 170 c%=1:radstp=1 180 radius=158:angst...
by Kweepa
Sun Jul 26, 2020 3:25 pm
Forum: new projects and releases: demoscene
Topic: Boing ball BASIC demo
Replies: 38
Views: 2339

Re: Boing ball BASIC demo

Ah, there's a version in Beebug volume 6 issue 5 page 20-22 by Barry Christie called Giant Bounce. Thank you Paul Collins and 8bs.com for the full index searchable pdf. It looks like it might be smoother than my version as it uses machine code to shift the ball and animate the colours, so it can wor...
by Kweepa
Sun Jul 26, 2020 2:55 pm
Forum: new projects and releases: demoscene
Topic: Boing ball BASIC demo
Replies: 38
Views: 2339

Re: Boing ball BASIC demo

Interesting. This isn't based on an old listing, but I'd be curious to see the Beebug version.
by Kweepa
Sat Jul 25, 2020 10:55 pm
Forum: new projects and releases: demoscene
Topic: Boing ball BASIC demo
Replies: 38
Views: 2339

Boing ball BASIC demo

https://www.youtube.com/watch?v=ZuC484vzUHk 0REM BBC Boing Ball by Steve McCrea with assist by Paul Malin 1MO.2:$@%="6456565611117777":F.I%=0TO15:V.19,I%,@%?I%-48;0;5:N.:F.X%=0TO79:GC.0,6+(1A.X%):MOVE16*X%+8,0:PL.1,0,1024:N.:GC.0,2:F.Y%=0TO31:MOVE0,32*Y%:PL.1,1280,0:N. 2V.23;13,48;0;0;0:GC.0,1:F.Y%=...
by Kweepa
Wed Jul 22, 2020 2:24 pm
Forum: 8-bit acorn software: other
Topic: Calculating digits of Pi in Basic
Replies: 40
Views: 3329

Re: Calculating digits of Pi in Basic

Details of the compression are here: https://www.dompajak.com/bbcmicrobot.html Here's the uncompressed code: 0MO.4:?6548=16:M=126:DIMB%(M):F.C%=M TO14S.-7:D=0:A=C%*2-1:F.P%=C%TO1S.-1:D%=D%*P%+B%(P%)*100+2E3:B%(P%)=D%“A-20:D%=D%/A:A=A-2:N.:N%=E%+D%/100:U=N%‘10:F.I=0TO1:K=K+.18:x=64*COSK:y=-64*SI.K:PL...

Go to advanced search