Home | Forums | What's new | Resources | |
Code Blah! |
mrkotfw - Jan 19, 2003 |
TakaIsSilly | Jan 19, 2003 | ||||||||||
Code:
This is not Saturn code. slLocate is a mathematical macro that gives a memory position for a given tile, not the "setcursor" equivalent in the stdlib. And altough printf compiles correctly if you include stdin.h included, it will crash the console as well. this :
Code:
is the correct code... if you want to use parsing printf style, use an sprintf, and print the resulting string with slPrint.
Code:
What does this do? Disable interrupts? Apart from this, the code should compile... It should er, draw a cube spinning on the X axis, on dark blue BG? |
antime | Jan 19, 2003 | ||||
This won't work, unless you missed a few rows while copying the sample:
Code:
Notice that the loop where you're increasing the angle is an infinite one (while(1)) and that there's no break-statement. I have some stylistic comments too, but let's get the program working first. |