Example-problems1

Solutions 1 for the sicxe dump a000000 x000005

Info iconThis preview shows pages 3–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Solutions 1. For the SIC/XE dump A=000000 X=000005 L=000000 B=000005 S=FFFFFF T=FFFFFF P=00000D CC=LT 01A0 69100001 54FFFFFF FE434F50 33363031 01B0 32FFFF4B 9F123456 000001A0 FFFFF1FF (a) What SIC integer is stored beginning at 01A6 ? FFFFFE = -2 (b) What are the 4 ASCII characters beginning at 01AB ? 50333630 = “P360” (c) What SIC/XE instruction is stored beginning at 01B3 ? 4B9F1234 (nixbpe = 111001) +JSUB to (X)+F1234 = F1239 (d) What does the instruction at 01A0 do? 69100001 (nixbpe = 010001) LDB # so 1 is loaded into register B 2. For the SIC/XE dump 01A0 69100001 54FFFFFF FE434F50 33363031 01B0 32FFFF4B 9F123456 000001A0 FFFFF1FF Assume "STUFF" in the symbol table has value 01B9. What value will load into register A for each of the following: (a) LDA STUFF: 0001A0 (b) LDA #STUFF: 0001B9 (c) LDA @STUFF: 691000 (d) +LDA #STUFF: 0001B9
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
3. For the SIC/XE dump A=000000 X=000005 L=000000 B=000005 S=FFFFFF T=FFFFFF P=00000D CC=LT 01A0 69100001 54FFFFFF FE434F50 33363031 01B0 32FFFF4B 9F123456 000001A0 FFFFF1FF What value will load into register A if the next instruction to be fetched (assumed to be at address 00000D , the location given by P is: (a) 0001A0 (simple SIC: address is 1A0 ) value = 691000 (b) 0381A0 (SICXE: (X)+ disp = 5 + 1A0 = 1A5 ) nixbpe = 111000 value = FFFFFF (c) 0141A0 (SICXE: immed base rel = (B) + disp nixbpe = 010100 value = 5 + 1A0 = 1A5 (d) 0321A3 (SICXE: PC rel: (P) + 3 + 1A3 = 1B3 nixbpe = 110010 value = 4B9F12 (instruction is at address 00000D ; after instruction fetch, the PC will be X’10’ = (P) + 3 ) (e) 0328A3 (SICXE: PC rel: (P) + 3 + 8A3 FFF8B3 nixbpe = 110010 value = addressing error Negative displacement negative address
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page3 / 4

Solutions 1 For the SICXE dump A000000 X000005 L000000...

This preview shows document pages 3 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online