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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.