puNES Emulator
Moderator: Moderators
You should also fix the controller input problem. The problem with joystick input not working correctly that I mentioned earlier has nothing to with mappers.
This is the joystick code I'm using, it's a bit non-standard.
Right now, it seems that buttons and keypresses are shifted one bit over.
My guess is that it's shifting the register during the read in the strobe routine when it shouldn't.
JOY1 = $4016
This is the joystick code I'm using, it's a bit non-standard.
Right now, it seems that buttons and keypresses are shifted one bit over.
My guess is that it's shifting the register during the read in the strobe routine when it shouldn't.
JOY1 = $4016
Code: Select all
ReadJoypad1:
lda joy1
sta joy1last
jsr Strobe
jsr ReadJOY1_8
sta joy1
ReadJoy1Again:
jsr Strobe
jsr ReadJOY1_8
cmp joy1
sta joy1
bne ReadJoy1Again
eor joy1last
and joy1
sta joy1Pressed
lda joy1
rts
ReadJOY1_8:
cpx JOY1
ror a
cpx JOY1
ror a
cpx JOY1
ror a
cpx JOY1
ror a
cpx JOY1
ror a
cpx JOY1
ror a
cpx JOY1
ror a
cpx JOY1
ror a
eor #$FF
rts
Strobe:
ldx #1
stx JOY1
lda JOY1
dex
stx JOY1
and #$FC
tax
rts
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
Version 0.14
Many thanks Dwedit, I've found and correct the bug and now I can return to work on the mmc3 implementation.
Changelog:
0.14:
Correct a a bug in the controller routine.
Changelog:
0.14:
Correct a a bug in the controller routine.
Version 0.15
Changelog:
0.15:
added MMC3 emulation.
0.15:
added MMC3 emulation.
version 0.16
thanks Dwedit. I'have investigated on the problem with Kick Master and this release is the result. I have to do a couple of things on the mmc3 and then I can work to the next mapper.
Changelog:
0.16:
correct a couple of bugs in the mmc3 emulation.
Changelog:
0.16:
correct a couple of bugs in the mmc3 emulation.
Version 0.17
Changelog:
0.17:
fixed another bug and now Incredible Crash Dummies run without problems.
0.17:
fixed another bug and now Incredible Crash Dummies run without problems.
Version 0.18
Changelog:
0.18:
added AxROM (mapper 7) emulation.
0.18:
added AxROM (mapper 7) emulation.
Many emulators are well known for their little quirks, the little things they get slightly off, it kind of acts as a signature that tells you that you are using that emulator. Sort of establishes the character of an emulator.
But this one plays Battletoads and Micro Machines perfectly! Who needs quirks when you have accuracy!
Now it just needs Sound, and some other mappers.
But this one plays Battletoads and Micro Machines perfectly! Who needs quirks when you have accuracy!
Now it just needs Sound, and some other mappers.
This one eats ~45% in software rendering mode, ~52% in OpenGL mode.FHorse wrote:I've uploade a modified version. Please thefox can you try it and tell me if eat less cpu? Many thanks.
The previous one ate exactly 50% in s/w rendering and little bit more in OpenGL as well.
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi