Search found 23 matches
- Mon Jan 28, 2013 10:17 am
- Forum: NESemdev
- Topic: bad links on wiki for CPU tests
- Replies: 8
- Views: 2835
Re: bad links on wiki for CPU tests
blargg why don't you check this out: http://www.noip.com/ It's free, you have to renew it for free every month but it will work. When you change to a new host/server you only need to login and update the IP address, but the links will of course stay the same. Or, just buy a domain. I have http://www...
- Mon Jan 28, 2013 10:15 am
- Forum: NESemdev
- Topic: Super Mario Bros 1 Menu not working
- Replies: 30
- Views: 12730
Re: Super Mario Bros 1 Menu not working
All right thank you, I'll put that high on my to-do list. I'm currently trying to figure out MMC1 (still no mappers implemented). 
- Mon Jan 28, 2013 3:31 am
- Forum: NESemdev
- Topic: Super Mario Bros 1 Menu not working
- Replies: 30
- Views: 12730
Re: Super Mario Bros 1 Menu not working
All right, fixed the bug by creating two controller instances, one of them is read by $4016, the other is read by reading $4017. I'm returning "1" after 8 reads now. Writes to $4016 are common, thought (I suppose that is the correct behaviour and there are no writes to $4017!). Thank you f...
- Sun Jan 27, 2013 7:26 pm
- Forum: NESemdev
- Topic: Super Mario Bros 1 Menu not working
- Replies: 30
- Views: 12730
Re: Super Mario Bros 1 Menu not working
@3gengames When a "key" is up, I return "1", when its down I return "0" in its corresponding order :/ After 8 bytes read I return 4 now... But before this hack returned 1. @blargg Well I just noticed that this "fix" makes pacman controls STOP WORKING (even tho...
- Sun Jan 27, 2013 6:41 pm
- Forum: NESemdev
- Topic: Super Mario Bros 1 Menu not working
- Replies: 30
- Views: 12730
Re: Super Mario Bros 1 Menu not working
Hi again guys. This keeps getting better and better ... But somehow I got it working... What did I change? Well... After 8 bytes I now return 4 (100b in binary) and when reading, I read the same controller from $4016 and $4017. I don't know what I changed but that "hack" put my controls to...
- Sun Jan 27, 2013 3:02 pm
- Forum: NESemdev
- Topic: Super Mario Bros 1 Menu not working
- Replies: 30
- Views: 12730
Re: Super Mario Bros 1 Menu not working
Uh, no? What do you mean? When I return the value from the controller I "or" that 8 bit value with 0x40? I wasn't doing that. Just added it now, but still doesn't fix SMB.
- Sun Jan 27, 2013 2:44 pm
- Forum: NESemdev
- Topic: Super Mario Bros 1 Menu not working
- Replies: 30
- Views: 12730
Re: Super Mario Bros 1 Menu not working
Thank you 3gengames, all the other bits read from 4016 return 0 (only the 1st bit is set/clear), is that what you mean? Now, in an act of "dispair" I managed to enter the game by doing this: if (address == 0x4016) return this.console.controller.Read(); else if (address == 0x4017) return th...
- Sun Jan 27, 2013 1:56 pm
- Forum: NESemdev
- Topic: Super Mario Bros 1 Menu not working
- Replies: 30
- Views: 12730
Re: Super Mario Bros 1 Menu not working
koitsu, thing is, I don't know if it's not working because of the controller - because all the other games that I tested work great (Donkey Kong, Mario Bros, nestest menu, Nestress menu, etc...), only SMB doesn't work. When the CPU tries to read from $4016, I call the read function in the controller...
- Sun Jan 27, 2013 1:37 pm
- Forum: NESemdev
- Topic: Super Mario Bros 1 Menu not working
- Replies: 30
- Views: 12730
Re: Super Mario Bros 1 Menu not working
Still not working... :( I guess something really messed up is going on... bool one = false; public void Write(byte value) { if ((value & 1) == 0) { if (one) { latch = false; n = 0; one = false; } } else { latch = true; one = true; } }
- Sun Jan 27, 2013 1:18 pm
- Forum: NESemdev
- Topic: Super Mario Bros 1 Menu not working
- Replies: 30
- Views: 12730
Re: Super Mario Bros 1 Menu not working
I did!
Code: Select all
public void Write(byte value)
{
if ((value & 1) == 0)
{
latch = false;
n = 0;
}
else
latch = true;
}- Sun Jan 27, 2013 11:41 am
- Forum: NESemdev
- Topic: Super Mario Bros 1 Menu not working
- Replies: 30
- Views: 12730
Re: Super Mario Bros 1 Menu not working
Well... I beleive you... But what is wrong? http://wiki.nesdev.com/w/index.php/Standard_controller When reading from $4016, in the first 8 bytes I return the state of each key, then I return 1... Till I have a write in $4016 (=0), where I set n = 0 and in the next read everything starts again. Isn't...
- Sun Jan 27, 2013 11:23 am
- Forum: NESemdev
- Topic: Super Mario Bros 1 Menu not working
- Replies: 30
- Views: 12730
Re: Super Mario Bros 1 Menu not working
I'm returning "1". Is this correct? I just made some experiments (returning 0, etc...) and still doesn't work. Reading address 0x4016 (controller 2 at 0x4017 is "unconnected"). private int n = 0; public byte Read() { byte retval; retval = (n < 8) ? Convert.ToByte(state[n]) : (byt...
- Sun Jan 27, 2013 9:46 am
- Forum: NESemdev
- Topic: Super Mario Bros 1 Menu not working
- Replies: 30
- Views: 12730
Re: Super Mario Bros 1 Menu not working
Oh, you're right, sorry! I was convinced that it was wrong. Just tried with nintendulator and works the same way... I guess my emulator is better than jnes then :) But still can't figure out the SMB1 messed up menu... It simply does not respond to keys (and yes, the main standart controller is imple...
- Sun Jan 27, 2013 8:17 am
- Forum: NESemdev
- Topic: Super Mario Bros 1 Menu not working
- Replies: 30
- Views: 12730
Super Mario Bros 1 Menu not working
Hello guys, After lots of work I now seem to be kind of stuck in trying to emulate Super Mario Bros. The problem is that I'm stuck at the menu. I can never enter the real game, it is not responding to key presses! Now that I implemented sprite0 hit and scrolling, after waiting a while Mario starts &...
- Mon Jan 21, 2013 2:18 pm
- Forum: NESemdev
- Topic: Odd Problem with nametables
- Replies: 3
- Views: 4219
Re: Odd Problem with nametables
You know, I spent the entire day trying to figure this out, and in the matter of minutes you point me exacly in the right direction. I just had to remove a stupid line of code (I was anding the result address with a value) and suddenly everything worked :) :) Many thanks!!!!! I gotta include you guy...