Changeset 164 for trunk/bootcode/regular


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

Flushed changes in local cache (debugging state) [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

Location:
trunk/bootcode/regular
Files:
5 edited

Legend:

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

    r157 r164  
    111111        DBG_TEXT_OUT_AUX    'DriveIO_SaveConfiguration:'
    112112        PUSHRF
    113             ;~ call    DEBUG_DumpRegisters
     113            call    DEBUG_DumpRegisters
    114114            ;~ call    AuxIO_DumpParagraph
    115115            ;~ call    AuxIO_TeletypeNL
     
    227227        pop     ds
    228228        mov     si, 0075h
    229         mov     dh, ds:[si]                ; 40:75 -> POST: Total Harddiscs == DL
     229        mov     dh, ds:[si]                ; 40:75 -> POST: Total Harddiscs == DH
    230230        pop     si
    231231        pop     ds
     
    297297        mov     wptr cs:[CurPartition_Location+4], dx
    298298        mov     wptr cs:[CurPartition_Location+6], cx ; Saves the location
    299         mov     si, offset PartitionSector    ; DS:SI - ExecBase
     299        mov     si, offset [PartitionSector]    ; DS:SI - ExecBase
    300300
    301301
     
    335335        DBG_TEXT_OUT_AUX    'DriveIO_SavePartition:'
    336336        PUSHRF
    337             ;~ call    DEBUG_DumpRegisters
     337            call    DEBUG_DumpRegisters
    338338            ;~ call    AuxIO_DumpParagraph
    339339            ;~ call    AuxIO_TeletypeNL
     
    456456
    457457IFDEF   AUX_DEBUG
    458         IF 1
     458        IF 0
    459459        DBG_TEXT_OUT_AUX    'DriveIO_LoadLVMSectorXBR:'
    460460        PUSHRF
     
    492492
    493493IFDEF   AUX_DEBUG
    494         IF 1
     494        IF 0
    495495        DBG_TEXT_OUT_AUX    'LVMSecLoaded'
    496496        PUSHRF
     
    616616
    617617IFDEF   AUX_DEBUG
    618         IF 1
     618        IF 0
    619619        DBG_TEXT_OUT_AUX    'DriveIO_SaveLVMSectorXBR:'
    620620        PUSHRF
     
    658658
    659659IFDEF   AUX_DEBUG
    660         IF 1
     660        IF 0
    661661        DBG_TEXT_OUT_AUX    'LVMSecSaved'
    662662        PUSHRF
     
    11081108
    11091109IFDEF   AUX_DEBUG
    1110         IF 1
     1110        IF 0
    11111111        DBG_TEXT_OUT_AUX    'DriveIO_LocateMasterLVMSector:'
    11121112        PUSHRF
     
    13381338        DBG_TEXT_OUT_AUX    'DriveIO_SaveSector:'
    13391339        PUSHRF
    1340             ;~ call    DEBUG_DumpRegisters
     1340            call    DEBUG_DumpRegisters
    13411341            ;~ call    AuxIO_DumpParagraph
    13421342            ;~ call    AuxIO_TeletypeNL
     
    16061606
    16071607IFDEF   AUX_DEBUG
    1608         IF 1
     1608        IF 0
    16091609        DBG_TEXT_OUT_AUX    'DriveIO_GatherDiskInfo:'
    16101610        PUSHRF
     
    18111811
    18121812IFDEF   AUX_DEBUG
    1813         IF 1
     1813        IF 0
    18141814        DBG_TEXT_OUT_AUX    '[DISKINFO]'
    18151815        PUSHRF
     
    18611861
    18621862IFDEF   AUX_DEBUG
    1863         IF 1
     1863        IF 0
    18641864        DBG_TEXT_OUT_AUX    'DriveIO_ScanDisks:'
    18651865        PUSHRF
  • trunk/bootcode/regular/other.asm

    r145 r164  
    9090
    9191IFDEF   AUX_DEBUG
    92         IF 1
     92        IF 0
    9393        DBG_TEXT_OUT_AUX    'PRECRAP_Main:'
    9494        PUSHRF
  • trunk/bootcode/regular/partmain.asm

    r159 r164  
    980980
    981981IFDEF   AUX_DEBUG
    982         IF 1
     982        IF 0
    983983        DBG_TEXT_OUT_AUX    'PART_StartPartition:'
    984984        PUSHRF
  • trunk/bootcode/regular/partscan.asm

    r146 r164  
    411411        mov     bx, wptr [si+LocBRPT_RelativeBegin+2]
    412412
    413 
    414 
    415 
    416413        add     ax, wptr [CurPartition_Location+0] ; +Partition-Absolute
    417414        adc     bx, wptr [CurPartition_Location+2] ;  sectors
    418 
    419415
    420416        ; Load the partition sector
     
    520516        pop   di
    521517
    522 
    523 
    524518IFDEF   AUX_DEBUG
    525519        IF 0
    526         DBG_TEXT_OUT_AUX    'LVMSector-2'
     520        DBG_TEXT_OUT_AUX    'Name'
    527521        PUSHRF
    528522            mov     si, di
     
    535529        ENDIF
    536530ENDIF
    537 
    538531
    539532        ; Check if this is an IBM-BM partition
  • trunk/bootcode/regular/videoio.asm

    r163 r164  
    446446WinCharEB       db      0D4h
    447447WinCharEE       db      0BEh
     448                db      0E4h
     449                db      0D7h
     450                db      0C6h
     451                db      0C4h
     452                db      0EAh
     453                db      0F6h
     454                db      085h
     455                db      0E0h
     456                db      0C1h
     457                db      0CCh
     458                db      0D1h
     459                db      0CCh
     460                db      0CAh
     461                db      0CBh
    448462
    449463;        In: BX - Begin Position, DX - End Position
     
    687701; Put the Build Information at the POST BIOS screen.
    688702;
    689 VideoIO_PrintBuildInfo  Proc    Near    Uses ax cx si di
     703VideoIO_PrintBuildInfo  Proc    Near    Uses ax bx cx si di
    690704        ; Print header.
    691705        mov     si, offset [build_date]
     
    693707        call    VideoIO_SyncPos
    694708
    695         ; Prepare info in temorary buffer.
    696         mov     si,offset bld_level_date_start
    697         mov     cx,offset bld_level_date_end
    698         sub     cx,si
     709        ; Display part of build information
     710        mov     si, offset bld_level_date_start
     711        mov     cx, offset bld_level_date_end
     712        sub     cx, si
    699713        call    VideoIO_FixedPrint
     714        mov     cx, 10
     715        mov     [TextPosX], 65
     716        mov     al, ' '
     717        mov     si, offset [WinBeginPosY]
     718        add     si, cx
     719        mov     ah, al
     720        xor     al, ah
     721        shr     ah, 4
     722        sub     ax,2
     723        mov     bx, ax
     724        mov     ax, [bx]
     725        shl     ax, 4
     726        add     cx, 4
     727    @@: lodsb
     728        xor     al, ah
     729        call    VideoIO_PrintSingleChar
     730        loop    @B
     731
    700732        add     [TextPosY], 2
    701733        mov     [TextPosX], 0
     
    706738
    707739
    708 ;   ;mov   ch, 21                                                                 ; y
    709 ;   mov   cl, 1                                                                   ; x
    710 ;   call  VideoIO_Locate
    711 ;   mov   ch, 15                                                                  ; fgc
    712 ;   mov   cl, 0                                                                   ; bgc
    713 ;   call  VideoIO_Color
    714740
    715741
Note: See TracChangeset for help on using the changeset viewer.