From 2fd6aadc62eb5675074a11f0f2801060af40cf74 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 10 Nov 2019 11:03:13 +0000 Subject: [PATCH] Update readme and add example --- README.md | 20 ++++++++++++++++-- examples/jmp_to_address_in_acc.mima | Bin 0 -> 918 bytes examples/jmp_to_address_in_acc.mimasm | 28 ++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 examples/jmp_to_address_in_acc.mima create mode 100644 examples/jmp_to_address_in_acc.mimasm diff --git a/README.md b/README.md index e57317c..49b6993 100644 --- a/README.md +++ b/README.md @@ -142,8 +142,6 @@ always be at least 15 bytes long (contains all register values). This program can load and run `.mima` files. -It currently does not follow the specification above. - ``` $ mima-run --help Usage: mima-run INFILE [-n|--steps N] [-d|--dump OUTFILE] [-q|--quiet] @@ -163,6 +161,24 @@ Available options: further actions ``` +### `mima-asm` + +This program can parse `.mimasm` files and convert them to `.mima` +files. More information and a specification of the `.mimasm` format +may be coming soon. For example programs, look in the `examples/` +folder. + +``` +$ mima-asm --help +Usage: mima-asm INFILE [-o|--out OUTFILE] + +Available options: + -h,--help Show this help text + INFILE The .mimasm file to assemble + -o,--out OUTFILE The .mima file to write the assembled result + to (default: "out.mima") +``` + ## Conventions In the source code, the name MiMa is spelled `Mima`. When displayed, diff --git a/examples/jmp_to_address_in_acc.mima b/examples/jmp_to_address_in_acc.mima new file mode 100644 index 0000000000000000000000000000000000000000..8af00f362a8b96cd8d7c0220408bbf7f70d40ee2 GIT binary patch literal 918 zcmZQzNMS$%4M^-!CZP~G@s)w$Ga*Hz@}Ll4)Cpi