mirror of
https://github.com/rkujawa/rk65c02.git
synced 2024-12-11 18:49:16 +00:00
Print debug message before loading ROM.
This commit is contained in:
parent
85a53f89c8
commit
a98c8f1018
@ -164,6 +164,8 @@ bus_load_file(bus_t *t, uint16_t addr, const char *filename)
|
|||||||
int fd;
|
int fd;
|
||||||
uint8_t data;
|
uint8_t data;
|
||||||
|
|
||||||
|
rk65c02_log(LOG_DEBUG, "Loading file %s at %x.", filename, addr);
|
||||||
|
|
||||||
fd = open(filename, O_RDONLY);
|
fd = open(filename, O_RDONLY);
|
||||||
if (fd == -1) {
|
if (fd == -1) {
|
||||||
rk65c02_log(LOG_ERROR, "Problem while trying to open file: %s",
|
rk65c02_log(LOG_ERROR, "Problem while trying to open file: %s",
|
||||||
@ -177,8 +179,6 @@ bus_load_file(bus_t *t, uint16_t addr, const char *filename)
|
|||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
rk65c02_log(LOG_DEBUG, "Loaded file %s at %x.", filename, addr);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user