It is currently Mon Dec 11, 2017 7:44 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Mon Apr 04, 2016 3:18 pm 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 750
Location: New York, NY
According to the wiki, the serial data bit is $4017.2 . However, several emulators suggest that it is actually $4017.3 . For instance, from FCEUX 2.2.2 (oekakids.cpp):

Code:
   if(OKData&0x40000) OKValR=0;
   else OKValR=0x8;


Here's from Nintendulator 0970 (c_e_tablet.cpp):

Code:
         if ((State->Bits << State->BitPtr) & 0x40000)
            return 0x00;
         else   return 0x08;


Maybe I'm misinterpreting the code or the wiki, but doesn't 0x08 correspond to $4017.3, not $4017.2 ?


Top
 Profile  
 
PostPosted: Mon Apr 04, 2016 9:15 pm 
Offline
Formerly ~J-@D!~
User avatar

Joined: Sun Mar 12, 2006 12:36 am
Posts: 445
Location: Rive nord de Montréal
Bit numbering starts with 0. So $4017.2 is the 3rd bit.


Top
 Profile  
 
PostPosted: Mon Apr 04, 2016 9:25 pm 
Online

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6509
Location: Seattle
And the 8s bit would be the 4th bit...


Top
 Profile  
 
PostPosted: Mon Apr 04, 2016 9:32 pm 
Offline
Formerly ~J-@D!~
User avatar

Joined: Sun Mar 12, 2006 12:36 am
Posts: 445
Location: Rive nord de Montréal
Wait, I screwed up. 0x8 is the 4th bit. So it's $4017.3... damn I should not post when I should sleep instead ><


Top
 Profile  
 
PostPosted: Tue Apr 05, 2016 12:29 am 
Offline

Joined: Mon Sep 27, 2004 2:57 pm
Posts: 1248
Someone probably typo'd on the wiki page, because if you follow the link on the page, it leads to Quietust's post saying that the output bits are bits 2 and 3, not 1 and 2 like the wiki suggests.


Top
 Profile  
 
PostPosted: Tue Apr 05, 2016 12:10 pm 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 750
Location: New York, NY
Any objections to me updating the wiki? On a side note, can anyone update the wiki?


Top
 Profile  
 
PostPosted: Tue Apr 05, 2016 12:35 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19332
Location: NE Indiana, USA (NTSC)
Anyone with a confirmed acount can update the wiki. There are three ways to become confirmed:
  • Create an account and get a hold of an administrator (e.g. me) through a PM on the BBS or through a /msg in #nesdev on EFnet. (Working)
  • Create an account, make two posts to talk pages, and wait four days. (Working)
  • Create an account and verify your e-mail address. (Broken)


Top
 Profile  
 
PostPosted: Tue Apr 05, 2016 1:27 pm 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 750
Location: New York, NY
tepples wrote:
Anyone with a confirmed acount can update the wiki. There are three ways to become confirmed:
  • Create an account and get a hold of an administrator (e.g. me) through a PM on the BBS or through a /msg in #nesdev on EFnet. (Working)
  • Create an account, make two posts to talk pages, and wait four days. (Working)
  • Create an account and verify your e-mail address. (Broken)


It turns out that I already have an account. I updated the page with what was discussed above.

One more thing: the emulator sources suggest that the serialized data is returned only when both S and A are 1. That seems logical from the rest of the specification, but without more information about the actual hardware, I did not add that constraint to the wiki.


Top
 Profile  
 
PostPosted: Tue Apr 05, 2016 3:50 pm 
Offline

Joined: Mon Sep 27, 2004 2:57 pm
Posts: 1248
You can add that to the talk page if you want.


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

All times are UTC - 7 hours


Who is online

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