eightc

package module
v0.0.0-...-0eaf371 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2015 License: MIT Imports: 6 Imported by: 0

README

eightc

Compiles a C like language into instructions for the 8005 microprocessor. For the UNSW HS1917 Computing course.

Install

Install Go, setup your $GOPATH and run go get github.com/1lann/eightc/eightc

Usage

eightc [file name]

How to use

See test-programs/ for examples.

A list of internal functions:

  • :printChar prints r0 as an ASCII character
  • :printInt prints r0 as an integer
  • :swap swaps r0 and r1
  • :ring rings the bell

Notices

  • Note that a lot of functions can only be performed on r0, not r1.
  • r0 is used a lot internally and will most likely not persist through loops, function calls, and exiting if statements. Use r1 instead which is not used internally by the compiler when compiling.

License

eightc is licensed under the MIT license, see LICENSE.txt

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(filename string, reader *bufio.Reader) ([256]int, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL