Compare commits

...

2 Commits

Author SHA1 Message Date
nino-porcino 5bc71a3cfe fix 24 hours wrap bug 2022-10-16 16:51:25 +02:00
nino-porcino d9863f02f5 update compiling scripts 2022-10-16 16:50:35 +02:00
5 changed files with 21 additions and 9 deletions

View File

@ -2,9 +2,11 @@
@call ..\..\tools\build anagram
copy out\anagram.prg ..\..\..\apple1-emu\software\anagram.prg /y
copy out\anagram.bin ..\..\..\apple1-emu\software\sdcard_image\PLAB\ANAGRAM#060280 /y
node ..\..\tools\wavconv\prg2wav.js -i out\anagram.prg -o out\anagram
@set TARGET=NOJUKEBOX
@call ..\..\tools\build hangman
copy out\hangman.prg ..\..\..\apple1-emu\software\hangman.prg /y
copy out\hangman.bin ..\..\..\apple1-emu\software\sdcard_image\PLAB\HANGMAN#060280 /y
node ..\..\tools\wavconv\prg2wav.js -i out\hangman.prg -o out\hangman

View File

@ -1,5 +1,5 @@
@set JAVAEXE="c:\Program Files\Java\jdk1.8.0_161\bin\java.exe"
@set JAVAEXE="C:\Program Files\Java\jre1.8.0_311\bin\java.exe"
rem @set JAVAEXE="C:\Program Files\Java\jre1.8.0_311\bin\java.exe"
@set KICKASSJAR="C:\Users\Nino1\Desktop\USB\Retro stuff 2\KickAssembler\KickAss.jar"

View File

@ -1,8 +1,10 @@
@call ..\..\tools\build tapemon
@call node ..\..\tools\prg2bin -i out\tapemon_apple1.prg -o out\tapemon.0280.bin
@call ..\..\tools\build tapetoggle
@call node ..\..\tools\prg2woz -i out\tapetoggle_apple1.prg -o out\tapetoggle.0280.woz
@call ..\..\tools\build tapeload

View File

@ -133,10 +133,18 @@ void main() {
woz_puts("\rWHAT TIME IS IT ?\r");
woz_puts("\r(HOURS ) "); apple1_input_line_prompt(KEYBUF, 2);
_hours = (byte) atoi(KEYBUF);
woz_puts("\r(MINUTES) "); apple1_input_line_prompt(KEYBUF, 2);
_minutes = (byte) atoi(KEYBUF);
do {
woz_puts("\r(HOURS ) ");
apple1_input_line_prompt(KEYBUF, 2);
_hours = (byte) atoi(KEYBUF);
} while(_hours > 23);
do {
woz_puts("\r(MINUTES) ");
apple1_input_line_prompt(KEYBUF, 2);
_minutes = (byte) atoi(KEYBUF);
} while(_minutes > 59);
_seconds = 0;
enable_timer_interrupt();

View File

@ -35,7 +35,7 @@ EXPORT __interrupt(hardware_all) void time_interrupt_handler() {
_seconds = 0;
if(++_minutes == 60) {
_minutes = 0;
_hours++;
if(++_hours == 24) _hours = 0;
}
}
}