MarkMaunder dot com

Apple Basic emulator in Javascript

I started programming on an Apple IIe at around age 11 and if you too enjoy reminiscing, check out Joshua Bell’s Apple Basic emulator implemented in Javascript.

Since my move (back) to using Apple I think my code has improved – if nothing else then from a feeling of happy nostalgia.

…And I couldn’t help myself. I wrote a similar program as a kid – except back then we had a green monochrome screen.

10 HOME : HGR
20 W = 279 : H = 159
25 C = 1
30 FOR I = 0 TO 1 STEP 0.005
40 HCOLOR= C / 10
45 C = C + 1
46 IF C > 160 THEN C = 1
50 HPLOT W / 2,H TO W * I,0
60 NEXT

Leave a Comment

Your email address will not be published. Required fields are marked *

My name is Mark Maunder. I've been blogging since around 2003 when I started on Movable Type and ended up on WordPress which is what I use to publish today. With my wife Kerry, I'm the co-founder of Wordfence which protects over 5 million WordPress sites from hackers and is run by a talented team of 36 people. I'm an instrument rated pilot and I fly a Cessna 206 along with a 1964 Cessna 172 in the Pacific Northwest and Colorado. I'm originally from Cape Town, South Africa but live in the US these days. I code in a bunch of languages and am quite excited about our emerging AI overlords and how they're going to be putting us to work for them.