A
Size: a a a
d
#include "i686/processor.h"
#include "i686/mode_switch.h"
char str[] = "Hello, World!\r\n";
void boot_main()
{
I686_RealModeState state;
state.eip = *(uint16_t*)(0x10 * 4);
state.cs = *(uint16_t*)(0x10 * 4 + 2);
state.eax = 0x1301;
state.ebx = 0x0007;
state.ecx = sizeof(str) - 1;
state.edx = 0;
state.ebp = ((uintptr_t)str) & 0xFFFF;
state.es = (((uintptr_t)str) & 0xF0000) >> 4;
I686_RealModeCall(&state);
}
РА
РА
РА
РА
II