This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ORG 0x7C00] ; BIOS loads bootloader at 0x7C00 | |
[BITS 16] ; 16-bit real mode | |
section .text | |
start: | |
cli ; Disable interrupts | |
cld ; Clear direction flag | |
xor ax, ax ; Zero out registers | |
mov ds, ax | |
mov es, ax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import os | |
import sys | |
import time | |
# Constants for better viewing | |
WIDTH = 80 | |
HEIGHT = 22 | |
RENDER_DELAY = 0.05 # Slow down the rendering a bit |