Changeset 73


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

Merged some syntax changes from different local branch [v1.1.1-testing]

Ultimately we want to use '[identifier]' in all instructions that do
memory references, so there is a clear distinction between those and
immediate values.

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:
2 edited

Legend:

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

    r65 r73  
    511511   local PartPointer:word
    512512
    513    call    PART_GetPartitionPointer      ; Gets pointer to partition (DL) -> SI
    514    mov     PartPointer, si
     513   call    PART_GetPartitionPointer     ; Gets pointer to partition (DL) -> SI
     514   mov     [PartPointer], si            ; SI now points to the IPT-entry
    515515
    516516   ; === Display Boot-Number ===
     
    545545   mov     cx, CLR_HD_INDEX
    546546   call    VideoIO_Color                 ; Violet, blue
    547    mov     si, PartPointer
     547   mov     si, [PartPointer]
    548548   mov     al, [si+LocIPT_Drive]
    549549   sub     al, 7Fh                       ; Will only display numbers up to 99,
     
    577577      mov     al, '/'
    578578      call    VideoIO_PrintSingleChar
    579       mov     cx, CLR_HD_SIZE_BM
     579      mov     cx, CLR_HD_SIZE
    580580      call    VideoIO_Color              ; Violet, Blue
    581       mov     ax, PartPointer            ; Get Size-Element from PartPtr (AX)
     581      mov     ax, [PartPointer]            ; Get Size-Element from PartPtr (AX)
    582582      call    PART_GetSizeElementPointer ; DS:SI -> Size-Element...
    583583      mov     cl, 4
     
    608608   mov     cx, CLR_LABEL
    609609   call    VideoIO_Color                 ; Yellow, blue
    610    mov     si, PartPointer
     610   mov     si, [PartPointer]
    611611   add     si, LocIPT_Name
    612612   mov     cl, 11
     
    620620
    621621   call    VideoIO_Locate
    622    mov     si, PartPointer
     622   mov     si, [PartPointer]
    623623   mov     al, [si+LocIPT_SystemID]
    624624   call    PART_SearchFileSysName
     
    731731
    732732        call    LVM_GetDriveLetter
     733IF 0
     734                ; Print values at start of LVM-record
     735                pushf
     736                pusha
     737                mov     si, offset [LVMSector]
     738                lodsw
     739                call    VideoIO_PrintHexWord
     740                lodsw
     741                call    VideoIO_PrintHexWord
     742                popa
     743                popf
     744ENDIF
     745        jnc     skip_show_dl
    733746
    734747        test    al,al
     
    972985        mov     dl, Menu_EntryLast
    973986    BMRMV_TimedBootDefault:
    974         call    PART_GetPartitionPointer      ; Holt SI fr Partition DL
     987        call    PART_GetPartitionPointer      ; Hold SI for Partition DL
    975988        add     si, LocIPT_Name
    976989        mov     cx, 11
  • trunk/bootcode/regular/partmain.asm

    r67 r73  
    22672267
    22682268    next_pe:
    2269         ; Computer pointer to PE
     2269        ; Compute pointer to PE
    22702270        mov      bx,dx          ; Point BX to 1st partition address
    22712271        mov      ax,cx          ; Get PE-index
Note: See TracChangeset for help on using the changeset viewer.