0 votes 0 votes Can you explain why the offset in addressing modes need to be a signed integer ? CO and Architecture co-and-architecture + – spriti1991 asked Apr 17, 2015 retagged Nov 13, 2017 by Arjun spriti1991 362 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Offset in addressing modes usually an unsigned integer.. Digvijay Pandey answered Apr 17, 2015 Digvijay Pandey comment Share Follow See all 3 Comments See all 3 3 Comments reply spriti1991 commented Apr 18, 2015 reply Follow Share no,offset need to be a signed integer . For forward and backward branch instruction , these offset need to be signed :) If you are saying saying offset as a unsigned integer it implies that you data structure can be queue (increasing address ) . But in stack you need to have negative and positive offset forward and backward position of stack pointers !! 1 votes 1 votes Digvijay Pandey commented Apr 18, 2015 reply Follow Share BASE-REGISTERADDRESSINGFor base-register addressing,the interpretation is the following:The referenced register contains a main memory address,and the address field contains a displacement (usually an unsigned integer representation) from that address.The register reference may be explicit or implicit. William Stallings page 406. 0 votes 0 votes Arjun commented Apr 18, 2015 reply Follow Share Base relative is unsigned but PC relative is signed. 2 votes 2 votes Please log in or register to add a comment.