Skip to content

super-hyper-cool assembler for our 1st architecture

License

Notifications You must be signed in to change notification settings

forestaa/suiteki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

how to build & examples

$ git clone http://github.com/rikatze/suiteki.git

$ cd suiteki

# Install dependencies
$ cabal install

# Build the assembler
$ cabal build

$ ./dist/build/suiteki/suiteki -h
suiteki - The super-cool assembler for out 1st architecture

Usage: suiteki INPUT [-o|--output ARG] [-l|--lib LIBRARY] [-d|--debug]
               [--no-externals]
  Assemble the given file

Available options:
  -h,--help                Show this help text
  INPUT                    Input file for suiteki
  -o,--output ARG          The location of the output file
  -l,--lib LIBRARY         The location of libmincaml.S
  -d,--debug               Enable debug mode
  --no-externals           Do not use library (for debugging)


$ ./dist/build/suiteki/suiteki ./test/print.s

# assuming that you've cloned the simulator (https://github.com/forestaa/cpu_simulator) at '..'
$ ../cpu_simulator/sim_machine ./a.out
(...)
f30  0.000000  0x00000000
f31  0.000000  0x00000000
123

# assemble without library (for debugging)
$ ./dist/build/suiteki/suiteki --no-externals ./test/print-nolib.s

$ ../cpu_simulator/sim_machine ./a.out
(...)
f30  0.000000  0x00000000
f31  0.000000  0x00000000
123


$ ./dist/build/suiteki/suiteki ./test/fib.s

$ ../cpu_simulator/sim_machine ./a.out
(...)
f30  0.000000  0x00000000
f31  0.000000  0x00000000
832040

# Show output
$ xxd -b -c 4 a.out  # or whatever you want

About

super-hyper-cool assembler for our 1st architecture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published