home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| POSIX tar archive (GNU)
| default
| |
99%
| file
| POSIX tar archive (GNU), directory linux/, mode 40755 , uid 0 , gid 0 , size 0 , seconds 5550470155, user root, group root
| default
| |
98%
| file
| data
| default
| |
41%
| TrID
| Sybase iAnywhere database files
| default (weak)
| |
36%
| TrID
| TAR - Tape ARchive (GNU)
| default
| |
21%
| TrID
| TAR - Tape ARchive (directory)
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| GNU tar archive
| default
| |
100%
| detectItEasy
| Archive: tar
| default
| |
100%
| binwalkID
| POSIX tar archive (GNU)
| default
| |
100%
| xdgMime
| application/x-tar
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6c 69 6e 75 78 2f 00 00 | 00 00 00 00 00 00 00 00 |linux/..|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 20 20 20 |.... 407|55 . |
|00000070| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 35 35 30 34 37 30 | 0 | 5550470|
|00000090| 31 35 35 20 20 31 30 32 | 30 35 00 20 35 00 00 00 |155 102|05. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 6c 69 6e 75 78 2f 4d 61 | 6b 65 66 69 6c 65 00 00 |linux/Ma|kefile..|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 20 |....1006|44 . |
|00000270| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00000280| 20 20 31 35 35 33 35 20 | 20 35 35 35 30 31 36 36 | 15535 | 5550166|
|00000290| 30 31 36 20 20 31 31 37 | 37 31 00 20 30 00 00 00 |016 117|71. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 56 45 52 53 49 4f 4e 20 | 3d 20 31 0a 50 41 54 43 |VERSION |= 1.PATC|
|00000410| 48 4c 45 56 45 4c 20 3d | 20 31 0a 53 55 42 4c 45 |HLEVEL =| 1.SUBLE|
|00000420| 56 45 4c 20 3d 20 30 0a | 0a 61 6c 6c 3a 09 56 65 |VEL = 0.|.all:.Ve|
|00000430| 72 73 69 6f 6e 20 7a 49 | 6d 61 67 65 0a 0a 2e 45 |rsion zI|mage...E|
|00000440| 58 50 4f 52 54 5f 41 4c | 4c 5f 56 41 52 49 41 42 |XPORT_AL|L_VARIAB|
|00000450| 4c 45 53 3a 0a 0a 43 4f | 4e 46 49 47 5f 53 48 45 |LES:..CO|NFIG_SHE|
|00000460| 4c 4c 20 3a 3d 20 24 28 | 73 68 65 6c 6c 20 69 66 |LL := $(|shell if|
|00000470| 20 5b 20 2d 78 20 22 24 | 24 42 41 53 48 22 20 5d | [ -x "$|$BASH" ]|
|00000480| 3b 20 74 68 65 6e 20 65 | 63 68 6f 20 24 24 42 41 |; then e|cho $$BA|
|00000490| 53 48 3b 20 5c 0a 09 20 | 20 65 6c 73 65 20 69 66 |SH; \.. | else if|
|000004a0| 20 5b 20 2d 78 20 2f 62 | 69 6e 2f 62 61 73 68 20 | [ -x /b|in/bash |
|000004b0| 5d 3b 20 74 68 65 6e 20 | 65 63 68 6f 20 2f 62 69 |]; then |echo /bi|
|000004c0| 6e 2f 62 61 73 68 3b 20 | 5c 0a 09 20 20 65 6c 73 |n/bash; |\.. els|
|000004d0| 65 20 65 63 68 6f 20 73 | 68 3b 20 66 69 20 3b 20 |e echo s|h; fi ; |
|000004e0| 66 69 29 0a 52 4f 4f 54 | 09 3a 3d 20 24 28 73 68 |fi).ROOT|.:= $(sh|
|000004f0| 65 6c 6c 20 69 66 20 5b | 20 22 24 24 50 57 44 22 |ell if [| "$$PWD"|
|00000500| 20 21 3d 20 22 22 20 5d | 3b 20 74 68 65 6e 20 65 | != "" ]|; then e|
|00000510| 63 68 6f 20 24 24 50 57 | 44 3b 20 65 6c 73 65 20 |cho $$PW|D; else |
|00000520| 70 77 64 3b 20 66 69 29 | 0a 0a 23 0a 23 20 4d 61 |pwd; fi)|..#.# Ma|
|00000530| 6b 65 20 22 63 6f 6e 66 | 69 67 22 20 74 68 65 20 |ke "conf|ig" the |
|00000540| 64 65 66 61 75 6c 74 20 | 74 61 72 67 65 74 20 69 |default |target i|
|00000550| 66 20 74 68 65 72 65 20 | 69 73 20 6e 6f 20 63 6f |f there |is no co|
|00000560| 6e 66 69 67 75 72 61 74 | 69 6f 6e 20 66 69 6c 65 |nfigurat|ion file|
|00000570| 20 6f 72 0a 23 20 22 64 | 65 70 65 6e 64 22 20 74 | or.# "d|epend" t|
|00000580| 68 65 20 74 61 72 67 65 | 74 20 69 66 20 74 68 65 |he targe|t if the|
|00000590| 72 65 20 69 73 20 6e 6f | 20 74 6f 70 2d 6c 65 76 |re is no| top-lev|
|000005a0| 65 6c 20 64 65 70 65 6e | 64 65 6e 63 79 20 69 6e |el depen|dency in|
|000005b0| 66 6f 72 6d 61 74 69 6f | 6e 2e 0a 23 0a 69 66 65 |formatio|n..#.ife|
|000005c0| 71 20 28 2e 63 6f 6e 66 | 69 67 2c 24 28 77 69 6c |q (.conf|ig,$(wil|
|000005d0| 64 63 61 72 64 20 2e 63 | 6f 6e 66 69 67 29 29 0a |dcard .c|onfig)).|
|000005e0| 69 6e 63 6c 75 64 65 20 | 2e 63 6f 6e 66 69 67 0a |include |.config.|
|000005f0| 69 66 65 71 20 28 2e 64 | 65 70 65 6e 64 2c 24 28 |ifeq (.d|epend,$(|
|00000600| 77 69 6c 64 63 61 72 64 | 20 2e 64 65 70 65 6e 64 |wildcard| .depend|
|00000610| 29 29 0a 69 6e 63 6c 75 | 64 65 20 2e 64 65 70 65 |)).inclu|de .depe|
|00000620| 6e 64 0a 65 6c 73 65 0a | 43 4f 4e 46 49 47 55 52 |nd.else.|CONFIGUR|
|00000630| 41 54 49 4f 4e 20 3d 20 | 64 65 70 65 6e 64 0a 65 |ATION = |depend.e|
|00000640| 6e 64 69 66 0a 65 6c 73 | 65 0a 43 4f 4e 46 49 47 |ndif.els|e.CONFIG|
|00000650| 55 52 41 54 49 4f 4e 20 | 3d 20 63 6f 6e 66 69 67 |URATION |= config|
|00000660| 0a 65 6e 64 69 66 0a 0a | 69 66 64 65 66 20 43 4f |.endif..|ifdef CO|
|00000670| 4e 46 49 47 55 52 41 54 | 49 4f 4e 0a 43 4f 4e 46 |NFIGURAT|ION.CONF|
|00000680| 49 47 55 52 45 20 3d 20 | 64 75 6d 6d 79 0a 65 6e |IGURE = |dummy.en|
|00000690| 64 69 66 0a 0a 23 0a 23 | 20 52 4f 4f 54 5f 44 45 |dif..#.#| ROOT_DE|
|000006a0| 56 20 73 70 65 63 69 66 | 69 65 73 20 74 68 65 20 |V specif|ies the |
|000006b0| 64 65 66 61 75 6c 74 20 | 72 6f 6f 74 2d 64 65 76 |default |root-dev|
|000006c0| 69 63 65 20 77 68 65 6e | 20 6d 61 6b 69 6e 67 20 |ice when| making |
|000006d0| 74 68 65 20 69 6d 61 67 | 65 2e 0a 23 20 54 68 69 |the imag|e..# Thi|
|000006e0| 73 20 63 61 6e 20 62 65 | 20 65 69 74 68 65 72 20 |s can be| either |
|000006f0| 46 4c 4f 50 50 59 2c 20 | 43 55 52 52 45 4e 54 2c |FLOPPY, |CURRENT,|
|00000700| 20 2f 64 65 76 2f 78 78 | 78 78 20 6f 72 20 65 6d | /dev/xx|xx or em|
|00000710| 70 74 79 2c 20 69 6e 20 | 77 68 69 63 68 20 63 61 |pty, in |which ca|
|00000720| 73 65 0a 23 20 74 68 65 | 20 64 65 66 61 75 6c 74 |se.# the| default|
|00000730| 20 6f 66 20 46 4c 4f 50 | 50 59 20 69 73 20 75 73 | of FLOP|PY is us|
|00000740| 65 64 20 62 79 20 27 62 | 75 69 6c 64 27 2e 0a 23 |ed by 'b|uild'..#|
|00000750| 0a 0a 52 4f 4f 54 5f 44 | 45 56 20 3d 20 43 55 52 |..ROOT_D|EV = CUR|
|00000760| 52 45 4e 54 0a 0a 23 0a | 23 20 49 66 20 79 6f 75 |RENT..#.|# If you|
|00000770| 20 77 61 6e 74 20 74 6f | 20 70 72 65 73 65 74 20 | want to| preset |
|00000780| 74 68 65 20 53 56 47 41 | 20 6d 6f 64 65 2c 20 75 |the SVGA| mode, u|
|00000790| 6e 63 6f 6d 6d 65 6e 74 | 20 74 68 65 20 6e 65 78 |ncomment| the nex|
|000007a0| 74 20 6c 69 6e 65 20 61 | 6e 64 0a 23 20 73 65 74 |t line a|nd.# set|
|000007b0| 20 53 56 47 41 5f 4d 4f | 44 45 20 74 6f 20 77 68 | SVGA_MO|DE to wh|
|000007c0| 61 74 65 76 65 72 20 6e | 75 6d 62 65 72 20 79 6f |atever n|umber yo|
|000007d0| 75 20 77 61 6e 74 2e 0a | 23 20 53 65 74 20 69 74 |u want..|# Set it|
|000007e0| 20 74 6f 20 2d 44 53 56 | 47 41 5f 4d 4f 44 45 3d | to -DSV|GA_MODE=|
|000007f0| 4e 4f 52 4d 41 4c 5f 56 | 47 41 20 69 66 20 79 6f |NORMAL_V|GA if yo|
|00000800| 75 20 6a 75 73 74 20 77 | 61 6e 74 20 74 68 65 20 |u just w|ant the |
|00000810| 45 47 41 2f 56 47 41 20 | 6d 6f 64 65 2e 0a 23 20 |EGA/VGA |mode..# |
|00000820| 54 68 65 20 6e 75 6d 62 | 65 72 20 69 73 20 74 68 |The numb|er is th|
|00000830| 65 20 73 61 6d 65 20 61 | 73 20 79 6f 75 20 77 6f |e same a|s you wo|
|00000840| 75 6c 64 20 6f 72 64 69 | 6e 61 72 69 6c 79 20 70 |uld ordi|narily p|
|00000850| 72 65 73 73 20 61 74 20 | 62 6f 6f 74 75 70 2e 0a |ress at |bootup..|
|00000860| 23 0a 0a 53 56 47 41 5f | 4d 4f 44 45 3d 09 2d 44 |#..SVGA_|MODE=.-D|
|00000870| 53 56 47 41 5f 4d 4f 44 | 45 3d 4e 4f 52 4d 41 4c |SVGA_MOD|E=NORMAL|
|00000880| 5f 56 47 41 0a 0a 23 0a | 23 20 73 74 61 6e 64 61 |_VGA..#.|# standa|
|00000890| 72 64 20 43 46 4c 41 47 | 53 0a 23 0a 0a 43 46 4c |rd CFLAG|S.#..CFL|
|000008a0| 41 47 53 20 3d 20 2d 57 | 61 6c 6c 20 2d 57 73 74 |AGS = -W|all -Wst|
|000008b0| 72 69 63 74 2d 70 72 6f | 74 6f 74 79 70 65 73 20 |rict-pro|totypes |
|000008c0| 2d 4f 32 20 2d 66 6f 6d | 69 74 2d 66 72 61 6d 65 |-O2 -fom|it-frame|
|000008d0| 2d 70 6f 69 6e 74 65 72 | 20 2d 70 69 70 65 0a 0a |-pointer| -pipe..|
|000008e0| 69 66 64 65 66 20 43 4f | 4e 46 49 47 5f 43 50 50 |ifdef CO|NFIG_CPP|
|000008f0| 0a 43 46 4c 41 47 53 20 | 3a 3d 20 24 28 43 46 4c |.CFLAGS |:= $(CFL|
|00000900| 41 47 53 29 20 2d 78 20 | 63 2b 2b 0a 65 6e 64 69 |AGS) -x |c++.endi|
|00000910| 66 0a 0a 69 66 64 65 66 | 20 43 4f 4e 46 49 47 5f |f..ifdef| CONFIG_|
|00000920| 4d 34 38 36 0a 43 46 4c | 41 47 53 20 3a 3d 20 24 |M486.CFL|AGS := $|
|00000930| 28 43 46 4c 41 47 53 29 | 20 2d 6d 34 38 36 0a 65 |(CFLAGS)| -m486.e|
|00000940| 6c 73 65 0a 43 46 4c 41 | 47 53 20 3a 3d 20 24 28 |lse.CFLA|GS := $(|
|00000950| 43 46 4c 41 47 53 29 20 | 2d 6d 33 38 36 0a 65 6e |CFLAGS) |-m386.en|
|00000960| 64 69 66 0a 0a 23 0a 23 | 20 69 66 20 79 6f 75 20 |dif..#.#| if you |
|00000970| 77 61 6e 74 20 74 68 65 | 20 72 61 6d 2d 64 69 73 |want the| ram-dis|
|00000980| 6b 20 64 65 76 69 63 65 | 2c 20 64 65 66 69 6e 65 |k device|, define|
|00000990| 20 74 68 69 73 20 74 6f | 20 62 65 20 74 68 65 0a | this to| be the.|
|000009a0| 23 20 73 69 7a 65 20 69 | 6e 20 62 6c 6f 63 6b 73 |# size i|n blocks|
|000009b0| 2e 0a 23 0a 0a 23 52 41 | 4d 44 49 53 4b 20 3d 20 |..#..#RA|MDISK = |
|000009c0| 2d 44 52 41 4d 44 49 53 | 4b 3d 35 31 32 0a 0a 41 |-DRAMDIS|K=512..A|
|000009d0| 53 38 36 09 3d 61 73 38 | 36 20 2d 30 20 2d 61 0a |S86.=as8|6 -0 -a.|
|000009e0| 4c 44 38 36 09 3d 6c 64 | 38 36 20 2d 30 0a 0a 41 |LD86.=ld|86 -0..A|
|000009f0| 53 09 3d 61 73 0a 4c 44 | 09 3d 6c 64 0a 4c 44 46 |S.=as.LD|.=ld.LDF|
|00000a00| 4c 41 47 53 09 3d 23 2d | 71 6d 61 67 69 63 0a 48 |LAGS.=#-|qmagic.H|
|00000a10| 4f 53 54 43 43 09 3d 67 | 63 63 0a 43 43 09 3d 67 |OSTCC.=g|cc.CC.=g|
|00000a20| 63 63 20 2d 44 5f 5f 4b | 45 52 4e 45 4c 5f 5f 20 |cc -D__K|ERNEL__ |
|00000a30| 2d 49 24 28 52 4f 4f 54 | 29 2f 69 6e 63 6c 75 64 |-I$(ROOT|)/includ|
|00000a40| 65 0a 4d 41 4b 45 09 3d | 6d 61 6b 65 0a 43 50 50 |e.MAKE.=|make.CPP|
|00000a50| 09 3d 24 28 43 43 29 20 | 2d 45 0a 41 52 09 3d 61 |.=$(CC) |-E.AR.=a|
|00000a60| 72 0a 53 54 52 49 50 09 | 3d 73 74 72 69 70 0a 0a |r.STRIP.|=strip..|
|00000a70| 41 52 43 48 49 56 45 53 | 09 3d 6b 65 72 6e 65 6c |ARCHIVES|.=kernel|
|00000a80| 2f 6b 65 72 6e 65 6c 2e | 6f 20 6d 6d 2f 6d 6d 2e |/kernel.|o mm/mm.|
|00000a90| 6f 20 66 73 2f 66 73 2e | 6f 20 6e 65 74 2f 6e 65 |o fs/fs.|o net/ne|
|00000aa0| 74 2e 6f 20 69 70 63 2f | 69 70 63 2e 6f 0a 46 49 |t.o ipc/|ipc.o.FI|
|00000ab0| 4c 45 53 59 53 54 45 4d | 53 09 3d 66 73 2f 66 69 |LESYSTEM|S.=fs/fi|
|00000ac0| 6c 65 73 79 73 74 65 6d | 73 2e 61 0a 44 52 49 56 |lesystem|s.a.DRIV|
|00000ad0| 45 52 53 09 09 3d 64 72 | 69 76 65 72 73 2f 62 6c |ERS..=dr|ivers/bl|
|00000ae0| 6f 63 6b 2f 62 6c 6f 63 | 6b 2e 61 20 5c 0a 09 09 |ock/bloc|k.a \...|
|00000af0| 20 64 72 69 76 65 72 73 | 2f 63 68 61 72 2f 63 68 | drivers|/char/ch|
|00000b00| 61 72 2e 61 20 5c 0a 09 | 09 20 64 72 69 76 65 72 |ar.a \..|. driver|
|00000b10| 73 2f 6e 65 74 2f 6e 65 | 74 2e 61 20 5c 0a 09 09 |s/net/ne|t.a \...|
|00000b20| 20 69 62 63 73 2f 69 62 | 63 73 2e 6f 0a 4c 49 42 | ibcs/ib|cs.o.LIB|
|00000b30| 53 09 09 3d 6c 69 62 2f | 6c 69 62 2e 61 0a 53 55 |S..=lib/|lib.a.SU|
|00000b40| 42 44 49 52 53 09 09 3d | 6b 65 72 6e 65 6c 20 64 |BDIRS..=|kernel d|
|00000b50| 72 69 76 65 72 73 20 6d | 6d 20 66 73 20 6e 65 74 |rivers m|m fs net|
|00000b60| 20 69 70 63 20 69 62 63 | 73 20 6c 69 62 0a 0a 4b | ipc ibc|s lib..K|
|00000b70| 45 52 4e 45 4c 48 44 52 | 53 09 3d 2f 75 73 72 2f |ERNELHDR|S.=/usr/|
|00000b80| 73 72 63 2f 6c 69 6e 75 | 78 2f 69 6e 63 6c 75 64 |src/linu|x/includ|
|00000b90| 65 0a 0a 69 66 64 65 66 | 20 43 4f 4e 46 49 47 5f |e..ifdef| CONFIG_|
|00000ba0| 53 43 53 49 0a 44 52 49 | 56 45 52 53 20 3a 3d 20 |SCSI.DRI|VERS := |
|00000bb0| 24 28 44 52 49 56 45 52 | 53 29 20 64 72 69 76 65 |$(DRIVER|S) drive|
|00000bc0| 72 73 2f 73 63 73 69 2f | 73 63 73 69 2e 61 0a 65 |rs/scsi/|scsi.a.e|
|00000bd0| 6e 64 69 66 0a 0a 69 66 | 64 65 66 20 43 4f 4e 46 |ndif..if|def CONF|
|00000be0| 49 47 5f 53 4f 55 4e 44 | 0a 44 52 49 56 45 52 53 |IG_SOUND|.DRIVERS|
|00000bf0| 20 3a 3d 20 24 28 44 52 | 49 56 45 52 53 29 20 64 | := $(DR|IVERS) d|
|00000c00| 72 69 76 65 72 73 2f 73 | 6f 75 6e 64 2f 73 6f 75 |rivers/s|ound/sou|
|00000c10| 6e 64 2e 61 0a 65 6e 64 | 69 66 0a 0a 69 66 64 65 |nd.a.end|if..ifde|
|00000c20| 66 20 43 4f 4e 46 49 47 | 5f 4d 41 54 48 5f 45 4d |f CONFIG|_MATH_EM|
|00000c30| 55 4c 41 54 49 4f 4e 0a | 44 52 49 56 45 52 53 20 |ULATION.|DRIVERS |
|00000c40| 3a 3d 20 24 28 44 52 49 | 56 45 52 53 29 20 64 72 |:= $(DRI|VERS) dr|
|00000c50| 69 76 65 72 73 2f 46 50 | 55 2d 65 6d 75 2f 6d 61 |ivers/FP|U-emu/ma|
|00000c60| 74 68 2e 61 0a 65 6e 64 | 69 66 0a 0a 2e 63 2e 73 |th.a.end|if...c.s|
|00000c70| 3a 0a 09 24 28 43 43 29 | 20 24 28 43 46 4c 41 47 |:..$(CC)| $(CFLAG|
|00000c80| 53 29 20 2d 53 20 2d 6f | 20 24 2a 2e 73 20 24 3c |S) -S -o| $*.s $<|
|00000c90| 0a 2e 73 2e 6f 3a 0a 09 | 24 28 41 53 29 20 2d 63 |..s.o:..|$(AS) -c|
|00000ca0| 20 2d 6f 20 24 2a 2e 6f | 20 24 3c 0a 2e 63 2e 6f | -o $*.o| $<..c.o|
|00000cb0| 3a 0a 09 24 28 43 43 29 | 20 24 28 43 46 4c 41 47 |:..$(CC)| $(CFLAG|
|00000cc0| 53 29 20 2d 63 20 2d 6f | 20 24 2a 2e 6f 20 24 3c |S) -c -o| $*.o $<|
|00000cd0| 0a 0a 56 65 72 73 69 6f | 6e 3a 20 64 75 6d 6d 79 |..Versio|n: dummy|
|00000ce0| 0a 09 72 6d 20 2d 66 20 | 74 6f 6f 6c 73 2f 76 65 |..rm -f |tools/ve|
|00000cf0| 72 73 69 6f 6e 2e 68 0a | 0a 63 6f 6e 66 69 67 3a |rsion.h.|.config:|
|00000d00| 0a 09 24 28 43 4f 4e 46 | 49 47 5f 53 48 45 4c 4c |..$(CONF|IG_SHELL|
|00000d10| 29 20 43 6f 6e 66 69 67 | 75 72 65 20 24 28 4f 50 |) Config|ure $(OP|
|00000d20| 54 53 29 20 3c 20 63 6f | 6e 66 69 67 2e 69 6e 0a |TS) < co|nfig.in.|
|00000d30| 09 40 69 66 20 67 72 65 | 70 20 2d 73 20 27 5e 43 |.@if gre|p -s '^C|
|00000d40| 4f 4e 46 49 47 5f 53 4f | 55 4e 44 27 20 2e 74 6d |ONFIG_SO|UND' .tm|
|00000d50| 70 63 6f 6e 66 69 67 20 | 3b 20 74 68 65 6e 20 5c |pconfig |; then \|
|00000d60| 0a 09 09 24 28 4d 41 4b | 45 29 20 2d 43 20 64 72 |...$(MAK|E) -C dr|
|00000d70| 69 76 65 72 73 2f 73 6f | 75 6e 64 20 63 6f 6e 66 |ivers/so|und conf|
|00000d80| 69 67 3b 20 5c 0a 09 09 | 65 6c 73 65 20 3a 20 3b |ig; \...|else : ;|
|00000d90| 20 66 69 0a 09 6d 76 20 | 2e 74 6d 70 63 6f 6e 66 | fi..mv |.tmpconf|
|00000da0| 69 67 20 2e 63 6f 6e 66 | 69 67 0a 0a 6c 69 6e 75 |ig .conf|ig..linu|
|00000db0| 78 73 75 62 64 69 72 73 | 3a 20 64 75 6d 6d 79 0a |xsubdirs|: dummy.|
|00000dc0| 09 73 65 74 20 2d 65 3b | 20 66 6f 72 20 69 20 69 |.set -e;| for i i|
|00000dd0| 6e 20 24 28 53 55 42 44 | 49 52 53 29 3b 20 64 6f |n $(SUBD|IRS); do|
|00000de0| 20 24 28 4d 41 4b 45 29 | 20 2d 43 20 24 24 69 3b | $(MAKE)| -C $$i;|
|00000df0| 20 64 6f 6e 65 0a 0a 74 | 6f 6f 6c 73 2f 2e 2f 76 | done..t|ools/./v|
|00000e00| 65 72 73 69 6f 6e 2e 68 | 3a 20 74 6f 6f 6c 73 2f |ersion.h|: tools/|
|00000e10| 76 65 72 73 69 6f 6e 2e | 68 0a 0a 74 6f 6f 6c 73 |version.|h..tools|
|00000e20| 2f 76 65 72 73 69 6f 6e | 2e 68 3a 20 24 28 43 4f |/version|.h: $(CO|
|00000e30| 4e 46 49 47 55 52 45 29 | 20 4d 61 6b 65 66 69 6c |NFIGURE)| Makefil|
|00000e40| 65 0a 09 40 2e 2f 6d 61 | 6b 65 76 65 72 2e 73 68 |e..@./ma|kever.sh|
|00000e50| 0a 09 40 65 63 68 6f 20 | 5c 23 64 65 66 69 6e 65 |..@echo |\#define|
|00000e60| 20 55 54 53 5f 52 45 4c | 45 41 53 45 20 5c 22 24 | UTS_REL|EASE \"$|
|00000e70| 28 56 45 52 53 49 4f 4e | 29 2e 24 28 50 41 54 43 |(VERSION|).$(PATC|
|00000e80| 48 4c 45 56 45 4c 29 2e | 24 28 53 55 42 4c 45 56 |HLEVEL).|$(SUBLEV|
|00000e90| 45 4c 29 5c 22 20 3e 20 | 74 6f 6f 6c 73 2f 76 65 |EL)\" > |tools/ve|
|00000ea0| 72 73 69 6f 6e 2e 68 0a | 09 40 65 63 68 6f 20 5c |rsion.h.|.@echo \|
|00000eb0| 23 64 65 66 69 6e 65 20 | 55 54 53 5f 56 45 52 53 |#define |UTS_VERS|
|00000ec0| 49 4f 4e 20 5c 22 5c 23 | 60 63 61 74 20 2e 76 65 |ION \"\#|`cat .ve|
|00000ed0| 72 73 69 6f 6e 60 20 60 | 64 61 74 65 60 5c 22 20 |rsion` `|date`\" |
|00000ee0| 3e 3e 20 74 6f 6f 6c 73 | 2f 76 65 72 73 69 6f 6e |>> tools|/version|
|00000ef0| 2e 68 0a 09 40 65 63 68 | 6f 20 5c 23 64 65 66 69 |.h..@ech|o \#defi|
|00000f00| 6e 65 20 4c 49 4e 55 58 | 5f 43 4f 4d 50 49 4c 45 |ne LINUX|_COMPILE|
|00000f10| 5f 54 49 4d 45 20 5c 22 | 60 64 61 74 65 20 2b 25 |_TIME \"|`date +%|
|00000f20| 54 60 5c 22 20 3e 3e 20 | 74 6f 6f 6c 73 2f 76 65 |T`\" >> |tools/ve|
|00000f30| 72 73 69 6f 6e 2e 68 0a | 09 40 65 63 68 6f 20 5c |rsion.h.|.@echo \|
|00000f40| 23 64 65 66 69 6e 65 20 | 4c 49 4e 55 58 5f 43 4f |#define |LINUX_CO|
|00000f50| 4d 50 49 4c 45 5f 42 59 | 20 5c 22 60 77 68 6f 61 |MPILE_BY| \"`whoa|
|00000f60| 6d 69 60 5c 22 20 3e 3e | 20 74 6f 6f 6c 73 2f 76 |mi`\" >>| tools/v|
|00000f70| 65 72 73 69 6f 6e 2e 68 | 0a 09 40 65 63 68 6f 20 |ersion.h|..@echo |
|00000f80| 5c 23 64 65 66 69 6e 65 | 20 4c 49 4e 55 58 5f 43 |\#define| LINUX_C|
|00000f90| 4f 4d 50 49 4c 45 5f 48 | 4f 53 54 20 5c 22 60 68 |OMPILE_H|OST \"`h|
|00000fa0| 6f 73 74 6e 61 6d 65 60 | 5c 22 20 3e 3e 20 74 6f |ostname`|\" >> to|
|00000fb0| 6f 6c 73 2f 76 65 72 73 | 69 6f 6e 2e 68 0a 09 40 |ols/vers|ion.h..@|
|00000fc0| 65 63 68 6f 20 5c 23 64 | 65 66 69 6e 65 20 4c 49 |echo \#d|efine LI|
|00000fd0| 4e 55 58 5f 43 4f 4d 50 | 49 4c 45 5f 44 4f 4d 41 |NUX_COMP|ILE_DOMA|
|00000fe0| 49 4e 20 5c 22 60 64 6f | 6d 61 69 6e 6e 61 6d 65 |IN \"`do|mainname|
|00000ff0| 60 5c 22 20 3e 3e 20 74 | 6f 6f 6c 73 2f 76 65 72 |`\" >> t|ools/ver|
|00001000| 73 69 6f 6e 2e 68 0a 0a | 74 6f 6f 6c 73 2f 62 75 |sion.h..|tools/bu|
|00001010| 69 6c 64 3a 20 74 6f 6f | 6c 73 2f 62 75 69 6c 64 |ild: too|ls/build|
|00001020| 2e 63 20 24 28 43 4f 4e | 46 49 47 55 52 45 29 0a |.c $(CON|FIGURE).|
|00001030| 09 24 28 48 4f 53 54 43 | 43 29 20 24 28 43 46 4c |.$(HOSTC|C) $(CFL|
|00001040| 41 47 53 29 20 2d 6f 20 | 24 40 20 24 3c 0a 0a 62 |AGS) -o |$@ $<..b|
|00001050| 6f 6f 74 2f 68 65 61 64 | 2e 6f 3a 20 24 28 43 4f |oot/head|.o: $(CO|
|00001060| 4e 46 49 47 55 52 45 29 | 20 62 6f 6f 74 2f 68 65 |NFIGURE)| boot/he|
|00001070| 61 64 2e 73 0a 0a 62 6f | 6f 74 2f 68 65 61 64 2e |ad.s..bo|ot/head.|
|00001080| 73 3a 20 62 6f 6f 74 2f | 68 65 61 64 2e 53 20 24 |s: boot/|head.S $|
|00001090| 28 43 4f 4e 46 49 47 55 | 52 45 29 20 69 6e 63 6c |(CONFIGU|RE) incl|
|000010a0| 75 64 65 2f 6c 69 6e 75 | 78 2f 74 61 73 6b 73 2e |ude/linu|x/tasks.|
|000010b0| 68 0a 09 24 28 43 50 50 | 29 20 2d 74 72 61 64 69 |h..$(CPP|) -tradi|
|000010c0| 74 69 6f 6e 61 6c 20 24 | 3c 20 2d 6f 20 24 40 0a |tional $|< -o $@.|
|000010d0| 0a 74 6f 6f 6c 73 2f 76 | 65 72 73 69 6f 6e 2e 6f |.tools/v|ersion.o|
|000010e0| 3a 20 74 6f 6f 6c 73 2f | 76 65 72 73 69 6f 6e 2e |: tools/|version.|
|000010f0| 63 20 74 6f 6f 6c 73 2f | 76 65 72 73 69 6f 6e 2e |c tools/|version.|
|00001100| 68 0a 0a 69 6e 69 74 2f | 6d 61 69 6e 2e 6f 3a 20 |h..init/|main.o: |
|00001110| 24 28 43 4f 4e 46 49 47 | 55 52 45 29 20 69 6e 69 |$(CONFIG|URE) ini|
|00001120| 74 2f 6d 61 69 6e 2e 63 | 0a 09 24 28 43 43 29 20 |t/main.c|..$(CC) |
|00001130| 24 28 43 46 4c 41 47 53 | 29 20 24 28 50 52 4f 46 |$(CFLAGS|) $(PROF|
|00001140| 49 4c 49 4e 47 29 20 2d | 63 20 2d 6f 20 24 2a 2e |ILING) -|c -o $*.|
|00001150| 6f 20 24 3c 0a 0a 74 6f | 6f 6c 73 2f 73 79 73 74 |o $<..to|ols/syst|
|00001160| 65 6d 3a 09 62 6f 6f 74 | 2f 68 65 61 64 2e 6f 20 |em:.boot|/head.o |
|00001170| 69 6e 69 74 2f 6d 61 69 | 6e 2e 6f 20 74 6f 6f 6c |init/mai|n.o tool|
|00001180| 73 2f 76 65 72 73 69 6f | 6e 2e 6f 20 6c 69 6e 75 |s/versio|n.o linu|
|00001190| 78 73 75 62 64 69 72 73 | 0a 09 24 28 4c 44 29 20 |xsubdirs|..$(LD) |
|000011a0| 24 28 4c 44 46 4c 41 47 | 53 29 20 2d 54 74 65 78 |$(LDFLAG|S) -Ttex|
|000011b0| 74 20 31 30 30 30 20 62 | 6f 6f 74 2f 68 65 61 64 |t 1000 b|oot/head|
|000011c0| 2e 6f 20 69 6e 69 74 2f | 6d 61 69 6e 2e 6f 20 74 |.o init/|main.o t|
|000011d0| 6f 6f 6c 73 2f 76 65 72 | 73 69 6f 6e 2e 6f 20 5c |ools/ver|sion.o \|
|000011e0| 0a 09 09 24 28 41 52 43 | 48 49 56 45 53 29 20 5c |...$(ARC|HIVES) \|
|000011f0| 0a 09 09 24 28 46 49 4c | 45 53 59 53 54 45 4d 53 |...$(FIL|ESYSTEMS|
|00001200| 29 20 5c 0a 09 09 24 28 | 44 52 49 56 45 52 53 29 |) \...$(|DRIVERS)|
|00001210| 20 5c 0a 09 09 24 28 4c | 49 42 53 29 20 5c 0a 09 | \...$(L|IBS) \..|
|00001220| 09 2d 6f 20 74 6f 6f 6c | 73 2f 73 79 73 74 65 6d |.-o tool|s/system|
|00001230| 0a 09 6e 6d 20 74 6f 6f | 6c 73 2f 7a 53 79 73 74 |..nm too|ls/zSyst|
|00001240| 65 6d 20 7c 20 67 72 65 | 70 20 2d 76 20 27 5c 28 |em | gre|p -v '\(|
|00001250| 63 6f 6d 70 69 6c 65 64 | 5c 29 5c 7c 5c 28 5c 2e |compiled|\)\|\(\.|
|00001260| 6f 24 24 5c 29 5c 7c 5c | 28 20 61 20 5c 29 27 20 |o$$\)\|\|( a \)' |
|00001270| 7c 20 5c 0a 09 09 73 6f | 72 74 20 3e 20 53 79 73 || \...so|rt > Sys|
|00001280| 74 65 6d 2e 6d 61 70 0a | 0a 62 6f 6f 74 2f 73 65 |tem.map.|.boot/se|
|00001290| 74 75 70 3a 20 62 6f 6f | 74 2f 73 65 74 75 70 2e |tup: boo|t/setup.|
|000012a0| 6f 0a 09 24 28 4c 44 38 | 36 29 20 2d 73 20 2d 6f |o..$(LD8|6) -s -o|
|000012b0| 20 24 40 20 24 3c 0a 0a | 62 6f 6f 74 2f 73 65 74 | $@ $<..|boot/set|
|000012c0| 75 70 2e 6f 3a 20 62 6f | 6f 74 2f 73 65 74 75 70 |up.o: bo|ot/setup|
|000012d0| 2e 73 0a 09 24 28 41 53 | 38 36 29 20 2d 6f 20 24 |.s..$(AS|86) -o $|
|000012e0| 40 20 24 3c 0a 0a 62 6f | 6f 74 2f 73 65 74 75 70 |@ $<..bo|ot/setup|
|000012f0| 2e 73 3a 20 62 6f 6f 74 | 2f 73 65 74 75 70 2e 53 |.s: boot|/setup.S|
|00001300| 20 24 28 43 4f 4e 46 49 | 47 55 52 45 29 20 69 6e | $(CONFI|GURE) in|
|00001310| 63 6c 75 64 65 2f 6c 69 | 6e 75 78 2f 63 6f 6e 66 |clude/li|nux/conf|
|00001320| 69 67 2e 68 20 4d 61 6b | 65 66 69 6c 65 0a 09 24 |ig.h Mak|efile..$|
|00001330| 28 43 50 50 29 20 2d 74 | 72 61 64 69 74 69 6f 6e |(CPP) -t|radition|
|00001340| 61 6c 20 24 28 53 56 47 | 41 5f 4d 4f 44 45 29 20 |al $(SVG|A_MODE) |
|00001350| 24 28 52 41 4d 44 49 53 | 4b 29 20 24 3c 20 2d 6f |$(RAMDIS|K) $< -o|
|00001360| 20 24 40 0a 0a 62 6f 6f | 74 2f 62 6f 6f 74 73 65 | $@..boo|t/bootse|
|00001370| 63 74 3a 20 62 6f 6f 74 | 2f 62 6f 6f 74 73 65 63 |ct: boot|/bootsec|
|00001380| 74 2e 6f 0a 09 24 28 4c | 44 38 36 29 20 2d 73 20 |t.o..$(L|D86) -s |
|00001390| 2d 6f 20 24 40 20 24 3c | 0a 0a 62 6f 6f 74 2f 62 |-o $@ $<|..boot/b|
|000013a0| 6f 6f 74 73 65 63 74 2e | 6f 3a 20 62 6f 6f 74 2f |ootsect.|o: boot/|
|000013b0| 62 6f 6f 74 73 65 63 74 | 2e 73 0a 09 24 28 41 53 |bootsect|.s..$(AS|
|000013c0| 38 36 29 20 2d 6f 20 24 | 40 20 24 3c 0a 0a 62 6f |86) -o $|@ $<..bo|
|000013d0| 6f 74 2f 62 6f 6f 74 73 | 65 63 74 2e 73 3a 20 62 |ot/boots|ect.s: b|
|000013e0| 6f 6f 74 2f 62 6f 6f 74 | 73 65 63 74 2e 53 20 24 |oot/boot|sect.S $|
|000013f0| 28 43 4f 4e 46 49 47 55 | 52 45 29 20 69 6e 63 6c |(CONFIGU|RE) incl|
|00001400| 75 64 65 2f 6c 69 6e 75 | 78 2f 63 6f 6e 66 69 67 |ude/linu|x/config|
|00001410| 2e 68 20 4d 61 6b 65 66 | 69 6c 65 0a 09 24 28 43 |.h Makef|ile..$(C|
|00001420| 50 50 29 20 2d 74 72 61 | 64 69 74 69 6f 6e 61 6c |PP) -tra|ditional|
|00001430| 20 24 28 53 56 47 41 5f | 4d 4f 44 45 29 20 24 28 | $(SVGA_|MODE) $(|
|00001440| 52 41 4d 44 49 53 4b 29 | 20 24 3c 20 2d 6f 20 24 |RAMDISK)| $< -o $|
|00001450| 40 0a 0a 7a 42 6f 6f 74 | 2f 7a 53 79 73 74 65 6d |@..zBoot|/zSystem|
|00001460| 3a 20 7a 42 6f 6f 74 2f | 2a 2e 63 20 7a 42 6f 6f |: zBoot/|*.c zBoo|
|00001470| 74 2f 2a 2e 53 20 74 6f | 6f 6c 73 2f 7a 53 79 73 |t/*.S to|ols/zSys|
|00001480| 74 65 6d 0a 09 24 28 4d | 41 4b 45 29 20 2d 43 20 |tem..$(M|AKE) -C |
|00001490| 7a 42 6f 6f 74 0a 0a 7a | 49 6d 61 67 65 3a 20 24 |zBoot..z|Image: $|
|000014a0| 28 43 4f 4e 46 49 47 55 | 52 45 29 20 62 6f 6f 74 |(CONFIGU|RE) boot|
|000014b0| 2f 62 6f 6f 74 73 65 63 | 74 20 62 6f 6f 74 2f 73 |/bootsec|t boot/s|
|000014c0| 65 74 75 70 20 7a 42 6f | 6f 74 2f 7a 53 79 73 74 |etup zBo|ot/zSyst|
|000014d0| 65 6d 20 74 6f 6f 6c 73 | 2f 62 75 69 6c 64 0a 09 |em tools|/build..|
|000014e0| 74 6f 6f 6c 73 2f 62 75 | 69 6c 64 20 62 6f 6f 74 |tools/bu|ild boot|
|000014f0| 2f 62 6f 6f 74 73 65 63 | 74 20 62 6f 6f 74 2f 73 |/bootsec|t boot/s|
|00001500| 65 74 75 70 20 7a 42 6f | 6f 74 2f 7a 53 79 73 74 |etup zBo|ot/zSyst|
|00001510| 65 6d 20 24 28 52 4f 4f | 54 5f 44 45 56 29 20 3e |em $(ROO|T_DEV) >|
|00001520| 20 7a 49 6d 61 67 65 0a | 09 73 79 6e 63 0a 0a 7a | zImage.|.sync..z|
|00001530| 64 69 73 6b 3a 20 7a 49 | 6d 61 67 65 0a 09 64 64 |disk: zI|mage..dd|
|00001540| 20 62 73 3d 38 31 39 32 | 20 69 66 3d 7a 49 6d 61 | bs=8192| if=zIma|
|00001550| 67 65 20 6f 66 3d 2f 64 | 65 76 2f 66 64 30 0a 0a |ge of=/d|ev/fd0..|
|00001560| 7a 6c 69 6c 6f 3a 20 24 | 28 43 4f 4e 46 49 47 55 |zlilo: $|(CONFIGU|
|00001570| 52 45 29 20 7a 49 6d 61 | 67 65 0a 09 69 66 20 5b |RE) zIma|ge..if [|
|00001580| 20 2d 66 20 2f 76 6d 6c | 69 6e 75 7a 20 5d 3b 20 | -f /vml|inuz ]; |
|00001590| 74 68 65 6e 20 6d 76 20 | 2f 76 6d 6c 69 6e 75 7a |then mv |/vmlinuz|
|000015a0| 20 2f 76 6d 6c 69 6e 75 | 7a 2e 6f 6c 64 3b 20 66 | /vmlinu|z.old; f|
|000015b0| 69 0a 09 69 66 20 5b 20 | 2d 66 20 2f 7a 53 79 73 |i..if [ |-f /zSys|
|000015c0| 74 65 6d 2e 6d 61 70 20 | 5d 3b 20 74 68 65 6e 20 |tem.map |]; then |
|000015d0| 6d 76 20 2f 7a 53 79 73 | 74 65 6d 2e 6d 61 70 20 |mv /zSys|tem.map |
|000015e0| 2f 7a 53 79 73 74 65 6d | 2e 6f 6c 64 3b 20 66 69 |/zSystem|.old; fi|
|000015f0| 0a 09 63 61 74 20 7a 49 | 6d 61 67 65 20 3e 20 2f |..cat zI|mage > /|
|00001600| 76 6d 6c 69 6e 75 7a 0a | 09 63 70 20 7a 53 79 73 |vmlinuz.|.cp zSys|
|00001610| 74 65 6d 2e 6d 61 70 20 | 2f 0a 09 69 66 20 5b 20 |tem.map |/..if [ |
|00001620| 2d 78 20 2f 73 62 69 6e | 2f 6c 69 6c 6f 20 5d 3b |-x /sbin|/lilo ];|
|00001630| 20 74 68 65 6e 20 2f 73 | 62 69 6e 2f 6c 69 6c 6f | then /s|bin/lilo|
|00001640| 3b 20 65 6c 73 65 20 2f | 65 74 63 2f 6c 69 6c 6f |; else /|etc/lilo|
|00001650| 2f 69 6e 73 74 61 6c 6c | 3b 20 66 69 0a 0a 74 6f |/install|; fi..to|
|00001660| 6f 6c 73 2f 7a 53 79 73 | 74 65 6d 3a 09 62 6f 6f |ols/zSys|tem:.boo|
|00001670| 74 2f 68 65 61 64 2e 6f | 20 69 6e 69 74 2f 6d 61 |t/head.o| init/ma|
|00001680| 69 6e 2e 6f 20 74 6f 6f | 6c 73 2f 76 65 72 73 69 |in.o too|ls/versi|
|00001690| 6f 6e 2e 6f 20 6c 69 6e | 75 78 73 75 62 64 69 72 |on.o lin|uxsubdir|
|000016a0| 73 0a 09 24 28 4c 44 29 | 20 24 28 4c 44 46 4c 41 |s..$(LD)| $(LDFLA|
|000016b0| 47 53 29 20 2d 54 74 65 | 78 74 20 31 30 30 30 30 |GS) -Tte|xt 10000|
|000016c0| 30 20 62 6f 6f 74 2f 68 | 65 61 64 2e 6f 20 69 6e |0 boot/h|ead.o in|
|000016d0| 69 74 2f 6d 61 69 6e 2e | 6f 20 74 6f 6f 6c 73 2f |it/main.|o tools/|
|000016e0| 76 65 72 73 69 6f 6e 2e | 6f 20 5c 0a 09 09 24 28 |version.|o \...$(|
|000016f0| 41 52 43 48 49 56 45 53 | 29 20 5c 0a 09 09 24 28 |ARCHIVES|) \...$(|
|00001700| 46 49 4c 45 53 59 53 54 | 45 4d 53 29 20 5c 0a 09 |FILESYST|EMS) \..|
|00001710| 09 24 28 44 52 49 56 45 | 52 53 29 20 5c 0a 09 09 |.$(DRIVE|RS) \...|
|00001720| 24 28 4c 49 42 53 29 20 | 5c 0a 09 09 2d 6f 20 74 |$(LIBS) |\...-o t|
|00001730| 6f 6f 6c 73 2f 7a 53 79 | 73 74 65 6d 0a 09 6e 6d |ools/zSy|stem..nm|
|00001740| 20 74 6f 6f 6c 73 2f 7a | 53 79 73 74 65 6d 20 7c | tools/z|System ||
|00001750| 20 67 72 65 70 20 2d 76 | 20 27 5c 28 63 6f 6d 70 | grep -v| '\(comp|
|00001760| 69 6c 65 64 5c 29 5c 7c | 5c 28 5c 2e 6f 24 24 5c |iled\)\||\(\.o$$\|
|00001770| 29 5c 7c 5c 28 20 61 20 | 5c 29 27 20 7c 20 5c 0a |)\|\( a |\)' | \.|
|00001780| 09 09 73 6f 72 74 20 3e | 20 7a 53 79 73 74 65 6d |..sort >| zSystem|
|00001790| 2e 6d 61 70 0a 0a 66 73 | 3a 20 64 75 6d 6d 79 0a |.map..fs|: dummy.|
|000017a0| 09 24 28 4d 41 4b 45 29 | 20 6c 69 6e 75 78 73 75 |.$(MAKE)| linuxsu|
|000017b0| 62 64 69 72 73 20 53 55 | 42 44 49 52 53 3d 66 73 |bdirs SU|BDIRS=fs|
|000017c0| 0a 0a 6c 69 62 3a 20 64 | 75 6d 6d 79 0a 09 24 28 |..lib: d|ummy..$(|
|000017d0| 4d 41 4b 45 29 20 6c 69 | 6e 75 78 73 75 62 64 69 |MAKE) li|nuxsubdi|
|000017e0| 72 73 20 53 55 42 44 49 | 52 53 3d 6c 69 62 0a 0a |rs SUBDI|RS=lib..|
|000017f0| 6d 6d 3a 20 64 75 6d 6d | 79 0a 09 24 28 4d 41 4b |mm: dumm|y..$(MAK|
|00001800| 45 29 20 6c 69 6e 75 78 | 73 75 62 64 69 72 73 20 |E) linux|subdirs |
|00001810| 53 55 42 44 49 52 53 3d | 6d 6d 0a 0a 69 70 63 3a |SUBDIRS=|mm..ipc:|
|00001820| 20 64 75 6d 6d 79 0a 09 | 24 28 4d 41 4b 45 29 20 | dummy..|$(MAKE) |
|00001830| 6c 69 6e 75 78 73 75 62 | 64 69 72 73 20 53 55 42 |linuxsub|dirs SUB|
|00001840| 44 49 52 53 3d 69 70 63 | 0a 0a 6b 65 72 6e 65 6c |DIRS=ipc|..kernel|
|00001850| 3a 20 64 75 6d 6d 79 0a | 09 24 28 4d 41 4b 45 29 |: dummy.|.$(MAKE)|
|00001860| 20 6c 69 6e 75 78 73 75 | 62 64 69 72 73 20 53 55 | linuxsu|bdirs SU|
|00001870| 42 44 49 52 53 3d 6b 65 | 72 6e 65 6c 0a 0a 64 72 |BDIRS=ke|rnel..dr|
|00001880| 69 76 65 72 73 3a 20 64 | 75 6d 6d 79 0a 09 24 28 |ivers: d|ummy..$(|
|00001890| 4d 41 4b 45 29 20 6c 69 | 6e 75 78 73 75 62 64 69 |MAKE) li|nuxsubdi|
|000018a0| 72 73 20 53 55 42 44 49 | 52 53 3d 64 72 69 76 65 |rs SUBDI|RS=drive|
|000018b0| 72 73 0a 0a 6e 65 74 3a | 20 64 75 6d 6d 79 0a 09 |rs..net:| dummy..|
|000018c0| 24 28 4d 41 4b 45 29 20 | 6c 69 6e 75 78 73 75 62 |$(MAKE) |linuxsub|
|000018d0| 64 69 72 73 20 53 55 42 | 44 49 52 53 3d 6e 65 74 |dirs SUB|DIRS=net|
|000018e0| 0a 0a 63 6c 65 61 6e 3a | 0a 09 72 6d 20 2d 66 20 |..clean:|..rm -f |
|000018f0| 6b 65 72 6e 65 6c 2f 6b | 73 79 6d 73 2e 6c 73 74 |kernel/k|syms.lst|
|00001900| 0a 09 72 6d 20 2d 66 20 | 63 6f 72 65 20 60 66 69 |..rm -f |core `fi|
|00001910| 6e 64 20 2e 20 2d 6e 61 | 6d 65 20 27 2a 2e 5b 6f |nd . -na|me '*.[o|
|00001920| 61 73 5d 27 20 2d 70 72 | 69 6e 74 60 0a 09 72 6d |as]' -pr|int`..rm|
|00001930| 20 2d 66 20 63 6f 72 65 | 20 60 66 69 6e 64 20 2e | -f core| `find .|
|00001940| 20 2d 6e 61 6d 65 20 27 | 63 6f 72 65 27 20 2d 70 | -name '|core' -p|
|00001950| 72 69 6e 74 60 0a 09 72 | 6d 20 2d 66 20 7a 49 6d |rint`..r|m -f zIm|
|00001960| 61 67 65 20 7a 53 79 73 | 74 65 6d 2e 6d 61 70 20 |age zSys|tem.map |
|00001970| 74 6f 6f 6c 73 2f 7a 53 | 79 73 74 65 6d 20 74 6f |tools/zS|ystem to|
|00001980| 6f 6c 73 2f 73 79 73 74 | 65 6d 0a 09 72 6d 20 2d |ols/syst|em..rm -|
|00001990| 66 20 49 6d 61 67 65 20 | 53 79 73 74 65 6d 2e 6d |f Image |System.m|
|000019a0| 61 70 20 62 6f 6f 74 2f | 62 6f 6f 74 73 65 63 74 |ap boot/|bootsect|
|000019b0| 20 62 6f 6f 74 2f 73 65 | 74 75 70 0a 09 72 6d 20 | boot/se|tup..rm |
|000019c0| 2d 66 20 7a 42 6f 6f 74 | 2f 7a 53 79 73 74 65 6d |-f zBoot|/zSystem|
|000019d0| 20 7a 42 6f 6f 74 2f 78 | 74 72 61 63 74 20 7a 42 | zBoot/x|tract zB|
|000019e0| 6f 6f 74 2f 70 69 67 67 | 79 62 61 63 6b 0a 09 72 |oot/pigg|yback..r|
|000019f0| 6d 20 2d 66 20 2e 74 6d | 70 2a 20 64 72 69 76 65 |m -f .tm|p* drive|
|00001a00| 72 73 2f 73 6f 75 6e 64 | 2f 63 6f 6e 66 69 67 75 |rs/sound|/configu|
|00001a10| 72 65 0a 09 72 6d 20 2d | 66 20 69 6e 69 74 2f 2a |re..rm -|f init/*|
|00001a20| 2e 6f 20 74 6f 6f 6c 73 | 2f 62 75 69 6c 64 20 62 |.o tools|/build b|
|00001a30| 6f 6f 74 2f 2a 2e 6f 20 | 74 6f 6f 6c 73 2f 2a 2e |oot/*.o |tools/*.|
|00001a40| 6f 0a 0a 6d 72 70 72 6f | 70 65 72 3a 20 63 6c 65 |o..mrpro|per: cle|
|00001a50| 61 6e 0a 09 72 6d 20 2d | 66 20 69 6e 63 6c 75 64 |an..rm -|f includ|
|00001a60| 65 2f 6c 69 6e 75 78 2f | 61 75 74 6f 63 6f 6e 66 |e/linux/|autoconf|
|00001a70| 2e 68 20 74 6f 6f 6c 73 | 2f 76 65 72 73 69 6f 6e |.h tools|/version|
|00001a80| 2e 68 0a 09 72 6d 20 2d | 66 20 64 72 69 76 65 72 |.h..rm -|f driver|
|00001a90| 73 2f 73 6f 75 6e 64 2f | 6c 6f 63 61 6c 2e 68 0a |s/sound/|local.h.|
|00001aa0| 09 72 6d 20 2d 66 20 2e | 76 65 72 73 69 6f 6e 20 |.rm -f .|version |
|00001ab0| 2e 63 6f 6e 66 69 67 2a | 20 63 6f 6e 66 69 67 2e |.config*| config.|
|00001ac0| 6f 6c 64 0a 09 72 6d 20 | 2d 66 20 2e 64 65 70 65 |old..rm |-f .depe|
|00001ad0| 6e 64 20 60 66 69 6e 64 | 20 2e 20 2d 6e 61 6d 65 |nd `find| . -name|
|00001ae0| 20 2e 64 65 70 65 6e 64 | 20 2d 70 72 69 6e 74 60 | .depend| -print`|
|00001af0| 0a 0a 64 69 73 74 63 6c | 65 61 6e 3a 20 6d 72 70 |..distcl|ean: mrp|
|00001b00| 72 6f 70 65 72 0a 0a 62 | 61 63 6b 75 70 3a 20 6d |roper..b|ackup: m|
|00001b10| 72 70 72 6f 70 65 72 0a | 09 63 64 20 2e 2e 20 26 |rproper.|.cd .. &|
|00001b20| 26 20 74 61 72 20 63 66 | 20 2d 20 6c 69 6e 75 78 |& tar cf| - linux|
|00001b30| 20 7c 20 67 7a 69 70 20 | 2d 39 20 3e 20 62 61 63 | | gzip |-9 > bac|
|00001b40| 6b 75 70 2e 67 7a 0a 09 | 73 79 6e 63 0a 0a 64 65 |kup.gz..|sync..de|
|00001b50| 70 65 6e 64 20 64 65 70 | 3a 0a 09 74 6f 75 63 68 |pend dep|:..touch|
|00001b60| 20 74 6f 6f 6c 73 2f 76 | 65 72 73 69 6f 6e 2e 68 | tools/v|ersion.h|
|00001b70| 0a 09 66 6f 72 20 69 20 | 69 6e 20 69 6e 69 74 2f |..for i |in init/|
|00001b80| 2a 2e 63 3b 64 6f 20 65 | 63 68 6f 20 2d 6e 20 22 |*.c;do e|cho -n "|
|00001b90| 69 6e 69 74 2f 22 3b 24 | 28 43 50 50 29 20 2d 4d |init/";$|(CPP) -M|
|00001ba0| 20 24 24 69 3b 64 6f 6e | 65 20 3e 20 2e 74 6d 70 | $$i;don|e > .tmp|
|00001bb0| 64 65 70 65 6e 64 0a 09 | 66 6f 72 20 69 20 69 6e |depend..|for i in|
|00001bc0| 20 74 6f 6f 6c 73 2f 2a | 2e 63 3b 64 6f 20 65 63 | tools/*|.c;do ec|
|00001bd0| 68 6f 20 2d 6e 20 22 74 | 6f 6f 6c 73 2f 22 3b 24 |ho -n "t|ools/";$|
|00001be0| 28 43 50 50 29 20 2d 4d | 20 24 24 69 3b 64 6f 6e |(CPP) -M| $$i;don|
|00001bf0| 65 20 3e 3e 20 2e 74 6d | 70 64 65 70 65 6e 64 0a |e >> .tm|pdepend.|
|00001c00| 09 73 65 74 20 2d 65 3b | 20 66 6f 72 20 69 20 69 |.set -e;| for i i|
|00001c10| 6e 20 24 28 53 55 42 44 | 49 52 53 29 3b 20 64 6f |n $(SUBD|IRS); do|
|00001c20| 20 24 28 4d 41 4b 45 29 | 20 2d 43 20 24 24 69 20 | $(MAKE)| -C $$i |
|00001c30| 64 65 70 3b 20 64 6f 6e | 65 0a 09 72 6d 20 2d 66 |dep; don|e..rm -f|
|00001c40| 20 74 6f 6f 6c 73 2f 76 | 65 72 73 69 6f 6e 2e 68 | tools/v|ersion.h|
|00001c50| 0a 09 6d 76 20 2e 74 6d | 70 64 65 70 65 6e 64 20 |..mv .tm|pdepend |
|00001c60| 2e 64 65 70 65 6e 64 0a | 0a 69 66 64 65 66 20 43 |.depend.|.ifdef C|
|00001c70| 4f 4e 46 49 47 55 52 41 | 54 49 4f 4e 0a 2e 2e 24 |ONFIGURA|TION...$|
|00001c80| 28 43 4f 4e 46 49 47 55 | 52 41 54 49 4f 4e 29 3a |(CONFIGU|RATION):|
|00001c90| 0a 09 40 65 63 68 6f 0a | 09 40 65 63 68 6f 20 22 |..@echo.|.@echo "|
|00001ca0| 59 6f 75 20 68 61 76 65 | 20 61 20 62 61 64 20 6f |You have| a bad o|
|00001cb0| 72 20 6e 6f 6e 65 78 69 | 73 74 65 6e 74 22 20 2e |r nonexi|stent" .|
|00001cc0| 24 28 43 4f 4e 46 49 47 | 55 52 41 54 49 4f 4e 29 |$(CONFIG|URATION)|
|00001cd0| 20 22 3a 20 72 75 6e 6e | 69 6e 67 20 27 6d 61 6b | ": runn|ing 'mak|
|00001ce0| 65 22 20 24 28 43 4f 4e | 46 49 47 55 52 41 54 49 |e" $(CON|FIGURATI|
|00001cf0| 4f 4e 29 22 27 22 0a 09 | 40 65 63 68 6f 0a 09 24 |ON)"'"..|@echo..$|
|00001d00| 28 4d 41 4b 45 29 20 24 | 28 43 4f 4e 46 49 47 55 |(MAKE) $|(CONFIGU|
|00001d10| 52 41 54 49 4f 4e 29 0a | 09 40 65 63 68 6f 0a 09 |RATION).|.@echo..|
|00001d20| 40 65 63 68 6f 20 22 53 | 75 63 63 65 73 73 66 75 |@echo "S|uccessfu|
|00001d30| 6c 2e 20 54 72 79 20 72 | 65 2d 6d 61 6b 69 6e 67 |l. Try r|e-making|
|00001d40| 20 28 69 67 6e 6f 72 65 | 20 74 68 65 20 65 72 72 | (ignore| the err|
|00001d50| 6f 72 20 74 68 61 74 20 | 66 6f 6c 6c 6f 77 73 29 |or that |follows)|
|00001d60| 22 0a 09 40 65 63 68 6f | 0a 09 65 78 69 74 20 31 |"..@echo|..exit 1|
|00001d70| 0a 0a 64 75 6d 6d 79 3a | 20 2e 2e 24 28 43 4f 4e |..dummy:| ..$(CON|
|00001d80| 46 49 47 55 52 41 54 49 | 4f 4e 29 0a 0a 65 6c 73 |FIGURATI|ON)..els|
|00001d90| 65 0a 0a 64 75 6d 6d 79 | 3a 0a 0a 65 6e 64 69 66 |e..dummy|:..endif|
|00001da0| 0a 0a 23 0a 23 20 4c 65 | 61 76 65 20 74 68 65 73 |..#.# Le|ave thes|
|00001db0| 65 20 64 75 6d 6d 79 20 | 65 6e 74 72 69 65 73 20 |e dummy |entries |
|00001dc0| 66 6f 72 20 6e 6f 77 20 | 74 6f 20 74 65 6c 6c 20 |for now |to tell |
|00001dd0| 70 65 6f 70 6c 65 20 74 | 68 61 74 20 74 68 65 79 |people t|hat they|
|00001de0| 20 61 72 65 20 67 6f 69 | 6e 67 20 61 77 61 79 2e | are goi|ng away.|
|00001df0| 2e 0a 23 0a 6c 69 6c 6f | 3a 0a 09 40 65 63 68 6f |..#.lilo|:..@echo|
|00001e00| 0a 09 40 65 63 68 6f 20 | 55 6e 63 6f 6d 70 72 65 |..@echo |Uncompre|
|00001e10| 73 73 65 64 20 6b 65 72 | 6e 65 6c 20 69 6d 61 67 |ssed ker|nel imag|
|00001e20| 65 73 20 6e 6f 20 6c 6f | 6e 67 65 72 20 73 75 70 |es no lo|nger sup|
|00001e30| 70 6f 72 74 65 64 2e 20 | 55 73 65 0a 09 40 65 63 |ported. |Use..@ec|
|00001e40| 68 6f 20 5c 22 6d 61 6b | 65 20 7a 6c 69 6c 6f 5c |ho \"mak|e zlilo\|
|00001e50| 22 20 69 6e 73 74 65 61 | 64 2e 0a 09 40 65 63 68 |" instea|d...@ech|
|00001e60| 6f 0a 09 40 65 78 69 74 | 20 31 0a 0a 49 6d 61 67 |o..@exit| 1..Imag|
|00001e70| 65 3a 0a 09 40 65 63 68 | 6f 0a 09 40 65 63 68 6f |e:..@ech|o..@echo|
|00001e80| 20 55 6e 63 6f 6d 70 72 | 65 73 73 65 64 20 6b 65 | Uncompr|essed ke|
|00001e90| 72 6e 65 6c 20 69 6d 61 | 67 65 73 20 6e 6f 20 6c |rnel ima|ges no l|
|00001ea0| 6f 6e 67 65 72 20 73 75 | 70 70 6f 72 74 65 64 2e |onger su|pported.|
|00001eb0| 20 55 73 65 0a 09 40 65 | 63 68 6f 20 5c 22 6d 61 | Use..@e|cho \"ma|
|00001ec0| 6b 65 20 7a 49 6d 61 67 | 65 5c 22 20 69 6e 73 74 |ke zImag|e\" inst|
|00001ed0| 65 61 64 2e 0a 09 40 65 | 63 68 6f 0a 09 40 65 78 |ead...@e|cho..@ex|
|00001ee0| 69 74 20 31 0a 0a 64 69 | 73 6b 3a 0a 09 40 65 63 |it 1..di|sk:..@ec|
|00001ef0| 68 6f 0a 09 40 65 63 68 | 6f 20 55 6e 63 6f 6d 70 |ho..@ech|o Uncomp|
|00001f00| 72 65 73 73 65 64 20 6b | 65 72 6e 65 6c 20 69 6d |ressed k|ernel im|
|00001f10| 61 67 65 73 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 73 |ages no |longer s|
|00001f20| 75 70 70 6f 72 74 65 64 | 2e 20 55 73 65 0a 09 40 |upported|. Use..@|
|00001f30| 65 63 68 6f 20 5c 22 6d | 61 6b 65 20 7a 64 69 73 |echo \"m|ake zdis|
|00001f40| 6b 5c 22 20 69 6e 73 74 | 65 61 64 2e 0a 09 40 65 |k\" inst|ead...@e|
|00001f50| 63 68 6f 0a 09 40 65 78 | 69 74 20 31 0a 00 00 00 |cho..@ex|it 1....|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002000| 6c 69 6e 75 78 2f 62 6f | 6f 74 2f 00 00 00 00 00 |linux/bo|ot/.....|
|00002010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002060| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 20 20 20 |.... 407|55 . |
|00002070| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00002080| 20 20 20 20 20 20 30 20 | 20 35 35 35 30 34 37 30 | 0 | 5550470|
|00002090| 31 35 32 20 20 31 31 31 | 34 35 00 20 35 00 00 00 |152 111|45. 5...|
|000020a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002100| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00002110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002120| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00002130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002200| 6c 69 6e 75 78 2f 62 6f | 6f 74 2f 62 6f 6f 74 73 |linux/bo|ot/boots|
|00002210| 65 63 74 2e 53 00 00 00 | 00 00 00 00 00 00 00 00 |ect.S...|........|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 20 |....1006|44 . |
|00002270| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00002280| 20 20 32 31 37 34 33 20 | 20 35 34 37 37 31 31 30 | 21743 | 5477110|
|00002290| 36 33 37 20 20 31 33 32 | 34 36 00 20 30 00 00 00 |637 132|46. 0...|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 21 0a 21 20 53 59 53 5f | 53 49 5a 45 20 69 73 20 |!.! SYS_|SIZE is |
|00002410| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 63 6c |the numb|er of cl|
|00002420| 69 63 6b 73 20 28 31 36 | 20 62 79 74 65 73 29 20 |icks (16| bytes) |
|00002430| 74 6f 20 62 65 20 6c 6f | 61 64 65 64 2e 0a 21 20 |to be lo|aded..! |
|00002440| 30 78 37 46 30 30 20 69 | 73 20 30 78 37 46 30 30 |0x7F00 i|s 0x7F00|
|00002450| 30 20 62 79 74 65 73 20 | 3d 20 35 30 38 6b 42 2c |0 bytes |= 508kB,|
|00002460| 20 6d 6f 72 65 20 74 68 | 61 6e 20 65 6e 6f 75 67 | more th|an enoug|
|00002470| 68 20 66 6f 72 20 63 75 | 72 72 65 6e 74 0a 21 20 |h for cu|rrent.! |
|00002480| 76 65 72 73 69 6f 6e 73 | 20 6f 66 20 6c 69 6e 75 |versions| of linu|
|00002490| 78 20 77 68 69 63 68 20 | 63 6f 6d 70 72 65 73 73 |x which |compress|
|000024a0| 20 74 68 65 20 6b 65 72 | 6e 65 6c 0a 21 0a 23 69 | the ker|nel.!.#i|
|000024b0| 6e 63 6c 75 64 65 20 3c | 6c 69 6e 75 78 2f 63 6f |nclude <|linux/co|
|000024c0| 6e 66 69 67 2e 68 3e 0a | 53 59 53 53 49 5a 45 20 |nfig.h>.|SYSSIZE |
|000024d0| 3d 20 44 45 46 5f 53 59 | 53 53 49 5a 45 0a 21 0a |= DEF_SY|SSIZE.!.|
|000024e0| 21 09 62 6f 6f 74 73 65 | 63 74 2e 73 09 09 43 6f |!.bootse|ct.s..Co|
|000024f0| 70 79 72 69 67 68 74 20 | 28 43 29 20 31 39 39 31 |pyright |(C) 1991|
|00002500| 2c 20 31 39 39 32 20 4c | 69 6e 75 73 20 54 6f 72 |, 1992 L|inus Tor|
|00002510| 76 61 6c 64 73 0a 21 09 | 6d 6f 64 69 66 69 65 64 |valds.!.|modified|
|00002520| 20 62 79 20 44 72 65 77 | 20 45 63 6b 68 61 72 64 | by Drew| Eckhard|
|00002530| 74 0a 21 09 6d 6f 64 69 | 66 69 65 64 20 62 79 20 |t.!.modi|fied by |
|00002540| 42 72 75 63 65 20 45 76 | 61 6e 73 20 28 62 64 65 |Bruce Ev|ans (bde|
|00002550| 29 0a 21 0a 21 20 62 6f | 6f 74 73 65 63 74 2e 73 |).!.! bo|otsect.s|
|00002560| 20 69 73 20 6c 6f 61 64 | 65 64 20 61 74 20 30 78 | is load|ed at 0x|
|00002570| 37 63 30 30 20 62 79 20 | 74 68 65 20 62 69 6f 73 |7c00 by |the bios|
|00002580| 2d 73 74 61 72 74 75 70 | 20 72 6f 75 74 69 6e 65 |-startup| routine|
|00002590| 73 2c 20 61 6e 64 20 6d | 6f 76 65 73 0a 21 20 69 |s, and m|oves.! i|
|000025a0| 74 73 65 6c 66 20 6f 75 | 74 20 6f 66 20 74 68 65 |tself ou|t of the|
|000025b0| 20 77 61 79 20 74 6f 20 | 61 64 64 72 65 73 73 20 | way to |address |
|000025c0| 30 78 39 30 30 30 30 2c | 20 61 6e 64 20 6a 75 6d |0x90000,| and jum|
|000025d0| 70 73 20 74 68 65 72 65 | 2e 0a 21 0a 21 20 62 64 |ps there|..!.! bd|
|000025e0| 65 20 2d 20 73 68 6f 75 | 6c 64 20 6e 6f 74 20 6a |e - shou|ld not j|
|000025f0| 75 6d 70 20 62 6c 69 6e | 64 6c 79 2c 20 74 68 65 |ump blin|dly, the|
|00002600| 72 65 20 6d 61 79 20 62 | 65 20 73 79 73 74 65 6d |re may b|e system|
|00002610| 73 20 77 69 74 68 20 6f | 6e 6c 79 20 35 31 32 4b |s with o|nly 512K|
|00002620| 20 6c 6f 77 0a 21 20 6d | 65 6d 6f 72 79 2e 20 20 | low.! m|emory. |
|00002630| 55 73 65 20 69 6e 74 20 | 30 78 31 32 20 74 6f 20 |Use int |0x12 to |
|00002640| 67 65 74 20 74 68 65 20 | 74 6f 70 20 6f 66 20 6d |get the |top of m|
|00002650| 65 6d 6f 72 79 2c 20 65 | 74 63 2e 0a 21 0a 21 20 |emory, e|tc..!.! |
|00002660| 49 74 20 74 68 65 6e 20 | 6c 6f 61 64 73 20 27 73 |It then |loads 's|
|00002670| 65 74 75 70 27 20 64 69 | 72 65 63 74 6c 79 20 61 |etup' di|rectly a|
|00002680| 66 74 65 72 20 69 74 73 | 65 6c 66 20 28 30 78 39 |fter its|elf (0x9|
|00002690| 30 32 30 30 29 2c 20 61 | 6e 64 20 74 68 65 20 73 |0200), a|nd the s|
|000026a0| 79 73 74 65 6d 0a 21 20 | 61 74 20 30 78 31 30 30 |ystem.! |at 0x100|
|000026b0| 30 30 2c 20 75 73 69 6e | 67 20 42 49 4f 53 20 69 |00, usin|g BIOS i|
|000026c0| 6e 74 65 72 72 75 70 74 | 73 2e 20 0a 21 0a 21 20 |nterrupt|s. .!.! |
|000026d0| 4e 4f 54 45 21 20 63 75 | 72 72 65 6e 74 6c 79 20 |NOTE! cu|rrently |
|000026e0| 73 79 73 74 65 6d 20 69 | 73 20 61 74 20 6d 6f 73 |system i|s at mos|
|000026f0| 74 20 28 38 2a 36 35 35 | 33 36 2d 34 30 39 36 29 |t (8*655|36-4096)|
|00002700| 20 62 79 74 65 73 20 6c | 6f 6e 67 2e 20 54 68 69 | bytes l|ong. Thi|
|00002710| 73 20 73 68 6f 75 6c 64 | 20 0a 21 20 62 65 20 6e |s should| .! be n|
|00002720| 6f 20 70 72 6f 62 6c 65 | 6d 2c 20 65 76 65 6e 20 |o proble|m, even |
|00002730| 69 6e 20 74 68 65 20 66 | 75 74 75 72 65 2e 20 49 |in the f|uture. I|
|00002740| 20 77 61 6e 74 20 74 6f | 20 6b 65 65 70 20 69 74 | want to| keep it|
|00002750| 20 73 69 6d 70 6c 65 2e | 20 54 68 69 73 20 35 30 | simple.| This 50|
|00002760| 38 20 6b 42 0a 21 20 6b | 65 72 6e 65 6c 20 73 69 |8 kB.! k|ernel si|
|00002770| 7a 65 20 73 68 6f 75 6c | 64 20 62 65 20 65 6e 6f |ze shoul|d be eno|
|00002780| 75 67 68 2c 20 65 73 70 | 65 63 69 61 6c 6c 79 20 |ugh, esp|ecially |
|00002790| 61 73 20 74 68 69 73 20 | 64 6f 65 73 6e 27 74 20 |as this |doesn't |
|000027a0| 63 6f 6e 74 61 69 6e 20 | 74 68 65 0a 21 20 62 75 |contain |the.! bu|
|000027b0| 66 66 65 72 20 63 61 63 | 68 65 20 61 73 20 69 6e |ffer cac|he as in|
|000027c0| 20 6d 69 6e 69 78 20 28 | 61 6e 64 20 65 73 70 65 | minix (|and espe|
|000027d0| 63 69 61 6c 6c 79 20 6e | 6f 77 20 74 68 61 74 20 |cially n|ow that |
|000027e0| 74 68 65 20 6b 65 72 6e | 65 6c 20 69 73 20 0a 21 |the kern|el is .!|
|000027f0| 20 63 6f 6d 70 72 65 73 | 73 65 64 20 3a 2d 29 0a | compres|sed :-).|
|00002800| 21 0a 21 20 54 68 65 20 | 6c 6f 61 64 65 72 20 68 |!.! The |loader h|
|00002810| 61 73 20 62 65 65 6e 20 | 6d 61 64 65 20 61 73 20 |as been |made as |
|00002820| 73 69 6d 70 6c 65 20 61 | 73 20 70 6f 73 73 69 62 |simple a|s possib|
|00002830| 6c 65 2c 20 61 6e 64 20 | 63 6f 6e 74 69 6e 75 6f |le, and |continuo|
|00002840| 73 0a 21 20 72 65 61 64 | 20 65 72 72 6f 72 73 20 |s.! read| errors |
|00002850| 77 69 6c 6c 20 72 65 73 | 75 6c 74 20 69 6e 20 61 |will res|ult in a|
|00002860| 20 75 6e 62 72 65 61 6b | 61 62 6c 65 20 6c 6f 6f | unbreak|able loo|
|00002870| 70 2e 20 52 65 62 6f 6f | 74 20 62 79 20 68 61 6e |p. Reboo|t by han|
|00002880| 64 2e 20 49 74 0a 21 20 | 6c 6f 61 64 73 20 70 72 |d. It.! |loads pr|
|00002890| 65 74 74 79 20 66 61 73 | 74 20 62 79 20 67 65 74 |etty fas|t by get|
|000028a0| 74 69 6e 67 20 77 68 6f | 6c 65 20 74 72 61 63 6b |ting who|le track|
|000028b0| 73 20 61 74 20 61 20 74 | 69 6d 65 20 77 68 65 6e |s at a t|ime when|
|000028c0| 65 76 65 72 20 70 6f 73 | 73 69 62 6c 65 2e 0a 0a |ever pos|sible...|
|000028d0| 2e 74 65 78 74 0a 0a 53 | 45 54 55 50 53 45 43 53 |.text..S|ETUPSECS|
|000028e0| 20 3d 20 34 09 09 09 09 | 21 20 6e 72 20 6f 66 20 | = 4....|! nr of |
|000028f0| 73 65 74 75 70 2d 73 65 | 63 74 6f 72 73 0a 42 4f |setup-se|ctors.BO|
|00002900| 4f 54 53 45 47 20 20 20 | 3d 20 30 78 30 37 43 30 |OTSEG |= 0x07C0|
|00002910| 09 09 09 21 20 6f 72 69 | 67 69 6e 61 6c 20 61 64 |...! ori|ginal ad|
|00002920| 64 72 65 73 73 20 6f 66 | 20 62 6f 6f 74 2d 73 65 |dress of| boot-se|
|00002930| 63 74 6f 72 0a 49 4e 49 | 54 53 45 47 20 20 20 3d |ctor.INI|TSEG =|
|00002940| 20 44 45 46 5f 49 4e 49 | 54 53 45 47 09 09 09 21 | DEF_INI|TSEG...!|
|00002950| 20 77 65 20 6d 6f 76 65 | 20 62 6f 6f 74 20 68 65 | we move| boot he|
|00002960| 72 65 20 2d 20 6f 75 74 | 20 6f 66 20 74 68 65 20 |re - out| of the |
|00002970| 77 61 79 0a 53 45 54 55 | 50 53 45 47 20 20 3d 20 |way.SETU|PSEG = |
|00002980| 44 45 46 5f 53 45 54 55 | 50 53 45 47 09 09 21 20 |DEF_SETU|PSEG..! |
|00002990| 73 65 74 75 70 20 73 74 | 61 72 74 73 20 68 65 72 |setup st|arts her|
|000029a0| 65 0a 53 59 53 53 45 47 | 20 20 20 20 3d 20 44 45 |e.SYSSEG| = DE|
|000029b0| 46 5f 53 59 53 53 45 47 | 09 09 09 21 20 73 79 73 |F_SYSSEG|...! sys|
|000029c0| 74 65 6d 20 6c 6f 61 64 | 65 64 20 61 74 20 30 78 |tem load|ed at 0x|
|000029d0| 31 30 30 30 30 20 28 36 | 35 35 33 36 29 2e 0a 0a |10000 (6|5536)...|
|000029e0| 21 20 52 4f 4f 54 5f 44 | 45 56 20 26 20 53 57 41 |! ROOT_D|EV & SWA|
|000029f0| 50 5f 44 45 56 20 61 72 | 65 20 6e 6f 77 20 77 72 |P_DEV ar|e now wr|
|00002a00| 69 74 74 65 6e 20 62 79 | 20 22 62 75 69 6c 64 22 |itten by| "build"|
|00002a10| 2e 0a 52 4f 4f 54 5f 44 | 45 56 20 3d 20 30 0a 53 |..ROOT_D|EV = 0.S|
|00002a20| 57 41 50 5f 44 45 56 20 | 3d 20 30 0a 23 69 66 6e |WAP_DEV |= 0.#ifn|
|00002a30| 64 65 66 20 53 56 47 41 | 5f 4d 4f 44 45 0a 23 64 |def SVGA|_MODE.#d|
|00002a40| 65 66 69 6e 65 20 53 56 | 47 41 5f 4d 4f 44 45 20 |efine SV|GA_MODE |
|00002a50| 41 53 4b 5f 56 47 41 0a | 23 65 6e 64 69 66 0a 23 |ASK_VGA.|#endif.#|
|00002a60| 69 66 6e 64 65 66 20 52 | 41 4d 44 49 53 4b 0a 23 |ifndef R|AMDISK.#|
|00002a70| 64 65 66 69 6e 65 20 52 | 41 4d 44 49 53 4b 20 30 |define R|AMDISK 0|
|00002a80| 0a 23 65 6e 64 69 66 20 | 0a 23 69 66 6e 64 65 66 |.#endif |.#ifndef|
|00002a90| 20 43 4f 4e 46 49 47 5f | 52 4f 4f 54 5f 52 44 4f | CONFIG_|ROOT_RDO|
|00002aa0| 4e 4c 59 0a 23 64 65 66 | 69 6e 65 20 43 4f 4e 46 |NLY.#def|ine CONF|
|00002ab0| 49 47 5f 52 4f 4f 54 5f | 52 44 4f 4e 4c 59 20 30 |IG_ROOT_|RDONLY 0|
|00002ac0| 0a 23 65 6e 64 69 66 0a | 0a 21 20 6c 64 38 36 20 |.#endif.|.! ld86 |
|00002ad0| 72 65 71 75 69 72 65 73 | 20 61 6e 20 65 6e 74 72 |requires| an entr|
|00002ae0| 79 20 73 79 6d 62 6f 6c | 2e 20 54 68 69 73 20 6d |y symbol|. This m|
|00002af0| 61 79 20 61 73 20 77 65 | 6c 6c 20 62 65 20 74 68 |ay as we|ll be th|
|00002b00| 65 20 75 73 75 61 6c 20 | 6f 6e 65 2e 0a 2e 67 6c |e usual |one...gl|
|00002b10| 6f 62 6c 09 5f 6d 61 69 | 6e 0a 5f 6d 61 69 6e 3a |obl._mai|n._main:|
|00002b20| 0a 23 69 66 20 30 20 2f | 2a 20 68 6f 6f 6b 20 66 |.#if 0 /|* hook f|
|00002b30| 6f 72 20 64 65 62 75 67 | 67 65 72 2c 20 68 61 72 |or debug|ger, har|
|00002b40| 6d 6c 65 73 73 20 75 6e | 6c 65 73 73 20 42 49 4f |mless un|less BIO|
|00002b50| 53 20 69 73 20 66 75 73 | 73 79 20 28 6f 6c 64 20 |S is fus|sy (old |
|00002b60| 48 50 29 20 2a 2f 0a 09 | 69 6e 74 09 33 0a 23 65 |HP) */..|int.3.#e|
|00002b70| 6e 64 69 66 0a 09 6d 6f | 76 09 61 78 2c 23 42 4f |ndif..mo|v.ax,#BO|
|00002b80| 4f 54 53 45 47 0a 09 6d | 6f 76 09 64 73 2c 61 78 |OTSEG..m|ov.ds,ax|
|00002b90| 0a 09 6d 6f 76 09 61 78 | 2c 23 49 4e 49 54 53 45 |..mov.ax|,#INITSE|
|00002ba0| 47 0a 09 6d 6f 76 09 65 | 73 2c 61 78 0a 09 6d 6f |G..mov.e|s,ax..mo|
|00002bb0| 76 09 63 78 2c 23 32 35 | 36 0a 09 73 75 62 09 73 |v.cx,#25|6..sub.s|
|00002bc0| 69 2c 73 69 0a 09 73 75 | 62 09 64 69 2c 64 69 0a |i,si..su|b.di,di.|
|00002bd0| 09 63 6c 64 0a 09 72 65 | 70 0a 09 6d 6f 76 73 77 |.cld..re|p..movsw|
|00002be0| 0a 09 6a 6d 70 69 09 67 | 6f 2c 49 4e 49 54 53 45 |..jmpi.g|o,INITSE|
|00002bf0| 47 0a 0a 67 6f 3a 09 6d | 6f 76 09 61 78 2c 63 73 |G..go:.m|ov.ax,cs|
|00002c00| 09 09 0a 09 6d 6f 76 09 | 64 78 2c 23 30 78 34 30 |....mov.|dx,#0x40|
|00002c10| 30 30 2d 31 32 09 21 20 | 30 78 34 30 30 30 20 69 |00-12.! |0x4000 i|
|00002c20| 73 20 61 72 62 69 74 72 | 61 72 79 20 76 61 6c 75 |s arbitr|ary valu|
|00002c30| 65 20 3e 3d 20 6c 65 6e | 67 74 68 20 6f 66 0a 09 |e >= len|gth of..|
|00002c40| 09 09 09 21 20 62 6f 6f | 74 73 65 63 74 20 2b 20 |...! boo|tsect + |
|00002c50| 6c 65 6e 67 74 68 20 6f | 66 20 73 65 74 75 70 20 |length o|f setup |
|00002c60| 2b 20 72 6f 6f 6d 20 66 | 6f 72 20 73 74 61 63 6b |+ room f|or stack|
|00002c70| 0a 09 09 09 09 21 20 31 | 32 20 69 73 20 64 69 73 |.....! 1|2 is dis|
|00002c80| 6b 20 70 61 72 6d 20 73 | 69 7a 65 0a 0a 21 20 62 |k parm s|ize..! b|
|00002c90| 64 65 20 2d 20 63 68 61 | 6e 67 65 64 20 30 78 66 |de - cha|nged 0xf|
|00002ca0| 66 30 30 20 74 6f 20 30 | 78 34 30 30 30 20 74 6f |f00 to 0|x4000 to|
|00002cb0| 20 75 73 65 20 64 65 62 | 75 67 67 65 72 20 61 74 | use deb|ugger at|
|00002cc0| 20 30 78 36 34 30 30 20 | 75 70 20 28 62 64 65 29 | 0x6400 |up (bde)|
|00002cd0| 2e 20 20 57 65 0a 21 20 | 77 6f 75 6c 64 6e 27 74 |. We.! |wouldn't|
|00002ce0| 20 68 61 76 65 20 74 6f | 20 77 6f 72 72 79 20 61 | have to| worry a|
|00002cf0| 62 6f 75 74 20 74 68 69 | 73 20 69 66 20 77 65 20 |bout thi|s if we |
|00002d00| 63 68 65 63 6b 65 64 20 | 74 68 65 20 74 6f 70 20 |checked |the top |
|00002d10| 6f 66 20 6d 65 6d 6f 72 | 79 2e 20 20 41 6c 73 6f |of memor|y. Also|
|00002d20| 0a 21 20 6d 79 20 42 49 | 4f 53 20 63 61 6e 20 62 |.! my BI|OS can b|
|00002d30| 65 20 63 6f 6e 66 69 67 | 75 72 65 64 20 74 6f 20 |e config|ured to |
|00002d40| 70 75 74 20 74 68 65 20 | 77 69 6e 69 20 64 72 69 |put the |wini dri|
|00002d50| 76 65 20 74 61 62 6c 65 | 73 20 69 6e 20 68 69 67 |ve table|s in hig|
|00002d60| 68 20 6d 65 6d 6f 72 79 | 0a 21 20 69 6e 73 74 65 |h memory|.! inste|
|00002d70| 61 64 20 6f 66 20 69 6e | 20 74 68 65 20 76 65 63 |ad of in| the vec|
|00002d80| 74 6f 72 20 74 61 62 6c | 65 2e 20 20 54 68 65 20 |tor tabl|e. The |
|00002d90| 6f 6c 64 20 73 74 61 63 | 6b 20 6d 69 67 68 74 20 |old stac|k might |
|00002da0| 68 61 76 65 20 63 6c 6f | 62 62 65 72 65 64 20 74 |have clo|bbered t|
|00002db0| 68 65 0a 21 20 64 72 69 | 76 65 20 74 61 62 6c 65 |he.! dri|ve table|
|00002dc0| 2e 0a 0a 09 6d 6f 76 09 | 64 73 2c 61 78 0a 09 6d |....mov.|ds,ax..m|
|00002dd0| 6f 76 09 65 73 2c 61 78 | 0a 09 6d 6f 76 09 73 73 |ov.es,ax|..mov.ss|
|00002de0| 2c 61 78 09 09 21 20 70 | 75 74 20 73 74 61 63 6b |,ax..! p|ut stack|
|00002df0| 20 61 74 20 49 4e 49 54 | 53 45 47 3a 30 78 34 30 | at INIT|SEG:0x40|
|00002e00| 30 30 2d 31 32 2e 0a 09 | 6d 6f 76 09 73 70 2c 64 |00-12...|mov.sp,d|
|00002e10| 78 0a 2f 2a 0a 20 2a 09 | 4d 61 6e 79 20 42 49 4f |x./*. *.|Many BIO|
|00002e20| 53 27 73 20 64 65 66 61 | 75 6c 74 20 64 69 73 6b |S's defa|ult disk|
|00002e30| 20 70 61 72 61 6d 65 74 | 65 72 20 74 61 62 6c 65 | paramet|er table|
|00002e40| 73 20 77 69 6c 6c 20 6e | 6f 74 20 0a 20 2a 09 72 |s will n|ot . *.r|
|00002e50| 65 63 6f 67 6e 69 7a 65 | 20 6d 75 6c 74 69 2d 73 |ecognize| multi-s|
|00002e60| 65 63 74 6f 72 20 72 65 | 61 64 73 20 62 65 79 6f |ector re|ads beyo|
|00002e70| 6e 64 20 74 68 65 20 6d | 61 78 69 6d 75 6d 20 73 |nd the m|aximum s|
|00002e80| 65 63 74 6f 72 20 6e 75 | 6d 62 65 72 0a 20 2a 09 |ector nu|mber. *.|
|00002e90| 73 70 65 63 69 66 69 65 | 64 20 69 6e 20 74 68 65 |specifie|d in the|
|00002ea0| 20 64 65 66 61 75 6c 74 | 20 64 69 73 6b 65 74 74 | default| diskett|
|00002eb0| 65 20 70 61 72 61 6d 65 | 74 65 72 20 74 61 62 6c |e parame|ter tabl|
|00002ec0| 65 73 20 2d 20 74 68 69 | 73 20 6d 61 79 0a 20 2a |es - thi|s may. *|
|00002ed0| 09 6d 65 61 6e 20 37 20 | 73 65 63 74 6f 72 73 20 |.mean 7 |sectors |
|00002ee0| 69 6e 20 73 6f 6d 65 20 | 63 61 73 65 73 2e 0a 20 |in some |cases.. |
|00002ef0| 2a 0a 20 2a 09 53 69 6e | 63 65 20 73 69 6e 67 6c |*. *.Sin|ce singl|
|00002f00| 65 20 73 65 63 74 6f 72 | 20 72 65 61 64 73 20 61 |e sector| reads a|
|00002f10| 72 65 20 73 6c 6f 77 20 | 61 6e 64 20 6f 75 74 20 |re slow |and out |
|00002f20| 6f 66 20 74 68 65 20 71 | 75 65 73 74 69 6f 6e 2c |of the q|uestion,|
|00002f30| 0a 20 2a 09 77 65 20 6d | 75 73 74 20 74 61 6b 65 |. *.we m|ust take|
|00002f40| 20 63 61 72 65 20 6f 66 | 20 74 68 69 73 20 62 79 | care of| this by|
|00002f50| 20 63 72 65 61 74 69 6e | 67 20 6e 65 77 20 70 61 | creatin|g new pa|
|00002f60| 72 61 6d 65 74 65 72 20 | 74 61 62 6c 65 73 0a 20 |rameter |tables. |
|00002f70| 2a 09 28 66 6f 72 20 74 | 68 65 20 66 69 72 73 74 |*.(for t|he first|
|00002f80| 20 64 69 73 6b 29 20 69 | 6e 20 52 41 4d 2e 20 20 | disk) i|n RAM. |
|00002f90| 57 65 20 77 69 6c 6c 20 | 73 65 74 20 74 68 65 20 |We will |set the |
|00002fa0| 6d 61 78 69 6d 75 6d 20 | 73 65 63 74 6f 72 0a 20 |maximum |sector. |
|00002fb0| 2a 09 63 6f 75 6e 74 20 | 74 6f 20 31 38 20 2d 20 |*.count |to 18 - |
|00002fc0| 74 68 65 20 6d 6f 73 74 | 20 77 65 20 77 69 6c 6c |the most| we will|
|00002fd0| 20 65 6e 63 6f 75 6e 74 | 65 72 20 6f 6e 20 61 6e | encount|er on an|
|00002fe0| 20 48 44 20 31 2e 34 34 | 2e 20 20 0a 20 2a 0a 20 | HD 1.44|. . *. |
|00002ff0| 2a 09 48 69 67 68 20 64 | 6f 65 73 6e 27 74 20 68 |*.High d|oesn't h|
|00003000| 75 72 74 2e 20 20 4c 6f | 77 20 64 6f 65 73 2e 0a |urt. Lo|w does..|
|00003010| 20 2a 0a 20 2a 09 53 65 | 67 6d 65 6e 74 73 20 61 | *. *.Se|gments a|
|00003020| 72 65 20 61 73 20 66 6f | 6c 6c 6f 77 73 3a 20 64 |re as fo|llows: d|
|00003030| 73 3d 65 73 3d 73 73 3d | 63 73 20 2d 20 49 4e 49 |s=es=ss=|cs - INI|
|00003040| 54 53 45 47 2c 0a 20 2a | 09 09 66 73 20 3d 20 30 |TSEG,. *|..fs = 0|
|00003050| 2c 20 67 73 20 3d 20 70 | 61 72 61 6d 65 74 65 72 |, gs = p|arameter|
|00003060| 20 74 61 62 6c 65 20 73 | 65 67 6d 65 6e 74 0a 20 | table s|egment. |
|00003070| 2a 2f 0a 0a 09 70 75 73 | 68 09 23 30 0a 09 70 6f |*/...pus|h.#0..po|
|00003080| 70 09 66 73 0a 09 6d 6f | 76 09 62 78 2c 23 30 78 |p.fs..mo|v.bx,#0x|
|00003090| 37 38 09 09 21 20 66 73 | 3a 62 78 20 69 73 20 70 |78..! fs|:bx is p|
|000030a0| 61 72 61 6d 65 74 65 72 | 20 74 61 62 6c 65 20 61 |arameter| table a|
|000030b0| 64 64 72 65 73 73 0a 09 | 73 65 67 20 66 73 0a 09 |ddress..|seg fs..|
|000030c0| 6c 67 73 09 73 69 2c 28 | 62 78 29 09 09 09 21 20 |lgs.si,(|bx)...! |
|000030d0| 67 73 3a 73 69 20 69 73 | 20 73 6f 75 72 63 65 0a |gs:si is| source.|
|000030e0| 0a 09 6d 6f 76 09 64 69 | 2c 64 78 09 09 09 21 20 |..mov.di|,dx...! |
|000030f0| 65 73 3a 64 69 20 69 73 | 20 64 65 73 74 69 6e 61 |es:di is| destina|
|00003100| 74 69 6f 6e 0a 09 6d 6f | 76 09 63 78 2c 23 36 09 |tion..mo|v.cx,#6.|
|00003110| 09 09 21 20 63 6f 70 79 | 20 31 32 20 62 79 74 65 |..! copy| 12 byte|
|00003120| 73 0a 09 63 6c 64 0a 0a | 09 72 65 70 0a 09 73 65 |s..cld..|.rep..se|
|00003130| 67 20 67 73 0a 09 6d 6f | 76 73 77 0a 0a 09 6d 6f |g gs..mo|vsw...mo|
|00003140| 76 09 64 69 2c 64 78 0a | 09 6d 6f 76 62 09 34 28 |v.di,dx.|.movb.4(|
|00003150| 64 69 29 2c 2a 31 38 09 | 09 21 20 70 61 74 63 68 |di),*18.|.! patch|
|00003160| 20 73 65 63 74 6f 72 20 | 63 6f 75 6e 74 0a 0a 09 | sector |count...|
|00003170| 73 65 67 20 66 73 0a 09 | 6d 6f 76 09 28 62 78 29 |seg fs..|mov.(bx)|
|00003180| 2c 64 69 0a 09 73 65 67 | 20 66 73 0a 09 6d 6f 76 |,di..seg| fs..mov|
|00003190| 09 32 28 62 78 29 2c 65 | 73 0a 0a 09 6d 6f 76 09 |.2(bx),e|s...mov.|
|000031a0| 61 78 2c 63 73 0a 09 6d | 6f 76 09 66 73 2c 61 78 |ax,cs..m|ov.fs,ax|
|000031b0| 0a 09 6d 6f 76 09 67 73 | 2c 61 78 0a 09 0a 09 78 |..mov.gs|,ax....x|
|000031c0| 6f 72 09 61 68 2c 61 68 | 09 09 09 21 20 72 65 73 |or.ah,ah|...! res|
|000031d0| 65 74 20 46 44 43 20 0a | 09 78 6f 72 09 64 6c 2c |et FDC .|.xor.dl,|
|000031e0| 64 6c 0a 09 69 6e 74 20 | 09 30 78 31 33 09 0a 0a |dl..int |.0x13...|
|000031f0| 21 20 6c 6f 61 64 20 74 | 68 65 20 73 65 74 75 70 |! load t|he setup|
|00003200| 2d 73 65 63 74 6f 72 73 | 20 64 69 72 65 63 74 6c |-sectors| directl|
|00003210| 79 20 61 66 74 65 72 20 | 74 68 65 20 62 6f 6f 74 |y after |the boot|
|00003220| 62 6c 6f 63 6b 2e 0a 21 | 20 4e 6f 74 65 20 74 68 |block..!| Note th|
|00003230| 61 74 20 27 65 73 27 20 | 69 73 20 61 6c 72 65 61 |at 'es' |is alrea|
|00003240| 64 79 20 73 65 74 20 75 | 70 2e 0a 0a 6c 6f 61 64 |dy set u|p...load|
|00003250| 5f 73 65 74 75 70 3a 0a | 09 78 6f 72 09 64 78 2c |_setup:.|.xor.dx,|
|00003260| 20 64 78 09 09 09 21 20 | 64 72 69 76 65 20 30 2c | dx...! |drive 0,|
|00003270| 20 68 65 61 64 20 30 0a | 09 6d 6f 76 09 63 78 2c | head 0.|.mov.cx,|
|00003280| 23 30 78 30 30 30 32 09 | 09 21 20 73 65 63 74 6f |#0x0002.|.! secto|
|00003290| 72 20 32 2c 20 74 72 61 | 63 6b 20 30 0a 09 6d 6f |r 2, tra|ck 0..mo|
|000032a0| 76 09 62 78 2c 23 30 78 | 30 32 30 30 09 09 21 20 |v.bx,#0x|0200..! |
|000032b0| 61 64 64 72 65 73 73 20 | 3d 20 35 31 32 2c 20 69 |address |= 512, i|
|000032c0| 6e 20 49 4e 49 54 53 45 | 47 0a 09 6d 6f 76 09 61 |n INITSE|G..mov.a|
|000032d0| 78 2c 23 30 78 30 32 30 | 30 2b 53 45 54 55 50 53 |x,#0x020|0+SETUPS|
|000032e0| 45 43 53 09 21 20 73 65 | 72 76 69 63 65 20 32 2c |ECS.! se|rvice 2,|
|000032f0| 20 6e 72 20 6f 66 20 73 | 65 63 74 6f 72 73 0a 09 | nr of s|ectors..|
|00003300| 09 09 09 09 21 20 28 61 | 73 73 75 6d 65 20 61 6c |....! (a|ssume al|
|00003310| 6c 20 6f 6e 20 68 65 61 | 64 20 30 2c 20 74 72 61 |l on hea|d 0, tra|
|00003320| 63 6b 20 30 29 0a 09 69 | 6e 74 09 30 78 31 33 09 |ck 0)..i|nt.0x13.|
|00003330| 09 09 21 20 72 65 61 64 | 20 69 74 0a 09 6a 6e 63 |..! read| it..jnc|
|00003340| 09 6f 6b 5f 6c 6f 61 64 | 5f 73 65 74 75 70 09 09 |.ok_load|_setup..|
|00003350| 21 20 6f 6b 20 2d 20 63 | 6f 6e 74 69 6e 75 65 0a |! ok - c|ontinue.|
|00003360| 0a 09 70 75 73 68 09 61 | 78 09 09 09 21 20 64 75 |..push.a|x...! du|
|00003370| 6d 70 20 65 72 72 6f 72 | 20 63 6f 64 65 0a 09 63 |mp error| code..c|
|00003380| 61 6c 6c 09 70 72 69 6e | 74 5f 6e 6c 0a 09 6d 6f |all.prin|t_nl..mo|
|00003390| 76 09 62 70 2c 20 73 70 | 0a 09 63 61 6c 6c 09 70 |v.bp, sp|..call.p|
|000033a0| 72 69 6e 74 5f 68 65 78 | 0a 09 70 6f 70 09 61 78 |rint_hex|..pop.ax|
|000033b0| 09 0a 09 0a 09 78 6f 72 | 09 64 6c 2c 20 64 6c 09 |.....xor|.dl, dl.|
|000033c0| 09 09 21 20 72 65 73 65 | 74 20 46 44 43 0a 09 78 |..! rese|t FDC..x|
|000033d0| 6f 72 09 61 68 2c 20 61 | 68 0a 09 69 6e 74 09 30 |or.ah, a|h..int.0|
|000033e0| 78 31 33 0a 09 6a 6d 70 | 09 6c 6f 61 64 5f 73 65 |x13..jmp|.load_se|
|000033f0| 74 75 70 0a 0a 6f 6b 5f | 6c 6f 61 64 5f 73 65 74 |tup..ok_|load_set|
|00003400| 75 70 3a 0a 0a 21 20 47 | 65 74 20 64 69 73 6b 20 |up:..! G|et disk |
|00003410| 64 72 69 76 65 20 70 61 | 72 61 6d 65 74 65 72 73 |drive pa|rameters|
|00003420| 2c 20 73 70 65 63 69 66 | 69 63 61 6c 6c 79 20 6e |, specif|ically n|
|00003430| 72 20 6f 66 20 73 65 63 | 74 6f 72 73 2f 74 72 61 |r of sec|tors/tra|
|00003440| 63 6b 0a 0a 23 69 66 20 | 30 0a 0a 21 20 62 64 65 |ck..#if |0..! bde|
|00003450| 20 2d 20 74 68 65 20 50 | 68 6f 65 6e 69 78 20 42 | - the P|hoenix B|
|00003460| 49 4f 53 20 6d 61 6e 75 | 61 6c 20 73 61 79 73 20 |IOS manu|al says |
|00003470| 66 75 6e 63 74 69 6f 6e | 20 30 78 30 38 20 6f 6e |function| 0x08 on|
|00003480| 6c 79 20 77 6f 72 6b 73 | 20 66 6f 72 20 66 69 78 |ly works| for fix|
|00003490| 65 64 0a 21 20 64 69 73 | 6b 73 2e 20 20 49 74 20 |ed.! dis|ks. It |
|000034a0| 64 6f 65 73 6e 27 74 20 | 77 6f 72 6b 20 66 6f 72 |doesn't |work for|
|000034b0| 20 6f 6e 65 20 6f 66 20 | 6d 79 20 42 49 4f 53 27 | one of |my BIOS'|
|000034c0| 73 20 28 31 39 38 37 20 | 41 77 61 72 64 29 2e 20 |s (1987 |Award). |
|000034d0| 20 49 74 20 77 61 73 0a | 21 20 66 61 74 61 6c 20 | It was.|! fatal |
|000034e0| 6e 6f 74 20 74 6f 20 63 | 68 65 63 6b 20 74 68 65 |not to c|heck the|
|000034f0| 20 65 72 72 6f 72 20 63 | 6f 64 65 2e 0a 0a 09 78 | error c|ode....x|
|00003500| 6f 72 09 64 6c 2c 64 6c | 0a 09 6d 6f 76 09 61 68 |or.dl,dl|..mov.ah|
|00003510| 2c 23 30 78 30 38 09 09 | 21 20 41 48 3d 38 20 69 |,#0x08..|! AH=8 i|
|00003520| 73 20 67 65 74 20 64 72 | 69 76 65 20 70 61 72 61 |s get dr|ive para|
|00003530| 6d 65 74 65 72 73 0a 09 | 69 6e 74 09 30 78 31 33 |meters..|int.0x13|
|00003540| 0a 09 78 6f 72 09 63 68 | 2c 63 68 0a 23 65 6c 73 |..xor.ch|,ch.#els|
|00003550| 65 0a 0a 21 20 49 74 20 | 73 65 65 6d 73 20 74 68 |e..! It |seems th|
|00003560| 61 74 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 42 |at there| is no B|
|00003570| 49 4f 53 20 63 61 6c 6c | 20 74 6f 20 67 65 74 20 |IOS call| to get |
|00003580| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 73 65 |the numb|er of se|
|00003590| 63 74 6f 72 73 2e 20 20 | 47 75 65 73 73 0a 21 20 |ctors. |Guess.! |
|000035a0| 31 38 20 73 65 63 74 6f | 72 73 20 69 66 20 73 65 |18 secto|rs if se|
|000035b0| 63 74 6f 72 20 31 38 20 | 63 61 6e 20 62 65 20 72 |ctor 18 |can be r|
|000035c0| 65 61 64 2c 20 31 35 20 | 69 66 20 73 65 63 74 6f |ead, 15 |if secto|
|000035d0| 72 20 31 35 20 63 61 6e | 20 62 65 20 72 65 61 64 |r 15 can| be read|
|000035e0| 2e 0a 21 20 4f 74 68 65 | 72 77 69 73 65 20 67 75 |..! Othe|rwise gu|
|000035f0| 65 73 73 20 39 2e 0a 0a | 09 78 6f 72 09 64 78 2c |ess 9...|.xor.dx,|
|00003600| 20 64 78 09 09 09 21 20 | 64 72 69 76 65 20 30 2c | dx...! |drive 0,|
|00003610| 20 68 65 61 64 20 30 0a | 09 6d 6f 76 09 63 78 2c | head 0.|.mov.cx,|
|00003620| 23 30 78 30 30 31 32 09 | 09 21 20 73 65 63 74 6f |#0x0012.|.! secto|
|00003630| 72 20 31 38 2c 20 74 72 | 61 63 6b 20 30 0a 09 6d |r 18, tr|ack 0..m|
|00003640| 6f 76 09 62 78 2c 23 30 | 78 30 32 30 30 2b 53 45 |ov.bx,#0|x0200+SE|
|00003650| 54 55 50 53 45 43 53 2a | 30 78 32 30 30 20 20 21 |TUPSECS*|0x200 !|
|00003660| 20 61 64 64 72 65 73 73 | 20 61 66 74 65 72 20 73 | address| after s|
|00003670| 65 74 75 70 20 28 65 73 | 20 3d 20 63 73 29 0a 09 |etup (es| = cs)..|
|00003680| 6d 6f 76 09 61 78 2c 23 | 30 78 30 32 30 31 09 09 |mov.ax,#|0x0201..|
|00003690| 21 20 73 65 72 76 69 63 | 65 20 32 2c 20 31 20 73 |! servic|e 2, 1 s|
|000036a0| 65 63 74 6f 72 0a 09 69 | 6e 74 09 30 78 31 33 0a |ector..i|nt.0x13.|
|000036b0| 09 6a 6e 63 09 67 6f 74 | 5f 73 65 63 74 6f 72 73 |.jnc.got|_sectors|
|000036c0| 0a 09 6d 6f 76 09 63 6c | 2c 23 30 78 30 66 09 09 |..mov.cl|,#0x0f..|
|000036d0| 21 20 73 65 63 74 6f 72 | 20 31 35 0a 09 6d 6f 76 |! sector| 15..mov|
|000036e0| 09 61 78 2c 23 30 78 30 | 32 30 31 09 09 21 20 73 |.ax,#0x0|201..! s|
|000036f0| 65 72 76 69 63 65 20 32 | 2c 20 31 20 73 65 63 74 |ervice 2|, 1 sect|
|00003700| 6f 72 0a 09 69 6e 74 09 | 30 78 31 33 0a 09 6a 6e |or..int.|0x13..jn|
|00003710| 63 09 67 6f 74 5f 73 65 | 63 74 6f 72 73 0a 09 6d |c.got_se|ctors..m|
|00003720| 6f 76 09 63 6c 2c 23 30 | 78 30 39 0a 0a 23 65 6e |ov.cl,#0|x09..#en|
|00003730| 64 69 66 0a 0a 67 6f 74 | 5f 73 65 63 74 6f 72 73 |dif..got|_sectors|
|00003740| 3a 0a 09 73 65 67 20 63 | 73 0a 09 6d 6f 76 09 73 |:..seg c|s..mov.s|
|00003750| 65 63 74 6f 72 73 2c 63 | 78 0a 09 6d 6f 76 09 61 |ectors,c|x..mov.a|
|00003760| 78 2c 23 49 4e 49 54 53 | 45 47 0a 09 6d 6f 76 09 |x,#INITS|EG..mov.|
|00003770| 65 73 2c 61 78 0a 0a 21 | 20 50 72 69 6e 74 20 73 |es,ax..!| Print s|
|00003780| 6f 6d 65 20 69 6e 61 6e | 65 20 6d 65 73 73 61 67 |ome inan|e messag|
|00003790| 65 0a 0a 09 6d 6f 76 09 | 61 68 2c 23 30 78 30 33 |e...mov.|ah,#0x03|
|000037a0| 09 09 21 20 72 65 61 64 | 20 63 75 72 73 6f 72 20 |..! read| cursor |
|000037b0| 70 6f 73 0a 09 78 6f 72 | 09 62 68 2c 62 68 0a 09 |pos..xor|.bh,bh..|
|000037c0| 69 6e 74 09 30 78 31 30 | 0a 09 0a 09 6d 6f 76 09 |int.0x10|....mov.|
|000037d0| 63 78 2c 23 39 0a 09 6d | 6f 76 09 62 78 2c 23 30 |cx,#9..m|ov.bx,#0|
|000037e0| 78 30 30 30 37 09 09 21 | 20 70 61 67 65 20 30 2c |x0007..!| page 0,|
|000037f0| 20 61 74 74 72 69 62 75 | 74 65 20 37 20 28 6e 6f | attribu|te 7 (no|
|00003800| 72 6d 61 6c 29 0a 09 6d | 6f 76 09 62 70 2c 23 6d |rmal)..m|ov.bp,#m|
|00003810| 73 67 31 0a 09 6d 6f 76 | 09 61 78 2c 23 30 78 31 |sg1..mov|.ax,#0x1|
|00003820| 33 30 31 09 09 21 20 77 | 72 69 74 65 20 73 74 72 |301..! w|rite str|
|00003830| 69 6e 67 2c 20 6d 6f 76 | 65 20 63 75 72 73 6f 72 |ing, mov|e cursor|
|00003840| 0a 09 69 6e 74 09 30 78 | 31 30 0a 0a 21 20 6f 6b |..int.0x|10..! ok|
|00003850| 2c 20 77 65 27 76 65 20 | 77 72 69 74 74 65 6e 20 |, we've |written |
|00003860| 74 68 65 20 6d 65 73 73 | 61 67 65 2c 20 6e 6f 77 |the mess|age, now|
|00003870| 0a 21 20 77 65 20 77 61 | 6e 74 20 74 6f 20 6c 6f |.! we wa|nt to lo|
|00003880| 61 64 20 74 68 65 20 73 | 79 73 74 65 6d 20 28 61 |ad the s|ystem (a|
|00003890| 74 20 30 78 31 30 30 30 | 30 29 0a 0a 09 6d 6f 76 |t 0x1000|0)...mov|
|000038a0| 09 61 78 2c 23 53 59 53 | 53 45 47 0a 09 6d 6f 76 |.ax,#SYS|SEG..mov|
|000038b0| 09 65 73 2c 61 78 09 09 | 21 20 73 65 67 6d 65 6e |.es,ax..|! segmen|
|000038c0| 74 20 6f 66 20 30 78 30 | 31 30 30 30 30 0a 09 63 |t of 0x0|10000..c|
|000038d0| 61 6c 6c 09 72 65 61 64 | 5f 69 74 0a 09 63 61 6c |all.read|_it..cal|
|000038e0| 6c 09 6b 69 6c 6c 5f 6d | 6f 74 6f 72 0a 09 63 61 |l.kill_m|otor..ca|
|000038f0| 6c 6c 09 70 72 69 6e 74 | 5f 6e 6c 0a 0a 21 20 41 |ll.print|_nl..! A|
|00003900| 66 74 65 72 20 74 68 61 | 74 20 77 65 20 63 68 65 |fter tha|t we che|
|00003910| 63 6b 20 77 68 69 63 68 | 20 72 6f 6f 74 2d 64 65 |ck which| root-de|
|00003920| 76 69 63 65 20 74 6f 20 | 75 73 65 2e 20 49 66 20 |vice to |use. If |
|00003930| 74 68 65 20 64 65 76 69 | 63 65 20 69 73 0a 21 20 |the devi|ce is.! |
|00003940| 64 65 66 69 6e 65 64 20 | 28 21 3d 20 30 29 2c 20 |defined |(!= 0), |
|00003950| 6e 6f 74 68 69 6e 67 20 | 69 73 20 64 6f 6e 65 20 |nothing |is done |
|00003960| 61 6e 64 20 74 68 65 20 | 67 69 76 65 6e 20 64 65 |and the |given de|
|00003970| 76 69 63 65 20 69 73 20 | 75 73 65 64 2e 0a 21 20 |vice is |used..! |
|00003980| 4f 74 68 65 72 77 69 73 | 65 2c 20 65 69 74 68 65 |Otherwis|e, eithe|
|00003990| 72 20 2f 64 65 76 2f 50 | 53 30 20 28 32 2c 32 38 |r /dev/P|S0 (2,28|
|000039a0| 29 20 6f 72 20 2f 64 65 | 76 2f 61 74 30 20 28 32 |) or /de|v/at0 (2|
|000039b0| 2c 38 29 2c 20 64 65 70 | 65 6e 64 69 6e 67 0a 21 |,8), dep|ending.!|
|000039c0| 20 6f 6e 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | on the |number o|
|000039d0| 66 20 73 65 63 74 6f 72 | 73 20 74 68 61 74 20 74 |f sector|s that t|
|000039e0| 68 65 20 42 49 4f 53 20 | 72 65 70 6f 72 74 73 20 |he BIOS |reports |
|000039f0| 63 75 72 72 65 6e 74 6c | 79 2e 0a 0a 09 73 65 67 |currentl|y....seg|
|00003a00| 20 63 73 0a 09 6d 6f 76 | 09 61 78 2c 72 6f 6f 74 | cs..mov|.ax,root|
|00003a10| 5f 64 65 76 0a 09 6f 72 | 09 61 78 2c 61 78 0a 09 |_dev..or|.ax,ax..|
|00003a20| 6a 6e 65 09 72 6f 6f 74 | 5f 64 65 66 69 6e 65 64 |jne.root|_defined|
|00003a30| 0a 09 73 65 67 20 63 73 | 0a 09 6d 6f 76 09 62 78 |..seg cs|..mov.bx|
|00003a40| 2c 73 65 63 74 6f 72 73 | 0a 09 6d 6f 76 09 61 78 |,sectors|..mov.ax|
|00003a50| 2c 23 30 78 30 32 30 38 | 09 09 21 20 2f 64 65 76 |,#0x0208|..! /dev|
|00003a60| 2f 70 73 30 20 2d 20 31 | 2e 32 4d 62 0a 09 63 6d |/ps0 - 1|.2Mb..cm|
|00003a70| 70 09 62 78 2c 23 31 35 | 0a 09 6a 65 09 72 6f 6f |p.bx,#15|..je.roo|
|00003a80| 74 5f 64 65 66 69 6e 65 | 64 0a 09 6d 6f 76 09 61 |t_define|d..mov.a|
|00003a90| 78 2c 23 30 78 30 32 31 | 63 09 09 21 20 2f 64 65 |x,#0x021|c..! /de|
|00003aa0| 76 2f 50 53 30 20 2d 20 | 31 2e 34 34 4d 62 0a 09 |v/PS0 - |1.44Mb..|
|00003ab0| 63 6d 70 09 62 78 2c 23 | 31 38 0a 09 6a 65 09 72 |cmp.bx,#|18..je.r|
|00003ac0| 6f 6f 74 5f 64 65 66 69 | 6e 65 64 0a 09 6d 6f 76 |oot_defi|ned..mov|
|00003ad0| 09 61 78 2c 23 30 78 30 | 32 30 30 09 09 21 20 2f |.ax,#0x0|200..! /|
|00003ae0| 64 65 76 2f 66 64 30 20 | 2d 20 61 75 74 6f 64 65 |dev/fd0 |- autode|
|00003af0| 74 65 63 74 0a 72 6f 6f | 74 5f 64 65 66 69 6e 65 |tect.roo|t_define|
|00003b00| 64 3a 0a 09 73 65 67 20 | 63 73 0a 09 6d 6f 76 09 |d:..seg |cs..mov.|
|00003b10| 72 6f 6f 74 5f 64 65 76 | 2c 61 78 0a 0a 21 20 61 |root_dev|,ax..! a|
|00003b20| 66 74 65 72 20 74 68 61 | 74 20 28 65 76 65 72 79 |fter tha|t (every|
|00003b30| 74 69 6e 67 20 6c 6f 61 | 64 65 64 29 2c 20 77 65 |ting loa|ded), we|
|00003b40| 20 6a 75 6d 70 20 74 6f | 0a 21 20 74 68 65 20 73 | jump to|.! the s|
|00003b50| 65 74 75 70 2d 72 6f 75 | 74 69 6e 65 20 6c 6f 61 |etup-rou|tine loa|
|00003b60| 64 65 64 20 64 69 72 65 | 63 74 6c 79 20 61 66 74 |ded dire|ctly aft|
|00003b70| 65 72 0a 21 20 74 68 65 | 20 62 6f 6f 74 62 6c 6f |er.! the| bootblo|
|00003b80| 63 6b 3a 0a 0a 09 6a 6d | 70 69 09 30 2c 53 45 54 |ck:...jm|pi.0,SET|
|00003b90| 55 50 53 45 47 0a 0a 21 | 20 54 68 69 73 20 72 6f |UPSEG..!| This ro|
|00003ba0| 75 74 69 6e 65 20 6c 6f | 61 64 73 20 74 68 65 20 |utine lo|ads the |
|00003bb0| 73 79 73 74 65 6d 20 61 | 74 20 61 64 64 72 65 73 |system a|t addres|
|00003bc0| 73 20 30 78 31 30 30 30 | 30 2c 20 6d 61 6b 69 6e |s 0x1000|0, makin|
|00003bd0| 67 20 73 75 72 65 0a 21 | 20 6e 6f 20 36 34 6b 42 |g sure.!| no 64kB|
|00003be0| 20 62 6f 75 6e 64 61 72 | 69 65 73 20 61 72 65 20 | boundar|ies are |
|00003bf0| 63 72 6f 73 73 65 64 2e | 20 57 65 20 74 72 79 20 |crossed.| We try |
|00003c00| 74 6f 20 6c 6f 61 64 20 | 69 74 20 61 73 20 66 61 |to load |it as fa|
|00003c10| 73 74 20 61 73 0a 21 20 | 70 6f 73 73 69 62 6c 65 |st as.! |possible|
|00003c20| 2c 20 6c 6f 61 64 69 6e | 67 20 77 68 6f 6c 65 20 |, loadin|g whole |
|00003c30| 74 72 61 63 6b 73 20 77 | 68 65 6e 65 76 65 72 20 |tracks w|henever |
|00003c40| 77 65 20 63 61 6e 2e 0a | 21 0a 21 20 69 6e 3a 09 |we can..|!.! in:.|
|00003c50| 65 73 20 2d 20 73 74 61 | 72 74 69 6e 67 20 61 64 |es - sta|rting ad|
|00003c60| 64 72 65 73 73 20 73 65 | 67 6d 65 6e 74 20 28 6e |dress se|gment (n|
|00003c70| 6f 72 6d 61 6c 6c 79 20 | 30 78 31 30 30 30 29 0a |ormally |0x1000).|
|00003c80| 21 0a 73 72 65 61 64 3a | 09 2e 77 6f 72 64 20 31 |!.sread:|..word 1|
|00003c90| 2b 53 45 54 55 50 53 45 | 43 53 09 21 20 73 65 63 |+SETUPSE|CS.! sec|
|00003ca0| 74 6f 72 73 20 72 65 61 | 64 20 6f 66 20 63 75 72 |tors rea|d of cur|
|00003cb0| 72 65 6e 74 20 74 72 61 | 63 6b 0a 68 65 61 64 3a |rent tra|ck.head:|
|00003cc0| 09 2e 77 6f 72 64 20 30 | 09 09 09 21 20 63 75 72 |..word 0|...! cur|
|00003cd0| 72 65 6e 74 20 68 65 61 | 64 0a 74 72 61 63 6b 3a |rent hea|d.track:|
|00003ce0| 09 2e 77 6f 72 64 20 30 | 09 09 09 21 20 63 75 72 |..word 0|...! cur|
|00003cf0| 72 65 6e 74 20 74 72 61 | 63 6b 0a 0a 72 65 61 64 |rent tra|ck..read|
|00003d00| 5f 69 74 3a 0a 09 6d 6f | 76 20 61 78 2c 65 73 0a |_it:..mo|v ax,es.|
|00003d10| 09 74 65 73 74 20 61 78 | 2c 23 30 78 30 66 66 66 |.test ax|,#0x0fff|
|00003d20| 0a 64 69 65 3a 09 6a 6e | 65 20 64 69 65 09 09 09 |.die:.jn|e die...|
|00003d30| 21 20 65 73 20 6d 75 73 | 74 20 62 65 20 61 74 20 |! es mus|t be at |
|00003d40| 36 34 6b 42 20 62 6f 75 | 6e 64 61 72 79 0a 09 78 |64kB bou|ndary..x|
|00003d50| 6f 72 20 62 78 2c 62 78 | 09 09 21 20 62 78 20 69 |or bx,bx|..! bx i|
|00003d60| 73 20 73 74 61 72 74 69 | 6e 67 20 61 64 64 72 65 |s starti|ng addre|
|00003d70| 73 73 20 77 69 74 68 69 | 6e 20 73 65 67 6d 65 6e |ss withi|n segmen|
|00003d80| 74 0a 72 70 5f 72 65 61 | 64 3a 0a 09 6d 6f 76 20 |t.rp_rea|d:..mov |
|00003d90| 61 78 2c 65 73 0a 09 73 | 75 62 20 61 78 2c 23 53 |ax,es..s|ub ax,#S|
|00003da0| 59 53 53 45 47 0a 09 63 | 6d 70 20 61 78 2c 73 79 |YSSEG..c|mp ax,sy|
|00003db0| 73 73 69 7a 65 09 09 21 | 20 68 61 76 65 20 77 65 |ssize..!| have we|
|00003dc0| 20 6c 6f 61 64 65 64 20 | 61 6c 6c 20 79 65 74 3f | loaded |all yet?|
|00003dd0| 0a 09 6a 62 65 20 6f 6b | 31 5f 72 65 61 64 0a 09 |..jbe ok|1_read..|
|00003de0| 72 65 74 0a 6f 6b 31 5f | 72 65 61 64 3a 0a 09 73 |ret.ok1_|read:..s|
|00003df0| 65 67 20 63 73 0a 09 6d | 6f 76 20 61 78 2c 73 65 |eg cs..m|ov ax,se|
|00003e00| 63 74 6f 72 73 0a 09 73 | 75 62 20 61 78 2c 73 72 |ctors..s|ub ax,sr|
|00003e10| 65 61 64 0a 09 6d 6f 76 | 20 63 78 2c 61 78 0a 09 |ead..mov| cx,ax..|
|00003e20| 73 68 6c 20 63 78 2c 23 | 39 0a 09 61 64 64 20 63 |shl cx,#|9..add c|
|00003e30| 78 2c 62 78 0a 09 6a 6e | 63 20 6f 6b 32 5f 72 65 |x,bx..jn|c ok2_re|
|00003e40| 61 64 0a 09 6a 65 20 6f | 6b 32 5f 72 65 61 64 0a |ad..je o|k2_read.|
|00003e50| 09 78 6f 72 20 61 78 2c | 61 78 0a 09 73 75 62 20 |.xor ax,|ax..sub |
|00003e60| 61 78 2c 62 78 0a 09 73 | 68 72 20 61 78 2c 23 39 |ax,bx..s|hr ax,#9|
|00003e70| 0a 6f 6b 32 5f 72 65 61 | 64 3a 0a 09 63 61 6c 6c |.ok2_rea|d:..call|
|00003e80| 20 72 65 61 64 5f 74 72 | 61 63 6b 0a 09 6d 6f 76 | read_tr|ack..mov|
|00003e90| 20 63 78 2c 61 78 0a 09 | 61 64 64 20 61 78 2c 73 | cx,ax..|add ax,s|
|00003ea0| 72 65 61 64 0a 09 73 65 | 67 20 63 73 0a 09 63 6d |read..se|g cs..cm|
|00003eb0| 70 20 61 78 2c 73 65 63 | 74 6f 72 73 0a 09 6a 6e |p ax,sec|tors..jn|
|00003ec0| 65 20 6f 6b 33 5f 72 65 | 61 64 0a 09 6d 6f 76 20 |e ok3_re|ad..mov |
|00003ed0| 61 78 2c 23 31 0a 09 73 | 75 62 20 61 78 2c 68 65 |ax,#1..s|ub ax,he|
|00003ee0| 61 64 0a 09 6a 6e 65 20 | 6f 6b 34 5f 72 65 61 64 |ad..jne |ok4_read|
|00003ef0| 0a 09 69 6e 63 20 74 72 | 61 63 6b 0a 6f 6b 34 5f |..inc tr|ack.ok4_|
|00003f00| 72 65 61 64 3a 0a 09 6d | 6f 76 20 68 65 61 64 2c |read:..m|ov head,|
|00003f10| 61 78 0a 09 78 6f 72 20 | 61 78 2c 61 78 0a 6f 6b |ax..xor |ax,ax.ok|
|00003f20| 33 5f 72 65 61 64 3a 0a | 09 6d 6f 76 20 73 72 65 |3_read:.|.mov sre|
|00003f30| 61 64 2c 61 78 0a 09 73 | 68 6c 20 63 78 2c 23 39 |ad,ax..s|hl cx,#9|
|00003f40| 0a 09 61 64 64 20 62 78 | 2c 63 78 0a 09 6a 6e 63 |..add bx|,cx..jnc|
|00003f50| 20 72 70 5f 72 65 61 64 | 0a 09 6d 6f 76 20 61 78 | rp_read|..mov ax|
|00003f60| 2c 65 73 0a 09 61 64 64 | 20 61 68 2c 23 30 78 31 |,es..add| ah,#0x1|
|00003f70| 30 0a 09 6d 6f 76 20 65 | 73 2c 61 78 0a 09 78 6f |0..mov e|s,ax..xo|
|00003f80| 72 20 62 78 2c 62 78 0a | 09 6a 6d 70 20 72 70 5f |r bx,bx.|.jmp rp_|
|00003f90| 72 65 61 64 0a 0a 72 65 | 61 64 5f 74 72 61 63 6b |read..re|ad_track|
|00003fa0| 3a 0a 09 70 75 73 68 61 | 0a 09 70 75 73 68 61 09 |:..pusha|..pusha.|
|00003fb0| 0a 09 6d 6f 76 09 61 78 | 2c 20 23 30 78 65 32 65 |..mov.ax|, #0xe2e|
|00003fc0| 20 09 21 20 6c 6f 61 64 | 69 6e 67 2e 2e 2e 20 6d | .! load|ing... m|
|00003fd0| 65 73 73 61 67 65 20 32 | 65 20 3d 20 2e 0a 09 6d |essage 2|e = ...m|
|00003fe0| 6f 76 09 62 78 2c 20 23 | 37 0a 20 09 69 6e 74 09 |ov.bx, #|7. .int.|
|00003ff0| 30 78 31 30 0a 09 70 6f | 70 61 09 09 0a 0a 09 6d |0x10..po|pa.....m|
|00004000| 6f 76 09 64 78 2c 74 72 | 61 63 6b 0a 09 6d 6f 76 |ov.dx,tr|ack..mov|
|00004010| 09 63 78 2c 73 72 65 61 | 64 0a 09 69 6e 63 09 63 |.cx,srea|d..inc.c|
|00004020| 78 0a 09 6d 6f 76 09 63 | 68 2c 64 6c 0a 09 6d 6f |x..mov.c|h,dl..mo|
|00004030| 76 09 64 78 2c 68 65 61 | 64 0a 09 6d 6f 76 09 64 |v.dx,hea|d..mov.d|
|00004040| 68 2c 64 6c 0a 09 61 6e | 64 09 64 78 2c 23 30 78 |h,dl..an|d.dx,#0x|
|00004050| 30 31 30 30 0a 09 6d 6f | 76 09 61 68 2c 23 32 0a |0100..mo|v.ah,#2.|
|00004060| 09 0a 09 70 75 73 68 09 | 64 78 09 09 09 09 21 20 |...push.|dx....! |
|00004070| 73 61 76 65 20 66 6f 72 | 20 65 72 72 6f 72 20 64 |save for| error d|
|00004080| 75 6d 70 0a 09 70 75 73 | 68 09 63 78 0a 09 70 75 |ump..pus|h.cx..pu|
|00004090| 73 68 09 62 78 0a 09 70 | 75 73 68 09 61 78 0a 0a |sh.bx..p|ush.ax..|
|000040a0| 09 69 6e 74 09 30 78 31 | 33 0a 09 6a 63 09 62 61 |.int.0x1|3..jc.ba|
|000040b0| 64 5f 72 74 0a 09 61 64 | 64 09 73 70 2c 20 23 38 |d_rt..ad|d.sp, #8|
|000040c0| 0a 09 70 6f 70 61 0a 09 | 72 65 74 0a 0a 62 61 64 |..popa..|ret..bad|
|000040d0| 5f 72 74 3a 09 70 75 73 | 68 09 61 78 09 09 09 09 |_rt:.pus|h.ax....|
|000040e0| 21 20 73 61 76 65 20 65 | 72 72 6f 72 20 63 6f 64 |! save e|rror cod|
|000040f0| 65 0a 09 63 61 6c 6c 09 | 70 72 69 6e 74 5f 61 6c |e..call.|print_al|
|00004100| 6c 09 09 09 21 20 61 68 | 20 3d 20 65 72 72 6f 72 |l...! ah| = error|
|00004110| 2c 20 61 6c 20 3d 20 72 | 65 61 64 0a 09 0a 09 0a |, al = r|ead.....|
|00004120| 09 78 6f 72 20 61 68 2c | 61 68 0a 09 78 6f 72 20 |.xor ah,|ah..xor |
|00004130| 64 6c 2c 64 6c 0a 09 69 | 6e 74 20 30 78 31 33 0a |dl,dl..i|nt 0x13.|
|00004140| 09 0a 0a 09 61 64 64 09 | 73 70 2c 20 23 31 30 0a |....add.|sp, #10.|
|00004150| 09 70 6f 70 61 09 0a 09 | 6a 6d 70 20 72 65 61 64 |.popa...|jmp read|
|00004160| 5f 74 72 61 63 6b 0a 0a | 2f 2a 0a 20 2a 09 70 72 |_track..|/*. *.pr|
|00004170| 69 6e 74 5f 61 6c 6c 20 | 69 73 20 66 6f 72 20 64 |int_all |is for d|
|00004180| 65 62 75 67 67 69 6e 67 | 20 70 75 72 70 6f 73 65 |ebugging| purpose|
|00004190| 73 2e 20 20 0a 20 2a 09 | 49 74 20 77 69 6c 6c 20 |s. . *.|It will |
|000041a0| 70 72 69 6e 74 20 6f 75 | 74 20 61 6c 6c 20 6f 66 |print ou|t all of|
|000041b0| 20 74 68 65 20 72 65 67 | 69 73 74 65 72 73 2e 20 | the reg|isters. |
|000041c0| 20 54 68 65 20 61 73 73 | 75 6d 70 74 69 6f 6e 20 | The ass|umption |
|000041d0| 69 73 20 74 68 61 74 20 | 74 68 69 73 20 69 73 0a |is that |this is.|
|000041e0| 20 2a 09 63 61 6c 6c 65 | 64 20 66 72 6f 6d 20 61 | *.calle|d from a|
|000041f0| 20 72 6f 75 74 69 6e 65 | 2c 20 77 69 74 68 20 61 | routine|, with a|
|00004200| 20 73 74 61 63 6b 20 66 | 72 61 6d 65 20 6c 69 6b | stack f|rame lik|
|00004210| 65 0a 20 2a 09 64 78 20 | 0a 20 2a 09 63 78 0a 20 |e. *.dx |. *.cx. |
|00004220| 2a 09 62 78 0a 20 2a 09 | 61 78 0a 20 2a 09 65 72 |*.bx. *.|ax. *.er|
|00004230| 72 6f 72 0a 20 2a 09 72 | 65 74 20 3c 2d 20 73 70 |ror. *.r|et <- sp|
|00004240| 0a 20 2a 0a 2a 2f 0a 20 | 0a 70 72 69 6e 74 5f 61 |. *.*/. |.print_a|
|00004250| 6c 6c 3a 0a 09 6d 6f 76 | 09 63 78 2c 20 23 35 09 |ll:..mov|.cx, #5.|
|00004260| 09 21 20 65 72 72 6f 72 | 20 63 6f 64 65 20 2b 20 |.! error| code + |
|00004270| 34 20 72 65 67 69 73 74 | 65 72 73 0a 09 6d 6f 76 |4 regist|ers..mov|
|00004280| 09 62 70 2c 20 73 70 09 | 0a 0a 70 72 69 6e 74 5f |.bp, sp.|..print_|
|00004290| 6c 6f 6f 70 3a 0a 09 70 | 75 73 68 09 63 78 09 09 |loop:..p|ush.cx..|
|000042a0| 21 20 73 61 76 65 20 63 | 6f 75 6e 74 20 6c 65 66 |! save c|ount lef|
|000042b0| 74 0a 09 63 61 6c 6c 09 | 70 72 69 6e 74 5f 6e 6c |t..call.|print_nl|
|000042c0| 09 21 20 6e 6c 20 66 6f | 72 20 72 65 61 64 61 62 |.! nl fo|r readab|
|000042d0| 69 6c 69 74 79 0a 0a 09 | 63 6d 70 09 63 6c 2c 20 |ility...|cmp.cl, |
|000042e0| 35 0a 09 6a 61 65 09 6e | 6f 5f 72 65 67 09 09 21 |5..jae.n|o_reg..!|
|000042f0| 20 73 65 65 20 69 66 20 | 72 65 67 69 73 74 65 72 | see if |register|
|00004300| 20 6e 61 6d 65 20 69 73 | 20 6e 65 65 64 65 64 0a | name is| needed.|
|00004310| 09 0a 09 6d 6f 76 09 61 | 78 2c 20 23 30 78 65 30 |...mov.a|x, #0xe0|
|00004320| 35 20 2b 20 27 41 20 2d | 20 31 0a 09 73 75 62 09 |5 + 'A -| 1..sub.|
|00004330| 61 6c 2c 20 63 6c 0a 09 | 69 6e 74 09 30 78 31 30 |al, cl..|int.0x10|
|00004340| 0a 0a 09 6d 6f 76 09 61 | 6c 2c 20 23 27 58 0a 09 |...mov.a|l, #'X..|
|00004350| 69 6e 74 09 30 78 31 30 | 0a 0a 09 6d 6f 76 09 61 |int.0x10|...mov.a|
|00004360| 6c 2c 20 23 27 3a 0a 09 | 69 6e 74 09 30 78 31 30 |l, #':..|int.0x10|
|00004370| 0a 0a 6e 6f 5f 72 65 67 | 3a 0a 09 61 64 64 09 62 |..no_reg|:..add.b|
|00004380| 70 2c 20 23 32 09 09 21 | 20 6e 65 78 74 20 72 65 |p, #2..!| next re|
|00004390| 67 69 73 74 65 72 0a 09 | 63 61 6c 6c 09 70 72 69 |gister..|call.pri|
|000043a0| 6e 74 5f 68 65 78 09 21 | 20 70 72 69 6e 74 20 69 |nt_hex.!| print i|
|000043b0| 74 0a 09 70 6f 70 09 63 | 78 0a 09 6c 6f 6f 70 09 |t..pop.c|x..loop.|
|000043c0| 70 72 69 6e 74 5f 6c 6f | 6f 70 0a 09 72 65 74 0a |print_lo|op..ret.|
|000043d0| 0a 70 72 69 6e 74 5f 6e | 6c 3a 0a 09 6d 6f 76 09 |.print_n|l:..mov.|
|000043e0| 61 78 2c 20 23 30 78 65 | 30 64 09 21 20 43 52 0a |ax, #0xe|0d.! CR.|
|000043f0| 09 69 6e 74 09 30 78 31 | 30 0a 09 6d 6f 76 09 61 |.int.0x1|0..mov.a|
|00004400| 6c 2c 20 23 30 78 61 09 | 21 20 4c 46 0a 09 69 6e |l, #0xa.|! LF..in|
|00004410| 74 20 09 30 78 31 30 0a | 09 72 65 74 0a 0a 2f 2a |t .0x10.|.ret../*|
|00004420| 0a 20 2a 09 70 72 69 6e | 74 5f 68 65 78 20 69 73 |. *.prin|t_hex is|
|00004430| 20 66 6f 72 20 64 65 62 | 75 67 67 69 6e 67 20 70 | for deb|ugging p|
|00004440| 75 72 70 6f 73 65 73 2c | 20 61 6e 64 20 70 72 69 |urposes,| and pri|
|00004450| 6e 74 73 20 74 68 65 20 | 77 6f 72 64 0a 20 2a 09 |nts the |word. *.|
|00004460| 70 6f 69 6e 74 65 64 20 | 74 6f 20 62 79 20 73 73 |pointed |to by ss|
|00004470| 3a 62 70 20 69 6e 20 68 | 65 78 61 64 65 63 6d 69 |:bp in h|exadecmi|
|00004480| 61 6c 2e 0a 2a 2f 0a 0a | 70 72 69 6e 74 5f 68 65 |al..*/..|print_he|
|00004490| 78 3a 0a 09 6d 6f 76 09 | 63 78 2c 20 23 34 09 09 |x:..mov.|cx, #4..|
|000044a0| 21 20 34 20 68 65 78 20 | 64 69 67 69 74 73 0a 09 |! 4 hex |digits..|
|000044b0| 6d 6f 76 09 64 78 2c 20 | 28 62 70 29 09 21 20 6c |mov.dx, |(bp).! l|
|000044c0| 6f 61 64 20 77 6f 72 64 | 20 69 6e 74 6f 20 64 78 |oad word| into dx|
|000044d0| 0a 70 72 69 6e 74 5f 64 | 69 67 69 74 3a 0a 09 72 |.print_d|igit:..r|
|000044e0| 6f 6c 09 64 78 2c 20 23 | 34 09 09 21 20 72 6f 74 |ol.dx, #|4..! rot|
|000044f0| 61 74 65 20 73 6f 20 74 | 68 61 74 20 6c 6f 77 65 |ate so t|hat lowe|
|00004500| 73 74 20 34 20 62 69 74 | 73 20 61 72 65 20 75 73 |st 4 bit|s are us|
|00004510| 65 64 0a 09 6d 6f 76 09 | 61 68 2c 20 23 30 78 65 |ed..mov.|ah, #0xe|
|00004520| 09 0a 09 6d 6f 76 09 61 | 6c 2c 20 64 6c 09 09 21 |...mov.a|l, dl..!|
|00004530| 20 6d 61 73 6b 20 6f 66 | 66 20 73 6f 20 77 65 20 | mask of|f so we |
|00004540| 68 61 76 65 20 6f 6e 6c | 79 20 6e 65 78 74 20 6e |have onl|y next n|
|00004550| 69 62 62 6c 65 0a 09 61 | 6e 64 09 61 6c 2c 20 23 |ibble..a|nd.al, #|
|00004560| 30 78 66 0a 09 61 64 64 | 09 61 6c 2c 20 23 27 30 |0xf..add|.al, #'0|
|00004570| 09 09 21 20 63 6f 6e 76 | 65 72 74 20 74 6f 20 30 |..! conv|ert to 0|
|00004580| 2d 62 61 73 65 64 20 64 | 69 67 69 74 0a 09 63 6d |-based d|igit..cm|
|00004590| 70 09 61 6c 2c 20 23 27 | 39 09 09 21 20 63 68 65 |p.al, #'|9..! che|
|000045a0| 63 6b 20 66 6f 72 20 6f | 76 65 72 66 6c 6f 77 0a |ck for o|verflow.|
|000045b0| 09 6a 62 65 09 67 6f 6f | 64 5f 64 69 67 69 74 0a |.jbe.goo|d_digit.|
|000045c0| 09 61 64 64 09 61 6c 2c | 20 23 27 41 20 2d 20 27 |.add.al,| #'A - '|
|000045d0| 30 20 2d 20 31 30 0a 0a | 67 6f 6f 64 5f 64 69 67 |0 - 10..|good_dig|
|000045e0| 69 74 3a 0a 09 69 6e 74 | 09 30 78 31 30 0a 09 6c |it:..int|.0x10..l|
|000045f0| 6f 6f 70 09 70 72 69 6e | 74 5f 64 69 67 69 74 0a |oop.prin|t_digit.|
|00004600| 09 72 65 74 0a 0a 0a 2f | 2a 0a 20 2a 20 54 68 69 |.ret.../|*. * Thi|
|00004610| 73 20 70 72 6f 63 65 64 | 75 72 65 20 74 75 72 6e |s proced|ure turn|
|00004620| 73 20 6f 66 66 20 74 68 | 65 20 66 6c 6f 70 70 79 |s off th|e floppy|
|00004630| 20 64 72 69 76 65 20 6d | 6f 74 6f 72 2c 20 73 6f | drive m|otor, so|
|00004640| 0a 20 2a 20 74 68 61 74 | 20 77 65 20 65 6e 74 65 |. * that| we ente|
|00004650| 72 20 74 68 65 20 6b 65 | 72 6e 65 6c 20 69 6e 20 |r the ke|rnel in |
|00004660| 61 20 6b 6e 6f 77 6e 20 | 73 74 61 74 65 2c 20 61 |a known |state, a|
|00004670| 6e 64 0a 20 2a 20 64 6f | 6e 27 74 20 68 61 76 65 |nd. * do|n't have|
|00004680| 20 74 6f 20 77 6f 72 72 | 79 20 61 62 6f 75 74 20 | to worr|y about |
|00004690| 69 74 20 6c 61 74 65 72 | 2e 0a 20 2a 2f 0a 6b 69 |it later|.. */.ki|
|000046a0| 6c 6c 5f 6d 6f 74 6f 72 | 3a 0a 09 70 75 73 68 20 |ll_motor|:..push |
|000046b0| 64 78 0a 09 6d 6f 76 20 | 64 78 2c 23 30 78 33 66 |dx..mov |dx,#0x3f|
|000046c0| 32 0a 09 78 6f 72 20 61 | 6c 2c 20 61 6c 0a 09 6f |2..xor a|l, al..o|
|000046d0| 75 74 62 0a 09 70 6f 70 | 20 64 78 0a 09 72 65 74 |utb..pop| dx..ret|
|000046e0| 0a 0a 73 65 63 74 6f 72 | 73 3a 0a 09 2e 77 6f 72 |..sector|s:...wor|
|000046f0| 64 20 30 0a 0a 6d 73 67 | 31 3a 0a 09 2e 62 79 74 |d 0..msg|1:...byt|
|00004700| 65 20 31 33 2c 31 30 0a | 09 2e 61 73 63 69 69 20 |e 13,10.|..ascii |
|00004710| 22 4c 6f 61 64 69 6e 67 | 22 0a 0a 2e 6f 72 67 20 |"Loading|"...org |
|00004720| 34 39 38 0a 72 6f 6f 74 | 5f 66 6c 61 67 73 3a 0a |498.root|_flags:.|
|00004730| 09 2e 77 6f 72 64 20 43 | 4f 4e 46 49 47 5f 52 4f |..word C|ONFIG_RO|
|00004740| 4f 54 5f 52 44 4f 4e 4c | 59 0a 73 79 73 73 69 7a |OT_RDONL|Y.syssiz|
|00004750| 65 3a 0a 09 2e 77 6f 72 | 64 20 53 59 53 53 49 5a |e:...wor|d SYSSIZ|
|00004760| 45 0a 73 77 61 70 5f 64 | 65 76 3a 0a 09 2e 77 6f |E.swap_d|ev:...wo|
|00004770| 72 64 20 53 57 41 50 5f | 44 45 56 0a 72 61 6d 5f |rd SWAP_|DEV.ram_|
|00004780| 73 69 7a 65 3a 0a 09 2e | 77 6f 72 64 20 52 41 4d |size:...|word RAM|
|00004790| 44 49 53 4b 0a 76 69 64 | 5f 6d 6f 64 65 3a 0a 09 |DISK.vid|_mode:..|
|000047a0| 2e 77 6f 72 64 20 53 56 | 47 41 5f 4d 4f 44 45 0a |.word SV|GA_MODE.|
|000047b0| 72 6f 6f 74 5f 64 65 76 | 3a 0a 09 2e 77 6f 72 64 |root_dev|:...word|
|000047c0| 20 52 4f 4f 54 5f 44 45 | 56 0a 62 6f 6f 74 5f 66 | ROOT_DE|V.boot_f|
|000047d0| 6c 61 67 3a 0a 09 2e 77 | 6f 72 64 20 30 78 41 41 |lag:...w|ord 0xAA|
|000047e0| 35 35 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |55......|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 6c 69 6e 75 78 2f 62 6f | 6f 74 2f 73 65 74 75 70 |linux/bo|ot/setup|
|00004810| 2e 53 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.S......|........|
|00004820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004860| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 20 20 |....1006|44 . |
|00004870| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00004880| 20 20 34 32 34 33 31 20 | 20 35 34 37 37 31 31 30 | 42431 | 5477110|
|00004890| 36 33 37 20 20 31 32 35 | 36 31 00 20 30 00 00 00 |637 125|61. 0...|
|000048a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004900| 00 75 73 74 61 72 20 20 | 00 72 6f 6f 74 00 00 00 |.ustar |.root...|
|00004910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004920| 00 00 00 00 00 00 00 00 | 00 72 6f 6f 74 00 00 00 |........|.root...|
|00004930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 21 0a 21 09 73 65 74 75 | 70 2e 53 09 09 43 6f 70 |!.!.setu|p.S..Cop|
|00004a10| 79 72 69 67 68 74 20 28 | 43 29 20 31 39 39 31 2c |yright (|C) 1991,|
|00004a20| 20 31 39 39 32 20 4c 69 | 6e 75 73 20 54 6f 72 76 | 1992 Li|nus Torv|
|00004a30| 61 6c 64 73 0a 21 0a 21 | 20 73 65 74 75 70 2e 73 |alds.!.!| setup.s|
|00004a40| 20 69 73 20 72 65 73 70 | 6f 6e 73 69 62 6c 65 20 | is resp|onsible |
|00004a50| 66 6f 72 20 67 65 74 74 | 69 6e 67 20 74 68 65 20 |for gett|ing the |
|00004a60| 73 79 73 74 65 6d 20 64 | 61 74 61 20 66 72 6f 6d |system d|ata from|
|00004a70| 20 74 68 65 20 42 49 4f | 53 2c 0a 21 20 61 6e 64 | the BIO|S,.! and|
|00004a80| 20 70 75 74 74 69 6e 67 | 20 74 68 65 6d 20 69 6e | putting| them in|
|00004a90| 74 6f 20 74 68 65 20 61 | 70 70 72 6f 70 72 69 61 |to the a|ppropria|
|00004aa0| 74 65 20 70 6c 61 63 65 | 73 20 69 6e 20 73 79 73 |te place|s in sys|
|00004ab0| 74 65 6d 20 6d 65 6d 6f | 72 79 2e 0a 21 20 62 6f |tem memo|ry..! bo|
|00004ac0| 74 68 20 73 65 74 75 70 | 2e 73 20 61 6e 64 20 73 |th setup|.s and s|
|00004ad0| 79 73 74 65 6d 20 68 61 | 73 20 62 65 65 6e 20 6c |ystem ha|s been l|
|00004ae0| 6f 61 64 65 64 20 62 79 | 20 74 68 65 20 62 6f 6f |oaded by| the boo|
|00004af0| 74 62 6c 6f 63 6b 2e 0a | 21 0a 21 20 54 68 69 73 |tblock..|!.! This|
|00004b00| 20 63 6f 64 65 20 61 73 | 6b 73 20 74 68 65 20 62 | code as|ks the b|
|00004b10| 69 6f 73 20 66 6f 72 20 | 6d 65 6d 6f 72 79 2f 64 |ios for |memory/d|
|00004b20| 69 73 6b 2f 6f 74 68 65 | 72 20 70 61 72 61 6d 65 |isk/othe|r parame|
|00004b30| 74 65 72 73 2c 20 61 6e | 64 0a 21 20 70 75 74 73 |ters, an|d.! puts|
|00004b40| 20 74 68 65 6d 20 69 6e | 20 61 20 22 73 61 66 65 | them in| a "safe|
|00004b50| 22 20 70 6c 61 63 65 3a | 20 30 78 39 30 30 30 30 |" place:| 0x90000|
|00004b60| 2d 30 78 39 30 31 46 46 | 2c 20 69 65 20 77 68 65 |-0x901FF|, ie whe|
|00004b70| 72 65 20 74 68 65 0a 21 | 20 62 6f 6f 74 2d 62 6c |re the.!| boot-bl|
|00004b80| 6f 63 6b 20 75 73 65 64 | 20 74 6f 20 62 65 2e 20 |ock used| to be. |
|00004b90| 49 74 20 69 73 20 74 68 | 65 6e 20 75 70 20 74 6f |It is th|en up to|
|00004ba0| 20 74 68 65 20 70 72 6f | 74 65 63 74 65 64 20 6d | the pro|tected m|
|00004bb0| 6f 64 65 0a 21 20 73 79 | 73 74 65 6d 20 74 6f 20 |ode.! sy|stem to |
|00004bc0| 72 65 61 64 20 74 68 65 | 6d 20 66 72 6f 6d 20 74 |read the|m from t|
|00004bd0| 68 65 72 65 20 62 65 66 | 6f 72 65 20 74 68 65 20 |here bef|ore the |
|00004be0| 61 72 65 61 20 69 73 20 | 6f 76 65 72 77 72 69 74 |area is |overwrit|
|00004bf0| 74 65 6e 0a 21 20 66 6f | 72 20 62 75 66 66 65 72 |ten.! fo|r buffer|
|00004c00| 2d 62 6c 6f 63 6b 73 2e | 0a 21 0a 21 20 4d 6f 76 |-blocks.|.!.! Mov|
|00004c10| 65 20 50 53 2f 32 20 61 | 75 78 20 69 6e 69 74 20 |e PS/2 a|ux init |
|00004c20| 63 6f 64 65 20 74 6f 20 | 70 73 61 75 78 2e 63 0a |code to |psaux.c.|
|00004c30| 21 20 28 74 72 6f 79 65 | 72 40 73 61 69 66 72 30 |! (troye|r@saifr0|
|00004c40| 30 2e 63 66 73 61 74 2e | 48 6f 6e 65 79 77 65 6c |0.cfsat.|Honeywel|
|00004c50| 6c 2e 43 4f 4d 29 20 30 | 33 4f 63 74 39 32 0a 21 |l.COM) 0|3Oct92.!|
|00004c60| 0a 21 20 73 6f 6d 65 20 | 63 68 61 6e 67 65 73 20 |.! some |changes |
|00004c70| 61 6e 64 20 61 64 64 69 | 74 69 6f 6e 61 6c 20 66 |and addi|tional f|
|00004c80| 65 61 74 75 72 65 73 20 | 62 79 20 43 68 72 69 73 |eatures |by Chris|
|00004c90| 74 6f 70 68 20 4e 69 65 | 6d 61 6e 6e 2c 20 4d 61 |toph Nie|mann, Ma|
|00004ca0| 72 63 68 20 31 39 39 33 | 0a 21 20 28 6e 69 65 6d |rch 1993|.! (niem|
|00004cb0| 61 6e 6e 40 72 75 62 64 | 76 31 35 2e 45 54 44 56 |ann@rubd|v15.ETDV|
|00004cc0| 2e 52 75 68 72 2d 55 6e | 69 2d 42 6f 63 68 75 6d |.Ruhr-Un|i-Bochum|
|00004cd0| 2e 44 65 29 0a 21 0a 0a | 21 20 4e 4f 54 45 21 20 |.De).!..|! NOTE! |
|00004ce0| 54 68 65 73 65 20 68 61 | 64 20 62 65 74 74 65 72 |These ha|d better|
|00004cf0| 20 62 65 20 74 68 65 20 | 73 61 6d 65 20 61 73 20 | be the |same as |
|00004d00| 69 6e 20 62 6f 6f 74 73 | 65 63 74 2e 73 21 0a 23 |in boots|ect.s!.#|
|00004d10| 69 6e 63 6c 75 64 65 20 | 3c 6c 69 6e 75 78 2f 63 |include |<linux/c|
|00004d20| 6f 6e 66 69 67 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |onfig.h>|.#includ|
|00004d30| 65 20 3c 6c 69 6e 75 78 | 2f 73 65 67 6d 65 6e 74 |e <linux|/segment|
|00004d40| 2e 68 3e 0a 0a 23 69 66 | 6e 64 65 66 20 53 56 47 |.h>..#if|ndef SVG|
|00004d50| 41 5f 4d 4f 44 45 0a 23 | 64 65 66 69 6e 65 20 53 |A_MODE.#|define S|
|00004d60| 56 47 41 5f 4d 4f 44 45 | 20 41 53 4b 5f 56 47 41 |VGA_MODE| ASK_VGA|
|00004d70| 0a 23 65 6e 64 69 66 0a | 0a 49 4e 49 54 53 45 47 |.#endif.|.INITSEG|
|00004d80| 20 20 3d 20 44 45 46 5f | 49 4e 49 54 53 45 47 09 | = DEF_|INITSEG.|
|00004d90| 21 20 77 65 20 6d 6f 76 | 65 20 62 6f 6f 74 20 68 |! we mov|e boot h|
|00004da0| 65 72 65 20 2d 20 6f 75 | 74 20 6f 66 20 74 68 65 |ere - ou|t of the|
|00004db0| 20 77 61 79 0a 53 59 53 | 53 45 47 20 20 20 3d 20 | way.SYS|SEG = |
|00004dc0| 44 45 46 5f 53 59 53 53 | 45 47 09 21 20 73 79 73 |DEF_SYSS|EG.! sys|
|00004dd0| 74 65 6d 20 6c 6f 61 64 | 65 64 20 61 74 20 30 78 |tem load|ed at 0x|
|00004de0| 31 30 30 30 30 20 28 36 | 35 35 33 36 29 2e 0a 53 |10000 (6|5536)..S|
|00004df0| 45 54 55 50 53 45 47 20 | 3d 20 44 45 46 5f 53 45 |ETUPSEG |= DEF_SE|
|00004e00| 54 55 50 53 45 47 09 21 | 20 74 68 69 73 20 69 73 |TUPSEG.!| this is|
|00004e10| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 73 65 67 | the cur|rent seg|
|00004e20| 6d 65 6e 74 0a 0a 2e 67 | 6c 6f 62 6c 20 62 65 67 |ment...g|lobl beg|
|00004e30| 74 65 78 74 2c 20 62 65 | 67 64 61 74 61 2c 20 62 |text, be|gdata, b|
|00004e40| 65 67 62 73 73 2c 20 65 | 6e 64 74 65 78 74 2c 20 |egbss, e|ndtext, |
|00004e50| 65 6e 64 64 61 74 61 2c | 20 65 6e 64 62 73 73 0a |enddata,| endbss.|
|00004e60| 2e 74 65 78 74 0a 62 65 | 67 74 65 78 74 3a 0a 2e |.text.be|gtext:..|
|00004e70| 64 61 74 61 0a 62 65 67 | 64 61 74 61 3a 0a 2e 62 |data.beg|data:..b|
|00004e80| 73 73 0a 62 65 67 62 73 | 73 3a 0a 2e 74 65 78 74 |ss.begbs|s:..text|
|00004e90| 0a 0a 65 6e 74 72 79 20 | 73 74 61 72 74 0a 73 74 |..entry |start.st|
|00004ea0| 61 72 74 3a 0a 0a 21 20 | 6f 6b 2c 20 74 68 65 20 |art:..! |ok, the |
|00004eb0| 72 65 61 64 20 77 65 6e | 74 20 77 65 6c 6c 20 73 |read wen|t well s|
|00004ec0| 6f 20 77 65 20 67 65 74 | 20 63 75 72 72 65 6e 74 |o we get| current|
|00004ed0| 20 63 75 72 73 6f 72 20 | 70 6f 73 69 74 69 6f 6e | cursor |position|
|00004ee0| 20 61 6e 64 20 73 61 76 | 65 20 69 74 20 66 6f 72 | and sav|e it for|
|00004ef0| 0a 21 20 70 6f 73 74 65 | 72 69 74 79 2e 0a 0a 09 |.! poste|rity....|
|00004f00| 6d 6f 76 09 61 78 2c 23 | 49 4e 49 54 53 45 47 09 |mov.ax,#|INITSEG.|
|00004f10| 21 20 74 68 69 73 20 69 | 73 20 64 6f 6e 65 20 69 |! this i|s done i|
|00004f20| 6e 20 62 6f 6f 74 73 65 | 63 74 20 61 6c 72 65 61 |n bootse|ct alrea|
|00004f30| 64 79 2c 20 62 75 74 2e | 2e 2e 0a 09 6d 6f 76 09 |dy, but.|....mov.|
|00004f40| 64 73 2c 61 78 0a 0a 21 | 20 47 65 74 20 6d 65 6d |ds,ax..!| Get mem|
|00004f50| 6f 72 79 20 73 69 7a 65 | 20 28 65 78 74 65 6e 64 |ory size| (extend|
|00004f60| 65 64 20 6d 65 6d 2c 20 | 6b 42 29 0a 0a 09 6d 6f |ed mem, |kB)...mo|
|00004f70| 76 09 61 68 2c 23 30 78 | 38 38 0a 09 69 6e 74 09 |v.ah,#0x|88..int.|
|00004f80| 30 78 31 35 0a 09 6d 6f | 76 09 5b 32 5d 2c 61 78 |0x15..mo|v.[2],ax|
|00004f90| 0a 0a 21 20 73 65 74 20 | 74 68 65 20 6b 65 79 62 |..! set |the keyb|
|00004fa0| 6f 61 72 64 20 72 65 70 | 65 61 74 20 72 61 74 65 |oard rep|eat rate|
|00004fb0| 20 74 6f 20 74 68 65 20 | 6d 61 78 0a 0a 09 6d 6f | to the |max...mo|
|00004fc0| 76 09 61 78 2c 23 30 78 | 30 33 30 35 0a 09 78 6f |v.ax,#0x|0305..xo|
|00004fd0| 72 09 62 78 2c 62 78 09 | 09 21 20 63 6c 65 61 72 |r.bx,bx.|.! clear|
|00004fe0| 20 62 78 0a 09 69 6e 74 | 09 30 78 31 36 0a 0a 21 | bx..int|.0x16..!|
|00004ff0| 20 63 68 65 63 6b 20 66 | 6f 72 20 45 47 41 2f 56 | check f|or EGA/V|
|00005000| 47 41 20 61 6e 64 20 73 | 6f 6d 65 20 63 6f 6e 66 |GA and s|ome conf|
|00005010| 69 67 20 70 61 72 61 6d | 65 74 65 72 73 0a 0a 09 |ig param|eters...|
|00005020| 6d 6f 76 09 61 68 2c 23 | 30 78 31 32 0a 09 6d 6f |mov.ah,#|0x12..mo|
|00005030| 76 09 62 6c 2c 23 30 78 | 31 30 0a 09 69 6e 74 09 |v.bl,#0x|10..int.|
|00005040| 30 78 31 30 0a 09 6d 6f | 76 09 5b 38 5d 2c 61 78 |0x10..mo|v.[8],ax|
|00005050| 0a 09 6d 6f 76 09 5b 31 | 30 5d 2c 62 78 0a 09 6d |..mov.[1|0],bx..m|
|00005060| 6f 76 09 5b 31 32 5d 2c | 63 78 0a 09 6d 6f 76 09 |ov.[12],|cx..mov.|
|00005070| 61 78 2c 23 30 78 35 30 | 31 39 0a 09 63 6d 70 09 |ax,#0x50|19..cmp.|
|00005080| 62 6c 2c 23 30 78 31 30 | 0a 09 6a 65 09 6e 6f 76 |bl,#0x10|..je.nov|
|00005090| 67 61 0a 09 6d 6f 76 09 | 61 78 2c 23 30 78 31 61 |ga..mov.|ax,#0x1a|
|000050a0| 30 30 09 21 20 41 64 64 | 65 64 20 63 68 65 63 6b |00.! Add|ed check|
|000050b0| 20 66 6f 72 20 45 47 41 | 2f 56 47 41 20 64 69 73 | for EGA|/VGA dis|
|000050c0| 63 72 69 6d 69 6e 61 74 | 69 6f 6e 0a 09 69 6e 74 |criminat|ion..int|
|000050d0| 09 30 78 31 30 0a 09 6d | 6f 76 09 62 78 2c 61 78 |.0x10..m|ov.bx,ax|
|000050e0| 0a 09 6d 6f 76 09 61 78 | 2c 23 30 78 35 30 31 39 |..mov.ax|,#0x5019|
|000050f0| 0a 09 63 6d 70 09 62 6c | 2c 23 30 78 31 61 09 21 |..cmp.bl|,#0x1a.!|
|00005100| 20 31 61 20 6d 65 61 6e | 73 20 56 47 41 2c 20 61 | 1a mean|s VGA, a|
|00005110| 6e 79 74 68 69 6e 67 20 | 65 6c 73 65 20 45 47 41 |nything |else EGA|
|00005120| 20 6f 72 20 6c 6f 77 65 | 72 0a 09 6a 6e 65 09 6e | or lowe|r..jne.n|
|00005130| 6f 76 67 61 09 0a 09 63 | 61 6c 6c 09 63 68 73 76 |ovga...c|all.chsv|
|00005140| 67 61 0a 6e 6f 76 67 61 | 3a 09 6d 6f 76 09 5b 31 |ga.novga|:.mov.[1|
|00005150| 34 5d 2c 61 78 0a 09 6d | 6f 76 09 61 68 2c 23 30 |4],ax..m|ov.ah,#0|
|00005160| 78 30 33 09 21 20 72 65 | 61 64 20 63 75 72 73 6f |x03.! re|ad curso|
|00005170| 72 20 70 6f 73 0a 09 78 | 6f 72 09 62 68 2c 62 68 |r pos..x|or.bh,bh|
|00005180| 09 09 21 20 63 6c 65 61 | 72 20 62 68 0a 09 69 6e |..! clea|r bh..in|
|00005190| 74 09 30 78 31 30 09 09 | 21 20 73 61 76 65 20 69 |t.0x10..|! save i|
|000051a0| 74 20 69 6e 20 6b 6e 6f | 77 6e 20 70 6c 61 63 65 |t in kno|wn place|
|000051b0| 2c 20 63 6f 6e 5f 69 6e | 69 74 20 66 65 74 63 68 |, con_in|it fetch|
|000051c0| 65 73 0a 09 6d 6f 76 09 | 5b 30 5d 2c 64 78 09 09 |es..mov.|[0],dx..|
|000051d0| 21 20 69 74 20 66 72 6f | 6d 20 30 78 39 30 30 30 |! it fro|m 0x9000|
|000051e0| 30 2e 0a 09 0a 21 20 47 | 65 74 20 76 69 64 65 6f |0....! G|et video|
|000051f0| 2d 63 61 72 64 20 64 61 | 74 61 3a 0a 09 0a 09 6d |-card da|ta:....m|
|00005200| 6f 76 09 61 68 2c 23 30 | 78 30 66 0a 09 69 6e 74 |ov.ah,#0|x0f..int|
|00005210| 09 30 78 31 30 0a 09 6d | 6f 76 09 5b 34 5d 2c 62 |.0x10..m|ov.[4],b|
|00005220| 78 09 09 21 20 62 68 20 | 3d 20 64 69 73 70 6c 61 |x..! bh |= displa|
|00005230| 79 20 70 61 67 65 0a 09 | 6d 6f 76 09 5b 36 5d 2c |y page..|mov.[6],|
|00005240| 61 78 09 09 21 20 61 6c | 20 3d 20 76 69 64 65 6f |ax..! al| = video|
|00005250| 20 6d 6f 64 65 2c 20 61 | 68 20 3d 20 77 69 6e 64 | mode, a|h = wind|
|00005260| 6f 77 20 77 69 64 74 68 | 0a 0a 21 20 47 65 74 20 |ow width|..! Get |
|00005270| 68 64 30 20 64 61 74 61 | 0a 0a 09 78 6f 72 09 61 |hd0 data|...xor.a|
|00005280| 78 2c 61 78 09 09 21 20 | 63 6c 65 61 72 20 61 78 |x,ax..! |clear ax|
|00005290| 0a 09 6d 6f 76 09 64 73 | 2c 61 78 0a 09 6c 64 73 |..mov.ds|,ax..lds|
|000052a0| 09 73 69 2c 5b 34 2a 30 | 78 34 31 5d 0a 09 6d 6f |.si,[4*0|x41]..mo|
|000052b0| 76 09 61 78 2c 23 49 4e | 49 54 53 45 47 0a 09 6d |v.ax,#IN|ITSEG..m|
|000052c0| 6f 76 09 65 73 2c 61 78 | 0a 09 6d 6f 76 09 64 69 |ov.es,ax|..mov.di|
|000052d0| 2c 23 30 78 30 30 38 30 | 0a 09 6d 6f 76 09 63 78 |,#0x0080|..mov.cx|
|000052e0| 2c 23 30 78 31 30 0a 09 | 63 6c 64 0a 09 72 65 70 |,#0x10..|cld..rep|
|000052f0| 0a 09 6d 6f 76 73 62 0a | 0a 21 20 47 65 74 20 68 |..movsb.|.! Get h|
|00005300| 64 31 20 64 61 74 61 0a | 0a 09 78 6f 72 09 61 78 |d1 data.|..xor.ax|
|00005310| 2c 61 78 09 09 21 20 63 | 6c 65 61 72 20 61 78 0a |,ax..! c|lear ax.|
|00005320| 09 6d 6f 76 09 64 73 2c | 61 78 0a 09 6c 64 73 09 |.mov.ds,|ax..lds.|
|00005330| 73 69 2c 5b 34 2a 30 78 | 34 36 5d 0a 09 6d 6f 76 |si,[4*0x|46]..mov|
|00005340| 09 61 78 2c 23 49 4e 49 | 54 53 45 47 0a 09 6d 6f |.ax,#INI|TSEG..mo|
|00005350| 76 09 65 73 2c 61 78 0a | 09 6d 6f 76 09 64 69 2c |v.es,ax.|.mov.di,|
|00005360| 23 30 78 30 30 39 30 0a | 09 6d 6f 76 09 63 78 2c |#0x0090.|.mov.cx,|
|00005370| 23 30 78 31 30 0a 09 63 | 6c 64 0a 09 72 65 70 0a |#0x10..c|ld..rep.|
|00005380| 09 6d 6f 76 73 62 0a 0a | 21 20 43 68 65 63 6b 20 |.movsb..|! Check |
|00005390| 74 68 61 74 20 74 68 65 | 72 65 20 49 53 20 61 20 |that the|re IS a |
|000053a0| 68 64 31 20 3a 2d 29 0a | 0a 09 6d 6f 76 09 61 78 |hd1 :-).|..mov.ax|
|000053b0| 2c 23 30 78 30 31 35 30 | 30 0a 09 6d 6f 76 09 64 |,#0x0150|0..mov.d|
|000053c0| 6c 2c 23 30 78 38 31 0a | 09 69 6e 74 09 30 78 31 |l,#0x81.|.int.0x1|
|000053d0| 33 0a 09 6a 63 09 6e 6f | 5f 64 69 73 6b 31 0a 09 |3..jc.no|_disk1..|
|000053e0| 63 6d 70 09 61 68 2c 23 | 33 0a 09 6a 65 09 69 73 |cmp.ah,#|3..je.is|
|000053f0| 5f 64 69 73 6b 31 0a 6e | 6f 5f 64 69 73 6b 31 3a |_disk1.n|o_disk1:|
|00005400| 0a 09 6d 6f 76 09 61 78 | 2c 23 49 4e 49 54 53 45 |..mov.ax|,#INITSE|
|00005410| 47 0a 09 6d 6f 76 09 65 | 73 2c 61 78 0a 09 6d 6f |G..mov.e|s,ax..mo|
|00005420| 76 09 64 69 2c 23 30 78 | 30 30 39 30 0a 09 6d 6f |v.di,#0x|0090..mo|
|00005430| 76 09 63 78 2c 23 30 78 | 31 30 0a 09 78 6f 72 09 |v.cx,#0x|10..xor.|
|00005440| 61 78 2c 61 78 09 09 21 | 20 63 6c 65 61 72 20 61 |ax,ax..!| clear a|
|00005450| 78 0a 09 63 6c 64 0a 09 | 72 65 70 0a 09 73 74 6f |x..cld..|rep..sto|
|00005460| 73 62 0a 69 73 5f 64 69 | 73 6b 31 3a 0a 0a 21 20 |sb.is_di|sk1:..! |
|00005470| 63 68 65 63 6b 20 66 6f | 72 20 50 53 2f 32 20 70 |check fo|r PS/2 p|
|00005480| 6f 69 6e 74 69 6e 67 20 | 64 65 76 69 63 65 0a 0a |ointing |device..|
|00005490| 09 6d 6f 76 09 61 78 2c | 23 49 4e 49 54 53 45 47 |.mov.ax,|#INITSEG|
|000054a0| 0a 09 6d 6f 76 09 64 73 | 2c 61 78 0a 09 6d 6f 76 |..mov.ds|,ax..mov|
|000054b0| 09 5b 30 78 31 66 66 5d | 2c 23 30 09 21 20 64 65 |.[0x1ff]|,#0.! de|
|000054c0| 66 61 75 6c 74 20 69 73 | 20 6e 6f 20 70 6f 69 6e |fault is| no poin|
|000054d0| 74 69 6e 67 20 64 65 76 | 69 63 65 0a 09 69 6e 74 |ting dev|ice..int|
|000054e0| 09 30 78 31 31 09 09 21 | 20 69 6e 74 20 30 78 31 |.0x11..!| int 0x1|
|000054f0| 31 3a 20 65 71 75 69 70 | 6d 65 6e 74 20 64 65 74 |1: equip|ment det|
|00005500| 65 72 6d 69 6e 61 74 69 | 6f 6e 0a 09 74 65 73 74 |erminati|on..test|
|00005510| 09 61 6c 2c 23 30 78 30 | 34 09 21 20 63 68 65 63 |.al,#0x0|4.! chec|
|00005520| 6b 20 69 66 20 70 6f 69 | 6e 74 69 6e 67 20 64 65 |k if poi|nting de|
|00005530| 76 69 63 65 20 69 6e 73 | 74 61 6c 6c 65 64 0a 09 |vice ins|talled..|
|00005540| 6a 7a 09 6e 6f 5f 70 73 | 6d 6f 75 73 65 0a 09 6d |jz.no_ps|mouse..m|
|00005550| 6f 76 09 5b 30 78 31 66 | 66 5d 2c 23 30 78 61 61 |ov.[0x1f|f],#0xaa|
|00005560| 09 21 20 64 65 76 69 63 | 65 20 70 72 65 73 65 6e |.! devic|e presen|
|00005570| 74 0a 6e 6f 5f 70 73 6d | 6f 75 73 65 3a 0a 21 20 |t.no_psm|ouse:.! |
|00005580| 6e 6f 77 20 77 65 20 77 | 61 6e 74 20 74 6f 20 6d |now we w|ant to m|
|00005590| 6f 76 65 20 74 6f 20 70 | 72 6f 74 65 63 74 65 64 |ove to p|rotected|
|000055a0| 20 6d 6f 64 65 20 2e 2e | 2e 0a 0a 09 63 6c 69 09 | mode ..|....cli.|
|000055b0| 09 09 21 20 6e 6f 20 69 | 6e 74 65 72 72 75 70 74 |..! no i|nterrupt|
|000055c0| 73 20 61 6c 6c 6f 77 65 | 64 20 21 0a 09 6d 6f 76 |s allowe|d !..mov|
|000055d0| 09 61 6c 2c 23 30 78 38 | 30 09 21 20 64 69 73 61 |.al,#0x8|0.! disa|
|000055e0| 62 6c 65 20 4e 4d 49 20 | 66 6f 72 20 74 68 65 20 |ble NMI |for the |
|000055f0| 62 6f 6f 74 75 70 20 73 | 65 71 75 65 6e 63 65 0a |bootup s|equence.|
|00005600| 09 6f 75 74 09 23 30 78 | 37 30 2c 61 6c 0a 0a 21 |.out.#0x|70,al..!|
|00005610| 20 66 69 72 73 74 20 77 | 65 20 6d 6f 76 65 20 74 | first w|e move t|
|00005620| 68 65 20 73 79 73 74 65 | 6d 20 74 6f 20 69 74 73 |he syste|m to its|
|00005630| 20 72 69 67 68 74 66 75 | 6c 20 70 6c 61 63 65 0a | rightfu|l place.|
|00005640| 0a 09 6d 6f 76 09 61 78 | 2c 23 30 78 31 30 30 09 |..mov.ax|,#0x100.|
|00005650| 21 20 73 74 61 72 74 20 | 6f 66 20 64 65 73 74 69 |! start |of desti|
|00005660| 6e 61 74 69 6f 6e 20 73 | 65 67 6d 65 6e 74 0a 09 |nation s|egment..|
|00005670| 6d 6f 76 09 62 78 2c 23 | 30 78 31 30 30 30 09 21 |mov.bx,#|0x1000.!|
|00005680| 20 73 74 61 72 74 20 6f | 66 20 73 6f 75 72 63 65 | start o|f source|
|00005690| 20 73 65 67 6d 65 6e 74 | 0a 09 63 6c 64 09 09 09 | segment|..cld...|
|000056a0| 21 20 27 64 69 72 65 63 | 74 69 6f 6e 27 3d 30 2c |! 'direc|tion'=0,|
|000056b0| 20 6d 6f 76 73 20 6d 6f | 76 65 73 20 66 6f 72 77 | movs mo|ves forw|
|000056c0| 61 72 64 0a 64 6f 5f 6d | 6f 76 65 3a 0a 09 6d 6f |ard.do_m|ove:..mo|
|000056d0| 76 09 65 73 2c 61 78 09 | 09 21 20 64 65 73 74 69 |v.es,ax.|.! desti|
|000056e0| 6e 61 74 69 6f 6e 20 73 | 65 67 6d 65 6e 74 0a 09 |nation s|egment..|
|000056f0| 61 64 64 09 61 78 2c 23 | 30 78 31 30 30 0a 09 63 |add.ax,#|0x100..c|
|00005700| 6d 70 09 61 78 2c 23 30 | 78 39 30 30 30 0a 09 6a |mp.ax,#0|x9000..j|
|00005710| 7a 09 65 6e 64 5f 6d 6f | 76 65 0a 09 6d 6f 76 09 |z.end_mo|ve..mov.|
|00005720| 64 73 2c 62 78 09 09 21 | 20 73 6f 75 72 63 65 20 |ds,bx..!| source |
|00005730| 73 65 67 6d 65 6e 74 0a | 09 61 64 64 09 62 78 2c |segment.|.add.bx,|
|00005740| 23 30 78 31 30 30 0a 09 | 73 75 62 09 64 69 2c 64 |#0x100..|sub.di,d|
|00005750| 69 0a 09 73 75 62 09 73 | 69 2c 73 69 0a 09 6d 6f |i..sub.s|i,si..mo|
|00005760| 76 20 09 63 78 2c 23 30 | 78 38 30 30 0a 09 72 65 |v .cx,#0|x800..re|
|00005770| 70 0a 09 6d 6f 76 73 77 | 0a 09 6a 6d 70 09 64 6f |p..movsw|..jmp.do|
|00005780| 5f 6d 6f 76 65 0a 0a 21 | 20 74 68 65 6e 20 77 65 |_move..!| then we|
|00005790| 20 6c 6f 61 64 20 74 68 | 65 20 73 65 67 6d 65 6e | load th|e segmen|
|000057a0| 74 20 64 65 73 63 72 69 | 70 74 6f 72 73 0a 0a 65 |t descri|ptors..e|
|000057b0| 6e 64 5f 6d 6f 76 65 3a | 0a 09 6d 6f 76 09 61 78 |nd_move:|..mov.ax|
|000057c0| 2c 23 53 45 54 55 50 53 | 45 47 09 21 20 72 69 67 |,#SETUPS|EG.! rig|
|000057d0| 68 74 2c 20 66 6f 72 67 | 6f 74 20 74 68 69 73 20 |ht, forg|ot this |
|000057e0| 61 74 20 66 69 72 73 74 | 2e 20 64 69 64 6e 27 74 |at first|. didn't|
|000057f0| 20 77 6f 72 6b 20 3a 2d | 29 0a 09 6d 6f 76 09 64 | work :-|)..mov.d|
|00005800| 73 2c 61 78 0a 09 6c 69 | 64 74 09 69 64 74 5f 34 |s,ax..li|dt.idt_4|
|00005810| 38 09 09 21 20 6c 6f 61 | 64 20 69 64 74 20 77 69 |8..! loa|d idt wi|
|00005820| 74 68 20 30 2c 30 0a 09 | 6c 67 64 74 09 67 64 74 |th 0,0..|lgdt.gdt|
|00005830| 5f 34 38 09 09 21 20 6c | 6f 61 64 20 67 64 74 20 |_48..! l|oad gdt |
|00005840| 77 69 74 68 20 77 68 61 | 74 65 76 65 72 20 61 70 |with wha|tever ap|
|00005850| 70 72 6f 70 72 69 61 74 | 65 0a 0a 21 20 74 68 61 |propriat|e..! tha|
|00005860| 74 20 77 61 73 20 70 61 | 69 6e 6c 65 73 73 2c 20 |t was pa|inless, |
|00005870| 6e 6f 77 20 77 65 20 65 | 6e 61 62 6c 65 20 41 32 |now we e|nable A2|
|00005880| 30 0a 0a 09 63 61 6c 6c | 09 65 6d 70 74 79 5f 38 |0...call|.empty_8|
|00005890| 30 34 32 0a 09 6d 6f 76 | 09 61 6c 2c 23 30 78 44 |042..mov|.al,#0xD|
|000058a0| 31 09 09 21 20 63 6f 6d | 6d 61 6e 64 20 77 72 69 |1..! com|mand wri|
|000058b0| 74 65 0a 09 6f 75 74 09 | 23 30 78 36 34 2c 61 6c |te..out.|#0x64,al|
|000058c0| 0a 09 63 61 6c 6c 09 65 | 6d 70 74 79 5f 38 30 34 |..call.e|mpty_804|
|000058d0| 32 0a 09 6d 6f 76 09 61 | 6c 2c 23 30 78 44 46 09 |2..mov.a|l,#0xDF.|
|000058e0| 09 21 20 41 32 30 20 6f | 6e 0a 09 6f 75 74 09 23 |.! A20 o|n..out.#|
|000058f0| 30 78 36 30 2c 61 6c 0a | 09 63 61 6c 6c 09 65 6d |0x60,al.|.call.em|
|00005900| 70 74 79 5f 38 30 34 32 | 0a 0a 21 20 6d 61 6b 65 |pty_8042|..! make|
|00005910| 20 73 75 72 65 20 61 6e | 79 20 70 6f 73 73 69 62 | sure an|y possib|
|00005920| 6c 65 20 63 6f 70 72 6f | 63 65 73 73 6f 72 20 69 |le copro|cessor i|
|00005930| 73 20 70 72 6f 70 65 72 | 6c 79 20 72 65 73 65 74 |s proper|ly reset|
|00005940| 2e 2e 0a 0a 09 78 6f 72 | 09 61 78 2c 61 78 0a 09 |.....xor|.ax,ax..|
|00005950| 6f 75 74 09 23 30 78 66 | 30 2c 61 6c 0a 09 63 61 |out.#0xf|0,al..ca|
|00005960| 6c 6c 09 64 65 6c 61 79 | 0a 09 6f 75 74 09 23 30 |ll.delay|..out.#0|
|00005970| 78 66 31 2c 61 6c 0a 09 | 63 61 6c 6c 09 64 65 6c |xf1,al..|call.del|
|00005980| 61 79 0a 0a 21 20 77 65 | 6c 6c 2c 20 74 68 61 74 |ay..! we|ll, that|
|00005990| 20 77 65 6e 74 20 6f 6b | 2c 20 49 20 68 6f 70 65 | went ok|, I hope|
|000059a0| 2e 20 4e 6f 77 20 77 65 | 20 68 61 76 65 20 74 6f |. Now we| have to|
|000059b0| 20 72 65 70 72 6f 67 72 | 61 6d 20 74 68 65 20 69 | reprogr|am the i|
|000059c0| 6e 74 65 72 72 75 70 74 | 73 20 3a 2d 28 0a 21 20 |nterrupt|s :-(.! |
|000059d0| 77 65 20 70 75 74 20 74 | 68 65 6d 20 72 69 67 68 |we put t|hem righ|
|000059e0| 74 20 61 66 74 65 72 20 | 74 68 65 20 69 6e 74 65 |t after |the inte|
|000059f0| 6c 2d 72 65 73 65 72 76 | 65 64 20 68 61 72 64 77 |l-reserv|ed hardw|
|00005a00| 61 72 65 20 69 6e 74 65 | 72 72 75 70 74 73 2c 20 |are inte|rrupts, |
|00005a10| 61 74 0a 21 20 69 6e 74 | 20 30 78 32 30 2d 30 78 |at.! int| 0x20-0x|
|00005a20| 32 46 2e 20 54 68 65 72 | 65 20 74 68 65 79 20 77 |2F. Ther|e they w|
|00005a30| 6f 6e 27 74 20 6d 65 73 | 73 20 75 70 20 61 6e 79 |on't mes|s up any|
|00005a40| 74 68 69 6e 67 2e 20 53 | 61 64 6c 79 20 49 42 4d |thing. S|adly IBM|
|00005a50| 20 72 65 61 6c 6c 79 0a | 21 20 6d 65 73 73 65 64 | really.|! messed|
|00005a60| 20 74 68 69 73 20 75 70 | 20 77 69 74 68 20 74 68 | this up| with th|
|00005a70| 65 20 6f 72 69 67 69 6e | 61 6c 20 50 43 2c 20 61 |e origin|al PC, a|
|00005a80| 6e 64 20 74 68 65 79 20 | 68 61 76 65 6e 27 74 20 |nd they |haven't |
|00005a90| 62 65 65 6e 20 61 62 6c | 65 20 74 6f 0a 21 20 72 |been abl|e to.! r|
|00005aa0| 65 63 74 69 66 79 20 69 | 74 20 61 66 74 65 72 77 |ectify i|t afterw|
|00005ab0| 61 72 64 73 2e 20 54 68 | 75 73 20 74 68 65 20 62 |ards. Th|us the b|
|00005ac0| 69 6f 73 20 70 75 74 73 | 20 69 6e 74 65 72 72 75 |ios puts| interru|
|00005ad0| 70 74 73 20 61 74 20 30 | 78 30 38 2d 30 78 30 66 |pts at 0|x08-0x0f|
|00005ae0| 2c 0a 21 20 77 68 69 63 | 68 20 69 73 20 75 73 65 |,.! whic|h is use|
|00005af0| 64 20 66 6f 72 20 74 68 | 65 20 69 6e 74 65 72 6e |d for th|e intern|
|00005b00| 61 6c 20 68 61 72 64 77 | 61 72 65 20 69 6e 74 65 |al hardw|are inte|
|00005b10| 72 72 75 70 74 73 20 61 | 73 20 77 65 6c 6c 2e 20 |rrupts a|s well. |
|00005b20| 57 65 20 6a 75 73 74 0a | 21 20 68 61 76 65 20 74 |We just.|! have t|
|00005b30| 6f 20 72 65 70 72 6f 67 | 72 61 6d 20 74 68 65 20 |o reprog|ram the |
|00005b40| 38 32 35 39 27 73 2c 20 | 61 6e 64 20 69 74 20 69 |8259's, |and it i|
|00005b50| 73 6e 27 74 20 66 75 6e | 2e 0a 0a 09 6d 6f 76 09 |sn't fun|....mov.|
|00005b60| 61 6c 2c 23 30 78 31 31 | 09 09 21 20 69 6e 69 74 |al,#0x11|..! init|
|00005b70| 69 61 6c 69 7a 61 74 69 | 6f 6e 20 73 65 71 75 65 |ializati|on seque|
|00005b80| 6e 63 65 0a 09 6f 75 74 | 09 23 30 78 32 30 2c 61 |nce..out|.#0x20,a|
|00005b90| 6c 09 09 21 20 73 65 6e | 64 20 69 74 20 74 6f 20 |l..! sen|d it to |
|00005ba0| 38 32 35 39 41 2d 31 0a | 09 63 61 6c 6c 09 64 65 |8259A-1.|.call.de|
|00005bb0| 6c 61 79 0a 09 6f 75 74 | 09 23 30 78 41 30 2c 61 |lay..out|.#0xA0,a|
|00005bc0| 6c 09 09 21 20 61 6e 64 | 20 74 6f 20 38 32 35 39 |l..! and| to 8259|
|00005bd0| 41 2d 32 0a 09 63 61 6c | 6c 09 64 65 6c 61 79 0a |A-2..cal|l.delay.|
|00005be0| 09 6d 6f 76 09 61 6c 2c | 23 30 78 32 30 09 09 21 |.mov.al,|#0x20..!|
|00005bf0| 20 73 74 61 72 74 20 6f | 66 20 68 61 72 64 77 61 | start o|f hardwa|
|00005c00| 72 65 20 69 6e 74 27 73 | 20 28 30 78 32 30 29 0a |re int's| (0x20).|
|00005c10| 09 6f 75 74 09 23 30 78 | 32 31 2c 61 6c 0a 09 63 |.out.#0x|21,al..c|
|00005c20| 61 6c 6c 09 64 65 6c 61 | 79 0a 09 6d 6f 76 09 61 |all.dela|y..mov.a|
|00005c30| 6c 2c 23 30 78 32 38 09 | 09 21 20 73 74 61 72 74 |l,#0x28.|.! start|
|00005c40| 20 6f 66 20 68 61 72 64 | 77 61 72 65 20 69 6e 74 | of hard|ware int|
|00005c50| 27 73 20 32 20 28 30 78 | 32 38 29 0a 09 6f 75 74 |'s 2 (0x|28)..out|
|00005c60| 09 23 30 78 41 31 2c 61 | 6c 0a 09 63 61 6c 6c 09 |.#0xA1,a|l..call.|
|00005c70| 64 65 6c 61 79 0a 09 6d | 6f 76 09 61 6c 2c 23 30 |delay..m|ov.al,#0|
|00005c80| 78 30 34 09 09 21 20 38 | 32 35 39 2d 31 20 69 73 |x04..! 8|259-1 is|
|00005c90| 20 6d 61 73 74 65 72 0a | 09 6f 75 74 09 23 30 78 | master.|.out.#0x|
|00005ca0| 32 31 2c 61 6c 0a 09 63 | 61 6c 6c 09 64 65 6c 61 |21,al..c|all.dela|
|00005cb0| 79 0a 09 6d 6f 76 09 61 | 6c 2c 23 30 78 30 32 09 |y..mov.a|l,#0x02.|
|00005cc0| 09 21 20 38 32 35 39 2d | 32 20 69 73 20 73 6c 61 |.! 8259-|2 is sla|
|00005cd0| 76 65 0a 09 6f 75 74 09 | 23 30 78 41 31 2c 61 6c |ve..out.|#0xA1,al|
|00005ce0| 0a 09 63 61 6c 6c 09 64 | 65 6c 61 79 0a 09 6d 6f |..call.d|elay..mo|
|00005cf0| 76 09 61 6c 2c 23 30 78 | 30 31 09 09 21 20 38 30 |v.al,#0x|01..! 80|
|00005d00| 38 36 20 6d 6f 64 65 20 | 66 6f 72 20 62 6f 74 68 |86 mode |for both|
|00005d10| 0a 09 6f 75 74 09 23 30 | 78 32 31 2c 61 6c 0a 09 |..out.#0|x21,al..|
|00005d20| 63 61 6c 6c 09 64 65 6c | 61 79 0a 09 6f 75 74 09 |call.del|ay..out.|
|00005d30| 23 30 78 41 31 2c 61 6c | 0a 09 63 61 6c 6c 09 64 |#0xA1,al|..call.d|
|00005d40| 65 6c 61 79 0a 09 6d 6f | 76 09 61 6c 2c 23 30 78 |elay..mo|v.al,#0x|
|00005d50| 46 46 09 09 21 20 6d 61 | 73 6b 20 6f 66 66 20 61 |FF..! ma|sk off a|
|00005d60| 6c 6c 20 69 6e 74 65 72 | 72 75 70 74 73 20 66 6f |ll inter|rupts fo|
|00005d70| 72 20 6e 6f 77 0a 09 6f | 75 74 09 23 30 78 41 31 |r now..o|ut.#0xA1|
|00005d80| 2c 61 6c 0a 09 63 61 6c | 6c 09 64 65 6c 61 79 0a |,al..cal|l.delay.|
|00005d90| 09 6d 6f 76 09 61 6c 2c | 23 30 78 46 42 09 09 21 |.mov.al,|#0xFB..!|
|00005da0| 20 6d 61 73 6b 20 61 6c | 6c 20 69 72 71 27 73 20 | mask al|l irq's |
|00005db0| 62 75 74 20 69 72 71 32 | 20 77 68 69 63 68 0a 09 |but irq2| which..|
|00005dc0| 6f 75 74 09 23 30 78 32 | 31 2c 61 6c 09 09 21 20 |out.#0x2|1,al..! |
|00005dd0| 69 73 20 63 61 73 63 61 | 64 65 64 0a 0a 21 20 77 |is casca|ded..! w|
|00005de0| 65 6c 6c 2c 20 74 68 61 | 74 20 63 65 72 74 61 69 |ell, tha|t certai|
|00005df0| 6e 6c 79 20 77 61 73 6e | 27 74 20 66 75 6e 20 3a |nly wasn|'t fun :|
|00005e00| 2d 28 2e 20 48 6f 70 65 | 66 75 6c 6c 79 20 69 74 |-(. Hope|fully it|
|00005e10| 20 77 6f 72 6b 73 2c 20 | 61 6e 64 20 77 65 20 64 | works, |and we d|
|00005e20| 6f 6e 27 74 0a 21 20 6e | 65 65 64 20 6e 6f 20 73 |on't.! n|eed no s|
|00005e30| 74 65 65 6e 6b 69 6e 67 | 20 42 49 4f 53 20 61 6e |teenking| BIOS an|
|00005e40| 79 77 61 79 20 28 65 78 | 63 65 70 74 20 66 6f 72 |yway (ex|cept for|
|00005e50| 20 74 68 65 20 69 6e 69 | 74 69 61 6c 20 6c 6f 61 | the ini|tial loa|
|00005e60| 64 69 6e 67 20 3a 2d 29 | 2e 0a 21 20 54 68 65 20 |ding :-)|..! The |
|00005e70| 42 49 4f 53 2d 72 6f 75 | 74 69 6e 65 20 77 61 6e |BIOS-rou|tine wan|
|00005e80| 74 73 20 6c 6f 74 73 20 | 6f 66 20 75 6e 6e 65 63 |ts lots |of unnec|
|00005e90| 65 73 73 61 72 79 20 64 | 61 74 61 2c 20 61 6e 64 |essary d|ata, and|
|00005ea0| 20 69 74 27 73 20 6c 65 | 73 73 0a 21 20 22 69 6e | it's le|ss.! "in|
|00005eb0| 74 65 72 65 73 74 69 6e | 67 22 20 61 6e 79 77 61 |terestin|g" anywa|
|00005ec0| 79 2e 20 54 68 69 73 20 | 69 73 20 68 6f 77 20 52 |y. This |is how R|
|00005ed0| 45 41 4c 20 70 72 6f 67 | 72 61 6d 6d 65 72 73 20 |EAL prog|rammers |
|00005ee0| 64 6f 20 69 74 2e 0a 21 | 0a 21 20 57 65 6c 6c 2c |do it..!|.! Well,|
|00005ef0| 20 6e 6f 77 27 73 20 74 | 68 65 20 74 69 6d 65 20 | now's t|he time |
|00005f00| 74 6f 20 61 63 74 75 61 | 6c 6c 79 20 6d 6f 76 65 |to actua|lly move|
|00005f10| 20 69 6e 74 6f 20 70 72 | 6f 74 65 63 74 65 64 20 | into pr|otected |
|00005f20| 6d 6f 64 65 2e 20 54 6f | 20 6d 61 6b 65 0a 21 20 |mode. To| make.! |
|00005f30| 74 68 69 6e 67 73 20 61 | 73 20 73 69 6d 70 6c 65 |things a|s simple|
|00005f40| 20 61 73 20 70 6f 73 73 | 69 62 6c 65 2c 20 77 65 | as poss|ible, we|
|00005f50| 20 64 6f 20 6e 6f 20 72 | 65 67 69 73 74 65 72 20 | do no r|egister |
|00005f60| 73 65 74 2d 75 70 20 6f | 72 20 61 6e 79 74 68 69 |set-up o|r anythi|
|00005f70| 6e 67 2c 0a 21 20 77 65 | 20 6c 65 74 20 74 68 65 |ng,.! we| let the|
|00005f80| 20 67 6e 75 2d 63 6f 6d | 70 69 6c 65 64 20 33 32 | gnu-com|piled 32|
|00005f90| 2d 62 69 74 20 70 72 6f | 67 72 61 6d 73 20 64 6f |-bit pro|grams do|
|00005fa0| 20 74 68 61 74 2e 20 57 | 65 20 6a 75 73 74 20 6a | that. W|e just j|
|00005fb0| 75 6d 70 20 74 6f 0a 21 | 20 61 62 73 6f 6c 75 74 |ump to.!| absolut|
|00005fc0| 65 20 61 64 64 72 65 73 | 73 20 30 78 30 30 30 30 |e addres|s 0x0000|
|00005fd0| 30 2c 20 69 6e 20 33 32 | 2d 62 69 74 20 70 72 6f |0, in 32|-bit pro|
|00005fe0| 74 65 63 74 65 64 20 6d | 6f 64 65 2e 0a 21 0a 21 |tected m|ode..!.!|
|00005ff0| 20 4e 6f 74 65 20 74 68 | 61 74 20 74 68 65 20 73 | Note th|at the s|
|00006000| 68 6f 72 74 20 6a 75 6d | 70 20 69 73 6e 27 74 20 |hort jum|p isn't |
|00006010| 73 74 72 69 63 74 6c 79 | 20 6e 65 65 64 65 64 2c |strictly| needed,|
|00006020| 20 61 6c 74 68 6f 75 67 | 68 74 20 74 68 65 72 65 | althoug|ht there|
|00006030| 20 61 72 65 0a 21 20 72 | 65 61 73 6f 6e 73 20 77 | are.! r|easons w|
|00006040| 68 79 20 69 74 20 6d 69 | 67 68 74 20 62 65 20 61 |hy it mi|ght be a|
|00006050| 20 67 6f 6f 64 20 69 64 | 65 61 2e 20 49 74 20 77 | good id|ea. It w|
|00006060| 6f 6e 27 74 20 68 75 72 | 74 20 69 6e 20 61 6e 79 |on't hur|t in any|
|00006070| 20 63 61 73 65 2e 0a 21 | 0a 09 6d 6f 76 09 61 78 | case..!|..mov.ax|
|00006080| 2c 23 30 78 30 30 30 31 | 09 21 20 70 72 6f 74 65 |,#0x0001|.! prote|
|00006090| 63 74 65 64 20 6d 6f 64 | 65 20 28 50 45 29 20 62 |cted mod|e (PE) b|
|000060a0| 69 74 0a 09 6c 6d 73 77 | 09 61 78 09 09 21 20 54 |it..lmsw|.ax..! T|
|000060b0| 68 69 73 20 69 73 20 69 | 74 21 0a 09 6a 6d 70 09 |his is i|t!..jmp.|
|000060c0| 66 6c 75 73 68 5f 69 6e | 73 74 72 0a 66 6c 75 73 |flush_in|str.flus|
|000060d0| 68 5f 69 6e 73 74 72 3a | 0a 09 6a 6d 70 69 09 30 |h_instr:|..jmpi.0|
|000060e0| 78 31 30 30 30 2c 4b 45 | 52 4e 45 4c 5f 43 53 09 |x1000,KE|RNEL_CS.|
|000060f0| 21 20 6a 6d 70 20 6f 66 | 66 73 65 74 20 31 30 30 |! jmp of|fset 100|
|00006100| 30 20 6f 66 20 73 65 67 | 6d 65 6e 74 20 30 78 31 |0 of seg|ment 0x1|
|00006110| 30 20 28 63 73 29 0a 0a | 21 20 54 68 69 73 20 72 |0 (cs)..|! This r|
|00006120| 6f 75 74 69 6e 65 20 63 | 68 65 63 6b 73 20 74 68 |outine c|hecks th|
|00006130| 61 74 20 74 68 65 20 6b | 65 79 62 6f 61 72 64 20 |at the k|eyboard |
|00006140| 63 6f 6d 6d 61 6e 64 20 | 71 75 65 75 65 20 69 73 |command |queue is|
|00006150| 20 65 6d 70 74 79 0a 21 | 20 28 61 66 74 65 72 20 | empty.!| (after |
|00006160| 65 6d 70 74 79 69 6e 67 | 20 74 68 65 20 6f 75 74 |emptying| the out|
|00006170| 70 75 74 20 62 75 66 66 | 65 72 73 29 0a 21 0a 21 |put buff|ers).!.!|
|00006180| 20 4e 6f 20 74 69 6d 65 | 6f 75 74 20 69 73 20 75 | No time|out is u|
|00006190| 73 65 64 20 2d 20 69 66 | 20 74 68 69 73 20 68 61 |sed - if| this ha|
|000061a0| 6e 67 73 20 74 68 65 72 | 65 20 69 73 20 73 6f 6d |ngs ther|e is som|
|000061b0| 65 74 68 69 6e 67 20 77 | 72 6f 6e 67 20 77 69 74 |ething w|rong wit|
|000061c0| 68 0a 21 20 74 68 65 20 | 6d 61 63 68 69 6e 65 2c |h.! the |machine,|
|000061d0| 20 61 6e 64 20 77 65 20 | 70 72 6f 62 61 62 6c 79 | and we |probably|
|000061e0| 20 63 6f 75 6c 64 6e 27 | 74 20 70 72 6f 63 65 65 | couldn'|t procee|
|000061f0| 64 20 61 6e 79 77 61 79 | 2e 0a 65 6d 70 74 79 5f |d anyway|..empty_|
|00006200| 38 30 34 32 3a 0a 09 63 | 61 6c 6c 09 64 65 6c 61 |8042:..c|all.dela|
|00006210| 79 0a 09 69 6e 09 61 6c | 2c 23 30 78 36 34 09 21 |y..in.al|,#0x64.!|
|00006220| 20 38 30 34 32 20 73 74 | 61 74 75 73 20 70 6f 72 | 8042 st|atus por|
|00006230| 74 0a 09 74 65 73 74 09 | 61 6c 2c 23 31 09 09 21 |t..test.|al,#1..!|
|00006240| 20 6f 75 74 70 75 74 20 | 62 75 66 66 65 72 3f 0a | output |buffer?.|
|00006250| 09 6a 7a 09 6e 6f 5f 6f | 75 74 70 75 74 0a 09 63 |.jz.no_o|utput..c|
|00006260| 61 6c 6c 09 64 65 6c 61 | 79 0a 09 69 6e 09 61 6c |all.dela|y..in.al|
|00006270| 2c 23 30 78 36 30 09 21 | 20 72 65 61 64 20 69 74 |,#0x60.!| read it|
|00006280| 0a 09 6a 6d 70 09 65 6d | 70 74 79 5f 38 30 34 32 |..jmp.em|pty_8042|
|00006290| 0a 6e 6f 5f 6f 75 74 70 | 75 74 3a 0a 09 74 65 73 |.no_outp|ut:..tes|
|000062a0| 74 09 61 6c 2c 23 32 09 | 09 21 20 69 73 20 69 6e |t.al,#2.|.! is in|
|000062b0| 70 75 74 20 62 75 66 66 | 65 72 20 66 75 6c 6c 3f |put buff|er full?|
|000062c0| 0a 09 6a 6e 7a 09 65 6d | 70 74 79 5f 38 30 34 32 |..jnz.em|pty_8042|
|000062d0| 09 21 20 79 65 73 20 2d | 20 6c 6f 6f 70 0a 09 72 |.! yes -| loop..r|
|000062e0| 65 74 0a 21 0a 21 20 52 | 65 61 64 20 61 20 6b 65 |et.!.! R|ead a ke|
|000062f0| 79 20 61 6e 64 20 72 65 | 74 75 72 6e 20 74 68 65 |y and re|turn the|
|00006300| 20 28 55 53 2d 29 61 73 | 63 69 69 20 63 6f 64 65 | (US-)as|cii code|
|00006310| 20 69 6e 20 61 6c 2c 20 | 73 63 61 6e 20 63 6f 64 | in al, |scan cod|
|00006320| 65 20 69 6e 20 61 68 0a | 21 0a 67 65 74 6b 65 79 |e in ah.|!.getkey|
|00006330| 3a 0a 09 78 6f 72 09 61 | 68 2c 61 68 0a 09 69 6e |:..xor.a|h,ah..in|
|00006340| 74 09 30 78 31 36 0a 09 | 72 65 74 0a 0a 21 0a 21 |t.0x16..|ret..!.!|
|00006350| 20 52 65 61 64 20 61 20 | 6b 65 79 20 77 69 74 68 | Read a |key with|
|00006360| 20 61 20 74 69 6d 65 6f | 75 74 20 6f 66 20 33 30 | a timeo|ut of 30|
|00006370| 20 73 65 63 6f 6e 64 73 | 2e 20 54 68 65 20 63 6d | seconds|. The cm|
|00006380| 6f 73 20 63 6c 6f 63 6b | 20 69 73 20 75 73 65 64 |os clock| is used|
|00006390| 20 74 6f 20 67 65 74 0a | 21 20 74 68 65 20 74 69 | to get.|! the ti|
|000063a0| 6d 65 2e 0a 21 0a 67 65 | 74 6b 74 3a 0a 09 63 61 |me..!.ge|tkt:..ca|
|000063b0| 6c 6c 09 67 65 74 74 69 | 6d 65 0a 09 61 64 64 09 |ll.getti|me..add.|
|000063c0| 61 6c 2c 23 33 30 09 09 | 21 20 77 61 69 74 20 33 |al,#30..|! wait 3|
|000063d0| 30 20 73 65 63 6f 6e 64 | 73 0a 09 63 6d 70 09 61 |0 second|s..cmp.a|
|000063e0| 6c 2c 23 36 30 0a 09 6a | 6c 09 6c 6d 69 6e 75 74 |l,#60..j|l.lminut|
|000063f0| 65 0a 09 73 75 62 09 61 | 6c 2c 23 36 30 0a 6c 6d |e..sub.a|l,#60.lm|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.