It is currently Wed Apr 25, 2018 5:18 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sun Nov 26, 2017 9:05 pm 
Offline

Joined: Thu Jun 17, 2010 12:19 am
Posts: 8
I am running Blargg's test roms. They work well. I am trying to incorporate them into my test suite. I need to programmatically assert if it passed or fail.

Which memory location is the result stored at?

Here are the test roms I am running: https://github.com/christopherpow/nes-t ... 005.09.15b

Here is my emulator if anyone cares: https://github.com/dbousamra/hnes


Top
 Profile  
 
PostPosted: Sun Nov 26, 2017 11:48 pm 
Offline

Joined: Fri Jul 21, 2017 2:29 am
Posts: 9
https://wiki.nesdev.com/w/index.php/Emulator_tests
Quote:
Output at $6000
---------------
All text output is written starting at $6004, with a zero-byte
terminator at the end. As more text is written, the terminator is moved
forward, so an emulator can print the current text at any time.

The test status is written to $6000. $80 means the test is running, $81
means the test needs the reset button pressed, but delayed by at least
100 msec from now. $00-$7F means the test has completed and given that
result code.

To allow an emulator to know when one of these tests is running and the
data at $6000+ is valid, as opposed to some other NES program, $DE $B0
$G1 is written to $6001-$6003.

_________________
noexcept nes emulator


Top
 Profile  
 
PostPosted: Mon Nov 27, 2017 12:35 am 
Offline

Joined: Thu Jun 17, 2010 12:19 am
Posts: 8
Ah great, thank you


Top
 Profile  
 
PostPosted: Mon Nov 27, 2017 1:12 am 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10434
Location: Rio de Janeiro - Brazil
Donqustix wrote:
Quote:
...$DE $B0
$G1 is written to $6001-$6003.

$G1?


Top
 Profile  
 
PostPosted: Mon Nov 27, 2017 1:30 am 
Online
Formerly WheelInventor

Joined: Thu Apr 14, 2016 2:55 am
Posts: 1509
Location: Gothenburg, Sweden
tokumaru wrote:
Donqustix wrote:
Quote:
...$DE $B0
$G1 is written to $6001-$6003.

$G1?


Heptadecimal - It’s one louder, innit?
https://www.youtube.com/watch?v=XuzpsO4ErOQ&app=desktop


(i assume it’s f since they’re neighboring keys)

_________________
http://www.frankengraphics.com - personal NES blog


Top
 Profile  
 
PostPosted: Mon Nov 27, 2017 1:52 am 
Offline

Joined: Thu Jun 17, 2010 12:19 am
Posts: 8
Hmm. Do the PPU tests use the 6000 return value location as well? Or is it just the instruction timing ones?

I can see the instr timing ones do write there return value to 6000, but the PPU ones don't seem to.


Top
 Profile  
 
PostPosted: Mon Nov 27, 2017 9:19 pm 
Offline

Joined: Sun Mar 03, 2013 1:52 am
Posts: 105
Location: Texas, USA
Donqustix wrote:
Quote:
Output at $6000
---------------
All text output is written starting at $6004 [...]
The test status is written to $6000. [...]
$DE $B0 $G1 is written to $6001-$6003.

I was confused at first because the quote doesn't appear on the wiki page. It looks like the quote comes from the readme.txt file inside some of the zip files available on that wiki page. So maybe this output method is only available in those tests that mention it in their readme.txt file.


tokumaru wrote:
$G1?

In instr_timing.nes, it uses DE B0 61. I guess it's supposed to look like DEBUG1, but with similar-looking hex digit replacements.


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

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 4 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