100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

CPSC 355 FINAL EXAM VERIFIED 2025

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
05-03-2025
Written in
2024/2025

CPSC 355 FINAL EXAM VERIFIED 2025

Institution
CPSC
Course
CPSC

Content preview

CPSC 355 FINAL EXAM VERIFIED 2025
ASCII character set - ANSWER-a universal chart which encodes the proper decimal
and binary equivalent of different characters using 7 bits
in assembly character constants can be denoted with hex code and the character in
single quotes
A string is an array of characters and can be initialized in memory one byte at a time
(.byte 'h', 'e', 'l', 'l', 'o') or using the .ascii pseudo op (.ascii "hello")
a string literal is a read only array of characters allocated in the .text section

command line arguments - ANSWER-allow you to pass values from the shell into your
program

External arrays of pointers - ANSWER-are created with a list of labels
.text
fmt: .string "season[%d] = %s\n"
spr_m: .string "spring"
sum_m: .string "summer"
fal_m: .string "fall"
win_m .string "winter"

external arrays of pointers - ANSWER-pointers are double word aligned .balign 8

external variables - ANSWER-.byte .hword .word. dword don't need to be allocated on
the stack.

ldr w20, [x19]
adrp x19, j_m
add x19, x19, :lo12:j_m
used to load value of i_m

External Variables - ANSWER-are non-local variables, allocated in the data or bss
sections and are used to implement global and static local variables
Can be allocated and initialized using .dword .word .hword .byte
Form:
label: pseudo-op values
The labels represent 64 bit addresses.
To use them use adrp and add to put the address into a register and then use ldr and
str to access
Ex:
.data
i_m .word 2
.text
usual stuff
adrp x19, i_m

Written for

Institution
CPSC
Course
CPSC

Document information

Uploaded on
March 5, 2025
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

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.
CLOUND Exam
View profile
Follow You need to be logged in order to follow users or courses
Sold
620
Member since
2 year
Number of followers
389
Documents
11482
Last sold
10 hours ago
PROF MM

HELLO WELCOME TO THIS PAGE WHERE YOU WILL FIND ALL EXAMS ,STUDY GUIDE ,CASE, TESTBANKS AND ANY OTHER STUDY MATERIALS,

4.0

122 reviews

5
64
4
16
3
29
2
3
1
10

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