commanderx16 / x16-rom

Other
153 stars 44 forks source link

LOAD does not correctly honor ,1 flag #192

Closed tomxp411 closed 3 years ago

tomxp411 commented 3 years ago

I've discovered that when LOADing a BASIC program written on the Commodore 128 (and presumably the PET), the program always loads back to $1C01, even if I do not use ,1 when loading the program.

for example:

  LOAD "TEST1.PRG",8
  SEARCHING FOR TEST1.PRG
  LOADING FROM $1C01 TO $1C35
  READY.

I would expect the above example to load to $0801, regardless of the start address in the file, since I did not append ,1 to the LOAD command.

The bug came up as part of this discussion on the forum: https://www.commanderx16.com/forum/index.php?/topic/1197-how-to-detect-commander-x16-basic-vs-eg-commodore/#comment-8880

greg-king5 commented 3 years ago

See Pull Request #173.

mist64 commented 3 years ago

Fixed on master.