To write an assembly language program to display current system time.(DOS PROGRAMMING)
Aim:
To write an assembly language program to displaycurrent system time.(DOS PROGRAMMING)
Software required:
TASM TURBO ASSEMBLER
Program:
.MODEL SMALL .STACK 100H .DATA PROMPT DB 'Current System Time is : $' TIME DB '00:00:00$' .CODE MAIN PROC MOV AX, @DATA MOV DS, AX LEA BX, TIME CALL GET_TIME LEA DX, PROMPT MOV AH, 09H INT 21H LEA DX, TIME MOV AH, 09H INT 21H MOV AH, 4CH INT 21H MAIN ENDP GET_TIME PROC PUSH AX PUSH CX MOV AH, 2CH INT 21H MOV AL, CH CALL CONVERT MOV [BX], AX MOV AL, CL CALL CONVERT MOV [BX + 3], AX MOV AL, DH CALL CONVERT MOV [BX + 6], AX POP CX POP AX RET GET_TIME ENDP CONVERT PROC PUSH DX MOV AH, 0 MOV DL, 10 DIV DL OR AX, 3030H POP DX RET CONVERT ENDP END MAIN
Viva-voce questions:
1. What are the different registers in 8255? 2. What are the different registers in 8257? 3 What are the different registers in 8259? 4. What are the different registers in 8086? 5. What are the various modes of operation available in 8255?
-
UpdatedNov 05, 2014
-
Views7,440
Write and execute an alp to 8086 Microprocessor to add, subtract and multiply two 16 bit unsigned numbers. Store the result in extra segment
Write and execute an alp to 8086 Microprocessor to a sort the give array of 32 bit number in ascending and descending order.
Program to generate following waveforms
- Ramp waveform
- Square waveform
- Step waveform
- Triangle waveform
Write and execute an alp to 8086 Microprocessor to find the length of a given string which terminates with a special character
Write and execute an alp to 8086 Microprocessor to divide a 32 bit unsigned numbers by a 16 bit unsigned number. Store the result in stack segment
Interface a stepper motor to 8086 and operate it in clock wise and anticlockwise by choosing variable stepsize.