First commit.

This commit is contained in:
giomba 2022-12-04 01:00:17 +01:00
commit f58f40aa3f
4 changed files with 79 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
build/
bin/

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
.POSIX:
.PHONY: env
ASM=$(wildcard src/*asm)
vic20term.prg: env $(ASM)
dasm src/main.asm -Isrc/ -f3 -T1 -sbuild/vic20term.prg.symbols.txt -obin/vic20term.bin
env:
mkdir -p {bin,build}

BIN
res/stillenacht.prg Normal file

Binary file not shown.

64
src/main.asm Normal file
View File

@ -0,0 +1,64 @@
processor 6502
org $a000
WORD .coldstart
WORD .warmstart
BYTE #$41, #$30, #$c3, #$c2, #$cd
.coldstart:
cld
sei
;jmp .coldstart
jsr $fd8d
jsr $fd52
jsr $fdf9
jsr $e518
lda $0288
sta $0294
jsr $e45b
jsr $e3a4
jsr $e404
cli
.warmstart:
lda #$02
ldx #$00
clear_color_ram:
sta $9400,x
sta $9500,x
sta $9600,x
sta $9700,x
dex
bne clear_color_ram
ldx #$00
print:
lda message,x
beq .end
sec
sbc #$40
sta 7724,x
sta 7746,x
sta 7768,x
sta 7790,x
inx
jmp print
.end:
restart:
ldx #$00
loop:
stx 7680
dex
bne loop
jmp restart
message:
BYTE "CIAO DEVELER BY GIOMBA",#$0
. = $bfff
BYTE #$ff