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
7. Show the mapping of foreground and background colors in the video attribute byte.
6. Which electron beams are required to generate any color on a video display?
5. Each position on the video display holds what information for a single character?
4. When a computer is booted in MS-DOS, what is the default video mode?
3. How do you run a program in full-screen mode?
2. Which level of access produces the fastest output?
1. What are the three levels of access to the video display mentioned in the beginning of this section?
11. Challenge: The ClearKeyboard procedure in Section 16.2.2 checks for only a single keyboard scan code. Suppose your program had to check for multiple scan codes (the four cursor arrows, for example). Show examples of code modifications you could make to the procedure to make this possible.
10. Write statements that input the keyboard flag byte and repeat a loop until the Ctrl key is pressed.
9. Which bit in the keyboard flag byte indicates that the ScrollLock key has been pressed?
8. Which INT 16h function gives you the value of the keyboard flag byte?
7. Does INT 16h function 11h remove a character from the keyboard buffer?
6. Which INT 16h function examines the keyboard buffer and returns the scan code and ASCII code of the first available input?
5. Which INT 16h function removes the next available key from the keyboard buffer?
4. Which INT 16h function pushes keys into the keyboard buffer?
3. What operations are performed by the INT 9h service routine?
2. Where in memory are keyboard input characters kept while waiting to be processed by application programs?
1. Which interrupt (16h or 21h) is best for reading user input that includes function keys and other extended keys?
7. Hexadecimal Sector Display Using the Sector Display program (Section 15.4.1) as a starting point, add code that lets the user press F2 to display the current sector in hexadecimal, with 24 bytes on each line. The offset of the first byte in each line should be displayed at the beginning of the
6. Displaying the Sector Number Using the Sector Display program (Section 15.4.1) as a starting point, display a string at the top of the screen that indicates the drive specifier and current sector number (in hexadecimal).
5. Disk Free Space, in Clusters Modify the Disk Free Space program from Section 15.5.1 so that it displays the following information:Drive specification: "C:\"Bytes per sector: 512 Sectors per cluster: 8 Total Number of clusters: 999999 Number of available clusters: 99999
4. Show File Attributes Write a procedure named ShowFileAttributes that receives the offset of a filename in DX and displays the file’s attributes in the console window. Attributes to look for are normal, hidden, read-only, and system. Hint: Use INT 21h Function 7143h.Write a program that calls
3. Disk Free Space Write a procedure named Get_DiskFreespace that returns the amount of free space on a selected disk drive. Input: DS:DX points to a string containing the drive specifier. Output: EDX:EAX = disk free space, in bytes. Write a program that tests the procedure and displays the 64-bit
2. Disk Space Write a procedure named Get_DiskSize that returns the amount of total data space on a selected disk drive. Input: AL = drive number (0 = A, 1 = B, 2 = C, ...). Output: DX:AX = data space, in bytes.
1. Set Default Disk Drive Write a procedure that prompts the user for a disk drive letter (A, B, C, or D), and then sets the default drive to the user’s choice.
4. Which INT 21h function would you call if you wanted to make a file read-only?
3. Which INT 21h functions would you call if you wanted to create a directory named D:\apps and make it the current directory?
2. Which INT 21h function would you use to find out how many clusters are free on drive C?
1. Which INT 21h function would you use to get the cluster size of a disk drive?
5. Challenge: In the Sector Display program (Section 15.4.1), what would happen if the starting sector number was out of range?
4. In the Sector Display program (Section 15.4.1), why is Interrupt 10h used to display characters?
3. What input parameters are required by INT 21h Function 7305h?
2. (True/False): INT 21h Function 7305h reads one or more disk sectors only in protected mode.
1. (True/False): You can read sectors from a hard drive using INT 21h Function 7305h under Windows Me, but not under Windows XP.
12. Challenge: Illustrate the file allocation table links for a file that uses clusters 2, 3, 7, 6, 4, and 8, in that order.
11. MS-Windows added two new date fields to the original MS-DOS file directory entry. What are their names?
10. If a filename has 18 characters, how many long filename entries are required?
9. When a long filename is stored in a volume directory (under MS-Windows), how is the first long filename entry identified?
8. Show the format of the time stamp field in an MS-DOS directory entry.
7. In an MS-DOS filename entry, identify the six possible status byte values.
6. Name the seven basic fields of an MS-DOS directory entry (do not include the reserved field).
5. How many bytes are used by an MS-DOS directory entry?
4. (True/False): The MS-DOS date field in a directory entry must be added to 1980.
3. (True/False): A file’s directory entry contains the file’s starting sector number.
2. (True/False): The primary list of files on a disk is called the base directory.
1. (True/False): A file specification includes both a file path and a file name.
16. Challenge: Explain how NTFS stores sparse files. (To answer this question, you will have to visit the Microsoft MSDN Web site and look for the information.)
15. Challenge: If a disk has a cluster size of 8 KByte, how many bytes of wasted space will there be when storing an 8200-byte file?
14. On a disk drive formatted by MS-DOS, how might you determine the number of sectors used by each cluster?
13. Describe the four areas (in order) of a 1.44 MByte diskette.
12. What is the largest FAT32 disk volume that supports 4 KByte clusters?
11. If you have a 20 GByte disk volume and you wish to have a cluster size 8 KByte (to avoid wasted space), which file system(s) could you use?
10. Suppose you need to keep a record of the last ten changes to a file. Which file system(s) supports this feature?
9. Which MS-Windows file system(s) support disk mirroring, where the same data is simultaneously written to multiple drives?
8. Which MS-Windows file system(s) support 16-bit Unicode filenames?
7. Suppose your disk volume’s boot record was corrupted. Which file system(s) would provide support for a backup copy of the boot record?
6. Under Windows 98, what is the largest permitted FAT16 volume?
5. (True/False): Linux does not support the FAT32 file system.
4. (True/False): The FAT32 file system allows the setting of individual user permissions for directories, but not files.
3. (True/False): All file systems except NTFS require the use of at least one cluster to store a file.
2. (True/False): The starting cluster number of a file is stored in the disk parameter table.
1. (True/False): A file system maps logical sectors to clusters.
13. When a primary partition is active, it is called the ______ partition.
12. How many primary partitions can be active at the same time?
11. What is contained in the master boot record?
10. What is a low-level format?
9. What does a drive’s average seek time measure?
8. Another name for a drive partition is a drive _________.
7. When a file’s storage becomes fragmented, what does this mean in terms of cylinders and seek operations performed by the drive?
6. Why are files initially stored in adjacent cylinders?
5. Under FAT32, how many bytes are used by a logical sector?
4. (True/False): Physical sectors are always 512 bytes because the sectors are marked on the disk by the manufacturer.
3. A ________ consists of all tracks accessible from a single position of the read/write heads of a hard drive.
2. (True/False): A sector consists of multiple tracks.
1. (True/False): A track is divided into multiple units called sectors.
8. CountWords Procedure Write a program that counts the words in a text file. Prompt the user for a file name, and display the word count on the screen. The only procedure you may call from the book’s link library is WriteDec. All other input/output must be performed using INT 21h.
7. File Encryption Using XOR Enhance the file encryption program from Section 6.3.4 as follows:• Prompt the user for the name of a plaintext file and a ciphertext file.• Open the plaintext file for input, and open the cipher text file for output.• Let the user enter a single integer
6. Text Matching Program Write a program that opens a text file containing up to 60K bytes and performs a case-insensitive search for a string. The string and the filename can be input by the user. Display each line from the file on which the string appears and prefix each line with a line number.
5. File Creation Date Write a procedure that displays the date when a file was created, along with its filename. Pass a pointer to the filename in the DX register. Write a test program that demonstrates the procedure with several different filenames, including extended filenames. If a file cannot
4. Uppercase Conversion Write a program that uses INT 21h to input lowercase letters from the keyboard and convert them to uppercase. Display only the uppercase letters.
3. Setting the Date Write a program that displays the current date and prompts the user for a new date. If a nonblank date is entered, use it to update the system date.
2. Copy a Text File Modify the Readfile program in Section 14.3.6 so that it can read a file of any size. Assuming that the buffer is smaller than the input file, use a loop to read all data. Use a buffer size of 256 bytes. Display appropriate error messages if the Carry flag is set after any INT
1. Read a Text File Open a file for input, read the file, and display its contents on the screen in hexadecimal. Make the input buffer small—about 256 bytes—so the program uses a loop to repeat the call to Function 3Fh as many times as necessary until the entire file has been processed.
9. Write a short code segment that positions the file pointer 50 bytes from the beginning of a file. Assume that the file is already open, and BX contains the file handle.
8. If you wanted to read a random-access file, which INT 21h function would permit you to jump directly to a particular record in the middle of the file?
7. When calling Function 3Fh, how is reading from a file different from reading from the keyboard?
6. How do you check for end of file when reading an input file using INT 21h Function 3Fh?
5. When you call Function 716Ch to read a binary array from a file that is already open, what argument values are required?
4. Show an example of opening an existing file for input.
3. When you call Function 716Ch to create a file, what arguments are required?
2. After calling an MS-DOS I/O function, which flag indicates that an error has occurred?
1. Name the five standard MS-DOS device handles.
10. Which INT 21h function would you use to check the standard input buffer to see if a character is waiting to be processed?
9. Which INT 21h functions shown in this chapter probably will not work under Windows NT, 2000, or XP with a restricted user profile?
8. If you want to get the system date, display it, and then change it, which INT 21h functions are required?
7. Which INT 21h function reads a block of data from the standard input device?
6. Which INT 21h function reads a single character from standard input?
5. Which INT 21h function writes a block of data to a file or device?
4. Which INT 21h function writes a string terminated by a $ character to standard output?
3. Which INT 21h function writes a single character to standard output?
Showing 100 - 200
of 1525
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Last
Step by Step Answers