* remove "\r" nonsense
[mascara-docs.git] / amd64 / bareMetalOS-0.5.3 / programs / hello.asm
blobd2d34e86875b178ca1fd3b28c29f7555266489fe
1 ; Hello World Assembly Test Program (v1.0, July 6 2010)
2 ; Written by Ian Seyler
4 ; BareMetal compile:
5 ; nasm hello.asm -o hello.app
8 [BITS 64]
9 [ORG 0x0000000000200000]
11 %INCLUDE "bmdev.asm"
13 start: ; Start of program label
15 mov rsi, hello_message ; Load RSI with memory address of string
16 call b_print_string ; Print the string that RSI points to
18 ret ; Return to OS
20 hello_message: db 'Hello, world!', 13, 0