home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-ASM_VI.ARJ
/
PROGASM.ZIP
/
PROG003P.ASM
< prev
next >
Wrap
Assembly Source File
|
1988-04-16
|
502b
|
21 lines
;************************************************************************
; Write_Register
; Write a value to a register
; Entry: Register - Output port to write value to
; Value - Value to output
;************************************************************************
Register EQU [BP+8]
Value EQU [BP+6]
PUBLIC Write_Register
Write_Register PROC FAR
PUSH BP
MOV BP,SP
MOV DX,Register ;Fetch register address
MOV AL,Value
OUT DX,AL
POP BP
RET 4
Write_Register ENDP