Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I NEED LOGISM FILES PLEASE. Please share screenshots of the 9 original instrunctions of the logism file. I have the instrunctions but need to submit
I NEED LOGISM FILES PLEASE. Please share screenshots of the original instrunctions of the logism file. I have the instrunctions but need to submit the images. Here are the instructions. Phase :
Arithmetic Addition: Adds two bit operands and provides the sum as an output. Important for general computation
Increment: Increments the value of a register by Helps with loops.
Decrement: Decrements the value of a register by Also important for loops.
Comparison: Compares two operands and provides three outputs which indicates equal, less than, and greater than. Important for conditional branching.
Logic Bitwise NOT: Performs a bitwise NOT operation on an operand. Useful for logical manipulation of data.
Logic Bitwise AND: Performs a bitwise AND operation between two operands. Useful for masking and filtering bits.
Logic Bitwise OR: Performs a bitwise OR operation between two operands. Useful for combining and setting bits.
Register Right Logic Shift: Shifts the bits of a register to the right. Important for division by powers of and bit manipulation.
Register Left Logic Shift: Shifts the bits of a register to the left. Useful for multiplication by powers.
Additional Instructions
Load Immediate: Loads an immediate value into a register. Important for registers with constants.
Store: Stores the value of a register into memory. Needed for transferring data between memory.
Load: Loads the value from memory into a register. Needed for retrieving data from memory for processing.
Bitwise XOR: Performs a bitwise XOR operation between two operands. Useful for data manipulation.
Clear: Sets all bits in a register to zero. Important for resetting registers.
Phase Two:
Opcode Table:
Arithmetic Addition: Opcode
Increment: Opcode
Decrement: Opcode
Comparison: Opcode
Logic Bitwise NOT: Opcode
Logic Bitwise AND: Opcode
Logic Bitwise OR: Opcode
Register Right Logic Shift: Opcode
Register Left Logic Shift: Opcode
Load Immediate: Opcode
Store: Opcode
Load: Opcode
Bitwise XOR: Opcode
Clear: Opcode
Number of Operands: operand with accumulator
Phase Four:
Program : Add Two Operands
LOAD R Operand ; Load the first operand into register R
LOAD R Operand ; Load the second operand into register R
ADD R R R ; Add the contents of R and R store the result in R
; Result is now in R
Program : Add Operands Until the New Value is
LOAD R Operand ; Load the initial operand into register R
CLEAR R ; Clear register R to store the sum
LOOP:
ADD R R R ; Add R to R and store the result in R
CJMP R R END ; Conditional jump to END if R equals R
JMP LOOP ; Unconditional jump back to LOOP
END:
; Result is in R
Program : Increment by Ten Times
CLEAR R ; Clear register R
LOADIMM R ; Load immediate value into register R
LOOP:
ADD R R R ; Increment R by
CJMP R R END ; Conditional jump to END if R equals R
JMP LOOP ; Unconditional jump back to LOOP
END:
; Result is in R
Program : Shift Register Until Least Significant Bit is with Stop Condition
LOADIMM R ; Load immediate value into register R
LOADIMM RxFE ; Load immediate value xFE into register RLSB is
LOOP:
LEFTSHIFT R R ; Left shift R by
CJMP R R END ; Conditional jump to END if R equals RLSB is
JMP LOOP ; Unconditional jump back to LOOP
END:
; Result is in R
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started