Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- KCALLT uint32 kernel_main(void)
- {
- uint8 *fb = (uint8*)VGA_FRAMEBUFFER;
- debug_putstr(0, 192, "[MicroVNET] CHIP-8 X86 EMULATOR");
- debug_drawpalette(320-0x10, 200-0x10);
- CHIP8_CPU *cpu = (CHIP8_CPU*)MEM_CHIP8_CPU;
- CHIP8_INIT(cpu); cpu->_FRAMEBUFFER = fb;
- CHIP8_LOAD(cpu, CHIP8_aPRG, (void*)&C8_MAZE[0], 32);
- cpu->PC = 0x200;
- cpu->pause = 0;
- while (cpu->pause == 0)
- {
- CHIP8_STEP(cpu);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement