diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-05 20:50:58 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-05 20:50:58 +0200 |
| commit | fcdc14f939a25189988e21f53dc24d5aed560504 (patch) | |
| tree | ed14d533f17218f3cd4c50be8e7ab042d18d9b2a /src/utils/asm.h | |
| parent | ba7e57138c9e41cf944afb91c146fea23713c1d1 (diff) | |
Cleaning Makefile and creating asm macros
Diffstat (limited to 'src/utils/asm.h')
| -rw-r--r-- | src/utils/asm.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/utils/asm.h b/src/utils/asm.h new file mode 100644 index 0000000..0929afa --- /dev/null +++ b/src/utils/asm.h @@ -0,0 +1,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
\ No newline at end of file |
