fearofdots.net

> sk65: simple 6502 assembler

sk65 is a simple 6502 assembler written in C99 with a NASM style syntax. It has a C like preprocessor, thats about it. Only supports legal instructions.

Full source code

> Example use

	.org 0x800

#define ARR_START 10

entry:
	lda 0xAB
	ldx 10
loop:
	dex
	sta [ARR_START + x]
	bne loop
hang:
	jmp hang
	
	.padto 0xFFFC
	.dw entry, entry
Last updated: 2026/03/07