mirror of https://git.sr.ht/~rabbits/uxn
Minor updates
This commit is contained in:
parent
ba50624994
commit
f334086721
1
build.sh
1
build.sh
|
@ -36,6 +36,7 @@ else
|
||||||
CORE='src/uxn-fast.c'
|
CORE='src/uxn-fast.c'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Building.."
|
||||||
cc ${CFLAGS} src/uxnasm.c -o bin/uxnasm
|
cc ${CFLAGS} src/uxnasm.c -o bin/uxnasm
|
||||||
cc ${CFLAGS} ${CORE} src/devices/ppu.c src/devices/apu.c src/uxnemu.c ${UXNEMU_LDFLAGS} -o bin/uxnemu
|
cc ${CFLAGS} ${CORE} src/devices/ppu.c src/devices/apu.c src/uxnemu.c ${UXNEMU_LDFLAGS} -o bin/uxnemu
|
||||||
cc ${CFLAGS} ${CORE} src/uxncli.c -o bin/uxncli
|
cc ${CFLAGS} ${CORE} src/uxncli.c -o bin/uxncli
|
||||||
|
|
|
@ -41,7 +41,7 @@ static const char *errors[] = {"underflow", "overflow", "division by zero"};
|
||||||
int
|
int
|
||||||
haltuxn(Uxn *u, Uint8 error, char *name, int id)
|
haltuxn(Uxn *u, Uint8 error, char *name, int id)
|
||||||
{
|
{
|
||||||
fprintf(stderr,"Halted: %s %s#%04x, at 0x%04x\n", name, errors[error - 1], id, u->ram.ptr);
|
fprintf(stderr, "Halted: %s %s#%04x, at 0x%04x\n", name, errors[error - 1], id, u->ram.ptr);
|
||||||
u->ram.ptr = 0;
|
u->ram.ptr = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue