home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 10: Diskmags / nf_archive_10.iso / MAGS / ST_USER / 1990 / USERJL90.MSA / LISTINGS.ARC / SIMM.S < prev    next >
Text File  |  1990-05-16  |  1KB  |  40 lines

  1. * STE SIMM mixer by David Hoggan
  2. * Lets STE configure 2.5 Megs properly
  3. * MUST BE FIRST IN AUTO FOLDER!
  4.  
  5. * This program asssumes 2Mb in bank 0 and 0.5Mb in bank 1.
  6. * It has been found that the other way around doesn't work
  7. * - the MMU configures to a 1Mb machine.
  8.  
  9. * Install your SIMMs as follows:
  10. *
  11. * (back of STE)
  12. *
  13. * |--  1meg SIMM  --|
  14. * |-- .5meg SIMM  --|
  15. * |--  1meg SIMM  --|
  16. * |-- .5meg SIMM  --|
  17. *
  18. * (front of STE)
  19.  
  20.     clr.l   -(sp)
  21.     move.w  #32,-(sp)       Switch to super mode
  22.     trap    #1
  23.     addq.l  #6,sp
  24.  
  25.     cmp.l   #$280000,$42E   RAM <= 2.5 megs?
  26.     ble     already         If so, nothing to do
  27.     cmp.b   #9,$424         Is it installed properly?
  28.     bne     already         If so, nothing to do
  29.  
  30.     move.l  #$280000,$42E   Set phystop
  31.     move.l  $4F2,a0         Find reset address
  32.     jmp     (a0)            Reset system
  33.  
  34. already: move.l d0,-(sp)        Returned stack
  35.     move.w  #32,-(sp)       Switch back to user mode
  36.     trap    #1
  37.     addq.l  #6,sp
  38.     clr.w   -(sp)           Back to TOS
  39.     trap    #1
  40.