Changeset 293 in xtideuniversalbios for trunk/Configurator
- Timestamp:
- Mar 4, 2012, 1:33:52 AM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/Configurator
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configurator/Inc/emulate.inc
r223 r293 1 ; File name : emulate.inc2 1 ; Project name : Emulation library 3 ; Created date : 21.10.2009 4 ; Last update : 4.4.2010 5 ; Author : Tomi Tilli 6 ; Description : Macros for emulating later x86 instruction with older 2 ; Description : Macros for emulating later x86 instructions with older 7 3 ; processors. 8 ; Macros are used so optimized builds c ouldbe done4 ; Macros are used so optimized builds can be done 9 5 ; easily for different processors. 10 6 ; … … 14 10 %define EMULATE_INC 15 11 16 ; Defines for processor support. Unsupported instructions will be 17 ; emulated using macros. 18 ; If using 286, define USE_186 and USE_286 19 ; If using 386, define USE_186, USE_286 and USE_386 12 ; Defines for processor support (should be set in makefile). 13 ; Unsupported instructions will be emulated using macros. 20 14 ; If AT class PC is used (instead of XT), define USE_AT 15 21 16 ;%define USE_186 ; Define to use 18x/V20/V30 instructions 22 17 ;%define USE_286 ; Define to use 286 instructions 23 18 ;%define USE_386 ; Define to use 386 instructions 24 19 ;%define USE_AT ; Define for AT class machine 25 ; Above defines should be set on makefile! 26 27 CPU 8086 ; Allow 8088/8086 instructions only 28 %ifdef USE_186 29 CPU 186 ; Allow instructions up to 188/186/V20/V30 20 21 %ifdef USE_386 22 %define USE_286 ; Define to use 286 instructions 23 %endif 24 %ifdef USE_286 25 %define USE_186 ; Define to use 18x/V20/V30 instructions 26 %endif 27 28 %ifdef USE_386 29 CPU 386 ; Allow instructions up to 386 30 30 %elifdef USE_286 31 CPU 286 ; Allow instructions up to 286 32 %elifdef USE_386 33 CPU 386 ; Allow instructions up to 386 34 %endif 31 CPU 286 ; Allow instructions up to 286 32 %elifdef USE_186 33 CPU 186 ; Allow instructions up to 188/186/V20/V30 34 %else 35 CPU 8086 ; Allow 8088/8086 instructions only 36 %endif 37 35 38 BITS 16 ; Set 16 bit code generation 36 39 -
trunk/Configurator/Src/EEPROM.asm
r2 r293 1 ; File name : EEPROM.asm2 1 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 19.4.20104 ; Last update : 2.5.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for managing EEPROM contents. 7 3 … … 25 21 call EEPROM_FindXtideUniversalBiosROM 26 22 xor si, si ; Load from beginning of ROM 27 eMOVZX cx, BYTE[es:ROMVARS.bRomSize]23 eMOVZX cx, [es:ROMVARS.bRomSize] 28 24 eSHL_IM cx, 9 ; *= 512 for byte count 29 25 call EEPROM_LoadBytesFromROM -
trunk/Configurator/Src/Flash.asm
r2 r293 1 ; File name : Flash.asm2 1 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 30.4.20104 ; Last update : 2.5.20105 ; Author : Tomi Tilli6 2 ; Description : Function for flashing the EEPROM. 7 3 … … 46 42 ; Verifies that all data has been written successfully. 47 43 ; 48 ; Flash_WasDataWriteSuccessful l44 ; Flash_WasDataWriteSuccessful 49 45 ; Parameters: 50 46 ; Nothing … … 56 52 ;-------------------------------------------------------------------- 57 53 ALIGN JUMP_ALIGN 58 Flash_WasDataWriteSuccessful l:54 Flash_WasDataWriteSuccessful: 59 55 push ds 60 56 push di … … 218 214 ; ES:BP: Ptr to EEPROM last write location 219 215 ; Returns: 220 ; CF: Cleared if polling successful l216 ; CF: Cleared if polling successful 221 217 ; Set if polling timeout 222 218 ; Corrupts registers: -
trunk/Configurator/Src/Libraries/file.asm
r162 r293 162 162 ; ES:DI: Ptr to destination buffer 163 163 ; Returns: 164 ; AX: Number of bytes actually read if successful l(EOF check)164 ; AX: Number of bytes actually read if successful (EOF check) 165 165 ; DOS error code if CF set 166 ; CF: Clear if successful l166 ; CF: Clear if successful 167 167 ; Set if error 168 168 ; Corrupts registers: … … 194 194 ; ES:DI: Ptr to source buffer 195 195 ; Returns: 196 ; AX: Number of bytes actually written if successful l(EOF check)196 ; AX: Number of bytes actually written if successful (EOF check) 197 197 ; DOS error code if CF set 198 ; CF: Clear if successful l198 ; CF: Clear if successful 199 199 ; Set if error 200 200 ; Corrupts registers: … … 224 224 ; Returns: 225 225 ; AX: DOS error code if CF set 226 ; CF: Clear if successful l226 ; CF: Clear if successful 227 227 ; Set if error 228 228 ; Corrupts registers: … … 373 373 ; Returns: 374 374 ; AX: DOS Error code 375 ; CF: Clear if successful l375 ; CF: Clear if successful 376 376 ; Set if error 377 377 ; Corrupts registers: -
trunk/Configurator/Src/Libraries/menu/menudraw.asm
r181 r293 61 61 push cx 62 62 call MenuCrsr_GetCursor ; Get current cursor to DX 63 eMOVZX cx, BYTE [bp+MENUVARS.bWidth]; Load menu width63 eMOVZX cx, [bp+MENUVARS.bWidth] ; Load menu width 64 64 add cl, [bp+MENUVARS.bInitX] ; Add menu start X coord 65 65 sub cl, W_OFF_CRSR_STR & 0FFh ; Subtract right borders … … 164 164 call MenuCrsr_Point1stItem ; Set cursor position 165 165 mov cx, [bp+MENUVARS.wItemTop] ; Load idx of first menuitem to draw 166 eMOVZX dx, BYTE [bp+MENUVARS.bVisCnt]; Load number of visible menuitems166 eMOVZX dx, [bp+MENUVARS.bVisCnt] ; Load number of visible menuitems 167 167 MIN_U dx, [bp+MENUVARS.wItemCnt] ; Limit to item count 168 168 add dx, cx ; One past last menuitem to draw … … 266 266 call MenuDraw_TopBorder ; Draw top border 267 267 call MenuDraw_NewlineBrdr ; Change line 268 eMOVZX cx, BYTE [bp+MENUVARS.bTitleH]; Load number of title strings268 eMOVZX cx, [bp+MENUVARS.bTitleH] ; Load number of title strings 269 269 jcxz .Return ; Return if no title strings 270 270 ALIGN JUMP_ALIGN … … 284 284 xor dx, dx ; Zero DX 285 285 call MenuCrsr_PointNfoBrdr ; Set cursor 286 eMOVZX cx, BYTE [bp+MENUVARS.bInfoH]; Load number of info strings286 eMOVZX cx, [bp+MENUVARS.bInfoH] ; Load number of info strings 287 287 test BYTE [bp+MENUVARS.bFlags], FLG_MNU_HIDENFO ; Information hidden? 288 288 jnz SHORT .JumpToBottomBorder … … 320 320 xor dx, dx ; Zero DX 321 321 call MenuCrsr_PointItemBrdr ; Set cursor 322 eMOVZX cx, BYTE [bp+MENUVARS.bVisCnt]; Load max number of item strings322 eMOVZX cx, [bp+MENUVARS.bVisCnt] ; Load max number of item strings 323 323 ALIGN JUMP_ALIGN 324 324 .LineLoop: … … 374 374 mov dl, bh ; Leftmost 375 375 PRINT_CHAR 376 eMOVZX cx, BYTE[bp+MENUVARS.bWidth]376 eMOVZX cx, [bp+MENUVARS.bWidth] 377 377 times 2 dec cx ; Subtract borders 378 378 mov dl, bl ; Middle … … 438 438 mov dh, B_V ; Assume no scroll bars needed 439 439 mov ax, [bp+MENUVARS.wItemCnt] ; Load menuitem count to AX 440 eMOVZX bx, BYTE[bp+MENUVARS.bVisCnt] ; Load visible menuitems to BX440 eMOVZX bx, [bp+MENUVARS.bVisCnt] ; Load visible menuitems to BX 441 441 cmp ax, bx ; Need scroll bars? 442 442 jbe .Return ; If not, return -
trunk/Configurator/Src/Libraries/menu/menufile.asm
r83 r293 1 ; File name : menufile.asm2 1 ; Project name : Menu library 3 ; Created date : 20.11.2009 4 ; Last update : 6.1.2011 5 ; Author : Tomi Tilli, 6 ; : Krister Nordvall (Optimizations) 7 ; Description : ASM library to menu system. 2 ; Description : ASM library for menu system. 8 3 ; Contains functions for displaying file dialog. 9 4 … … 276 271 ALIGN JUMP_ALIGN 277 272 .ChangeDone: 278 mov dx, [bp+FDLGVARS.fpFileSrch] ; Load ptr to file search str 279 mov ds, [bp+FDLGVARS.fpFileSrch+2] 273 lds dx, [bp+FDLGVARS.fpFileSrch] ; Load ptr to file search str 280 274 call MenuFile_GetItemCnt ; Get file count from new dir 281 275 pop ds … … 314 308 mov di, [bp+MSGVARS.wStrOff] ; Load string offset 315 309 mov es, [bp+MSGVARS.wStrSeg] ; Load string segment 316 eMOVZX cx, BYTE [bp+MENUVARS.bInfoH]; Load info line count to CX310 eMOVZX cx, [bp+MENUVARS.bInfoH] ; Load info line count to CX 317 311 call MenuDraw_MultilineStr ; Draw multiline str 318 312 pop di -
trunk/Configurator/Src/Libraries/menu/menuloop.asm
r9 r293 1 ; File name : menuloop.asm2 1 ; Project name : Menu library 3 ; Created date : 11.11.2009 4 ; Last update : 25.5.2010 5 ; Author : Tomi Tilli 6 ; Description : ASM library to menu system. 2 ; Description : ASM library for menu system. 7 3 ; Contains event dispatching loop. 8 4 … … 143 139 144 140 ; Jump to process menu key 145 mov di, CNT_MENU_KEYS-1 ; Convert CX... 141 mov di, CNT_MENU_KEYS-1 ; Convert CX... 146 142 sub di, cx ; ...to lookup index 147 143 shl di, 1 ; Prepare for word lookup … … 186 182 jnz .TextScrollUp ; If so, go to text scrolling 187 183 %endif 188 mov ax, [bp+MENUVARS.wItemSel] ; Load selected index 184 mov ax, [bp+MENUVARS.wItemSel] ; Load selected index 189 185 test ax, ax ; Already at top? 190 186 jz .KeyEnd ; If so, go to end … … 222 218 je .KeyHome ; If so, go to beginning 223 219 mov [bp+MENUVARS.wItemSel], ax ; Store new menuitem index 224 eMOVZX bx, BYTE [bp+MENUVARS.bVisCnt]; Load number of visible items220 eMOVZX bx, [bp+MENUVARS.bVisCnt] ; Load number of visible items 225 221 add bx, [bp+MENUVARS.wItemTop] ; BX to one past last visible index 226 222 cmp ax, bx ; Need to scroll? … … 235 231 ALIGN JUMP_ALIGN 236 232 .TextScrollDown: 237 eMOVZX ax, BYTE [bp+MENUVARS.bVisCnt]; Load visible items233 eMOVZX ax, [bp+MENUVARS.bVisCnt] ; Load visible items 238 234 add ax, [bp+MENUVARS.wItemTop] ; Add topmost menuitem index 239 235 cmp ax, [bp+MENUVARS.wItemCnt] ; Already at the bottom? … … 261 257 sbb bh, 0 262 258 mov [bp+MENUVARS.wItemTop], bx ; Store first menuitem to draw 263 jnc .ScrollMenu 259 jnc .ScrollMenu 264 260 mov WORD [bp+MENUVARS.wItemTop], 0 ; Overflow, start with 0 265 261 jmp .ScrollMenu … … 284 280 inc ax ; Increment page 285 281 mul BYTE [bp+MENUVARS.bVisCnt] ; AX=First menuitem on page 286 eMOVZX bx, BYTE [bp+MENUVARS.bVisCnt]; Load number of visible items282 eMOVZX bx, [bp+MENUVARS.bVisCnt] ; Load number of visible items 287 283 add bx, ax ; BX now one past last visible 288 284 cmp bx, [bp+MENUVARS.wItemCnt] ; Went over last? … … 331 327 dw .KeyEnd ; KEY_END 332 328 ; Scan code to jump index translation table 333 .rgbKeyToIdx: 329 .rgbKeyToIdx: 334 330 db KEY_ENTER, KEY_ESC, KEY_UP, KEY_DOWN, 335 331 db KEY_PGUP, KEY_PGDN, KEY_HOME, KEY_END -
trunk/Configurator/Src/Libraries/menu/menumsg.asm
r181 r293 212 212 call MenuMsg_GetTokenForLine ; Get ptr to first token, length to AX 213 213 jnc .EndOfString ; Return if no tokens 214 eMOVZX dx, BYTE [bp+MENUVARS.bWidth]; Menu width214 eMOVZX dx, [bp+MENUVARS.bWidth] ; Menu width 215 215 sub dl, SIZE_MSG_HBRDR ; To line length 216 216 mov bl, ' ' ; Space character -
trunk/Configurator/Src/Libraries/menu/menuprog.asm
r2 r293 1 ; File name : menuprog.asm2 1 ; Project name : Menu library 3 ; Created date : 23.11.2009 4 ; Last update : 23.11.2009 5 ; Author : Tomi Tilli 6 ; Description : ASM library to menu system. 2 ; Description : ASM library for menu system. 7 3 ; Contains functions for displaying progress bar dialog. 8 4 … … 110 106 MenuProg_DrawBar: 111 107 ; Calculate number of chars to draw 112 eMOVZX cx, BYTE [bp+MENUVARS.bWidth]; Dialog width to CX108 eMOVZX cx, [bp+MENUVARS.bWidth] ; Dialog width to CX 113 109 sub cl, 4 ; Sub borders, CX=bar width 114 110 mul cl ; AX=bar with * percentage … … 117 113 sub cl, al ; CX=Empty char cnt 118 114 mov bl, al ; BX=full char cnt 119 115 120 116 ; Draw full chars 121 117 mov dl, FULL_BLCK ; Load full block char … … 180 176 push ds 181 177 push si 182 mov si, [bp+PDLGVARS.fpUser] ; Load offset to user ptr 183 mov ds, [bp+PDLGVARS.fpUser+2] ; Load segment to user ptr 178 lds si, [bp+PDLGVARS.fpUser] ; Load user defined ptr 184 179 xor ax, ax ; Zero percent 185 180 ALIGN JUMP_ALIGN -
trunk/Configurator/Src/Libraries/menu/prntvram.asm
r2 r293 1 ; File name : prntvram.asm2 1 ; Project name : Print library 3 ; Created date : 7.12.2009 4 ; Last update : 7.12.2009 5 ; Author : Tomi Tilli 6 ; Description : ASM library to for character and string 2 ; Description : ASM library for character and string 7 3 ; printing using direct access to VRAM. 8 4 ; … … 27 23 ;-------------------------------------------------------------------- 28 24 ; Return pointer to VRAM for current cursor position. 29 ; 25 ; 30 26 ; PrntVram_GetPtr 31 27 ; Parameters: … … 43 39 44 40 ; Calculate offset to VRAM 45 eMOVZX di, BYTE [es:BDA.bVidPageIdx]; Load page index41 eMOVZX di, [es:BDA.bVidPageIdx] ; Load page index 46 42 shl di, 1 ; Shift for word lookup 47 43 mov ax, [es:di+BDA.rgwVidCurPos] ; Load cursor position … … 70 66 ; use this macro to print characters (so printing implementation 71 67 ; can be easily modified when needed). 72 ; 68 ; 73 69 ; PRINT_CHAR 74 70 ; Parameters: … … 117 113 pop es 118 114 je .IncRow 119 115 120 116 ; Inc column only 121 117 push dx … … 147 143 ; use this macro to print strings (so printing implementation 148 144 ; can be easily modified when needed). 149 ; 145 ; 150 146 ; PRINT_STR 151 147 ; Parameters: … … 167 163 ; All string printing functions must use this macro to print strings 168 164 ; (so printing implementation can be easily modified when needed). 169 ; 165 ; 170 166 ; PRINT_STR_LEN 171 167 ; Parameters: … … 194 190 cmp al, 20h ; Printable character? 195 191 jb .Bios ; If not, use BIOS functions 196 192 197 193 push dx 198 194 mov al, dl 199 195 PRINT_CHAR 200 196 pop dx 201 197 202 198 ;stosb ; Store char to [ES:DI] 203 199 inc dx ; Increment chars printed -
trunk/Configurator/Src/MenuPage.asm
r2 r293 1 ; File name : MenuPage.asm 2 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 15.4.2010 4 ; Last update : 27.4.2010 5 ; Author : Tomi Tilli 1 ; Project name : XTIDE Universal BIOS Configurator 6 2 ; Description : Functions to access MENUPAGE structs. 7 3 … … 113 109 push cx 114 110 push bx 115 eMOVZX cx, BYTE[si+MENUPAGE.bItemCnt]111 eMOVZX cx, [si+MENUPAGE.bItemCnt] 116 112 lea bx, [si+MENUPAGE.rgMenuPageItem] 117 113 ALIGN JUMP_ALIGN -
trunk/Configurator/Src/MenuPageItem.asm
r181 r293 1 ; Project name : XTIDE Univer al BIOS Configurator1 ; Project name : XTIDE Universal BIOS Configurator 2 2 ; Description : Functions to access MENUPAGEITEM structs. 3 3 … … 21 21 push cs 22 22 pop es 23 eMOVZX cx, BYTE [bp+MENUVARS.bInfoH]; Info line count to CX23 eMOVZX cx, [bp+MENUVARS.bInfoH] ; Info line count to CX 24 24 call MenuPageItem_PrintCommonInfoLines 25 25 mov di, [di+MENUPAGEITEM.szInfo] ; ES:DI now points to info string … … 111 111 ; SS:BP: Ptr to MENUVARS 112 112 ; Returns: 113 ; CF: Set if user data inputted succes fully113 ; CF: Set if user data inputted successfully 114 114 ; Cleared if cancel 115 115 ; Corrupts registers: … … 147 147 ; SS:BP: Ptr to MENUVARS 148 148 ; Returns: 149 ; CF: Set if user data inputted succes fully149 ; CF: Set if user data inputted successfully 150 150 ; Cleared if cancel 151 151 ; Corrupts registers: … … 183 183 ; SS:BP: Ptr to MENUVARS 184 184 ; Returns: 185 ; CF: Set if user data inputted succes fully185 ; CF: Set if user data inputted successfully 186 186 ; Cleared if cancel 187 187 ; Corrupts registers: … … 216 216 ; SS:BP: Ptr to MENUVARS 217 217 ; Returns: 218 ; CF: Set if user data inputted succes fully218 ; CF: Set if user data inputted successfully 219 219 ; Cleared if cancel 220 220 ; Corrupts registers: … … 247 247 ; SS:BP: Ptr to MENUVARS 248 248 ; Returns: 249 ; CF: Set since user data inputted succes fully249 ; CF: Set since user data inputted successfully 250 250 ; Corrupts registers: 251 251 ; AX, BX, CX, DX … … 269 269 ; Returns: 270 270 ; AX: 16-bit unsigned word inputted by user 271 ; CF: Set if user data inputted succes fully271 ; CF: Set if user data inputted successfully 272 272 ; Cleared if cancel 273 273 ; Corrupts registers: … … 297 297 ; SS:BP: Ptr to MENUVARS 298 298 ; Returns: 299 ; CF: Set if user data inputted succes fully299 ; CF: Set if user data inputted successfully 300 300 ; Cleared if cancel 301 301 ; Corrupts registers: -
trunk/Configurator/Src/MenuPageItemFormat.asm
r2 r293 1 ; File name : MenuPageItemFormat.asm 2 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 15.4.2010 4 ; Last update : 30.4.2010 5 ; Author : Tomi Tilli 6 ; Description : Functions for formatting 1 ; Project name : XTIDE Universal BIOS Configurator 2 ; Description : Functions for formatting 7 3 ; menuitem names from MENUPAGEITEM. 8 4 … … 25 21 mov si, [di+MENUPAGEITEM.rgszLookup] ; Load offset to string lookup table 26 22 mov bx, [di+MENUPAGEITEM.pValue] ; Ptr to value containing lookup index 27 eMOVZX bx, BYTE [bx]; BX=lookup index (values are already shifted for WORD lookup)23 eMOVZX bx, [bx] ; BX=lookup index (values are already shifted for WORD lookup) 28 24 push WORD [bx+si] ; Push offset to string to print 29 25 mov dh, 4 ; Total of 4 bytes for formatting params … … 46 42 ALIGN JUMP_ALIGN 47 43 MenuPageItemFormat_NameForAnyType: 48 eMOVZX bx, BYTE [di+MENUPAGEITEM.bType]; Load menuitem type44 eMOVZX bx, [di+MENUPAGEITEM.bType] ; Load menuitem type 49 45 jmp [cs:bx+.rgfnPrintBasedOnType] 50 46 ALIGN WORD_ALIGN … … 132 128 MenuPageItemFormat_NameWithUnsignedByteValue: 133 129 mov si, [di+MENUPAGEITEM.pValue] ; DS:SI points to value 134 eMOVZX ax, BYTE [si]; Load byte to AX130 eMOVZX ax, [si] ; Load byte to AX 135 131 push ax ; Push byte 136 132 jmp SHORT MenuPageItemFormat_NameWithUnsignedValuePushed … … 161 157 MenuPageItemFormat_NameWithByteHexadecimalValue: 162 158 mov si, [di+MENUPAGEITEM.pValue] ; DS:SI points to value 163 eMOVZX ax, BYTE [si]; Load byte to AX159 eMOVZX ax, [si] ; Load byte to AX 164 160 push ax ; Push byte 165 161 jmp SHORT MenuPageItemFormat_NameWithHexadecimalValuePushed -
trunk/Configurator/Src/Menupages/ConfigurationMenu.asm
r2 r293 1 ; File name : ConfigurationMenu.asm 2 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 21.4.2010 4 ; Last update : 2.5.2010 5 ; Author : Tomi Tilli 1 ; Project name : XTIDE Universal BIOS Configurator 6 2 ; Description : XTIDE Universal BIOS configuration menu. 7 3 … … 226 222 ; SS:BP: Ptr to MENUVARS 227 223 ; Returns: 228 ; CF: Set if user data inputted succes fully224 ; CF: Set if user data inputted successfully 229 225 ; Cleared if cancel 230 226 ; Corrupts registers: … … 245 241 ; SS:BP: Ptr to MENUVARS 246 242 ; Returns: 247 ; CF: Set if user data inputted succes fully243 ; CF: Set if user data inputted successfully 248 244 ; Cleared if cancel 249 245 ; Corrupts registers: … … 358 354 call ConfigurationMenu_GetNumberOfIdeControllers 359 355 dec cx ; First always visible 360 j cxz.Return356 jz .Return 361 357 mov bx, g_MenuPageItemCfgIde2+MENUPAGEITEM.bFlags 362 358 ALIGN JUMP_ALIGN … … 381 377 ALIGN JUMP_ALIGN 382 378 ConfigurationMenu_GetNumberOfIdeControllers: 379 mov cx, 1 ; Assume one controller for Lite mode 383 380 test WORD [g_cfgVars+CFGVARS.rgbEepromBuffers+ROMVARS.wFlags], FLG_ROMVARS_FULLMODE 384 jz SHORT .ReturnOneControllerForLiteMode 385 eMOVZX cx, BYTE [g_cfgVars+CFGVARS.rgbEepromBuffers+ROMVARS.bIdeCnt] 386 ret 387 ALIGN JUMP_ALIGN 388 .ReturnOneControllerForLiteMode: 389 mov cx, 1 390 ret 381 jz SHORT .Return 382 mov cl, [g_cfgVars+CFGVARS.rgbEepromBuffers+ROMVARS.bIdeCnt] 383 ALIGN JUMP_ALIGN, ret 384 .Return: 385 ret -
trunk/Configurator/Src/Menupages/DrvParamsMenu.asm
r2 r293 1 ; File name : DrvParamsMenu.asm 2 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 26.4.2010 4 ; Last update : 27.4.2010 5 ; Author : Tomi Tilli 1 ; Project name : XTIDE Universal BIOS Configurator 6 2 ; Description : Menu for configuring DRVPARAMS. 7 3 … … 109 105 ALIGN JUMP_ALIGN 110 106 DrvParamsMenu_SetDrvParamsOffset: 111 eMOVZX cx, BYTE[g_MenuPageDrvParams+MENUPAGE.bItemCnt]107 eMOVZX cx, [g_MenuPageDrvParams+MENUPAGE.bItemCnt] 112 108 dec cx 113 109 mov bx, g_MenuPageItemDrvBlockMode+MENUPAGEITEM.pValue -
trunk/Configurator/Src/Menupages/FlashMenu.asm
r181 r293 1 ; Project name : XTIDE Univer al BIOS Configurator1 ; Project name : XTIDE Universal BIOS Configurator 2 2 ; Description : Flash menu. 3 3 4 4 5 5 ; Flash error codes returned from progress bar task function 6 ERR_FLASH_SUCCESSFUL LEQU 06 ERR_FLASH_SUCCESSFUL EQU 0 7 7 ERR_FLASH_POLL_TIMEOUT EQU 1 8 8 … … 132 132 call MenuPageItem_GetByteFromUserWithoutMarkingUnsaved 133 133 jnc SHORT .Cancel 134 eMOVZX bx, BYTE[g_cfgVars+CFGVARS.bPageSize]134 eMOVZX bx, [g_cfgVars+CFGVARS.bPageSize] 135 135 eBSR ax, bx ; AX = Index of highest order bit 136 136 mov cx, 1 … … 185 185 xor dx, dx 186 186 mov ax, [g_cfgVars+CFGVARS.wEepromSize] ; DX:AX = Bytes to write 187 eMOVZX cx, BYTE[g_cfgVars+CFGVARS.bPageSize]187 eMOVZX cx, [g_cfgVars+CFGVARS.bPageSize] 188 188 div cx ; AX = Total number of pages 189 189 mov [g_cfgVars+CFGVARS.flashVars+FLASHVARS.wTotalPages], ax … … 255 255 ALIGN JUMP_ALIGN 256 256 .FlashComplete: 257 mov ax, ERR_FLASH_SUCCESSFUL L257 mov ax, ERR_FLASH_SUCCESSFUL 258 258 retf 259 259 .Timeout: … … 278 278 mov ax, [si+FLASHVARS.wTotalPages] 279 279 sub ax, [si+FLASHVARS.wPagesLeft] ; AX=Pages written 280 eMOVZX dx, BYTE[g_cfgVars+CFGVARS.bPageSize]280 eMOVZX dx, [g_cfgVars+CFGVARS.bPageSize] 281 281 mul dx ; AX=Bytes written 282 282 … … 311 311 mov dx, [si+FLASHVARS.wPagesBeforeDraw] 312 312 call FlashMenu_GetPointersToPageToFlash 313 eMOVZX ax, BYTE[g_cfgVars+CFGVARS.bSdpCommand]314 eMOVZX cx, BYTE[g_cfgVars+CFGVARS.bPageSize]313 eMOVZX ax, [g_cfgVars+CFGVARS.bSdpCommand] 314 eMOVZX cx, [g_cfgVars+CFGVARS.bPageSize] 315 315 ALIGN JUMP_ALIGN 316 316 .PageLoop: … … 405 405 cmp ax, ERR_FLASH_POLL_TIMEOUT 406 406 je SHORT FlashMenu_PollingTimeoutErrorDuringFlashing 407 call Flash_WasDataWriteSuccessful l407 call Flash_WasDataWriteSuccessful 408 408 jne SHORT FlashMenu_DataVerifyErrorAfterFlashing 409 409 ; Fall to FlashMenu_EepromFlashedSuccessfully -
trunk/Configurator/Src/Menupages/IdeControllerMenu.asm
r2 r293 1 ; File name : IdeControllerMenu.asm 2 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 23.4.2010 4 ; Last update : 27.4.2010 5 ; Author : Tomi Tilli 1 ; Project name : XTIDE Universal BIOS Configurator 6 2 ; Description : Menu for configuring IDEVARS. 7 3 … … 119 115 120 116 ;-------------------------------------------------------------------- 121 ; Stores IDEVARS specific pointers to IDE Controller Menu 117 ; Stores IDEVARS specific pointers to IDE Controller Menu 122 118 ; MENUPAGEITEM structs. 123 119 ; … … 133 129 ALIGN JUMP_ALIGN 134 130 IdeControllerMenu_SetIdevarsOffset: 135 eMOVZX cx, BYTE[g_MenuPageIdeVars+MENUPAGE.bItemCnt]131 eMOVZX cx, [g_MenuPageIdeVars+MENUPAGE.bItemCnt] 136 132 dec cx 137 133 mov bx, g_MenuPageItemIdeMaster+MENUPAGEITEM.pValue -
trunk/Configurator/Src/Strings.asm
r2 r293 1 ; File name : Strings.asm 2 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 16.4.2010 4 ; Last update : 2.5.2010 5 ; Author : Tomi Tilli 1 ; Project name : XTIDE Universal BIOS Configurator 6 2 ; Description : Strings used in this program. 7 3 … … 22 18 g_szFlashTimeout: db "Timeout error when polling EEPROM!",STOP 23 19 g_szFlashVerifyErr: db "Data verification failed!",STOP 24 g_szFlashDoneReboot: db "EEPROM written succes fully. Press any key to reboot.",STOP25 g_szFlashDoneContinue: db "EEPROM written succes fully.",STOP20 g_szFlashDoneReboot: db "EEPROM written successfully. Press any key to reboot.",STOP 21 g_szFlashDoneContinue: db "EEPROM written successfully.",STOP 26 22 27 23 … … 44 40 g_szDlgMainLoadStngs: db "Successfully loaded settings from EEPROM.",STOP 45 41 46 g_szNfoMainExitToDOS: db "Quits XTIDE Univer al BIOS Configurator.",STOP42 g_szNfoMainExitToDOS: db "Quits XTIDE Universal BIOS Configurator.",STOP 47 43 g_szNfoMainLoadFile: db "Load BIOS file to be configured or flashed.",STOP 48 44 g_szNfoMainLoadROM: db "Load BIOS from EEPROM to be reconfigured.",STOP
Note:
See TracChangeset
for help on using the changeset viewer.