BLE_H =$00     rjmp RESET .def A =r13 .def B =r14 .def cnt2 =r15 .def cnt1 =r16

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

What does the following code segment and subroutine do?

.equ SIZE =128
.equ TABLE_L =$60
.equ TABLE_H =$00

    rjmp RESET

.def A =r13
.def B =r14
.def cnt2 =r15
.def cnt1 =r16
.def endL =r17
.def endH =r18

mystery:

mov ZL,endL
mov ZH,endH
mov cnt2,cnt1
i_loop: ld A,Z
    ld  B,-Z
    cp A,B
    brlo L1
    st Z,A
    std z+1,B
L1: dec cnt2
    brne i_loop
    dec cnt1
    brne mystery
    ret

Converts temperature values from one scale to another

Adds a constant to a table of bytes

Sorts numbers in ascending order

Converts ASCII characters from lower case to upper case

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Data Binding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning