Changeset 165


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

Reworked the pre-MENU display stuff [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
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/airboot.asm

    r164 r165  
    12591259
    12601260                ; Display number of physical disks found
    1261                 mov     si, offset DisksFound
    1262                 call    MBR_Teletype
     1261                IFNDEF  AUX_DEBUG
     1262                mov     [TextPosY], 3
     1263                ELSE
     1264                mov     [TextPosY], 4
     1265                ENDIF
     1266                mov     [TextPosX], 0
     1267                mov     si, offset [DisksFound]
     1268                call    VideoIO_Print
    12631269                mov     al, [TotalHarddiscs]
    1264                 call    VideoIO_SyncPos
     1270                mov     [TextColorFore], 0fh
    12651271                call    VideoIO_PrintByteDynamicNumber
    1266                 xor     si,si
    1267                 call    MBR_TeletypeNL
     1272                mov     [TextColorFore], 07h
    12681273
    12691274                ; Display number of partitions found
    1270                 mov     si, offset PartitionsFound
    1271                 call    MBR_Teletype
     1275                inc     [TextPosY]
     1276                mov     [TextPosX], 0
     1277                mov     si, offset [PartitionsFound]
     1278                call    VideoIO_Print
    12721279                mov     al, [CFG_Partitions]
    1273                 call    VideoIO_SyncPos
    12741280                call    VideoIO_PrintByteDynamicNumber
    12751281
    1276                 ; Dump summier disk-info for disks found
    1277                 xor     si,si
    1278                 call    MBR_TeletypeNL
    1279                 call    MBR_TeletypeNL
    1280                 call    VideoIO_SyncPos
    1281                 mov     dl,80h
    1282                 call    VideoIO_DumpDiskInfo
    1283 
     1282                ; Display Phase 1 Indicator
     1283                inc     [TextPosY]
     1284                mov     [TextPosX], 0
     1285                mov     si, offset [Phase1]
     1286                call    VideoIO_Print
     1287                mov     si, offset [OS2_InstallVolume]
     1288                mov     al, [si]
     1289                test    al,al   ; See if phase 1 is active
     1290                jnz     @F
     1291                mov     si, offset [No]
     1292            @@:
     1293                call    VideoIO_Print
    12841294
    12851295
     
    13841394                ; by putting this info on the screen.
    13851395                ;
    1386                 xor     si,si
    1387                 call    MBR_TeletypeNL
    1388                 xor     si,si
    1389                 call    MBR_TeletypeNL
     1396                mov     [TextPosY], 23
     1397                mov     [TextPosX], 0
     1398                mov     si, offset [TABMessage]
     1399                call    VideoIO_Print
     1400                inc     [TextPosY]
     1401                mov     [TextPosX], 57
    13901402                call    MBR_TeletypeSyncPos
    1391                 xor     si,si
    1392                 call    MBR_TeletypeNL
    1393                 call    MBR_TeletypeNL
    1394                 mov     si, offset ShowMenu
     1403                mov     si, offset [PREPMessage]
    13951404                call    MBR_TeletypeBold
    1396 
     1405                mov     al,30
     1406                call    TIMER_WaitTicCount
     1407                mov     cl, sizeof [PREPMessage]
     1408                mov     al, ' '
     1409                call    VideoIO_PrintSingleMultiChar
     1410
     1411                mov     [TextPosX], 25
     1412                mov     si, offset [BootEndMsg2]
     1413                add     si, 39
     1414                mov     [TextColorFore], 08h
     1415                call    VideoIO_Print
    13971416
    13981417
  • trunk/bootcode/regular/other.asm

    r164 r165  
    148148        ; Copyright
    149149        mov     si, [offset Copyright]
    150         call    MBR_Teletype
    151         xor     si,si
    152         call    MBR_TeletypeNL
    153 
     150        call    VideoIO_Print
     151        inc     [TextPosY]
     152        mov     [TextPosX], 0
     153        call    MBR_TeletypeSyncPos
    154154
    155155        ;call    SOUND_Beep
     
    157157        ; Show build info
    158158        call    VideoIO_PrintBuildInfo
     159
     160        ; Let user know we started scanning...
     161IFDEF   AUX_DEBUG
     162        xor     si, si
     163        call    MBR_TeletypeNL
     164ENDIF
     165        mov     si, offset [scanning_txt]
     166        call    MBR_TeletypeBold
    159167
    160168; Show message if com-port debugging is active
     
    166174
    167175        ; Show initialization message
     176        mov     ah, [TextPosY]
     177        mov     [TextPosY], 2
    168178        mov     si, offset AuxInitMsg
    169         call    MBR_Teletype
     179        ;~ call    MBR_Teletype
     180        call    VideoIO_Print
    170181
    171182        ; Sync output position
    172         call    VideoIO_SyncPos
     183        ;~ call    VideoIO_SyncPos
    173184
    174185        ; Show port number
    175186        mov     al, dl
    176187        call    VideoIO_PrintByteDynamicNumber
    177         xor     si, si
    178         call    MBR_TeletypeNL
     188        mov     [TextPosY], ah
    179189    @@:
    180190ENDIF
    181 
    182         xor     si,si
    183         call    MBR_TeletypeNL
    184 
    185         ;
    186         ; Phase 1 Indicator
    187         ;
    188         mov     si, offset [Phase1]
    189         call    MBR_Teletype
    190 
    191         mov     si, offset OS2_InstallVolume
    192         mov     al, [si]
    193         test    al,al                                 ; See if phase 1 is active
    194         jnz     MBR_Main_BootThrough
    195         mov     si, offset NotActive
    196 
    197     MBR_Main_BootThrough:
    198         call    MBR_Teletype
    199         xor     si,si
    200         call    MBR_TeletypeNL
    201 
    202191
    203192        ; Calculate Cooper-Bar Tables
  • trunk/bootcode/regular/std_text.asm

    r163 r165  
    109109wasm_txt        db  'Wasm',0
    110110tasm_txt        db  'Tasm',0
     111scanning_txt    db  'Scanning...',0
    111112unknown_txt     db  '????',0
Note: See TracChangeset for help on using the changeset viewer.