Skip to content

Pavel-N/assembly_truth_machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Truth machine written in NASM

This repo contains my own implementation of truth machine writen in NASM.

Whats a Truth Machine?

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

How Does It Work?

  • Ask user for input.
  • If input is zero:
    • Output 0
    • Exit program
  • If input is one:
    • Output 1 infinitely

How to Run It?

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.