Page 1 of 1

Unknown warnings from Gens KMod

Posted: Sat Aug 29, 2015 2:33 pm
by HCKTROX
So, I decided to give a try to some special Gens KMod debugging features, apart from the typical memory viewers and such. After enabling a few of "Spy strange behaviors" features, I get the following warnings:

Code: Select all

Spy : 202CBC want to write a Word at 00BFFFFC
Spy : 202CBC want to write a Word at 00BFFFFE
Spy : 202CBC want to write a Word at 00BFFFF8
Spy : 202CBC want to write a Word at 00BFFFFA
Spy : 202CBC want to write a Word at 00BFFFF4
Spy : 202CBC want to write a Word at 00BFFFF6
Spy : 202CBC want to write a Word at 00BFFFF0
Spy : 202CBC want to write a Word at 00BFFFF2
Spy : FF0850 want to write a Word at 00BFFFEE
But... why do I get those warnings? This is a portion from the listing file, from subroutine that runs around that address:
http://pastebin.com/0H0Rz4H1
(please excuse the sloppiness on this one :P )

As you can see I'm even trying to write directly to VDP's data port, yet it still keep throwing the same warnings.
I haven't tested it on hardware (I have no way I could do this), but interestingly it works all flawless on every emulator I have tried (including KMod). But this problem has kept me really worried.

So... Any idea why it happens? =S


This code runs under SegaCD Mode0 workspace, by the way (but running from MainCPU I guess it counts anyways).

Re: Unknown warnings from Gens KMod

Posted: Sat Aug 29, 2015 9:15 pm
by KanedaFr
Hi,

This warning happens when you try to write to an invalid adresse
see https://bitbucket.org/SpritesMind/gensk ... k.asm-1786

To try to write at Bxxxxx which is, for gens, a bad adress:
https://bitbucket.org/SpritesMind/gensk ... 68k.asm-56
https://bitbucket.org/SpritesMind/gensk ... 8k.asm-130


Note KMod rarely updated the emulation part of Gens, I only added debug features.
Gens is old now, if we made a lot of discovery since its last release, perhaps you'll find some "bugs" like this now
If it's the case, just feel an issue on Bitbucket, I'll try to fix it
I'm rarely on "fix session" but when I am, I do my best ! ;)


So, if you think the address is valid, forgot the message ;)

Re: Unknown warnings from Gens KMod

Posted: Wed Sep 02, 2015 12:14 am
by HCKTROX
The message itself is valid, but not the source addresses :P. I got access to my Desktop PC again where I have a modded version of Genesis Plus GX for retroarch with error logs enabled, and although my code mistakenly indeed do write at those bad locations, the bad code was from a much earlier location that what Spy says :P.

I'm not really sure the reason behind this :P