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
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

CPSC 355 FINAL EXAM VERIFIED 2025

Document preview thumbnail
Preview 1 out of 4 pages

CPSC 355 FINAL EXAM VERIFIED 2025

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

Document information

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

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

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
3.9
(128)
Sold
655
Followers
389
Items
12042
Last sold
1 week ago



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions