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