Close

Development with Online Assembler, IDE, and Simulator

A project log for MIDI Interface for RC2014

Building MIDI Interface for RC2014. The goal of this project is to build a music system with RC2014 computer and external (legacy) MIDI box

morecatlabmorecat_lab 10/24/2024 at 06:460 Comments

Development with Online Assembler, IDE, and Simulator

I continue to develop programs for the Z80 using ChatGPT. It has become clear that the programs created by ChatGPT contain many errors, and human intervention is necessary to correct them. To confirm these errors, it is most reliable to execute the created program and check the results. Combining small programs makes it easier to detect errors. However, when it comes to the stage of combining programs and verifying their operation, downloading to the actual RC2014 machine takes time.

I discovered that efficiency can be increased by combining online assemblers and simulators. I tried Martin Maly's [ASM80.com](https://www.asm80.com/) (online assembler, IDE, simulator).

The process flow for program development using ChatGPT and ASM80.com is as follows:

  1. Create a program by conversing with ChatGPT.
  2. Copy and paste the completed program into ASM80.com and assemble it. A HEX file is created on the online IDE.
  3. Switch to the CP/M simulator of ASM80.com and load the HEX file created in step 2 into memory. (Since ORG $100 is specified in the assembler, it is loaded into memory from address $100.)
  4. Immediately create a COM file with the SAVE command of CP/M (CCP). 
    • Example: A>SAVE 1 B:TEST.COM
  5. Execute and check the results. 
    • Example: A>B:TEST.COM
  6. By using ZSID.COM, the Z80 debugger, on the A drive, you can also trace the program. 
    • Example: A>ZSID B:TEST.COM

Although not implemented this time, it is also possible to link with a GitHub repository, so you can publish the created program as it is.

(TO BE CONTINUED)

Discussions