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

Updated debug hooks (debugging) [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

    r105 r111  
    8989;
    9090PRECRAP_Main    Proc Near
     91
     92IFDEF   AUX_DEBUG
     93        IF 0
     94        pushf
     95        pusha
     96            push    si
     97            mov     si, offset $+5
     98            jmp     @F
     99            db      10,'PRECRAP_Main:',10,0
     100            @@:
     101            call    AuxIO_Print
     102            pop     si
     103            ;~ call    DEBUG_DumpRegisters
     104            ;~ call    AuxIO_DumpParagraph
     105            ;~ call    AuxIO_TeletypeNL
     106        popa
     107        popf
     108        ENDIF
     109ENDIF
    91110
    92111        ; First initialize Variable-Area (everything with NUL)
     
    180199        int     13h
    181200
     201; =============================================================================
    182202
    183203        ; Start with disk at index 0
     
    206226
    207227        pushf
    208 
    209         ;~ mov     al,'#'
    210         ;~ pushf
    211         ;~ call    VideoIO_PrintSingleChar
    212         ;~ popf
    213         ;~ mov     al,0
    214         ;~ rcl     al,1
    215         ;~ call    VideoIO_PrintHexByte
    216         ;~ mov     al,'#'
    217         ;~ call    VideoIO_PrintSingleChar
    218228
    219229        mov      bx, offset [TrueSecs]
     
    264274        jb      PRECRAP_Main_next_disk
    265275
    266 
     276; =============================================================================
    267277
    268278    IFDEF   AUX_DEBUG
     
    292302
    293303        ; Huge Disk indicator
    294         mov     si, offset [HugeBootDisk]
    295         call    MBR_Teletype
    296         mov     al,[HugeDisk]
    297         mov     si, offset [No]
    298         test    al,al
    299         jz      MBR_HugeDriveIndicator
    300         mov     si, offset [Yes]
     304        ;~ mov     si, offset [HugeBootDisk]
     305        ;~ call    MBR_Teletype
     306        ;~ mov     al,[HugeDisk]
     307        ;~ mov     si, offset [No]
     308        ;~ test    al,al
     309        ;~ jz      MBR_HugeDriveIndicator
     310        ;~ mov     si, offset [Yes]
    301311
    302312    MBR_HugeDriveIndicator:
    303         call    MBR_Teletype
    304         xor     si,si
    305         call    MBR_TeletypeNL
     313        ;~ call    MBR_Teletype
     314        ;~ xor     si,si
     315        ;~ call    MBR_TeletypeNL
    306316
    307317
     
    323333        call    MBR_TeletypeNL
    324334
     335; =============================================================================
    325336
    326337        ; Calculate Cooper-Bar Tables
     
    438449
    439450AFTERCRAP_Main  Proc Near
     451
     452IFDEF   AUX_DEBUG
     453        IF 0
     454        pushf
     455        pusha
     456            push    si
     457            mov     si, offset $+5
     458            jmp     @F
     459            db      10,'AFTERCRAP_Main:',10,0
     460            @@:
     461            call    AuxIO_Print
     462            pop     si
     463            ;~ call    DEBUG_DumpRegisters
     464            ;~ call    AuxIO_DumpParagraph
     465            ;~ call    AuxIO_TeletypeNL
     466        popa
     467        popf
     468        ENDIF
     469ENDIF
     470
    440471        ; ===================================================
    441472        ;  Now get volume label of FloppyDrive, if wanted...
     
    455486; Checks Configuration CheckSum...Displays message, if failed.
    456487PRECRAP_CheckConfiguration      Proc Near  Uses ds si es di
     488
     489IFDEF   AUX_DEBUG
     490        IF 0
     491        pushf
     492        pusha
     493            push    si
     494            mov     si, offset $+5
     495            jmp     @F
     496            db      10,'PRECRAP_CheckConfiguration:',10,0
     497            @@:
     498            call    AuxIO_Print
     499            pop     si
     500            ;~ call    DEBUG_DumpRegisters
     501            ;~ call    AuxIO_DumpParagraph
     502            ;~ call    AuxIO_TeletypeNL
     503        popa
     504        popf
     505        ENDIF
     506ENDIF
     507
    457508        mov     si, offset Configuration
    458509        xor     bx, bx
Note: See TracChangeset for help on using the changeset viewer.