SYSC 3006 Computer Organization
SYSC 3006 Computer Organization
All 1 results
Sort by
-
Lab 8 Carleton University SYSC 3006
- Exam (elaborations) • 5 pages • 2023
-
- $7.99
- 1x sold
- + learn more
Fragment 1: 
B Main 
ExampleString ; start of packed string 
DCD #0x ; ‘S’=0x53 ‘Y’=0x59 ‘S’=0x53 ‘C’=0x43 
DCD #0x 
DCD #0x ; 1st 00 is the null-terminator, 2nd 00 is just padding to fill the word 
Main 
; R0 = address of the packed string 
LEA R0, [ ExampleString ] 
; R1 = index of the character in the packed string ... test with several values 
 MOV R1, #5 
; the following code puts the indexed character into the least significant byte of R0, 
; and clears the remainder of R0 ...
Did you know that on average a seller on Stuvia earns $82 per month selling study resources? Hmm, hint, hint. Discover all about earning on Stuvia