summaryrefslogtreecommitdiff
path: root/plugins/govm/samples
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-11-18 22:56:59 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-11-18 22:56:59 (GMT)
commit26d75963fba34d8e5a5b9a6186604110552f3a38 (patch)
tree96c227003d0a1c8f71d2378d8e4477b963909708 /plugins/govm/samples
parent51e5dac69a78930fb05ccd8d9cfe59b9cd51c03a (diff)
Provided a small assembler for the GoVM architecture.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@136 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/govm/samples')
-rw-r--r--plugins/govm/samples/test.asm26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/govm/samples/test.asm b/plugins/govm/samples/test.asm
new file mode 100644
index 0000000..b62e9f8
--- /dev/null
+++ b/plugins/govm/samples/test.asm
@@ -0,0 +1,26 @@
+
+ ; Should be skipped
+ jmp end
+
+start:
+ ; Let's start !
+
+ nop
+ nop
+ nop ; Zzz
+
+ li 0x1234
+
+ li 0x01
+ li 0x002
+ add
+
+ pop b
+
+end:
+
+ li 0x0
+ syscall ; halt
+
+ nop
+