28 lines
656 B
C
28 lines
656 B
C
#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);
|
|
|
|
/* Write-only banking latch services. */
|
|
void bios_bank(uint8_t bank);
|
|
void bios_rom_disable(void);
|
|
void bios_rom_enable(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
|