diff options
Diffstat (limited to 'tests/hello_world.s')
-rw-r--r-- | tests/hello_world.s | 18 |
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: |