![jonathanmontalv](/avatars/37280.jpg)
jonathanmontalv
18.12.2019 •
Computers and Technology
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
Solved
Show answers
More tips
- H Health and Medicine How to Improve Your Posture?...
- A Animals and plants How to Properly Care for a Pet Decorative Rabbit at Home?...
- C Computers and Internet How to Check the Speed of My Internet?...
- H Health and Medicine 10 Ways to Cleanse Your Colon and Improve Your Health...
- W Work and Career How to Write a Resume That Catches the Employer s Attention?...
- C Computers and Internet Е-head: How it Simplifies Life for Users?...
- F Family and Home How to Choose the Best Diapers for Your Baby?...
- F Family and Home Parquet or laminate, which is better?...
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
Answers on questions: Computers and Technology
- C Computers and Technology We count 35 heads and 94 legs among the chickens and rabbits in a ground. How many rabbits and how many chickens do we have? //this is an example for programWrite a python...
- C Computers and Technology Why is science, mathematics, and technology different from engineering?...
- C Computers and Technology What are the main parts of the FlashSlideshow Maker?...
- C Computers and Technology What is difference between augmented reality and mixed reality?...
- H History What led to the rise of the republican party? how did the party define its position on slavery?...
- C Computers and Technology What type of network is a private network that belongs to an organization that can only be accessed by approved internal users?...
- S Social Studies What is the central symptom of child bipolar disorder or disruptive mood dysregulation disorder?...
- H History After the blockade and airlift to this city, germany was officially split into two, one democratic ( the west) and one communist( a puppet government of moscow). where did...
- B Business ‘we have all been waiting for a long time. but it never has been easy. the people must do it. you must do it...
- C Computers and Technology When the particles of a medium move with simple harmonic motion, this means the wave is a sinusoidal wave transverse wave harmonic wave sound wave standing wav?...
Ответ:
Just place all the key information into bullet points:
Pearl Harbour:
4 battleships & 2 destroyers = sunk2000+ causalitiesDecember 7th 1941