Skip to content

Instantly share code, notes, and snippets.

@ErnestoBorio
ErnestoBorio / _rastest.asm
Last active November 24, 2019 23:57
C64 Raster IRQ test
// For KickAssembler
#import "ptz.asm"
BasicUpstart2(Start)
.memblock "Start"
Start:
DisableInterrupts()
* = $0801 "Basic"
.word upstartEnd // link address
.word 10 // line num
.byte $9e // sys
.text toIntString(Start)
.byte 0
upstartEnd:
.word 0 // empty link signals the end of the program
Start:
@ErnestoBorio
ErnestoBorio / gist:2e42e038aa97a457050ec0520d6bc0d9
Created February 8, 2020 23:48
Trying to use custom charset at $2000
Byte dump:
0825: ad 00 dd - lda $DD00
0828: 29 fc - and #%11111100
082a: 09 03 - ora #%11
082c: 8d 00 dd - sta $DD00
082f: a9 19 - lda #%00011001
0831: 8d 18 d0 - sta $D018
// correctly sets screen mem at $400, but charset is not used from $2000
// Actually in debugger, $D018 is $15
import "./instructions.mjs";
export class Cpu6502 {
A = 0xFF
lda = lda
#rts = function() {
return "RTS";
}
ldx() {
return this.lda();
package main
import (
"fmt"
"strings"
"github.com/go-gl/gl/v3.3-core/gl"
"github.com/veandco/go-sdl2/sdl"
)
@ErnestoBorio
ErnestoBorio / settings.json
Last active November 12, 2020 22:15
VSCode settings.json
{
"files.exclude": {},
"editor.rulers": [
120,
180
],
"workbench.colorCustomizations": {
"editorRuler.foreground": "#222222"
},
"editor.renameOnType": true,
// Enter this in the devtools console.
setInterval( () => {
document.querySelector("ytd-menu-renderer.style-scope.ytd-playlist-video-renderer button")?.click();
document.querySelector("ytd-popup-container ytd-menu-service-item-renderer:nth-child(3)")?.click();
}, 1);