Skip to content

Commit

Permalink
Quick fix for #1
Browse files Browse the repository at this point in the history
  • Loading branch information
min-infcof committed Feb 11, 2021
1 parent b2d1260 commit 5cf4f8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emulator/devices/utilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void load_bootloader(uint16_t virt_addr)
int load_firmware(Emulator *emu, char *file_name, uint16_t virt_addr)
{
uint32_t size, result;
char str[100] = {0};
char str[277] = {0};

sprintf(str, "Loading firmware: ( %s )\n", file_name);

Expand Down Expand Up @@ -79,6 +79,7 @@ int load_firmware(Emulator *emu, char *file_name, uint16_t virt_addr)
print_console(emu, str);

fclose(fd);
return 0;
}

uint16_t *get_stack_ptr(Emulator *emu)
Expand Down
2 changes: 2 additions & 0 deletions emulator/python/py_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ void start_emu(char *file) {
setup_port_1(emuInst);
setup_usci(emuInst);

print_console(emuInst, " [MSP430 Emulator]\n Copyright (C) 2020 Rudolf Geosits ([email protected])\n");

load_bootloader(0x0C00);
if(load_firmware(emuInst, file, 0xC000) == 0) {
// display_registers(emuInst);
Expand Down

0 comments on commit 5cf4f8c

Please sign in to comment.