Prescription:PR330 Programming (Systems)

Aim of Module To enable students to understand and develop system software for an environment involving PCs running DOS, linked together to form a LAN

Credits 14

Knowledge Assumed From CA200 Computer Architecture & Organisation

Suggested Time 140 student learning hours

Prescription Expiry Date Nov 2002


Level and Assessment Schedule
TopicsHighest
Skill Level
Suggested
Assessment
Percentage
1 Structure of DOS C 5
2 DOS Data Areas A 10
3 Files and the DOS Filing System A 15
4 Devices A 25
5 Memory Management C 5
6 Writing Terminate & Stay Resident Programs A 25
7 7. Process Communication on a LAN A 15

100


The Student Will

1  Structure of DOS
CExplain the basic components of DOS, the facilities they provide and when they are loaded.
1.1Initialisation procedure (BIO.COM, DOS.COM).
1.2User level (command.com, internal/external commands, alternative shells, comspec, batch files).
1.3Application level (com vs exe files, paths, program segmentation, command-line parameters).
1.4Hardware level (BIOS.in RAM or ROM, EMS)
top
2  DOS Data Areas
> Describe the format and use of the DOS data areas that are needed to write the applications covered. These may include the following:
C2.1Program Segment Prefix (PSP)
File control blocks (FCB)
Data Transfer area (DTA)
System file table (SFT)
Device parameter block (DPB)
Memory control block (MCB)
List of lists
Disk cache blocks
Current Directory Structure (CDS)
Environment space and variables
A2.2Write a simple program to obtain a command-line parameter from the PSP.
top
3  Files and the DOS Filing System
> Explain in detail the DOS filing system and the facilities provided by DOS for file operations:
C3.1File Allocation Tables (FAT)
Directory entries and structure
File types (hidden, system etc)
Operations on local and network files (open, close, read,
write, locking and sharing)
Detecting and recovering lost sectors on the disk
Recovering deleted files
Checking disk consistency
A3.2Write a simple application to use the file and record locking facilities provided to shared files.
top
4  Devices
> Explain the way to control a variety of physical devices using DOS and BIOS functions.
C4.1Serial port devices.
> The speaker (via oscillator).
> The keyboard:
- testing keyboard status
- read without echo
- reading the shift status register and scan codes
> Graphics adapters:
- use of video ram
- detecting graphics adapters
- simple graphics operations
- cursor positioning
> Serial interface
A4.2Write and install a simplified device driver. Typical drivers may be for:
- serial port
- speaker
- graphics card
top
5  Memory Management
CUse the functions provided by DOS to the programmer to allocate and release memory.
- expanded vs. extended memory
- allocating and freeing memory
- adjusting block size
- MCB chain
top
6  Writing Terminate & Stay Resident Programs
> Use the functions provided by DOS to write a simple TSR which works correctly with other TSRs.
C6.1The re-entrancy problem with DOS
The DOS busy flag (function 34h)
Patching into interrupt vectors
Loading, executing and removing TSRs
A6.2Write a simple TSR. Typical applications may include:
- A resident clock program
- A print screen utility which will not hang the system
- A resident spooler/despooler
top
7  7. Process Communication on a LAN
> Use the facilities provided to develop an application which handles concurrent update problems to the same file on a LAN.
C7.1Process synchronisation.
Accessing network status information.
Communicating with other network processes
A7.2Write a program which controls concurrent update to the same file on a LAN.
top