Changeset 52 for trunk/BOOTCODE/REGULAR
- Timestamp:
- Apr 13, 2014, 4:45:41 PM (12 years ago)
- Location:
- trunk/BOOTCODE/REGULAR
- Files:
-
- 2 edited
-
PARTMAIN.ASM (modified) (17 diffs)
-
STD_TEXT.ASM (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BOOTCODE/REGULAR/PARTMAIN.ASM
r51 r52 134 134 ; In: DS:SI - IPT-Entry of partition 135 135 ; DS:PartitionSector - Actual Boot-Record of partition 136 ; Out: *none* (BootRecordCRD updated) 136 ; Out: *none* (BootRecordCRC updated) 137 ; CHECKME: Verify the change (BX points to sector to CRC) is working OK 137 138 PART_UpdateBootRecordCRC Proc Near Uses bx 138 mov si, offset PartitionSector 139 push si 140 ;~ mov si, offset PartitionSector 141 mov si, bx 139 142 mov bx, 4B4Dh ; Magic: 'MK' 140 143 call MBR_GetCheckOfSector 144 pop si 141 145 mov [si+LocIPT_BootRecordCRC], bx 142 146 ret … … 144 148 145 149 146 ;147 ; What happens here ?148 ;149 150 150 151 ; Rousseau: … … 167 168 ; presumably pointed to an area where a null byte was near. 168 169 ; 169 ; Fix: 170 ; Test BX for zero and if so, skip the 170 ; BOOKMARK: The nasty pointer bug 171 171 172 172 … … 781 781 782 782 783 ; Rousseau: added 783 784 784 ; Compare a volume-label in the IPT to the install-volume 785 785 ; SI holds pointer to entry in IPT … … 858 858 859 859 860 ; Setup Phase1 860 861 861 ; If found CY=1, AL=partnum, else CY=0, AL=0FFH 862 ; BOOKMARK: Setup Phase1 862 863 PART_SetupPhase1 Proc Uses bx cx dx si di 863 864 … … 1142 1143 ; This loads the MBR in case of PRI or the EBR in case of LOG partitions. 1143 1144 ; 1145 ; BOOKMARK: PBR/EBR loading 1144 1146 call DriveIO_LoadPartition ; Load Table... [LOAD] 1145 1147 … … 1235 1237 1236 1238 ; 1237 ; Setup 'I13X' signature.1239 ; BOOKMARK: Setup 'I13X' signature. 1238 1240 ; 1239 1241 PSP_ForceI13X: … … 1492 1494 jz PSP_NoVIBR 1493 1495 1496 1494 1497 ; ----------------------------------------------------- CHECKS FOR VIBR 1498 ; BOOKMARK: Check for virus in PBR 1495 1499 push si 1496 1500 mov si, offset PartitionSector … … 1699 1703 ; 1700 1704 1701 ; 1702 ; Fix hidden sectors field 1703 ; 1705 ; BOOKMARK: Fix hidden sectors field 1704 1706 mov ax,[si+LocIPT_AbsoluteBegin] 1705 1707 mov es:[di+1ch], ax ; Low word of 32-bits "hidden sectors" … … 1726 1728 1727 1729 1728 ; FIXME:1730 ; 1729 1731 ; The PBR is already loaded, no need to load it again in the 1730 1732 ; calls below. … … 1732 1734 ; Better use the already done discovery to determine the system. 1733 1735 ; 1734 1736 ; FIXME: PBR Already loaded 1737 1735 1738 ; When FAT12/FAT16/HPFS/JFS then boot-drive-letter can be tested 1736 1739 ; or adjusted. … … 1955 1958 ; WE CONTINUE BOOTING BUT OS/2 - eCS WILL MOST PROBABLY FAIL TO BOOT. 1956 1959 1957 ; FIXME: 1958 ; ISSUE SOME KIND OF WARNING... 1959 1960 ; FIXME: Issue some kind of warning 1961 1960 1962 ;mov ah,07h 1961 1963 ;mov si,offset CheckID_MBR … … 2035 2037 pop si 2036 2038 2039 2040 ; BOOKMARK: Update the CRC of the Partition Boot Record. 2041 ; FIXME: Update CRC on PBR 2042 ;~ mov bx, offset [PBRSector] 2043 ;~ call PART_UpdateBootRecordCRC 2044 2045 2037 2046 ; Setup the registers for the partition location. 2038 2047 mov ax, wptr [si+LocIPT_AbsoluteBegin+0] … … 2042 2051 mov dl, [si+LocIPT_Drive] 2043 2052 2044 ; Write the adjusted JFS PBR to disk. 2053 2054 ; BOOKMARK: Write the adjusted HPFS/JFS PBR to disk. 2045 2055 mov si, offset [PBRSector] 2046 2056 call DriveIO_SaveSector … … 2048 2058 no_jfs_pbr: 2049 2059 popa 2050 2051 2052 ;xor ax,ax2053 ;int 16h2054 2055 2056 2060 2057 2061 … … 2090 2094 boot_from_floppy: 2091 2095 2092 ; 2093 ; Here we copy the prepared partition boot-record to 0000:7C00h 2096 2097 2098 2099 ; 2100 ; Here we copy the prepared boot-record to 0000:7C00h 2094 2101 ; to give it control later on. 2095 2102 ; … … 2197 2204 2198 2205 2199 2206 ; BOOKMARK: JUMP TO PBR CODE 2200 2207 ; ############################### 2201 2208 ; # JUMP TO THE PBR LOADER CODE # -
trunk/BOOTCODE/REGULAR/STD_TEXT.ASM
r51 r52 58 58 ;~ db ' M. Kiewitz <<@ Interim Release @>> (bld: ' 59 59 ;~ db ' M. Kiewitz <<Release Candidate 2>> (bld: ' 60 db ' M. Kiewitz <<Release Candidate 3>> (bld: '60 db ' M. Kiewitz <<Release Candidate 4>> (bld: ' 61 61 db BLDLVL_YEAR 62 62 db BLDLVL_MONTH
Note:
See TracChangeset
for help on using the changeset viewer.
