Search found 311 matches

by Petruza
Wed Feb 04, 2009 8:34 pm
Forum: NESdev
Topic: rNES - a NES library for cc65 - version 0.1 released
Replies: 67
Views: 47593

EDIT2 -- Here's where I read that about interrupts... in the FAQ of all places. http://www.cc65.org/faq.php#IntHandlers Well, there. In other words, Interrupt handling in C is a pain in the ass. I don't even know if all that values stacking and all won't render the interrupt handling unusable. As f...
by Petruza
Wed Feb 04, 2009 8:19 pm
Forum: NESdev
Topic: rNES - a NES library for cc65 - version 0.1 released
Replies: 67
Views: 47593

However I think with a lib, it could be done in C if you can provide a callback (in the form of a function pointer) which the library could call from its NMI handler. The library itself might have to have a touch of 6502 to make it work, but the end user won't need to. Thanks, I'll note this down a...
by Petruza
Wed Feb 04, 2009 7:30 pm
Forum: NESdev
Topic: Pong (it scores now so I can show it off)
Replies: 6
Views: 4494

kyuusaku wrote:So you get points for missing?
Oh you're mean! :evil:
The numbers are obviously misses, not points.
by Petruza
Wed Feb 04, 2009 7:19 pm
Forum: NESdev
Topic: rNES - a NES library for cc65 - version 0.1 released
Replies: 67
Views: 47593

Well they're not functions, they're macro functions, so there's no actual function call if that's what you mean. In fact, rNES_sprite0hit() is exactly what you proposed: #define rNES_sprite0hit( PPU_status ) ( PPU_status & bin(0,1,0,0,0,0,0,0) ) I read the PPU status once and then check it twice...
by Petruza
Wed Feb 04, 2009 7:08 pm
Forum: General Stuff
Topic: Spanish speakers / Hispanoparlantes
Replies: 25
Views: 8328

Well I don't know exactly if England was considered part of the empire, or just was under its influence, but for example, London was founded as "Londinium" by the Romans.
http://en.wikipedia.org/wiki/Roman_London

It's amazing how much history you learn reading Asterix. :D
by Petruza
Wed Feb 04, 2009 7:03 pm
Forum: NESdev
Topic: rNES - a NES library for cc65 - version 0.1 released
Replies: 67
Views: 47593

Well, this is a library, so the programmer could choose to use its functions or code their own. For some reason, the NES, appart from firing the NMI each vblank, sets $2002.7, it's there for you to read it, if you want, so my library makes it available with a macro. I might as well remove rNES_waitv...
by Petruza
Wed Feb 04, 2009 3:59 pm
Forum: NESdev
Topic: rNES - a NES library for cc65 - version 0.1 released
Replies: 67
Views: 47593

I agree with Blargg. waitvblank() should wait for the start of vblank[...] So what happens if animate_and_draw_sprite() and update_joy() are shorter than the VBlank period? This would result in rNES_waitvblank returning immediately rather than waiting for the next frame, which would disrupt the 60 ...
by Petruza
Wed Feb 04, 2009 3:18 pm
Forum: General Stuff
Topic: Spanish speakers / Hispanoparlantes
Replies: 25
Views: 8328

Of course, all words from english that come from French, come from Latin as well.
But I think there are also words in English that come directly from Latin. Don't forget England was part of the Roman empire at some point.
by Petruza
Wed Feb 04, 2009 6:12 am
Forum: NESdev
Topic: rNES - a NES library for cc65 - version 0.1 released
Replies: 67
Views: 47593

Blargg, about your suggestion for rNES_waitvblank(), this function does what its name says, if you are actually at vblank, and you want to "wait for vblank", well, the result is you wait nothing. Anyway, I think the programmer won't be just waiting for vblank, usually what he'll do is a lo...
by Petruza
Tue Feb 03, 2009 7:41 pm
Forum: NESdev
Topic: rNES - a NES library for cc65 - version 0.1 released
Replies: 67
Views: 47593

Fx3 wrote:It works on both emus. The Earth uses attribute color value 0, but it isn't occuring here. Looks like an obscure thing... :(
I tried it in RockNES X 2.0 and colors show ok. Although it's a mod of your emu, I think emulation shouldn't be different to the DOS version, right?

Strange...
by Petruza
Tue Feb 03, 2009 7:35 pm
Forum: General Stuff
Topic: Spanish speakers / Hispanoparlantes
Replies: 25
Views: 8328

high school (escuela alta or something?). Depends on the country, here in Argentina is "secundaria" (secondary), in Mexico they call it "Preparatoria" I kind of forgot how to put tener in past tense. Had = "tuve", but you don't use "tener" exactly as in engli...
by Petruza
Tue Feb 03, 2009 7:12 pm
Forum: NESdev
Topic: rNES - a NES library for cc65 - version 0.1 released
Replies: 67
Views: 47593

Fx3 wrote:Any idea what's causing the Earth colors glitch? :(
Nope. Works fine in FCEXUD, Jnes and a portable media player.
by Petruza
Tue Feb 03, 2009 11:42 am
Forum: NESdev
Topic: rNES - a NES library for cc65 - version 0.1 released
Replies: 67
Views: 47593

Disch wrote:I always thought empty parenthesis meant no aruments, and an elipsis was any number of arguments.
Me too.
by Petruza
Tue Feb 03, 2009 11:41 am
Forum: General Stuff
Topic: Is there an emulator of a non-existent system?
Replies: 21
Views: 8471

Ok and Arnold Schwartzenegger emulates Terminator, which doesn't exist also... :roll:
by Petruza
Tue Feb 03, 2009 8:18 am
Forum: NESdev
Topic: rNES - a NES library for cc65 - version 0.1 released
Replies: 67
Views: 47593

Some things that I noticed: - rNES_get_joy: both controllers are strobed by $4016; $4017 controls the APU. Also, you could accept the joypad selector as an enumeration, for better type-safety. But it makes more sense to me to select it as an index, 0 or 1. ooops, never actually tested 2nd controlle...