This commit is contained in:
Peter Frost 2020-03-01 14:12:51 +00:00
parent 04e441d300
commit a3005c5846

View file

@ -20,11 +20,11 @@ _start:
; Argument 2 (rdx): a pointer to the EFI_SYSTEM_TABLE
mov rcx, [rdx + EFI_SYSTEM_TABLE.ConOut] ; ConOut is a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL for the default console
mov rdx, strHello ; moves the address of our string into rdx
mov rdx, strHelloWorld ; moves the address of our string into rdx
call [rcx + EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.OutputString] ; call the OutputString function with our arguments: rcx and rdx
jmp $ ; loop forever
section .data ; contains the program data
strHello db __utf16__ `Hello World\0`
strHelloWorld db __utf16__ `Hello World\0`