Search found 3221 matches

by Zepper
Thu Jan 21, 2021 2:37 pm
Forum: NESemdev
Topic: My Nes emulator causes the main character's body in Kung Fu to split in half?
Replies: 6
Views: 342

Re: My Nes emulator causes the main character's body in Kung Fu to split in half?

How many CPU cycles do you emulate per scan line?
How do you count CPU cycles?
For each CPU access (read/write), the NTSC PPU runs for 3 cycles, or 341 PPU cycles per scanline, or 113.6 CPU cycles.
by Zepper
Thu Dec 24, 2020 3:48 pm
Forum: NESemdev
Topic: Emulator with disassembly capability
Replies: 4
Views: 677

Re: Emulator with disassembly capability

Short answer: yes, a lot of them. Nintendulator, Mesen (most active), puNES... My emulator: - yes, it has code/data logger, but it's disabled due to the huge files generated, so viewing-only decompiled code is supported. - yes, it has a way of patching any address once you determine it by reading de...
by Zepper
Fri Oct 23, 2020 6:24 pm
Forum: General Stuff
Topic: HDMI separated audio?
Replies: 1
Views: 2840

HDMI separated audio?

Hi. I have a monitor, not a TV, so... there's no speakers on it.
All modern consoles have HDMI output.
How could I get the separated audio output by using a... speaker, or headphones?
What kind of adaptor(s)/connection(s) would be used?
by Zepper
Fri Oct 02, 2020 2:43 pm
Forum: NESemdev
Topic: RockNES 5.64 -released on October 2nd 2020-
Replies: 2
Views: 3575

Re: RockNES 5.64 -released on October 2nd 2020-

Here we go.
New version before my wedding (tomorrow). ^_^;;
by Zepper
Tue Sep 22, 2020 2:24 pm
Forum: NES Music
Topic: Sound Nes Megaman 4
Replies: 5
Views: 2165

Re: Sound Nes Megaman 4

Thank you very much for your answer, so in this case how should I start to learn to change the music from scratch in the megaman 4 nes rom? I have several documents but I need to know how to start learning in order to change them. It's not an easy task. You must create an environment for editing 65...
by Zepper
Tue Sep 22, 2020 6:48 am
Forum: NESemdev
Topic: Is there a logic to instruction timings?
Replies: 7
Views: 2861

Re: Is there a logic to instruction timings?

The error of counting cycles, plus the wrong assignment of number of cycles (a cycle table to be exact) while the CPU is running. Needless to say, but for each CPU read/write, the PPU runs for 3 cycles in NTSC mode. Depending on the addressing mode, as Q said, the instruction will take a certain amo...
by Zepper
Sun Sep 20, 2020 6:53 am
Forum: NESemdev
Topic: VBL Clear time
Replies: 3
Views: 1939

Re: VBL Clear time

It's how you adjust a ruler over the timeline of events. I have no problems in my emulator even if I don't set my PPU timing as precisely as +1 or -1 "idle cycle". Why? Because the "inner works" (CPU instruction level, flags) are more complex than anything else.
by Zepper
Fri Sep 18, 2020 6:22 pm
Forum: General Stuff
Topic: How to limit 60 FPS in a loop?
Replies: 8
Views: 4708

Re: Emulation refresh rate of 60hz?

If you want to emulate the NTSC NES at exactly 60Hz and have accurate timing, then you'll need to slow the CPU down to 1.78683MHz. Let me rephrase my question. I want to know how to limit 60 FPS in a loop. If you have a situation where the emulated system is 60Hz, and your display is 60Hz, using an...
by Zepper
Fri Sep 18, 2020 5:58 pm
Forum: General Stuff
Topic: How to limit 60 FPS in a loop?
Replies: 8
Views: 4708

Re: Emulation refresh rate of 60hz?

What are you trying to solve by using an arbitrary 60Hz that isn't locked to the screen, instead of using whatever the screen is locked to? What do you mean?? Well, once a game frame is rendered by the PPU (the 256x240 image), it calls a function to control the refresh rate. Usually, vsync() works ...
by Zepper
Fri Sep 18, 2020 5:32 pm
Forum: General Stuff
Topic: How to limit 60 FPS in a loop?
Replies: 8
Views: 4708

How to limit 60 FPS in a loop?

Ages ago , I asked about 60hz framerate with Allegro's timer . Some machines do, but mine don't (for some unknown reason, it locks at 50hz). So, I ended up using Allegro's vsync() until today. I've found here another way of creating a 60hz refresh rate. It worked, but I noted a problem when the gam...
by Zepper
Thu Sep 17, 2020 7:46 am
Forum: NES Graphics
Topic: Is $08 "brown" or "olive" ? Why does it vary so much from screen to screen?
Replies: 29
Views: 12267

Re: Is $08 "brown" or "olive" ? Why does it vary so much from screen to screen?

bngrybt wrote:
Tue Sep 15, 2020 10:47 am
Just in case you feel like being even more confused about the concept of brown...

https://www.youtube.com/watch?v=wh4aWZRtTwU
Awesome!
by Zepper
Mon Sep 07, 2020 7:06 pm
Forum: nesdevWiki
Topic: Availability of source code column on list of known emulators
Replies: 1
Views: 3903

Re: Availability of source code column on list of known emulators

Hi! I'm curious about examining some source code of some existing emulator written in my favorite programming language. Therefore I plan to do quick research to check whether there is source code available for emulators that you enlisted in the wiki, I'm also going to check what are programming lan...
by Zepper
Sun Sep 06, 2020 8:11 pm
Forum: NES Graphics
Topic: Is $08 "brown" or "olive" ? Why does it vary so much from screen to screen?
Replies: 29
Views: 12267

Re: Is $08 "brown" or "olive" ? Why does it vary so much from screen to screen?

according to which site? that color is much more what $08 looks like on my tv.. but every "accurate" emulator and lcd display includes way more green Again? https://www.colorhexa.com/808000 where are these RGB values coming from? Who says $08 is 523000? What does 808000 have to do with anything? Yo...
by Zepper
Sun Sep 06, 2020 7:40 pm
Forum: NES Graphics
Topic: Is $08 "brown" or "olive" ? Why does it vary so much from screen to screen?
Replies: 29
Views: 12267

Re: Is $08 "brown" or "olive" ? Why does it vary so much from screen to screen?

frantik wrote:
Sun Sep 06, 2020 12:58 pm
Zepper wrote:
Sat Sep 05, 2020 6:03 am
Color $08 according to this site:
RGB #523000 color description : Very dark orange [Brown tone].
according to which site? that color is much more what $08 looks like on my tv.. but every "accurate" emulator and lcd display includes way more green
Again?
https://www.colorhexa.com/808000
by Zepper
Sat Sep 05, 2020 6:03 am
Forum: NES Graphics
Topic: Is $08 "brown" or "olive" ? Why does it vary so much from screen to screen?
Replies: 29
Views: 12267

Re: Is $08 "brown" or "olive" ? Why does it vary so much from screen to screen?

Color $08 is NOT olive, since the color tones (or shades) have blue, a green value nearby the blue value, and high red. I tested 3 NES palettes, and they don't bring blue (value $00). Red and green are very nearby, which doesn't match the olive tones. Look at the image below. https://i.ibb.co/K7q2Yw...