feat: spec complaint program encoding

Co-authored-by: rvcas <x@rvcas.dev>
This commit is contained in:
Kasey White
2022-05-27 22:32:43 -04:00
parent 2e130ac5f0
commit c01469ea51
8 changed files with 99 additions and 22 deletions

View File

@@ -11,7 +11,13 @@ fn main() -> anyhow::Result<()> {
println!("{:#?}", program);
println!("{:?}", program.flat()?);
let flat_bytes = program.flat()?;
for byte in flat_bytes {
print!("{:08b} ", byte);
}
println!();
println!("{}", program.flat_hex()?);