Changeset 88


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

Added a test-function for the packed BCD converter [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

    r86 r88  
    496496    pushf
    497497    pusha
    498     ; Put call to test-function here...
     498    call    DEBUG_Test_CONV_BinToPBCD
     499    ;~ call    DEBUG_Test_MATH_Mul32
    499500    popa
    500501    popf
     
    505506    ret
    506507DEBUG_Test  EndP
     508ENDIF
     509
     510
     511
     512;
     513; Test the packed BCD conversion function.
     514;
     515IF 1
     516DEBUG_Test_CONV_BinToPBCD   Proc
     517        pushf
     518        pusha
     519        xor     cx, cx
     520    next_value:
     521        mov     al, cl
     522        call    AuxIO_TeletypeHexByte
     523        mov     al, ' '
     524        call    AuxIO_Teletype
     525        mov     al, cl
     526        call    CONV_BinToPBCD
     527        call    AuxIO_TeletypeHexWord
     528        call    AuxIO_TeletypeNL
     529
     530        inc     cx
     531        cmp     cx, 0ffh
     532        jbe     next_value
     533        popa
     534        popf
     535        ret
     536DEBUG_Test_CONV_BinToPBCD   EndP
     537ELSE
     538DEBUG_Test_CONV_BinToPBCD   Proc
     539        ret
     540DEBUG_Test_CONV_BinToPBCD   EndP
    507541ENDIF
    508542
Note: See TracChangeset for help on using the changeset viewer.