It is currently Tue Dec 11, 2018 5:22 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: please help me debug
PostPosted: Thu Aug 31, 2006 6:08 pm 
Offline

Joined: Sat Aug 19, 2006 2:03 pm
Posts: 34
It's been quite a while since i have programmed. i've made the code for the states as data. It doesn't work right. The little ship flashes around a little and then vanishes.

i remember debugging using a variable "look" located on the zero page close to $0000. I would place "sta look" after a crucial line of code and then run nintendulator, pause it and see what value look contained.

Now, i cant figure out how that works with debugging. How do you know when to pause nintendulator? i have forgotten how to debug. Could you please help refresh my memory a little? :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 31, 2006 7:20 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 20853
Location: NE Indiana, USA (NTSC)
You set a watch on writes to 'look'. How to find where 'look' has been placed in RAM depends on your assembler (see if it can output a "symbol table"); how to set the watch depends on your emulator.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 02, 2006 3:38 pm 
Offline

Joined: Sat Aug 19, 2006 2:03 pm
Posts: 34
How do you set a watch in nintendulaor? i know that look is in spot #0006 because it's the 7th variable in the zero page variable list. i can check its value in nintendulators disassembly screen. Is that a watch? (i've never heard of doing a watch before.)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 02, 2006 3:58 pm 
Offline
User avatar

Joined: Sun Sep 19, 2004 10:59 pm
Posts: 1440
Nintendulator does not support "watches" (memory I/O breakpoints), only address execution breakpoints. If you want to watch for a memory write, you'll have to use a different emulator for that.

_________________
Quietust, QMT Productions
P.S. If you don't get this note, let me know and I'll write you another.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 04, 2006 6:38 pm 
Offline

Joined: Sat Aug 19, 2006 2:03 pm
Posts: 34
1.) What is a a "watch"?

2.) What is a good emulator that supports "watches"?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group