From 9f725d6dd402ee1995348fd00a432a90f64baa15 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Sat, 5 Mar 2022 23:08:13 +0100 Subject: [PATCH] Add file device --- src/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index a55c9f5..fdc2c07 100644 --- a/src/main.c +++ b/src/main.c @@ -12,6 +12,7 @@ #include "ppu.c" #include "uxn/src/devices/system.c" #include "uxn/src/devices/datetime.c" +#include "uxn/src/devices/file.c" #include "uxn/src/uxn.c" #define CLAMP(X, MIN, MAX) ((X) <= (MIN) ? (MIN) : (X) > (MAX) ? (MAX): (X)) @@ -467,9 +468,7 @@ init_uxn(Uxn *u, char *file_name) { /* unused */ uxn_port(u, 0x7, nil_dei, nil_deo); /* control */ devctrl = uxn_port(u, 0x8, nil_dei, nil_deo); /* mouse */ devmouse = uxn_port(u, 0x9, nil_dei, nil_deo); - // TODO: - // /* file */ uxn_port(u, 0xa, nil_dei, file_deo); - /* file */ uxn_port(u, 0xa, nil_dei, nil_deo); + /* file */ uxn_port(u, 0xa, nil_dei, file_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);