summaryrefslogtreecommitdiff
path: root/tests/hello_world.s
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>2010-10-23 17:32:23 +0200
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:48:50 +0200
commitdddc44a59e3e393d5440a06e2b0535aeb1304f77 (patch)
treecfc2b774571f7cd6513a7e2f01a04518016e4995 /tests/hello_world.s
parent62c27c1c5cb6257b13dfc9be0394e0d2e86f2735 (diff)
downloaddev86-dddc44a59e3e393d5440a06e2b0535aeb1304f77.tar.gz
Import Dev86src-0.16.18.tar.gzv0.16.18
Diffstat (limited to 'tests/hello_world.s')
-rw-r--r--tests/hello_world.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/hello_world.s b/tests/hello_world.s
new file mode 100644
index 0000000..8932287
--- /dev/null
+++ b/tests/hello_world.s
@@ -0,0 +1,18 @@
+
+.text
+entry start
+start:
+mov ax,#4
+mov bx,#1
+mov cx,#hello
+mov dx,#endhello-hello
+int $80
+
+mov bx,#0
+mov ax,#1
+int $80
+
+.data
+hello:
+ .ascii "Hello world!\n"
+endhello: