~alderwick/pico-uxn

2027e62d18d971eb8b1392c2283f5744e750c327 — Andrew Alderwick 4 months ago 48774b8 main
Update to latest Uxn.
3 files changed, 13 insertions(+), 6 deletions(-)

M Makefile
M lib/uxn
M main.c
M Makefile => Makefile +1 -1
@@ 35,5 35,5 @@ distclean: clean
	git submodule deinit --all

update:
	git submodule foreach 'git fetch && git reset --hard origin/master'
	git submodule foreach 'git fetch && { git reset --hard origin/master || git reset --hard origin/main; }'


M lib/uxn => lib/uxn +1 -1
@@ 1,1 1,1 @@
Subproject commit b6239ad549a046ff8541032d4ff482619a7dfc1a
Subproject commit a3502f163774ae2d863a10f10dd83e8c6aa44e35

M main.c => main.c +11 -4
@@ 11,9 11,10 @@

UXN_INIT_DEFINITIONS

static void
static int
nil_talk(Device *d, Uint8 b0, Uint8 w)
{
	return 1;
}

static void


@@ 41,6 42,12 @@ trigger_main_loop_callback(int b)
}

int
uxn_halt(Uxn *u, Uint8 error, char *name, int id)
{
	return 0;
}

int
main(void)
{
	for(int i = 0; i < 33; ++i)


@@ 48,16 55,16 @@ main(void)

	Uxn u;

	bootuxn(&u);
	uxn_boot(&u);
	memcpy(u.ram.dat + 0x100, uxn_boot_rom, sizeof(uxn_boot_rom));

	UXN_INIT_CALLS;

	for(int i = 0; i < 16; ++i)
		if(u.dev[i].talk == NULL)
			portuxn(&u, i, "empty", nil_talk);
			uxn_port(&u, i, nil_talk);

	if(!evaluxn(&u, 0x100))
	if(!uxn_eval(&u, 0x100))
		reset_usb_boot(0, 0);

	for(;;) {