diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-09-30 20:59:21 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-09-30 20:59:21 -0700 |
commit | b515f3b70417c502991e3c6443badf32cded6a20 (patch) | |
tree | 603d4e51c29a6db6ec37f46fd073f55aff3b01d4 /subx | |
parent | 16db2a2fde06be9641cc90a57029aaadb754edc3 (diff) | |
download | mu-b515f3b70417c502991e3c6443badf32cded6a20.tar.gz |
4622
When I started SubX I imagined that being able to write machine code directly was a feature. Now it's just a hole I haven't bothered closing yet.
Diffstat (limited to 'subx')
-rw-r--r-- | subx/examples/ex1.1.subx | 20 | ||||
-rw-r--r-- | subx/examples/ex1.subx (renamed from subx/examples/ex1.2.subx) | 0 |
2 files changed, 0 insertions, 20 deletions
diff --git a/subx/examples/ex1.1.subx b/subx/examples/ex1.1.subx deleted file mode 100644 index 56b54a10..00000000 --- a/subx/examples/ex1.1.subx +++ /dev/null @@ -1,20 +0,0 @@ -## first program: same as https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html -# Just return 42. -# -# To run: -# $ subx translate ex1.1.subx ex1 -# $ subx run ex1 -# Expected result: -# $ echo $? -# 42 - -== code -# 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 2a 00 00 00 # copy 0x2a (42) to EBX - # exit(EBX) - b8 01 00 00 00 # copy 1 to EAX - cd 80 # int 80h - -# vim:ft=subx diff --git a/subx/examples/ex1.2.subx b/subx/examples/ex1.subx index a355ef6b..a355ef6b 100644 --- a/subx/examples/ex1.2.subx +++ b/subx/examples/ex1.subx |