hii,
if anyone is familiar with pdp11 (don't ask why it's for a homework:mad:), the registers are r0,r1,r2,r3,r4,r5,sp,pc
this is my problem :
r0 = 10000
why when doing :
mul #100,r0
the result :
r0 = 000004
r1 = 000000
3 replies to this topic
#1
Posted 01 February 2010 - 05:14 AM
|
|
|
#2
Posted 18 February 2010 - 08:41 AM
well, not quite sure what's up here. But it seems your #100 may be 100b, as in binary, which equals 4. Then when you mul 10000h by this, you get 40000h. If you now have a 16bit limit, this may be split into 4h in one register and 0000h in another.
This seems to be the case. :)
This seems to be the case. :)
#3
Posted 19 February 2010 - 01:18 AM
Oh, you're right! This is the only explanation!
;)
;)
#4
Posted 19 February 2010 - 03:02 AM
judging from pdp11 and your location being Haifa, I conclude you study in Technion. Isnt it a bit late for homework??:)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









