?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. <html>
  2.   <head>
  3.     <meta content="text/html; charset=ISO-8859-2" http-equiv="content-type">
  4.     <title>Removed commands of &mu;Csim</title>
  5.   </head>
  6.   <body bgcolor="white">
  7.     <h2>Removed commands of &mu;Csim</h2>
  8.     <font color="gray">
  9.       <a name="bse">
  10.         <h3>bse wi|ri|wx|rx|ws|rs|rc f|d addr [hit]</h3>
  11.       </a>
  12.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_bp.html#break">break</a>
  13.         or <a href="cmd_bp.html#tbreak">tbreak</a> instead!!</font>
  14.       <p>Set event breakpoint. First parameter specifies type of event. See <a
  15.           href="#breakpoints">general description of event breakpoints</a> above
  16.         about meaning of event identifiers. Second parameter specify if the
  17.         breakpoint will be fix (<b>f</b>) or dynamic (<b>d</b>). Third
  18.         parameter specifies address. Remember that this is not an instruction
  19.         address, it is address of the memory cell where specified event should
  20.         occur.
  21.       </p>
  22.       <p>Forth parameter is optional and it specifies the hit number. It is
  23.         1 by default.
  24.       </p>
  25.       <pre>$ <font color="#118811">s51 remoansi.hex</font>
  26. ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  27. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  28. This is free software, and you are welcome to redistribute it
  29. under certain conditions; type `show c' for details.
  30. 58659 bytes read from remoansi.hex
  31. &gt; <font color="#118811">dis</font>
  32.    00d47e 22       RET
  33.    000000 02 01 60 LJMP  0160
  34.    000160 c2 90    CLR   P1.0
  35.    000162 c2 97    CLR   P1.7
  36.    000164 d2 b5    SETB  P3.5
  37.    000166 d2 b4    SETB  P3.4
  38.    000168 75 81 22 MOV   SP,#22
  39.    00016b 75 d0 00 MOV   PSW,#00
  40.    00016e 7e 00    MOV   R6,#00
  41.    000170 7f 00    MOV   R7,#00
  42.    000172 79 04    MOV   R1,#04
  43.    000174 12 0d b8 LCALL 0db8
  44.    000177 0f       INC   R7
  45.    000178 d9 fa    DJNZ  R1,0174
  46.    00017a 75 0b 00 MOV   0b,#00
  47.    00017d 75 0c 00 MOV   0c,#00
  48.    000180 02 02 2a LJMP  022a
  49.    000183 78 22    MOV   R0,#22
  50.    000185 76 00    MOV   @R0,#00
  51.    000187 d8 fc    DJNZ  R0,0185
  52. &gt; <font color="#118811">bse wi f 6</font>
  53. &gt; <font color="#118811">g</font>
  54. 4
  55.    000170 7f 00    MOV   R7,#00
  56. &gt; </pre>
  57.       <a name="bde">
  58.         <h3>bde wi|ri|wx|rx|ws|rs|rc addr</h3>
  59.       </a>
  60.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_bp.html#delete">delete</a>
  61.         instead!!</font>
  62.       <p>Delete event breakpoint. First parameter must be given to specify type
  63.         of event. Second parameter is address of memory cell which the
  64.         breakpoint is associated to. Continuing example given above:
  65.       </p>
  66.       <pre>&gt; <font color="#118811">bl</font>
  67. D 2(2) 000180 02 LJMP  022a
  68. F 1(1) 000006 wi
  69. &gt; <font color="#118811">bde ri 6</font>
  70. No ri breakpoint at 000006
  71. &gt; <font color="#118811">bde wi 6</font>
  72. &gt; <font color="#118811">bl</font>
  73. D 2(2) 000180 02 LJMP  022a
  74. &gt; </pre>
  75.       <a name="ba">
  76.         <h3>ba</h3>
  77.       </a>
  78.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_bp.html#delete">delete</a>
  79.         instead!!</font>
  80.       <p>Delete all breakpoints. This command deletes all fetch as well as
  81.         event breakpoints. Be carefull because it does not ask you to confirm
  82.         your intention.
  83.       </p>
  84.       <pre>&gt; <font color="#118811">bl</font>
  85. F 1(1) 000160 c2 CLR   P1.0
  86. D 2(2) 000180 02 LJMP  022a
  87. F 1(1) 000006 wi
  88. &gt; <font color="#118811">ba</font>
  89. &gt; <font color="#118811">bl</font>
  90. &gt; </pre>
  91.       <a name="dp">
  92.         <h3>dp</h3>
  93.       </a>
  94.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#info_hw">info
  95.           hardware</a> instead!!</font>
  96.       <p>Dump out ports. This command shows actual value of ports.
  97.       </p>
  98.       <pre>$ <font color="#118811">s51 remoansi.hex</font>
  99. ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  100. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  101. This is free software, and you are welcome to redistribute it
  102. under certain conditions; type `show c' for details.
  103. 58659 bytes read from remoansi.hex
  104. &gt; <font color="#118811">sopt stopit 1</font>
  105. &gt; <font color="#118811">g</font>
  106. 5
  107.  * 000023 02 01 1c LJMP  011c
  108. &gt; <font color="#118811">dp</font>
  109. P0    11111111 0xff 255 .    P1    11111110 0xfe 254 .
  110. Pin0  11111111 0xff 255 .    Pin1  11111111 0xff 255 .
  111. Port0 11111111 0xff 255 .    Port1 11111110 0xfe 254 .
  112.  
  113. P2    11111111 0xff 255 .    P3    11111111 0xff 255 .
  114. Pin2  11111111 0xff 255 .    Pin3  11111111 0xff 255 .
  115. Port2 11111111 0xff 255 .    Port3 11111111 0xff 255 .
  116. &gt; </pre>
  117.       First lines on the list (labelled with Px) are value of SFRs which are
  118.       internal latch registers. Second lines (labelled with Pinx) are outputs
  119.       of external devices connected to port pins of the
  120.       microcontroller. These values can be set by you using <a href="#sp"><b>sp</b></a>
  121.       command. Third lines (labelled with Portx)
  122.       show actual values can be measured on pins of the device. These values
  123.       are calculated with following pseudo formula:
  124.       <p><tt>Portx= Px AND Pinx</tt>
  125.       </p>
  126.       <p>All three values are displayed in binary, hexadecimal, decimal form
  127.         and then the ASCII character of the value is shown.
  128.         <a name="ds"></a></p>
  129.       <h3><a name="ds">ds [addr...]</a></h3>
  130.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_dump.html#dump">dump</a>
  131.         instead!!</font>
  132.       Print out SFR. This command can be used to get value of all or some
  133.       SFRs. If you do not specify any parameter the <b>ds</b> command simply
  134.       dumps out full SFR area 16 bytes per line.
  135.       <pre>$ <font color="#118811">s51 remoansi.hex</font>
  136. ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  137. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  138. This is free software, and you are welcome to redistribute it
  139. under certain conditions; type `show c' for details.
  140. 58659 bytes read from remoansi.hex
  141. &gt; <font color="#118811">sopt stopit 1</font>
  142. &gt; <font color="#118811">g</font>
  143. 5
  144.  * 000023 02 01 1c LJMP  011c
  145. &gt; <font color="#118811">ds</font>
  146. 000080 ff 2a ba 16 00 00 00 00 55 a1 d7 fe 50 fd 00 00 .*......U...P...
  147. 000090 fe 00 00 00 00 00 00 00 7e 00 00 00 00 00 00 00 ........~.......
  148. 0000a0 ff 00 00 00 00 00 00 00 97 00 00 00 00 00 00 00 ................
  149. 0000b0 ff 00 00 00 00 00 00 00 15 00 00 00 00 00 00 00 ................
  150. 0000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
  151. 0000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
  152. 0000e0 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
  153. 0000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
  154. &gt; <font color="#118811">ds p1 0x87</font>
  155.     P1 fe 254 .
  156. 000087 00   0 .
  157. &gt; <font color="#118811">ds p2 ip scon</font>
  158.     P2 ff 255 .
  159.     IP 15  21 .
  160.   SCON 7e 126 ~
  161. &gt; </pre>
  162.       If you specify one or more parameter the <b>ds</b> command prints out
  163.       value of registers specified by parameters. Parameter can be an
  164.       address or a symbolic name of the register. Note that the simulator
  165.       implements a register at all address in the address space which is not
  166.       true in real microcontroller where reading of an unimplemented
  167.       register gets undefined value. Value of the registers printed out in
  168.       hexadecimal, decimal, and ASCII form.
  169.       <p>Note that different type of controllers can implement different
  170.         registers:
  171.       </p>
  172.       <pre>$ <font color="#118811">s51</font>
  173. ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  174. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  175. This is free software, and you are welcome to redistribute it
  176. under certain conditions; type `show c' for details.
  177. &gt; <font color="#118811">ds rcap2l</font>
  178. &gt; <font color="#118811">q</font>
  179. $ <font color="#118811">s51 -t 52</font>
  180. ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  181. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  182. This is free software, and you are welcome to redistribute it
  183. under certain conditions; type `show c' for details.
  184. &gt; <font color="#118811">ds rcap2l</font>
  185. RCAP2L 00   0 .
  186. &gt; </pre>
  187.       <a name="db">
  188.         <h3>db addr...</h3>
  189.       </a>
  190.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_dump.html#dump">dump</a>
  191.         instead!!</font>
  192.       Dump bits. This command can be used to get value of bits. At least one
  193.       parameter must be given. Bit address can be specified in three
  194.       forms. First of all name of the bit can be used if it has any. Direct
  195.       bit address is accepted too and it can be specified by address of IRAM
  196.       or SFR which contains the bit and bit number within the byte separated
  197.       by a dot. If the requested bit is in an SFR the address of the
  198.       register can be specified by its name.
  199.       <pre>$ <font color="#118811">s51</font>
  200. ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  201. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  202. This is free software, and you are welcome to redistribute it
  203. under certain conditions; type `show c' for details.
  204. &gt; <font color="#118811">db it1 0x20.3 0x43 p2.5</font>
  205. 000088    IT1 0
  206. 000020   20.3 0
  207. 000028   28.3 0
  208. 0000a0   P2.5 1
  209. &gt; </pre>
  210.       Value of bits are printed out one per line. The list starts direct
  211.       address of the bit followed by bit name or address of the memory cell
  212.       or SFR which contains the displayed bit and bit number within the byte
  213.       separated by a dot. At last the value of the bit is shown. Displaying
  214.       a port bit you get value of SFR latch:
  215.       <pre>&gt; <font color="#118811">sp 1 0x0f</font>
  216. &gt; <font color="#118811">ss p1 0x55</font>
  217. 000090 55                                              U
  218. &gt; <font color="#118811">dp</font>
  219. P0    11111111 0xff 255 .    P1    01010101 0x55  85 U
  220. Pin0  11111111 0xff 255 .    Pin1  00001111 0x0f  15 .
  221. Port0 11111111 0xff 255 .    Port1 00000101 0x05   5 .
  222.  
  223. P2    11111111 0xff 255 .    P3    11111111 0xff 255 .
  224. Pin2  11111111 0xff 255 .    Pin3  11111111 0xff 255 .
  225. Port2 11111111 0xff 255 .    Port3 11111111 0xff 255 .
  226. &gt; <font color="#118811">db p1.2 p1.3 p1.4 p1.5 p1.6</font>
  227. 000090   P1.2 1
  228. 000090   P1.3 0
  229. 000090   P1.4 1
  230. 000090   P1.5 0
  231. 000090   P1.6 1
  232. &gt; </pre>
  233.       <a name="g">
  234.         <h3>g [start [stop]]</h3>
  235.       </a>
  236.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_exec.html#run">run</a>
  237.         instead!!</font>
  238.       <p>Go, start execution. Parameters are optional. First parameter
  239.         specifies start address of the execution. By default execution starts
  240.         at address specified by actual value of the PC. This can be overridden
  241.         by first parameter. If second parameter is specified it places a
  242.         dynamic breakpoint at specified address which stops the execution. If
  243.         stop address is not given the simulator stops if it reaches a
  244.         breakpoint, or the CPU accepts an interrupt and <b>stopit</b> option
  245.         is TRUE, or fatal error occurres or <a href="#stop">stop</a> command is
  246.         used. Note that first instruction is executed without effect of
  247.         breakpoints. It means that if there is a breakpoint at start address
  248.         then it will not be hit.
  249.       </p>
  250.       <pre>$ <font color="#118811">s51 remoansi.hex</font>
  251. ucsim 0.2.24, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  252. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  253. This is free software, and you are welcome to redistribute it
  254. under certain conditions; type `show c' for details.
  255. 55755 bytes read from remoansi.hex
  256. &gt; <font color="#118811">b 0x187</font>
  257. &gt; <font color="#118811">sopt stopit y</font>
  258. &gt; <font color="#118811">g</font>
  259. Simulation started, PC=0x000000
  260. Stop at 000187: (4) Breakpoint
  261. F 000187
  262. &gt; </pre>
  263.       After execution is started the <tt>Simulation started</tt> message
  264.       appears with value of PC where the execution started and the simulator
  265.       is ready to accept other commands while the simulation is running in
  266.       background.
  267.       <!--If execution stops the simulator first writes out a number which is
  268. the reason of the stop (this is a diagnostic feature, it will beimproved in future versions). Reason can be:
  269. <dl><dt>0
  270. <dd>There is no reason to stop. This number should never appear.
  271. <dt>1
  272. <dd>Serious error for example unknown instruction code which is
  273. impossible to execute.
  274. <dt>2
  275. <dd>Invalid address used in an instruction. For example indirectaddress is bigger then 127 in 51 type of controller. Execution can be
  276. continued but result will be undefined.
  277. <dt>3
  278. <dd>Stack overflow. Execution can be continued but result will beundefined.
  279. <dt>4
  280. <dd>Breakpoint has been reached.
  281. <dt>5
  282. <dd>Interrupt accepted. It only stops the execution if <b>stopit</b>
  283. option is set to TRUE. See <a href="#sopt">sopt</a> command.
  284. </dl>
  285. After this diagnostic message the simulator prints out intruction atthe PC in disassembled form. See <a href="#dis"><b>dis</b></a>
  286. commands for description of disassembled form.-->
  287.       <a name="wi">
  288.         <h3>wi,Wi string</h3>
  289.       </a>
  290.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#where">where,Where</a>
  291.         instead!!</font>
  292.       <p>Searching for specified string in internal RAM area. String is
  293.         interpreted from first non-space character until end of the command
  294.         including spaces. <b>wi</b> command makes case insensitive search and
  295.         <b>Wi</b> can be used to make case sensitive search. Result is a hexa
  296.         dump of memory areas that match with specified string. Most of C-style
  297.         escape sequences can be used in the string: <tt>\f</tt>, <tt>\n</tt>,
  298.         <tt>\r</tt>, <tt>\t</tt>, <tt>\v</tt>, <tt>\a</tt>, <tt>\b</tt>,
  299.         <tt>\0</tt>, and <tt>\0xxx</tt> where <tt>xxx</tt> is an octadecimal
  300.         number of the code of the character.
  301.       </p>
  302.       <pre>$ <font color="#118811">s51 remoansi.hex</font>
  303. ucsim 0.2.24, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  304. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  305. This is free software, and you are welcome to redistribute it
  306. under certain conditions; type `show c' for details.
  307. 58659 bytes read from remoansi.hex
  308. &gt; <font color="#118811">g</font>
  309. Simulation started, PC=0x000000
  310.  
  311. Stop at 00019c: (7) User stopped
  312. F 00019c
  313. &gt; <font color="#118811">si 20 Dani DAni</font>
  314. 000014 44 61 6e 69 44 41 6e 69                         DaniDAni
  315. &gt; <font color="#118811">wi dani</font>
  316. 000014 44 61 6e 69             Dani
  317. 000018 44 41 6e 69             DAni
  318. &gt; <font color="#118811">Wi Dani</font>
  319. 000014 44 61 6e 69             Dani
  320. &gt; <font color="#118811">wi dani\0</font>
  321. 000018 44 41 6e 69 00          DAni.
  322. &gt; </pre>
  323.       <a name="wx">
  324.         <h3>wx,Wx string</h3>
  325.       </a>
  326.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#where">where,Where</a>
  327.         instead!!</font>
  328.       <p>Search commands. These commands are similar to <a href="#wi"><b>wi,
  329.             Wi</b></a> commands the only difference is that <b>wx,Wx</b> are
  330.         used
  331.         to search for a string in external memory.
  332.         <a name="wc"></a></p>
  333.       <h3><a name="wc">wc,Wc string</a></h3>
  334.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#where">where,Where</a>
  335.         instead!!</font>
  336.       <p>Search commands. These commands are similar to <a href="#wi"><b>wi,
  337.             Wi</b></a> commands the only difference is that <b>wx,Wx</b> are
  338.         used
  339.         to search for a string in code memory area.
  340.         <a name="gopt"></a></p>
  341.       <h3><a name="gopt">gopt [opt]</a></h3>
  342.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#get_option">get_option</a>
  343.         instead!!</font>
  344.       <p>Get actual value of option(s). Some options can be set by <a href="#sopt"><b>sopt</b></a>
  345.         to modify behavior of the
  346.         simulator. Using <b>gopt</b> you can get actual value of these
  347.         options. If you use this command without parameter you get list of all
  348.         options known by the program. In this way you can figure out which
  349.         options can be used.
  350.       </p>
  351.       <pre>$ <font color="#118811">s51 -V</font>
  352. ucsim 0.2.24, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  353. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  354. This is free software, and you are welcome to redistribute it
  355. under certain conditions; type `show c' for details.
  356. &gt; <font color="#118811">gopt</font>
  357. verbose TRUE Verbose flag.
  358. stopit FALSE Stop if interrupt accepted.
  359. debug FALSE Debug flag.
  360. &gt; <font color="#118811">gopt stopit</font>
  361. stopit FALSE Stop if interrupt accepted.
  362. &gt; </pre>
  363.       This version of the simulator knows about three options. First element
  364.       of the list is name of the option (<b>verbose</b>, <b>debug</b> and
  365.       <b>stopit</b>). This name can be used to identify the option in
  366.       <b>gopt</b> and <a href="#sopt"><b>sopt</b></a> command. Second
  367.       element of the list is the value of the option. In this case type of
  368.       both options is boolean, their value can be TRUE or FALSE. Third
  369.       element is a short description of the option.
  370.       <dl>
  371.         <dt><b>verbose</b> </dt>
  372.         <dd>?
  373.         </dd>
  374.         <dt><b>debug</b> </dt>
  375.         <dd>Debug flag can be set by <b>-V</b> option of the
  376.           program to TRUE otherwise its default value is FALSE. If it is TRUE,
  377.           the simulator prints out short messages about important events.
  378.         </dd>
  379.         <dt><b>stopit</b> </dt>
  380.         <dd>Setting this option to TRUE (default value is
  381.           FALSE) forces execution to stop every time when CPU accepts an
  382.           interrupt. You do not have to use breakpoints to inspect interrupts.
  383.         </dd>
  384.       </dl>
  385.       <a name="sopt">
  386.         <h3>sopt opt value</h3>
  387.       </a>
  388.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#set_option">set_option</a>
  389.         instead!!</font>
  390.       <p>Set option value. Options described at previous command (<a href="#gopt"><b>gopt</b></a>)
  391.         can be set using this command. First
  392.         parameter must be an option name and second the new
  393.         value. Interpretation of the value depends on type of the
  394.         option. Value for a boolean type of option interpreted as follows: if
  395.         first character of the value is one of <tt>1</tt>, <tt>t</tt>,
  396.         <tt>T</tt>, <tt>y</tt>, <tt>Y</tt> then value will be TRUE otherwise
  397.         it will be FALSE.
  398.       </p>
  399.       <pre>$ <font color="#118811">s51 -V</font>
  400. ucsim 0.2.24, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  401. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  402. This is free software, and you are welcome to redistribute it
  403. under certain conditions; type `show c' for details.
  404. &gt; <font color="#118811">gopt</font>
  405. verbose TRUE Verbose flag.
  406. stopit FALSE Stop if interrupt accepted.
  407. debug FALSE Debug messages appears on this console.
  408. &gt; <font color="#118811">sopt debug t</font>
  409. &gt; <font color="#118811">gopt</font>
  410. verbose TRUE Verbose flag.
  411. stopit FALSE Stop if interrupt accepted.
  412. debug TRUE Debug messages appears on this console.
  413. &gt; </pre>
  414.       <a name="si">
  415.         <h3>si addr data...</h3>
  416.       </a>
  417.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#set_memory">set
  418.           memory</a> instead!!</font>
  419.       <p>Write data into internal RAM area. First parameter specifies start
  420.         address of memory area to set and other parameters are data to set.
  421.       </p>
  422.       <pre>$ <font color="#118811">s51</font>
  423. ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  424. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  425. This is free software, and you are welcome to redistribute it
  426. under certain conditions; type `show c' for details.
  427. &gt; <font color="#118811">si 10 dani\040hej-ho</font>
  428. 00000a 64 61 6e 69 20 68 65 6a 2d 68 6f                dani hej-ho
  429. &gt; </pre>
  430.       Result of the command is a memory dump of area which has been modified
  431.       by the command. If there is syntax error in a data parameter then
  432.       remaining parameters are dropped out.
  433.       <pre>&gt; <font color="#118811">si 20 1 2 0xi 3 4</font>
  434. Bad data 0xi
  435. 000014 01 02                                           ..
  436. &gt; </pre>
  437.       <a name="sx">
  438.         <h3>sx addr data...</h3>
  439.       </a>
  440.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#set_memory">set
  441.           memory</a> instead!!</font>
  442.       <p>This command is similar to <a href="#si"><b>si</b></a> command
  443.         described above but it is used to modify external RAM.
  444.         <a name="sc"></a></p>
  445.       <h3><a name="sc">sc addr data...</a></h3>
  446.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#set_memory">set
  447.           memory</a> instead!!</font>
  448.       <p>This command is similar to <a href="#si"><b>si</b></a> command
  449.         described above but it is used to modify code memory area (ROM).
  450.         <a name="ss"></a></p>
  451.       <h3><a name="ss">ss addr data...</a></h3>
  452.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#set_memory">set
  453.           memory</a> instead!!</font>
  454.       <p>This command is similar to <a href="#si"><b>si</b></a> command
  455.         described above but it is used to modify SFR. Other difference is that
  456.         first parameter (<b>start</b> address) can be specified by name of SFR
  457.         not by address only.
  458.       </p>
  459.       <pre>$ <font color="#118811">s51</font>
  460. ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  461. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  462. This is free software, and you are welcome to redistribute it
  463. under certain conditions; type `show c' for details.
  464. &gt; <font color="#118811">ss p1 0</font>
  465. 000090 00                                              .
  466. &gt; </pre>
  467.       <a name="sb">
  468.         <h3>sb addr data...</h3>
  469.       </a>
  470.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#set_bit">set
  471.           bit</a> instead!!</font>
  472.       <p>Modify bit(s). First parameter is address of first bit to modify. See
  473.         description of <a href="#db"><b>db</b></a> command how bit address can
  474.         be specified. If first character of data parameter is <tt>0</tt> it
  475.         means <i>zero</i> otherwise it means <i>one</i>.
  476.       </p>
  477.       <pre>$ <font color="#118811">s51</font>
  478. ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  479. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  480. This is free software, and you are welcome to redistribute it
  481. under certain conditions; type `show c' for details.
  482. &gt; <font color="#118811">sb 0x23.5 1</font>
  483. &gt; <font color="#118811">db 0x23.5</font>
  484. 000023   23.5 1
  485. &gt; <font color="#118811">sb p3.3 0</font>
  486. &gt; <font color="#118811">dp</font>
  487. P0    11111111 0xff 255 .    P1    11111111 0xff 255 .
  488. Pin0  11111111 0xff 255 .    Pin1  11111111 0xff 255 .
  489. Port0 11111111 0xff 255 .    Port1 11111111 0xff 255 .
  490.  
  491. P2    11111111 0xff 255 .    P3    11110111 0xf7 247 .
  492. Pin2  11111111 0xff 255 .    Pin3  11111111 0xff 255 .
  493. Port2 11111111 0xff 255 .    Port3 11110111 0xf7 247 .
  494. &gt; <font color="#118811">sb tr1 0</font>
  495. &gt; <font color="#118811">db tr1</font>
  496. 000088    TR1 0
  497. &gt; <font color="#118811">sb tr1 1</font>
  498. &gt; <font color="#118811">db tr1</font>
  499. 000088    TR1 1
  500. &gt; </pre>
  501.       <a name="sp">
  502.         <h3>sp port data</h3>
  503.       </a>
  504.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#set_port">set
  505.           port</a> instead!!</font>
  506.       <p>This command can be used to set up output values of external circuits
  507.         connected to port pins. If a port bit is used as output to drive
  508.         external circuits, do not set corresponding pin bit to zero because
  509.         read back value of the port can be false. First parameter must be
  510.         number of the port between 0 and 3.
  511.       </p>
  512.       <pre>$ <font color="#118811">s51</font>
  513. ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  514. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  515. This is free software, and you are welcome to redistribute it
  516. under certain conditions; type `show c' for details.
  517. &gt; <font color="#118811">dp</font>
  518. P0    11111111 0xff 255 .    P1    11111111 0xff 255 .
  519. Pin0  11111111 0xff 255 .    Pin1  11111111 0xff 255 .
  520. Port0 11111111 0xff 255 .    Port1 11111111 0xff 255 .
  521.  
  522. P2    11111111 0xff 255 .    P3    11111111 0xff 255 .
  523. Pin2  11111111 0xff 255 .    Pin3  11111111 0xff 255 .
  524. Port2 11111111 0xff 255 .    Port3 11111111 0xff 255 .
  525. &gt; <font color="#118811">ss p1 0x55</font>
  526. 000090 55                                              U
  527. &gt; <font color="#118811">sp 1 0x0f</font>
  528. &gt; <font color="#118811">dp</font>
  529. P0    11111111 0xff 255 .    P1    01010101 0x55  85 U
  530. Pin0  11111111 0xff 255 .    Pin1  00001111 0x0f  15 .
  531. Port0 11111111 0xff 255 .    Port1 00000101 0x05   5 .
  532.  
  533. P2    11111111 0xff 255 .    P3    11111111 0xff 255 .
  534. Pin2  11111111 0xff 255 .    Pin3  11111111 0xff 255 .
  535. Port2 11111111 0xff 255 .    Port3 11111111 0xff 255 .
  536. &gt; </pre>
  537.       <a name="fi">
  538.         <h3>fi start stop data</h3>
  539.       </a>
  540.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#fill">fill</a>
  541.         instead!!</font>
  542.       <p>Fill command. It can be used to fill up an area of internal RAM with a
  543.         specified data.
  544.       </p>
  545.       <pre>$ <font color="#118811">s51</font>
  546. ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  547. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  548. This is free software, and you are welcome to redistribute it
  549. under certain conditions; type `show c' for details.
  550. &gt; <font color="#118811">fi 11 0x34 44</font>
  551. &gt; <font color="#118811">di</font>
  552. 000000 00 00 00 00 00 00 00 00 ........
  553. 000008 00 00 00 2c 2c 2c 2c 2c ...,,,,,
  554. 000010 2c 2c 2c 2c 2c 2c 2c 2c ,,,,,,,,
  555. 000018 2c 2c 2c 2c 2c 2c 2c 2c ,,,,,,,,
  556. 000020 2c 2c 2c 2c 2c 2c 2c 2c ,,,,,,,,
  557. 000028 2c 2c 2c 2c 2c 2c 2c 2c ,,,,,,,,
  558. 000030 2c 2c 2c 2c 2c 00 00 00 ,,,,,...
  559. 000038 00 00 00 00 00 00 00 00 ........
  560. 000040 00 00 00 00 00 00 00 00 ........
  561. 000048 00 00 00 00 00 00 00 00 ........
  562. &gt; </pre>
  563.       <a name="fx">
  564.         <h3>fx start stop data</h3>
  565.       </a>
  566.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#fill">fill</a>
  567.         instead!!</font>
  568.       <p>Fill command. It works similar to <a href="#fi"><b>fi</b></a> but it
  569.         puts data into external RAM instead of internal RAM.
  570.         <a name="fs"></a></p>
  571.       <h3><a name="fs">fs start stop data</a></h3>
  572.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#fill">fill</a>
  573.         instead!!</font>
  574.       <p>Fill command. It works similar to <a href="#fi"><b>fi</b></a> but it
  575.         puts data into SFR instead of internal RAM.
  576.         <a name="fc"></a></p>
  577.       <h3><a name="fc">fc start stop data</a></h3>
  578.       <font color="#ff2211">Removed 0.2.38, use <a href="cmd_general.html#fill">fill</a>
  579.         instead!!</font>
  580.     </font>
  581.     <p><font color="gray">Fill command. It works similar to <a href="#fi"><b>fi</b></a>
  582.         but it
  583.         puts data into code memory (ROM) instead of internal RAM.
  584.       </font>
  585.     </p>
  586.     <hr>
  587.   </body>
  588. </html>
  589.