Skip to content

Instantly share code, notes, and snippets.

View bromaster912791's full-sized avatar

bromaster912791

  • Joined Mar 4, 2025
View GitHub Profile
@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
@bromaster912791
bromaster912791 / happy os kernel
Created March 4, 2025 15:18
my own os in asm
[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