Hardware Reference
In-Depth Information
E1.12 Write an instruction sequence to set the contents of memory locations at $1000, $1010,
and $1020 to 10, 11, and 12, respectively.
E1.13 Write an instruction sequence to perform the operations equivalent to those performed
by the following high-level language statements:
I 5 11;
J 5 33;
K 5 I 1 J 2 5;
Assume that variables I , J , and K are located at $1000, $1005, and $1010, respectively.
E1.14 Write an instruction sequence to subtract the number stored at $1010 from that stored at
$1000 and store the difference at $1005.
E1.15 Write an instruction sequence to add the contents of accumulator B to the 16-bit word
stored at memory locations $1000 and $1001. Treat the value stored in B as a signed number.
E1.16 Write an instruction sequence to copy 4 bytes starting from $1000 to $1100,$1103.
E1.17 Write an instruction sequence to subtract the contents of accumulator B from the 16-bit
word at $1000,$1001 and store the difference at $1100,$1101. Treat the value stored in B as a
signed value.
E1.18 Write an instruction sequence to swap the 16-bit word stored at $1000,$1001 with the
16-bit word stored at $1100,$1101.
E1.19 Give an instruction that can store the contents of accumulator D at the memory location
with an address larger than the contents of X by 8.
E1.20 Give an instruction that can store the contents of index register Y at the memory loca-
tion with an address smaller than the contents of X by 10.
 
Search WWH ::




Custom Search