Summary
COS2621 Summary for Prescribed Book and NASM for DOS-Box
- Institution
- University Of South Africa (Unisa)
COS2621 summary for the prescribed book. Summary of NASM (assembly language) bit manipulation and useful keywords.
[Show more]Preview 4 out of 116 pages
Add to cartSome examples from this set of practice questions
1.
Name the 4 logic instructions used in assembly for bit manipulation.
Answer: AND, OR, XOR, NOT
2.
What does the AND instruction do?
Answer: Performs a Boolean AND operation between each pair of matching bits in two operands.
3.
What does the OR instruction do?
Answer: Performs a Boolean OR operation between each pair of matching bits in two operands.
4.
What does the XOR instruction do?
Answer: Performs a Boolean exclusive-OR operation between each pair of matching bits in two operands. It is also a useful way to invert bits in an operand.
5.
What does the NOT instruction do?
Answer: Performs a Boolean NOT operation on a single destination operand.
6.
Where is the result stored of the AND, OR and XOR operations? (i.e. AND destination, source)
Answer: The result is stored in the destination, which must be a general register or a memory location.
7.
Fill in the blank. The Destination and Source cannot both be ____________.
Answer: memory locations
8.
What flags are effected by AND, OR and XOR instructions?
Answer: Zero flag (ZF), Sign flag (SF), Parity flag (PF) are affected. carry flag (CF) and overflow flag (OF) are cleared. AF is undefined
9.
Name the 4 instructions used to clear a registry.
Answer: MOV, SUB, AND or XOR instruction can be used to clear a registry.
10.
Name the 2 instructions used to clear a memory location.
Answer: MOV or AND instructions can be used to clear a memory location.
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Stuvia is a marketplace, so you are not buying this document from us, but from seller PotatoArmor. Stuvia facilitates payment to the seller.
No, you only buy this summary for R70,00. You're not tied to anything after your purchase.
4.6 stars on Google & Trustpilot (+1000 reviews)
53068 documents were sold in the last 30 days
Founded in 2010, the go-to place to buy summaries for 14 years now