diff options
author | Wojciech Kosior <kwojtus@protonmail.com> | 2020-09-02 09:10:01 +0200 |
---|---|---|
committer | Wojciech Kosior <kwojtus@protonmail.com> | 2020-09-02 09:10:01 +0200 |
commit | 9ff05a96e5a31df902293c90af2fec2531d8ee36 (patch) | |
tree | f08ea926bbeaa4093962ba13aafd3c6e6c192421 /tclasm.tcl | |
parent | a0610e8be796b2e8225d2560209940815d1bd722 (diff) | |
download | AGH-engineering-thesis-9ff05a96e5a31df902293c90af2fec2531d8ee36.tar.gz AGH-engineering-thesis-9ff05a96e5a31df902293c90af2fec2531d8ee36.zip |
add tee instruction
Diffstat (limited to 'tclasm.tcl')
-rwxr-xr-x | tclasm.tcl | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -181,6 +181,8 @@ proc __encode_extended_instruction {instruction} { return [__to_binary 5 9] } elseif {"$instruction" == "mul"} { return [__to_binary 6 9] + } elseif {"$instruction" == "tee"} { + return [__to_binary 7 9] } else { error "no such extended instruction: '$instruction'" } @@ -306,7 +308,7 @@ proc cond_jump {{address im_address}} { } } -foreach instruction {halt nop swap add sub div mul} { +foreach instruction {halt nop swap add sub div mul tee} { proc $instruction {} " _extended_instruction $instruction " |