uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 7132197ba53b9752dd5d060441038b0c31c89278
parent f88df1a08d2bbdc65eb52b7307d1dbd32846993c
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Sun, 16 May 2021 11:00:53 +0100

Switched load/save print to state length actually loaded/saved

Diffstat:
Msrc/debugger.c | 2+-
Msrc/emulator.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/debugger.c b/src/debugger.c @@ -61,7 +61,7 @@ file_talk(Device *d, Uint8 b0, Uint8 w) FILE *f = fopen(name, read ? "r" : (offset ? "a" : "w")); if(f) { if(fseek(f, offset, SEEK_SET) != -1 && (result = read ? fread(&d->mem[addr], 1, length, f) : fwrite(&d->mem[addr], 1, length, f))) - printf("%s %d bytes, at %04x from %s\n", read ? "Loaded" : "Saved", length, addr, name); + printf("%s %d bytes, at %04x from %s\n", read ? "Loaded" : "Saved", result, addr, name); fclose(f); } mempoke16(d->dat, 0x2, result); diff --git a/src/emulator.c b/src/emulator.c @@ -247,7 +247,7 @@ file_talk(Device *d, Uint8 b0, Uint8 w) FILE *f = fopen(name, read ? "r" : (offset ? "a" : "w")); if(f) { if(fseek(f, offset, SEEK_SET) != -1 && (result = read ? fread(&d->mem[addr], 1, length, f) : fwrite(&d->mem[addr], 1, length, f))) - printf("%s %d bytes, at %04x from %s\n", read ? "Loaded" : "Saved", length, addr, name); + printf("%s %d bytes, at %04x from %s\n", read ? "Loaded" : "Saved", result, addr, name); fclose(f); } mempoke16(d->dat, 0x2, result);