?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. <html>
  2.   <head>
  3.     <meta http-equiv="content-type" content="text/html; charset=ISO-8859-2">
  4.     <title>Dump commands of &#956;Csim</title>
  5.   </head>
  6.   <body bgcolor="white">
  7.     <h2>Dump commands of &#956;Csim</h2>
  8.     <a name="dump">
  9.       <h3>dump <i>[/format] memory_type [start [end [bytes_per_line]]]</i> <br>
  10.         dump <i>bit_name...</i></h3>
  11.     </a> First form can be used get content of memory while second form can be
  12.     used to check value of bit or bits.
  13.     <blockquote> <a name="dump_memory">
  14.         <h4>dump <i>[/format] memory_type [start [end [bytes_per_line]]]</i></h4>
  15.       </a> Hexadecimal dump of a memory region. First parameter specifies
  16.       memory. It can be name of an address space or a chip, and can be checked
  17.       using <a href="cmd_general.html#info_memory">info memory</a> command
  18.       which lists size and name of all available memories.
  19.       <p><b>start</b> and <b>end</b> parameters can be used to specify the
  20.         first and last address of the dumped region. If <b>end</b> is omitted
  21.         then 64 memory location is dumped. If both <b>start</b> and <b>end</b>
  22.         are omitted then next 64 memory location will be dumped out. Every time
  23.         when dump command is used the address of last dumped memory location is
  24.         stored and next dump command automatically continues at next address. </p>
  25.       <p>Last parameter can be used to specify how many memory locations should
  26.         be dumped out in one line. It is 8 by default. </p>
  27.       <pre>$ <font color="#118811">s51 remo.hex</font>
  28. ucsim 0.2.38-pre2, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  29. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  30. This is free software, and you are welcome to redistribute it
  31. under certain conditions; type `show c' for details.
  32. &gt; 55470 words read from remo.hex
  33. 55470 words read from remo.hex
  34. &gt; <font color="#118811">run</font>
  35. Simulation started, PC=0x000000
  36.  
  37. Stop at 0x000515: (105) User stopped
  38. F 0x000515
  39. &gt; <font color="#118811">du rom 20</font>
  40. 0x0014 00 ac ff ff ff ff ff ff ........
  41. 0x001c ff ff ff ff ff ff ff 02 ........
  42. 0x0024 01 1c ff ff ff ff ff 32 .......2
  43. 0x002c ff ff ff ff 02 0f a7 02 ........
  44. 0x0034 0e 9c 02 0d d2 02 08 41 .......A
  45. 0x003c c0 82 c0 83 c0 d0 c0 e0 ........
  46. 0x0044 c0 00 a2 90 c0 d0 c2 90 ........
  47. 0x004c 78 18 06 30 03 4b 20 92 x..0.K .
  48. 0x0054 48 30 07 05 c2 07 02 00 H0......
  49. 0x005c 9d 30 08 05 20 93 3a c2 .0.. .:.
  50. &gt; <font color="#118811">du xram 10 20 10</font>
  51. 0x000a ff 01 00 fa 01 01 40 01 01 44 ......@..D
  52. 0x0014 01                            .
  53. &gt; <font color="#118811">du xram</font>
  54. 0x0015 00 00 00 00 00 00 00 00 ........
  55. 0x001d 00 10 01 00 ae 01 00 ae ........
  56. 0x0025 02 12 e1 00 5a 85 00 01 ....Z...
  57. 0x002d 00 3b 00 00 5a 85 00 ab .;..Z...
  58. 0x0035 1f 80 00 00 01 00 01 00 ........
  59. 0x003d fa 0c 02 01 00 fa 00 02 ........
  60. 0x0045 00 01 00 ab 00 00 00 00 ........
  61. 0x004d 00 00 5a 85 ff 00 01 00 ..Z.....
  62. 0x0055 00 00 00 94 a7 01 0c a6 ........
  63. 0x005d 00 6f ff 00 00 00 00 00 .o......
  64. &gt;
  65. </pre>
  66.       <hr> <a name="dump_bit">
  67.         <h4>dump <i>bit_name...</i></h4>
  68.       </a> If the simulated controller supports addressable bits (such as MCS51
  69.       does) this command can be used to print out values of bit(s). <a href="syntax.html#bit_param">Any
  70.         form of bit address</a> can be used as parameter:
  71.       <pre>0&gt; <font color="#118811">dump ac p1.2 0x21</font>
  72.      PSW.6 0xd0 00 0
  73.       P1.2 0x90 ff 1
  74.     0x24.1 0x24 24 0
  75. 0&gt;
  76. </pre> Please note, that this command can not be used, if there is no address
  77.       space called <b>sfr</b>.
  78.       <pre>$ <font color="#118811">sz80</font>
  79. uCsim 0.5.0-pre3, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  80. uCsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  81. This is free software, and you are welcome to redistribute it
  82. under certain conditions; type `show c' for details.
  83. 0&gt; dump 0.0
  84. No memory specified. Use "info memory" for available memories
  85. 0&gt;
  86. </pre> </blockquote>
  87.     <hr> <a name="dch">
  88.       <h3>dch <i>[start [stop]]</i></h3>
  89.     </a> Hexadecimal dump of code memory area from address <b>start</b> to
  90.     address <b>stop</b>. Default value of start address is address of following
  91.     memory cell which was dumped by previous <b>dch</b> command. If <b>stop</b>
  92.     parameter is not given <b>dch</b> command lists 10 lines 8 bytes per line.
  93.     <pre>$ <font color="#118811">s51 remo.hex</font>
  94. ucsim 0.2.24, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  95. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  96. This is free software, and you are welcome to redistribute it
  97. under certain conditions; type `show c' for details.
  98. 58659 bytes read from remoansi.hex
  99. &gt; <font color="#118811">wc remo</font>
  100. 0013da 52 65 6d 6f             Remo
  101. &gt; <font color="#118811">dch 0x13da</font>
  102. 0013da 52 65 6d 6f 20 00 56 65 Remo .Ve
  103. 0013e2 72 73 69 6f 6e 20 31 2e rsion 1.
  104. 0013ea 30 20 00 43 6f 70 79 72 0 .Copyr
  105. 0013f2 69 67 68 74 20 28 63 29 ight (c)
  106. 0013fa 20 00 31 39 39 34 2c 39  .1994,9
  107. 001402 35 20 00 54 61 6c 6b 65 5 .Talke
  108. 00140a 72 20 42 74 2e 00 53 75 r Bt..Su
  109. 001412 6e 64 61 79 2e 00 4d 6f nday..Mo
  110. 00141a 6e 64 61 79 2e 00 54 68 nday..Th
  111. 001422 75 65 73 64 61 79 2e 00 uesday..
  112. &gt; </pre>
  113.     First element in every lines is address of first byte dumped out in the
  114.     line. Next elements are hexadecimal values of bytes followed by ASCII
  115.     characters of bytes dumped out in the line. If value of the memory cell is
  116.     not printable than a dot is dumped out.
  117.     <hr> <a name="dc">
  118.       <h3>dc <i>[start [stop]]</i></h3>
  119.     </a> Disassembled dump of code memory area. This command simply produces
  120.     disassembled list of memory area specified by the parameters. Default value
  121.     of <b>start</b> parameter is last address listed by previous <b>dc</b>
  122.     command. If <b>stop</b> parameter is not given 20 lines are listed.
  123.     <pre>$ <font color="#118811">s51 remoansi.hex</font>
  124. ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  125. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  126. This is free software, and you are welcome to redistribute it
  127. under certain conditions; type `show c' for details.
  128. 58659 bytes read from remoansi.hex
  129. &gt; <font color="#118811">dc</font>
  130.    000000 02 01 60 LJMP  0160
  131.  * 000003 02 00 3c LJMP  003c
  132.  * 000006 ff       MOV   R7,A
  133.  * 000007 ff       MOV   R7,A
  134.  * 000008 ff       MOV   R7,A
  135.  * 000009 ff       MOV   R7,A
  136.  * 00000a ff       MOV   R7,A
  137.  * 00000b 02 3b e0 LJMP  3be0
  138.  * 00000e ff       MOV   R7,A
  139.  * 00000f ff       MOV   R7,A
  140.  * 000010 ff       MOV   R7,A
  141.  * 000011 ff       MOV   R7,A
  142.  * 000012 ff       MOV   R7,A
  143.  * 000013 02 00 ac LJMP  00ac
  144.  * 000016 ff       MOV   R7,A
  145.  * 000017 ff       MOV   R7,A
  146.  * 000018 ff       MOV   R7,A
  147.  * 000019 ff       MOV   R7,A
  148.  * 00001a ff       MOV   R7,A
  149.  * 00001b ff       MOV   R7,A
  150.  * 00001c ff       MOV   R7,A
  151. &gt; </pre>
  152.     <hr> <a name="disassemble">
  153.       <h3>disassemble <i>[start [offset [lines]]]</i></h3>
  154.     </a> Disassemble code. This command can be used to list disassembled
  155.     instructions which discovered by the <a href="analyzer.html">code analyser</a>.
  156.     First two parameters specify the address where the list starts. First
  157.     parameter is address where the command starts to search an instruction. This
  158.     search goes forward. When the first instruction marked by code analyser
  159.     found the simulator skips as many instructions as you specify in second
  160.     parameter. If <b>offset</b> is negative the simulator goes backward and
  161.     skips specified number of instructions. Default value of <b>start</b>
  162.     parameter is last address which was listed by previous <b>dis</b> command
  163.     and default value of <b>offset</b> is -1. It means you can make continuous
  164.     list repeating parameterless <b>dis</b> command.
  165.     <p>In third parameter you can specify how many instructions you want to
  166.       list. Default value is 20. </p>
  167.     <pre>$ <font color="#118811">s51 remoansi.hex</font>
  168. ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  169. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  170. This is free software, and you are welcome to redistribute it
  171. under certain conditions; type `show c' for details.
  172. 58659 bytes read from remoansi.hex
  173. &gt; <font color="#118811">dis</font>
  174.    000000 02 01 60 LJMP  0160
  175.    000160 c2 90    CLR   P1.0
  176.    000162 c2 97    CLR   P1.7
  177.    000164 d2 b5    SETB  P3.5
  178.    000166 d2 b4    SETB  P3.4
  179.    000168 75 81 22 MOV   SP,#22
  180.    00016b 75 d0 00 MOV   PSW,#00
  181.    00016e 7e 00    MOV   R6,#00
  182.    000170 7f 00    MOV   R7,#00
  183.    000172 79 04    MOV   R1,#04
  184.    000174 12 0d b8 LCALL 0db8
  185.    000177 0f       INC   R7
  186.    000178 d9 fa    DJNZ  R1,0174
  187.    00017a 75 0b 00 MOV   0b,#00
  188.    00017d 75 0c 00 MOV   0c,#00
  189.    000180 02 02 2a LJMP  022a
  190.    000183 78 22    MOV   R0,#22
  191.    000185 76 00    MOV   @R0,#00
  192.    000187 d8 fc    DJNZ  R0,0185
  193. &gt; <font color="#118811">br 0x180</font>
  194. &gt; <font color="#118811">tbr 0x189</font>
  195. &gt; <font color="#118811">dis 0x180 -3 10</font>
  196.    000178 d9 fa    DJNZ  R1,0174
  197.    00017a 75 0b 00 MOV   0b,#00
  198.    00017d 75 0c 00 MOV   0c,#00
  199. F  000180 02 02 2a LJMP  022a
  200.    000183 78 22    MOV   R0,#22
  201.    000185 76 00    MOV   @R0,#00
  202.    000187 d8 fc    DJNZ  R0,0185
  203. D  000189 22       RET
  204.    00018a 90 09 ec MOV   DPTR,#09ec
  205.    00018d ae 83    MOV   R6,DPH
  206. &gt; </pre>
  207.     If there is an <b>F</b> or <b>D</b> character at the beginning of the
  208.     line, it means that there is a fix or dynamic fetch breakpoint at listed
  209.     address. Next element on the list can be an asterix (<b>*</b>) which means
  210.     that the listed address is not marked by the code analyser. <b>dis</b>
  211.     lists marked instructions only so asterix never appears in the list. Next
  212.     element of the list is address displayed as six digit hexadecimal number.
  213.     Address is followed by hexadecimal dump of instruction's code. Last element
  214.    of the list is disassembled instruction. Every number appeared on the list
  215.    is hexadecimal number.
  216.    <hr> <a name="di">
  217.      <h3>di <i>[start [stop]]</i></h3>
  218.    </a> Hexadecimal dump of <b>iram</b> named address space area from address
  219.    <b>start</b> to address <b>stop</b>. Default value of start address is
  220.    address of following memory cell which was dumped by previous <b>di</b>
  221.    command. If <b>stop</b> parameter is not given <b>di</b> command lists 10
  222.    lines 8 bytes per line.
  223.    <pre>$ <font color="#118811">s51 remoansi.hex</font>
  224. ucsim 0.5.0-pre3, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  225. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  226. This is free software, and you are welcome to redistribute it
  227. under certain conditions; type `show c' for details.
  228. 58659 bytes read from remoansi.hex
  229. 0&gt; <font color="#118811">set opt irq_stop 1</font>
  230. 0&gt; <font color="#118811">go</font>
  231. Simulation started, PC=0x000000
  232. Stop at 000023: (5) Interrupt
  233. F 000023
  234. 0&gt; <font color="#118811">di</font>
  235. 000000 18 02 16 ba 00 02 00 0a ........
  236. 000008 00 00 00 00 00 00 00 00 ........
  237. 000010 00 00 00 00 00 00 00 00 ........
  238. 000018 4a 00 00 00 00 00 00 00 J.......
  239. 000020 bc 27 06 2d 02 ee 35 8f .'.-..5.
  240. 000028 31 e7 42 01 0e 01 0b 00 1.B.....
  241. 000030 ec 0b 7f 10 7f a9 7e 08 ......~.
  242. 000038 fe 03 09 00 00 00 af 08 ........
  243. 000040 af 08 00 00 00 00 00 00 ........
  244. 000048 00 00 00 00 00 00 00 00 ........
  245. 0&gt;
  246. </pre>
  247.     <hr> <a name="dx">
  248.       <h3>dx <i>[start [stop]]</i></h3>
  249.     </a> Hexadecimal dump of <b>xram</b> named address space area from address
  250.     <b>start</b> to address <b>stop</b>. Default value of start address is
  251.     address of following memory cell which was dumped by previous <b>dx</b>
  252.     command. If <b>stop</b> parameter is not given <b>dx</b> command lists 10
  253.     lines 8 bytes per line.
  254.     <pre>$ <font color="#118811">s51 remoansi.hex</font>
  255. ucsim 0.5.0-pre3, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  256. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  257. This is free software, and you are welcome to redistribute it
  258. under certain conditions; type `show c' for details.
  259. 58659 bytes read from remoansi.hex
  260. 0&gt; <font color="#118811">set opt irq_stop 1</font>
  261. 0&gt; <font color="#118811">go</font>
  262. Simulation started, PC=0x000000
  263. Stop at 000023: (5) Interrupt
  264. F 000023
  265. 0&gt; <font color="#118811">dx 0x100</font>
  266. 000100 00 00 00 00 00 00 00 00 ........
  267. 000108 00 00 00 00 00 00 00 00 ........
  268. 000110 00 00 00 00 00 00 00 00 ........
  269. 000118 00 00 00 00 00 00 00 00 ........
  270. 000120 00 00 00 00 00 00 00 00 ........
  271. 000128 00 00 00 00 00 00 00 44 .......D
  272. 000130 61 6e 69 00 00 00 02 02 ani.....
  273. 000138 07 00 00 ff 00 00 07 cb ........
  274. 000140 08 0c 32 00 07 cb 06 05 ..2.....
  275. 000148 02 00 24 00 00 00 00 00 ..$.....
  276. 0&gt;
  277. </pre>
  278.     <hr> <a name="ds">
  279.       <h3>ds <i>[start [stop]]</i></h3>
  280.     </a> Hexadecimal dump of <b>sfr</b> named address space area from address <b>start</b>
  281.     to address <b>stop</b>. Default value of start address is address of
  282.     following memory cell which was dumped by previous <b>ds</b> command. If <b>stop</b>
  283.     parameter is not given <b>ds</b> command lists 10 lines 8 bytes per line.
  284.     <pre>$ <font color="#118811">s51 remo.hex</font>
  285. ucsim 0.5.0-pre3, Copyright (C) 1997 Daniel Drotos, Talker Bt.
  286. ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  287. This is free software, and you are welcome to redistribute it
  288. under certain conditions; type `show c' for details.
  289. 58659 bytes read from remoansi.hex
  290. 0&gt; <font color="#118811">set opt irq_stop 1</font>
  291. 0&gt; <font color="#118811">go</font>
  292. Simulation started, PC=0x000000
  293. Stop at 000023: (5) Interrupt
  294. F 000023
  295. 0&gt; <font color="#118811">ds</font>
  296. 0x80 ff 2a 1e 13 00 00 00 80 .*......
  297. 0x88 d5 21 f7 fd 50 fd 00 00 .!..P...
  298. 0x90 fe 00 00 00 00 00 00 00 ........
  299. 0x98 7e 0a 00 00 00 00 00 00 ~.......
  300. 0xa0 ff 00 00 00 00 00 00 00 ........
  301. 0xa8 97 00 00 00 00 00 00 00 ........
  302. 0xb0 ff 00 00 00 00 00 00 00 ........
  303. 0xb8 15 00 00 00 00 00 00 00 ........
  304. 0xc0 00 00 00 00 00 00 00 00 ........
  305. 0xc8 00 00 00 00 00 00 00 00 ........
  306. 0&gt;
  307. </pre>
  308.     <hr>
  309.   </body>
  310. </html>
  311.