Search found 922 matches

by mic_
Tue May 20, 2008 7:48 am
Forum: General Stuff
Topic: C++ Question
Replies: 8
Views: 3494

Code: Select all

class foo
{
      public:
      foo() {}
      ~foo() {}
      
      struct
      {
             int a;
      }bar;
};
by mic_
Thu May 15, 2008 4:08 am
Forum: General Stuff
Topic: malloc Problem
Replies: 3
Views: 2335

malloc just gives you an address to the allocated memory, it doesn't care about if you're going to store ints or chars in that memory.

if CPU.Databus is an int you will get a sign-extension when reading from an 8-bit variable, unless you specifically state otherwise with a cast.
by mic_
Wed May 14, 2008 11:11 pm
Forum: NESdev
Topic: I still cannot make SMB1 use a different attribute engine!
Replies: 33
Views: 16081

5. Successfully divide by zero (while playing Duke Nukem Forever).
by mic_
Fri May 09, 2008 1:17 am
Forum: General Stuff
Topic: Windows API Tab Controls
Replies: 9
Views: 4330

I don't use it. I use PeekMessage with hwnd set to NULL.
by mic_
Thu May 08, 2008 6:42 am
Forum: General Stuff
Topic: Windows API Tab Controls
Replies: 9
Views: 4330

No idea without knowing what the relevant code looks like (i.e. your tab creation code, dialog callbacks etc).
by mic_
Thu May 08, 2008 1:05 am
Forum: General Stuff
Topic: Windows API Tab Controls
Replies: 9
Views: 4330

Sure, I'm also putting the tabs on a normal window.

It's just the content you put on each tab that are dialogs (create dialogs without border and caption).
by mic_
Wed May 07, 2008 9:30 am
Forum: General Stuff
Topic: Windows API Tab Controls
Replies: 9
Views: 4330

When you get WM_INITDIALOG in the DlgProc for a given tab, feel free to slap on as many code-generated controls as you wish.
by mic_
Wed May 07, 2008 4:18 am
Forum: General Stuff
Topic: Windows API Tab Controls
Replies: 9
Views: 4330

I use tabs in my DS emulator. Get http://dualis.1emu.net/files/dlsgui-14-src.zip, then take a look in tabs.h/cpp and dualis.cpp (around where it calls create_propsheet).
by mic_
Tue Apr 22, 2008 4:34 am
Forum: NESdev
Topic: NES Transcoder - Can Anyone try to Reprogram?
Replies: 32
Views: 12450

I'd say the SNES's video processor kicks the Genesis' butt. And while Genesis has a beefier CPU which is clocked twice as high, it also takes 4 cycles to execute the simplest instructions on it (iirc).
by mic_
Tue Apr 22, 2008 1:13 am
Forum: NESdev
Topic: NES Transcoder - Can Anyone try to Reprogram?
Replies: 32
Views: 12450

Yuji Naka supposedly wrote a NES emulator for Genesis.
I wrote a partial NES emulator for the Megadrive a couple of years ago. I never wrote any rendering code, so the only graphical output it had was displaying the current NES palette every frame. Of course the speed was horrible..
by mic_
Mon Apr 21, 2008 4:42 am
Forum: General Stuff
Topic: C++ Question
Replies: 8
Views: 3494

Wouldn't it be easier to just take entirely different code paths depending on the system (implement each cpu emulator as a separate class or something)?
by mic_
Thu Apr 10, 2008 5:36 am
Forum: NESemdev
Topic: Problems implementing the SBC instruction
Replies: 7
Views: 4287

I just implemented it as ADC(operand^0xFF).
by mic_
Thu Apr 03, 2008 12:43 am
Forum: NES Music
Topic: NSF Player/Creator for Windows 95?
Replies: 7
Views: 7556

For authoring NSFs: mck (I prefer ppmck)
by mic_
Fri Feb 22, 2008 2:02 am
Forum: NESdev
Topic: l33t debugging.
Replies: 24
Views: 12971

I like the disassembler in FCEUXD, but it lacks in PPU debugging features (think no$gba-style viewers for nametables, attribute tables, palettes, sprites etc).
by mic_
Thu Feb 21, 2008 3:53 am
Forum: General Stuff
Topic: What are you system specifications?
Replies: 20
Views: 10883

Intel Core 2 Duo T7200 / 2 GHz
Mobile Intel 945PM Express
2 GB DDR II SDRAM - 667 MHz
NVIDIA GeForce Go 7700 / 512MB
15.4" TFT 1680 x 1050 WSXGA+
Some generic RealTek soundchip, crappy speakers
160 GB - Serial ATA-150 - 5400 rpm
DVD±RW (+R DL) / DVD-RAM