home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12689 < prev    next >
Encoding:
Text File  |  1992-08-25  |  1.4 KB  |  55 lines

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!TEETOT.ACUSD.EDU!gs
  2. From: gs@TEETOT.ACUSD.EDU (Greg Simon)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Help with KS rom images...
  5. Message-ID: <9208260327.AA05572@teetot.acusd.edu>
  6. Date: 26 Aug 92 03:27:29 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Lines: 45
  9.  
  10.  
  11. Hi all--
  12.  
  13.    I found this short C program on a local BBS.  It simply copies a ROM
  14. image to file ( specifically Kickstart 2.04 ).  Then with SetCPU, one
  15. can load it into the MMU or whatever...
  16.  
  17. ***************************************************
  18.  
  19. #include <stdio.h>
  20.  
  21. void main(int argc, char *argv) {
  22.    FILE *f = fopen("df0:kickstart2.04","w");
  23.    char *r = (char *)0x00f80000L;
  24.  
  25.    if (!f) {
  26.       printf("Can't get file or RAM\n");
  27.       exit(10);
  28.    }
  29.  
  30.    fwrite(r, 0x80000L, 1L, f);
  31.    fclose(f);
  32. }
  33.  
  34. ***************************************************
  35.  
  36.   What I want to do, is run it (or a modified version of it) on a 1.3
  37. machine, copy the KS 1.3 image to a file (approx 256K, I think), and
  38. then emulate 1.3 under 2.04 in order to use those programs which don't
  39. work properly under 2.04.
  40.    Now, I realize that there may be some legal problem with this; but I
  41. own both the ROMS 1.3 & 2.04.
  42.  
  43. Can anybody suggest modifications to this short program that will copy a
  44. 1.3 ROM image to a file?
  45.  
  46. Please send me e-mail -- Thanks a lot!!!
  47.  
  48. -- Greg Simon
  49.  
  50.    <gs@teetot.acusd.edu>
  51.  
  52.    University of San Diego
  53.    Electrical Engineering
  54.  
  55.