Skip to content

Instantly share code, notes, and snippets.

View drhelius's full-sized avatar
🫠
Utterly overwhelmed

Nacho Sanchez Gines drhelius

🫠
Utterly overwhelmed
View GitHub Profile
@drhelius
drhelius / Interrupt INT 48h - LCD STAT
Last active March 25, 2020 20:05
Interrupt INT 48h - LCD STAT
Interrupt INT 48h - LCD STAT
----------------------------
The STAT register (FF41) selects the conditions that will generate this
interrupt (expecting that interrupts are enabled via EI or RETI and that
IE.1 (FFFF.1) is set).
STAT.3 HBLANK (start of mode 0)
STAT.4 VBLANK (start of mode 1) (additional to INT 40)
STAT.5 OAM (start of mode 2 and mode 1)
@drhelius
drhelius / ISA.txt
Created June 24, 2022 00:24 — forked from PhirePhly/ISA.txt
Intro to the ISA bus by Mark Sokos
THE ISA AND PC/104 BUS
IBM, IBM/XT, IBM PC, and IBM PC AT are registered trademarks of
International Business Machines Corporation.
This file is designed to give a basic overview of the bus found in
most IBM clone computers, often referred to as the XT or AT bus. The
AT version of the bus is upwardly compatible, which means that cards
@drhelius
drhelius / generate_icon.sh
Created September 3, 2024 08:43
Generate macos icons
#!/bin/bash
input_filepath="image.png"
output_iconset_name="iconfile.iconset"
mkdir $output_iconset_name
sips -z 16 16 $input_filepath --out "${output_iconset_name}/icon_16x16.png"
sips -z 32 32 $input_filepath --out "${output_iconset_name}/[email protected]"
sips -z 32 32 $input_filepath --out "${output_iconset_name}/icon_32x32.png"
sips -z 64 64 $input_filepath --out "${output_iconset_name}/[email protected]"
@drhelius
drhelius / lynxboot.img
Created August 15, 2025 20:26
Atari Lynx Boot ROM disassembly
BY LX.NET (https://forums.atariage.com/topic/191953-annotated-lynx-boot-rom/)
------------------------------------------------
; Fill shift register for cartridge
FE00 38 SEC
FE01 80 0A BRA $FE0D
FE03 90 04 BCC $FE09
FE05 8E 8B FD STX $FD8B ; Set cartridge output (bit to shift into register) to X
FE08 18 CLC