{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

k265qz6sp10 - Quiz 6 ECE 265 Sp 10 1 Write a short piece of...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Quiz 6 ECE 265 Sp 10 1. Write a short piece of code to force the most significant bit of A to be one, without changing any of the other bits. oil/V" 4‘7. WW 0000 (ORA/3‘ iii-$80) 2. Write a short piece of code to force the 4 most significant bits of B to be zero, without changing any of the other bits. ANDB WA oooollu (mob time) 3. Write a short piece of code to force the least significant bit of A to be the one’s complement 98 what it was, without changing any of the other bits. 9? 6 EM #7., 0000 Dom (50m ttm ) l noi xoRA ! 4. What is the value in A ( in hex) after this code executes? Ldaa #-1 Lsra A § 7‘: ' 5. What is the value in B ( in hex) after this code executes? Ldab #$0F CLC RORB RORB B 333 ...
View Full Document

{[ snackBarMessage ]}