From aa291e198d05a5fcc0655671933ee7e71c12a407 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Sat, 5 Mar 2022 23:06:43 +0100 Subject: [PATCH] Add datetime device --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);