X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=sim%2Fucsim%2Fdoc%2Fcmd_dump.html;h=af2150c5c8ed773e222209f0a73e96be71d69c81;hb=f27da39dbcab5678aca6d8462f1cc37a643f37e9;hp=2c36cbcc8d62665bc4c394e7ec4c9bae0c474981;hpb=7fe573ea83f6e0762dc73bc493f15fa2a8f6273d;p=fw%2Fsdcc diff --git a/sim/ucsim/doc/cmd_dump.html b/sim/ucsim/doc/cmd_dump.html index 2c36cbcc..af2150c5 100644 --- a/sim/ucsim/doc/cmd_dump.html +++ b/sim/ucsim/doc/cmd_dump.html @@ -1,36 +1,37 @@
-+ ++ +dump memory_type [start [end +[bytes_per_line]]]
Hexadecimal dump of a memory region. First parameter specifies -memory. Class name of the memory must be used, it can be checked using -conf command which lists size and -class name of all available memories. +memory. It can be name of an address space or a chip, and can be +checked using info memory +command which lists size and name of all available memories.start and end parameters can be used to specify the -first and last address of the region. If end is omitted then 64 -memory location is dumped. If both start and end are -omitted then next 64 memory location will be dumped out. Every time -when dump command is used the address of last dumped memory location -is stored and next dump command automatically continues at next -address. +first and last address of the dumped region. If end is omitted +then 64 memory location is dumped. If both start and end +are omitted then next 64 memory location will be dumped out. Every +time when dump command is used the address of last dumped memory +location is stored and next dump command automatically continues at +next address.
Last parameter can be used to specify how many memory locations should be dumped out in one line. It is 8 by default. @@ -59,10 +60,10 @@ F 0x000515 0x004c 78 18 06 30 03 4b 20 92 x..0.K . 0x0054 48 30 07 05 c2 07 02 00 H0...... 0x005c 9d 30 08 05 20 93 3a c2 .0.. .:. -> du x 10 20 10 +> du xram 10 20 10 0x000a ff 01 00 fa 01 01 40 01 01 44 ......@..D 0x0014 01 . -> du x +> du xram 0x0015 00 00 00 00 00 00 00 00 ........ 0x001d 00 10 01 00 ae 01 00 ae ........ 0x0025 02 12 e1 00 5a 85 00 01 ....Z... @@ -73,23 +74,139 @@ F 0x000515 0x004d 00 00 5a 85 ff 00 01 00 ..Z..... 0x0055 00 00 00 94 a7 01 0c a6 ........ 0x005d 00 6f ff 00 00 00 00 00 .o...... +> + + +
+ + +dump bit_name...
+ +If the simulated controller supports addressable bits (such as MCS51 +does) this command can be used to print out values of bit(s). Any form of bit address can be used +as parameter: + ++0> dump ac p1.2 0x21 + PSW.6 0xd0 00 0 + P1.2 0x90 ff 1 + 0x24.1 0x24 24 0 +0> ++ +Please note, that this command can not be used, if there is no address +space called sfr. + ++$ sz80 +uCsim 0.5.0-pre3, 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. +0> dump 0.0 +No memory specified. Use "info memory" for available memories +0> ++ + +
+$ s51 remo.hex +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. +58659 bytes read from remoansi.hex +> wc remo +0013da 52 65 6d 6f Remo +> dch 0x13da +0013da 52 65 6d 6f 20 00 56 65 Remo .Ve +0013e2 72 73 69 6f 6e 20 31 2e rsion 1. +0013ea 30 20 00 43 6f 70 79 72 0 .Copyr +0013f2 69 67 68 74 20 28 63 29 ight (c) +0013fa 20 00 31 39 39 34 2c 39 .1994,9 +001402 35 20 00 54 61 6c 6b 65 5 .Talke +00140a 72 20 42 74 2e 00 53 75 r Bt..Su +001412 6e 64 61 79 2e 00 4d 6f nday..Mo +00141a 6e 64 61 79 2e 00 54 68 nday..Th +001422 75 65 73 64 61 79 2e 00 uesday.. >+First element in every lines is address of first byte dumped out in +the line. Next elements are hexadecimal values of bytes followed by +ASCII charactes of bytes dumped out in the line. If value of the +memory cell is not printable than a dot is dumped out. + +
+$ s51 remoansi.hex +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. +58659 bytes read from remoansi.hex +> dc + 000000 02 01 60 LJMP 0160 + * 000003 02 00 3c LJMP 003c + * 000006 ff MOV R7,A + * 000007 ff MOV R7,A + * 000008 ff MOV R7,A + * 000009 ff MOV R7,A + * 00000a ff MOV R7,A + * 00000b 02 3b e0 LJMP 3be0 + * 00000e ff MOV R7,A + * 00000f ff MOV R7,A + * 000010 ff MOV R7,A + * 000011 ff MOV R7,A + * 000012 ff MOV R7,A + * 000013 02 00 ac LJMP 00ac + * 000016 ff MOV R7,A + * 000017 ff MOV R7,A + * 000018 ff MOV R7,A + * 000019 ff MOV R7,A + * 00001a ff MOV R7,A + * 00001b ff MOV R7,A + * 00001c ff MOV R7,A +>-
-$ s51 remoansi.hex -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. -58659 bytes read from remoansi.hex -> dc - 000000 02 01 60 LJMP 0160 - * 000003 02 00 3c LJMP 003c - * 000006 ff MOV R7,A - * 000007 ff MOV R7,A - * 000008 ff MOV R7,A - * 000009 ff MOV R7,A - * 00000a ff MOV R7,A - * 00000b 02 3b e0 LJMP 3be0 - * 00000e ff MOV R7,A - * 00000f ff MOV R7,A - * 000010 ff MOV R7,A - * 000011 ff MOV R7,A - * 000012 ff MOV R7,A - * 000013 02 00 ac LJMP 00ac - * 000016 ff MOV R7,A - * 000017 ff MOV R7,A - * 000018 ff MOV R7,A - * 000019 ff MOV R7,A - * 00001a ff MOV R7,A - * 00001b ff MOV R7,A - * 00001c ff MOV R7,A ->- - -
-$ s51 remo.hex -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. -58659 bytes read from remoansi.hex -> wc remo -0013da 52 65 6d 6f Remo -> dch 0x13da -0013da 52 65 6d 6f 20 00 56 65 Remo .Ve -0013e2 72 73 69 6f 6e 20 31 2e rsion 1. -0013ea 30 20 00 43 6f 70 79 72 0 .Copyr -0013f2 69 67 68 74 20 28 63 29 ight (c) -0013fa 20 00 31 39 39 34 2c 39 .1994,9 -001402 35 20 00 54 61 6c 6b 65 5 .Talke -00140a 72 20 42 74 2e 00 53 75 r Bt..Su -001412 6e 64 61 79 2e 00 4d 6f nday..Mo -00141a 6e 64 61 79 2e 00 54 68 nday..Th -001422 75 65 73 64 61 79 2e 00 uesday.. ->- -First element in every lines is address of first byte dumped out in -the line. Next elements are hexadecimal values of bytes followed by -ASCII charactes of bytes dumped out in the line. If value of the -memory cell is not printable than a dot is dumped out. +
$ s51 remoansi.hex -ucsim 0.2.24, Copyright (C) 1997 Daniel Drotos, Talker Bt. +ucsim 0.5.0-pre3, 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. 58659 bytes read from remoansi.hex -> sopt stopit 1 -> g +0> set opt irq_stop 1 +0> go Simulation started, PC=0x000000 Stop at 000023: (5) Interrupt F 000023 -> di +0> di 000000 18 02 16 ba 00 02 00 0a ........ 000008 00 00 00 00 00 00 00 00 ........ 000010 00 00 00 00 00 00 00 00 ........ @@ -259,30 +301,33 @@ F 000023 000038 fe 03 09 00 00 00 af 08 ........ 000040 af 08 00 00 00 00 00 00 ........ 000048 00 00 00 00 00 00 00 00 ........ ->+0> + + +
$ s51 remoansi.hex -ucsim 0.2.24, Copyright (C) 1997 Daniel Drotos, Talker Bt. +ucsim 0.5.0-pre3, 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. 58659 bytes read from remoansi.hex -> sopt stopit 1 -> g +0> set opt irq_stop 1 +0> go Simulation started, PC=0x000000 Stop at 000023: (5) Interrupt F 000023 -> dx 0x100 +0> dx 0x100 000100 00 00 00 00 00 00 00 00 ........ 000108 00 00 00 00 00 00 00 00 ........ 000110 00 00 00 00 00 00 00 00 ........ @@ -293,10 +338,48 @@ F 000023 000138 07 00 00 ff 00 00 07 cb ........ 000140 08 0c 32 00 07 cb 06 05 ..2..... 000148 02 00 24 00 00 00 00 00 ..$..... ->+0> + + +
+$ s51 remo.hex +ucsim 0.5.0-pre3, 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. +58659 bytes read from remoansi.hex +0> set opt irq_stop 1 +0> go +Simulation started, PC=0x000000 +Stop at 000023: (5) Interrupt +F 000023 +0> ds +0x80 ff 2a 1e 13 00 00 00 80 .*...... +0x88 d5 21 f7 fd 50 fd 00 00 .!..P... +0x90 fe 00 00 00 00 00 00 00 ........ +0x98 7e 0a 00 00 00 00 00 00 ~....... +0xa0 ff 00 00 00 00 00 00 00 ........ +0xa8 97 00 00 00 00 00 00 00 ........ +0xb0 ff 00 00 00 00 00 00 00 ........ +0xb8 15 00 00 00 00 00 00 00 ........ +0xc0 00 00 00 00 00 00 00 00 ........ +0xc8 00 00 00 00 00 00 00 00 ........ +0> +