Skip to content

Instantly share code, notes, and snippets.

@PixDevTeam
Created October 15, 2014 00:03
Show Gist options
  • Save PixDevTeam/f1ac069955f27d3977c2 to your computer and use it in GitHub Desktop.
Save PixDevTeam/f1ac069955f27d3977c2 to your computer and use it in GitHub Desktop.
org 0x7c00 ; We are loaded by BIOS at 0x7C00
bits 16
mov si, msg2
call Print
mov si, msg3
call Print
call get_cmd
NewLine:
pusha
mov ah, 0Eh ; BIOS output char code
mov al, 13
int 10h
mov al, 10
int 10h
popa
ret
StartOS:
cli ; Clear all Interrupts
hlt ; halt the system
Print:
lodsb
or al, al
jz PrintDone
mov ah, 0eh
int 10h
jmp Print
PrintDone:
ret
msg db ">", 0x0D, 0x00
msg3 db "", 0x0A, 0x00
msg2 db "PixOS", 0x0D, 0x00
%INCLUDE "cmd.asm"
times 510-($-$$) db 0 ; We have to be 512 bytes
dw 0xAA55 ; Boot Signiture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment