mirror of
https://github.com/Ed94/bare_x86.git
synced 2024-09-20 05:07:34 -07:00
37 lines
1.1 KiB
ArmAsm
37 lines
1.1 KiB
ArmAsm
; x86
|
|
; 16-bit - Real Mode, V86 Mode
|
|
|
|
%include "AAL.x86.S"
|
|
%include "AAL.x86.routines.macros.S"
|
|
|
|
|
|
;=============================================================================================================
|
|
; Entrypoint
|
|
;=============================================================================================================
|
|
start:
|
|
Video_SetTextMode_80x25
|
|
; Video_SetGraphicsMode_320x200
|
|
; Video_SetGraphicsMode_640x200
|
|
|
|
String_Out EntryMsg, [EntryMsg_len]
|
|
|
|
hang:
|
|
jmp short hang
|
|
|
|
|
|
;=============================================================================================================
|
|
; Data
|
|
;=============================================================================================================
|
|
EntryMsg : db 'Hello World!', char_LF, char_CR
|
|
EntryMsg_len : dw 14
|
|
|
|
|
|
%include "AAL.x86.routines.s"
|
|
|
|
|
|
;=============================================================================================================
|
|
; Wrap up
|
|
;=============================================================================================================
|
|
; Byte pad 512 bytes (zeroed)
|
|
times 512-$+start db 0
|