Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Assembly (http://www.programmingforums.org/forum20.html)
-   -   Program Exits Unexpectedly (http://www.programmingforums.org/showthread.php?t=12139)

Ambuoroko Dec 8th, 2006 9:55 PM

Program Exits Unexpectedly
 
Hello everyone. Back again with another question that has me stumped.

I'm writing a very simple game program for my final project for my Assembly Language class. The game is about 75% done, but I seem to have come to a standstill. There is one variables which, if I alter to equal anything other than 0, causes the game to crash. I can remove this variable without error (provided I remove the places I reference it), but if I attempt to set it to anything besides 0, it crashes... For example, in my code, I have:

:

dragonShoot proc
    mov fballrow, 24
    ret
dragonShoot endp


Even if this is the only place in the code that references the variable, the program exits as soon as I run it, without displaying any information about why. In fact, if I even initialize the variable fballrow to something other than 0, the program goes wacky (displays random characters all over the screen). I would greatly appreciate your help if you have any suggestions.

Thanks
John

DaWei Dec 8th, 2006 10:03 PM

Perhaps you are defining fballrow to be in some area of memory which is not for you to use. Your example is certainly not rife with information concerning the definition of the variable, or its intended use, or the particular language or tool that you are using.


All times are GMT -5. The time now is 1:26 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC