Stories
Slash Boxes
Comments

SoylentNews is people

SoylentNews is powered by your submissions, so send in your scoop. Only 15 submissions in the queue.
posted by jelizondo on Friday October 30, @06:13PM   Printer-friendly
from the favorite-fruit-flavored-technology dept.

https://www.raspberrypi.com/news/emulate-apple-ii-on-raspberry-pi/

The Apple II was not the first personal or home computer, but it was part of the iconic 'trinity' of computers that came out in 1977: Apple II, Commodore PET, and TRS-80.
[...]
In designing the Apple II, Steve Wozniak took inspiration from his work on the Breakout arcade game during his time at Atari. It's why the Apple II has colour graphics, support for paddle controllers, and even audio.
[...]
The Apple II included a version of the BASIC language that only supported integer numeric data types: by eschewing floating-point numbers, Wozniak's Integer BASIC, as it was called, processed numbers extremely fast. This made it less than ideal for certain programming tasks, but it was fantastic for video games.
[...]
For Apple II emulation on Raspberry Pi, we are using the LinApple emulator. It's a fork of the AppleWin emulator which was originally created by Mike O'Brien. David Baucum (maxolasersquad) and several other contributors got it running on Linux. You may also want to have a look at audetto's fork of the AppleWin emulator. Because audetto's fork is regularly synchronised with the original AppleWin GitHub repository, it tracks AppleWin features more closely.
[...]
Here's a little BASIC program you can try running. You can either type it into the emulator, or you can find the program in the ch03/AppleIIBasicPrograms.dsk file in the GitHub repository.
[...]
This will draw a small square on screen. Use the W, A, S, and D keys to move it around the screen. The program is quite simple.
[...]
After you run a graphical program, you'll only have a small text area below the graphics mode portion of the emulator screen. You can type the TEXT command and press ENTER to return to text-only mode. You'll also find these commands helpful:

        LIST — lists all the lines of the current BASIC program.
        RUN — runs the current program.
        NEW — erases the current program and lets you start afresh.
        CATALOG — lists all files on the disk image.
        SAVE NAME — saves the current BASIC program under whatever file name you specify.
        LOAD NAME — loads the program with the specified file name.
        CTRL+C — use this key combination to stop a running BASIC program.

Apart from CATALOG, these commands only apply to BASIC programs. Many games are binary executable files that don't include BASIC source.

You can find some fun type-in programs in Lee Fastenau's collection of short programs.
[...]
This tutorial is part of a series of emulation guides in The Raspberry Pi Guide to Retro Gaming — a definitive guide on how to play your favourite games of yesteryear on a Raspberry Pi. You can also find it in the latest issue of Raspberry Pi Official Magazine.


Original Submission

This discussion was created by jelizondo (653) for logged-in users only. Log in and try again!
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1)
  • (Score: 2) by turgid on Friday October 30, @09:32PM (8 children)

    by turgid (4318) Subscriber Badge on Friday October 30, @09:32PM (#1458069) Journal

    On a general purpose computer. See Grand Master Turing for details. And no, you are not compelled to program the Raspberry Pi in Python.

    • (Score: 0) by Anonymous Coward on Friday October 30, @09:39PM (6 children)

      by Anonymous Coward on Friday October 30, @09:39PM (#1458073)

      Ok, emulate anything, eh?

      Shortly after we bought an Apple ][+, we wanted to do some long document wordprocessing jobs. The choice of software wasn't very big, but there were more choices with CP/M than there were on the Apple. So we bought one of these: https://en.wikipedia.org/wiki/Z-80_SoftCard [wikipedia.org] Worked nicely for years, produced thousands of pages of documents (lots of typing!)

      Let me know when there's an emulator for that combination...

      • (Score: 2, Offtopic) by JoeMerchant on Saturday October 31, @01:49AM (3 children)

        by JoeMerchant (3937) on Saturday October 31, @01:49AM (#1458097) Journal

        >Let me know when there's an emulator for that combination...

        Hey, Claude...

        One of the bigger shortcomings of those early CRT monitor computers, especially the ones that used RF modulation to dual purpose a normal TV as a monitor, was the lack of resolution. Many displays were only 40 characters wide when legible, or 80 characters wide if you could squint well enough to differentiate the characters shown so small.

        When the IBM PCs were starting to dominate, in my opinion the legible 80+ column text displays they could do was their killer feature.

        --
        🌻🌻🌻🌻✌️ [google.com]
        • (Score: 0) by Anonymous Coward on Saturday October 31, @03:44AM (1 child)

          by Anonymous Coward on Saturday October 31, @03:44AM (#1458106)

          > ... legible 80+ column text displays

          Before the IBM-PC, we had a CP/M system on loan from a customer. It came with an Ann Arbor terminal that would do up to 80 chars x 60 lines of easy to read text. Not sharp/crisp like displays now, but very readable for a CRT. Nice description in the manual, https://vt100.net/annarbor/aaa-ug/section1.html#S1.1 [vt100.net]

          • (Score: 2) by JoeMerchant on Saturday October 31, @12:48PM

            by JoeMerchant (3937) on Saturday October 31, @12:48PM (#1458125) Journal

            In our high school in 1982-3 we had some "pro" computer cast-off donation from a lawyer's office donated to the school and I believe it too had a dedicated CRT which might have been 80 column capable. All I remember about it for sure is that it had/used 2 8" floppy drives and I'm pretty sure we were programming it in BASIC. I went "on a hunt" for the character set bitmap in program accessible memory, decoding the bytes into 8 columns of X for 1, . for 0 bits but I never did find any part of memory that carried a simple bitmap of the ASCII character set the way the typical Apple / TRS / Commodore / Atari machines of the day did - they may have had a more specialized display controller driving the screen differently, but I'm almost certain it was still an 8 bit processor with a 16 bit address space like the rest.

            --
            🌻🌻🌻🌻✌️ [google.com]
        • (Score: 4, Insightful) by Rich on Saturday October 31, @04:05AM

          by Rich (945) on Saturday October 31, @04:05AM (#1458107) Journal

          If you had a data monitor, 80 columns were just fine. In Europe, the Woz' NTSC abuse didn't work. We would have needed a PAL card and some external modulator to use a regular TV. So, rather than getting the expensive PAL card AND an expensive TV, about everyone got a green or amber data monitor. The only color artifact era Apple II I remember had an imported NTSC screen (and was modded to US timing accordingly, or a US machine in the first place).

          The "standard" 80 column card in Europe was a "Videx" clone (plus a lower-case mod for the Rev.7+ keyboard). 6845 controller, snow on memory access, loop-through or hard switch. Mine had the luxury of a soft switch for the loop, but it was very tight with the monitor adjustment whether the vertical catch was stable. In retrospect, it would have been much nicer if the standard had been developed with a timing like the //e had. This didn't occur to me back then, much as it didn't that such a card could have had //e like DHGR (possibly with better color), or even that one could run a 2-monitor setup to work on the software on one screen while the application graphics were on the other. I guess the 4 lines of text below HGR did the job well enough to not have to think about it.

      • (Score: 2) by turgid on Sunday November 01, @09:44AM (1 child)

        by turgid (4318) Subscriber Badge on Sunday November 01, @09:44AM (#1458222) Journal

        My point is that computers are so fast nowadays, any computer from the last century that you might want to emulate on standard PeeCee hardware will probably run faster than the original. In 1996 I build an Intel Pentium 100 with 32MB RAM and put Linux on it. I discovered the Free Unix Spectrum Emulator and ran Jet Set Willy on it. The emulation, even on a Pentium 100, was far faster than the original 8-bit micro by a large margin. I seem to remember some time in the late 80s/early 90s there was a 286 PeeCee emulator for the Atari ST (Motorola 68000) that was actually as fast as an IBM AT (not hard since IBM PeeCees were notoriously slow, hence lunch eaten by the likes of Compaq).

        I ran the ancient Byte Unix Benchmarks on my 12-core/24-thread Ryzen, 32GB RAM, and it seems that each core is about 100 times as fast (on those benchmarks) as the Pentium 100. So, overall the machine is about 1000 times as fast as the P100 if you can keep all 12 cores fed. I have shell scripts that do that.

        I wonder what Cray supercomputers you can emulate at up to or faster than full speed nowadays on a reasonably-priced laptop (say under £1000)?

        • (Score: 2) by Freeman on Monday November 02, @05:10PM

          by Freeman (732) on Monday November 02, @05:10PM (#1458349) Journal

          Even decades old PCs were too fast to run software that relied on the clockrate. Nowadays, you can typically just run it in DOSBox and choose what speed you want to run it at. I only ever ran across games that were affected by this. I'm sure other software was as well, but generally I was interested in the games.

          --
          Joshua 1:9 "Be strong and of a good courage; be not afraid, neither be thou dismayed: for the Lord thy God is with thee"
    • (Score: 4, Interesting) by VLM on Saturday October 31, @09:13PM

      by VLM (445) on Saturday October 31, @09:13PM (#1458173)

      Line rate original speed or better is pretty cool. Also small and cheap. The real hotness in the retrocomputing space isn't super expensive raspi but emulating "stuff" on a cheap $3 ESP32.

      FABGL is an absolute beast at connecting to physical ports on a ESP-32 like VGA and keyboard. All you need in addition is a relatively smaller simpler emulation core for a Z80 running CP/M or whatever.

      Personally, I want a PDP-11 laptop. RSX-11M on a laptop

(1)