Meet the world's worse mouse design ever. The Atari ST mouse. Amiga owners liked their tank mice, we ST owners didn't like ours. It was square, uncomfortable and prone to breaking quite easily.
Grab a drink, get comfy and watch as I figure out how to write an incredibly simple program from scratch, using Z80 assembler.
I have no idea what I'm doing, but we get there in the end.
Get the code and read more on my website https://ncot.uk/z80-homebrew-computer/the-joy-of-sticks-rc2014-z80-joystick/
Building and testing the RC2014 Joystick Interface. This was a reasonably simple build, but I did have to slightly modify the board to make it work with my joystick. Also I was accidentally sent some wrong components, so now it's just a one joystick interface. The incorrect components sent to me have given me an idea for a future build though!
Video Timings
============
0:00 Intro
0:51 Building joystick interface
4:39 Missing components
7:37 Finished board
7:50 How a retro joystick works
15:09 Interface and joystick wiring diagrams
17:55 Testing interface using RC2014 monitor
18:34 Circuit theory of operation
22:35 Joystick tester Z80 assembler
23:20 Compiling with SJAsmPlus
26:00 Final working code and interface
26:51 Outro
In the 1980s the UK government had this horrible realisation we knew nothing about computers, and that they were slowly taking over our lives.
I have a look at what the BBC Micro is, what the BBC's Computer Literacy Project was and then do some programming.
Video Timings:
0:00 - Intro
1:54 - Z80 vs 6502
3:52 - The Computer Literacy Project
4:48 - BBC Micro Hardware
7:28 - The display
9:38 - BBC Basic
13:00 - 6502 Assembly Language
16:40 - Next Video
...
https://www.youtube.com/watch?v=wF70y7RwA_c
Just how did 8 bit computers like the ZX Spectrum or BBC Micro manage to cram an entire programming language into their tiny systems, and still have space for the user's programs?
Let's compare two systems of the time - the low end ZX Spectrum that tried to cram as much computer as possible into as little as possible, and the more luxurious BBC Micro that included a complete assembly programming environment.
In the 1980s software for home computers was either written in BASIC or written in assembly language. Unlike today where we can load an IDE, write our code on multiple monitors and then run and debug our compiled code with ease, the computers of the 1980s were stuck with running BASIC. That's all there was, BASIC. Beginner's All Purpose Symbolic Instruction Language. It's all these early machines ran.
And they ran it slowly. BASIC is an interpreted language, translating each line of BASIC into machine code as it is run. This is completely different to compiled languages which do the translation all in one go. However on an 8 bit machine with only 64K of address space, this was all they could manage for the most part. If programmers wanted more out of the machine they needed to write in assembly language.
The problem with writing assembly language is that it needs compiling all in one go, which means the compiled code needs storing somewhere. And on a machine with only 64K of address space, with up to 32K of that being consumed by the system ROMs, there's nowhere to put the compiled code. Even worse, most of these machines initially used tape to store data. Early assembly programmers were reduced to hand assembling code on paper before then writing a short BASIC loader program to manually insert the machine code into RAM.
To help reduce the memory requirement of the machine's ROM code, Sinclair used a curious and unique method of keyword entry in their version of BASIC. Instead of typing out characters as normal, each key on the keyboard was assigned multiple different words. When in keyword entry mode, pressing a letter would automatically type out an entire BASIC keyword. This wasn't a time saving feature, it was a memory saving feature. Each BASIC keyword on the Spectrum takes up one byte because each keyword is assigned a character code from the Spectrum's character set, exactly the same way regular letters and numbers are.
This means that the machine only has to store codes that represent key words, effectively parsing and tokenising the BASIC instructions as they are being typed in by the user. The user literally cannot type in BASIC that won't parse unless they get hideously confused by the keyboard layout and its numerous shift key states. It was not a pleasant way to write code.
By contrast the BBC Micro had a powerful BASIC interpreter, ran its own operating system and even had a built in assembler running in the BASIC interpreter. You could mix BASIC and assembly code together and the machine would just compile the assembler and run it amongst the BASIC. The BBC also implemented "sideways ROMs" using a form of bank switching so more programs could be accessed without needing to load off tape or disk. This gave the BBC Micro much more functionality compared to the cheaper and simpler Spectrum.
It's quite interesting seeing the different tradeoffs and design choices two hardware manufacturers came up with. On one hand Sinclair were trying to make a cheap computer, and on the other hand Acorn were building a computer worthy of being used in schools across the country.
Blog Post: https://ncot.uk/sinclair-basic-vs-bbc-basic-how-to-fit-an-entire-devkit-inside-64k/
Support
-------
Support me by simply clicking the "like" button or pressing "subscribe"! That's it. No hard sell, just let me know you saw this video and thought it worth watching for more than 30 seconds. These videos take time and effort to make, and if people watch them they'll keep coming out.
If you think my efforts are worth a bit of pocket change, feel free to go to my Ko-fi link
https://ko-fi.com/ncot_tech
Video by Bedrijfsfilmspecialist.nl: https://www.pexels.com/video/a-computer-monitor-flashing-digital-information-2887463/
Video by Mikhail Nilov: https://www.pexels.com/video/hacker-entering-codes-into-the-computer-6963744/
Machine icons created by Eucalyp - Flaticon: https://www.flaticon.com/free-icons/machine
Code icons created by Secret Studio - Flaticon : https://www.flaticon.com/free-icons/code
Binary code icons created by Freepik - Flaticon : https://www.flaticon.com/free-icons/binary-code
Cpu icons created by Freepik - Flaticon : https://www.flaticon.com/free-icons/cpu
...
https://www.youtube.com/watch?v=5dig4Y2KfQg
So just how bad is a nearly 30 year old power supply? Let's find out! In this video I go through replacing some aged components with newer modern versions, then I check the PSU works properly using some load resistors.
This isn't an instructional video, if you try this yourself be careful and don't touch anything while the PSU is plugged in. It's connected to the mains, and we all know touching live wiring is bad.
Title: Fixing a tired Atari ST Power Supply - My childhood Atari 520STFM
...
https://www.youtube.com/watch?v=X34RVLs5evc