Unknown warnings from Gens KMod

Ask anything your want about Megadrive/Genesis programming.

Moderator: BigEvilCorporation

Post Reply
HCKTROX
Interested
Posts: 27
Joined: Wed Mar 24, 2010 1:15 am
Location: Chile

Unknown warnings from Gens KMod

Post by HCKTROX » Sat Aug 29, 2015 2:33 pm

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).
skype: hcktrox

KanedaFr
Administrateur
Posts: 1139
Joined: Tue Aug 29, 2006 10:56 am
Contact:

Re: Unknown warnings from Gens KMod

Post by KanedaFr » Sat Aug 29, 2015 9:15 pm

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 ;)

HCKTROX
Interested
Posts: 27
Joined: Wed Mar 24, 2010 1:15 am
Location: Chile

Re: Unknown warnings from Gens KMod

Post by HCKTROX » Wed Sep 02, 2015 12:14 am

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
skype: hcktrox

Post Reply