Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main()
- {
- char c;
- // Draw a char somewhere on the screen, just to see if this
- // pointer hackery to access absolute memory locations works.
- *((char*)0x310) = 0x23;
- // After testing, yep, it works.
- // Enabling this code block and disabling the one below causes the weird
- // behavior.
- // // This should endlessly draw different characters to that same screen
- // // location.
- // for( ;; )
- // {
- // for( c=32; c<128; c++ )
- // {
- // *((char*)0x310) = c;
- // }
- // }
- // Enabling this code block and disabling the one above makes the program work
- // properly.
- for(;;)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement