diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-01 00:01:13 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-01 00:04:11 -0700 |
commit | 863a42d3607f6e5bf48d33b5e7993ba183e79898 (patch) | |
tree | 502949d4122461cb775d722cf722a7f17ea65aa4 /subx/ex1.2.subx | |
parent | fc5b5e3704c43f55ac19646e51d78d1b8141850b (diff) | |
download | mu-863a42d3607f6e5bf48d33b5e7993ba183e79898.tar.gz |
4303 - subx: first real transform
We'll see if this is useful. Mostly just stretching our legs.
Diffstat (limited to 'subx/ex1.2.subx')
-rw-r--r-- | subx/ex1.2.subx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/subx/ex1.2.subx b/subx/ex1.2.subx new file mode 100644 index 00000000..c12c1902 --- /dev/null +++ b/subx/ex1.2.subx @@ -0,0 +1,14 @@ +## first program: same as https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html +# +# To run: +# $ subx translate ex1.2.subx ex1 +# $ subx run ex1 + +# opcode ModR/M SIB displacement immediate +# instruction mod, reg, Reg/Mem bits scale, index, base +# 1-3 bytes 0/1 byte 0/1 byte 0/1/2/4 bytes 0/1/2/4 bytes + bb 42/imm32 + 05 1/imm32 + cd 128/imm8 + +# vim:ft=subx |