Hello world from printf!

This commit is contained in:
Vincenzo Aleksey Brocato 2024-09-10 18:44:01 +02:00
parent a7a5589f47
commit 56e279a9f9

View File

@ -5,9 +5,7 @@ void _cdecl cstart_(uint16_t bootDrive)
{ {
const char far* far_str = "far string"; const char far* far_str = "far string";
puts("Hello world from the stage 2 of the bootloader written in C!\r\n"); printf("Hello world from printf!");
printf("Formatted %% %c %s %ls\r\n", 'a', "string", far_str);
printf("Formatted %d %i %x %p %o %hd %hi %hhu %hhd\r\n", 1234, -5678, 0xdead, 0xbeef, 012345, (short)27, (short)-42, (unsigned char)20, (signed char)-10);
printf("Formatted %ld %lx %lld %llx\r\n", -100000000l, 0xdeadbeeful, 10200300400ll, 0xdeadbeeffeebdaedull);
for (;;); for (;;);
} }