mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-01 05:31:52 +00:00
gr: trench: merge in xw
This commit is contained in:
parent
4d82766a00
commit
5bbdd48d60
88
graphics/hgr/trench/Makefile
Normal file
88
graphics/hgr/trench/Makefile
Normal file
@ -0,0 +1,88 @@
|
||||
include ../../../Makefile.inc
|
||||
|
||||
DOS33 = ../../../utils/dos33fs-utils/dos33
|
||||
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
|
||||
LINKER_SCRIPTS = ../../../linker_scripts
|
||||
EMPTY_DISK = ../../../empty_disk
|
||||
|
||||
all: trench.dsk
|
||||
|
||||
trench.dsk: HELLO TRENCH.BAS TRENCH_BOT.BAS XW XW.BAS
|
||||
cp $(EMPTY_DISK)/empty.dsk trench.dsk
|
||||
$(DOS33) -y trench.dsk SAVE A HELLO
|
||||
$(DOS33) -y trench.dsk SAVE A TRENCH.BAS
|
||||
$(DOS33) -y trench.dsk SAVE A TRENCH_BOT.BAS
|
||||
# $(DOS33) -y trench.dsk BSAVE -a 0x0C00 TRENCH
|
||||
$(DOS33) -y trench.dsk SAVE A XW.BAS
|
||||
$(DOS33) -y trench.dsk BSAVE -a 0x70 XW
|
||||
|
||||
###
|
||||
|
||||
HELLO: hello.bas
|
||||
$(TOKENIZE) < hello.bas > HELLO
|
||||
|
||||
###
|
||||
|
||||
TRENCH.BAS: trench.bas
|
||||
$(TOKENIZE) < trench.bas > TRENCH.BAS
|
||||
|
||||
###
|
||||
|
||||
TRENCH_BOT.BAS: trench_bot.bas
|
||||
$(TOKENIZE) < trench_bot.bas > TRENCH_BOT.BAS
|
||||
|
||||
|
||||
###
|
||||
|
||||
LINES: lines.o
|
||||
ld65 -o LINES lines.o -C $(LINKER_SCRIPTS)/apple2_c00.inc
|
||||
|
||||
lines.o: lines.s
|
||||
ca65 -o lines.o lines.s -l lines.lst
|
||||
|
||||
###
|
||||
|
||||
LINES_ROM: lines_rom.o
|
||||
ld65 -o LINES_ROM lines_rom.o -C $(LINKER_SCRIPTS)/apple2_c00.inc
|
||||
|
||||
lines_rom.o: lines_rom.s
|
||||
ca65 -o lines_rom.o lines_rom.s -l lines_rom.lst
|
||||
|
||||
###
|
||||
|
||||
HLIN_TEST: hlin_test.o
|
||||
ld65 -o HLIN_TEST hlin_test.o -C $(LINKER_SCRIPTS)/apple2_c00.inc
|
||||
|
||||
hlin_test.o: hlin_test.s hgr_hlin.s
|
||||
ca65 -o hlin_test.o hlin_test.s -l hlin_test.lst
|
||||
|
||||
###
|
||||
|
||||
VLIN_TEST: vlin_test.o
|
||||
ld65 -o VLIN_TEST vlin_test.o -C $(LINKER_SCRIPTS)/apple2_c00.inc
|
||||
|
||||
vlin_test.o: vlin_test.s hgr_vlin.s
|
||||
ca65 -o vlin_test.o vlin_test.s -l vlin_test.lst
|
||||
|
||||
|
||||
###
|
||||
|
||||
XW.BAS: xw.bas
|
||||
$(TOKENIZE) < xw.bas > XW.BAS
|
||||
|
||||
|
||||
|
||||
###
|
||||
|
||||
XW: xw.o
|
||||
ld65 -o XW xw.o -C $(LINKER_SCRIPTS)/apple2_70_zp.inc
|
||||
|
||||
xw.o: xw.s
|
||||
ca65 -o xw.o xw.s -l xw.lst
|
||||
###
|
||||
|
||||
|
||||
###
|
||||
|
||||
clean:
|
||||
rm -f *~ *.o *.lst HELLO TRENCH.BAS XW XW.BAS
|
23
graphics/hgr/trench/trench.bas
Normal file
23
graphics/hgr/trench/trench.bas
Normal file
@ -0,0 +1,23 @@
|
||||
5 HGR2:HCOLOR=7
|
||||
20 HPLOT 0,78 TO 136,78 TO 0,114
|
||||
30 HPLOT 279,78 TO 144,78 TO 279,114
|
||||
'40 HPLOT 136,78 TO 136,88 TO 48,191
|
||||
'50 HPLOT 144,78 TO 144,88 TO 232,191
|
||||
60 FOR X=0 TO 11
|
||||
70 Y2=256-(X*16):IF Y2>191 THEN Y2=191
|
||||
80 HPLOT 4+X*12,112-X*3 TO 4+X*12,Y2
|
||||
90 HPLOT 276-X*12,112-X*3 TO 276-X*12,Y2
|
||||
100 NEXT
|
||||
'
|
||||
'136
|
||||
'124
|
||||
'60 HPLOT 112,85 TO 112,112
|
||||
'70 HPLOT 100,88 TO 100,128
|
||||
'80 HPLOT 88,91 TO 88,144
|
||||
'90 HPLOT 76,94 TO 76,160
|
||||
'64 97 176
|
||||
'52 100 192
|
||||
'40 103 208
|
||||
'28 106 224
|
||||
'16 109 240
|
||||
'4 112 256
|
10
graphics/hgr/trench/trench_bot.bas
Normal file
10
graphics/hgr/trench/trench_bot.bas
Normal file
@ -0,0 +1,10 @@
|
||||
5 HGR:HCOLOR=7:GOSUB 120:HGR2:O=1:GOSUB 120:P=1
|
||||
10 POKE230,32+32*P:P=NOTP:POKE49236+P,0:?CHR$(7):GOTO10
|
||||
99 END
|
||||
'100 HPLOT 0,78 TO 136,78 TO 0,114
|
||||
'110 HPLOT 279,78 TO 144,78 TO 279,114
|
||||
120 FOR X=0 TO 40
|
||||
130 Y2=2*O+256-(X*4):IF Y2>191 THEN Y2=191
|
||||
140 HPLOT 2*O+4+X*4,O+112-X*2 TO 2*O+4+X*4,Y2
|
||||
'150 HPLOT 276-X*12,1.5*O+112-X*3 TO 276-X*12,Y2
|
||||
160 NEXT:RETURN
|
@ -1,39 +0,0 @@
|
||||
include ../../../Makefile.inc
|
||||
|
||||
DOS33 = ../../../utils/dos33fs-utils/dos33
|
||||
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
|
||||
LINKER_SCRIPTS = ../../../linker_scripts
|
||||
EMPTY_DISK = ../../../empty_disk/empty.dsk
|
||||
|
||||
all: xw.dsk
|
||||
|
||||
xw.dsk: HELLO XW XW.BAS
|
||||
cp $(EMPTY_DISK) xw.dsk
|
||||
$(DOS33) -y xw.dsk SAVE A HELLO
|
||||
$(DOS33) -y xw.dsk SAVE A XW.BAS
|
||||
$(DOS33) -y xw.dsk BSAVE -a 0x70 XW
|
||||
|
||||
|
||||
###
|
||||
|
||||
HELLO: hello.bas
|
||||
$(TOKENIZE) < hello.bas > HELLO
|
||||
|
||||
###
|
||||
|
||||
XW.BAS: xw.bas
|
||||
$(TOKENIZE) < xw.bas > XW.BAS
|
||||
|
||||
|
||||
|
||||
###
|
||||
|
||||
XW: xw.o
|
||||
ld65 -o XW xw.o -C $(LINKER_SCRIPTS)/apple2_70_zp.inc
|
||||
|
||||
xw.o: xw.s
|
||||
ca65 -o xw.o xw.s -l xw.lst
|
||||
###
|
||||
|
||||
clean:
|
||||
rm -f *~ *.o *.lst XW
|
Loading…
Reference in New Issue
Block a user