Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 485 → Rev 484

/programs/games/phenix/trunk/ascgl.inc
373,7 → 373,7
wordstoreg ecx,y,ys ;y*65536+ys
mov edx,color
mov eax,13
mcall
int 0x40
}
 
; FPS - Set Frame Per Second Display
390,7 → 390,7
spdat:
get_time:
mov eax,3
mcall
int 0x40
cmp eax,[savetime]
jne new_time
inc [fps_cntr]
409,7 → 409,7
mov ecx,y*65536+7
mov edx,delcolor
mov eax,13
mcall
int 0x40
end if
mov dword [ttt],fps_show_frequency
mov eax,47
418,7 → 418,7
mov edx,x*65536+y
mov esi,color
mov ecx,[fps]
mcall
int 0x40
no_out_fps:
}
 
496,7 → 496,7
add cx,[arg3+4]
; wordstoreg ecx,[arg3],[arg3+4]
wordstoreg edx, x , y ;arg1*65536+arg2
mcall
int 0x40
}
 
macro setframe x , y ,arg3
507,7 → 507,7
wordstoreg edx, x , y ;arg1*65536+arg2
add edx,dword [arg3]
mov ecx,dword [arg3+4]
mcall
int 0x40
}
 
 
/programs/games/phenix/trunk/ascl.inc
50,7 → 50,7
mov dword [fileinfo+8],1 ; how many blocks to read (1)
mov eax,58
mov ebx,fileinfo
mcall
int 0x40
mov eax,[file_load_area+2]
shr eax,9 ; ¯®¤¥«¨¬ ­  512 ¨ ¯à¨¡ ¢¨¬ 1 - ¯®«ã稬 ç¨á«® ¡«®ª®¢
inc eax
57,7 → 57,7
mov dword [fileinfo+8],eax
mov eax,58
mov ebx,fileinfo
mcall
int 0x40
}
 
 
145,7 → 145,7
mov edx,id
mov esi,bcolor
mov eax,8
mcall
int 0x40
 
mov eax,asd-lab ;calc size
mov ebx,6
170,7 → 170,7
mov edx,lab
mov esi,asd-lab ;calc size
mov eax,4
mcall
int 0x40
}
 
 
199,7 → 199,7
mov eax,9
mov ebx,procinfo
mov ecx,-1
mcall
int 0x40
 
; convert eax bin to param dec
mov eax,dword [procinfo+30] ;offset of myPID
233,12 → 233,12
mov ebx,1 ; define IPC
mov ecx,path ; offset of area
mov edx,150 ; size 150 bytes
mcall
int 0x40
 
; change wanted events list 7-bit IPC event
mov eax,40
mov ebx,01000111b
mcall
int 0x40
 
;
; STEP 3 run SYSTEM XTREE with parameters
246,7 → 246,7
 
mov eax,58
mov ebx,run_fileinfo
mcall
int 0x40
 
call redproc
 
254,7 → 254,7
getmesloop:
mov eax,23
mov ebx,50 ;0.5 sec
mcall
int 0x40
 
cmp eax,1
je mred
269,7 → 269,7
mov ebx,procinfo
mov ecx,-1
mov eax,9
mcall
int 0x40
mov ebp,eax
 
loox:
276,7 → 276,7
mov eax,9
mov ebx,procinfo
mov ecx,ebp
mcall
int 0x40
mov eax,[DLGPID]
cmp [procinfo+30],eax ;IF Dialog find
je dlg_is_work ;jmp to dlg_is_work
301,15 → 301,15
jmp getmesloop
mkey:
mov eax,2
mcall ; read (eax=2)
int 0x40 ; read (eax=2)
jmp getmesloop
mbutton:
mov eax,17 ; get id
mcall
int 0x40
cmp ah,1 ; button id=1 ?
jne getmesloop
mov eax,-1 ; close this program
mcall
int 0x40
mgetmes:
 
; If dlg_pid_get then second message get jmp to still
411,7 → 411,7
mov eax,9
mov ebx,procinfo
mov ecx,-1
mcall
int 0x40
 
; convert eax bin to param dec
mov eax,dword [procinfo+30] ;offset of myPID
445,12 → 445,12
mov ebx,1 ; define IPC
mov ecx,path ; offset of area
mov edx,120 ; size 150 bytes
mcall
int 0x40
 
; change wanted events list 7-bit IPC event
mov eax,40
mov ebx,01000111b
mcall
int 0x40
 
;
; STEP 3 run SYSTEM XTREE with parameters
458,7 → 458,7
 
mov eax,58
mov ebx,run_fileinfo
mcall
int 0x40
 
call redproc
 
466,7 → 466,7
getmesloop:
mov eax,23
mov ebx,50 ;0.5 sec
mcall
int 0x40
 
cmp eax,1
je mred
481,7 → 481,7
mov ebx,procinfo
mov ecx,-1
mov eax,9
mcall
int 0x40
mov ebp,eax
 
loox:
488,7 → 488,7
mov eax,9
mov ebx,procinfo
mov ecx,ebp
mcall
int 0x40
mov eax,[DLGPID]
cmp [procinfo+30],eax ;IF Dialog find
je dlg_is_work ;jmp to dlg_is_work
512,15 → 512,15
call redproc
jmp getmesloop
mkey:
mcall ; read (eax=2)
int 0x40 ; read (eax=2)
jmp getmesloop
mbutton:
mov eax,17 ; get id
mcall
int 0x40
cmp ah,1 ; button id=1 ?
jne getmesloop
mov eax,-1 ; close this program
mcall
int 0x40
mgetmes:
 
; If dlg_pid_get then second message get jmp to still
672,7 → 672,7
macro scank
{
mov eax,10
mcall
int 0x40
}
 
macro putpix x,y,color
681,7 → 681,7
mov ecx,y
mov edx,color
mov eax,1
mcall
int 0x40
}
 
macro puttxt x,y,offs,size,color
694,7 → 694,7
mov edx,offs
mov esi,size
mov eax,4
mcall
int 0x40
}
 
macro outcount data, x, y, color, numtype
706,7 → 706,7
words2reg edx,x,y
mov esi,color
mov eax,47
mcall
int 0x40
}
 
; SCEVENT - Scan event
714,7 → 714,7
macro scevent red,key,but
{
mov eax,11
mcall
int 0x40
dec eax
jz red
dec eax
728,7 → 728,7
macro wtevent red,key,but
{
mov eax,10
mcall
int 0x40
dec eax
jz red
dec eax
743,7 → 743,7
{
mov eax,23
mov ebx,xfps
mcall
int 0x40
cmp eax,0
je noevent
dec eax
760,7 → 760,7
macro close
{
mov eax,-1
mcall
int 0x40
}
 
; DELAY - Create delay 1/100 sec
771,7 → 771,7
{
mov eax,5
mov ebx,arg1
mcall
int 0x40
}
 
; WINDOW - Draw window
786,7 → 786,7
words2reg ecx,arg2,arg4
mov edx,arg5
mov eax,0
mcall
int 0x40
}
 
macro colorwindow arg1,arg2,arg3,arg4,arg5,arg6,arg7
797,7 → 797,7
mov esi,arg6
mov edi,arg7
mov eax,0
mcall
int 0x40
}
 
 
807,7 → 807,7
{
mov eax,12
mov ebx,1
mcall
int 0x40
}
 
; ENDWD - End window draw
816,7 → 816,7
{
mov eax,12
mov ebx,2
mcall
int 0x40
}
 
; LABEL - Put text to frame
842,7 → 842,7
mov edx,lab
mov esi,asd-lab ;calc size
mov eax,4
mcall
int 0x40
}
 
;Key's
/programs/games/phenix/trunk/build_en.bat
1,5 → 1,4
@erase lang.inc
@echo lang fix en >lang.inc
@fasm phenix.asm phenix
@erase lang.inc
@pause
/programs/games/phenix/trunk/build_ru.bat
1,5 → 1,4
@erase lang.inc
@echo lang fix ru >lang.inc
@fasm phenix.asm phenix
@erase lang.inc
@pause
/programs/games/phenix/trunk/phenix.asm
22,7 → 22,6
 
 
include 'lang.inc'
include '..\..\..\macros.inc'
include 'ascl.inc'
include 'ascgl.inc'
include 'ascml.inc'
351,13 → 350,13
mov eax,66
mov ebx,1
mov ecx,1
mcall
int 0x40
 
mov eax,26
mov ebx,2
mov ecx,1
mov edx,keymap
mcall
int 0x40
 
startgame:
gif_hash_offset = gif_hash_area
389,11 → 388,11
jmp stillm
keym:
mov eax,2
mcall
int 0x40
jmp stillm
buttonm:
mov eax,17 ; get id
mcall
int 0x40
cmp ah,1 ; button id=1 ?
je close_app
cmp ah,2 ; button id=1 ?
427,11 → 426,11
jmp stillh
keyh:
mov eax,2
mcall
int 0x40
jmp stillh
buttonh:
mov eax,17 ; get id
mcall
int 0x40
cmp ah,1 ; button id=1 ?
je close_app
cmp ah,2 ; button id=1 ?
458,7 → 457,7
dec ebp
looht:
mov eax,4
mcall
int 0x40
add edx,esi
add ebx,10
dec ebp
883,7 → 882,7
 
key: ; key
mov eax,2
mcall ; read (eax=2)
int 0x40 ; read (eax=2)
 
shr eax,8
and eax,0xff
955,12 → 954,12
 
button: ; button
mov eax,17 ; get id
mcall
int 0x40
cmp ah,1 ; button id=1 ?
jne noclose
close_app:
mov eax,-1 ; close this program
mcall
int 0x40
noclose:
jmp still
 
987,11 → 986,11
jmp stillgo
keygo:
mov eax,2
mcall
int 0x40
jmp stillgo
buttongo:
mov eax,17 ; get id
mcall
int 0x40
cmp ah,1
je close_app
cmp ah,4
1078,11 → 1077,11
jmp stilleg
keyeg:
mov eax,2
mcall
int 0x40
jmp stilleg
buttoneg:
mov eax,17 ; get id
mcall
int 0x40
cmp ah,1
je close_app
cmp ah,2
1212,11 → 1211,11
jmp end_gm ;stilleg2
keyeg2:
mov eax,2
mcall
int 0x40
jmp main_menu
buttoneg2:
mov eax,17 ; get id
mcall
int 0x40
jmp stilleg2