Computers and Technology

Find8 ldr r0,=lstl ; point to list length f2 ldr r1,[r0] ; r1 = list length f2a sub r1,r1,#1 ; decrement so r1 = list length - 1 f3 ldr r0,=dlst ; point to list start f4 ldr r2,=0 ; init max val reg f5 ldr r4,=0 ; zero offset counter f8lp1 ldrb r3,[r0,r4] ; read list element f6 cmp r2,r3 ; comp against max val f8 bhi f8ct1 ; branch if r2> r3 f9 mov r2,r3 ; else new max val f8ct1 add r4,r4,#1 ; increment offset counter f10 cmp r4,r1 f11 bls f8lp1 ; loop for all list f12 ldr r0,=maxv f13 strb r2,[r0] ; save max val c4 ; c5 ; no infinite loop because c6 ; the emulator stops at end c7 ; c8 ; stop bal stop c9 ; lstl dcb 15 ; lstl - count offset 0 -> (lstl - 1) maxv dcb 0 dlst dcb 254,5,25,250,100,150,30,200,253,15, 23,46,73,175,0 ; end ; end directive to show nothing more in file

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:00, olorteguimikie
Which part of the cpu accepts data?
Answers: 1
image
Computers and Technology, 23.06.2019 07:50, kmart4062
Apython programming question: assume s is a string of lower case characters. write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print number of times bob occurs is: 2
Answers: 3
image
Computers and Technology, 23.06.2019 09:00, paulusl19
The first screen you see when you open word2016 what is called?
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, deflox74
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
Do you know the correct answer?
Find8 ldr r0,=lstl ; point to list length f2 ldr r1,[r0] ; r1 = list length f2a sub r1,r1,#1 ; decre...

Questions in other subjects:

Konu
Mathematics, 30.11.2021 22:40