Skip to content

Instantly share code, notes, and snippets.

Davy Mitchell daftspaniel

  • Scotland
View GitHub Profile
View Text Screen Display
ORG $4E21
PSHS X,Y,U,A,B
LDX #$400
LEAY SCREEN,PCR
DRAW LDU ,Y+
STU ,X+
CMPX #$5FE
BLE DRAW
View PWA
(function() {
var _currentDirectory = (function () {
var _url;
var lines = new Error().stack.split('\n');
function lookupUrl() {
if (lines.length > 2) {
var match = lines[1].match(/^\s+at (.+):\d+:\d+$/);
// Chrome.
if (match) return match[1];
// Chrome nested eval case.
@daftspaniel
daftspaniel / boxgrid.asm
Created Mar 11, 2018
Screen border WIP
View boxgrid.asm
* Draw boxes across the screen.
*
ORG $4E21
LDX #$600 ; Screen base address
LDB #$00 ;
BOXROW LDA #$FF ;
STA ,X ;
LDA #$81 ;
View rowofboxes.asm
ORG $4E21
LDX #$600 ; Screen base address
LDB #$00 ;
BOX LDA #$FF ;
STA ,X ;
LDA #$81 ;
STA 32,X ;
STA 64,X ;
STA 96,X ;
STA 128,X ;
You can’t perform that action at this time.