réplica de
https://github.com/Arnau478/quark.git
synced 2024-06-06 15:46:46 +02:00
32 líneas
423 B
NASM
32 líneas
423 B
NASM
|
global i686_inb
|
||
|
i686_inb:
|
||
|
[bits 32]
|
||
|
mov dx, [esp + 4]
|
||
|
xor eax, eax
|
||
|
in al, dx
|
||
|
ret
|
||
|
|
||
|
global i686_outb
|
||
|
i686_outb:
|
||
|
[bits 32]
|
||
|
mov dx, [esp + 4]
|
||
|
mov al, [esp + 8]
|
||
|
out dx, al
|
||
|
ret
|
||
|
|
||
|
global i686_inw
|
||
|
i686_inw:
|
||
|
[bits 32]
|
||
|
mov dx, [esp + 4]
|
||
|
xor eax, eax
|
||
|
in ax, dx
|
||
|
ret
|
||
|
|
||
|
global i686_outw
|
||
|
i686_outw:
|
||
|
[bits 32]
|
||
|
mov dx, [esp + 4]
|
||
|
mov ax, [esp + 8]
|
||
|
out dx, ax
|
||
|
ret
|