New Semester
Started
Get
50% OFF
Study Help!
--h --m --s
Claim Now
Question Answers
Textbooks
Find textbooks, questions and answers
Oops, something went wrong!
Change your search query and then try again
S
Books
FREE
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Tutors
Online Tutors
Find a Tutor
Hire a Tutor
Become a Tutor
AI Tutor
AI Study Planner
NEW
Sell Books
Search
Search
Sign In
Register
study help
business
implementing programming languages
Assembly Language For X86 Processors 7th Edition Kip Irvine - Solutions
22. (True/False): An Object file is produced by the Linker.
21. What is the purpose of the PROTO directive?
20. In 32-bit mode, what is the purpose of the identifier in the END directive?
19. Which directive ends a procedure?
18. What type of argument must be passed to the ExitProcess procedure?
17. Why is it not a good idea to use numeric addresses when writing instructions that access variables?
16. Show an example of a block comment.
15. (True/False): A code label is followed by a colon (:), but a data label does not end with a colon.
14. (True/False): MOV is an example of an instruction mnemonic.
13. Name the four basic parts of an assembly language instruction.
12. (True/False): Assembly language directives can be written in any combination of uppercase and lowercase letters.
11. (True/False): Assembly language directives execute at runtime.
10. (True/False): A hexadecimal literal may be written as 0x3A.
9. (True/False): An identifier cannot begin with a numeric digit.
8. How are data labels and code labels different?
7. How is a source file different from a listing file?
6. Why might you use a symbolic constant rather than an integer literal in your code?
5. Explain the difference between big endian and little endian. Also, look up the origins of this term on the Web.
4. Explain why the term assembler language is not quite correct.
3. How do you reserve space for the stack in a program?
2. What is a calling convention, and how is it used in assembly language declarations?
1. Provide examples of three different instruction mnemonics.
7. Use TEXTEQU to assign the symbol SetupESI to the following line of code:mov esi,OFFSET myArray
6. Use TEXTEQU to create a symbol named Sample for a string constant, and then use the symbol when defining a string variable named MyString.
5. Use a TEXTEQU expression to redefine “proc” as “procedure.”
4. Show how to calculate the number of elements in the following array, and assign the value to a symbolic constant named ArraySize:myArray DWORD 30 DUP(?)
3. Write a statement that causes the assembler to calculate the number of bytes in the following array, and assign the value to a symbolic constant named ArraySize:myArray WORD 20 DUP(?)
2. Declare a symbolic constant named SecondsInDay using the equal-sign directive and assign it an arithmetic expression that calculates the number of seconds in a 24-hour period.
1. Declare a symbolic constant using the equal-sign directive that contains the ASCII code(08h) for the Backspace key.
5. What types of files are produced by the linker?
4. Which operating system component reads and executes programs?
3. (True/False): When a program’s source code is modified, it must be assembled and linked again before it can be executed with the changes.
2. (True/False): The linker extracts assembled procedures from the link library and inserts them in the executable program.
1. What types of files are produced by the assembler?
5. In the AddTwo program, which statement halts the program?
4. In the AddTwo program, which register holds the sum?
3. What are the names of the two segments in the AddTwo program?
2. In the AddTwo program, what does the .CODE directive identify?
1. In the AddTwo program, what is the meaning of the INCLUDE directive?
8. What is the maximum length of an identifier?
7. Reserved words can be instruction mnemonics, attributes, operators, predefined symbols, and __________.
6. (Yes/No): Must string literals be enclosed in single quotes?
5. Write the real number –6.2 * 104 as a real number literal using MASM syntax.
4. Create a single integer expression that uses all the operators from Section 3.1.2. Calculate the value of the expression.
3. (Yes/No): Does the multiplication operator (*) have a higher precedence than the division operator (/) in integer expressions?
2. (Yes/No): Is A5h a valid hexadecimal literal?
1. Using the value –35, write it as an integer literal in decimal, hexadecimal, octal, and binary formats that are consistent with MASM syntax.
26. Why do game programs often send their sound output directly to the sound card’s hardware ports?
25. At which level(s) can an assembly language program manipulate input/output?
24. (True/False): VRAM stands for virtual random access memory.
23. (True/False): The acronym PCI stands for programmable component interface.
22. (True/False): The 8259A is a controller that handles external interrupts from hardware devices.
21. (True/False): PCI connectors are used for graphics cards and sound cards.
20. (True/False): CMOS RAM is the same as static RAM, meaning that it holds its value without any extra power or refresh cycles.
19. (True/False): A bus is a plastic cable that is attached to the motherboard at both ends, but does not sit directly on the motherboard.
18. (True/False): In 64-bit mode, you can use up to eight floating-point registers.
17. (True/False): DRAM can only be erased using ultraviolet light.
16. (True/False): The 64-bit version of Microsoft Windows does not support virtual-8086 mode.
15. (True/False): The x86-64 processors have 4 more general-purpose registers than the x86 processors.
14. (True/False): In native 64-bit mode, you can use 16-bit real mode, but not the virtual-8086 mode.
13. (True/False): The 64-bit RDI register is available when the REX prefix is used.
12. (True/False): Static RAM is usually less expensive than dynamic RAM.
11. (True/False): The Itanium instruction set is completely different from the x86 instruction set.
10. (True/False): In current 64-bit chip implementations, all 64 bits are used for addressing.
9. (True/False): The x86-64 instruction set is backward-compatible with the x86 instruction set.
8. On a 32-bit processor, how many bits are contained in each floating-point data register?
7. Which part of the CPU performs floating-point arithmetic?
6. Which flag is set when an arithmetic or logical operation generates a negative result?
5. (True/False): When a register operand size is 32 bits and the REX prefix is used, the R8D register is available for programs to use.
4. Which flag is set when the result of a signed arithmetic operation is either too large or too small to fit into the destination?
3. Which flag is set when the result of an unsigned arithmetic operation is too large to fit into the destination?
2. Name at least four CPU status flags.
1. In 32-bit mode, aside from the stack pointer (ESP), what other register points to variables on the stack?
5. Is it likely that the BIOS for a computer running MS-Windows would be different from that used by a computer running Linux?
4. In the example regarding displaying a string of characters, which level exists between the operating system and the video controller card?
3. Why are device drivers necessary, given that the BIOS already has code that communicates with the computer’s hardware?
2. What characteristics distinguish BIOS-level input/output?
1. Of the four levels of input/output in a computer system, which is the most universal and portable?
5. What is the purpose of the 8259A PIC controller?
4. Name four types of RAM mentioned in this chapter.
3. List at least two features found in the Intel P965 Express chipset.
2. Describe VRAM.
1. Describe SRAM and its most common use.
4. What special purpose does the ECX register serve?
3. Name all six segment registers.
2. Name all eight 32-bit general-purpose registers.
1. What are the x86 processor’s three basic modes of operation?
5. Which two additional steps are required in the instruction execution cycle when a memory operand is used?
4. What are the three basic steps in the instruction execution cycle?
3. Why does memory access take more machine cycles than register access?
2. The central processor unit is connected to the rest of the computer system using what three buses?
1. The central processor unit (CPU) contains registers and what other basic elements?
9. Devise a way of subtracting unsigned binary integers. Test your technique by subtracting binary 00000101 from binary 10001000, producing 10000011. Test your technique with at least two other sets of integers, in which a smaller value is always subtracted from a larger one.
8. Write a Java program that contains the calculation shown below. Then, use the javap –c command to disassemble your code. Add comments to each line that provide your best guess as to its purpose.int Y;int X = (Y + 4) * 3;
7. Write a function that multiplies a single hexadecimal digit by a hexadecimal digit string as long as 1,000 digits. Return a hexadecimal string that represents the product.
6. Write a function that adds two hexadecimal strings, each as long as 1,000 digits. Return a hexadecimal string that represents the sum of the inputs.
5. Write a function that adds two digit strings in baseb, where 2 ≤ b ≤ 10. Each string may contain as many as 1,000 digits. Return the sum in a string that uses the same number base.
4. Write a function that receives an integer. The function must return a string containing the hexadecimal representation of the integer.
3. Write a function that receives an integer. The function must return a string containing the binary representation of the integer.
2. Write a function that receives a string containing a 32-bit hexadecimal integer. The function must return the string’s integer value.
Showing 800 - 900
of 1525
First
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Step by Step Answers