Advertisement
captmicro

Untitled

Mar 11th, 2011
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. KCALLT uint32 kernel_main(void)
  2. {
  3. uint8 *fb = (uint8*)VGA_FRAMEBUFFER;
  4. debug_putstr(0, 192, "[MicroVNET] CHIP-8 X86 EMULATOR");
  5. debug_drawpalette(320-0x10, 200-0x10);
  6.  
  7. CHIP8_CPU *cpu = (CHIP8_CPU*)MEM_CHIP8_CPU;
  8. CHIP8_INIT(cpu); cpu->_FRAMEBUFFER = fb;
  9. CHIP8_LOAD(cpu, CHIP8_aPRG, (void*)&C8_MAZE[0], 32);
  10.  
  11. cpu->PC = 0x200;
  12. cpu->pause = 0;
  13. while (cpu->pause == 0)
  14. {
  15. CHIP8_STEP(cpu);
  16. }
  17.  
  18.  
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement