Skip to content

Commit

Permalink
atari: new Altirra 850 handler and relocator to fix break key crash. …
Browse files Browse the repository at this point in the history
…modem now checks filesize of handler and relocator
  • Loading branch information
mozzwald committed Jan 4, 2025
1 parent d96d4fd commit 36c2669
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Binary file modified data/webui/device_specific/BUILD_ATARI/850handler.bin
100644 → 100755
Binary file not shown.
Binary file modified data/webui/device_specific/BUILD_ATARI/850relocator.bin
Binary file not shown.
11 changes: 5 additions & 6 deletions lib/device/sio/modem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ void modem::sio_poll_3(uint8_t device, uint8_t aux1, uint8_t aux2)
return;

// Get size of handler
int filesize = 1282;
// int filesize = fnSystem.load_firmware(FIRMWARE_850HANDLER, NULL);
int filesize = fnSystem.load_firmware(FIRMWARE_850HANDLER, NULL);

// Simply return (without ACK) if we failed to get this
if (filesize < 0)
Expand Down Expand Up @@ -206,8 +205,8 @@ void modem::sio_poll_1()
*/

// Get size of relocator
// int filesize = fnSystem.load_firmware(FIRMWARE_850RELOCATOR, NULL);
int filesize = 333;
int filesize = fnSystem.load_firmware(FIRMWARE_850RELOCATOR, NULL);

// Simply return (without ACK) if we failed to get this
if (filesize < 0)
return;
Expand Down Expand Up @@ -250,14 +249,14 @@ void modem::sio_send_firmware(uint8_t loadcommand)
if (loadcommand == SIO_MODEMCMD_LOAD_RELOCATOR)
{
firmware = FIRMWARE_850RELOCATOR;
firmware_size = 333;
firmware_size = fnSystem.load_firmware(firmware, NULL);
}
else
{
if (loadcommand == SIO_MODEMCMD_LOAD_HANDLER)
{
firmware = FIRMWARE_850HANDLER;
firmware_size = 1282;
firmware_size = fnSystem.load_firmware(firmware, NULL);
}
else
return;
Expand Down

0 comments on commit 36c2669

Please sign in to comment.