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
#!/usr/bin/python3 | |
import argparse | |
# parse arguments | |
parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter, | |
description='Converts a VGM file to BASIC POKEs.') | |
parser.add_argument('input', help='the input file name') | |
args = parser.parse_args() |
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
100 O=5:N=10:GOSUB 1000 | |
110 O=5:N=10:GOSUB 1000 | |
120 O=6:N=4:GOSUB 1000 | |
130 O=6:N=4:GOSUB 1000 | |
140 O=6:N=6:GOSUB 1000 | |
150 O=6:N=6:GOSUB 1000 | |
160 O=6:N=4:GOSUB 1000 | |
170 O=6:N=4:GOSUB 1000 | |
900 END | |
1000 REM N = NOTE, O = OCTAVE |
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
// save as demo.c and compile like this: | |
// cl65 -t c64 -O -o demo.prg demo.c | |
#include <stdint.h> | |
#include <cbm.h> | |
#define BSOUT(c) \ | |
__AX__ = c; \ | |
asm("jsr BSOUT"); | |
NewerOlder