Using a W65c02 Simulator: Write a Byte to any RAM Address |
|
Overview: A portion of the SBC30 code has been sliced and edited as SBC30_TestWRITE_02.asm to show the Write a Byte function that is executed by typing "W" or "w" in the terminal. The user is prompted to enter a 4-digit address followed by the byte they wish to write at that address. An error handling routine has been added so data will not be written to addresses $4000 or higher.
Tester:
Setup: Setup your IDE as shown in the top screenshot. Enable the Input Terminal with an I/O port of $5000. Set the "One-Shot IN Value" to "57" for the letter "W". Within the Input Terminal, click "Send Hex Bytes" and enter "33,46,46,46,33,31" without the quotes. The first 4 hex numbers are the address $3FFF and the last 2 hex numbers are the byte $31 (the number 1) you wish to write. Note that in the live program you would type "1" which would be sent to the terminal as "33" and "31".
Adjust one of the Memory Editors to show address $0200. Adjust a second Memory Editor to show addresses $0300. I usually keep a third Memory Editor open to watch addresses starting at $0100.
App Operation: Using the FlashROM code, here are the keystrokes needed to produce the adjacent lower screenshot: - Press Reset button - w 3FFF 31: Write byte $31 to $3FFF - r 3FFF: Read byte at $3FFF - w 4000 : Write byte to $4000 - Error. Try again. - w 3FFF 32: Write byte $32 to $3FFF
IDE Operation: If you wish to burn the code to flashROM, try this latest build: SBC30_0_R.bin |
Oshonsoft 6502 Simulator IDE (Click to Enlarge)
Sim IDE
ASCII Terminal
|
Updated 2023-09-13 @ 2pm