Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

Ayla

By: a guest on Nov 3rd, 2009  |  syntax: C  |  size: 0.36 KB  |  hits: 66  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1.  
  2. #include "spu.h"
  3.  
  4.  
  5. void send(char* message) {
  6.     int i = 0;
  7.  
  8.     while(MSG_FLAG);
  9.  
  10.     do {
  11.         MSG_ADDR[i] = message[i];
  12.     } while(message[i++]);
  13.  
  14.     MSG_FLAG = i;
  15. }
  16.  
  17.  
  18. int arm_main() {
  19.  
  20.     while(MSG_FLAG);
  21.  
  22.     char msg[] = "abcd";
  23.     send(msg);
  24.  
  25.     msg[0] = 'c';
  26.     msg[1] = 'd';
  27.     send(msg);
  28.  
  29.     while(1);
  30.  
  31.     return 0;
  32. }