mirror of
https://github.com/robmcmullen/asmgen.git
synced 2025-03-12 03:32:28 +00:00
Added separate makefile for my new tests
This commit is contained in:
parent
39ac771959
commit
3fd63c71d4
15
Makefile.rob
Normal file
15
Makefile.rob
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
all: bwtest.dsk colortest.dsk
|
||||||
|
|
||||||
|
bwtest.dsk:
|
||||||
|
python HiSprite.py -a mac65 -p 6502 -s hgrbw apple.png -t -c -r > apple.s
|
||||||
|
atasm -obwtest.xex bwtest.s -Lbwtest.var -gbwtest.lst
|
||||||
|
atrcopy bwtest.dsk boot -b bwtest.xex --brun 6000 -f
|
||||||
|
|
||||||
|
colortest.dsk: colortest.s boxw_mix.png
|
||||||
|
python HiSprite.py -a mac65 -p 6502 -s hgrcolor boxw_mix.png -t -c -r > boxw_mix.s
|
||||||
|
atasm -ocolortest.xex colortest.s -Lcolortest.var -gcolortest.lst
|
||||||
|
atrcopy colortest.dsk boot -b colortest.xex --brun 6000 -f
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f bwtest.dsk bwtest.xex bwtest.var bwtest.lst
|
||||||
|
rm -f colortest.dsk colortest.xex colortest.var colortest.lst
|
74
bwtest.s
Normal file
74
bwtest.s
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
*= $6000
|
||||||
|
|
||||||
|
; os memory map
|
||||||
|
CLRTEXT = $c050
|
||||||
|
SETTEXT = $c051
|
||||||
|
CLRMIXED = $c052
|
||||||
|
SETMIXED = $c053
|
||||||
|
TXTPAGE1 = $c054
|
||||||
|
TXTPAGE2 = $c055
|
||||||
|
CLRHIRES = $c056
|
||||||
|
SETHIRES = $c057
|
||||||
|
|
||||||
|
; ROM entry points
|
||||||
|
COUT = $fded
|
||||||
|
ROMWAIT = $fca8
|
||||||
|
|
||||||
|
; Zero page locations we use (unused by Monitor, Applesoft, or ProDOS)
|
||||||
|
PARAM0 = $06
|
||||||
|
PARAM1 = $07
|
||||||
|
PARAM2 = $08
|
||||||
|
PARAM3 = $09
|
||||||
|
SCRATCH0 = $19
|
||||||
|
SCRATCH1 = $1a
|
||||||
|
SPRITEPTR_L = $1b
|
||||||
|
SPRITEPTR_H = $1c
|
||||||
|
|
||||||
|
start
|
||||||
|
bit CLRTEXT ; start with HGR page 1, full screen
|
||||||
|
bit CLRMIXED
|
||||||
|
bit TXTPAGE1
|
||||||
|
bit SETHIRES
|
||||||
|
|
||||||
|
jmp draw
|
||||||
|
|
||||||
|
jsr clrscr
|
||||||
|
|
||||||
|
ldx #0
|
||||||
|
loop
|
||||||
|
txa
|
||||||
|
sta $2000,x
|
||||||
|
inx
|
||||||
|
bne loop
|
||||||
|
|
||||||
|
draw
|
||||||
|
lda #100
|
||||||
|
sta PARAM1 ; y coord
|
||||||
|
lda #100
|
||||||
|
sta PARAM0 ; x coord
|
||||||
|
|
||||||
|
jsr APPLE
|
||||||
|
|
||||||
|
wait
|
||||||
|
jmp wait
|
||||||
|
|
||||||
|
|
||||||
|
clrscr
|
||||||
|
lda #0
|
||||||
|
sta clr1+1
|
||||||
|
lda #$20
|
||||||
|
sta clr1+2
|
||||||
|
clr0
|
||||||
|
lda #$81
|
||||||
|
ldy #0
|
||||||
|
clr1
|
||||||
|
sta $ffff,y
|
||||||
|
iny
|
||||||
|
bne clr1
|
||||||
|
inc clr1+2
|
||||||
|
ldx clr1+2
|
||||||
|
cpx #$40
|
||||||
|
bcc clr1
|
||||||
|
rts
|
||||||
|
|
||||||
|
.include apple.s
|
74
colortest.s
Normal file
74
colortest.s
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
*= $6000
|
||||||
|
|
||||||
|
; os memory map
|
||||||
|
CLRTEXT = $c050
|
||||||
|
SETTEXT = $c051
|
||||||
|
CLRMIXED = $c052
|
||||||
|
SETMIXED = $c053
|
||||||
|
TXTPAGE1 = $c054
|
||||||
|
TXTPAGE2 = $c055
|
||||||
|
CLRHIRES = $c056
|
||||||
|
SETHIRES = $c057
|
||||||
|
|
||||||
|
; ROM entry points
|
||||||
|
COUT = $fded
|
||||||
|
ROMWAIT = $fca8
|
||||||
|
|
||||||
|
; Zero page locations we use (unused by Monitor, Applesoft, or ProDOS)
|
||||||
|
PARAM0 = $06
|
||||||
|
PARAM1 = $07
|
||||||
|
PARAM2 = $08
|
||||||
|
PARAM3 = $09
|
||||||
|
SCRATCH0 = $19
|
||||||
|
SCRATCH1 = $1a
|
||||||
|
SPRITEPTR_L = $1b
|
||||||
|
SPRITEPTR_H = $1c
|
||||||
|
|
||||||
|
start
|
||||||
|
bit CLRTEXT ; start with HGR page 1, full screen
|
||||||
|
bit CLRMIXED
|
||||||
|
bit TXTPAGE1
|
||||||
|
bit SETHIRES
|
||||||
|
|
||||||
|
jmp draw
|
||||||
|
|
||||||
|
jsr clrscr
|
||||||
|
|
||||||
|
ldx #0
|
||||||
|
loop
|
||||||
|
txa
|
||||||
|
sta $2000,x
|
||||||
|
inx
|
||||||
|
bne loop
|
||||||
|
|
||||||
|
draw
|
||||||
|
lda #100
|
||||||
|
sta PARAM1 ; y coord
|
||||||
|
lda #100
|
||||||
|
sta PARAM0 ; x coord
|
||||||
|
|
||||||
|
jsr BOXW_MIX
|
||||||
|
|
||||||
|
wait
|
||||||
|
jmp wait
|
||||||
|
|
||||||
|
|
||||||
|
clrscr
|
||||||
|
lda #0
|
||||||
|
sta clr1+1
|
||||||
|
lda #$20
|
||||||
|
sta clr1+2
|
||||||
|
clr0
|
||||||
|
lda #$81
|
||||||
|
ldy #0
|
||||||
|
clr1
|
||||||
|
sta $ffff,y
|
||||||
|
iny
|
||||||
|
bne clr1
|
||||||
|
inc clr1+2
|
||||||
|
ldx clr1+2
|
||||||
|
cpx #$40
|
||||||
|
bcc clr1
|
||||||
|
rts
|
||||||
|
|
||||||
|
.include boxw_mix.s
|
Loading…
x
Reference in New Issue
Block a user