20 lines
403 B
C
20 lines
403 B
C
#include <stdint.h>
|
|
#include <exec/hal.h>
|
|
#include <exec/debcon.h>
|
|
|
|
void DebconPutChar(char c) {
|
|
HalPrintChar(c);
|
|
}
|
|
|
|
void DebconPrint(const char *str) {
|
|
while (*str) {
|
|
DebconPutChar(*str++);
|
|
}
|
|
}
|
|
|
|
void DebconPrintHex(uint32_t value) {
|
|
const char hexDigits[] = "0123456789ABCDEF";
|
|
for (int i = 28; i >= 0; i -= 4) {
|
|
DebconPutChar(hexDigits[(value >> i) & 0xF]);
|
|
}
|
|
} |