Skip to content

Commit

Permalink
uxnds 0.3.1 - fixes/updates
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Jul 17, 2021
1 parent ef9e774 commit f20e121
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export TOPDIR := $(CURDIR)
NITRO_FILES :=

# These set the information text in the nds file
GAME_TITLE := uxnds v0.3.0
GAME_TITLE := uxnds v0.3.1
GAME_SUBTITLE1 := tiny virtual machine
GAME_SUBTITLE2 := 23/05/2021
GAME_SUBTITLE2 := 17/07/2021

include $(DEVKITARM)/ds_rules

Expand Down
12 changes: 4 additions & 8 deletions arm9/source/emulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,10 @@ system_talk(Device *d, Uint8 b0, Uint8 w)
void
console_talk(Device *d, Uint8 b0, Uint8 w)
{
if(!w) return;
switch(b0) {
case 0x8: iprintf("%c", d->dat[0x8]); break;
case 0x9: iprintf("0x%02x", d->dat[0x9]); break;
case 0xb: iprintf("0x%04x", mempeek16(d->dat, 0xa)); break;
case 0xd: iprintf("%s", &d->mem[mempeek16(d->dat, 0xc)]); break;
if(w && b0 > 0x7) {
fwrite(&d->dat[b0], 1, 1, stdout);
fflush(stdout);
}
fflush(stdout);
}
#endif

Expand Down Expand Up @@ -150,7 +146,7 @@ audio_talk(Device *d, Uint8 b0, Uint8 w)
c->volume[1] = d->dat[0xe] & 0xf;
c->repeat = !(d->dat[0xf] & 0x80);
apu_start(c, mempeek16(d->dat, 0x8), d->dat[0xf] & 0x7f);
fifoSendValue32(UXNDS_FIFO_CHANNEL, (UXNDS_FIFO_CMD_APU0 + (d - devaudio0))
fifoSendValue32(UXNDS_FIFO_CHANNEL, (UXNDS_FIFO_CMD_APU0 + ((d - devaudio0) << 28))
| ((u32) (&apu)));
}
}
Expand Down

0 comments on commit f20e121

Please sign in to comment.