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