new memory and project layout
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#ifndef BIOS_H
|
||||
#define BIOS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/* Resident BIOS API used by the monitor. */
|
||||
void bios_init(void);
|
||||
void bios_putc(char c);
|
||||
void bios_puts(const char *s);
|
||||
char bios_getc(void);
|
||||
uint8_t bios_try_getc(void);
|
||||
void bios_flush(void);
|
||||
|
||||
/* Low-level routines implemented by the resident assembly BIOS. */
|
||||
void io_out(uint8_t port, uint8_t value);
|
||||
uint8_t io_in(uint8_t port);
|
||||
void delay_ms(uint16_t milliseconds);
|
||||
void enable_interrupts(void);
|
||||
void disable_interrupts(void);
|
||||
void jump_to(uint16_t address);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user