vulcanos/kernel/cpu/ports.asm

22 lines
464 B
NASM
Raw Normal View History

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2021-01-02 17:49:15 +01:00
; vulcanOS Kernel ;
; Developed by Marco 'icebit' Cetica ;
2021-01-02 17:49:15 +01:00
; (c) 2019-2021 ;
; Released under GPLv3 ;
; https://github.com/ice-bit/iceOS ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
global outb ; Output from port
global inb ; Input to port
outb:
mov al, [esp + 8]
mov dx, [esp + 4]
out dx, al
ret
inb:
mov dx, [esp + 4]
in al, dx
2021-01-02 17:49:15 +01:00
ret