subject

For the following code sequence, fill in the instructions or operands that are missing from the code sequence and marked with '(number)' - there are 5 blanks; label your answer 1, 2, 3, 4, 5.
; ; counts the number of times a character occurs in a string
; ; and store value on "result"
; ; character -- stored at x6000
; ; string -- stored at x7000
; ; result -- stored at x8000
.orig x3000
nmchr and r0,r0,#0
ld r1,afile ; ; r1 has address of the string (file in memory)
ldi 1 ; ; r2 has the value of the character
not r2,r2
2 r2,r2,#1 ; ; 2's complement of character
aloop ldr r3,r1,#0
3 stop ; ; leave loop on zero word
add r3,r3,r2
brnp nocount
add 4
nocount add r1,r1,#1
5 aloop
stop sti r0,acount ; ; count is stored
halt
achar .fill x6000
afile .fill x7000
acount .fill x8000
.end

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:40
"it security policy enforcement and monitoring" respond to the following: describe how monitoring worker activities can increase the security within organizations. describe the rationale that managers should use to determine the degree of monitoring that the organization should conduct. explain the extent to which you believe an organization has the right to monitor user actions and traffic. determine the actions organizations can take to mitigate the potential issues associated with monitoring user actions and traffic.
Answers: 3
question
Computers and Technology, 22.06.2019 11:40
Design a pos circuit that displays the letters a through j on a seven-segment indicator. the circuit has four inputs w, x, y, and z which represent the last 4 bits of the uppercase ascii code for the letter to be displayed. thus, if wxyz = 0001 then "a" will be displayed. (any answer with 22 or fewer gates and inverters, not counting any for the inputs, is acceptable)
Answers: 2
question
Computers and Technology, 22.06.2019 13:00
We as humans write math expression in infix notation, e.g. 5 + 2 (the operators are written in-between the operands). in a computer’s language, however, it is preferred to have the operators on the right side of the operands, i.e. 5 2 +. for more complex expressions that include parenthesis and multiple operators, a compiler has to convert the expression into postfix first and then evaluate the resulting postfix.write a program that takes an “infix” expression as input, uses stacks to convert it into postfix expression, and finally evaluates it. it must support the following operations: + - / * ^ % (example infix expression: (7 - 3) / (2 + 2)postfix expression: 7 3 - 2 2 + /result: 1guidelines: 1. you will need to use stacks in three placesa. one for the parenthesis check [char stack]b. one during infix to postfix [char stack]c. one during evaluation [int stack]for a and b above, you can use same array and same push, pop method as both ofthem are char. but for evaluation you have int stack and you might consider to createanother push pop method to handle it. maybe push_int, pop_int, etc. or find otherstrategy to utilize existing push pop method2. you can create a function for obtaining operator priority. that function should take anoperator as input and return its priority as an integer. this function will you a lot andreduce repeated code3. during evaluation you will need to convert char into integer. example for single digit: char c = '5'; int x = c - '0';
Answers: 2
question
Computers and Technology, 23.06.2019 05:20
What did creator markus “notch" persson initially call his game
Answers: 1
You know the right answer?
For the following code sequence, fill in the instructions or operands that are missing from the code...
Questions
question
English, 24.08.2020 22:01
question
Mathematics, 24.08.2020 22:01
question
Mathematics, 24.08.2020 22:01
question
Chemistry, 24.08.2020 22:01