comparison src/th06/std.rs @ 679:6020e33d4fc4

Implement a .std renderer, and its associated VM.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 16 Aug 2019 13:40:38 +0200
parents 266911c0ccfd
children ef2dbd676a91
comparison
equal deleted inserted replaced
678:1d81a449c436 679:6020e33d4fc4
233 } 233 }
234 assert_eq!(size, 12); 234 assert_eq!(size, 12);
235 let data = &i2[..12]; 235 let data = &i2[..12];
236 let (data, instr) = parse_instruction_args(data, opcode)?; 236 let (data, instr) = parse_instruction_args(data, opcode)?;
237 assert_eq!(data.len(), 0); 237 assert_eq!(data.len(), 0);
238 println!("{:?}", instr); 238 println!("{} {:?}", time, instr);
239 script.push(Call { time, instr }); 239 script.push(Call { time, instr });
240 i = &i2[12..]; 240 i = &i2[12..];
241 } 241 }
242 242
243 let stage = Stage { 243 let stage = Stage {