Re: lisa emulator how to get bootrom ans os on osx?

From: Ray Arachelian <ray_at_email.domain.hidden>
Date: Wed, 24 Jan 2007 16:48:01 -0500

Jerome Vernet (Orange) wrote:
> I will try to write a little prog that will merge these two files.
>
This is what the emulator does, except it doesn't save the file back to the disk: Unfortunately I think that I set the ROM text field to read only so you can't just edit it as I mentioned earlier. mea culpa. If you find the location where it saves the lisaem.conf file (likely just your home directory, or user profile, or maybe under preferences) you can edit it with a text editor to remove the ".lo" or ".hi" from the path.

There's a bigger bug with profile drives where LOS can't properly write to the disks. This is a new thing. I'm able to run with existing profile images, but of course I can't distribute those, so the next release should hopefully fix these and other bugs.

out=fopen("booth.bin","wb");

main(int argc, char *argv[])
{
FILE *out;

    int i,j;
    char myfilename[1024];
    uint8 *ROMLO, *ROMHI;
    uint8 ROMMX[16384];

    FILE *low, *high;
    char *filename=argv[1];

    if (!filename || !ROMMX) return -3;

    ROMLO=(uint8 *) malloc(8194); if (!ROMLO) {return -2;}     ROMHI=(uint8 *) malloc(8194); if (!ROMHI) {free(ROMLO); return -2;}

    snprintf(myfilename,1024,"%s.lo",filename);     low=fopen(myfilename,"rb"); if (!low) {free(ROMHI); free(ROMLO); return -1;}

    snprintf(myfilename,1024,"%s.hi",filename);     high=fopen(myfilename,"rb");if (!high) {fclose(low); free(ROMHI); free(ROMLO); free(myfilename); return -1;}

    fread(ROMLO,8192,1,low); fread(ROMHI,8192,1,high); fclose(low); fclose(high);

    for (i=0,j=0; i<16384; i+=2, j++)
    { ROMMX[i+1]=ROMLO[j]; ROMMX[i]=ROMHI[j]; }

    free(ROMHI); free(ROMLO);
fwrite(ROMMX,16384,1,out);
fclose(out);

    return 0;
} Received on 2007-01-24 16:48:02

This archive was generated by hypermail 2.4.0 : 2020-01-13 12:15:14 EST