Samenvatting
COS2621 Summary for Prescribed Book and NASM for DOS-Box
- Vak
- Instelling
- Boek
COS2621 summary for the prescribed book. Summary of NASM (assembly language) bit manipulation and useful keywords.
[Meer zien]Voorbeeld 4 van de 116 pagina's
Enkele voorbeelden uit deze set oefenvragen
1.
Name the 4 logic instructions used in assembly for bit manipulation.
Antwoord: AND, OR, XOR, NOT
2.
What does the AND instruction do?
Antwoord: Performs a Boolean AND operation between each pair of matching bits in two operands.
3.
What does the OR instruction do?
Antwoord: Performs a Boolean OR operation between each pair of matching bits in two operands.
4.
What does the XOR instruction do?
Antwoord: 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?
Antwoord: 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)
Antwoord: 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 ____________.
Antwoord: memory locations
8.
What flags are effected by AND, OR and XOR instructions?
Antwoord: 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.
Antwoord: MOV, SUB, AND or XOR instruction can be used to clear a registry.
10.
Name the 2 instructions used to clear a memory location.
Antwoord: MOV or AND instructions can be used to clear a memory location.
Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!
Je betaalt supersnel en eenmalig met iDeal, creditcard of Stuvia-tegoed voor de samenvatting. Zonder lidmaatschap.
Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!
Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.
Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.
Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper PotatoArmor. Stuvia faciliteert de betaling aan de verkoper.
Nee, je koopt alleen deze samenvatting voor €3,53. Je zit daarna nergens aan vast.
4,6 sterren op Google & Trustpilot (+1000 reviews)
Afgelopen 30 dagen zijn er 94340 samenvattingen verkocht
Opgericht in 2010, al 14 jaar dé plek om samenvattingen te kopen