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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.