2019-07-03 12:15:40 +02:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
; 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:
|
2019-07-06 00:32:41 +02:00
|
|
|
mov al, [esp + 8]
|
2019-07-03 12:15:40 +02:00
|
|
|
mov dx, [esp + 4]
|
|
|
|
out dx, al
|
|
|
|
ret
|
|
|
|
|
|
|
|
inb:
|
2019-07-08 12:01:01 +02:00
|
|
|
mov dx, [esp + 4]
|
2019-07-03 12:15:40 +02:00
|
|
|
in al, dx
|
|
|
|
ret
|