Announcement

Collapse

Forum etiquette

Our mission ...

This forum is part of our mission to promote the preservation of vintage computers through education and outreach. (In real life we also run events and have a museum.) We encourage you to join us, participate, share your knowledge, and enjoy.

This forum has been around in this format for over 15 years. These rules and guidelines help us maintain a healthy and active community, and we moderate the forum to keep things on track. Please familiarize yourself with these rules and guidelines.


Remain civil and respectful

There are several hundred people who actively participate here. People come from all different backgrounds and will have different ways of seeing things. You will not agree with everything you read here. Back-and-forth discussions are fine but do not cross the line into rude or disrespectful behavior.

Conduct yourself as you would at any other place where people come together in person to discuss their hobby. If you wouldn't say something to somebody in person, then you probably should not be writing it here.

This should be obvious but, just in case: profanity, threats, slurs against any group (sexual, racial, gender, etc.) will not be tolerated.


Stay close to the original topic being discussed
  • If you are starting a new thread choose a reasonable sub-forum to start your thread. (If you choose incorrectly don't worry, we can fix that.)
  • If you are responding to a thread, stay on topic - the original poster was trying to achieve something. You can always start a new thread instead of potentially "hijacking" an existing thread.



Contribute something meaningful

To put things in engineering terms, we value a high signal to noise ratio. Coming here should not be a waste of time.
  • This is not a chat room. If you are taking less than 30 seconds to make a post then you are probably doing something wrong. A post should be on topic, clear, and contribute something meaningful to the discussion. If people read your posts and feel that their time as been wasted, they will stop reading your posts. Worse yet, they will stop visiting and we'll lose their experience and contributions.
  • Do not bump threads.
  • Do not "necro-post" unless you are following up to a specific person on a specific thread. And even then, that person may have moved on. Just start a new thread for your related topic.
  • Use the Private Message system for posts that are targeted at a specific person.


"PM Sent!" messages (or, how to use the Private Message system)

This forum has a private message feature that we want people to use for messages that are not of general interest to other members.

In short, if you are going to reply to a thread and that reply is targeted to a specific individual and not of interest to anybody else (either now or in the future) then send a private message instead.

Here are some obvious examples of when you should not reply to a thread and use the PM system instead:
  • "PM Sent!": Do not tell the rest of us that you sent a PM ... the forum software will tell the other person that they have a PM waiting.
  • "How much is shipping to ....": This is a very specific and directed question that is not of interest to anybody else.


Why do we have this policy? Sending a "PM Sent!" type message basically wastes everybody else's time by making them having to scroll past a post in a thread that looks to be updated, when the update is not meaningful. And the person you are sending the PM to will be notified by the forum software that they have a message waiting for them. Look up at the top near the right edge where it says 'Notifications' ... if you have a PM waiting, it will tell you there.

Copyright and other legal issues

We are here to discuss vintage computing, so discussing software, books, and other intellectual property that is on-topic is fine. We don't want people using these forums to discuss or enable copyright violations or other things that are against the law; whether you agree with the law or not is irrelevant. Do not use our resources for something that is legally or morally questionable.

Our discussions here generally fall under "fair use." Telling people how to pirate a software title is an example of something that is not allowable here.


Reporting problematic posts

If you see spam, a wildly off-topic post, or something abusive or illegal please report the thread by clicking on the "Report Post" icon. (It looks like an exclamation point in a triangle and it is available under every post.) This send a notification to all of the moderators, so somebody will see it and deal with it.

If you are unsure you may consider sending a private message to a moderator instead.


New user moderation

New users are directly moderated so that we can weed spammers out early. This means that for your first 10 posts you will have some delay before they are seen. We understand this can be disruptive to the flow of conversation and we try to keep up with our new user moderation duties to avoid undue inconvenience. Please do not make duplicate posts, extra posts to bump your post count, or ask the moderators to expedite this process; 10 moderated posts will go by quickly.

New users also have a smaller personal message inbox limit and are rate limited when sending PMs to other users.


Other suggestions
  • Use Google, books, or other definitive sources. There is a lot of information out there.
  • Don't make people guess at what you are trying to say; we are not mind readers. Be clear and concise.
  • Spelling and grammar are not rated, but they do make a post easier to read.
See more
See less

Apple II Pascal-Where to Start?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Apple II Pascal-Where to Start?

    OK, 6502 assembly language is fun to learn, but I'm not going to be coding anything fun for quite awhile. So, might as well go back to Pascal. How do I get started doing Pascal programming on an Apple II E or earlier? I tried downloading the files off apple2info.net, but now I need a file named "System.Apple".

    I can't believe programming on an older system is so complicated.

    #2
    This may not help much, but back in the days (in the eighties) I would boot a floppy with UCSD Pascal, and start coding. It had its own editor as I recall. Not too much RAM available with that system loaded so I had four floppy drives at one point, and set it up to swap parts of itself to floppy so that I could squeeze my program into the editor.

    Comment


      #3
      Sounds like a RAM expansion would be the place to start, and maybe an SD card instead of a floppy. Or a SCSI hard drive. Or upgrade to a GS with all of the above.

      Comment


        #4
        There are a four 5.25 disks in the Apple Pascal sets. It's possible to build a 3.5 disk containing the complete Pascal 1.3 environment.

        For Pascal 1.0/1.1/1.2, you need at least the apple1: (boot) and apple0: (program) disks.

        Here's a good page with a link to the manuals and disk images: http://apple2info.net/index.php?title=Apple_II_Pascal

        Page 147 of the Apple 2 Pascal Language Reference guide covers a single drive startup (boot from apple1:, then swap it for apple0: ). For a two drive system, put apple1: in drive 1, apple2: in drive 2.

        A great guide to Pascal on the apple 2 is available for download here: http://apple2online.com/web_document...nual%20KBS.pdf

        More books here: http://apple2online.com/index.php?p=...ming-Languages
        Last edited by HoJoPo; February 10, 2015, 10:06 PM.

        Comment


          #5
          Where can I locate the Apple 1 and Apple 0 disks?
          Is Pascal practical for Apple II programming? I read that "Wizardry" was coded in that language, so it can't be THAT limited.

          Comment


            #6
            Originally posted by Mister_Alex View Post
            Where can I locate the Apple 1 and Apple 0 disks?
            Is Pascal practical for Apple II programming? I read that "Wizardry" was coded in that language, so it can't be THAT limited.
            The link to apple2info.net above has both the manuals and the disk images. You'll probably want to use Pascal 1.2 on a //e.

            As for practical, it is fairly powerful, but slower than assembly. As it runs on a virtual machine (P-code), it is slower than native compiled code from another version of Pascal would be.

            Comment


              #7
              What type of programs are you planning to write? Apple Pascal is derived from UCSD Pascal which was used to create lots of software in the early 80s. It is less than ideal for arcade style games but the graphics are adequate if trying something like Wizardry or creating charts.

              Advantages:
              An early IDE so execution can take place inside the editor
              Great manuals
              Large stand alone executables require less memory than you might expect.

              Disadvantages:
              Well, you have seen the major one, the need for multiple disks. If you don't have multiple drives, the swapping will get old. 3.5" drive makes it nicer.
              It can be slow.
              Pascal is a teaching language so it forces structure on the code which may hamper on the fly creation.
              The disk format is weird.

              Comment


                #8
                I can download the four disks for Pascal okay, but when I try to run them on Virtual II I get an error: No File System.Apple. What do I need now?

                I am not aiming to do arcade games. Just find something productive for my excessive free time.

                Comment


                  #9
                  Originally posted by Mister_Alex View Post
                  I can download the four disks for Pascal okay, but when I try to run them on Virtual II I get an error: No File System.Apple. What do I need now?

                  I am not aiming to do arcade games. Just find something productive for my excessive free time.
                  Be sure you have the Apple1: image in slot 6, drive 1 of the emulator, that's the boot disk, and should contain system.apple. Since you're in an emulator, put the Apple2: image in slot 6, drive 2.

                  Comment


                    #10
                    Okay. I fire up the Virtual II with an Apple II E.ROM as its default. Next, I Insert Diskette into Slot 6, Drive 2. The error doesn't appear anymore, but now nothing is happening. Do I need to convert Apple II E.ROM into a .DSK?

                    Comment


                      #11
                      Originally posted by Mister_Alex View Post
                      Okay. I fire up the Virtual II with an Apple II E.ROM as its default. Next, I Insert Diskette into Slot 6, Drive 2. The error doesn't appear anymore, but now nothing is happening. Do I need to convert Apple II E.ROM into a .DSK?
                      You need the Apple1: image in slot 6, drive 1 AND the Apple2: image in slot 6, drive 2. Slot 6 drive 1 is the boot drive, apple1: is the boot disk.

                      On a //e, if there is no readable disk in slot 6 drive 1, it will just sit at the "Apple ][" or "Apple //e" screen looking for a disk to boot from....

                      Comment


                        #12
                        Where can I find an Apple1: image?

                        Comment


                          #13
                          Originally posted by Mister_Alex View Post
                          Where can I find an Apple1: image?
                          From http://apple2info.net/index.php?title=Apple_II_Pascal as stated earlier.

                          Comment


                            #14
                            This is way too vague. Exactly which files do I need, and what procedure do I take for getting them to work?

                            Comment


                              #15
                              Originally posted by Mister_Alex View Post
                              This is way too vague. Exactly which files do I need, and what procedure do I take for getting them to work?
                              Wow. Did you even bother to look at that page? There are 3 sets of 4 files. Pick a version of PASCAL you want to use. Download the four disk images for that version. They are Apple0 through Apple3. Put Apple1 in slot6 drive 1, put apple2 in slot6 drive 2. Boot the emulator.

                              Comment

                              Working...
                              X