Skip to content

Instantly share code, notes, and snippets.

View cbmeeks's full-sized avatar
🏠
Working from home

cbmeeks cbmeeks

🏠
Working from home
View GitHub Profile
@cbmeeks
cbmeeks / Yacht.txt
Created July 18, 2019 17:57
M68000 Cycle Counting
Yacht
(Yet Another Cycle Hunting Table)
-------------------------------------------------------------------------------
Forewords :
-------------------------------------------------------------------------------
This document is based on :
- 9th Edition of M68000 8-16-32-bit Microporcessor User's Manual
(Motorola, 1993) (laterly refered as M68000UM)
@cbmeeks
cbmeeks / helloworld.4th
Last active February 15, 2019 14:45
FORTH Hello World
: HELLO-WORLD ." Hello world!" ;
HELLO-WORLD
@cbmeeks
cbmeeks / tinybasic.asm
Created November 1, 2018 18:58
TinyBASIC
; v0.2.2
;
; Bill O'Neill - Last update: 2011/11/11
;
; Monitor code is Open License and can be used freely
; Tiny Basic code is Copyright, Tom Pitman
;
; Consist of a minimal terminal monitor and Tom
; Pitman's Tiny Basic as a high-level
; programming language
@cbmeeks
cbmeeks / c64.asm
Created August 30, 2018 12:14
Commented C64 Kernal
;************************************************************************************
;************************************************************************************
; This file was included in the Project 64 Repository after all efforts to contact
; Lee Davison, the original author, were proven unsuccessful. The inclusion is meant
; to honour his sterling work on providing us with the very best document on every
; bit of the Commodore 64's firmware content. We want this to remain available to
; the public and allow other members to benefit from Lee's original, excellent job.
;************************************************************************************
; $VER:C64LD11.S, included on 2014-11-12
;************************************************************************************
@cbmeeks
cbmeeks / bootbeep.asm
Created July 23, 2018 20:52
Boot Beep - Original Macintosh Boot Sound
; https://www.folklore.org/html/BootBeep.html
; Boot beep routine
;
; Called with RTS6 A3 must be set up w/ memory offset (overlay)
; D3 contains the duration: 40 is boot beep
; make an attractive beep to tell the world that the CPU works. Use
; Charlie Kellner's filter algorithm. First fill the waveForm buffer
; with the initial waveForm.
@cbmeeks
cbmeeks / oregon.bas
Created June 27, 2018 13:27
Oregon Trail - HP2100 1975 Version!
8 REM MINNESOTA EDUCATIONAL COMPUTING CONSORTIUM STAFF
9 REM PROGRAMMING REVISIONS BY DON RAWITSCH - 1975
11 REM CURRENT VERSION - 3/27/75
15 REM **FOR THE MEANING OF THE VARIABLES USED, LIST LINES 4900-4960**
25 PRINT "DO YOU NEED INSTRUCTIONS (YES/NO)";
30 DIM C$[5]
35 INPUT C$
40 IF C$="NO" THEN 400
45 PRINT LIN(2)
59 REM ***INSTRUCTIONS***
@cbmeeks
cbmeeks / sprocs.sql
Created May 10, 2018 18:40
List stored procedures and when they were last run
SELECT
sc.name, p.name, st.last_execution_time
FROM sys.procedures AS p
INNER JOIN sys.schemas AS sc ON p.[schema_id] = sc.[schema_id]
LEFT OUTER JOIN sys.dm_exec_procedure_stats AS st ON p.[object_id] = st.[object_id]
ORDER BY
p.name, st.last_execution_time DESC
@cbmeeks
cbmeeks / sid.txt
Last active March 31, 2025 10:21
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)
@cbmeeks
cbmeeks / handler.md
Created October 30, 2017 19:01
Replace Default IRQ Handler

Replace Default IRQ Handler

We are used to inserting small routines at the beginning of the default interrupt handler as an IRQ wedge. This has an advantage of being easy and not requiring any modifications to the part of memory occupied by the ROM.

But the default handler is responsible for cursor blinking, handling the screen editor and few other things. As we don't usually need them in our sprite animation, the default handler's code is just a waste of cycles and memory for us.

We have a simple routine wedged into the interrupt handler. It changes the border and the background color, executes a hundred nops and changes the colors back.

This allows us to see how much raster time it takes to run this routine.

@cbmeeks
cbmeeks / wozmon.asm
Created October 2, 2017 13:29
WOZ 6502 Monitor
;-------------------------------------------------------------------------
;
; The WOZ Monitor for the Apple 1
; Written by Steve Wozniak 1976
;
; Converted to assemble with ca65 by cbmeeks
;
; Original code with comments taken from
; http://www.sbprojects.com/projects/apple1/wozmon.php
;