|
Joined: Sep 2007
Posts: 40
Member
|
Member
Joined: Sep 2007
Posts: 40 |
Concerning r6388, I think video_filter16 should look like this: INT32 leftuppix = - hres - 2;//not -4 now, it's in pixels now, not bytes //and so on ... INT32 leftupcvg = - hres - 2;//still -2 ... pix = vbuff[leftuppix ^ WORD_ADDR_XOR]; cvg = hbuff[leftupcvg ^ BYTE_ADDR_XOR] & 3; ... leftupcvg++;//these two may be merged now leftuppix++;
|
|
|
|
Joined: Sep 2007
Posts: 40
Member
|
Member
Joined: Sep 2007
Posts: 40 |
Concerning r6387, haven't we already determined that these registers are 24-bit wide?
|
|
|
|
Joined: May 2009
Posts: 2,214 Likes: 382
Very Senior Member
|
Very Senior Member
Joined: May 2009
Posts: 2,214 Likes: 382 |
Concerning r6387, haven't we already determined that these registers are 24-bit wide? I don't know, why don't you hop onto IRC and talk to DrgnMndd about it? Not to disbelieve docs or anything like that, but r6387 was suggested by him based on behavior observed with real hardware.
|
|
|
|
Joined: May 2009
Posts: 2,214 Likes: 382
Very Senior Member
|
Very Senior Member
Joined: May 2009
Posts: 2,214 Likes: 382 |
Eta: Double post, please delete
|
|
|
|
Joined: Jul 2007
Posts: 4,625
Very Senior Member
|
OP
Very Senior Member
Joined: Jul 2007
Posts: 4,625 |
SVN r6350 Victor/Interact/Hector driver Victor Interact Hector1 Hec2hrp Hec2mx80 PS: I ask Daniel Coulom for a tool to convert .k7 to .wav format (tape). For the opposite way exist a tool. Thanks goes to Yo_fr (the developer of the MESS driver) to send me a .wav files for testing. He made a tool to convert K7 to WAV format, maybe he can help to add in castool. hector1 driver Game : Formule 1 (Tape) hec2hr/hec2hrp/hec2hrx/hec2mx40/hec2mx80 driver Game : Stramble (High resolution, Tape)
Last edited by Anna Wu; 11/15/09 02:58 PM.
|
|
|
|
Joined: Dec 1999
Posts: 1,180 Likes: 2
Very Senior Member
|
Very Senior Member
Joined: Dec 1999
Posts: 1,180 Likes: 2 |
On a 64-bit MSVC compile, most N64 games (e.g. Mario 64) crash immediately.
The crash appears to be in video_filter16, at the following line: pix = vbuff[leftup ^ WORD_ADDR_XOR];
leftup is 0xfffffebe. WORD_ADDR_XOR is a macro so I can't easily debug what it's returning but maybe it's wrong on 64-bit?
EDIT: Hmm no, seems to be the same as on 32-bit, I guess leftup or vbuff is wrong somehow....
Last edited by Justin; 11/15/09 07:37 PM.
|
|
|
|
Joined: May 2009
Posts: 2,214 Likes: 382
Very Senior Member
|
Very Senior Member
Joined: May 2009
Posts: 2,214 Likes: 382 |
leftup is 0xfffffebe. WORD_ADDR_XOR is a macro so I can't easily debug what it's returning but maybe it's wrong on 64-bit? No, I'm pretty sure that leftup is plenty bad enough without having to look at WORD_ADDR_XOR as a culprit. Unfortunately, I don't have a 64-bit machine so that I can take a look myself.
|
|
|
|
Joined: Mar 2001
Posts: 17,215 Likes: 234
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,215 Likes: 234 |
leftup being negative is all manner of wrong without the xor, yes. Probably because almost no variables in the new N64 RDP code are initialized ever, sayeth GCC 4.
Last edited by R. Belmont; 11/15/09 07:37 PM.
|
|
|
|
Joined: Dec 1999
Posts: 1,180 Likes: 2
Very Senior Member
|
Very Senior Member
Joined: Dec 1999
Posts: 1,180 Likes: 2 |
Well, given that hres is 320, and leftup is set to -hres - 2, I'm not sure what other result you can expect....
|
|
|
|
Joined: Mar 2001
Posts: 17,215 Likes: 234
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 17,215 Likes: 234 |
Me neither, but using a negative number as an array index is always wrong.
|
|
|
1 members (1 invisible),
292
guests, and
2
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics9,320
Posts121,930
Members5,074
|
Most Online1,283 Dec 21st, 2022
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|