diff options
author | Bad Diode <bd@badd10de.dev> | 2022-03-05 23:08:13 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2022-03-05 23:08:13 +0100 |
commit | 9f725d6dd402ee1995348fd00a432a90f64baa15 (patch) | |
tree | 2b5eed9296803807634d5ad23f7b161ce311ac05 | |
parent | aa291e198d05a5fcc0655671933ee7e71c12a407 (diff) | |
download | uxnfb-9f725d6dd402ee1995348fd00a432a90f64baa15.tar.gz uxnfb-9f725d6dd402ee1995348fd00a432a90f64baa15.zip |
Add file device
-rw-r--r-- | src/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -12,6 +12,7 @@ | |||
12 | #include "ppu.c" | 12 | #include "ppu.c" |
13 | #include "uxn/src/devices/system.c" | 13 | #include "uxn/src/devices/system.c" |
14 | #include "uxn/src/devices/datetime.c" | 14 | #include "uxn/src/devices/datetime.c" |
15 | #include "uxn/src/devices/file.c" | ||
15 | #include "uxn/src/uxn.c" | 16 | #include "uxn/src/uxn.c" |
16 | 17 | ||
17 | #define CLAMP(X, MIN, MAX) ((X) <= (MIN) ? (MIN) : (X) > (MAX) ? (MAX): (X)) | 18 | #define CLAMP(X, MIN, MAX) ((X) <= (MIN) ? (MIN) : (X) > (MAX) ? (MAX): (X)) |
@@ -467,9 +468,7 @@ init_uxn(Uxn *u, char *file_name) { | |||
467 | /* unused */ uxn_port(u, 0x7, nil_dei, nil_deo); | 468 | /* unused */ uxn_port(u, 0x7, nil_dei, nil_deo); |
468 | /* control */ devctrl = uxn_port(u, 0x8, nil_dei, nil_deo); | 469 | /* control */ devctrl = uxn_port(u, 0x8, nil_dei, nil_deo); |
469 | /* mouse */ devmouse = uxn_port(u, 0x9, nil_dei, nil_deo); | 470 | /* mouse */ devmouse = uxn_port(u, 0x9, nil_dei, nil_deo); |
470 | // TODO: | 471 | /* file */ uxn_port(u, 0xa, nil_dei, file_deo); |
471 | // /* file */ uxn_port(u, 0xa, nil_dei, file_deo); | ||
472 | /* file */ uxn_port(u, 0xa, nil_dei, nil_deo); | ||
473 | /* datetime */ uxn_port(u, 0xb, datetime_dei, nil_deo); | 472 | /* datetime */ uxn_port(u, 0xb, datetime_dei, nil_deo); |
474 | /* unused */ uxn_port(u, 0xc, nil_dei, nil_deo); | 473 | /* unused */ uxn_port(u, 0xc, nil_dei, nil_deo); |
475 | /* unused */ uxn_port(u, 0xd, nil_dei, nil_deo); | 474 | /* unused */ uxn_port(u, 0xd, nil_dei, nil_deo); |