Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Looking for Warpspeed source code
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
iAN CooG  
View profile  
 More options Dec 17 2003, 6:46 pm
Newsgroups: comp.sys.cbm, alt.c64
From: "iAN CooG" <ianc...@despammed.com>
Date: Wed, 17 Dec 2003 23:46:11 GMT
Local: Wed, Dec 17 2003 6:46 pm
Subject: Re: Looking for Warpspeed source code

RajW <r...@intelc64.net> wrote:
> I LOVE the people in this newsgroup! :)

Me too ^_^

>> static unsigned char image[1 << 19];

> Should change this ^^^ to 15 since I only have 16 bits?

14, 16Kb are the right size of both versions.
I made this modified version from Marko source, and it works fine!
You have to specify input and output names as parameters (no redirection
because in dos/windows redirected files are treated as text and not
binary, without setting stdin/stdout to O_BINARY)

/*--------------------*/
#include <stdio.h>

static unsigned char databus[256];
static unsigned char image[1 << 14];

#define MVBIT(i,from,to) (((i) & 1 << (from)) ? 1 << (to) : 0)

int main (int argc, char** argv)
{
  unsigned i;
  FILE *hin,*hout;
  if(argc<3)
    return 1;
  hin =fopen(argv[1],"rb");
  if(!hin)
    return 2;
  hout=fopen(argv[2],"wb");
  if(!hout)
    return 3;

  for (i = 255; i; i--)
    databus[i] =
      MVBIT (i, 0, 4) |
      MVBIT (i, 1, 3) |
      MVBIT (i, 2, 1) |
      MVBIT (i, 3, 0) |
      MVBIT (i, 4, 2) |
      MVBIT (i, 5, 5) |
      MVBIT (i, 6, 6) |
      MVBIT (i, 7, 7);

  for (i = 0; i < sizeof image; i++) {
    int c = getc(hin);
    if (c == EOF)
      break;
    else
      image[MVBIT (i,  0, 0 ) |
            MVBIT (i,  1, 1 ) |
            MVBIT (i,  2, 3 ) |
            MVBIT (i,  3, 4 ) |
            MVBIT (i,  4, 6 ) |
            MVBIT (i,  5, 8 ) |
            MVBIT (i,  6, 10) |
            MVBIT (i,  7, 11) |
            MVBIT (i,  8, 9 ) |
            MVBIT (i,  9, 7 ) |
            MVBIT (i, 10, 2 ) |
            MVBIT (i, 11, 5 ) |
            MVBIT (i, 12, 13) |
            MVBIT (i, 13, 12) ] = databus[(unsigned char) c];
  }

  return fwrite (image, 1, sizeof image, hout);

}

/*--------------------*/

Now these bytes sequences look familiar :)
I've converted both v1 and v2 decrypted bins to CRT with mcart 0.62,
they're working. Team work is good :)

--
-=[]=---iAN CooG/HokutoForce+TWT---=[]=-
Is that an XT? Oh, you're running WindowsXP.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.