Skip to content

Instantly share code, notes, and snippets.

@jburks
jburks / X16_IO_Device_Spec.md
Created May 19, 2023 06:01
Commander X16 Generic Hardware IO Device Interface Specification

Commander X16 Hardware IO Device Interface Specification

Rev 0.1

Proposed specification

This is a draft specification for X16 kernel-supported generic IO devices. Devices which adhere to this spec will be able to seemlessly integrate with the CBMDOS subsystem such that kernel functions like MACPTR can initiate DMA transfers on the caller's behalf.

This file has been truncated, but you can view the full file.
|
|
Analyze65 start |
Analyze65> bp=$2e8df |
Breakpoint set $02,$E8DF |
Analyze65> resb=1 |
$ Reset set to 1 |
Analyze65> step=10 |
0 : $(ffff) : e0, VectorPull |
2 : $00:ffff e0 e0 cpx #$e0 | ????????
@jburks
jburks / Natt_ROM2_Log.txt
Last active March 26, 2022 21:14
CPU bus analysis part zwei
Analyze65 start
Analyze65 start
Analyze65> showbus
. $(ffbe) : 00, -Write, VectorPull, -Sync, -Clock *Reset
Analyze65> step=8
. $(ffbe) : 00, VectorPull *Reset
@jburks
jburks / Natt_ROM_Log.txt
Last active March 26, 2022 21:05
More detail 65C02 instruction walking
Analyze65 start
Analyze65> showbus
. $(ff03) : 00, -Write, -VectorPull, -Sync, -Clock *Reset
Analyze65> step=8
. $(ff03) : 00 *Reset
. $(ff03) : 00 *Reset
. $(ff03) : 00 *Reset
. $(ff03) : 00 *Reset
@jburks
jburks / sta_zp_log.txt
Created March 26, 2022 08:52
Bus log from STA (ZP)
X16 HW Analyzer> tick
. $(de4b) : 55
-> lda #$55
X16 HW Analyzer> showbus
. $(de4b) : 55, -Write, -VectorPull, -Sync, -Clock
X16 HW Analyzer> tick
X16 HW Analyzer> showbus
. $(de4b) : 55, -Write, -VectorPull, -Sync, +Clock
X16 HW Analyzer> tick
. $(de4c) : 92, Sync
@jburks
jburks / vera_log.txt
Last active March 25, 2022 22:59
VERAduino initialization sequence
Starting VERA Driver.
Waiting for VERA to be ready.
0 <- 2A
Saw 255 waiting for VERA to become responsive...
Waiting for VERA to be ready.
0 <- 2A
Saw 255 waiting for VERA to become responsive...
Waiting for VERA to be ready.
0 <- 2A
Saw 255 waiting for VERA to become responsive...
@jburks
jburks / VERAduino.ino
Last active March 25, 2022 23:37
Arduino driver for VERA
/**
* Arduino-based VERA driver using the MCP3017 GPIO expansion IC.
*
* Port A of of the MCP3017 is mapped as:
* Bit(s) | Function
* -------+-------------
* 0-4 | VERA address 0-4 (bit 0 of port maps to A0 of VERA)
* 5 | RD#
* 6 | WR#
* 7 | CS#
import random
import Tkinter
from Tkinter import *
window = Tk()
window.title('Magic 8 Ball')
window.geometry("500x500")
window.resizable(0,0)
center_frame = Frame(window)
p_memo = {}
def is_prime(p):
# check primality using FLT
# return (p > 1) and (((2**(p-1)) - 1) % p == 0) or (p == 2)
# FLT gets pretty slow when p is only modestly large (~100K), so switching
# back to the old iterative method.
# memoizing here seems to give us a 50% boost in performance. Something
# seems fishy about that fact.