Question

In: Computer Science

11) var1 byte 148 or var1,26h Show the hexadecimal digits in var1: 12) mov eax -1...

11) var1 byte 148
or var1,26h
Show the hexadecimal digits in var1:
12) mov eax -1
WHAT IS THE HEX IN EAX
13) Multiply 10011b x 10110b in binary

Solutions

Expert Solution

(148)10=10010100 (convert to binary. ) First convert to hex, find the remainder, 148%16=4

divide by 16 148/16=9 find the remainder 9%16 = 9

divide by 16 9/16 =0 so stop. hex is reveser order of remainders.

148 = 94h =100101002 Write the 4 digit binary of each hexa digit 9->1001 4->0100

26h =00100110 Write the 4 digit binary of each hexa digit. 2->0010 6->0110

10010100 (OR) 0 or 0 =0, 0 or 1=1, 1 or 0 =1, 1 or 1=1

00100110

-------------------------

10110110 = 1011 0110 =B6h

var1=B6h

(12) mov eax,-1

eax=FFFFFFFF

-1 will be stored in 2's complent form

2's complment = 1's complement  of 1 + 1

1=00000000000000000000000000000001 (32 bit)

1'scomplement= 11111111111111111111111111111110 (obtained by inverting 0 to 1 and 1 to 0)

2's compl=1'comp+1=11111111111111111111111111111110+1=11111111111111111111111111111111

=FFFFFFFF16

(3)  
10011×101101001101001100100110000110100010

          10011

        ×10110

----------------------------------------------

          00000        

        100110

      1001100

    00000000

100110000

-----------------------------------------------------

110100010


Related Solutions

If SI = 1000H, what does MOV [SI], BH do? Reads byte of data from memory...
If SI = 1000H, what does MOV [SI], BH do? Reads byte of data from memory location 1000H into BH Writes byte of data from BH into memory location 1000H Illegal, only DI can be used between [ ] s Illegal, mixed sizes Translate the statement “All your friends are perfect” into a logical expression. Let P(x) be “x is perfect” and F(x) be “x is your friend” and the universe of discourse be all the people. ∀xF(x) → ∃xP(x)...
Part 2: Signed values: Convert each as indicated. 8. Decimal to Hexadecimal (1 byte, one's complement)...
Part 2: Signed values: Convert each as indicated. 8. Decimal to Hexadecimal (1 byte, one's complement)      a. -18      b. -41
Part 2: Signed values: Convert each as indicated. 7. Decimal to Hexadecimal (1 byte, signed magnitude)...
Part 2: Signed values: Convert each as indicated. 7. Decimal to Hexadecimal (1 byte, signed magnitude)      a. -18      b. -41
Convert 110.7510 to binary ______ and hexadecimal ______. Show the answer in both binary and hexadecimal....
Convert 110.7510 to binary ______ and hexadecimal ______. Show the answer in both binary and hexadecimal. There are ____________ kilobytes in a megabyte. Convert -13210 to a 16-bit 2’s complement in binary ____________ and hexadecimal ______________.
Recall that hexadecimal numbers are constructed using the 16 digits 0, 1, 2, 3, 4, 5,...
Recall that hexadecimal numbers are constructed using the 16 digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. (a) How many strings of hexadecimal digits consist of from one through four digits? (b) How many strings of hexadecimal digits consist of from two through five digits?
public static StringtoHexString (byte[] data ){/*behavior*/} Translates data (RLE or raw) a hexadecimal string (without delimiters)....
public static StringtoHexString (byte[] data ){/*behavior*/} Translates data (RLE or raw) a hexadecimal string (without delimiters). This method can also aid debugging. Ex:toHexString(new byte[] { 3, 15, 6, 4 }) yields string "3f64".
Design a four bit down counter with a 7 segment display (hexadecimal digits 0-F) Part 1:...
Design a four bit down counter with a 7 segment display (hexadecimal digits 0-F) Part 1: Implement a seven segment display for hexadecimal digits (0-F). Recommended to first try implementing the seven segment displays for each of the hexadecimal digits using switches as inputs. Part 2: Implement a four bit down counter. When this component is complete, add the counter and wire the outputs of the JK flip flops to where the switches were once. The last JK flip flop...
Hexadecimal digits are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C,...
Hexadecimal digits are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. How many hexadecimal strings of length twelve have five A’s and five B’s? How many hexadecimal strings of length twelve have at most three E’s? How many hexadecimal strings of length twelve have exactly three A’s and at least two B’s? How many hexadecimal strings of length twelve have exactly two A’s and exactly two B’s, so that the two...
Use Proteus to simulate 8086 signals of the following instructions: 1- MOV AL,44H MOV BX, [1389H]...
Use Proteus to simulate 8086 signals of the following instructions: 1- MOV AL,44H MOV BX, [1389H] MOV [BX], AL 2- MOV AL,55H OUT 6EH, AL b- Add Latches and Buffers to the 8086 bus to get the address and data separately. Use similar code as in part-a, but you have to use different numbers. You can test other codes if you wish. You have to include at least the following signals CLK, ALE, M/IO’, RD’, WR’, DT/R’, DEN’, BHE’, Address...
What is the 11 bit, binary representation of -108? What is the hexadecimal equivalent of this...
What is the 11 bit, binary representation of -108? What is the hexadecimal equivalent of this number?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT