low-level language question

aceman817

Senior member
Jul 15, 2001
204
0
0
i have this problem that seems to be confusing me:

Given the following state of memory (in hex):

0001 A2
0002 11
0003 FF
0004 00

What are the contents of the A register after the execution of the following two instructions?

00001001 00000000 00000001
00011000 00000000 00000001


My work so far:

The first instruction loads into the A register what is in memory location 0001. So A2 or 10100010 should be loaded. The next instruction should then be added which is the part I don't understand. Do we do 10100010 00000000 + 1? The answers to choose from for this question are as follows:

10100010 00010010
11111111 00000000
00000000 00000011
11101101 00000001
00010010 00000000

Thanks,
AL
 

Peter

Elite Member
Oct 15, 1999
9,640
1
0
This is "High Tech" not the homework channel ...

When inquiring about machine code, you should at least tell us what machine you're talking about.