Changeset 345 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src


Ignore:
Timestamp:
Mar 14, 2012, 7:01:44 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Configurator v2:

  • Modified copyright string (now included XTIDE Universal BIOS Team).
  • User inputted LBA is now decremented by one since LBA 28 limit is 0FFF FFFFh.
Location:
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/MasterSlaveMenu.asm

    r293 r345  
    345345ALIGN JUMP_ALIGN
    346346ValueReaderForUserLbaValue:
    347     mov     ax, [es:di+2]       ; SHR 16
    348     eSHIFT_IM ax, 4, shr        ; SHR 16 + 4 = 20
     347    push    dx
     348
     349    mov     ax, [es:di]
     350    mov     dx, [es:di+2]       ; DX:AX now holds user defined LBA28 limit
     351    add     ax, BYTE 1          ; Increment by one
     352    adc     dx, BYTE 0
     353
     354    xchg    ax, dx              ; SHR 16
     355    eSHIFT_IM ax, 4, shr        ; SHR 4 => AX = DX:AX / (1024*1024)
     356
     357    pop     dx
    349358    ret
    350359
     
    363372ALIGN JUMP_ALIGN
    364373ValueWriterForUserLbaValue:
     374    push    dx
     375
     376    xor     dx, dx
    365377    eSHIFT_IM ax, 4, shl
    366     mov     [es:di+2], ax
    367     xor     ax, ax      ; Store zero to [es:di]
    368     ret
     378    xchg    dx, ax          ; DX:AX now holds AX * 1024 * 1024
     379
     380    sub     ax, BYTE 1      ; Decrement DX:AX by one
     381    sbb     dx, BYTE 0      ; (necessary since maximum LBA28 sector count is 0FFF FFFFh)
     382
     383    mov     [es:di+2], dx   ; Store DX by ourselves
     384    pop     dx
     385    ret                     ; AX will be stored by our menu system
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm

    r339 r345  
    7474g_szNfoMainConfigure:   db  "Configure XTIDE Universal BIOS settings.",NULL
    7575g_szNfoMainFlash:       db  "Flash loaded BIOS image to EEPROM.",NULL
    76 g_szNfoMainLicense:     db  "XTIDE Universal BIOS and XTIDECFG Copyright 2009-2012 by Tomi Tilli. Released under GNU GPL v2, with ABSOLUTELY NO WARRANTY. Details...",NULL
     76g_szNfoMainLicense:     db  "XTIDE Universal BIOS and XTIDECFG (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. Released under GNU GPL v2, with ABSOLUTELY NO WARRANTY. Details...",NULL
    7777g_szNfoMainHomePage:    db  "Visit http://code.google.com/p/ xtideuniversalbios (home page) and http://vintage-computer.com/ vcforum (support)",NULL
    7878
Note: See TracChangeset for help on using the changeset viewer.