aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/insn.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/insn.rs b/src/insn.rs
index 11405c1..e5a597e 100644
--- a/src/insn.rs
+++ b/src/insn.rs
@@ -23,7 +23,10 @@ pub trait Call<T> {
}
pub trait Cmp<T, U> {
- /// Emit a compare call instruction.
+ /// Emit a compare instruction.
+ ///
+ /// Computes `op2 - op1` and sets the status flags in the same way as the `sub` instruction,
+ /// the result is discarded.
fn cmp(&mut self, op1: T, op2: U);
}