Changeset 76


Ignore:
Timestamp:
Apr 8, 2017, 12:26:11 AM (8 years ago)
Author:
Ben Rietbroek
Message:

Removed the ancient 'ReleaseCode' conditional [v1.1.1-testing]

This was used in pre v1.07 versions to create a DOS .COM executable
for debugging. It has never been used in v1.07+ versions and debugging
is now done using the serial port from native AirBoot. Time to get rid
of this unused stuff.

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.0-manual.pdf

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/airboot.asm

    r72 r76  
    9494ENDIF
    9595
    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     -1
    10296
    10397
     
    133127; -----------------------------------------------------------------------------
    134128; Address labels after code-move
    135 BootBaseSeg                 equ     08000h   ; Pre-boot, in the low 640K
    136 BootBasePtr                 equ         0h   ; We put our MBR to this location
     129BootBaseSeg                 equ     08000h  ; Pre-boot, in the low 640K
     130BootBasePtr                 equ         0h  ; We put our MBR to this location
    137131BootBaseExec                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
     132StackSeg                    equ     07000h  ; Put the stack below the code
     133StartBaseSeg                equ     00000h  ; Pre-boot, we are in low memory
     134StartBasePtr                equ     07C00h  ; BIOS starts our MBR at 0:7C00
    152135
    153136
     
    546529                ;sti
    547530
    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.
    552532                mov     cx, 256          ; Pre-boot environment
    553             ELSE
    554                 mov     cx, 32700        ; Old Debug environment (move ~64kB)
    555             ENDIF
    556533
    557534                ;
     
    732709                push    bx      ; Old SP
    733710
    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 is
    738             ; loaded by dos while when air-boot is active from the MBR it
    739             ; does the loading itself.
    740             ; (This debug environment is obsolete and dis-fuctional)
    741             IFNDEF ReleaseCode
    742                 jmp     AiR_BOOT_Start
    743             ENDIF
    744711
    745712                ; Load the configuration-sectors from disk.
     
    14281395                call    PASSWORD_AskChangeBootPwd
    14291396
    1430             IFNDEF ReleaseCode
    1431                 ; Debug Code to terminate DOS .COM program - used for
    1432                 ;  testing AiR-BOOT
    1433                 ; Obsolete.
    1434                 int     3
    1435                 mov     ax, 6200h
    1436                 int     21h
    1437                 mov     es, bx
    1438                 mov     ax, 4C00h    ; Quit program
    1439                 int     21h
    1440             ENDIF
    14411397                call    ANTIVIR_SaveBackUpMBR
    14421398
  • trunk/bootcode/regular/other.asm

    r67 r76  
    348348    INT13X_Supported:
    349349
    350     IFNDEF ReleaseCode
    351         ret
    352     ENDIF
    353 
    354350
    355351        ;
  • trunk/bootcode/regular/partmain.asm

    r73 r76  
    595595        call    PART_SearchFileSysHiddenID    ; Put on =STEALTH=
    596596        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
    600598        ret
    601599PART_HidePartition              EndP
     
    10961094
    10971095
    1098     IFDEF ReleaseCode
    10991096        ;
    11001097        ; Save configuration on HDD boots (save CFG_PartLast)
    11011098        ;
    11021099        call    DriveIO_SaveConfiguration
    1103     ENDIF
    11041100
    11051101
     
    12011197
    12021198
    1203     IFDEF ReleaseCode
    12041199        ;
    12051200        ; Save the Partition Table.
    12061201        ;
    12071202        call    DriveIO_SavePartition     ; Saves the Partition-Table    [SAVE]
    1208     ENDIF
    12091203
    12101204
     
    13431337        call    DriveIO_LoadPartition      ; Load Primary Partition Table
    13441338        call    PART_MarkFirstGoodPrimary
    1345 
    1346     IFDEF ReleaseCode
    13471339        call    DriveIO_SavePartition       ; Saves the Partition-Table
    1348     ENDIF
    13491340
    13501341
     
    22082199        ; # JUMP TO THE PBR LOADER CODE #
    22092200        ; ###############################
    2210         IFDEF ReleaseCode
    2211             db      0EAh
    2212             dw      StartBasePtr
    2213             dw      StartBaseSeg
    2214         ENDIF
     2201        db      0EAh
     2202        dw      StartBasePtr
     2203        dw      StartBaseSeg
    22152204
    22162205
  • trunk/bootcode/regular/partscan.asm

    r57 r76  
    222222
    223223        call    PARTSCAN_ScanPartition
    224     IFDEF ReleaseCode
     224
    225225        call    DriveIO_SavePartition
    226     ENDIF
     226
    227227        call    PARTSCAN_ScanPartitionForExtended
    228228        jc      PSSDFP_LoadThisPartition
     229
    229230    PSSDFP_InvalidPartition:
    230231        ret
     
    304305        ; Clearing the boot-flags on other disks would prevent booting them
    305306        ; 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
    307308        jne     PSSP_Skip_Clear_BootFlag            ; Nope, skip clear flag
    308309        and     byte ptr [si+LocBRPT_Flags], 7Fh    ; Reset the Active-Flag
     
    704705    PCCTP_CompareFailed:
    705706        mov     ch, ah
    706         ; Default Flags hinzufgen...
     707        ; Insert Default Flags...
    707708        mov     cl, LocIPT_DefaultFlags
    708709
  • trunk/bootcode/setup/main.asm

    r65 r76  
    5959      or      ax, ax
    6060      jz      SSTSI_NoItemPack
    61       add     si, LocMENU_LenOfItemPack  ; ItemPack bergehen
     61      add     si, LocMENU_LenOfItemPack  ; Add ItemPack size
    6262     SSTSI_NoItemPack:
    6363      add     si, LocMENU_LenOfMenuPtrBlock ; Skip Ptr-Block (+3 deshalb, weil danach INC!)
     
    8888   mov     al, [SETUP_KeysOnEntry]
    8989   test    al, Keys_Flags_EnterSetup
    90 IFDEF ReleaseCode
    9190   jz      SCES_NoEnterSETUP
    92 ENDIF
    9391  SCES_ForceEnter:
    9492   call    SETUP_Main
     
    672670ENDIF
    673671
    674 ; Zeichnet die Men Hilfe aufn Bildschirm
     672; Display the Help Menu
    675673;        In: SI - Pointer to 4 HelpStrings...
    676674; Destroyed: None
     
    11271125   add     word ptr [CFG_LastTimeEditLow], 1
    11281126   adc     word ptr [CFG_LastTimeEditHi], 0         ; Update Time-Stamp
    1129    IFDEF ReleaseCode
    1130       call    DriveIO_SaveConfiguration
    1131    ENDIF
     1127   call    DriveIO_SaveConfiguration
    11321128   mov     byte ptr [SETUP_ExitEvent], 1            ; Exit and continue boot process
    11331129  SEMSAES_UserAbort:
     
    11451141
    11461142  SEMEWS_DoThis:
    1147    IFDEF ReleaseCode                     ; Loads basic configuration...
    1148       call    DriveIO_LoadConfiguration  ; This is *NOT* IPT nor HideConfig
    1149    ENDIF
     1143   ; Loads basic configuration...
     1144   ; This is *NOT* IPT nor HideConfig
     1145   call    DriveIO_LoadConfiguration
    11501146   mov     byte ptr [SETUP_ExitEvent], 1            ; Exit and continue boot process
    11511147  SEMEWS_UserAbort:
  • trunk/bootcode/setup/part_set.asm

    r67 r76  
    879879        mov     si, offset LVMSector
    880880        call    LVM_UpdateSectorCRC
    881         IFDEF ReleaseCode
    882           call    DriveIO_SaveLVMSector      ; Save sector
    883         ENDIF
     881
     882        call    DriveIO_SaveLVMSector      ; Save sector
     883
    884884        jmp     PSCPN_AllDone
    885885
     
    892892          rep     movsb                      ; Copy IPT-name to Boot-Record
    893893        pop     si
    894         IFDEF ReleaseCode
    895           call    DriveIO_SavePartition      ; Saves Boot-Record
    896         ENDIF
     894
     895        call    DriveIO_SavePartition        ; Saves Boot-Record
    897896
    898897    ; And reset VIBR-CRC, otherwise virus-warning and system-halt
     
    10491048   mov     cx, bx
    10501049   call    VideoIO_Locate
    1051    mov     al, 'µ'
     1050   mov     al, 0b5h
    10521051   call    VideoIO_PrintSingleChar
    10531052
     
    10811080   mov     cx, CLR_PART_HIDE_WINDOW_BASE                     ; Lila on lila
    10821081   call    VideoIO_Color
    1083    mov     al, 'Æ'
     1082   mov     al, 0c6h
    10841083   call    VideoIO_PrintSingleChar
    10851084   ; --- Make Window-Footer - "State when booting..." at bottom right frame-line
     
    11191118;   inc     cl
    11201119;   call    MBR_Locate                    ; Location 16, HiddenX
    1121 ;   mov     al, 'µ'
     1120;   mov     al, 0b5h
    11221121;   call    MBR_PrintSingleChar
    11231122;   mov     cx, 0E05h                     ; Yellow on Lila
     
    11341133;   mov     cx, 0D05h                     ; Lila on lila
    11351134;   call    MBR_Color
    1136 ;   mov     al, 'Æ'
     1135;   mov     al, 0c6h
    11371136;   call    MBR_PrintSingleChar
    11381137
     
    17761775      mov     cx, bx
    17771776      call    VideoIO_Locate
    1778       mov     al, 'µ'
     1777      mov     al, 0b5h
    17791778      call    VideoIO_PrintSingleChar
    17801779
     
    18081807      mov     cx, CLR_PART_DL_WINDOW_BORDER2                 ; Lila on lila
    18091808      call    VideoIO_Color
    1810       mov     al, 'Æ'
     1809      mov     al, 0c6h
    18111810      call    VideoIO_PrintSingleChar
    18121811   pop     bx
  • trunk/bootcode/special/lvm.asm

    r67 r76  
    501501        call    LVM_RemoveVolLetterFromSector
    502502
    503     IFDEF ReleaseCode
    504503        call    DriveIO_SaveLVMSector   ; Save sector
    505     ENDIF
     504
    506505    LVMDLR_NextPartition:
    507506        inc     bx
     
    531530        call    LVM_UpdateSectorCRC           ; Update LVM-CRC now
    532531
    533     IFDEF ReleaseCode
    534         call    DriveIO_SaveLVMSector      ; Save sector
    535     ENDIF
     532        call    DriveIO_SaveLVMSector         ; Save sector
    536533
    537534    LVMDLR_DestPartNotFound:
  • trunk/bootcode/special/virus.asm

    r57 r76  
    5151   mov     si, 1Ch*4
    5252   rep     movsw                         ; INT 1C Ptr
    53    IFDEF ReleaseCode
    54       call    DriveIO_SaveConfiguration
    55    ENDIF
     53
     54   call    DriveIO_SaveConfiguration
     55
    5656   jmp     VCFS_Finished
    5757
  • trunk/include/version.h

    r70 r76  
    3232#define     BLDLVL_YEAR             "2017"
    3333#define     BLDLVL_MONTH            "03"
    34 #define     BLDLVL_DAY              "17"
     34#define     BLDLVL_DAY              "18"
    3535// Build time
    3636//~ #define     BLDLVL_HOURS            "01"
  • trunk/include/version.inc

    r70 r76  
    7070AB_YEAR             EQU     2017h
    7171AB_MONTH            EQU     03h
    72 AB_DAY              EQU     17h
     72AB_DAY              EQU     18h
    7373
    7474; The Hours, Minutes and Seconds, again in BCD for easy manipulation.
Note: See TracChangeset for help on using the changeset viewer.