Skip to content

Instantly share code, notes, and snippets.

View Sakrac's full-sized avatar
💭
Island Adventure Themed C64 game, C64 Docking Simulator

Carl-Henrik Skårstedt Sakrac

💭
Island Adventure Themed C64 game, C64 Docking Simulator
View GitHub Profile
@Sakrac
Sakrac / spiral.s
Last active January 31, 2021 00:36
The explanation how this works is below, this change moved code to zero page to save 1 byte.
Last minute update:
Disassembly:
$46 dex
$47 ldy #$ec
$49 txa
$4a adc #$0e
@Sakrac
Sakrac / 6502math.s
Last active September 16, 2019 23:09
Some basic math code in 6502 assembler
; subtract A from byte
sec
eor #$ff
adc Address
; a = (Address) - a
;----
; add or subtract from a byte based on carry (set = subtract, clear = add)
bcc .add