Skip to content

Instantly share code, notes, and snippets.

View BobbyRaduloff's full-sized avatar

Bobby Raduloff BobbyRaduloff

View GitHub Profile
@BobbyRaduloff
BobbyRaduloff / hello.asm
Created February 13, 2023 17:41
bare metal hello word
;; Prepare the BIOS
org 0x7c00 ;; BIOS jumps here upon boot
bits 16 ;; 16-bit mode
;; Set the video mode to 80x25 text mode
;; see (https://en.wikipedia.org/wiki/INT_10H
;; and http://www.columbia.edu/~em36/wpdos/videomodes.txt)
;; a character in this buffer is 2 bytes (ascii + color)
mov ax, 0x0002 ;; ah = 0x00 -> set video mode