Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 8th, 2006, 9:55 PM   #1
Ambuoroko
Newbie
 
Join Date: Oct 2006
Location: Pittsburgh, Pennsylvania
Posts: 3
Rep Power: 0 Ambuoroko is on a distinguished road
Send a message via AIM to Ambuoroko
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
Ambuoroko is offline   Reply With Quote
Old Dec 8th, 2006, 10:03 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:00 PM.

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