mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-21 14:22:34 +03:00
4daae89053
updated sysfunc.txt *programs new icons and logo for CPUID and ICON added new version of @ICON and ICONMNGR fixes in iconedit and calendar from DedOK new algoritm of fill background in pic4 all apps (fasm-writen only) rewriten to use common macros.inc for easy recompile in fastcall mode (there is a bug in https; run need rewrite to use common macros.inc) small fixes in build_all.bat script git-svn-id: svn://kolibrios.org@485 a494cfbc-eb01-0410-851d-a64ba20cac60
49 lines
673 B
PHP
49 lines
673 B
PHP
|
|
;
|
|
; Assembler
|
|
; SMALL
|
|
; CODE
|
|
; GaMe
|
|
; Libary
|
|
;
|
|
; Ver 0.03 By Pavlushin Evgeni (RUSSIA)
|
|
; www.waptap@mail.ru
|
|
|
|
;InfoList
|
|
;0.01 correct
|
|
;0.02 control ~14.05.2004
|
|
;0.03 all macros optimized by halyavin, add at ~07.06.2004
|
|
|
|
|
|
; corectiryemoe,corectnoe,step
|
|
macro correct arg1,arg2,arg3
|
|
{
|
|
local plus,minus,equal
|
|
mov eax,arg2
|
|
cmp arg1,eax
|
|
je equal
|
|
mov eax,arg3
|
|
ja minus
|
|
plus:
|
|
add arg1,eax
|
|
jmp equal
|
|
minus:
|
|
sub arg1,eax
|
|
equal:
|
|
}
|
|
|
|
macro control min,max,arg
|
|
{
|
|
local gr,low,norm
|
|
mov eax,max
|
|
cmp arg,eax
|
|
jg gr
|
|
mov eax,min
|
|
cmp arg,eax
|
|
jnl norm
|
|
gr:
|
|
low:
|
|
mov arg,eax
|
|
norm:
|
|
}
|