mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2025-04-04 21:14:58 -07:00
14 lines
178 B
NASM
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 |