Skip to content

ManuDIY/ttlcpu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ttlcpu

Toolchain for the 8-bit TTL CPU:

http://digitarworld.uw.hu/ttlcpu.html
https://hackaday.io/project/11703-8-bit-ttl-cpu

Toolchain elements:

  • mcc - A compiler that implements a subset the 'C' programming language (see example.c).
  • am - A basic assembler implemented in gnu-gcc preprocessor macros.
  • burner - AtMega8 firmware for loading bytecode into the program memory of the ttl-cpu.

The ttl-cpu program can be built and transferred to ttl-cpu by running the './b' script ( syntax: ./b <source_file.c> )

The './b' shell script:

  • Builds the 'mcc' compiler for 'ttl-cpu' architecture.
  • Copies '/compiler/header.s' to am/program.s.
  • Invokes 'mcc' to compile the specified source file, and extends am/program.s with the output assembly program.
  • Extends am/program.s with '/compiler/footer.s'.
  • Runs 'am', which assemles 'am/program.s' and generates the ttl-cpu bytecode.
  • Builds 'burner', which includes the ttl-cpu bytecode.
  • Invokes AvrDude to transfer 'burner' to the Atmega8 burner board, which finally transfers the bytecode to the ttl-cpu.

Releases

No releases published

Packages

No packages published

Languages

  • C 54.3%
  • Assembly 39.5%
  • Makefile 3.7%
  • Shell 2.5%