Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. userSP = _iocs_b_super(0); // enter supervisor mode
  2. _iocs_crtmod(0xA); // 256x256 actual
  3.  
  4. *CRTC_R20 = 0x1110;
  5. *VIDCON_R0 = 1; // 512x512 8-bit GVRAM
  6. *VIDCON_R2 = 0x0; // no display
  7. *VIDCON_R1 = 0x6E4; // prio: bg/sprite, text, graphic - gv0/1, gv2/3
  8. *BG_CONTROL = 0x219; // display BG0
  9.  
  10.  
  11. StartVsync();
  12. *VIDCON_R2 = 0x144F; // all GVRAM display. bit 10 (B/P) must be set to
  13. // enable the 'i' bit for 'special priority'
  14. iocs_b_super(userSP);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement