2023-10-31 16:21:54 -07:00

14 lines
178 B
NASM

global inb
global outb
section .text
inb:
MOV DX, WORD [ESP + 16]
IN AL, DX
RET
outb:
MOV DX, WORD [ESP + 16]
MOV AL, BYTE [ESP + 24]
OUT DX, AL
RET