Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. void statusBarInt() {
  2. SMS_displayOff();
  3. SMS_VDPturnOffFeature(VDPFEATURE_HIDEFIRSTCOL);
  4. SMS_setBGScrollX(0);
  5. SMS_displayOn();
  6. SMS_loadBGPalette(font__palette__bin);
  7. SMS_disableLineInterrupt();
  8.  
  9. // do stuff in the lower half of screen
  10. }
  11.  
  12.  
  13. SMS_setLineInterruptHandler(statusBarInt);
  14.  
  15. while (true) {
  16. SMS_waitForVBlank();
  17.  
  18. framepos = 1;
  19.  
  20. checkModeSwitch();
  21.  
  22. // top half logic
  23. modeLogic();
  24.  
  25. //status
  26. SMS_enableLineInterrupt();
  27. SMS_setLineCounter(126);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement