home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-ASM_VI.ARJ
/
PROGASM.ZIP
/
PROG001.ASM
< prev
next >
Wrap
Assembly Source File
|
1988-05-15
|
889b
|
20 lines
;************************************************************************
; Load register example *
; Load CRTC register 0Ah with the value 20h *
;************************************************************************
Change_Underline PROC NEAR
PUSH ES
XOR AX,AX ;Set ES to point to BIOS data area
MOV ES,AX
MOV DX,ES:[BIOS_CRT_Addr] ;Fetch CRTC address
MOV AL,0AH ;Fetch index
OUT DX,AL ;Select register
INC DX ;Increment register address
MOV AL,20H ;Fetch value
OUT DX,AL ;Load the register with value
POP ES
RET
Change_Underline ENDP