diff options
Diffstat (limited to 'Examples')
| -rw-r--r-- | Examples/HelloWorld.asm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Examples/HelloWorld.asm b/Examples/HelloWorld.asm new file mode 100644 index 0000000..ccfccc3 --- /dev/null +++ b/Examples/HelloWorld.asm @@ -0,0 +1,18 @@ +#bits 64 +#org 1000 + +; Start sequence of program. + +export .data GDT + .number 55 + .number 100 + +export .text __start + mov rcx, 47 ; exit program + mov rdx, 0x0 ; exit code 0 + int 50 + int 50 + int 50 + int 50 + int 50 + ret |
