2022-01-18 05:15:28 -08:00
|
|
|
; x86
|
|
|
|
; 16-bit - Real Mode, V86 Mode
|
|
|
|
|
|
|
|
%include "AAL.x86.S"
|
|
|
|
%include "AAL.x86.routines.macros.S"
|
|
|
|
|
|
|
|
|
|
|
|
;=============================================================================================================
|
2022-01-18 18:24:06 -08:00
|
|
|
; Entrypoint
|
2022-01-18 05:15:28 -08:00
|
|
|
;=============================================================================================================
|
|
|
|
start:
|
|
|
|
Video_SetTextMode_80x25
|
2022-01-18 14:15:16 -08:00
|
|
|
; Video_SetGraphicsMode_320x200
|
|
|
|
; Video_SetGraphicsMode_640x200
|
2022-01-18 05:15:28 -08:00
|
|
|
|
2022-01-18 18:24:06 -08:00
|
|
|
String_Out EntryMsg, [EntryMsg_len]
|
2022-01-18 05:15:28 -08:00
|
|
|
|
2022-01-18 18:24:06 -08:00
|
|
|
hang:
|
2022-01-18 05:15:28 -08:00
|
|
|
jmp short hang
|
|
|
|
|
|
|
|
|
|
|
|
;=============================================================================================================
|
|
|
|
; Data
|
|
|
|
;=============================================================================================================
|
2022-01-18 18:24:06 -08:00
|
|
|
EntryMsg : db 'Hello World!', char_LF, char_CR
|
|
|
|
EntryMsg_len : dw 14
|
2022-01-18 05:15:28 -08:00
|
|
|
|
|
|
|
|
2022-01-18 18:24:06 -08:00
|
|
|
%include "AAL.x86.routines.s"
|
2022-01-18 05:15:28 -08:00
|
|
|
|
|
|
|
|
|
|
|
;=============================================================================================================
|
|
|
|
; Wrap up
|
|
|
|
;=============================================================================================================
|
|
|
|
; Byte pad 512 bytes (zeroed)
|
2022-01-18 18:24:06 -08:00
|
|
|
times 512-$+start db 0
|