24 lines
290 B
NASM
24 lines
290 B
NASM
; IN:
|
|
; DX = port address
|
|
; AL = byte
|
|
port_byte_out:
|
|
pusha
|
|
out dx,al
|
|
popa
|
|
ret
|
|
; -----------------------------------------
|
|
; IN:
|
|
; DX = port address
|
|
; OUT:
|
|
; AL = byte from port
|
|
port_byte_in:
|
|
in al, dx
|
|
ret
|
|
|
|
port_serial_enable:
|
|
ret
|
|
port_send_via_serial:
|
|
ret
|
|
port_get_via_serial:
|
|
ret
|