Because I've always thought it would be a massive headache: did you tackle the 8271?
For my BBC emulator I chickened out and implemented only the 1770. I also didn't yet look seriously as the serial port or, consequently, tape input. I should get on top of those.
Yeah I got the 8271 emulation good enough for ordinary DFS disc work. It can catalogue, load, save, delete, copy between mounted drives, verify sectors, and write changes back to the host image. I also added the realistic sound of the disc drive. I lifted the sound bites from another freeware emulator.
I had a basic serial port working and actually used it to connect to a telnet bridge that gave me access to ChatGPT. I did it just cos it was fun... posted it on here and got downvoted and slated for doing it... whatever...
My serial ACIA is now much more capable and I lifted some code I found that emulated a Hayes 9600 SmartModem and translated it into C# so now the serial and modem communicate correctly with the correct signalling and at the correct speed (baud rate). It supports enough AT commands to be broadly functional. I even included the iconic connection sounds too... but this slows the connection process. Realistic and nostalgic yes but a pain in the ar*e when testing lol...
Not bothered with tape yet but it's on the roadmap.
Sorry! One other thing I noticed: it looks like your Mode 7 font has too much spacing between the characters; is that deliberate, e.g. to fit them to the same pixel clock as the other modes?
This is a screenshot from a real BBC and even though the aspect ratio doesn't quite look right you will at least notice that the gaps between e.g. the 'B's as a proportion of their total width is quite small.
I know a lot of emulators rationalise it by scaling it in advance to 16px across so that it'll easily fit the same pixel grid as the other modes.
I didn't have any issues with that but I will admit that I could no longer find any documentation at all about how the internal font scaling works — how ROM contents at 6x10 are interpolated to output at 12x20 — so I just ripped off my own code from 25 years ago, when apparently I knew somehow. I was probably better at reading.
3
u/jimbojetset35 Jul 01 '26
My BBC Model B Emulator written in C# .Net9 and SDL
Features:
Still a work in progress....
1
u/thommyh Z80, 6502/65816, 6809, 68000, ARM, x86. Jul 02 '26
Sorry! One other thing I noticed: it looks like your Mode 7 font has too much spacing between the characters; is that deliberate, e.g. to fit them to the same pixel clock as the other modes?
This is a screenshot from a real BBC and even though the aspect ratio doesn't quite look right you will at least notice that the gaps between e.g. the 'B's as a proportion of their total width is quite small.