Skip to content

Instantly share code, notes, and snippets.

View bromaster912791's full-sized avatar

bromaster912791

View GitHub Profile
[BITS 32]
[ORG 0x7C00] ; BIOS loads bootloader at 0x7C00
section .text
start:
cli ; Disable interrupts
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
[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
@bromaster912791
bromaster912791 / dounut.py
Created March 4, 2025 14:52
c sharp donut translated to python
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