comparison src/th06/ecl.rs @ 676:826c16e5f909

Rename unknown ECL instructions to better recognise them.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 15 Aug 2019 21:31:08 +0200
parents 3e4cc64a254d
children d6cc9086058c
comparison
equal deleted inserted replaced
675:6be3320a1cb3 676:826c16e5f909
242 78 => fn DelayAttack(), 242 78 => fn DelayAttack(),
243 79 => fn NoDelayAttack(), 243 79 => fn NoDelayAttack(),
244 81 => fn SetBulletLaunchOffset(x: f32, y: f32, z: f32), 244 81 => fn SetBulletLaunchOffset(x: f32, y: f32, z: f32),
245 82 => fn SetExtendedBulletAttributes(a: i32, b: i32, c: i32, d: i32, e: f32, f: f32, g: f32, h: f32), 245 82 => fn SetExtendedBulletAttributes(a: i32, b: i32, c: i32, d: i32, e: f32, f: f32, g: f32, h: f32),
246 83 => fn ChangeBulletsInStarBonus(), 246 83 => fn ChangeBulletsInStarBonus(),
247 84 => fn UNK0(UNK: i32), 247 // TODO: Found in stage 4 onward.
248 84 => fn UNK_ins84(param: i32),
248 85 => fn NewLaser(laser_type: i16, sprite_idx_offset: i16, angle: f32, speed: f32, start_offset: f32, end_offset: f32, max_length: f32, width: f32, start_duration: i32, duration: i32, end_duration: i32, grazing_delay: i32, grazing_extra_duration: i32, UNK1: i32), 249 85 => fn NewLaser(laser_type: i16, sprite_idx_offset: i16, angle: f32, speed: f32, start_offset: f32, end_offset: f32, max_length: f32, width: f32, start_duration: i32, duration: i32, end_duration: i32, grazing_delay: i32, grazing_extra_duration: i32, UNK1: i32),
249 86 => fn NewLaserTowardsPlayer(laser_type: i16, sprite_idx_offset: i16, angle: f32, speed: f32, start_offset: f32, end_offset: f32, max_length: f32, width: f32, start_duration: i32, duration: i32, end_duration: i32, grazing_delay: i32, grazing_extra_duration: i32, UNK1: i32), 250 86 => fn NewLaserTowardsPlayer(laser_type: i16, sprite_idx_offset: i16, angle: f32, speed: f32, start_offset: f32, end_offset: f32, max_length: f32, width: f32, start_duration: i32, duration: i32, end_duration: i32, grazing_delay: i32, grazing_extra_duration: i32, UNK1: i32),
250 87 => fn SetUpcomingLaserId(id: i32), 251 87 => fn SetUpcomingLaserId(id: i32),
251 88 => fn AlterLaserAngle(id: i32, delta: f32), 252 88 => fn AlterLaserAngle(id: i32, delta: f32),
252 90 => fn RepositionLaser(id: i32, ox: f32, oy: f32, oz: f32), 253 90 => fn RepositionLaser(id: i32, ox: f32, oy: f32, oz: f32),
277 117 => fn SetTouchable(touchable: i32), 278 117 => fn SetTouchable(touchable: i32),
278 118 => fn DropParticles(anim: i32, number: u32, r: u8, g: u8, b: u8, UNUSED: u8), 279 118 => fn DropParticles(anim: i32, number: u32, r: u8, g: u8, b: u8, UNUSED: u8),
279 119 => fn DropBonus(number: i32), 280 119 => fn DropBonus(number: i32),
280 120 => fn SetAutomaticOrientation(automatic: i32), 281 120 => fn SetAutomaticOrientation(automatic: i32),
281 121 => fn CallSpecialFunction(function: i32, argument: i32), 282 121 => fn CallSpecialFunction(function: i32, argument: i32),
282 122 => fn UNK1(TODO: i32), 283 // TODO: Found in stage 3 then 5 onward.
284 122 => fn UNK_ins122(TODO: i32),
283 123 => fn SkipFrames(frames: i32), 285 123 => fn SkipFrames(frames: i32),
284 124 => fn DropSpecificBonus(type_: i32), 286 124 => fn DropSpecificBonus(type_: i32),
285 125 => fn UNK2(), 287 // TODO: Found in stage 3.
288 125 => fn UNK_ins125(),
286 126 => fn SetRemainingLives(lives: i32), 289 126 => fn SetRemainingLives(lives: i32),
287 127 => fn UNK3(TODO: i32), 290 // TODO: Found in stage 4.
291 127 => fn UNK_ins127(TODO: i32),
288 128 => fn Interrupt(event: i32), 292 128 => fn Interrupt(event: i32),
289 129 => fn InterruptAux(number: i32, event: i32), 293 129 => fn InterruptAux(number: i32, event: i32),
290 130 => fn UNK5(TODO: i32), 294 // TODO: Found in stage 4.
295 130 => fn UNK_ins130(TODO: i32),
291 131 => fn SetDifficultyCoeffs(speed_a: f32, speed_b: f32, nb_a: i32, nb_b: i32, shots_a: i32, shots_b: i32), 296 131 => fn SetDifficultyCoeffs(speed_a: f32, speed_b: f32, nb_a: i32, nb_b: i32, shots_a: i32, shots_b: i32),
292 132 => fn SetInvisible(invisible: i32), 297 132 => fn SetInvisible(invisible: i32),
293 133 => fn CopyCallbacks(), 298 133 => fn CopyCallbacks(),
294 134 => fn UNK6(), 299 // TODO: Found in stage 4.
300 134 => fn UNK_ins134(),
295 135 => fn EnableSpellcardBonus(UNKNOW: i32), 301 135 => fn EnableSpellcardBonus(UNKNOW: i32),
296 } 302 }
297 303
298 fn parse_ecl(input: &[u8]) -> IResult<&[u8], Ecl> { 304 fn parse_ecl(input: &[u8]) -> IResult<&[u8], Ecl> {
299 let i = input; 305 let i = input;