forked from KolibriOS/kolibrios
Move cmp* macros from cmp.inc to macros.inc
We already have macros.inc, there is no reason to have another file special for cmp* macros that all fit into 7 lines. git-svn-id: svn://kolibrios.org@6832 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
6b388af831
commit
c5a5d231ab
@ -1,47 +0,0 @@
|
|||||||
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
|
|
||||||
}
|
|
@ -557,6 +557,14 @@ else
|
|||||||
end if
|
end if
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; replaces /programs/cmp.inc
|
||||||
|
irp cond, e, ne, g, ng, l, nl, ge, le {
|
||||||
|
macro cmp#cond a, b, c\{
|
||||||
|
cmp a, b
|
||||||
|
j#cond c
|
||||||
|
\}
|
||||||
|
}
|
||||||
|
|
||||||
; constants
|
; constants
|
||||||
|
|
||||||
; events
|
; events
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
dd 1, @ENTRY, @end, @memory, @stack, @params, 0
|
dd 1, @ENTRY, @end, @memory, @stack, @params, 0
|
||||||
|
|
||||||
include "../../macros.inc"
|
include "../../macros.inc"
|
||||||
include "../../cmp.inc"
|
|
||||||
include "../../proc32.inc"
|
include "../../proc32.inc"
|
||||||
include "../../dll.inc"
|
include "../../dll.inc"
|
||||||
; include "../../debug.inc"
|
; include "../../debug.inc"
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
; include "../../debug.inc"
|
; include "../../debug.inc"
|
||||||
include "../../notify.inc"
|
include "../../notify.inc"
|
||||||
include "../../string.inc"
|
include "../../string.inc"
|
||||||
include "../../cmp.inc"
|
|
||||||
|
|
||||||
@entry:
|
@entry:
|
||||||
mcall 68, 11
|
mcall 68, 11
|
||||||
@ -198,4 +197,4 @@
|
|||||||
rb 2048
|
rb 2048
|
||||||
@stack:
|
@stack:
|
||||||
|
|
||||||
@memory:
|
@memory:
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
include "../../proc32.inc"
|
include "../../proc32.inc"
|
||||||
include "../../macros.inc"
|
include "../../macros.inc"
|
||||||
include "../../dll.inc"
|
include "../../dll.inc"
|
||||||
include "../../cmp.inc"
|
|
||||||
include "../../string.inc"
|
include "../../string.inc"
|
||||||
include "../../develop/libraries/box_lib/trunk/box_lib.mac"
|
include "../../develop/libraries/box_lib/trunk/box_lib.mac"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user