Sony PlayStation2 Study
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
880 B

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #include "Basic_test.h"
  2. /*
  3. void init_drawing_environment(framebuffer_t *frame, zbuffer_t *z){
  4. packet_t *packet = packet_init(16,PACKET_NORMAL);
  5. // This is our generic qword pointer.
  6. qword_t *q = packet->data;
  7. // This will setup a default drawing environment.
  8. q = draw_setup_environment(q,0,frame,z);
  9. // Now reset the primitive origin to 2048-width/2,2048-height/2.
  10. q = draw_primitive_xyoffset(q,0,(2048-320),(2048-256));
  11. // Finish setting up the environment.
  12. q = draw_finish(q);
  13. // Now send the packet, no need to wait since it's the first.
  14. dma_channel_send_normal( DMA_CHANNEL_GIF, packet->data,q - packet->data, 0, 0);
  15. dma_wait_fast();
  16. packet_free(packet);
  17. }
  18. */
  19. int main( int argc, char *argv[] ){
  20. uint8_t cnt = 0;
  21. for ( ; cnt < 100; cnt++ ) {
  22. //printf("hello world\n");
  23. };
  24. return(0);
  25. };