bare_x86/16bit.Scratch.s
Ed94 01081ce167 Got disk loading to work.
COPY /b 16bit.boot 16bit.scratch 16bit.loader

qemu-system-x86_64 -fda 16bit.loader
2022-01-18 21:24:06 -05:00

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