Hi,
What is the format of PRG files that must be loaded with LOAD "*",8?
It seems that using the first two bytes as a start address is wrong.
Thanks!
PRG format for LOAD "*",8
Moderator: Moderators
The first two bytes are always the start address. Loading ,8,1 loads the program into that address. Loading ,8 loads it into the current basic area address instead.
PRG Starter - a VICE helper / Vic Software (Boray Gammon, SD2IEC music player, Vic Disk Menu, Tribbles, Mega Omega, How Many 8K etc.)
-
- Vic 20 Enthusiast
- Posts: 187
- Joined: Wed Sep 13, 2006 3:04 pm
- Mike
- Herr VC
- Posts: 5130
- Joined: Wed Dec 01, 2004 1:57 pm
- Location: Munich, Germany
- Occupation: electrical engineer
,<device> or ,<device>,0 always loads to the start of BASIC memory, regardless of RAM expansion in use. Pure BASIC programs should only be loaded this way.
,<device>,1 forces the LOAD command to load the PRG file at its stored loading address. Most machine code programs only work at a specified address, so this is the preferred way to load machine code.
Michael
,<device>,1 forces the LOAD command to load the PRG file at its stored loading address. Most machine code programs only work at a specified address, so this is the preferred way to load machine code.
Michael
The "*" actually tells the disk drive to load the last program loaded from disk. If you haven't loaded one yet, then it defaults to the first one.Athlor wrote:I though load"*",8
was for loading the first file in the directory irregardless of what it's actually named. Like what's been said above that's not really a different file format just a different form of the load command.
I guess we're getting even further away from the original topic, but yeah, and to force the first file to be loaded, LOAD ":*",8 (and the optional ,1 if you want to force the file to be loaded to it's original saved address)CurtisP wrote:The "*" actually tells the disk drive to load the last program loaded from disk. If you haven't loaded one yet, then it defaults to the first one.