Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Instruction to Candidates:
Examiner: CAM
QUESTION ONE
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1a. Write assembly program that displays ten rows of a Pascal’s triangle
1b. Write assembly program that generate and displays ten rows of a Pascal’s triangle
QUESTION TWO
Using the XLAT instruction and int16 for direct keyboard input, write an assembly
language program that filters input from the console by screening out all ASCII codes
less than 32 or greater than 127.
QUESTION THREE
Suppose you have an eight bit I/O device connected to two I/O ports. Suppose bit zero of
port 310h contains a one if data is available and a zero otherwise. If data is available, the
CPU must read the eight bits at port 311h. Reading port 311h clears bit zero of port 310h
until the next byte arrives. Using a classical polling loop to wait for each available