Search found 44 matches

by elkrepair
Mon Nov 09, 2020 12:27 am
Forum: 8-bit acorn software: other
Topic: Drawing a circle in 6502 Assembly
Replies: 3
Views: 358

Re: Drawing a circle in 6502 Assembly

Hi. The line that actually plots the point is line 970. This line performs an EOR which is why the second run removes the circles. Change it to ORA to stop this. Mode 5 does indeed produce a rather psychedelic pattern. However, be warned that the code assumes mode 4 and does not yet filter off-scree...
by elkrepair
Thu Nov 05, 2020 9:53 pm
Forum: 8-bit acorn software: other
Topic: Drawing a circle in 6502 Assembly
Replies: 3
Views: 358

Drawing a circle in 6502 Assembly

My original code (see "Drawing a circle in BBC Basic") took 7.86s to complete. However there was a small bug that prevented the last circle from being drawn. Changing line 210 fixes the problem: 210 SEC:LDA #&F8:SBC RL:LDA #&01:SBC RH:BPL radloop It now takes 8.42s to complete. Removing line 270 in ...
by elkrepair
Wed Aug 26, 2020 7:36 pm
Forum: 8-bit acorn hardware
Topic: Emulating a Spinning Disk of Rust
Replies: 5
Views: 410

Emulating a Spinning Disk of Rust

Hi. With all this talk of Floppy Disk Controllers and Disk Archiving etc, I thought I'd add that for the past 6 weeks I've been working on a solid state floppy disk drive (SSFDD) to attach to the Disk Port (thus freeing up the User Port). Unfortunately, I've been working full time during lockdown et...
by elkrepair
Mon Jul 20, 2020 7:47 pm
Forum: 8-bit acorn software: other
Topic: S-Pascal
Replies: 10
Views: 786

Re: S-Pascal

I learned Pascal whilst doing A Level Computer Science, and I have a copy of S-Pascal (boxed, with manual)! Before producing the Assembler version of the Bresenham circle drawing program, I created it in Pascal assuming it would run faster than BASIC. I was wrong, but I suspect this is to do with al...
by elkrepair
Mon Jul 13, 2020 12:00 am
Forum: 8-bit acorn hardware
Topic: A cool BEEB
Replies: 18
Views: 1535

Re: A cool BEEB

Are you sucking or blowing? Mark Erm, well both - sucking from the main PCB and blowing into the PSU. Air flows out under the Beeb via the vent under the PSU. I figured that this was best as the PSU generates the greatest amount of heat, so it was best to get ride of it quickly rather than blow it ...
by elkrepair
Fri Jul 10, 2020 7:31 pm
Forum: 8-bit acorn hardware
Topic: A cool BEEB
Replies: 18
Views: 1535

Re: A cool BEEB

I bought a 40mm (40x40x10) "Silent" fan and some Raspberry Pi type Heatsinks. I cut a 38mm diameter hole centred 50mm from the left and 25mm down for the fan. This allows airflow in the main part of the PSU and some to the left and a little above. I added a 12v pair from the PSU for the fan. I put t...
by elkrepair
Wed Jun 17, 2020 6:04 pm
Forum: 8-bit acorn software: other
Topic: Seeking ways to showcase fast second processors
Replies: 57
Views: 3360

Re: Seeking ways to showcase fast second processors

Yeah, 209.6 minutes (3.5 hours).

Can't wait for the video.
by elkrepair
Thu May 14, 2020 3:11 pm
Forum: 8-bit acorn hardware
Topic: BNC socket
Replies: 16
Views: 911

Re: BNC socket

Sure, but the PCB moves back about 15mm so there might just be a suitable connector - it needs it be short and fit the holes on the PCB. It's probably much simpler to just add a simple connector in the two wires. Close, but no cigar: https://www.alibaba.com/product-detail/Jack-R-A-PCB-mount-mini_141...
by elkrepair
Thu May 14, 2020 2:18 pm
Forum: 8-bit acorn hardware
Topic: BNC socket
Replies: 16
Views: 911

BNC socket

Hi. On my BBC B it looks very much like a right angled BNC connector was intended for the Video Out socket (there are markings and holes in the PCB). This would be in preferance to having to desolder the short leads to remove the PCB. I've been searching for a suitable connector but can't find one. ...
by elkrepair
Wed May 13, 2020 6:10 pm
Forum: 8-bit acorn software: other
Topic: Seeking ways to showcase fast second processors
Replies: 57
Views: 3360

Re: Seeking ways to showcase fast second processors

Hi.

I don't think the code is correct.

A time of 366100 is 1h 1m 1s, but the code states 1h 1m 61s

I believe this gives the h, m, s (I've changed R to T):

Code: Select all

H%=T%DIV360000
T%=T%MOD360000
M%=T%DIV6000
T%=T%MOD6000
S%=T%DIV100
by elkrepair
Sat May 09, 2020 11:37 am
Forum: 8-bit acorn software: other
Topic: Seeking ways to showcase fast second processors
Replies: 57
Views: 3360

Re: Seeking ways to showcase fast second processors

walkerworks wrote:
Sat May 09, 2020 10:56 am
I thought I'd try it on my Elk/plus1 with e2p and it took 3m 5sec to complete.
Nice! \:D/
How long does the first posted version take?
by elkrepair
Fri May 08, 2020 1:51 pm
Forum: 8-bit acorn software: other
Topic: Seeking ways to showcase fast second processors
Replies: 57
Views: 3360

Re: Seeking ways to showcase fast second processors

I was asked about the Eight Queens Puzzle in the early 1990's - 1992 I think. Version 1 of the program back then took over an hour to run on an Elk. If nothing else, this has been an example of how detailed knowledge of hardware and software allows small changes to have big impacts. It's probably po...
by elkrepair
Thu May 07, 2020 8:14 pm
Forum: 8-bit acorn software: other
Topic: Seeking ways to showcase fast second processors
Replies: 57
Views: 3360

Re: Seeking ways to showcase fast second processors

Can we submit a fix request or do you think it's a bit late now? :lol:
by elkrepair
Thu May 07, 2020 5:40 pm
Forum: 8-bit acorn software: other
Topic: Seeking ways to showcase fast second processors
Replies: 57
Views: 3360

Re: Seeking ways to showcase fast second processors

Thanks again. On my BBC B, the last version I posted takes 7m 33s. Disabling the solutions output (but keeping the progress indicator) it takes 7m 13s. Disabling all output it takes 6m 59s. The output is taking about 7.5% of the time. I'll look into maximizing performance. Pi4 rejected G%() ? Intere...
by elkrepair
Thu May 07, 2020 3:24 pm
Forum: 8-bit acorn software: other
Topic: Seeking ways to showcase fast second processors
Replies: 57
Views: 3360

Re: Seeking ways to showcase fast second processors

I think there's a little room for further improvement. https://bbc.godbolt.org/?embedBasic=10%20REM%20EIGHT%20QUEENS%20PUZZLE%0A20%0A30%20MODE1%3A%20REM%20SORRY%20ELK%20OWNERS%0A40%0A50%20DIM%20G%25%288%29%0A60%20S%25%3D0%0A70%20PX%25%3D0%3APY%25%3D0%0A80%0A90%20PROCCHOOSE_QUEEN%0A100%20PROCCHOOSE_B...
by elkrepair
Wed May 06, 2020 10:53 pm
Forum: 8-bit acorn software: other
Topic: Seeking ways to showcase fast second processors
Replies: 57
Views: 3360

Re: Seeking ways to showcase fast second processors

It's good to know that 3 decades in IT didn't go to waste: 10 REM Eight Queens Puzzle 20 30 MODE1: REM Sorry Elk owners 40 50 DIM G%(8) 60 S%=0 70 PX%=0:PY%=0 80 90 VDU23,1,0;0;0;0; 100 VDU23,224,24,60,24,24,24,60,60,126: REM elkrepair 110 VDU23,225,0,36,129,60,126,126,60,126: REM elkrepair 120 VDU2...
by elkrepair
Wed May 06, 2020 6:01 pm
Forum: 8-bit acorn software: other
Topic: Seeking ways to showcase fast second processors
Replies: 57
Views: 3360

Re: Seeking ways to showcase fast second processors

Thanks sydney! That's quite good.

My efforts weren't great:

Code: Select all

VDU23,224,24,60,24,24,24,60,60,126
VDU23,225,0,36,129,60,126,126,60,126
I've added the UDG and colour, and Iooking at the code after at least 25 years I think I can speed it up a little. I'll post an update later.
by elkrepair
Tue May 05, 2020 8:12 pm
Forum: 8-bit acorn software: other
Topic: Seeking ways to showcase fast second processors
Replies: 57
Views: 3360

Re: Seeking ways to showcase fast second processors

My Beeb does it in 9mins 42secs. My electricity must be faster than yours!
by elkrepair
Tue May 05, 2020 8:08 pm
Forum: 8-bit acorn software: other
Topic: Seeking ways to showcase fast second processors
Replies: 57
Views: 3360

Re: Seeking ways to showcase fast second processors

Thanks. I think there are only 12 distinct solutions. All the other solutions are reflections or rotations of the 12. The search level is the row number currently being searched, so a solution will only be found whilst on level 8 (hence the pop-up asterisk). I can re-write the code to be more readab...
by elkrepair
Tue May 05, 2020 7:25 pm
Forum: 8-bit acorn software: other
Topic: Seeking ways to showcase fast second processors
Replies: 57
Views: 3360

Re: Seeking ways to showcase fast second processors

Hi. How about the Eight Queens Puzzle: https://en.wikipedia.org/wiki/Eight_queens_puzzle I produced this code many many moons ago, so appologies if it's a bit rubbish. It takes just under 10 minutes to run on my BBC B, although it does produce output as it runs. It uses recursion. 10 REM Eight Queen...
by elkrepair
Sat May 02, 2020 1:35 pm
Forum: 8-bit acorn hardware
Topic: Disc Drive interface protocol
Replies: 1
Views: 212

Disc Drive interface protocol

Hi.

I've been looking for a document describing the Disc Drive interface protocol but can't find one. Does anyone know of where I can obtain one?

I'm interested in exactly what goes in and out of the Disc Drive port.

Many thanks.
by elkrepair
Sat May 02, 2020 1:17 pm
Forum: archive submissions
Topic: Step by Step Programming Series
Replies: 13
Views: 972

Re: Step by Step Programming Series

What does one use to open a dsd file?
by elkrepair
Mon Apr 20, 2020 11:33 pm
Forum: 8-bit acorn hardware
Topic: A cool BEEB
Replies: 18
Views: 1535

Re: A cool BEEB

The Beeb hadn't been on for 24 hrs, so before switchng on I measured the internal temperature and it was 19C. Room temp was 19C, rising to 20C. After 2 hours of mindless circle drawing and endlessly spinning a Cobra MkIII, the internal temp was 38C, the PSU 45C, the 6502 & Video Processor 55C. I gue...
by elkrepair
Mon Apr 20, 2020 8:05 pm
Forum: 8-bit acorn hardware
Topic: A cool BEEB
Replies: 18
Views: 1535

A cool BEEB

Hi. I have a Beeb B with replaced caps in the PSU. I'm a little surprised how hot the PSU and other components can get, so I was invesigating how to cool things down a little without significantly compromising the look & feel (internal and external). I figured I could put some small Raspberry Pi sty...
by elkrepair
Tue Apr 14, 2020 8:03 pm
Forum: 8-bit acorn software: other
Topic: Drawing a circle in BBC BASIC
Replies: 71
Views: 8101

Re: Drawing a circle in BBC BASIC

Thanks! I never knew about the OPT being on the same line as the [ but now I do. Everyday is a learning day. The code isn't quite fully XOR compatible - the first and last points can cause parts to go missing when XORing. However, the modified BASIC code below does support XOR: 10 REM BRESENHAM CIRC...
by elkrepair
Sun Apr 12, 2020 5:14 pm
Forum: 8-bit acorn software: other
Topic: Drawing a circle in BBC BASIC
Replies: 71
Views: 8101

Re: Drawing a circle in BBC BASIC

Well, despite not writing any 6502 assembly for 35 years, I've managed to do it. I've deliberately kept it simple - introducing efficiencies could reduce the execution time a little. 10MODE4 20 30RL=&70:RH=&71: REM Radius 40XL=&72:XH=&73: REM Pixel X coord 50YL=&74:YH=&75: REM Pixel Y coord 60DL=&76...
by elkrepair
Wed Apr 01, 2020 6:39 pm
Forum: 8-bit acorn software: other
Topic: ROMs on Turbo MMC
Replies: 12
Views: 862

Re: ROMs on Turbo MMC

From "RLOAD is small program which can be used to load sideways ROM images into any chosen socket" i inferred that TuroMMC would manage a kind of 'virtual ROM' or something. I now realise that the chosen socket needs to contain Sideways RAM. Time to get the wallet out again! Which ROM is the best to...
by elkrepair
Tue Mar 31, 2020 8:36 pm
Forum: 8-bit acorn software: other
Topic: ROMs on Turbo MMC
Replies: 12
Views: 862

Re: ROMs on Turbo MMC

Ah. Sideways RAM. Yeah, I can see how that might help.

I assumed the loaded ROM was 'managed' by TurboMMC somehow.
by elkrepair
Tue Mar 31, 2020 8:09 pm
Forum: 8-bit acorn software: other
Topic: ROMs on Turbo MMC
Replies: 12
Views: 862

Re: ROMs on Turbo MMC

No, no sideways RAM.

Slots 11 to 15 are used by OS, 1770 DFS, TurboSPI, Basic, Graphics ROM.

If I do:
*DIN305
*RLOAD ADT200 A
*ROMS

Then ROM 10 will show either BASIC or DFS 0.A3

Weird.
by elkrepair
Mon Mar 30, 2020 9:20 pm
Forum: 8-bit acorn software: other
Topic: ROMs on Turbo MMC
Replies: 12
Views: 862

Re: ROMs on Turbo MMC

Hmmmm.

I've used *RLOAD to load ADT but it just loads DFS 0.A3 into the ROM slot. I tried DDOC as well and the same happens.

I was looking for a tool to try recover files from a disc.

Please excuse my ignorance, but what am I doing wrong?

Go to advanced search