SYSC 3006 Computer Organization
Latest uploads at SYSC 3006 Computer Organization. Looking for notes at SYSC 3006 Computer Organization? We have lots of notes, study guides and study notes available for your school.
-
1
- 0
- 0
All courses for SYSC 3006 Computer Organization
-
SYSC 3006 Computer Organization 1
Latest content SYSC 3006 Computer Organization
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 ...
- Exam (elaborations)
- • 5 pages's •
-
SYSC 3006 Computer Organization•SYSC 3006 Computer Organization
Preview 2 out of 5 pages
Getting your document ready...
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 ...