What is the assembly language equivalent of each of the following binary machine language instructions?
When answering, use w as the label for address 6, x as the label for address 225, y as the label for address 240 and z as the label for address 14.
a) 1100 0000 1111 0000
b) 0011 0000 0000 1110
a) Instruction format:
first 4 bits is opcode and last 12 bits represent address.
1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0
where 1100 is a operation code 'jumpneq'
0000 1111 0000 represent address which is (128+64+32+16=240) and address 240 is label as 'y'.
jumpneq y
if we not consider label then it is written as
jumpneq 240
b)
0 0 1 1 0 0 0 0 0 0 0 0 1 1 1 0
first 4 bits is opcode and last 12 bits represent address.
0011 is operation code 'ADD'
0000 0000 1110 represent address which is (8+4+2=14) and address 14 is label as 'z'
ADD z
if we not consider label then it is written as
ADD 14
What is the assembly language equivalent of each of the following binary machine language instructions? When...
Generate the equivalent Sim68 assembly program for the following machine code assuming it originates at address dollar 0000: 1001 0000 0100 0000 0011 0000 0100 0000 0011 0010 0010 1000 0000 0000 0000 1100 0110 0111 0000 0110 0110 1101 1111 1000 1101 0000 0100 0001 0110 0000 1111 0110 0100 1110 0100 0000 0000 0000 0000 0000 0001 0110 1111 0000 1111 1111 1111 1111 1000 0000 0000 0000 0000 0000 0000 0001
Please help with solution Write the following MARIE assembly language equivalent of the following machine language instructions 0001 0010 0000 0100 0010 0010 0000 0110 1001 0000 0000 1011 0111 0000 0000 0000
6. Convert .3710 to a binary fraction of 10 binary digits. 7. Use two's compliment arithmetic to perform the following 8 bit binary operations. a. 0010 1110 + 0001 1011 b. 0101 1101 – 0011 1010 c. 1011 1000 – 1000 1011 d. 1000 1100 – 1111 0111 8. Convert 150.8476562510 to IEEE Floating Point Standard. 9. Simplify the following Boolean expressions. a. xy + xy + xz b. (w + x)(x + y)(w + x + y + z)...
Answer all elaborately or dont even attempt. 7. (4 points) Explain why, in MARIE, the MAR is only 12 bits wide while the AC is 16 bits wide. Hint: Consider the difference between data and addresses. 8. (24 points) Use a few sentences to answer each of the following questions. The answers can be found in section 4.1 to 4.7 in the textbook. 1) What purpose does the datapath in a CPU serve? 2) What does the control unit in...
Problem-1 (9 Points) Determine the machine code (in hex) for the following assembly language instructions: Machine Code (in Hex) Instruction a. LDX #$21B6 b. LDAB $1B,Y C. STAB $B34C
(2+2+1 5 points) Problem 10.1: simple cpu machine code = The following program has been written for the simple central processing unit introduced in class. The table below shows the initial content of the 16 memory cells. The first column denotes the memory address. Machine Code Assembly Code Description 001 1 0001 0 010 0 1111 1 001 1 0000 3 101 1 0100 110 1 0110 4 111 1 0000 5 6 001 0 001 1 100 1 0001...
2. Suppose that a 16M X 16 main memory is built using 512K X 8 RAM chips and memory is word addressable. a) How many RAM chips are necessary? ______ b) How many RAM chips are needed for each memory word? _______ c) How many address bits are needed for each RAM chip? _______ d) How many address bits are needed for all memory? _______ A digital computer has a memory unit with 24 bits per word. The instruction set...
All solutions must have both code and data segments Write a sequence of assembly language instructions to subtract each entry of an array B of five two’s complement 16-bit binary integers from the corresponding entry of an array A of five two’s complement 16-bit binary integers and construct a third array C of two’s complement 16-bit binary integers. i.e. C[i] = A[i] - B[i]. Use the following data for the arrays A and B. A: 10, -15, 20, 4,...
Implement the following command as an assembly language. Z=(V-W)(X+Y) Address : $s1 →80000 V→80004 W→80008 X→80012 Y→80016 Z→80024 Note: Iw the value at each address, sw the result value after performing the operation.
(a) Write a truth table. The input is 4-bit binary ABCD, A is MSB, D is LSB. The output is also represented by x. (b) Obtain an output expression in the form of a SOP. (c) Use Boolean Algebra to design a circuit consisting of only four inverters, four 3-input and gate, and one 4-input OR gate using the simplified and simplified expression obtained in (b). 4-6. The Excess-3 coding system is a four-bit digital coding system for encoding all...