![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
|
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 endpEven 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 |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Language display in program | Prm753 | C++ | 3 | May 30th, 2006 6:45 PM |
| Help me make a program. read ---> | DBZ | Visual Basic | 8 | Mar 10th, 2006 9:53 AM |
| Creating a program to test a program | sixstringartist | C | 8 | Jan 21st, 2006 2:15 PM |
| Program gets aborted on large input | shinni | C++ | 3 | Mar 12th, 2005 9:26 AM |
| airport Log program using 3D linked List : problem reading from file | gemini_shooter | C++ | 0 | Mar 2nd, 2005 5:12 PM |