uint32_t instruction, npc;
context = spu_create("/spu/example\-context", 0, 0755);
- if (context == -1)
+ if (context == \-1)
handle_error("spu_create");
/* write a \(aqstop 0x1234\(aq instruction to the SPU\(aqs
instruction = 0x00001234;
fd = open("/spu/example\-context/mem", O_RDWR);
- if (fd == -1)
+ if (fd == \-1)
handle_error("open");
write(fd, &instruction, sizeof(instruction));
npc = 0;
spu_status = spu_run(context, &npc, NULL);
- if (spu_status == -1)
+ if (spu_status == \-1)
handle_error("open");
/* we should see a status code of 0x1234002: