Skip to content

Instantly share code, notes, and snippets.

@macmade
Created November 26, 2010 20:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macmade/717165 to your computer and use it in GitHub Desktop.
Save macmade/717165 to your computer and use it in GitHub Desktop.
The whole universe, coded with 236 characters of assembly code...
BITS 16
before_big_bang:
cli
mov ax, 0x07C0
mov ds, ax
mov es, ax
xor ax, ax
mov ss, ax
mov sp, 0xFFFF
sti
push WORD 0x0050
push WORD 0x0000
retf
after_big_bang:
xor cx, cx
mov cx, 00010101b
add cx, 1
nop
loop after_big_bang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment