Changeset 93


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

Test the print decimal function (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/debug.asm

    r91 r93  
    326326; Dump some disk information.
    327327;
    328 IF  1
     328IF  0
    329329ddi     db  10,'DumpDiskInfo:',10,0
    330330DEBUG_DumpDiskInfo          Proc
     
    728728    pushf
    729729    pusha
    730     ;~ call    DEBUG_Test_CONV_BinToPBCD
     730    call    DEBUG_Test_CONV_BinToPBCD
    731731    ;~ call    DEBUG_Test_MATH_Mul32
    732732    popa
     
    745745; Test the packed BCD conversion function.
    746746;
    747 IF 0
     747IF 1
    748748db_testbin2pbcd db "## TEST BIN2PBCD ##",10,0
    749749DEBUG_Test_CONV_BinToPBCD   Proc
     
    767767        call    CONV_BinToPBCD          ; Convert to packed BCD
    768768        call    AuxIO_TeletypeHexWord   ; Print as word
    769         call    AuxIO_TeletypeNL
    770 
     769        mov     al, ' '
     770        call    AuxIO_Teletype
     771        mov     al, cl                  ; Current value
     772        call    AuxIO_TeletypeDecByte   ; Print as decimal
     773        call    AuxIO_TeletypeNL
    771774        inc     cx                      ; Next value
    772775        cmp     cx, 0ffh                ; Check for last valid value
Note: See TracChangeset for help on using the changeset viewer.