vulcanos/kernel/cpu/ports.asm
ice-bit ba9feaba18 Fixed Interrupts bug:
It was a problem about ports(cpu/ports.asm) functions.
2019-07-06 00:32:41 +02:00

21 lines
459 B
NASM

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; iceOS Kernel ;
; Developed by Marco 'icebit' Cetica ;
; (c) 2019 ;
; 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]
in al, dx
ret