From 5eb9f854f4e758cdae950297399a9248d6ccbf3f Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Sun, 7 Apr 2013 22:47:32 +0000 Subject: [PATCH] KOX - fix of phantom cross (bug #7) git-svn-id: svn://kolibrios.org@3457 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/kox/trunk/build.bat | 3 +++ programs/games/kox/trunk/build.sh | 11 +++++++++++ programs/games/kox/trunk/main.inc | 12 ++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 programs/games/kox/trunk/build.bat create mode 100644 programs/games/kox/trunk/build.sh diff --git a/programs/games/kox/trunk/build.bat b/programs/games/kox/trunk/build.bat new file mode 100644 index 0000000000..ecd55c09d0 --- /dev/null +++ b/programs/games/kox/trunk/build.bat @@ -0,0 +1,3 @@ +@fasm kox.asm kox +@kpack kox +@pause \ No newline at end of file diff --git a/programs/games/kox/trunk/build.sh b/programs/games/kox/trunk/build.sh new file mode 100644 index 0000000000..573ad2723b --- /dev/null +++ b/programs/games/kox/trunk/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# This script does for linux the same as build.bat for DOS, +# it compiles the KoOS kernel, hopefully ;-) + + fasm -m 16384 mgb.asm mgb + kpack mgb + exit 0 + + + + diff --git a/programs/games/kox/trunk/main.inc b/programs/games/kox/trunk/main.inc index a781f93c5f..fb4716b1cf 100644 --- a/programs/games/kox/trunk/main.inc +++ b/programs/games/kox/trunk/main.inc @@ -121,6 +121,18 @@ button: mov ebx,1 int 0x40 ;eax=x*65536+y mov [px],eax ;[px][py] - координата ткнутого места + + cmp [px],word 40 + jb event_wait + + cmp [px],word 200 + ja event_wait + + cmp [py],word 40 + jb event_wait + + cmp [py],word 200 + ja event_wait xor eax,eax g11: ;1st cell======