Data Conversion (Dc) - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

DC
3.8 DATA CONVERSION
DC <exp>I<addr>
Use the DC command to simplify an expression into a single numeric value. The equivalent
value is displayed in its hexadecimal and decimal representation. If the numeric value is
interpreted as a signed negative number (i.e., if the most significant bit of the 32-bit internal
representation of the number is set) then both the signed and unsigned interpretations are
displayed.
Use DC to obtain the equivalent effective address of an MCU device addressing mode.
EXAMPLES
CPU32Bug>DC 10<CR>
00000010 = $10 = &16
CPU32Bug>DC &10-&20<CR>
SIGNED : FFFFFFF6 = -$A = -&10
UNSIGNED: FFFFFFF6 = $FFFFFFF6 = &4294967286
CPU32Bug>DC 123+&345+@67+%1100001<CR>
00000314 = $314 = &788
CPU32Bug>DC (2*3*8)/4<CR>
0000000C = $C = &12
CPU32Bug>DC 55&F<CR>
00000005 = $5 = &5
CPU32Bug>DC 55>>1<CR>
0000002A = $2A = &42
The subsequent examples assume A0=00003000 and the following data resides in memory:
00003000
11111111
CPU32Bug>DC (A0)<CR>
00003000 = $3000 = &12288
CPU32Bug>DC ([A0])<CR>
11111111 = $11111111 = &286331153
CPU32Bug>DC (4,A0)<CR>
00003004 = $3004 = &12292
CPU32Bug>DC ([4,A0])<CR>
22222222 = $22222222 = &572662306
M68CPU32BUG/D REV 1
Data Conversion
22222222
33333333
3-15
DEBUG MONITOR COMMANDS
44444444
....""""3333DDDD
DC

Advertisement

Table of Contents
loading

Table of Contents