0.0.4 • Published 9 years ago

mikec v0.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

mikec Build Status

An Intel-flavored assembly compiler for the mike vm.

Install

$ npm install mikec -g

Example

Small program that takes two integers, adds them, then exits.

main:
    load 0x00 1 ; load two constants to memory
    load 0x04 2
    push 0x00   ; push onto stack
    push 0x04
    iadd
    pop  0x00   ; pop back to stack
    sys  0x12   ; syscall to exit
$ mikec -i program.asm -o program

Then run it with the mike virtual machine (link pending).

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago