real accel = 0x3da8; real pres = 0x3d7c; real ground = 0x49cc; real step = 2.63; int time = 0x5c81; int time_step = 10; while (pres < ground) { printf ("A %04x %04x %04x\n", time, floor(accel), floor(pres + 0.5)); time += time_step; pres += (step * time_step); } for (int i = 0; i < 4000 / time_step; i++) { printf ("A %04x %04x %04x\n", time, floor(accel), floor(pres + 0.5)); time += time_step; }