Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - SN76489 In Visual Basic

Reply to topic
Author Message
  • Joined: 11 Jan 2006
  • Posts: 29
  • Location: Midlands, UK
Reply with quote
SN76489 In Visual Basic
Post 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.
psg.c (9.01 KB)
vbsms.zip (32.07 KB)

  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14745
  • Location: London
Reply with quote
Post 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.)
  View user's profile Send private message Visit poster's website
olafguest
  • Guest
Reply with quote
Post 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
Reply with quote
Post 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.
  View user's profile Send private message Visit poster's website
olafguest
  • Guest
Reply with quote
Post Posted: Tue Sep 15, 2009 2:21 am
Visual Basic 6.0
 
Reply to topic



Back to the top of this page

Back to SMS Power!