Advertisement
Guest User

Untitled

a guest
Jun 20th, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. void main()
  2. {
  3. char c;
  4.  
  5. // Draw a char somewhere on the screen, just to see if this
  6. // pointer hackery to access absolute memory locations works.
  7. *((char*)0x310) = 0x23;
  8. // After testing, yep, it works.
  9.  
  10. // Enabling this code block and disabling the one below causes the weird
  11. // behavior.
  12. // // This should endlessly draw different characters to that same screen
  13. // // location.
  14. // for( ;; )
  15. // {
  16. // for( c=32; c<128; c++ )
  17. // {
  18. // *((char*)0x310) = c;
  19. // }
  20. // }
  21.  
  22. // Enabling this code block and disabling the one above makes the program work
  23. // properly.
  24. for(;;)
  25. {
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement