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 HPIB channels. I made my1st SCADA design with that supervising almost 200 I/O channels both analog and digital using an HP smart terminal (HP 9845A) setup like an Excel (before its time) 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:
I only used HPBasic in the late 70's. Very powerful for communicating between many HP/Tek instruments on HPIB channels.
HPBasic was/is used by many companies. During the HP-Agilent-Key Sight shuffle, many of the servers that held the old files were scrapped. People did not understand that test equipment lasts for years and needs the files to work. I remember when they came for all the old manuals in the building. There must have been a semi-load of old repair and user manuals that went to the dump. They went back to the first meter. I wanted to save them, thousands in dump fees.
techie times have changed
They also "dumped" the engineers (all the workers).
 
People did not understand that test equipment lasts for years and needs the files to work. I remember when they came for all the old manuals in the building.
I think some managers have less ability to plan ahead and consider the consequences than a typical two year old.

One of my engineering customers got a new works manager some years back - they decide the workshops needed tidying and effectively ordered all loose items other than tools and customer work scrapped.

They scrapped all the machine parts that happened to be pulled out of machines being repaired or upgraded! It cost the company some tens of thousands of pounds to get most machines working again. That manager did not last long.
 
I used PEEK and POKE to use and manipulate a large 2 dimensional memory array for 3-D graphics.
 
I think some managers have less ability to plan ahead and consider the consequences than a typical two year old.

One of my engineering customers got a new works manager some years back - they decide the workshops needed tidying and effectively ordered all loose items other than tools and customer work scrapped.

They scrapped all the machine parts that happened to be pulled out of machines being repaired or upgraded! It cost the company some tens of thousands of pounds to get most machines working again. That manager did not last long.

It makes you wonder how these people get the jobs, when they don't have the slightest idea what the job is, or how to do it?.

There was a guy who came out of the army (I've forgotten his name now?), and got a job in complete charge of service and spares for a major TV manufacturer - in under a year the company ceased trading, not least because service and spares all but vanished. So what happened?, he got another job in charge of service and spares at another major TV manufacturer, same result, went bust in under a year.

You'd think his CV would look really bad, but no, a third major TV manufacturer put him in charge as well, bang went a third one.

Never heard of him again, so companies must have eventually noticed the correlation :D
 

Latest threads

Back
Top