FrostWing
A lightweight raw-control operating system.
Loading...
Searching...
No Matches
debugger.h File Reference

The headers files for E9 hack. More...

#include <stdint.h>
#include <stddef.h>
#include <basics.h>
#include <hal.h>
Include dependency graph for debugger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define debugger_mode   1
 Enables or disables the debugger. [1 - Enable] [0 - Disable].

Functions

void debug_putc (char c)
 Puts a character to the address 0xE9 using x86_64 outb.
void debug_print (cstring msg)
 Puts a string to the address 0xE9 using debug_putc().
void debug_println (cstring msg)
 Puts a string to the address 0xE9 using debug_putc() and prints a new line.
void debug_printf (cstring format,...)
 printf implemented to debug.

Detailed Description

The headers files for E9 hack.

Author
Pradosh (prado.nosp@m.shga.nosp@m.me@gm.nosp@m.ail..nosp@m.com)
Version
0.1
Date
2023-10-31

Definition in file debugger.h.

Macro Definition Documentation

◆ debugger_mode

#define debugger_mode   1

Enables or disables the debugger. [1 - Enable] [0 - Disable].

Definition at line 22 of file debugger.h.

Function Documentation

◆ debug_print()

void debug_print ( cstring msg)

Puts a string to the address 0xE9 using debug_putc().

Parameters
msg

◆ debug_printf()

void debug_printf ( cstring format,
... )

printf implemented to debug.

Parameters
format
...

◆ debug_println()

void debug_println ( cstring msg)

Puts a string to the address 0xE9 using debug_putc() and prints a new line.

Parameters
msg

◆ debug_putc()

void debug_putc ( char c)

Puts a character to the address 0xE9 using x86_64 outb.

Parameters
cThe single character that you want to print.