u/Hell__Moodin r/programming • Recommends
On “Gespensterwald - 3D animation with ambient drone in 64 bytes of x86 code”
**Youtube:**
[video
**Code:**
DB 60 ; 1st run piano, then french horn
DB 0x9B, 25, 114 ; play note 25 with volume 114
NOP ; align executable music data
MOV AL, 13h ; set graphic mode
INT 10h ; 320x200 pixels, 256 colors
Y: MOV CL, 62 ; 62 = length of this code
PUSH SI ; save pointer to music data
MOV DX, 0x330 ; MIDI port (requires UART)
REP OUTSB ; send code as data to MIDI port
POP SI ; restore pointer to music data
P…