This file contains hidden or 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
| #include "E.H" | |
| #include "E_DOS.H" | |
| #include "AUDIO/SB16.H" | |
| #include "AUDIO/INTR.H" | |
| #include <dos.h> | |
| #include <conio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| // Crap needed for SoundBlaster 16 setup |
This file contains hidden or 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 wave | |
| import struct | |
| # Load audio bytes from ROM | |
| rom_bytes = bytearray() | |
| with open("Alien vs Predator (1994).jag", "rb") as rom_file: | |
| rom_file.seek(1488614, 0) | |
| rom_bytes += bytearray(rom_file.read(1596322)) | |
This file contains hidden or 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 std.mem; | |
| import std.core; | |
| import std.io; | |
| #include <type/magic.pat> | |
| struct Cmd_SectionLoad { | |
| const str NAME = "Section Load"; | |
| type::Magic<"\x01YSX"> opcode; | |
| u32 addr; |