diff --git a/src/main.c b/src/main.c index 222fef3..a55c9f5 100644 --- a/src/main.c +++ b/src/main.c @@ -11,6 +11,7 @@ #include "shorthand.h" #include "ppu.c" #include "uxn/src/devices/system.c" +#include "uxn/src/devices/datetime.c" #include "uxn/src/uxn.c" #define CLAMP(X, MIN, MAX) ((X) <= (MIN) ? (MIN) : (X) > (MAX) ? (MAX): (X)) @@ -468,9 +469,8 @@ init_uxn(Uxn *u, char *file_name) { /* mouse */ devmouse = uxn_port(u, 0x9, nil_dei, nil_deo); // TODO: // /* file */ uxn_port(u, 0xa, nil_dei, file_deo); - // /* datetime */ uxn_port(u, 0xb, datetime_dei, nil_deo); /* file */ uxn_port(u, 0xa, nil_dei, nil_deo); - /* datetime */ uxn_port(u, 0xb, nil_dei, nil_deo); + /* datetime */ uxn_port(u, 0xb, datetime_dei, nil_deo); /* unused */ uxn_port(u, 0xc, nil_dei, nil_deo); /* unused */ uxn_port(u, 0xd, nil_dei, nil_deo); /* unused */ uxn_port(u, 0xe, nil_dei, nil_deo);