The simulator can be controlled with a simple monitor program which
uses the command console to read commands and print out results. After
starting the program you see a prompt on the command console and you
can write in commands after the prompt:
$ s51
ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
> h
l file Load (intel hexa) file
dl,do Download (intel hex) data
g [start [stop]] Go
stop Stop
pc [address] Get/set content of PC
s [step] Step
n [step] Next
bs f|d addr [hit] Set FETCH Breakpoint
bse wi|ri|wx|rx|ws|rs|rc f|d addr [hit]
Set EVENT Breakpoint
bd addr Delete FETCH Breakpoint
bde wi|ri|wx|rx|ws|rs|rc addr
Delete EVENT Breakpoint
ba Delete all breakpoints
bl List Breakpoints
dis [start [offset [lines]]]
Disassemble code
dc [start [stop]] Dump code in disass form
dch [start [stop]] Dump code in hex form
di [start [stop]] Dump Internal RAM
dx [start [stop]] Dump External RAM
dr Dump registers
dp Dump ports
ds [addr...] Dump SFR
db addr... Dump bit
si addr data... Set Internal RAM
sx addr data... Set External RAM
sc addr data... Set code (ROM)
ss addr data... Set SFR area
sb addr data... Set bit
sp port data Set port pins
fi start stop data Fill IRAM area with `data'
fx start stop data Fill XRAM area with `data'
fs start stop data Fill SFR area with `data'
fc start stop data Fill ROM area with `data'
res Reset
wi,Wi string Search for `string' in IRAM (Wi case sensitive)
wx,Wx string Search for `string' in XRAM (Wx case sensitive)
wc,Wc string Search for `string' in ROM (Wc case sensitive)
sopt opt value Set value of option
gopt [opt] Get value of option(s)
q Quit
kill Shut down the simulator
show c|w Show licensing information
h,? Help about commands
>
In command reference you can find more
information about breakpoints and execution of the simulated program.