int main() { bsg_remote_store_char(0,0,&t[3],3); bsg_remote_store_char(0,0,&t[2],2); bsg_remote_store_char(0,0,&t[1],1); bsg_remote_store_char(0,0,&t[0],0); bsg_wait_while(bsg_volatile_access(foo) != 0x03020100); bsg_finish(); }
int main() { bsg_set_tile_x_y(); if (bsg_x == 1 && bsg_y == 1) { tmp = *bsg_remote_ptr(0, 1, 0xABCD0); bsg_remote_ptr_io_store(0, 0x2000, tmp); tmp = *bsg_remote_ptr(0, 1, 0xBCDE0); bsg_remote_ptr_io_store(0, 0x2000, tmp); } else if (bsg_x == 1 && bsg_y == 0) { tmp2 = 0xCDEF; tmp = tmp2; bsg_remote_ptr_io_store(0, 0x2000, tmp); } if ((bsg_x == bsg_tiles_X-1) && (bsg_y == bsg_tiles_Y-1)) bsg_finish(); bsg_wait_while(1); }