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 / 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 / disable.txt
Last active August 23, 2018 17:37
Disable Java Updating
https://serverfault.com/questions/14303/cant-seem-to-disable-java-automatic-update/26568#26568
To turn off/on the Java updater (C:\Program Files\Java\jreXXX\bin\javacpl.exe), put a 0 in the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy\EnableJavaUpdate
Turn it back on with a 1.
Be sure to run javacpl.exe as ADMIN.
@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 April 17, 2024 14: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)
@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
;
@cbmeeks
cbmeeks / bootbeep.asm
Created August 21, 2017 14:14
Early Macintosh Boot Beep
; 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 / SearchAndDestroy.java
Created August 2, 2017 20:01
SearchAndDestroy.java
public static void main(String[] args) throws IOException {
File rootFolder = new File("c:/tmp/blah/");
File[] files = rootFolder.listFiles();
for (File file : files) {
String name = file.getName().toLowerCase();
if (name.startsWith("patch_")) {
File coreFolder = new File(file.getPath() + "/core");
if (coreFolder.isDirectory()) {