diff --git a/.gitignore b/.gitignore index b748252..d8489ca 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ *theme *.rom + +*.[o0125678vqki] diff --git a/mkfile b/mkfile index 081652b..bf42d9f 100644 --- a/mkfile +++ b/mkfile @@ -8,6 +8,7 @@ HFILES=\ /sys/include/npe/stdio.h\ src/devices/audio.h\ src/devices/controller.h\ + src/devices/datetime.h\ src/devices/file.h\ src/devices/mouse.h\ src/devices/screen.h\ @@ -32,19 +33,19 @@ bin: %.rom:Q: %.tal bin/uxnasm bin/uxnasm $stem.tal $target >/dev/null -bin/uxncli: file.$O system.$O uxncli.$O uxn.$O +bin/uxncli: file.$O datetime.$O system.$O uxncli.$O uxn.$O $LD $LDFLAGS -o $target $prereq bin/uxnasm: uxnasm.$O $LD $LDFLAGS -o $target $prereq -bin/uxnemu: audio.$O controller.$O file.$O mouse.$O screen.$O system.$O uxn.$O uxnemu.$O +bin/uxnemu: audio.$O controller.$O datetime.$O file.$O mouse.$O screen.$O system.$O uxn.$O uxnemu.$O $LD $LDFLAGS -o $target $prereq (uxnasm|uxncli|uxnemu|uxn)\.$O:R: src/\1.c $CC $CFLAGS -Isrc -o $target src/$stem1.c -(audio|controller|file|mouse|screen|system)\.$O:R: src/devices/\1.c +(audio|controller|datetime|file|mouse|screen|system)\.$O:R: src/devices/\1.c $CC $CFLAGS -Isrc -o $target src/devices/$stem1.c nuke:V: clean diff --git a/src/devices/audio.h b/src/devices/audio.h index f7a757c..f6d3fab 100644 --- a/src/devices/audio.h +++ b/src/devices/audio.h @@ -28,4 +28,4 @@ extern UxnAudio uxn_audio[POLYPHONY]; Uint8 audio_get_vu(UxnAudio *c); int audio_render(UxnAudio *c, Sint16 *sample, Sint16 *end); void audio_start(UxnAudio *c, Uint16 adsr, Uint8 pitch); -void audio_finished_handler(UxnAudio *c); \ No newline at end of file +void audio_finished_handler(UxnAudio *c); diff --git a/src/devices/controller.c b/src/devices/controller.c index 261b05f..16c5072 100644 --- a/src/devices/controller.c +++ b/src/devices/controller.c @@ -49,4 +49,4 @@ controller_special(Device *d, Uint8 key) uxn_eval(d->u, GETVECTOR(d)); d->dat[4] = 0x00; } -} \ No newline at end of file +} diff --git a/src/devices/controller.h b/src/devices/controller.h index d1e96a7..ed7f831 100644 --- a/src/devices/controller.h +++ b/src/devices/controller.h @@ -13,4 +13,4 @@ WITH REGARD TO THIS SOFTWARE. void controller_down(Device *d, Uint8 mask); void controller_up(Device *d, Uint8 mask); void controller_key(Device *d, Uint8 key); -void controller_special(Device *d, Uint8 key); \ No newline at end of file +void controller_special(Device *d, Uint8 key); diff --git a/src/devices/datetime.c b/src/devices/datetime.c index 270c41e..b933377 100644 --- a/src/devices/datetime.c +++ b/src/devices/datetime.c @@ -37,4 +37,4 @@ datetime_dei(Device *d, Uint8 port) case 0xa: return t->tm_isdst; default: return d->dat[port]; } -} \ No newline at end of file +} diff --git a/src/devices/datetime.h b/src/devices/datetime.h index 69edcde..95a3739 100644 --- a/src/devices/datetime.h +++ b/src/devices/datetime.h @@ -10,4 +10,4 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE. */ -Uint8 datetime_dei(Device *d, Uint8 port); \ No newline at end of file +Uint8 datetime_dei(Device *d, Uint8 port); diff --git a/src/devices/file.c b/src/devices/file.c index f5b8b8f..d803ba6 100644 --- a/src/devices/file.c +++ b/src/devices/file.c @@ -174,4 +174,4 @@ file_deo(Device *d, Uint8 port) DEVPOKE16(0x2, res); break; } -} \ No newline at end of file +} diff --git a/src/devices/file.h b/src/devices/file.h index ce79987..26c4ff1 100644 --- a/src/devices/file.h +++ b/src/devices/file.h @@ -10,4 +10,4 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE. */ -void file_deo(Device *d, Uint8 port); \ No newline at end of file +void file_deo(Device *d, Uint8 port); diff --git a/src/devices/screen.c b/src/devices/screen.c index 3f8df56..77cdf79 100644 --- a/src/devices/screen.c +++ b/src/devices/screen.c @@ -159,4 +159,4 @@ screen_deo(Device *d, Uint8 port) break; } } -} \ No newline at end of file +} diff --git a/src/devices/screen.h b/src/devices/screen.h index b3da3b8..7ddb8d6 100644 --- a/src/devices/screen.h +++ b/src/devices/screen.h @@ -36,4 +36,4 @@ void screen_clear(UxnScreen *p, Layer *layer); void screen_redraw(UxnScreen *p, Uint32 *pixels); Uint8 screen_dei(Device *d, Uint8 port); -void screen_deo(Device *d, Uint8 port); \ No newline at end of file +void screen_deo(Device *d, Uint8 port); diff --git a/src/devices/system.h b/src/devices/system.h index 5760ae8..7d40337 100644 --- a/src/devices/system.h +++ b/src/devices/system.h @@ -13,4 +13,4 @@ Uint8 system_dei(Device *d, Uint8 port); void system_deo(Device *d, Uint8 port); void system_deo_special(Device *d, Uint8 port); -extern Uxn supervisor; \ No newline at end of file +extern Uxn supervisor;