|
8086 Assembly Language program for begiinner. set the video display mode.
;---------------------------------------------------------------------
; SetDisplayMode:
; I/P :
; 1, Mode To Be set
; Description:
; Sets The Display Mode . Fill HorizontalRes & VerticalRes
; With Appropriate Value
;---------------------------------------------------------------------
SetDisplayMode Macro Mode
mov ah,00
mov al,Mode
int 10h
mov ax,320
mov HorizontalResolution,ax
mov ax,200
mov VerticalResolution,ax
mov ax,0a000h
mov VideoMemoryAddress,ax
endm
|