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

Added more debug hooks [v1.1.1-testing]

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/regular/other.asm

    r111 r117  
    167167
    168168        ; Copyright
    169         mov     si, offset Copyright
     169        mov     si, [offset Copyright]
    170170        call    MBR_Teletype
    171171        xor     si,si
     
    198198        mov     ah, 03h
    199199        int     13h
     200        ;!
     201        ;! TODO: Check success
     202        ;! Yes, we should check for errors here, coz it would mean AirBoot
     203        ;! was loaded from a disk where the MBR cannot be written !
     204        ;!
    200205
    201206; =============================================================================
     
    227232        pushf
    228233
    229         mov      bx, offset [TrueSecs]
    230         add      bx,cx
    231         add      bx,cx
    232         add      bx,cx
    233         add      bx,cx
     234        mov     bx, offset [TrueSecs]
     235        add     bx,cx
     236        add     bx,cx
     237        add     bx,cx
     238        add     bx,cx
     239
     240IFDEF   AUX_DEBUG
     241        IF 0
     242        pushf
     243        pusha
     244            mov     al, '#'
     245            call    AuxIO_Teletype
     246            mov     ax, [bx]
     247            call    AuxIO_TeletypeHexWord
     248            mov     al, '#'
     249            call    AuxIO_Teletype
     250            call    AuxIO_TeletypeNL
     251        popa
     252        popf
     253        ENDIF
     254ENDIF
     255
    234256        popf
    235257
     
    276298; =============================================================================
    277299
    278     IFDEF   AUX_DEBUG
    279         ; Write some debug-info to the com-port
    280         call     DEBUG_Dump1
     300IFDEF   AUX_DEBUG
     301    IF 1
     302    call     DEBUG_Dump1
    281303    ENDIF
     304ENDIF
    282305
    283306        ;~ jz      NoValidMasterLVM
     
    299322;               call     AuxIO_TeletypeNL
    300323
    301 
     324;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    302325
    303326        ; Huge Disk indicator
     
    392415        call    PRECRAP_CheckConfiguration
    393416
     417
     418IFDEF   AUX_DEBUG
     419        IF 1
     420        mov     dl, [BIOS_BootDisk]
     421        ;~ mov     dl, 81h
     422        call    DriveIO_LocateMasterLVMSector
     423        call    DEBUG_DumpRegisters
     424        mov     si, offset [TmpSector]
     425        call    AuxIO_DumpSector
     426        ENDIF
     427ENDIF
    394428
    395429        ; =======================================
Note: See TracChangeset for help on using the changeset viewer.