Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CPEN exam 2 Questions And Answers

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
13-03-2024
Written in
2023/2024

CPEN exam 2 Questions And Answers Stack - answera range of consecutive memory locations set aside for temporarily storing and retrieving data bytes SP - answerR13 Stack point grows from ____ addresses to ____ addresses - answerhigh, low Stack is ____ in _____ out - answerlast, first _____ and _____ are instructions used to load and retrieve data from the stack - answerPUSH, POP PUSH {R1} - answerSUB R13, #4 STR R1, [R13] POP {R1} - answerLDR R1, [R13] ADD R13, #4 subroutine return instruction - answerBX LR subroutine call instruction - answerBL subroutine CMP R0, #7 BLS next - answerR0 7 CMP R0, #7 BLO next - answerR0 = 7 CMP R0, #7 BHS next - answerR0 7 CMP R0, #7 BHI next - answerR0 = 7 BLS, BLO, BHS, BHI are _______ conditional structures - answerunsigned BLT, BGE, BGT, BLE are _______ conditional structures - answersigned CMP R0, #7 BNE next - answerR0 == 7 CMP R0, #7 BEQ next - answerR0 != 7 CMP R0, #7 BLE next - answerR0 7 CMP R0, #7 BLT next - answerR0 = 7 CMP R0, #7 BGE next - answerR0 7 CMP R0, #7 BGT next - answerR0 = 7 == - answerBNE != - answerBEQ (unsigned) - answerBLS = (unsigned) - answerBLO (unsigned) - answerBHS = (unsigned) - answerBHI (signed) - answerBLE = (signed) - answerBLT (signed) - answerBGE = (signed) - answerBGT conditional structure (comparing G with 7) - answerLDR R2, =G; LDR R0, [R2] CMP R0, #7 BXX next BL subroutine next if (G1 G2) isGreater(); else isLess(); - answerLDR R2, =G1 LDR R0, [R2] LDR R2, =G2 LDR R1, [R2] CMP R0, R1 BHI high BL isLess B next high BL isGreater next while (G2 G1) Body(); - answerLDR R4, =G1 LDR R5, =G2 loop LDR R0, [R4] LDR R1, [R5] CMP R0, R1 BLS next BL Body B loop next for(i=0; i100; i++){ Process(); } - answerMOV R4, #0

Show more Read less
Institution
CPEN
Course
CPEN









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CPEN
Course
CPEN

Document information

Uploaded on
March 13, 2024
Number of pages
8
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$11.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Brainbarter Kaplan University
View profile
Follow You need to be logged in order to follow users or courses
Sold
344
Member since
2 year
Number of followers
154
Documents
22706
Last sold
4 days ago
A+ STUDY MATERIALS.

We offer a wide range of high-quality study materials, including study guides practice exams and flashcards. WELCOME.

3.6

56 reviews

5
23
4
8
3
12
2
4
1
9

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions