Changeset 76
- Timestamp:
- Apr 8, 2017, 12:26:11 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/airboot.asm
r72 r76 94 94 ENDIF 95 95 96 ;97 ; If ReleaseCode is not defined, it will produce debug-able code...98 ; Rousseau: This is currently *not* functional so don't use it !99 ; It was used to debug AiR-BOOT as a .COM file.100 ;101 ReleaseCode equ -1102 96 103 97 … … 133 127 ; ----------------------------------------------------------------------------- 134 128 ; Address labels after code-move 135 BootBaseSeg equ 08000h 136 BootBasePtr equ 0h 129 BootBaseSeg equ 08000h ; Pre-boot, in the low 640K 130 BootBasePtr equ 0h ; We put our MBR to this location 137 131 BootBaseExec equ BootBasePtr+offset MBR_RealStart 138 StackSeg equ 07000h ; Put the stack below the code 139 140 ; Use different addresses depending on whether in pre-boot 141 ; or debug (dos) environment. 142 IFDEF ReleaseCode 143 StartBaseSeg equ 00000h ; Pre-boot, we are in low memory 144 StartBasePtr equ 07C00h ; BIOS starts our MBR at 0:7C00 145 ELSE 146 ; Rousseau: where does this value come from ? 147 ; Should be CS. 148 ; Rectified in actual code by ignoring this value. 149 StartBaseSeg equ 03A98h ; Adjust to DOS segment 150 StartBasePtr equ 00100h ; We are a .COM file, DOS is active 151 ENDIF 132 StackSeg equ 07000h ; Put the stack below the code 133 StartBaseSeg equ 00000h ; Pre-boot, we are in low memory 134 StartBasePtr equ 07C00h ; BIOS starts our MBR at 0:7C00 152 135 153 136 … … 546 529 ;sti 547 530 548 ; Depending on pre-boot or debug. 549 ; Note that ReleaseCode is obsolete, so we will always move 550 ; 256 words; aka this sector, the MBR. 551 IFDEF ReleaseCode 531 ; Size of the MBR in words. 552 532 mov cx, 256 ; Pre-boot environment 553 ELSE554 mov cx, 32700 ; Old Debug environment (move ~64kB)555 ENDIF556 533 557 534 ; … … 732 709 push bx ; Old SP 733 710 734 735 ; If we are in debug-mode, all code is moved already,736 ; so we can directly jump to it.737 ; One difference is that in debug-mode, the whole .com image is738 ; loaded by dos while when air-boot is active from the MBR it739 ; does the loading itself.740 ; (This debug environment is obsolete and dis-fuctional)741 IFNDEF ReleaseCode742 jmp AiR_BOOT_Start743 ENDIF744 711 745 712 ; Load the configuration-sectors from disk. … … 1428 1395 call PASSWORD_AskChangeBootPwd 1429 1396 1430 IFNDEF ReleaseCode1431 ; Debug Code to terminate DOS .COM program - used for1432 ; testing AiR-BOOT1433 ; Obsolete.1434 int 31435 mov ax, 6200h1436 int 21h1437 mov es, bx1438 mov ax, 4C00h ; Quit program1439 int 21h1440 ENDIF1441 1397 call ANTIVIR_SaveBackUpMBR 1442 1398 -
trunk/bootcode/regular/other.asm
r67 r76 348 348 INT13X_Supported: 349 349 350 IFNDEF ReleaseCode351 ret352 ENDIF353 354 350 355 351 ; -
trunk/bootcode/regular/partmain.asm
r73 r76 595 595 call PART_SearchFileSysHiddenID ; Put on =STEALTH= 596 596 mov bptr es:[di+LocBRPT_SystemID], al 597 IFDEF ReleaseCode 598 call DriveIO_SavePartition ; Saves Partition-Table 599 ENDIF 597 call DriveIO_SavePartition ; Saves Partition-Table 600 598 ret 601 599 PART_HidePartition EndP … … 1096 1094 1097 1095 1098 IFDEF ReleaseCode1099 1096 ; 1100 1097 ; Save configuration on HDD boots (save CFG_PartLast) 1101 1098 ; 1102 1099 call DriveIO_SaveConfiguration 1103 ENDIF1104 1100 1105 1101 … … 1201 1197 1202 1198 1203 IFDEF ReleaseCode1204 1199 ; 1205 1200 ; Save the Partition Table. 1206 1201 ; 1207 1202 call DriveIO_SavePartition ; Saves the Partition-Table [SAVE] 1208 ENDIF1209 1203 1210 1204 … … 1343 1337 call DriveIO_LoadPartition ; Load Primary Partition Table 1344 1338 call PART_MarkFirstGoodPrimary 1345 1346 IFDEF ReleaseCode1347 1339 call DriveIO_SavePartition ; Saves the Partition-Table 1348 ENDIF1349 1340 1350 1341 … … 2208 2199 ; # JUMP TO THE PBR LOADER CODE # 2209 2200 ; ############################### 2210 IFDEF ReleaseCode 2211 db 0EAh 2212 dw StartBasePtr 2213 dw StartBaseSeg 2214 ENDIF 2201 db 0EAh 2202 dw StartBasePtr 2203 dw StartBaseSeg 2215 2204 2216 2205 -
trunk/bootcode/regular/partscan.asm
r57 r76 222 222 223 223 call PARTSCAN_ScanPartition 224 IFDEF ReleaseCode 224 225 225 call DriveIO_SavePartition 226 ENDIF 226 227 227 call PARTSCAN_ScanPartitionForExtended 228 228 jc PSSDFP_LoadThisPartition 229 229 230 PSSDFP_InvalidPartition: 230 231 ret … … 304 305 ; Clearing the boot-flags on other disks would prevent booting them 305 306 ; from the BIOS. (TRAC ticket #6) 306 cmp dl, 080h ; See if this is boot-disk 307 cmp dl, 080h ; See if this is boot-disk 307 308 jne PSSP_Skip_Clear_BootFlag ; Nope, skip clear flag 308 309 and byte ptr [si+LocBRPT_Flags], 7Fh ; Reset the Active-Flag … … 704 705 PCCTP_CompareFailed: 705 706 mov ch, ah 706 ; Default Flags hinzufgen...707 ; Insert Default Flags... 707 708 mov cl, LocIPT_DefaultFlags 708 709 -
trunk/bootcode/setup/main.asm
r65 r76 59 59 or ax, ax 60 60 jz SSTSI_NoItemPack 61 add si, LocMENU_LenOfItemPack ; ItemPack bergehen61 add si, LocMENU_LenOfItemPack ; Add ItemPack size 62 62 SSTSI_NoItemPack: 63 63 add si, LocMENU_LenOfMenuPtrBlock ; Skip Ptr-Block (+3 deshalb, weil danach INC!) … … 88 88 mov al, [SETUP_KeysOnEntry] 89 89 test al, Keys_Flags_EnterSetup 90 IFDEF ReleaseCode91 90 jz SCES_NoEnterSETUP 92 ENDIF93 91 SCES_ForceEnter: 94 92 call SETUP_Main … … 672 670 ENDIF 673 671 674 ; Zeichnet die Men Hilfe aufn Bildschirm672 ; Display the Help Menu 675 673 ; In: SI - Pointer to 4 HelpStrings... 676 674 ; Destroyed: None … … 1127 1125 add word ptr [CFG_LastTimeEditLow], 1 1128 1126 adc word ptr [CFG_LastTimeEditHi], 0 ; Update Time-Stamp 1129 IFDEF ReleaseCode 1130 call DriveIO_SaveConfiguration 1131 ENDIF 1127 call DriveIO_SaveConfiguration 1132 1128 mov byte ptr [SETUP_ExitEvent], 1 ; Exit and continue boot process 1133 1129 SEMSAES_UserAbort: … … 1145 1141 1146 1142 SEMEWS_DoThis: 1147 IFDEF ReleaseCode; Loads basic configuration...1148 call DriveIO_LoadConfiguration; This is *NOT* IPT nor HideConfig1149 ENDIF1143 ; Loads basic configuration... 1144 ; This is *NOT* IPT nor HideConfig 1145 call DriveIO_LoadConfiguration 1150 1146 mov byte ptr [SETUP_ExitEvent], 1 ; Exit and continue boot process 1151 1147 SEMEWS_UserAbort: -
trunk/bootcode/setup/part_set.asm
r67 r76 879 879 mov si, offset LVMSector 880 880 call LVM_UpdateSectorCRC 881 IFDEF ReleaseCode 882 883 ENDIF 881 882 call DriveIO_SaveLVMSector ; Save sector 883 884 884 jmp PSCPN_AllDone 885 885 … … 892 892 rep movsb ; Copy IPT-name to Boot-Record 893 893 pop si 894 IFDEF ReleaseCode 895 call DriveIO_SavePartition ; Saves Boot-Record 896 ENDIF 894 895 call DriveIO_SavePartition ; Saves Boot-Record 897 896 898 897 ; And reset VIBR-CRC, otherwise virus-warning and system-halt … … 1049 1048 mov cx, bx 1050 1049 call VideoIO_Locate 1051 mov al, 'µ'1050 mov al, 0b5h 1052 1051 call VideoIO_PrintSingleChar 1053 1052 … … 1081 1080 mov cx, CLR_PART_HIDE_WINDOW_BASE ; Lila on lila 1082 1081 call VideoIO_Color 1083 mov al, 'Æ'1082 mov al, 0c6h 1084 1083 call VideoIO_PrintSingleChar 1085 1084 ; --- Make Window-Footer - "State when booting..." at bottom right frame-line … … 1119 1118 ; inc cl 1120 1119 ; call MBR_Locate ; Location 16, HiddenX 1121 ; mov al, 'µ'1120 ; mov al, 0b5h 1122 1121 ; call MBR_PrintSingleChar 1123 1122 ; mov cx, 0E05h ; Yellow on Lila … … 1134 1133 ; mov cx, 0D05h ; Lila on lila 1135 1134 ; call MBR_Color 1136 ; mov al, 'Æ'1135 ; mov al, 0c6h 1137 1136 ; call MBR_PrintSingleChar 1138 1137 … … 1776 1775 mov cx, bx 1777 1776 call VideoIO_Locate 1778 mov al, 'µ'1777 mov al, 0b5h 1779 1778 call VideoIO_PrintSingleChar 1780 1779 … … 1808 1807 mov cx, CLR_PART_DL_WINDOW_BORDER2 ; Lila on lila 1809 1808 call VideoIO_Color 1810 mov al, 'Æ'1809 mov al, 0c6h 1811 1810 call VideoIO_PrintSingleChar 1812 1811 pop bx -
trunk/bootcode/special/lvm.asm
r67 r76 501 501 call LVM_RemoveVolLetterFromSector 502 502 503 IFDEF ReleaseCode504 503 call DriveIO_SaveLVMSector ; Save sector 505 ENDIF 504 506 505 LVMDLR_NextPartition: 507 506 inc bx … … 531 530 call LVM_UpdateSectorCRC ; Update LVM-CRC now 532 531 533 IFDEF ReleaseCode 534 call DriveIO_SaveLVMSector ; Save sector 535 ENDIF 532 call DriveIO_SaveLVMSector ; Save sector 536 533 537 534 LVMDLR_DestPartNotFound: -
trunk/bootcode/special/virus.asm
r57 r76 51 51 mov si, 1Ch*4 52 52 rep movsw ; INT 1C Ptr 53 IFDEF ReleaseCode 54 55 ENDIF 53 54 call DriveIO_SaveConfiguration 55 56 56 jmp VCFS_Finished 57 57 -
trunk/include/version.h
r70 r76 32 32 #define BLDLVL_YEAR "2017" 33 33 #define BLDLVL_MONTH "03" 34 #define BLDLVL_DAY "1 7"34 #define BLDLVL_DAY "18" 35 35 // Build time 36 36 //~ #define BLDLVL_HOURS "01" -
trunk/include/version.inc
r70 r76 70 70 AB_YEAR EQU 2017h 71 71 AB_MONTH EQU 03h 72 AB_DAY EQU 1 7h72 AB_DAY EQU 18h 73 73 74 74 ; The Hours, Minutes and Seconds, again in BCD for easy manipulation.
Note:
See TracChangeset
for help on using the changeset viewer.