We need to adjust by the load page *after* we have checked for zero.
* UZI binaries).
*/
if (buf[3] == 'F' && buf[4] == 'Z' && buf[5] == 'X' && buf[6] == '1') {
- top = buf[8] | ((unsigned int)buf[9] << 8) - PROGLOAD;
+ top = buf[8] | ((unsigned int)buf[9] << 8);
if (top == 0) /* Legacy 'all space' binary */
top = ramtop;
+ else /* Requested an amount, so adjust for the base */
+ top += PROGLOAD;
emu_ino = 0; // no emulation, thanks
/* Don't load binaries for the wrong base page, eg spectrum
binaries on a sane box */