Skip to content

Instantly share code, notes, and snippets.

View c64cryptoboy's full-sized avatar

David Youd c64cryptoboy

View GitHub Profile
@qalle2
qalle2 / 6502-ponderables.txt
Last active March 13, 2024 09:46
EOR #$FF - 6502 Ponderables and Befuddlements
The book "EOR #$FF - 6502 Ponderables and Befuddlements" by David Youd,
rearranged by Qalle (so each explanation is right after the puzzle).
Downloaded from https://archive.org/details/eor6502
-------------------------------------------------------------------------------
EOR #$FF
6502 Ponderables and Befuddlements
David Youd
Lulu Press, Inc.
@matozoid
matozoid / sid_frequencies.csv
Last active May 5, 2025 23:42
A table of frequencies for the Commodore 64 SID chip taken from various sources. It's a CSV, so it's machine readable! :-) :-)
number name octave note in octave frequency (base 440Hz) frequency (base 435Hz) C64 manual frequency PAL frequency NTSC frequency PAL frequency 435Hz NTSC frequency 435Hz MIDI note number
0 C 0 0 16.351597831287414 16.165784219568238 268 278 268 275 265 24
1 C# 0 1 17.323914436054505 17.12705177200843 284 295 284 292 281 25
2 D 0 2 18.354047994837977 18.14547926762391 301 313 301 309 298 26
3 D# 0 3 19.445436482630058 19.224465613509263 318 331 319 327 315 27
4 E 0 4 20.601722307054366 20.367611826292386 337 351 338 347 334 28
5 F 0 5 21.826764464562746 21.578733050192717 358 372 358 367 354 29
6 F# 0 6 23.12465141947715 22.86187128971036 379 394 379 389 375 30
7 G 0 7 24.499714748859326 24.22130889944047 401 417 402 412 397 31
8 G# 0 8 25.956543598746574 25.661582876033545 425 442 426 437 421 32
@rkalz
rkalz / c64_basic_bnf.txt
Created April 12, 2018 03:20
BNF of Commodore BASIC v2.0 (PET/C64)
Taken from http://rosettacode.org/wiki/BNF_Grammar
! -----------------------------------------------------------------------
! Commodore PET BASIC
!
! Beginner's All-purpose Symbolic Instruction Code
!
! "It is practically impossible to teach good programming style to students
! that have had prior exposure to BASIC; as potential programmers they are
! mentally mutilated beyond hope of regeneration."
@cbmeeks
cbmeeks / sid.txt
Last active November 10, 2025 19:00
SID File Format
===========================
SID FILE FORMAT DESCRIPTION
===========================
AUTHORS:
Michael Schwendt (PSID v1 and v2)
Simon White (PSID v2NG, RSID)
Dag Lem (PSID v2NG)
Wilfred Bos (PSID v3, RSID v3, PSID v4, RSID v4)
@munshkr
munshkr / The C64 Digi
Last active November 13, 2024 10:17
The C64 Digi ~ C=Hacking #20
<=============
The C64 Digi
=============> Robin Harbron <macbeth@psw.ca>
Levente Harsfalvi <levente@terrasoft.hu>
Stephen Judd <sjudd@ffd2.com>
Introduction
------------
Digis -- digitally sampled audio -- are fairly common on the 64. This is
@JonnieCache
JonnieCache / spacewar.lst
Created December 11, 2012 12:11
Spacewar PDP1 Source Code
-/macro fio-dec system, june 1963
007652 640500 szm=sza sma-szf
007652 650500 spq=szm i
007652 761200 clc=cma+cla-opr
- define senseswitch A
- repeat 3, A=A+A
- szs A
- term
- define init A,B
- law B
@tomconte
tomconte / genc64clut.py
Created September 16, 2012 18:32
Generate a Color Look Up Table (CLUT) for the Commodore 64 palette, using the Python Image Library (PIL)
#!/usr/local/bin/python
import math
import Image
# C64 color palette
COLOR_BLACK = (0, 0, 0)
COLOR_WHITE = (255, 255, 255)
COLOR_RED = (104, 55, 43)