This repo contains my own implementation of truth machine writen in NASM.
It is simple program, devised by Keymaker. Thanks to its simplicity truth machine is ussually quite easy to implement in most languages, even in esoteric ones.
Implementing it will mainly test these capabilities of a language:
- input
- output
- decision
- repetition
- termination
- Ask user for input.
- If input is zero:
- Output 0
- Exit program
- If input is one:
- Output 1 infinitely
Repo already includes an ELF 32-bit LSB executable which runs on linux. You can assemble it again using included makefile or link the compiled object file.