8k Apple I ASCII Graphics Lunar Lander (With ACI Audio Hack)

9 replies [Last post]
Offline
Joined: Oct 9 2011
Posts: 643

This is a highly modified version of Lunar Lander (Rocket) from 101 Basic Computer Games, where the original has no graphics, this has ASCII graphics with a lot of hidden effects
This will run on an 8k Apple-1 or Mimeo with Basic loaded

If you don't have the ACI output hooked up to a pre-amp or digital buffer and a speaker or are going to try an emulator that doesn't support the ACI audio hack, just remove all the GOSUB's to the 900 range… But I kinda like the sound when you run out of fuel

Don't forget the LOMEM=768

Enjoy…

For the audio WAV file use the following ACI memory load settings....
004A.00FFR 0300.0FFFR

Apple I Lunar Lander Code
WAVE File to load on Apple I ACI

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Offline
Joined: Oct 9 2011
Posts: 643
Re: 8k Apple I ASCII Graphics Lunar Lander (With ACI Audio Hack)

My son suggested this change if you want a less busy DIGBY screen in the game....

489 TAB (X): IF X=Y1 THEN PRINT "^";:IF X#Y1 THEN PRINT ".";:B1=1

The joys of basic games, you can easily change them....

So if anyone has any cool changes to lander, please post the code here.... I only ask that you "test" them as I am really bumping against the memory wall on the Apple-1/Mimeo. I had many ideas, but couldn't fit them in.

Offline
Joined: Jun 5 2008
Posts: 239
Re: 8k Apple I ASCII Graphics Lunar Lander (With ACI Audio Hack)

This program will not work as is, with versions Brain Board/Wozanium pack firmware less than version 5.2. There is an issue with the the gosubs 750s in the 900 range (at the end of the program). Those gosubs call directly into the original Cassette interface driver to generate sound. This driver is still present in the Wozanium PROM, but is incompatible with Apple II hardware and will crash the system.

There are several fixes available.

1) remove the call 750s at the end of the program. LInes 900 and 910.

2) Change the pokes in line 999 to call the Wozanium A2 cassette Driver at 0xd0d7:
999 POKE 750,169:POKE 752,32:POKE 753,215:POKE 754,208:POKE 755,96:RETURN

3) If you have a PROM burner, fix the Wozanium cassette driver to work with the A2 hardware by erasing a bit in the PROM - change location 0x01EA in PROM from 0xBC to 0xAC.

4) If you don't have a PROM burner, send your board or prom back to me and I'll erase the bit for you.

With fixes 2, 3 or 4 in place, you can attach a preamp to the cassette output of the Apple 2 and get the same sounds as if you were running on an actual Apple 1. It's kind of funky because the A2 has a built in speaker, which is bypassed, but it works.

If you are running a Wozanium PROM image in an Apple II emulator either:
1) remove the call 750s at the end of the program. Lines 900 and 910.

2) change line 999 to call the Wozanium ACI driver at 0xd1d7:
999 POKE 750,169:POKE 752,32:POKE 753,215:POKE 754,209:POKE 755,96:RETURN

Finally if you don't have a preamp for the cassette output, there is an inexpensive design on my website that will work for this application.
http://www.willegal.net/preamp/preamp.htm

Regards,
Mike Willegal

Offline
Joined: Oct 9 2011
Posts: 643
Re: 8k Apple I ASCII Graphics Lunar Lander (With ACI Audio Hack)

Here is a link to a version (with the . change) that has no audio ACI ROM dependancies so that you can use it on a replica-1 or emulator with out an ACI (i.e. Brain Board/Wozanium pack firmware less than version 5.2)

Link to Apple-1 Lunar Lander code no ACI Audio

Offline
Joined: Jan 27 2012
Posts: 37
Re: 8k Apple I ASCII Graphics Lunar Lander (With ACI Audio Hack)

I sent you a private message. Please check your box.

Offline
Joined: Mar 1 2012
Posts: 9
Re: 8k Apple I ASCII Graphics Lunar Lander (With ACI Audio Hack)

Hi,

Yes, it works well and I also applied the suggested patch to make the screen a little more attractive and I patched my ACI EPROM.

Only, I would like to suggest to change the assemly code a bit, so that the presence of the ACI EPROM is no longer required. In that case it will also work with the "Apple II like soundcard" which was published on one of the forums. I may decide to write that patch myself, as the same article has some example code that could be added easily.

A big advantage would be that the code would not crash (but only create sound if the ACI or the homebuilt Apple II-like soundcard is there), if no special hardware is present at all..

Best regards,

Peter

Offline
Joined: Oct 9 2011
Posts: 643
Re: 8k Apple I ASCII Graphics Lunar Lander (With ACI Audio Hack)

Do you have a link to the Apple II like sound card for the Apple I?

Offline
Joined: Mar 1 2012
Posts: 9
Re: 8k Apple I ASCII Graphics Lunar Lander (With ACI Audio Hack)

Hi Corey986,

Look here: http://cowgod.org/replica1/replica1-sound.html

Please be aware that in essence the ACI hardware is infact compatible with this design, in the ACI it is also a D flipflop producing the sound. The sound software that works for this card, also works just fine with the ACI.

Test the software from cowgod with your ACI, it should work without any problems.

I tried to adapt your program last night (to generate the sounds without the ACI PROM present, but apparantly, your program is very close to the maximum seize of a basic program, when I just added a few lines I received a "memory full" notification...

Another nice project would be to create a S.A.M. card for the Apple 1 and port the Apple II Software Automatic Mouth software! The hardware is very simple and easy to reproduce!

Best regards,

Peter

Offline
Joined: Oct 9 2011
Posts: 643
Re: 8k Apple I ASCII Graphics Lunar Lander (With ACI Audio Hack)

Peter,

Yes I was very close to the memory limit on an Apple I. If you are not using an Apple I or Mimeo, but a Replica One, you can simply increase the HIMEM for basic. The reason you need the ACI Rom is that I am cheating by reusing the ACI code to save memory. While I have written songs and other stuff using the flip flop in the ACI as a sound card, those programs weren't so close to the memory limit of an 8k Apple I/Mimeo with Basic loaded.

Cheers,
Corey

Offline
Joined: Oct 9 2011
Posts: 643
Re: 8k Apple I ASCII Graphics Lunar Lander (With ACI Audio Hack)

Here is a little change if you want to disable the "Any Key" stops the program when it refreshes and reenable when the program ends... I'm always getting ahead of my self and accidentally stopping the program.

435 GOSUB 950
880 GOSUB 960

950 POKE -6030,234:POKE-6029,234:RETURN
960 POKE -6030,48:POKE-6029,79:RETURN

Should mention, on Brain Board and Replica-1 where Basic is in ROM/PROM, this won't do a thing. This little modification is for Apple-1/Mimeo/Obtronix systems.... and On a Replica-1 which re-draws faster than an Apple-1 it may not even be something you want to do anyway.