Skip to content

Instantly share code, notes, and snippets.

@tanishiking
Created August 17, 2016 16:30
Show Gist options
  • Save tanishiking/2fef672c3a0a73cb2eba48981f9c8149 to your computer and use it in GitHub Desktop.
Save tanishiking/2fef672c3a0a73cb2eba48981f9c8149 to your computer and use it in GitHub Desktop.
.code16
.globl _start
_start:
.byte 0xeb, 0x4e, 0x90
.ascii "HELLOIPL"
.word 512
.byte 1
.word 1
.byte 2
.word 224
.word 2880
.byte 0xf0
.word 9
.word 18
.word 2
.int 0
.int 2880
.byte 0, 0, 0x29
.int 0xffffffff
.ascii "HELLO-OS "
.ascii "FAT12 "
.skip 18, 0x00
.byte 0xb8, 0x00, 0x00, 0x8e, 0xd0, 0xbc, 0x00, 0x7c
.byte 0x8e, 0xd8, 0x8e, 0xc0, 0xbe, 0x74, 0x7c, 0x8a
.byte 0x04, 0x83, 0xc6, 0x01, 0x3c, 0x00, 0x74, 0x09
.byte 0xb4, 0x0e, 0xbb, 0x0f, 0x00, 0xcd, 0x10, 0xeb
.byte 0xee, 0xf4, 0xeb, 0xfd
.byte 0x0a, 0x0a
.ascii "hello, world"
.byte 0x0a
.byte 0
.org 0x1fe, 0x00
.byte 0x55, 0xaa
.byte 0xf0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00
.skip 4600, 0x00
.byte 0xf0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00
.skip 1469432, 0x00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment