HOME About NCOT Documentation Social Media Mastodon Support Me

Drink tea and make things

Blog Electronics Labs ZX Spectrum Next Computer Science Z80 Homebrew Computer Arduino and Microcontrollers
Reading Mice and Joysticks on the Spectrum Next using C

Reading Mice and Joysticks on the Spectrum Next using C

Posted:

Today’s lesson in curing headaches by banging your head on the wall until they stop involves joysticks and mice. This is a bit technical, so ensure your seat back and tray table are in the upright and locked position.

Read More…
Hardware Sprites on the ZX Spectrum Next in C

Hardware Sprites on the ZX Spectrum Next in C

Posted:

Learning to program is an endurance game full of random side quests, dead ends and frustration. Rather than learning “how to do X”, which is specific, it’s much more useful learning “how to figure out how to do anything at all”.

Read More…
Writing C Code on a Spectrum Next

Writing C Code on a Spectrum Next

Posted:

What better way to wait out the apocalypse than trying to learn a new system. Read how I dug out my ZX Spectrum Next and set about writing C code on it…

Read More…
How to Write Emulator - Fetch Decode Execute Cycle

How to Write Emulator - Fetch Decode Execute Cycle

Posted:

How a Redcode “CPU” works The CPU is a machine, it follows a basic mechanism to the beat of an external clock. In the case of a Redcode simulator, every tick of the clock causes the CPU to go through what is called the Fetch-Decode-Execute (FDE) cycle.

Read More…
How to Write Emulator - Automating Tedious Programming with Excel

How to Write Emulator - Automating Tedious Programming with Excel

Posted:

Sometimes you have to type out almost identical lines of code, and it’s either time consuming or error prone. Here’s how to avoid it all by using some clever Excel techniques.

Read More…
How to Write Emulator - Opcodes Jumptables

How to Write Emulator - Opcodes Jumptables

Posted:

How to efficiently store and execute many small functions, without using a single if statement or switch construct. Opcodes Redcode contains 17 opcodes which perform standard operations such as copying data, maths and conditional jumps.

Read More…
How to Write Emulator - Intro

How to Write Emulator - Intro

Posted:

To begin, this isn’t technically an emulator, the system I’m trying to model isn’t real. This is more of a simulator, but that’s less of a catchy search word on the Internet.

Read More…
Easier Game Controller Input in SDL with SDL_GameController

Easier Game Controller Input in SDL with SDL_GameController

Posted:

Game controllers on computers are somewhat irritating to manage compared to a console. Has the user plugged in an XBox controller? A PS4 controller, or have they obtained some random USB controller they found on eBay?

Read More…
Maths for Programmers 1 Rearranging Equations

Maths for Programmers 1 Rearranging Equations

Posted:

Straight forward instructions on how to rearrange algebraic equations, all wrapped up in a nice free PDF to download. Don’t fear maths or algebra again!

Read More…
Text printing using bitmap characters in C++ and SDL

Text printing using bitmap characters in C++ and SDL

Posted:

Back in the mists of history, sometime around the 90s it was quite common for games and demos to display text on the screen. Since we’re talking about old computers with barely any usable RAM, the text was stored as images.

Read More…