a very simple qn on 68000 processor

[b][red]This message was edited by Raison at 2004-9-15 12:16:56[/red][/b][hr]
ORG $1000

I was experimenting the difference between the two directives DC.B 'ABCDE' and DC.W 'ABCDE' on the assembler. The first one compiles nicely while the assembler complains that the operand will be truncated for the second directive.

When I checked the result on a simulator, the full sequence 'ABCDE' appears on the memory at $1000 for DC.B 'ABCDE' but only 'DE' is written to $1000 for DC.W 'ABCDE'.

Is it suppose to be like this? Or is it that the simulator is not following the standards?

I was expecting:
mem address content
$1000 $0041
$1002 $0042

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!