C instruction wip

This commit is contained in:
Hazem Krimi
2024-03-12 00:29:41 +01:00
parent 90b2a5f5e7
commit ac8a70f33d
5 changed files with 108 additions and 22 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ pub fn parse(instruction: &String) -> Option<Instruction> {
match slice.as_slice() {
[dest, comp_and_jump] => match comp_and_jump.find(";") {
Some(with_jump) => {
Some(_) => {
let second_slice: Vec<&str> = comp_and_jump.split(";").collect();
match second_slice.as_slice() {