forked from KolibriOS/kolibrios
Updated to work with newer sysfn2 API (#4588)
git-svn-id: svn://kolibrios.org@4854 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0b7a26a5a4
commit
d9328139fb
@ -1,5 +1,5 @@
|
|||||||
;*************************************************************
|
;*************************************************************
|
||||||
;*GAME TANKS CRETED BY ANDREY IGNATYEV AKA ANDREW_PROGRAMMER *
|
;*GAME TANKS CREATED BY ANDREY IGNATYEV AKA ANDREW_PROGRAMMER*
|
||||||
;*********************/8/2005*********************************
|
;*********************/8/2005*********************************
|
||||||
; version: 1.15
|
; version: 1.15
|
||||||
; last update: 19/08/2011
|
; last update: 19/08/2011
|
||||||
@ -12,6 +12,8 @@
|
|||||||
;dunkaist /07/2011
|
;dunkaist /07/2011
|
||||||
;v1.1
|
;v1.1
|
||||||
;----------------------------------------------------------
|
;----------------------------------------------------------
|
||||||
|
format binary as ""
|
||||||
|
|
||||||
use32
|
use32
|
||||||
org 0x0
|
org 0x0
|
||||||
db 'MENUET01'
|
db 'MENUET01'
|
||||||
@ -360,9 +362,8 @@ keypressed:
|
|||||||
and [_dx],0
|
and [_dx],0
|
||||||
and [_dy],0
|
and [_dy],0
|
||||||
mcall 2
|
mcall 2
|
||||||
shr eax,8
|
|
||||||
;---------
|
;---------
|
||||||
cmp eax,32
|
cmp ah,32
|
||||||
jne key2
|
jne key2
|
||||||
cmp [strike_action],0
|
cmp [strike_action],0
|
||||||
jne action
|
jne action
|
||||||
@ -378,7 +379,7 @@ keypressed:
|
|||||||
mov [SpriteInfo+36+12],dword ebx
|
mov [SpriteInfo+36+12],dword ebx
|
||||||
jmp action
|
jmp action
|
||||||
key2:
|
key2:
|
||||||
cmp eax,176
|
cmp ah,176
|
||||||
jne key3
|
jne key3
|
||||||
mov [SpriteInfo+8*9+0],dword 8
|
mov [SpriteInfo+8*9+0],dword 8
|
||||||
mov [SpriteInfo+8*9+4],dword 1
|
mov [SpriteInfo+8*9+4],dword 1
|
||||||
@ -392,7 +393,7 @@ key2:
|
|||||||
mov [SpriteInfo+36+32],dword 0
|
mov [SpriteInfo+36+32],dword 0
|
||||||
jmp action
|
jmp action
|
||||||
key3:
|
key3:
|
||||||
cmp eax,179
|
cmp ah,179
|
||||||
jne key4
|
jne key4
|
||||||
mov [SpriteInfo+8*9+0],dword 4
|
mov [SpriteInfo+8*9+0],dword 4
|
||||||
mov [SpriteInfo+8*9+4],dword 1
|
mov [SpriteInfo+8*9+4],dword 1
|
||||||
@ -406,7 +407,7 @@ key3:
|
|||||||
mov [SpriteInfo+36+32],dword 0
|
mov [SpriteInfo+36+32],dword 0
|
||||||
jmp action
|
jmp action
|
||||||
key4:
|
key4:
|
||||||
cmp eax,178
|
cmp ah,178
|
||||||
jne key5
|
jne key5
|
||||||
mov [SpriteInfo+8*9+0],dword 2
|
mov [SpriteInfo+8*9+0],dword 2
|
||||||
mov [SpriteInfo+8*9+4],dword 1
|
mov [SpriteInfo+8*9+4],dword 1
|
||||||
@ -420,7 +421,7 @@ key4:
|
|||||||
mov [SpriteInfo+36+32],dword -5
|
mov [SpriteInfo+36+32],dword -5
|
||||||
jmp action
|
jmp action
|
||||||
key5:
|
key5:
|
||||||
cmp eax,177
|
cmp ah,177
|
||||||
jne key6
|
jne key6
|
||||||
mov [SpriteInfo+8*9+0],dword 6
|
mov [SpriteInfo+8*9+0],dword 6
|
||||||
mov [SpriteInfo+8*9+4],dword 1
|
mov [SpriteInfo+8*9+4],dword 1
|
||||||
@ -434,7 +435,7 @@ key5:
|
|||||||
mov [SpriteInfo+36+32],dword 5
|
mov [SpriteInfo+36+32],dword 5
|
||||||
jmp action
|
jmp action
|
||||||
key6:
|
key6:
|
||||||
cmp eax,27
|
cmp ah,27
|
||||||
jne action
|
jne action
|
||||||
mcall -1
|
mcall -1
|
||||||
action:
|
action:
|
||||||
@ -1194,24 +1195,23 @@ still:
|
|||||||
jmp restart_level
|
jmp restart_level
|
||||||
.key:
|
.key:
|
||||||
mcall 2
|
mcall 2
|
||||||
shr eax,8
|
cmp ah,32
|
||||||
cmp eax,32
|
|
||||||
je start_game
|
je start_game
|
||||||
cmp eax,13
|
cmp ah,13
|
||||||
je start_game
|
je start_game
|
||||||
cmp eax,176
|
cmp ah,176
|
||||||
jne no_left
|
jne no_left
|
||||||
dec [number_level]
|
dec [number_level]
|
||||||
and [number_level],15
|
and [number_level],15
|
||||||
jmp cycle_menu
|
jmp cycle_menu
|
||||||
no_left:
|
no_left:
|
||||||
cmp eax,179
|
cmp ah,179
|
||||||
jne no_right
|
jne no_right
|
||||||
inc [number_level]
|
inc [number_level]
|
||||||
and [number_level],15
|
and [number_level],15
|
||||||
jmp cycle_menu
|
jmp cycle_menu
|
||||||
no_right:
|
no_right:
|
||||||
cmp eax,27
|
cmp ah,27
|
||||||
jne cycle_menu
|
jne cycle_menu
|
||||||
mov eax,-1
|
mov eax,-1
|
||||||
mcall
|
mcall
|
||||||
|
Loading…
Reference in New Issue
Block a user