summaryrefslogtreecommitdiff
path: root/vcsdrive.asm
diff options
context:
space:
mode:
Diffstat (limited to 'vcsdrive.asm')
-rw-r--r--vcsdrive.asm33
1 files changed, 33 insertions, 0 deletions
diff --git a/vcsdrive.asm b/vcsdrive.asm
index dd84ef1..c271652 100644
--- a/vcsdrive.asm
+++ b/vcsdrive.asm
@@ -19,3 +19,36 @@
;
; Code
;
+ processor 6502
+ option output-file,vcsdrive.bin
+
+ include vcs.asm
+
+ org $f000
+
+ ; Set up stack pointer
+start:
+ sei
+ cld
+ ldx #$ff
+ txs
+
+ ; Initialise page zero
+ lda #0
+.zero:
+ sta $0,x
+ dex
+ bne zero
+
+ ; Set background
+ lda #$3e
+ clc
+.loop:
+ sta COLUBK
+ adc #1
+ jmp loop
+
+ ; Set start adresses and pad ROM
+ org $fffc
+ word start
+ word start