diff --git a/programs/cmp.inc b/programs/cmp.inc new file mode 100644 index 0000000000..a5ea74720e --- /dev/null +++ b/programs/cmp.inc @@ -0,0 +1,47 @@ +macro cmpe a, b, c +{ + cmp a, b + je c +} + +macro cmpne a, b, c +{ + cmp a, b + jne c +} + +macro cmpg a, b, c +{ + cmp a, b + jg c +} + +macro cmpl a, b, c +{ + cmp a, b + jl c +} + +macro cmpnl a, b, c +{ + cmp a, b + jnl c +} + +macro cmpng a, b, c +{ + cmp a, b + jng c +} + +macro cmpge a, b, c +{ + cmp a, b + jge c +} + +macro cmple a, b, c +{ + cmp a, b + jle c +} \ No newline at end of file