wolfsond@cse.fau.edu ((sub human)) writes: >In article <> madigan@bldrdoc.gov (Bruce Madigan 303-497-5065) writes: >>I own an Apple ][ and would like to run the emulator but am unable to >>dump the ROMS. Would someone please send them to me? > >It is not legal to distribute Apple ROMS. You have two choices (both require SOME transfer capability, such as a modem on each end, or a serial link): (a) "BSAVE ROMS, A$D000, L$3000", and then transfer that in binary mode, or (b) I've forgotten most of my Applesoft(R) BASIC, but here goes nothing... 0 REM ROM-TO-ASCII PROGRAM 10 D$ = CHR$(4); 20 PRINT D$;"OPEN ROMFILE" 30 PRINT D$;"WRITE ROMFILE" 100 REM START OF LOOP PART 110 FOR I = 53248 TO 65535 STEP 16: REM WE WANT D000-FFFF, RIGHT? 120 FOR J = 0 TO 15 130 X = PEEK(I+J) 140 LOW = X / 16 150 HIGH = X - (LOW * 16): REM NO MOD IN APPLESOFT, AS I RECALL 160 IF HIGH<10 THEN PRINT HIGH; : GOTO 170 165 PRINT CHR$(HIGH+55); 170 IF LOW<10 THEN PRINT LOW;" "; : GOTO 180 175 PRINT CHR$(LOW+55);" "; : REM OKAY, SO THERE ARE FASTER WAYS... 180 NEXT J 190 PRINT 200 NEXT I 210 PRINT D$;"CLOSE ROMFILE" 220 END So it's slow. Big deal. You only have to do it once. Now, transfer the text file to your IBM-clone in text mode, and then run something like... /* ASCII-to-binary */ #include #define BUFSIZE 1024 main(int argc, char *argv[]) { unsigned short i = 0; unsigned char a[BUFSIZE]; FILE *ifp, *ofp; if (argc != 3) { fprintf(stderr, "Usage: %s inputfile outputfile\n", argv[0]) exit(1); } if (!strcmp(argv[1], argv[2])) { fprintf(stderr, "input and output filenames must be different.\n"); exit(1); } if ((ifp = fopen(argv[1], "r")) == NULL) { perror(argv[1]); exit(2); } if ((ofp = fopen(argv[2], "wb")) == NULL) { perror(argv[2]); fclose(ifp); exit(3); } while (fscanf(ifp, "%x", &a[i++])) if (i >= BUFSIZE) { fwrite(a, i, 1, ofp); /* bombs if sizeof(unsigned char) != 1 */ i = 0; } if (i < BUFSIZE) fwrite(a, i, 1, ofp); fclose(ofp); fclose(ifp); } -- Donald Tsang "Ho! Haha! Guard! Turn! Parry! Dodge! tsang@june.cs.washington.edu Spin! Ha! Thrust!" ..!uw-beaver!june!tsang -- Robin Hood Daffy wolfsond@cse.fau.edu ((sub human)) writes: >In article madigan@bldrdoc.gov (Bruce Madigan 303-497-5065) writes: >>I own an Apple ][ and would like to run the emulator but am unable to >>dump the ROMS. Would someone please send them to me? >It is not legal to distribute Apple ROMS. There is a way you can hook >a serial cable from your Apple (Super Serial Port) to your PC and go into >monitor (on the apple) and dump the ROM. There are a few programs out >there that show you how to do this, and have a little C program on the PC >side that will translate the ASCII text into binary. God knows how much revenue it would cost apple if everyone gave five friends copies of the Apple ]['s super duper proprietary whizzbang state-of-the-art ROMS. But you can make yourself a more or less legal copy if you happen to have a ][ lying around. Here's what I have on an ancient notepad (I don't have an apple so I have no way of knowing whether its the right chicken scratch). BSAVE APPLE.ROM, A$D000, L$3000 BSAVE FLOPPY.ROM, A$C600, L256 BSAVE SERIAL.ROM, A$C200, L256 And strip off the first four bytes and trailing junk. On second thought, maybe I should have posted this anonymously. -- nyet@cco.caltech.edu