- Joined: 11 Jan 2006
- Posts: 29
- Location: Midlands, UK
|
SN76489 In Visual Basic
Posted: Tue Sep 08, 2009 7:14 pm
|
Hi, I think vbt originally ported the SN76489 emulation from the Gens project to Visual Basic for use in olafs vbsms.
See in the port there are some problems with the psg noise generator and the Psg.Counter values for every channel, in the vb module the values always overflow in the psg_update sub. Now I've rewritten the code from C to vb and I keep getting the same problems, does anyone know whats going on;
Can anyone help fix this??
Below are the source of an old vbsms project and the psg.c source files.
any help appreciated.
|
- Site Admin
- Joined: 19 Oct 1999
- Posts: 14749
- Location: London
|
Posted: Wed Sep 09, 2009 11:46 am
|
It looks like these counters are deliberately overflowing. If that is a problem for the VB version then you can try to rewrite it to avoid it, or maybe try converting a simpler implementation. (My one is complicated by interpolation.)
|
olafguest
|
Posted: Thu Sep 10, 2009 6:01 am
|
brom wrote Hi, I think vbt originally ported the SN76489 emulation from the Gens project to Visual Basic for use in olafs vbsms.
It was from his port of SMS Plus to the Sega Saturn, IIRC.
|
- Joined: 29 Jun 1999
- Posts: 254
- Location: California, USA; Hiroshima, Japan
|
Posted: Mon Sep 14, 2009 3:17 am
|
Which version of VB are you using? I just finished my own SN76489 core using Visual Basic 2008. It sounds great, if I do say so myself. :) I'd be glad to send you the source.
|
olafguest
|
Posted: Tue Sep 15, 2009 2:21 am
|