Tom's Hardware > Forum > Games General > Games General Discussions > Inverted color prom image for Donkey Kong

Inverted color prom image for Donkey Kong

Forum Games General : Games General Discussions - Inverted color prom image for Donkey Kong

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: rec.games.video.arcade.collecting (More info?)

 

Googled it, can't find one. My PROM software doesn't have a 2's compliment
function. Someone's gotta have this...

-Robert


--
"Quality is the enemy of production."
Homepage - http://members.cox.net/rcbullock/ 'It's lamer than Spaeth's!'
** Replies to rcbullock '"AT"" cox.net ** Sorry, I detest spam.

Sponsored Links
Register or log in to remove.

Archived from groups: rec.games.video.arcade.collecting (More info?)

 

rcbullock@no_spam.cox.net <rcbullock@no-spam.cox.net> wrote:
: Googled it, can't find one. My PROM software doesn't have a 2's compliment
: function. Someone's gotta have this...
:
: -Robert
:
:

#include <stdio.h>

int main(void) {
int c;

while((c=fgetc(stdin))!=EOF) fputc(c^0xff,stdout);
return 0;
}


--
Mark Spaeth mspaeth@mtl.mit.edu
50 Vassar St., #38.265 mspaeth@mit.edu
Cambridge, MA 02139
(617) 452-2354 http://rgvac.978.org/~mspaeth

Reply to Anonymous

Archived from groups: rec.games.video.arcade.collecting (More info?)

 

Mark,

here's one for you, combine the 2 nibbles from the atari video pinball roms
into a byte form :)


"Mark C. Spaeth" <mspaeth@plancherel.mit.edu> wrote in message
news:42f3f345$0$557$b45e6eb0@senator-bedfellow.mit.edu...
> rcbullock@no_spam.cox.net <rcbullock@no-spam.cox.net> wrote:
> : Googled it, can't find one. My PROM software doesn't have a 2's
compliment
> : function. Someone's gotta have this...
> :
> : -Robert
> :
> :
>
> #include <stdio.h>
>
> int main(void) {
> int c;
>
> while((c=fgetc(stdin))!=EOF) fputc(c^0xff,stdout);
> return 0;
> }
>
>
> --
> Mark Spaeth mspaeth@mtl.mit.edu
> 50 Vassar St., #38.265 mspaeth@mit.edu
> Cambridge, MA 02139
> (617) 452-2354 http://rgvac.978.org/~mspaeth
>

Reply to Vaxx

Archived from groups: rec.games.video.arcade.collecting (More info?)

 

VaxX <geoff_gunn@hotmail.com> wrote:
: Mark,
:
: here's one for you, combine the 2 nibbles from the atari video pinball roms
: into a byte form :)

Can't do that with a pipe ;)


: "Mark C. Spaeth" <mspaeth@plancherel.mit.edu> wrote in message
: news:42f3f345$0$557$b45e6eb0@senator-bedfellow.mit.edu...
:> rcbullock@no_spam.cox.net <rcbullock@no-spam.cox.net> wrote:
:> : Googled it, can't find one. My PROM software doesn't have a 2's
: compliment
:> : function. Someone's gotta have this...
:> :
:> : -Robert
:> :
:> :
:>
:> #include <stdio.h>
:>
:> int main(void) {
:> int c;
:>
:> while((c=fgetc(stdin))!=EOF) fputc(c^0xff,stdout);
:> return 0;
:> }
:>
:>
:> --
:> Mark Spaeth mspaeth@mtl.mit.edu
:> 50 Vassar St., #38.265 mspaeth@mit.edu
:> Cambridge, MA 02139
:> (617) 452-2354 http://rgvac.978.org/~mspaeth
:>
:
:

--
Mark Spaeth mspaeth@mtl.mit.edu
50 Vassar St., #38.265 mspaeth@mit.edu
Cambridge, MA 02139
(617) 452-2354 http://rgvac.978.org/~mspaeth

Reply to Anonymous

Archived from groups: rec.games.video.arcade.collecting (More info?)

 

humm... can you bit shift in sed (it's been a long time since I unixed)...

"Mark C. Spaeth" <mspaeth@plancherel.mit.edu> wrote in message
news:42f4d9af$0$568$b45e6eb0@senator-bedfellow.mit.edu...
> VaxX <geoff_gunn@hotmail.com> wrote:
> : Mark,
> :
> : here's one for you, combine the 2 nibbles from the atari video pinball
> roms
> : into a byte form :)
>
> Can't do that with a pipe ;)
>
>
> : "Mark C. Spaeth" <mspaeth@plancherel.mit.edu> wrote in message
> : news:42f3f345$0$557$b45e6eb0@senator-bedfellow.mit.edu...
> :> rcbullock@no_spam.cox.net <rcbullock@no-spam.cox.net> wrote:
> :> : Googled it, can't find one. My PROM software doesn't have a 2's
> : compliment
> :> : function. Someone's gotta have this...
> :> :
> :> : -Robert
> :> :
> :> :
> :>
> :> #include <stdio.h>
> :>
> :> int main(void) {
> :> int c;
> :>
> :> while((c=fgetc(stdin))!=EOF) fputc(c^0xff,stdout);
> :> return 0;
> :> }
> :>
> :>
> :> --
> :> Mark Spaeth mspaeth@mtl.mit.edu
> :> 50 Vassar St., #38.265 mspaeth@mit.edu
> :> Cambridge, MA 02139
> :> (617) 452-2354 http://rgvac.978.org/~mspaeth
> :>
> :
> :
>
> --
> Mark Spaeth mspaeth@mtl.mit.edu
> 50 Vassar St., #38.265 mspaeth@mit.edu
> Cambridge, MA 02139
> (617) 452-2354 http://rgvac.978.org/~mspaeth
>

Reply to Anonymous

Archived from groups: rec.games.video.arcade.collecting (More info?)

 

Will that suffice to invert the colours correctly?

Aren't the colours taken on a 3 / 3 / 2 bit pattern? And therefore
wouldn't you need to invert in 3/3/2 bit chunks rather than bytes?

All general questions as much as specifics for any particular game
since i haven't looked at the code for the game in question!

Martin.

Reply to Anonymous

Archived from groups: rec.games.video.arcade.collecting (More info?)

 

Martin White <guddler@gmail.com> wrote:
: Will that suffice to invert the colours correctly?
:
: Aren't the colours taken on a 3 / 3 / 2 bit pattern? And therefore
: wouldn't you need to invert in 3/3/2 bit chunks rather than bytes?
:
: All general questions as much as specifics for any particular game
: since i haven't looked at the code for the game in question!

IF you're doing a 1's complement, it's the same difference :)

--
Mark Spaeth mspaeth@mtl.mit.edu
50 Vassar St., #38.265 mspaeth@mit.edu
Cambridge, MA 02139
(617) 452-2354 http://rgvac.978.org/~mspaeth

Reply to Anonymous

Archived from groups: rec.games.video.arcade.collecting (More info?)

 

Oh, okay! Maths has always been far from my strong point, even though
I'm a programmer of 15 years or more :o)

Bitwise logic/operations bake my head!

Reply to Anonymous

Archived from groups: rec.games.video.arcade.collecting (More info?)

 

> here's one for you, combine the 2 nibbles from the atari video pinball roms
> into a byte form :)

I threw something together in qbasic several years ago to do essentially that, but
I've probably lost it by now. You could do the same if you aren't in a Unix or
Linux environment (like Mark assumes we all are :-)

Alex
----
ayeckley@elektronforge.com
www.elektronforge.com

Reply to Anonymous

Archived from groups: rec.games.video.arcade.collecting (More info?)

 

> IF you're doing a 1's complement, it's the same difference :)

XOR

Alex
----
ayeckley@elektronforge.com
www.elektronforge.com

Reply to Anonymous

Archived from groups: rec.games.video.arcade.collecting (More info?)

 

Alex Yeckley <ayeckley@elektronforge.com> wrote:
:> here's one for you, combine the 2 nibbles from the atari video pinball roms
:> into a byte form :)
:
: I threw something together in qbasic several years ago to do essentially that, but
: I've probably lost it by now. You could do the same if you aren't in a Unix or
: Linux environment (like Mark assumes we all are :-)

There's GCC for dos/windows console :)

--
Mark Spaeth mspaeth@mtl.mit.edu
50 Vassar St., #38.265 mspaeth@mit.edu
Cambridge, MA 02139
(617) 452-2354 http://rgvac.978.org/~mspaeth

Reply to Anonymous
Tom's Hardware > Forum > Games General > Games General Discussions > Inverted color prom image for Donkey Kong
Go to:

There are 1101 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them