2007-05-10 17:48:35 +04:00
|
|
|
; Interface
|
|
|
|
|
|
|
|
macro Window xStart,yStart,xSize,ySize,bColor,gColor,fColor
|
|
|
|
{
|
2007-06-04 13:21:07 +04:00
|
|
|
__mov ebx,xStart,xSize
|
|
|
|
__mov ecx,yStart,ySize
|
|
|
|
__mov edx,bColor
|
|
|
|
__mov esi,gColor
|
|
|
|
__mov edi,fColor
|
2007-05-10 17:48:35 +04:00
|
|
|
xor eax,eax
|
|
|
|
mcall
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
;WriteTextToWindow
|
|
|
|
macro Text xStart,yStart,rgbColor,pText,nTextLen
|
|
|
|
{
|
2007-06-04 13:21:07 +04:00
|
|
|
__mov ebx,xStart,yStart
|
|
|
|
__mov ecx,rgbColor
|
|
|
|
__mov edx,pText
|
|
|
|
__mov esi,nTextLen
|
2007-05-10 17:48:35 +04:00
|
|
|
mov eax,4
|
|
|
|
mcall
|
|
|
|
}
|
|
|
|
|
|
|
|
;DisplayNumber
|
|
|
|
macro Number xStart,yStart,nPrintType,noOfDigits,Data,rgbColor
|
|
|
|
{
|
2007-06-04 13:21:07 +04:00
|
|
|
__mov edx,xStart,yStart
|
|
|
|
__mov ebx,noOfDigits,nPrintType
|
|
|
|
__mov ecx,Data
|
|
|
|
__mov esi,rgbColor
|
2007-05-10 17:48:35 +04:00
|
|
|
mov eax,47
|
|
|
|
mcall
|
|
|
|
}
|
|
|
|
|
|
|
|
macro DrawLine xStart,xEnd,yStart,yEnd,rgbColor
|
|
|
|
{
|
2007-06-04 13:21:07 +04:00
|
|
|
__mov ebx,xStart,xEnd
|
|
|
|
__mov ecx,yStart,yEnd
|
|
|
|
__mov edx,rgbColor
|
2007-05-10 17:48:35 +04:00
|
|
|
mov eax,38
|
|
|
|
mcall
|
|
|
|
}
|
|
|
|
|
|
|
|
macro PutImage xPos,yPos,xImage,yImage,pImage
|
|
|
|
{
|
2007-06-04 13:21:07 +04:00
|
|
|
__mov ecx,xImage,yImage
|
|
|
|
__mov edx,xPos,yPos
|
|
|
|
__mov ebx,pImage
|
2007-05-10 17:48:35 +04:00
|
|
|
mov eax,7
|
|
|
|
mcall
|
|
|
|
}
|
|
|
|
|
|
|
|
macro Button xStart,yStart,xSize,ySize,nID,rgbColor
|
|
|
|
{
|
2007-06-04 13:21:07 +04:00
|
|
|
__mov ebx,xStart,xSize
|
|
|
|
__mov ecx,yStart,ySize
|
|
|
|
__mov edx,nID
|
|
|
|
__mov esi,rgbColor
|
2007-05-10 17:48:35 +04:00
|
|
|
mov eax,8
|
|
|
|
mcall
|
|
|
|
}
|
|
|
|
|
|
|
|
macro CreateTread EntryPoint,StackPos
|
|
|
|
{
|
|
|
|
xor ebx,ebx
|
|
|
|
inc ebx
|
|
|
|
mov ecx,EntryPoint
|
|
|
|
mov edx,StackPos
|
|
|
|
mov eax,51
|
|
|
|
mcall
|
|
|
|
}
|