Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4609 → Rev 4605

/programs/games/tetris/trunk/tetris.asm
178,10 → 178,10
getkeyi: mov dh,ah ; Gluk
jmp key
 
adr32: cmp [pauses], 1 ; If game is paused, disable all actions
je scendi
cmp ah,LEFT_KEY
adr32: cmp ah,LEFT_KEY
jne adr_30
cmp dword[pauses], 1 ; If game is paused, dont allow movement
je adr4000
dec dword [current_block_x]
call check_crash
jz adr4000
190,6 → 190,8
 
adr_30: cmp ah,RIGHT_KEY
jne adr_31
cmp dword[pauses], 1 ; If game is paused, dont allow movement
je adr3000
inc dword [current_block_x]
call check_crash
jz adr3000
198,6 → 200,8
 
adr_31: cmp ah,UP_KEY
jne adr51
cmp dword[pauses], 1 ; If game is paused, dont allow movement
je adr50
mov edx,[current_block_pointer]
mov edx,[edx+16]
mov esi,[current_block_pointer]
209,6 → 213,8
 
adr51: cmp ah,DOWN_KEY
jne adr61
cmp dword[pauses], 1 ; If game is paused, disable force_down
je adr52
cmp [force_down], 1
jne scendi
mov byte [delay],5 ;!!! 2
216,6 → 222,8
 
adr61: cmp ah,' '
jne adr62
cmp dword[pauses], 1 ; If game is paused, disable force_down
je adr62
cmp [force_down], 1
jne scendi
mov byte [delay],5 ;!!! 2