From 3fd63c71d4a9304349f46fd47b6ef2335baadfa3 Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Thu, 22 Jun 2017 06:24:39 -0700 Subject: [PATCH] Added separate makefile for my new tests --- Makefile.rob | 15 +++++++++++ apple.png | Bin 0 -> 228 bytes bwtest.s | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ colortest.s | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 163 insertions(+) create mode 100644 Makefile.rob create mode 100644 apple.png create mode 100644 bwtest.s create mode 100644 colortest.s diff --git a/Makefile.rob b/Makefile.rob new file mode 100644 index 0000000..c82f243 --- /dev/null +++ b/Makefile.rob @@ -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 diff --git a/apple.png b/apple.png new file mode 100644 index 0000000000000000000000000000000000000000..16f8b3dc0f9faa584b951e415e34caf750679557 GIT binary patch literal 228 zcmeAS@N?(olHy`uVBq!ia0vp^{2oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#A)6ShfS|xv6<2KrRD=b5UwyNotBhd1gt5g1e`0K#E=} zJ5W5z)5S4F(EY8-Oz8^dL-8sp;&F8rK`k<|6c$`;iF_fS0`|!eJyGFzE z)~4I0+O@}XR$bs|R#V`KDmT{fp8r|yrS0`^N4oFEt6ksMpO)2B?`XHbCr;$9_B!Rz QiZ+n-p00i_>zopr012~5wg3PC literal 0 HcmV?d00001 diff --git a/bwtest.s b/bwtest.s new file mode 100644 index 0000000..a367f37 --- /dev/null +++ b/bwtest.s @@ -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 diff --git a/colortest.s b/colortest.s new file mode 100644 index 0000000..e94eae7 --- /dev/null +++ b/colortest.s @@ -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