Get 2 days of unlimited access
at University of Calgary

Class Notes for CPSC 355 at University of Calgary (U OF C)

U OF CCPSC 355Leonard ManzaraWinter

CPSC355 Lecture 1: CPSC 355 notes.docx

OC40520460 Page
365
View Document
U OF CCPSC 355Leonard ManzaraFall

CPSC 355 Lecture 17: CPSC 355 - Lecture 17 – Oct 21st

Cpsc 355 - lecture 17 oct 21st. Addr: expression specifying the address in memory to read from: loads register with 8 bytes read from ram, eg: ldr, 32-
View Document
U OF CCPSC 355Leonard ManzaraFall

CPSC 355 Lecture Notes - Lecture 25: .Bss, Global Variable, Segmentation Fault

Cpsc 355 - lecture 25 nov 14th. Global variables: scope: global (from declaration onwards, lifetime: life of program, are stored in a separate section
View Document
U OF CCPSC 355Leonard ManzaraFall

CPSC 355 Lecture Notes - Lecture 28: Gnu Debugger, Assembly Language, Function Prototype

Cpsc 355 - lecture 28 nov 21st. Example using two separate assembly code files. global stp adrp x19, a_m add x19, x19, :lo12:a_m ldr w0, [x19] bl myfun
View Document
U OF CCPSC 355Leonard ManzaraFall

CPSC 355 Lecture Notes - Lecture 19: Assembly Language

Cpsc 355 - lecture 19 oct 26th. Array elements are accessed using load and store instructions: eg: ia[2] = 13; define(ia_base_r, x19) define(index_r, x
View Document
U OF CCPSC 355Leonard ManzaraFall

CPSC 355 Lecture Notes - Lecture 21: Specific Impulse, Subroutine, Machine Code

Cpsc 355 - lecture 21 oct 31st. Int main( ){ structure employee joe; joe. id = 4001; joe. start. day = 1; joe. start. month = 6; joe. start. year = 199
View Document
U OF CCPSC 355Leonard ManzaraFall

CPSC 355 Lecture Notes - Lecture 30: File Descriptor, Assembly Language, Standard Streams

Eg: opening an existing file called myfile. bin. Cpsc 355 - lecture 30 nov 25th. // error handling code (cid:862)(cid:373)yfile. bi(cid:374)(cid:863) w
View Document
U OF CCPSC 355Leonard ManzaraFall

CPSC 355 Lecture Notes - Lecture 12: Sign Bit

Cpsc 355 - lecture 12 oct 7th. Logical shift right: form (64-bit): lsr xd, xn, xm. Xm: shift count: 0 is shifted into leftmost bit. Shifted out bits ar
View Document
U OF CCPSC 355Leonard ManzaraFall

CPSC 355 Lecture Notes - Lecture 9: Mediacorp, Gnu Debugger, Punched Tape

Cpsc 355 - lecture 9 - sept 30th. } else { c = a + b; d = c + 5; c = a b; d = c 5; In assembly cmp a_r, b_r b. le else define(a_r, x19) define(b_r, x20
View Document
U OF CCPSC 355Leonard ManzaraFall

CPSC 355 Lecture Notes - Lecture 23: Call Stack, Local Variable, Assembly Language

Cpsc 355 - lecture 23 nov 6th. In calling code, the address of a variable is passed to the subroutine: implies that the variable must be in ram, not in
View Document
U OF CCPSC 355Leonard ManzaraFall

CPSC 355 Lecture Notes - Lecture 27: Object Code, Gnu Compiler Collection, Entry Point

Cpsc 355 - lecture 27 nov 18th. Equivalent assembly code define(i_r, w19) define(base_r, x20) fmt: spr_m: sum_m: fall_m: win_m season_m: . dword (cid:8
View Document
U OF CCPSC 355Leonard ManzaraFall

CPSC 355 Lecture Notes - Lecture 14: V Engine, Nsw Trainlink V Set, Arithmetic Shift

Cpsc 355 - lecture 14 oct 14th. 4-bit example: -8 -5 is -13 which is out of range (the modulus result is 3) V set to 1, n to 0, z to 0. 8 != 5, since z
View Document
Showing 1 — 12 of 35 result

Class Notes (1,000,000)
CA (600,000)
U of C (7,000)
CPSC (100)
CPSC 355 (30)