Skip to content

Sample session of Supervisor

Yoshitaka Kuwata edited this page Jul 17, 2021 · 4 revisions

preparation

Copy binary/ hex image to micro SD card. Insert micro SD card to card-reader of 6502ctrl.

startup

% sudo cu -s 115200 -l /dev/cu.usbserial-1410

 6502crtl


type help to list available commands
6502ctrl:/>

help

list available commands. Please note not all of the commands are tested enough.

6502ctrl:/>help
available commands:
attach	attach virtual uart
baud	configure UART baud rate
bus	display low-level bus status
break	set breakpoints
cd	change directory
clkdiv	set W6502 clock divider
cls	clear screen
copy	copy a file (alias cp)
debug	debug code at address (alias c)
del	erase a file (alias era, rm)
dir	shows directory listing in long format
disasm	disassembles memory location
dma_debug	enable dma debug
do	execute a batch file
dump	dump memory in hex and ascii (alias d)
fill	fill memory with byte
haltkey	enable halt via keyboard shortcut
help	list available commands
loadbin	load binary file to memory
loadhex	load intel hex file to memory
ls	shows directory listing in wide format
mkdir	create a subdirectory (alias md)
poke	poke values into memory
ren	rename/move a file or directory (alias mv)
run	execute code at address
savebin	save binary file from memory
savehex	save intel hex file from memory
screen	set screen size
step	step processor N cycles (alias s)
watch	set watch points
xmrx	receive a file via xmodem
xmtx	send a file via xmodem

dir

directory listing of SD card

6502ctrl:/>dir
HELLO.BIN    SPOTLI~1/    GAME65.BIN   ECHO.BIN     FSEVEN~1/    UNIMON.HEX   
WOZMON.HEX   _GAME6~1.BIN LOOP.BIN     WOZMON~1.HEX 
10 item(s)

loadbin

load binary into memory @ $0200

6502ctrl:/>loadbin 200 echo.bin

run echo.bin

6502ctrl:/>run 200
input char to echo
Hello World!
Keyboard HALT at $0241  (KEYBOARD INTERRUPT by ^C)

loadhex

load unimon.hex file

6502ctrl:/>loadhex unimon.hex
loading from unimon.hex
loaded 1884 bytes total from f600-ffff

run

run universal monitor

6502ctrl:/>run f600

Universal Monitor 6502
R65C02/W65C02
] D
0000 : 44 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF : D...............
0010 : 00 00 80 00 01 00 00 00 00 53 00 03 00 00 00 FF : .........S......
0020 : 00 00 00 FF FF FF FF FF 28 00 20 00 00 FF FF FF : ........(. .....
0030 : 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 : ................
0040 : FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF : ................
0050 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 : ................
0060 : FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF : ................
0070 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 : ................
] Keyboard HALT at $fd1f   (KEYBOARD INTERRUPT by ^C)
6502ctrl:/>