Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Back to the old BASIC days

Nigel Goodwin

Super Moderator
Most Helpful Member
I'm currently having a bit of fun revisiting my younger days :D

I'm sure many of us remember typing in listings out of magazines, and I recently stumbled across this - not quite sure how?.


Anyway, as I started on 6502 I thought I'd have a play (particularly as you can cut and paste rather than typing).

So I downloaded a 6502 emulator PC-BASIC 2.0.7, and gave it a try - bearing in mind I'm not running on actual 6502 hardware, so I've no 6502 machine code to disassemble, and I've no idea where the peek instructions are actually reading?. But I expected it to at least 'work'.

Anyway, needless to say, it didn't go well, if anyone cares to look at the code it's absolutely littered with glaring errors, and I'm still working on it :D
 
How about an emulator? Different than you have.


I don't think it would help, there are some horrible glaring mistakes in the listing - such as using '+' for multiply :D

It's now working fairly well - as far as I can tell - it's been a bit of a struggle, it's been decades since I've used an old style BASIC.
 
Well still playing, as I've no idea what 'peek' does in the BASIC interpreter I'm using, I thought I'd try VICE, running a C64 emulator - unfortunately I can't ctr & paste the code, as the C64 needs it to be in lower case, even though it appears as upper case. So I'm currently retyping it :D - slowly :D
 
PEEK gets the byte located at the specified memory address
POKE sets the memory byte at the specified address.
 
PEEK gets the byte located at the specified memory address
POKE sets the memory byte at the specified address.
I know what they do on the actual hardware, but I've no idea what they do running on a BASIC interpreter on a PC, as it's not emulating actual hardware. Hence I've downloaded a C64 emulator, Vice, and I'm typing the code in to that to see what happens, presumably (as it's an emulator) you can peek the C64 ROM's.
 
I have a 68HC11 with BASIC burned into it. In a homemade Al box. It has not seen power for 35 years.

I've still got my original Tangerine Microtan 65 machine (6502 based), that not seen power for decades either. Last time I tried, LONG!!!!! ago, the lower case chip for the screen display had seemed to have died, so it was upper case only.
 
I aslo started on 6809 and Z80, but there are decent 6502 emulators out there.. it was used in the original game boy.

I think Apple 1 was as well.

Yes, the 6502 was a VERY popular processor, Apple used it extensively, as did Commodore, the BBC, Acorn, Atari, the KIM-1 was a popular 6502 based board as well (many of the old 6502 books were based on the KIM-1). I suppose really the most famous user was Commodore, starting with the PET, then the C64, then Plus-4.
 
I only used HPBasic in the late 70's. Very powerful for communicating between many HP/Tek instruments on HP488 channels. I made my1st SCADA design with that supervising almost 200 I/O channels both analog and digital using an HP smart terminal setup like an Excel read only spreadsheet with inverse video cells for out of tolerance or warning states. The computer was the SoS HP9825 which supported DMA I/O's from a limited distance data set to a remote system a mile away.
 
Last edited:

Latest threads

New Articles From Microcontroller Tips

Back
Top