home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / darwin / darwinx86.iso / usr / share / nvram / Alchemy < prev    next >
Encoding:
Text File  |  2000-12-14  |  2.1 KB  |  65 lines

  1. ##
  2. # Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
  3. #
  4. # @APPLE_LICENSE_HEADER_START@
  5. # "Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
  6. # Reserved.  This file contains Original Code and/or Modifications of
  7. # Original Code as defined in and that are subject to the Apple Public
  8. # Source License Version 1.0 (the 'License').  You may not use this file
  9. # except in compliance with the License.  Please obtain a copy of the
  10. # License at http://www.apple.com/publicsource and read it before using
  11. # this file.
  12. # The Original Code and all software distributed under the License are
  13. # distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  14. # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  15. # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  16. # FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
  17. # License for the specific language governing rights and limitations
  18. # under the License."
  19. # @APPLE_LICENSE_HEADER_END@
  20. ##
  21. # Version: 1.2.0  Date: 8-17-2000
  22. use-nvramrc? true
  23. load-base 600000
  24. diag-device 
  25. nvramrc hex\
  26. : $D find-device ;\
  27. : $E device-end ;\
  28. : $L BLpatch ; : $R BRpatch ;\
  29. : $X execute ;\
  30. : $p 0 to my-self property ;\
  31. : $a " /chosen" $D $p $E ;\
  32. 10 buffer: km\
  33. dev kbd\
  34. get-key-map km swap move\
  35. $E\
  36. : ck 0 do swap dup 3 >> km + c@ 1 rot 7 and << and or loop ;\
  37. : bootr 0d word count encode-string " machargs" $a\
  38. 0 0 1 ck if 0 and else dup 1 = if 3d 0 1 else f 3d 0 2 then ck if 40 or then then\
  39. 40 and if bye else 1e 0 do ['] boot catch drop 1f4 ms loop then bye ;\
  40. : myboot boot-command eval ;\
  41. dev /packages/mac-parts\
  42. : $M -7E9408 $X 8000 alloc-mem 7F00 + 4 -7E9408 $X ;\
  43. ' load 268 - ' $M $L\
  44. ' load 168 + ' 0 $L\
  45. $E\
  46. dev ata\
  47. d encode-int 2 encode-int encode+ " AAPL,interrupts" $p\
  48. $E\
  49. dev scsi\
  50. : $M ['] open 888 - + ;\
  51. : $M1 -E48 $M $X ;\
  52. : $M2 begin 1 ms $M1 1 and -1068 $M $X or until $M1 case 0 of -1 endof 1 of 1 -E08 $M $X false endof dup endcase ;\
  53. : $M3 -F68 $M f over $X $X ;\
  54. : $M4 1 ms ;\
  55. 2C $M ' 2 $L\
  56. -A18 $M ' $M2 $R\
  57. -788 $M ' $M3 $L\
  58. -768 $M ' $M4 $L\
  59. -764 $M ' 1 $L\
  60. $E\
  61. unselect-dev
  62.