Jump to content
rpiguy9907

Apple IIGS newb question - BASIC

Recommended Posts

I am not actually a newb to the IIGS, Ive owned and used one for years BUT Ive never tried programming on it and I finally have some time to look into it and have a couple of questions:

 

I presume the BASIC in ROM is identical to AppleSoft BASIC in other Apple IIs (no support for added memory, etc.)?

 

But it will still work in fast mode right? Could be fun to try some slow BASIC games on a system a little faster than the other Apple IIs.

 

What are my other options for BASIC? Are any of the options mostly Microsoft compatible?

 

Thank you for any tips!

Edited by rpiguy9907

Share this post


Link to post
Share on other sites

It's the same version of Applesoft BASIC as on the Enhanced //e and //c. It will run at whatever speed the CPU's set to (there's a poke if you really need to flip it at runtime).

Share this post


Link to post
Share on other sites

Like the Usotsuki said, BASIC programs will run at whichever CPU speed you set, fast or slow. The setting affects the Apple II layer as a whole, not just machine-languae programs.

 

What are my other options for BASIC? Are any of the options mostly Microsoft compatible?

 

Applesoft BASIC is very similar to Microsoft BASIC, and in fact that's where the "soft" in the name comes from. Most if not all of the differences come from the extensions added to Applesoft for things like graphics and character positioning, so odds are a program written purely in Microsoft BASIC will work fine on the Apple.

 

There is also Integer BASIC, which was the standard BASIC on the original Apple II, and can be loaded into any Apple II afterward, IIGS included. Integer BASIC is very limited compared to Applesoft BASIC and so there isn't much reason to tinker with it, but sometimes you'll find a really old program from the II/II+ era written in Integer, so it's good to have around just in case.

Share this post


Link to post
Share on other sites

Like the Usotsuki said, BASIC programs will run at whichever CPU speed you set, fast or slow. The setting affects the Apple II layer as a whole, not just machine-languae programs.

 

 

 

You guys ever played, "Galaxy!"? Its all applesoft with a few routines poked in for sound. I have no real idea why, but it won't run properly at high speed, it seems to lose variable values.

 

A

Share this post


Link to post
Share on other sites

 

You guys ever played, "Galaxy!"? Its all applesoft with a few routines poked in for sound. I have no real idea why, but it won't run properly at high speed, it seems to lose variable values.

 

A

The Avalon Hill game?

I wonder if it doesn't implement some sort of timer in the assembly code

Share this post


Link to post
Share on other sites


ca65 V2.14 - Git b926301
Main file : slowgs.a65
Current file: slowgs.a65

000000r 1 .org $0300
000300 1 38 slowgs: sec ; are we a IIgs?
000301 1 20 1F FE jsr $FE1F ; clears carry on GS, NOP on all other models
000304 1 ; (also handled correctly by Laser 128)
000304 1 B0 15 bcs @1 ; not a GS, so just exit out of the function
000306 1 AD 36 C0 lda $C036 ; lock CPU to 1 MHz
000309 1 29 7F and #$7F ; CPU high speed bit mask off
00030B 1 8D 36 C0 sta $C036
00030E 1 A9 F0 lda #$F0 ; set text to white (15) on black (0)
000310 1 8D 22 C0 sta $C022
000313 1 AD 34 C0 lda $C034 ; set border to black (0)
000316 1 29 0F and #$0F ; don't touch the other nibble
000318 1 8D 34 C0 sta $C034
00031B 1 60 @1: rts
00031B 1

 

Edited by The Usotsuki

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...