subject

We are just beginning to study branch instructions, but they are actually quite easy to understand. In a branch instruction, a test is made for a certain condition, normally comparing two registers or perhaps determining the value of a single register. An example is bgez $t1,next. This branch instruction instructs the computer to evaluate the contents of the register $t1. If the contents are greater than or equal to 0 (≥ 0), then the computer immediately goes to the instruction labeled "next," wherever it is in the program, and executes it, continuing to execute instructions from that point. If the contents of $t1 are less than zero, the computer simply executes the instruction that follows the branch instruction.
Let’s use that simple branch instruction to do the following:
Load the two words declared in the data statement shown to the right into registers, and then determine if either is ≥ 0. If either number is ≥ 0, print it out using syscall 1 (you do not have to include a leader of any sort). If a number is negative, do not print it out. End the program with a syscall 10. Note: you can declare words as either decimal or hexadecimal. SPIM understands both number systems.

If only one number is printed out, which number is it?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:10
(328 inc. 448 ind. 480 in25. john has a collection of toy cars. he has 2 red cars, 4 blue cars, 4 black cars, and 6 yellowcars. what is the ratio of red cars to yellow cars? a. 1: 2b. 1: 3c. 1: 626. the net of a right triangular prism is shown below.
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
question
Computers and Technology, 24.06.2019 03:00
With editing, word automatically displays a paste options button near the pasted or moved text. a. cut-and-paste b. drag-and-drop c. inline d. copy-and-carry
Answers: 1
You know the right answer?
We are just beginning to study branch instructions, but they are actually quite easy to understand....
Questions
question
Computers and Technology, 16.08.2021 21:10
Questions on the website: 13722360