Advertisement
OgreVorbis

Watcom Page Flip 12h

Oct 7th, 2021
1,332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. #define SCREEN_WIDTH_IN_BYTES 80
  2. #define PAGE_0_START 0
  3. #define PAGE_1_START (480 * SCREEN_WIDTH_IN_BYTES) //I modified this to 480 instead of 400, but doesn't work
  4.  
  5. /* Flip to page 1 */
  6. outpw(0x3D4, 0x0C | ((PAGE_1_START >> 8) << 8));
  7. /* Put my graphics on the other page with built-in function */
  8.  
  9. _putimage(......);
  10.  
  11. /* Flip to page 0 */
  12. outpw(0x3D4, 0x0C | ((PAGE_0_START >> 8) << 8));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement