Question on Addressing Modes in PDP-11 Assembler

Posted by lego69 on Stack Overflow See other posts from Stack Overflow or by lego69
Published on 2010-06-06T19:04:41Z Indexed on 2010/06/06 19:12 UTC
Read the original article Hit count: 290

Filed under:
|
|

I have small question about pdp-11(simulator), I have this command (it begins from the address 1000) add 2500, #2500

and this initial list:

register/address - initial value
pc                 1000
sp                 600
2500               3000

and I want to know how this small snippet exactly runs, in my booklet I found that: firstly it reads inforamtion from the address 1000, inside this address we have value 066727, after we read number from the address 1002, AND VALUE MUST BE 2500(because of add 2500, #2500), but in my booklet I have 1474 without any explanations why, I know that I have here relative addressing mode, but why 1474 inside the address 1002 and not 2500, thanks in advance for any help

© Stack Overflow or respective owner

Related posts about programming

Related posts about assembler