Bartleby Related Questions Icon
Related questions
Question
Transcribed Image Text:Write a MARIE assembly code to perform the following
pseudocode excerpt.
Input a number
Assign this number to x
Input a number
Assign this number to y
If y< x
{
Let z= 2*x
}
Assign the value of y to AC
Else
{
Let z=3*x
Assign the value of x to AC
}
End: Display the AC value
Stop
b) Include a screenshot of the simulation's result (A
screenshot of the MARIE Simulator window after running
the program).
Instructions:
- Use "ORG" instruction to start your program at address
equivalent to (30008).
- use the number 5 as the value of x and 9 as the value
of y.
- Do not forget to change the Input and output boxes to
decimal!
- Proper labels and directives should be included at the
end of your program.
Expert Solution
Check MarkThis question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
bartleby
This is a popular solution
bartleby
Trending nowThis is a popular solution!
bartleby
Step by stepSolved in 4 steps
Knowledge Booster
Background pattern image
Similar questions
- Theory of Computation Write a program to implement DFA, NFA, RE, CFG, PDA, TG, TM, ....arrow_forwardThe selected answer in the image is wrongarrow_forwardFor questions 6 through 10, state whether the statements are True or False (Do not provide any explanation or comment but only an answer of either True or False): 6. After the LMC instruction 333, the original number in the calculator is unchanged. 7. After the LMC instruction 555, the original number in the mailbox with address 55 is unchanged. 8. The main memory of the computer is often known as primary storage, working storage, or ROM (for read-only memory). 9. The operating system's application programming interface (API), acts as an interface for application programs and utilities to access the internal services provided by the operating system. TRUEarrow_forward
- *C PROGRAM FOR MICROPROCESSOR* Write a C program that will use 7-segement LEDS to display the number of key on the keypad when it is pressed. The display needs to stay on the 7-segment LEDS until the next key is pressed. Interrupt method is not required.arrow_forwardUsing memory-mapped I/O and polling, write a program that reads characters directly from thekeyboard. To demonstrate how slow the keyboard device is, print the character pressed and thenumber of iterations after exiting the wait_keyboard loop. Repeat the execution of theprogram until the newline character is pressed. Make sure to activate the "Keyboard andDisplay MMIO Simulator" and to run the MARS simulator at maximum speed. Assembly Language - MARSarrow_forwardThe major distinction that can be made between data and instructions will be the topic of discussion in the next portion of this article.arrow_forward
- a memory device in a computer system. It is mainly used for ( ).A, store data B, store procedures C, store data and programs D, store microprogramsarrow_forwardAssembly Language Programming Write an 8086 assembly program to will take in basic information from a student, including student name, degree name, number of credits taken so far, and the total number of credits required in the degree program. The program will then calculate how many credits are needed to graduate.arrow_forwardImplement the counter increment and return to the beginning of the loop. When you finish these stages, you should have the fundamental structure of the counter control loop established, and your code should look like this:.text li $s0, 0 lw $s1, n start_loop: sle $t1, $s0, $s1 beqz $t1, end_loop # code block addi $s0, $s0, 1 b start_loop end_loop:.datan:.word 5arrow_forward
- True and false in MATLABarrow_forwardCOSC-1315 2807 12B Introduction to Computer Programming For this discussion, you saw in the chapter that the while loop is a pretest loop. What is a post test loop and what example can you come up with? Lastly, what explanation can you find as to why Python does not have a post test loop?arrow_forwardWrite Assembly Language Program to evaluate the expression 3 * 3 * 3 ( Code and Photo ) program: ( 8085 Simulator )arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios