+ Reply to Thread
Results 1 to 5 of 5

Thread: LOAD "*",8,1

  1. #1
    klicker's Avatar
    klicker is offline Super Moderator
    Join Date
    Oct 2008
    Posts
    517

    Default LOAD "*",8,1

    I am following the loading and saving tutorial and I see you have there the following BASIC command to load a program:

    LOAD "MYPROGRAM",8

    I remember from my Commodore 64 BASIC days that I would always type in

    LOAD "*",8,1

    to load a program, though I never knew what it meant at the time. Can you please explain the difference between the 2 commands?

  2. #2
    chronodev's Avatar
    chronodev is offline Founder
    Join Date
    Oct 2008
    Location
    California
    Posts
    2,264

    Default

    Quote Originally Posted by klicker View Post
    I am following the loading and saving tutorial and I see you have there the following BASIC command to load a program:

    LOAD "MYPROGRAM",8

    I remember from my Commodore 64 BASIC days that I would always type in

    LOAD "*",8,1

    to load a program, though I never knew what it meant at the time. Can you please explain the difference between the 2 commands?
    Ah, LOAD "*",8,1

    I used to type that a lot (and still do). Anybody who grew up on a Commodore 64 could probably type this up with their eyes closed

    Anyway I am going to get to it in detail in more advanced modules. In a nutshell, the asterix "*" refers to the first program on a disk. Most disks had 1 game and you could just type in LOAD "*",8,1 without having to remember how to spell the name or anything. If, however, the disk had more than 1 game, sometimes you would type in LOAD "$",8,1 to see the directory, and then you would load the game you wanted.

    LOAD "*",8,1 would if so load the game into memory, and would also in most occasions (especially commercial games) would execute the program automatically without you having to type RUN. LOAD "*",8 (without the comma one afterwards) would not execute the program automatically (some games would not work at all if you issued the load command without the comma one)

    The difference between the writing the command with or without the ,1 is the position the game gets loaded into memory. This is an advanced topic that will be covered in a later module, so don't worry about it now if the above explanation made no sense to you

    Just understand for now that LOAD "*",8,1 loads the first program on Disk and (sometimes) executes it. For the programs you are currently writing, use LOAD "*",8 (if it happens to be the first program on the disk) or LOAD "MYPROGRAM",8 (replace MYPROGRAM with the name of your program)
    Last edited by chronodev; 12-03-2008 at 12:20 AM.
    chronodev
    Founder, RarityGuide.com
    "We're so busy watching out for what's just ahead of us that we don't take time to enjoy where we are." -Calvin & Hobbes

  3. #3
    wheelbarrow's Avatar
    wheelbarrow is offline Uncommon
    Join Date
    Nov 2008
    Posts
    75

    Default

    Quote Originally Posted by chronodev View Post
    Ah, LOAD "*",8,1

    I used to type that a lot (and still do). Anybody who grew up on a Commodore 64 could probably type this up with their eyes closed

    Anyway I am going to get to it in detail in more advanced modules. In a nutshell, the asterix "*" refers to the first program on a disk. Most disks had 1 game and you could just type in LOAD "*",8,1 without having to remember how to spell the name or anything. If, however, the disk had more than 1 game, sometimes you would type in LOAD "$",8,1 to see the directory, and then you would load the game you wanted.

    LOAD "*",8,1 would if so load the game into memory, and would also in most occasions (especially commercial games) would execute the program automatically without you having to type RUN. LOAD "*",8 (without the comma one afterwards) would not execute the program automatically (some games would not work at all if you issued the load command without the comma one)

    The difference between the writing the command with or without the ,1 is the position the game gets loaded into memory. This is an advanced topic that will be covered in a later module, so don't worry about it now if the above explanation made no sense to you

    Just understand for now that LOAD "*",8,1 loads the first program on Disk and (sometimes) executes it. For the programs you are currently writing, use LOAD "*",8 (if it happens to be the first program on the disk) or LOAD "MYPROGRAM",8 (replace MYPROGRAM with the name of your program)
    Wanted to add to what Chronodev said. You can also use LOAD "*",8,1 to load the last program you loaded. So for example if you do a LOAD "MYPRGORAM",8,1 and then let's say you clear the memory with NEW and then you type in LOAD "*",8,1 it will load MYPROGRAM even if it is not the first program on disk since that was the last program you loaded.

  4. #4
    chronodev's Avatar
    chronodev is offline Founder
    Join Date
    Oct 2008
    Location
    California
    Posts
    2,264

    Default

    Quote Originally Posted by wheelbarrow View Post
    Wanted to add to what Chronodev said. You can also use LOAD "*",8,1 to load the last program you loaded. So for example if you do a LOAD "MYPRGORAM",8,1 and then let's say you clear the memory with NEW and then you type in LOAD "*",8,1 it will load MYPROGRAM even if it is not the first program on disk since that was the last program you loaded.
    That's correct, and if you want to force loading of the first program on disk AFTER you've already loaded something else, you prepend a colon before the asterix, like this:

    LOAD ":*",8,1
    chronodev
    Founder, RarityGuide.com
    "We're so busy watching out for what's just ahead of us that we don't take time to enjoy where we are." -Calvin & Hobbes

  5. #5
    Macca_96 is offline Very Common
    Join Date
    May 2011
    Posts
    2

    Default Re: LOAD "*",8,1

    You can also use LOAD "S*",8,1. This will load the first program that starts with the letter S or any other letter you use

 

 




All times are GMT -7. The time now is 03:11 PM. Copyright (c) 2008 - 2011 RarityGuide, Inc. All rights reserved. All trademarks and copyrights are the property of their respective owners.