Anybody remember their BASIC?

Discussion in 'Apple Collectors' started by tevion5, Jan 13, 2015.

  1. tevion5 macrumors 68000

    tevion5

    Joined:
    Jul 12, 2011
    Location:
    Ireland
    #1
    So I've been messing with my new Commodore 64 and Apple II, trying to learn a bit of BASIC for fun. I already do C so BASIC is much simpler by comparison. My uncle gave me his C64 with a bunch of peripherals recently including great manuals, documentation and a great BASIC book. I even got a free 1701 from my college they were throwing out!

    I have been making some basic programs and saving them to Cassette. However, I tried to follow one tutorial where they ask you to make a ball bounce around the screen and I can't see where I've gone wrong, but I know I have because I get flying text instead of a ball. :p

    Don't suppose anybody here has an eagle eye for BASIC bugs? :)


    Code:

    Photo 13-01-2015 15 23 42.jpg


    Result:

    Photo 12-01-2015 19 33 08.jpg
     
  2. David Schmidt macrumors 6502

    David Schmidt

    Joined:
    Aug 22, 2006
    Location:
    Southeastern USA
    #2
    I see the bug... but it's particular to the C64, not an Apple. You typed in all their little hints as to how to get cursor movement characters within quotes, but you didn't actually follow their instructions.

    You have to hit the quote character, hit the requested cursor movement key (i.e. see a goofy character appear instead of actually producing cursor movement), then close the quote. It takes some getting used to...
     
  3. tevion5 thread starter macrumors 68000

    tevion5

    Joined:
    Jul 12, 2011
    Location:
    Ireland
    #3
    Oh, so you mean inserting the arrow symbol in place of all the CRSR LEFT and such?

    So would it be like:

    40 PRINT" *(<-)...

    or

    40 PRINT" *<-...

    ?
     
  4. David Schmidt macrumors 6502

    David Schmidt

    Joined:
    Aug 22, 2006
    Location:
    Southeastern USA
    #4
    Cursor manipulation characters

    No good way to represent PETSCII with an ASCII character set. Which is why you have all those typing conventions... you have to learn to parse them in your head not as literals but as commands to do something on the keyboard when in quote mode.
     

    Attached Files:

  5. tevion5 thread starter macrumors 68000

    tevion5

    Joined:
    Jul 12, 2011
    Location:
    Ireland
    #5
    That's a great response! Thanks very much. I'll have to get back and try again with this in mind tomorrow.
     
  6. gkarris macrumors 604

    gkarris

    Joined:
    Dec 31, 2004
    Location:
    "No escape from Reality..."
    #6
    This thread is like a time warp for me.... :eek:

    10 PRINT "HELLO ";
    20 GOTO 10

    :eek:
     
  7. MacTech68 macrumors 68000

    MacTech68

    Joined:
    Mar 16, 2008
    Location:
    Australia, Perth
    #7
    I remember the days of typing in pages and pages of a program out of magazines. Inevitably, you'd make an error (or six). :eek:

    Happy days! :)
     
  8. HereBeMonsters macrumors 6502

    HereBeMonsters

    Joined:
    Jul 5, 2012
    Location:
    Fareham, UK
    #8
    10 PRINT "Hello, what is your name?"
    20 INPUT A$
    30 PRINT A$ "IS GAY"
    40 GOTO 30


    Good times. :)
     
  9. Anonymous Freak macrumors 601

    Anonymous Freak

    Joined:
    Dec 12, 2002
    Location:
    Cascadia
    #9
    Ah, juvinilism at its worst... :rolleyes:
     
  10. ftaok macrumors 601

    ftaok

    Joined:
    Jan 23, 2002
    Location:
    East Coast
    #10
    To be fair, he was probably a juvenile when he was doing BASIC programming.
    ;)
     
  11. HereBeMonsters macrumors 6502

    HereBeMonsters

    Joined:
    Jul 5, 2012
    Location:
    Fareham, UK
    #11
    I was 7 when I first started on a BBC Micro. They replaced them with Windows 95 PCs when I was 13, and I was livid!
     
  12. Anonymous Freak macrumors 601

    Anonymous Freak

    Joined:
    Dec 12, 2002
    Location:
    Cascadia
    #12
    Very true. I managed to avoid that particular strain of juvinilism, but can't say I didn't have my own share of bad habits.
     
  13. HereBeMonsters macrumors 6502

    HereBeMonsters

    Joined:
    Jul 5, 2012
    Location:
    Fareham, UK
  14. QuickDraw macrumors regular

    Joined:
    May 29, 2009
  15. ApplemanY macrumors newbie

    Joined:
    Jan 27, 2015
    Location:
    Cambs UK
    #16
    I remember trying to write an AppleSoft Basic programme to write data to disks.

    We lived in Berkshire, England in thoise days and I tried without success to store town names.... the two largest were Reading and Newbury.

    Unfortunately when we stored Reading it only saw the first four letters and the drive started to run and had to be halted.

    Even worse when we stiored Newbury it wiped the disk and memory!

    We sorted it eventually but it was a pain not knowing basicstuff like that and from then on I left programming to the programmers!

    ApplemanY
     

Share This Page