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.24, 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
bse wi|ri|wx|rx|ws|rs|rc f|d addr [hit]
Set EVENT Breakpoint
bde wi|ri|wx|rx|ws|rs|rc addr
Delete EVENT Breakpoint
ba Delete all breakpoints
dis [start [offset [lines]]]
Disassemble code
dc [start [stop]] Dump code in disass form
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'
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
----
Set of new commands:
conf Configuration
In command reference you can find more
information about breakpoints and execution of the simulated program.
state State of simulator
file "FILE" Load FILE into ROM
info Information
get Get
set Set
timer a|d|g|r|s|v id [value]
Timer add|del|get|run|stop|value
run Go
step Step
reset Reset
dump i|x|r|s [start [stop]]
Dump memory
di [start [stop]] Dump Internal RAM
dx [start [stop]] Dump External RAM
dch [start [stop]] Dump code in hex form
break addr [hit] Set fix breakpoint
tbreak addr [hit] Set temporary breakpoint
clear [addr...] Clear fix breakpoint
quit Quit
>