Add datetime device
This commit is contained in:
parent
e8b7a0b25c
commit
aa291e198d
|
@ -11,6 +11,7 @@
|
||||||
#include "shorthand.h"
|
#include "shorthand.h"
|
||||||
#include "ppu.c"
|
#include "ppu.c"
|
||||||
#include "uxn/src/devices/system.c"
|
#include "uxn/src/devices/system.c"
|
||||||
|
#include "uxn/src/devices/datetime.c"
|
||||||
#include "uxn/src/uxn.c"
|
#include "uxn/src/uxn.c"
|
||||||
|
|
||||||
#define CLAMP(X, MIN, MAX) ((X) <= (MIN) ? (MIN) : (X) > (MAX) ? (MAX): (X))
|
#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);
|
/* mouse */ devmouse = uxn_port(u, 0x9, nil_dei, nil_deo);
|
||||||
// TODO:
|
// TODO:
|
||||||
// /* file */ uxn_port(u, 0xa, nil_dei, file_deo);
|
// /* 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);
|
/* 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, 0xc, nil_dei, nil_deo);
|
||||||
/* unused */ uxn_port(u, 0xd, nil_dei, nil_deo);
|
/* unused */ uxn_port(u, 0xd, nil_dei, nil_deo);
|
||||||
/* unused */ uxn_port(u, 0xe, nil_dei, nil_deo);
|
/* unused */ uxn_port(u, 0xe, nil_dei, nil_deo);
|
||||||
|
|
Loading…
Reference in New Issue