17 lines
249 B
C
17 lines
249 B
C
|
|
/* asm.h
|
||
|
|
* Assembly wrappers
|
||
|
|
*
|
||
|
|
* Wrapper functions for using assembly files.
|
||
|
|
*/
|
||
|
|
#ifndef ASM_H
|
||
|
|
#define ASM_H
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
#define COM1 0x3F8
|
||
|
|
#define COM2 0x2F8
|
||
|
|
|
||
|
|
void outb(uint16_t port, uint8_t data);
|
||
|
|
uint8_t inb(uint16_t port);
|
||
|
|
|
||
|
|
#endif
|