Changeset 94


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

Added print decimal function to video module [v1.1.1-testing]

We don't need it yet, so it is disabled with 'IF 0'.
TODO: Better integrate Video and Aux output.

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

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/regular/debug.asm

    r93 r94  
    326326; Dump some disk information.
    327327;
    328 IF  0
     328IF  1
    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 1
     747IF 0
    748748db_testbin2pbcd db "## TEST BIN2PBCD ##",10,0
    749749DEBUG_Test_CONV_BinToPBCD   Proc
     
    10691069dbp     db  '>---------->> DebugProbe: ',0
    10701070DEBUG_Probe     Proc
     1071IF  0
    10711072        push    bp
    10721073        mov     bp,sp
     
    10881089        popf
    10891090        pop     bp
     1091ENDIF
    10901092        ret     2
    10911093DEBUG_Probe     Endp
  • trunk/bootcode/regular/partscan.asm

    r78 r94  
    171171;! DEBUG_PROBE
    172172;!
    173 IFDEF   AUX_DEBUG
     173IFDEF   AUX_DEBUGx
    174174    push    1234h
    175175    call    DEBUG_Probe
  • trunk/bootcode/regular/videoio.asm

    r67 r94  
    200200VideoIO_PrintSingleChar         EndP
    201201
     202
     203IF 0
     204; Print dec-byte to screen
     205; This outputs 1 to 3 characters
     206; In:          AL - byte to send
     207; Out:         AL - byte sent
     208; Destroyed:   None
     209VideoIO_PrintDecByte    Proc     Near  Uses  ax
     210      call    CONV_BinToPBCD  ; Convert to PBCD
     211      mov     dx, ax          ; Save PBCD value
     212      shr     ah, 4           ; Move digit count to low nibble
     213      cmp     ah, 3           ; Less than 3 digits ?
     214      jb      @F              ; Yep, skip digit with index 2
     215      mov     al, dh          ; Get byte with digit
     216      and     al, 0fh         ; Mask it out
     217      add     al, '0'         ; To ASCII
     218      call    VideoIO_PrintSingleChar
     219    @@:
     220      shr     dh, 4           ; Move digit count to low nibble
     221      cmp     dh, 2           ; Less that 2 digits ?
     222      jb      @F              ; Yep, skip digit with index 1
     223      mov     al, dl          ; Get byte with digit
     224      shr     al, 4           ; Move to lower nibble
     225      add     al, '0'         ; To ASCII
     226      call    VideoIO_PrintSingleChar
     227    @@:
     228      mov     al, dl          ; Get byte with digit
     229      and     al, 0fh         ; Mask it out
     230      add     al, '0'         ; To ASCII
     231      call    VideoIO_PrintSingleChar
     232      ret
     233VideoIO_PrintDecByte    EndP
     234ENDIF
    202235
    203236
  • trunk/include/version.h

    r83 r94  
    3232#define     BLDLVL_YEAR             "2017"
    3333#define     BLDLVL_MONTH            "03"
    34 #define     BLDLVL_DAY              "20"
     34#define     BLDLVL_DAY              "21"
    3535// Build time
    3636//~ #define     BLDLVL_HOURS            "01"
  • trunk/include/version.inc

    r83 r94  
    7070AB_YEAR             EQU     2017h
    7171AB_MONTH            EQU     03h
    72 AB_DAY              EQU     20h
     72AB_DAY              EQU     21h
    7373
    7474; The Hours, Minutes and Seconds, again in BCD for easy manipulation.
Note: See TracChangeset for help on using the changeset viewer.