Professional Documents
Culture Documents
Answer II Detered Exam
Answer II Detered Exam
Answer II Detered Exam
Q3: A:the DMA method is one of the I/O techniques where the CPU has not
related to the whole I/O operation(it will know the start and the end of
operation) and DMA is the fastest method where block of data transfer can be
applied between memory and I/O devices. The diagram refer to I/O lecture.
B:Bit 7 of command byte if equals to 1; states that each Port what to be (IN,
OUT, or control) as well as define the modes of 8255 mode 0 (simple I/O no
handshake) mode 1 (strobe I/O) and mode 2 (Strobed Bidirectional I/O)
And when Bit 7=0 it will program the C port bits. Refer to diagram in I/O
lecture.
C:the second part is the condition of first part IN first then OUT
Up: IN AL, 98H ; input the value to accumulator
CMP AL, 0FFH ; is equal to FF
JNE UP ; if not wait
MOV DX, 55BFH ; 16 bit address
MOV AL, 0A6H ; get the pattern
OUT DX, AL ; output the pattern to output port
CALL Delay_sub ; you write this subroutine as we learned
HLT
Write here the Delay subroutine as given in delay lecture