From 864aa845cb8aaa2bb47340b906f8b194abafbcfd Mon Sep 17 00:00:00 2001 From: eAndrew Date: Sat, 7 Nov 2015 20:46:23 +0000 Subject: [PATCH] add cmp.inc - macroses for cmp git-svn-id: svn://kolibrios.org@5893 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmp.inc | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 programs/cmp.inc 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