A quick note on serial loading and saving..

Post your PE6502 usage suggestions/questions, and also topics related to PE6502 software here.

Moderator: Corneleous

A quick note on serial loading and saving..

Postby Corneleous » Sat Nov 04, 2017 10:51 am

Folks, the question has come up- how do you load programs, or save programs, with a PE6502?

Right now (while we're still working on other interfaces, like the Compact Flash harddrive, and a tape drive interface) we'll have to use the serial interface. This is OK, because it works well! :-)

TeraTerm (or any other terminal program of your choice- but we use TeraTerm so we can pass along the proper settings) can be used to send a program into the PE6502.
You can send already written programs, or programs you get from friends. You can also write code in a text file, and send this as well- I've done this with a few bubblesort BASIC programs.

Here's how the programs go into the proper spot in memory: If the program you're sending is in machine code (like the MicroChess program,) each line has the memory address of where to put the code. You must be in the monitor program (-aka- "WozMon", which is what is running at power on) to load a machine code program, and the program sent from TeraTerm is just as if you had a robot type the whole program in super fast.. I.E., the monitor can accept a memory address, then contents to store at that location.. For a BASIC program loaded from TeraTerm, you'll have to be in either BASIC interpreter, and then the program listing is entered by TeraTerm instead of the keyboard. BASIC automatically handles where to put the program in RAM for you.

The same interface works for Saving (sending a program from the PE6502 to TeraTerm) as well. For BASIC, you'd simply ensure the serial connection was up/TeraTerm connected, and then list the BASIC program. Then copy that listing from the TeraTerm output screen, and save to a text file. You can do the same with a machine code program too; for example, to list a machine code program from address location $400 to $4FF, type at the WozMon prompt (and afterwards press enter): 400.4FF

This will list the contents of RAM in that address range, which you can copy from TeraTerm and put into a text file.

Hope this helps!
-=-=-=-=-=-=-=-=-=-
Jason Putnam
putnamelectronics
-=-=-=-=-=-=-=-=-=-
Corneleous
 
Posts: 29
Joined: Sat Sep 30, 2017 4:53 pm
Location: East Coast, USA

Return to PE6502 Single Board Computer - Usage and Software

Who is online

Users browsing this forum: No registered users and 5 guests