Hello.
Basicaly,i have to do a c++ project thats read some instruction from a file, then compare them to some line from another file.
i have 2 file's:
1. "instr.txt" , that contains:
2."mne.txt",that contains:
Now, i have to read each line from the "instr.txt" to separate strings. Then read each line from "mne.txt" too.
Then i have to compare the first 3 characters from strings that store line 1 from "instr.txt" to each line from "mne.txt". If i found the first 3 characters from line 1 from "instr.txt" ( mov) , i need to move forward and check for register (ax, and store him) , then move forward and check the number (03, witch i need to move it to ax).
Note1:
add means +
sub means -
mul means *
mov means "copy" or move.
Note2:
Means move to var ax 03 (ax = 3;)
Means ax+5 = 3+5 (from above) = 8.
Thanks!