mirror of
https://github.com/bobbimanners/EightBall.git
synced 2024-10-19 23:23:49 +00:00
v0.54: Fixed end of line character on C64, VIC20
End of line on CBM is 13, not 10. Converted sieve4.8b and unittest,8b to PETSCII and added them to test.d64 Unit tests run on C64 with only one failure (same failure as when running under Linux VM).
This commit is contained in:
parent
d51db8fa03
commit
fc6583d82d
BIN
8ball20.prg
BIN
8ball20.prg
Binary file not shown.
BIN
8ball64.prg
BIN
8ball64.prg
Binary file not shown.
10
Makefile
10
Makefile
@ -77,12 +77,20 @@ eightball.system: eightball_a2e.o eightballutils_a2e.o
|
|||||||
ebvm.system: eightballvm_a2e.o eightballutils_a2e.o
|
ebvm.system: eightballvm_a2e.o eightballutils_a2e.o
|
||||||
~/Personal/Development/cc65/bin/ld65 -m 8ballvma2e.map -o ebvm.system -C apple2enh-system.cfg eightballvm_a2e.o eightballutils_a2e.o apple2enh-iobuf-0800.o ~/Personal/Development/cc65/lib/apple2enh.lib
|
~/Personal/Development/cc65/bin/ld65 -m 8ballvma2e.map -o ebvm.system -C apple2enh-system.cfg eightballvm_a2e.o eightballutils_a2e.o apple2enh-iobuf-0800.o ~/Personal/Development/cc65/lib/apple2enh.lib
|
||||||
|
|
||||||
test.d64: 8ball20.prg 8ballvm20.prg 8ball64.prg 8ballvm64.prg
|
unittest.8bp: unittest.8b
|
||||||
|
tr \\100-\\132 \\300-\\332 <unittest.8b | tr \\140-\\172 \\100-\\132 > unittest.8bp # ASCII -> PETSCII
|
||||||
|
|
||||||
|
sieve4.8bp: sieve4.8b
|
||||||
|
tr \\100-\\132 \\300-\\332 <sieve4.8b | tr \\140-\\172 \\100-\\132 > sieve4.8bp # ASCII -> PETSCII
|
||||||
|
|
||||||
|
test.d64: 8ball20.prg 8ballvm20.prg 8ball64.prg 8ballvm64.prg unittest.8bp sieve4.8bp
|
||||||
c1541 -format eb,00 d64 test.d64
|
c1541 -format eb,00 d64 test.d64
|
||||||
c1541 -attach test.d64 -write 8ball20.prg
|
c1541 -attach test.d64 -write 8ball20.prg
|
||||||
c1541 -attach test.d64 -write 8ballvm20.prg
|
c1541 -attach test.d64 -write 8ballvm20.prg
|
||||||
c1541 -attach test.d64 -write 8ball64.prg
|
c1541 -attach test.d64 -write 8ball64.prg
|
||||||
c1541 -attach test.d64 -write 8ballvm64.prg
|
c1541 -attach test.d64 -write 8ballvm64.prg
|
||||||
|
c1541 -attach test.d64 -write unittest.8bp unit.8b,s
|
||||||
|
c1541 -attach test.d64 -write sieve4.8bp sieve4.8b,s
|
||||||
|
|
||||||
test.dsk: eightball.system ebvm.system sieve4.8b
|
test.dsk: eightball.system ebvm.system sieve4.8b
|
||||||
java -jar ~/Desktop/Apple2/AppleCommander-1.3.5.jar -d test.dsk e8ball.system
|
java -jar ~/Desktop/Apple2/AppleCommander-1.3.5.jar -d test.dsk e8ball.system
|
||||||
|
12
eightball.c
12
eightball.c
@ -4037,7 +4037,11 @@ unsigned char parseline()
|
|||||||
break;
|
break;
|
||||||
case TOK_PRNL:
|
case TOK_PRNL:
|
||||||
if (compile) {
|
if (compile) {
|
||||||
|
#ifdef CBM
|
||||||
|
emitldi(13);
|
||||||
|
#else
|
||||||
emitldi(10);
|
emitldi(10);
|
||||||
|
#endif
|
||||||
emit(VM_PRCH);
|
emit(VM_PRCH);
|
||||||
} else {
|
} else {
|
||||||
printchar('\n');
|
printchar('\n');
|
||||||
@ -4727,17 +4731,17 @@ main()
|
|||||||
#ifdef A2E
|
#ifdef A2E
|
||||||
videomode(VIDEOMODE_80COL);
|
videomode(VIDEOMODE_80COL);
|
||||||
revers(1);
|
revers(1);
|
||||||
print(" *** EIGHTBALL V0.53 *** \n");
|
print(" *** EIGHTBALL V0.54 *** \n");
|
||||||
print(" *** (C)BOBBI, 2018 *** \n\n");
|
print(" *** (C)BOBBI, 2018 *** \n\n");
|
||||||
revers(0);
|
revers(0);
|
||||||
#elif defined(C64)
|
#elif defined(C64)
|
||||||
print(" *** EightBall v0.53 *** ");
|
print(" *** EightBall v0.54 *** ");
|
||||||
print(" *** (c)Bobbi, 2018 *** \n\n");
|
print(" *** (c)Bobbi, 2018 *** \n\n");
|
||||||
#elif defined(VIC20)
|
#elif defined(VIC20)
|
||||||
/* Looks great in 22 cols! */
|
/* Looks great in 22 cols! */
|
||||||
print("*** EightBall v0.53****** (c)Bobbi, 2017 ***\n\n");
|
print("*** EightBall v0.54****** (c)Bobbi, 2017 ***\n\n");
|
||||||
#else
|
#else
|
||||||
print(" *** EightBall v0.53 *** \n");
|
print(" *** EightBall v0.54 *** \n");
|
||||||
print(" *** (c)Bobbi, 2018 *** \n\n");
|
print(" *** (c)Bobbi, 2018 *** \n\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BIN
eightball.system
BIN
eightball.system
Binary file not shown.
Loading…
Reference in New Issue
Block a user