Previous Thread
Next Thread
Print Thread
Page 107 of 536 1 2 105 106 107 108 109 535 536
Joined: Sep 2007
Posts: 40
A
Member
Offline
Member
A
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
A
Member
Offline
Member
A
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
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,214
Likes: 382
Originally Posted by angrylion
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
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,214
Likes: 382
Eta: Double post, please delete

Joined: Jul 2007
Posts: 4,625
A
Anna Wu Offline OP
Very Senior Member
OP Offline
Very Senior Member
A
Joined: Jul 2007
Posts: 4,625
Originally Posted by Anna Wu
SVN r6350
Victor/Interact/Hector driver

Victor

[Linked Image from img30.imageshack.us]

Interact

[Linked Image from img39.imageshack.us]

Hector1

[Linked Image from img33.imageshack.us]

Hec2hrp

[Linked Image from img30.imageshack.us]

Hec2mx80

[Linked Image from img689.imageshack.us]

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)

[Linked Image from img338.imageshack.us]

[Linked Image from img338.imageshack.us]

hec2hr/hec2hrp/hec2hrx/hec2mx40/hec2mx80 driver
Game : Stramble (High resolution, Tape)

[Linked Image from img266.imageshack.us]

Last edited by Anna Wu; 11/15/09 02:58 PM.
Joined: Dec 1999
Posts: 1,180
Likes: 2
J
Very Senior Member
Offline
Very Senior Member
J
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
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,214
Likes: 382
Originally Posted by Justin
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
R
Very Senior Member
Offline
Very Senior Member
R
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
J
Very Senior Member
Offline
Very Senior Member
J
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
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,215
Likes: 234
Me neither, but using a negative number as an array index is always wrong.

Page 107 of 536 1 2 105 106 107 108 109 535 536

Link Copied to Clipboard
Who's Online Now
1 members (1 invisible), 292 guests, and 2 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,320
Posts121,930
Members5,074
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com