Blank lines and line addressing

This commit is contained in:
2022-05-13 23:57:06 -05:00
parent 135dd6ad8d
commit 4edad9c0cc
2 changed files with 20 additions and 0 deletions
+14
View File
@@ -502,4 +502,18 @@ mod test {
])
);
}
#[test]
fn test_relative_blanks() {
assert_eq!(assemble_snippet(".org 0x400
nop $+2
nop 0x111111
nop 0x222222".lines()),
Ok(vec![
0x03, 0x08, 0x04, 0x00,
0x03, 0x11, 0x11, 0x11,
0x03, 0x22, 0x22, 0x22
]))
}
}