Search found 486 matches

by Jarhmander
Mon Jan 16, 2017 5:26 pm
Forum: NES Hardware and Flash Equipment
Topic: Arduino based projects for the nes?
Replies: 19
Views: 4009

Re: Arduino based projects for the nes?

GPIOs on the Raspberry Pi are fast when you mmap the /dev/mem file and write to the correct offsets. This is also a very questionable practice. Better would be to make a kernel module, implement the desired GPIO protocol and communicate to ordinary userspace processes using only "high-level" message...
by Jarhmander
Sun Jan 15, 2017 8:33 am
Forum: NESdev
Topic: Does input need to be polled every frame?
Replies: 31
Views: 4904

Re: Does input need to be polled every frame?

I know Megaman 1 doesn't read the controller prior to a boss battle i.e. when the door closes, the boss appears and its life goes full. I know because during that time, I cannot make the PowerMappers menu appear. I mention this only to talk about a known case where the controller isn't polled every ...
by Jarhmander
Thu Jan 12, 2017 7:04 am
Forum: General Stuff
Topic: How organized are your PC files?
Replies: 17
Views: 3026

Re: How organized are your PC files?

I made (emulated) to some extent a tag-based filesystem organization that I use for my projects : everything is under '"project", and I have various folders that contains various symlinks to those projects. So I have by-platform, by-language and by-cpu, under those folders there are other folders fo...
by Jarhmander
Mon Dec 26, 2016 9:14 pm
Forum: NESemdev
Topic: Wiki: conflicting info ($4017 writes)
Replies: 19
Views: 6815

Re: Wiki: conflicting info ($4017 writes)

I'll attempt to predict what tepples will say: there's a discussion page on the wiki for that.
by Jarhmander
Tue Dec 13, 2016 6:37 pm
Forum: SNESdev
Topic: 16-bit pointers on the SPC-700
Replies: 17
Views: 5326

Re: 16-bit pointers on the SPC-700

Just to be clear, you can put the zeropage (or rather, direct page) either in page 0 or 1. There's a bit in the status register for that.
by Jarhmander
Thu Dec 08, 2016 8:44 pm
Forum: General Stuff
Topic: controlling CPU address bus with on-cart chips
Replies: 19
Views: 3785

Re: controlling CPU address bus with on-cart chips

Hmm, right. Why I posted this I don't know, now I remember seeing the outputs toping at about 4V even with no load whatsoever, that wouldn't happen with depletion-mode transistors.
by Jarhmander
Thu Dec 08, 2016 8:28 pm
Forum: General Stuff
Topic: controlling CPU address bus with on-cart chips
Replies: 19
Views: 3785

Re: controlling CPU address bus with on-cart chips

Well, they're overriding the data bus, not the address bus, and they have an explanation (the electronics experts will tell you whether it's a bogus one) for why they think this is safe to do: Even though it seems pretty evil to overdrive the 6507's bus, the designers knew it was fairly safe becaus...
by Jarhmander
Thu Dec 08, 2016 7:39 pm
Forum: SNESdev
Topic: Interest in "modern" SNES Development Hardware?
Replies: 153
Views: 29758

Re: Interest in "modern" SNES Development Hardware?

Pokun wrote:
tepples wrote:
Pokun wrote: I'd just send it to a friend with a Macintosh.
What's a "friend", and how does one find one?
You make them (I think).
Last time I checked, make friend failed on my machine, complaining that there's no rule to make target friend. Where do I find a working Makefile for this?
by Jarhmander
Wed Nov 30, 2016 7:15 am
Forum: NESemdev
Topic: Cycle-accurate Nintendo NES emulator in ~1000
Replies: 8
Views: 3594

Re: Cycle-accurate Nintendo NES emulator in ~1000

On an unrelated note, the code uses "and" instead of "&&", and that's actually a part of C/C++, first time I ever saw it! With #defines you can do pretty much anything this style. I do not know whether that's what he did or not, though. You didn't understand. The keywords and , or and not ( and a b...
by Jarhmander
Tue Nov 15, 2016 6:50 am
Forum: General Stuff
Topic: NSF files used to compromise Ubuntu desktop
Replies: 8
Views: 4183

Re: NSF files used to compromise Ubuntu desktop

I find rather funny that in the closing notes, he mentions that the critical reason this exploit is possible is because of a "scripting" language, embedded in the player. It doesn't say, however, that what makes the exploit possible in the first place is the sloppy coding, allowing an out of buffer ...
by Jarhmander
Sat Nov 12, 2016 6:48 am
Forum: NESdev
Topic: NES Gamepads: Polled or Interrupt?
Replies: 14
Views: 4107

Re: NES Gamepads: Polled or Interrupt?

Because copy-pasting the first sentence from the second most recent post but replacing words with past tense is advanced spamming? I was being pedantic and referred to the thread that does the controller read synchronized with the APU to avoid having the read being corrupted by the DMC. Nothing lik...
by Jarhmander
Fri Nov 11, 2016 6:52 pm
Forum: NESdev
Topic: Making a NES game in C++
Replies: 99
Views: 15003

Re: Making a NES game in C++

Yeah I haven't used near and far since learning C++ on my 286 in the early 90s. I don't think I'd want to reuse the keyword to mean something different like that, but it would be nice if there was some sort of type modifier keyword that could be used to stripe a structure for arrays. Yeah I do not ...
by Jarhmander
Fri Nov 11, 2016 5:54 pm
Forum: NESdev
Topic: NES Gamepads: Polled or Interrupt?
Replies: 14
Views: 4107

Re: NES Gamepads: Polled or Interrupt?

Am I the sophisticated spambot? My post disappeared!
by Jarhmander
Thu Nov 10, 2016 6:11 am
Forum: NESdev
Topic: Making a NES game in C++
Replies: 99
Views: 15003

Re: Making a NES game in C++

Thanks for the answers regarding so-called "unity builds". After a quick read on the net it seems it can speed-up build by some large factor, but I noticed too that those blogs praising those "unity builds" are quite old, over 5 years. In 2008, there weren't quad-core (or more cores) available in PC...
by Jarhmander
Wed Nov 09, 2016 9:47 pm
Forum: NESdev
Topic: Making a NES game in C++
Replies: 99
Views: 15003

Re: Making a NES game in C++

There is alot of action in this (interesting!) thread to keep up, so even though it happened in the morning it's already two pages ago. Hell, how you guys find the time to repeatedly write lengthy, time-consuming posts? Anyway, this grabbed my attention: Whole program A.K.A. link time optimization w...