# HG changeset patch # User Michael Pavone # Date 1475813560 25200 # Node ID bc86eaf6699d3578b08517b6cf0a8614bb33f82a # Parent 193db42e702bc6d9a570b4ce89f537d907686de6 Fix some unresolved symbols when linking blastjag diff -r 193db42e702b -r bc86eaf6699d jaguar.c --- a/jaguar.c Thu Oct 06 21:11:58 2016 -0700 +++ b/jaguar.c Thu Oct 06 21:12:40 2016 -0700 @@ -6,6 +6,7 @@ #include "jaguar.h" #include "util.h" #include "debug.h" +#include "config.h" //BIOS Area Memory map // 10 00 00 - 10 04 00 : Video mode/ Memory control registers @@ -22,6 +23,39 @@ // 11 D0 00 - 11 E0 00 : Wave table ROM int headless = 1; +tern_node * config; + +void handle_keydown(int keycode, uint8_t scancode) +{ +} + +void handle_keyup(int keycode, uint8_t scancode) +{ +} + +void handle_joydown(int joystick, int button) +{ +} + +void handle_joyup(int joystick, int button) +{ +} + +void handle_joy_dpad(int joystick, int dpadnum, uint8_t value) +{ +} + +void handle_mousedown(int mouse, int button) +{ +} + +void handle_mouseup(int mouse, int button) +{ +} + +void handle_mouse_moved(int mouse, uint16_t x, uint16_t y, int16_t deltax, int16_t deltay) +{ +} void rom0_write_16(uint32_t address, jaguar_context *system, uint16_t value) @@ -53,6 +87,7 @@ mem_pointers[rom + 1] = system->cart + ((0x200000 & (system->cart_size-1)) >> 1); mem_pointers[rom + 2] = system->cart + ((0x400000 & (system->cart_size-1)) >> 1); system->memcon_written = 1; + printf("MEMCON1 write - ROMHI: %d", value & 1); //TODO: invalidate code cache } system->memcon1 = value; @@ -315,6 +350,8 @@ fputs("Usage: blastjag BIOS ROM\n", stderr); return 1; } + set_exe_str(argv[0]); + config = load_config(argv[0]); uint32_t bios_size; uint16_t *bios = load_rom(argv[1], &bios_size); if (!bios_size) {