aboutsummaryrefslogtreecommitdiff
path: root/src/utils/asm.h
blob: 0929afad695f7113901c2b2b7e6969c7214952ff (plain)
1
2
3
4
5
6
7
8
9
10
11
#ifndef ASM_H
#define ASM_H

#define outb(port,value) \
    asm volatile ("outb %%al, %%dx" :: "a"(value), "d" (port) )

#define outbj(port,value) \
    asm volatile ("outb %%al, %%dx;" :: "a" (value), "d"(port) )


#endif