Changeset 636 in xtideuniversalbios
- Timestamp:
- Mar 20, 2026, 8:54:42 PM (6 hours ago)
- Location:
- trunk
- Files:
-
- 16 edited
-
Assembly_Library/Src/Display/CgaSnow.asm (modified) (2 diffs)
-
Assembly_Library/Src/Menu/CharOutLineSplitter.asm (modified) (2 diffs)
-
Assembly_Library/Src/Menu/MenuAttributes.asm (modified) (3 diffs)
-
Assembly_Library/Src/Menu/MenuBorders.asm (modified) (3 diffs)
-
Assembly_Library/Src/Menu/MenuScrollbars.asm (modified) (2 diffs)
-
BIOS_Drive_Information_Tool/Src/Main.asm (modified) (2 diffs)
-
BIOS_Drive_Information_Tool/Src/Strings.asm (modified) (2 diffs)
-
XTIDE_Universal_BIOS/Inc/Revision.inc (modified) (1 diff)
-
XTIDE_Universal_BIOS/Src/Device/IDE/IdeIO.asm (modified) (7 diffs)
-
XTIDE_Universal_BIOS/Src/Initialization/AtaID.asm (modified) (2 diffs)
-
XTIDE_Universal_BIOS/Src/Initialization/Interrupts.asm (modified) (2 diffs)
-
XTIDE_Universal_BIOS/Src/Main.asm (modified) (2 diffs)
-
XTIDE_Universal_BIOS/Src/VariablesAndDPTs/CompatibleDPT.asm (modified) (2 diffs)
-
XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm (modified) (2 diffs)
-
XTIDE_Universal_BIOS_Configurator_v2/Src/Main.asm (modified) (2 diffs)
-
XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Display/CgaSnow.asm
r593 r636 4 4 ; 5 5 ; XTIDE Universal BIOS and Associated Tools 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-20 13by XTIDE Universal BIOS Team.6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 7 7 ; 8 8 ; This program is free software; you can redistribute it and/or modify … … 34 34 CgaSnow_IsCgaPresent: 35 35 cmp WORD [BDA.wVidPort], CGA_STATUS_REGISTER - OFFSET_TO_CGA_STATUS_REGISTER 36 clc 36 37 jne SHORT .CgaNotFound 37 38 38 39 ; All standard CGA modes use 25 rows but only EGA and later store it to BDA. 39 40 cmp BYTE [BDA.bVidRows], 24 ; BDA contains rows - 1 40 jae SHORT .CgaNotFound41 ret42 ALIGN DISPLAY_JUMP_ALIGN43 41 .CgaNotFound: 44 clc45 42 ret 46 43 -
trunk/Assembly_Library/Src/Menu/CharOutLineSplitter.asm
r589 r636 4 4 ; 5 5 ; XTIDE Universal BIOS and Associated Tools 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-20 13by XTIDE Universal BIOS Team.6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 7 7 ; 8 8 ; This program is free software; you can redistribute it and/or modify … … 40 40 ; Get last text line column offset to AX 41 41 call MenuLocation_GetMaxTextLineLengthToAX 42 %ifdef USE_386 43 lea ax, [edx+eax*2] 44 %else 42 45 eSHL_IM ax, 1 ; Characters to BYTEs 43 46 add ax, dx 47 %endif 44 48 45 49 xchg ax, dx ; AL = First text line column offset -
trunk/Assembly_Library/Src/Menu/MenuAttributes.asm
r601 r636 5 5 ; 6 6 ; XTIDE Universal BIOS and Associated Tools 7 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-20 13by XTIDE Universal BIOS Team.7 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 8 8 ; 9 9 ; This program is free software; you can redistribute it and/or modify … … 51 51 52 52 53 rgcColorAttributes: 54 ; Classic (default theme) 55 istruc ATTRIBUTE_CHARS 56 at ATTRIBUTE_CHARS.cBordersAndBackground, db COLOR_ATTRIBUTE(COLOR_YELLOW, COLOR_BLUE) 57 at ATTRIBUTE_CHARS.cShadow, db COLOR_ATTRIBUTE(COLOR_GRAY, COLOR_BLACK) 58 at ATTRIBUTE_CHARS.cTitle, db COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_BLUE) 59 at ATTRIBUTE_CHARS.cItem, db COLOR_ATTRIBUTE(COLOR_WHITE, COLOR_BLUE) 60 at ATTRIBUTE_CHARS.cHighlightedItem, db COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_CYAN) 61 at ATTRIBUTE_CHARS.cHurryTimeout, db COLOR_ATTRIBUTE(COLOR_RED, COLOR_BLUE) | FLG_COLOR_BLINK 62 at ATTRIBUTE_CHARS.cNormalTimeout, db COLOR_ATTRIBUTE(COLOR_GREEN, COLOR_BLUE) 63 iend 64 ColorTheme equ rgcColorAttributes 65 66 rgcBlackAndWhiteAttributes: ; Only COLOR_WHITE, COLOR_BRIGHT_WHITE and COLOR_BLACK should be used 67 istruc ATTRIBUTE_CHARS 68 at ATTRIBUTE_CHARS.cBordersAndBackground, db COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_BLACK) 69 at ATTRIBUTE_CHARS.cShadow, db COLOR_ATTRIBUTE(COLOR_GRAY, COLOR_BLACK) 70 at ATTRIBUTE_CHARS.cTitle, db COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_BLACK) 71 at ATTRIBUTE_CHARS.cItem, db COLOR_ATTRIBUTE(COLOR_WHITE, COLOR_BLACK) 72 at ATTRIBUTE_CHARS.cHighlightedItem, db COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_WHITE) 73 at ATTRIBUTE_CHARS.cHurryTimeout, db COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_BLACK) | FLG_COLOR_BLINK 74 at ATTRIBUTE_CHARS.cNormalTimeout, db COLOR_ATTRIBUTE(COLOR_WHITE, COLOR_BLACK) 75 iend 76 77 rgcMonochromeAttributes: 78 istruc ATTRIBUTE_CHARS 79 at ATTRIBUTE_CHARS.cBordersAndBackground, db MONO_BRIGHT 80 at ATTRIBUTE_CHARS.cShadow, db MONO_REVERSE_DARK 81 at ATTRIBUTE_CHARS.cTitle, db MONO_BRIGHT 82 at ATTRIBUTE_CHARS.cItem, db MONO_NORMAL 83 at ATTRIBUTE_CHARS.cHighlightedItem, db MONO_REVERSE 84 at ATTRIBUTE_CHARS.cHurryTimeout, db MONO_BRIGHT_BLINK 85 at ATTRIBUTE_CHARS.cNormalTimeout, db MONO_NORMAL 86 iend 87 88 53 89 ;-------------------------------------------------------------------- 54 90 ; MenuAttribute_GetToAXfromTypeInSI … … 71 107 jc SHORT .LoadColorAttribute 72 108 109 %if (rgcColorAttributes-$$) & 0FF00h = (rgcMonochromeAttributes-$$) & 0FF00h ; Are the base addresses of all three strucs on the same page? 110 %ifndef ORIGIN 111 ; This kludge is needed due to NASM's completely broken implementation of the ORG directive. 112 ; Since this is library code used both with ORG 0h (BIOS) and ORG 100h (XTIDECFG) we need 113 ; this define as a workaround to be able to use this optimization. 114 %warning No ORIGIN defined! Assuming 'ORG 0h' 115 %define ORIGIN 0 116 %endif 117 73 118 .LoadBlackAndWhiteAttribute: 74 add si, .rgcBlackAndWhiteAttributes 119 mov al, (ORIGIN+rgcBlackAndWhiteAttributes-$$) & 0FFh 120 SKIP2B f 121 .LoadMonoAttribute: 122 mov al, (ORIGIN+rgcMonochromeAttributes-$$) & 0FFh 123 SKIP2B f 124 .LoadColorAttribute: 125 mov al, (ORIGIN+rgcColorAttributes-$$) & 0FFh 126 add si, (ORIGIN+rgcColorAttributes-$$) & 0FF00h 127 add si, ax 128 %else 129 %warning Please relocate the ATTRIBUTE_CHARS strucs to re-enable the optimization in this file. 130 131 .LoadBlackAndWhiteAttribute: 132 add si, rgcBlackAndWhiteAttributes 75 133 jmp SHORT .LoadAttributeAndReturn 76 134 77 135 ALIGN MENU_JUMP_ALIGN 78 136 .LoadMonoAttribute: 79 add si, .rgcMonochromeAttributes137 add si, rgcMonochromeAttributes 80 138 jmp SHORT .LoadAttributeAndReturn 81 139 82 140 ALIGN MENU_JUMP_ALIGN 83 141 .LoadColorAttribute: 84 add si, .rgcColorAttributes142 add si, rgcColorAttributes 85 143 .LoadAttributeAndReturn: 144 %endif 86 145 cs lodsb ; Load from [CS:SI] to AL 87 146 88 147 pop ds 89 148 ret 90 91 92 .rgcColorAttributes:93 ; Classic (default theme)94 istruc ATTRIBUTE_CHARS95 at ATTRIBUTE_CHARS.cBordersAndBackground, db COLOR_ATTRIBUTE(COLOR_YELLOW, COLOR_BLUE)96 at ATTRIBUTE_CHARS.cShadow, db COLOR_ATTRIBUTE(COLOR_GRAY, COLOR_BLACK)97 at ATTRIBUTE_CHARS.cTitle, db COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_BLUE)98 at ATTRIBUTE_CHARS.cItem, db COLOR_ATTRIBUTE(COLOR_WHITE, COLOR_BLUE)99 at ATTRIBUTE_CHARS.cHighlightedItem, db COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_CYAN)100 at ATTRIBUTE_CHARS.cHurryTimeout, db COLOR_ATTRIBUTE(COLOR_RED, COLOR_BLUE) | FLG_COLOR_BLINK101 at ATTRIBUTE_CHARS.cNormalTimeout, db COLOR_ATTRIBUTE(COLOR_GREEN, COLOR_BLUE)102 iend103 ColorTheme equ MenuAttribute_GetToAXfromTypeInSI.rgcColorAttributes104 105 .rgcBlackAndWhiteAttributes: ; Only COLOR_WHITE, COLOR_BRIGHT_WHITE and COLOR_BLACK should be used106 istruc ATTRIBUTE_CHARS107 at ATTRIBUTE_CHARS.cBordersAndBackground, db COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_BLACK)108 at ATTRIBUTE_CHARS.cShadow, db COLOR_ATTRIBUTE(COLOR_GRAY, COLOR_BLACK)109 at ATTRIBUTE_CHARS.cTitle, db COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_BLACK)110 at ATTRIBUTE_CHARS.cItem, db COLOR_ATTRIBUTE(COLOR_WHITE, COLOR_BLACK)111 at ATTRIBUTE_CHARS.cHighlightedItem, db COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_WHITE)112 at ATTRIBUTE_CHARS.cHurryTimeout, db COLOR_ATTRIBUTE(COLOR_BRIGHT_WHITE, COLOR_BLACK) | FLG_COLOR_BLINK113 at ATTRIBUTE_CHARS.cNormalTimeout, db COLOR_ATTRIBUTE(COLOR_WHITE, COLOR_BLACK)114 iend115 116 .rgcMonochromeAttributes:117 istruc ATTRIBUTE_CHARS118 at ATTRIBUTE_CHARS.cBordersAndBackground, db MONO_BRIGHT119 at ATTRIBUTE_CHARS.cShadow, db MONO_REVERSE_DARK120 at ATTRIBUTE_CHARS.cTitle, db MONO_BRIGHT121 at ATTRIBUTE_CHARS.cItem, db MONO_NORMAL122 at ATTRIBUTE_CHARS.cHighlightedItem, db MONO_REVERSE123 at ATTRIBUTE_CHARS.cHurryTimeout, db MONO_BRIGHT_BLINK124 at ATTRIBUTE_CHARS.cNormalTimeout, db MONO_NORMAL125 iend -
trunk/Assembly_Library/Src/Menu/MenuBorders.asm
r592 r636 4 4 ; 5 5 ; XTIDE Universal BIOS and Associated Tools 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-20 13by XTIDE Universal BIOS Team.6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 7 7 ; 8 8 ; This program is free software; you can redistribute it and/or modify … … 29 29 ; Section containing code 30 30 SECTION .text 31 32 ;-------------------------------------------------------------------- 33 ; MenuBorders_RedrawBottomBorderLine 34 ; Parameters 35 ; SS:BP: Ptr to MENU 36 ; Returns: 37 ; Nothing 38 ; Corrupts registers: 39 ; AX, BX, DX, SI, DI 40 ;-------------------------------------------------------------------- 41 ALIGN MENU_JUMP_ALIGN 42 MenuBorders_RedrawBottomBorderLine: 43 call MenuBorders_AdjustDisplayContextForDrawingBorders 44 call MenuLocation_GetBottomBordersTopLeftCoordinatesToAX 45 CALL_DISPLAY_LIBRARY SetCursorCoordinatesFromAX 46 call MenuBorders_GetNumberOfMiddleCharactersToDX 47 jmp SHORT DrawBottomBorderLine 48 49 50 ;-------------------------------------------------------------------- 51 ; MenuBorders_RefreshItemBorders 52 ; Parameters 53 ; SS:BP: Ptr to MENU 54 ; Returns: 55 ; Nothing 56 ; Corrupts registers: 57 ; AX, BX, CX, DX, SI, DI 58 ;-------------------------------------------------------------------- 59 %ifndef EXCLUDE_FROM_XUB OR EXCLUDE_FROM_XTIDECFG 60 ALIGN MENU_JUMP_ALIGN 61 MenuBorders_RefreshItemBorders: 62 call MenuBorders_AdjustDisplayContextForDrawingBorders 63 call MenuLocation_GetItemBordersTopLeftCoordinatesToAX 64 CALL_DISPLAY_LIBRARY SetCursorCoordinatesFromAX 65 66 call MenuBorders_GetNumberOfMiddleCharactersToDX 67 jmp SHORT RefreshItemBorders 68 %endif 69 31 70 32 71 ;-------------------------------------------------------------------- … … 56 95 push RefreshTitleBorders 57 96 push MenuBorders_GetNumberOfMiddleCharactersToDX 58 jmp SHORT MenuBorders_AdjustDisplayContextForDrawingBorders 59 %endif 60 61 62 ;-------------------------------------------------------------------- 63 ; MenuBorders_RedrawBottomBorderLine 64 ; Parameters 65 ; SS:BP: Ptr to MENU 66 ; Returns: 67 ; Nothing 68 ; Corrupts registers: 69 ; AX, BX, DX, SI, DI 70 ;-------------------------------------------------------------------- 71 ALIGN MENU_JUMP_ALIGN 72 MenuBorders_RedrawBottomBorderLine: 73 call MenuBorders_AdjustDisplayContextForDrawingBorders 74 call MenuLocation_GetBottomBordersTopLeftCoordinatesToAX 75 CALL_DISPLAY_LIBRARY SetCursorCoordinatesFromAX 76 call MenuBorders_GetNumberOfMiddleCharactersToDX 77 jmp SHORT DrawBottomBorderLine 78 79 80 ;-------------------------------------------------------------------- 81 ; MenuBorders_RefreshItemBorders 82 ; Parameters 83 ; SS:BP: Ptr to MENU 84 ; Returns: 85 ; Nothing 86 ; Corrupts registers: 87 ; AX, BX, CX, DX, SI, DI 88 ;-------------------------------------------------------------------- 89 %ifndef EXCLUDE_FROM_XUB OR EXCLUDE_FROM_XTIDECFG 90 ALIGN MENU_JUMP_ALIGN 91 MenuBorders_RefreshItemBorders: 92 call MenuBorders_AdjustDisplayContextForDrawingBorders 93 call MenuLocation_GetItemBordersTopLeftCoordinatesToAX 94 CALL_DISPLAY_LIBRARY SetCursorCoordinatesFromAX 95 96 call MenuBorders_GetNumberOfMiddleCharactersToDX 97 jmp SHORT RefreshItemBorders 97 ; Fall to MenuBorders_AdjustDisplayContextForDrawingBorders 98 98 %endif 99 99 -
trunk/Assembly_Library/Src/Menu/MenuScrollbars.asm
r583 r636 4 4 ; 5 5 ; XTIDE Universal BIOS and Associated Tools 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-20 13by XTIDE Universal BIOS Team.6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 7 7 ; 8 8 ; This program is free software; you can redistribute it and/or modify … … 190 190 191 191 call MenuScrollbars_GetLastVisibleItemOnPageToAX 192 cmp cx, ax 193 ja SHORT .ItemIsNotVisible 194 stc ; Item is visible 192 cmp ax, cx 193 cmc 195 194 ALIGN MENU_JUMP_ALIGN, ret 196 195 .ItemIsNotVisible: -
trunk/BIOS_Drive_Information_Tool/Src/Main.asm
r614 r636 5 5 ; 6 6 ; XTIDE Universal BIOS and Associated Tools 7 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-20 13by XTIDE Universal BIOS Team.7 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 8 8 ; 9 9 ; This program is free software; you can redistribute it and/or modify … … 37 37 38 38 ; Program first instruction. 39 ORG 100h ; Code starts at offset 100h (DOS .COM) 39 %define ORIGIN 100h 40 ORG ORIGIN ; Code starts at offset 100h (DOS .COM) 40 41 Start: 41 42 jmp StartBiosDriveInformationTool -
trunk/BIOS_Drive_Information_Tool/Src/Strings.asm
r631 r636 4 4 ; 5 5 ; XTIDE Universal BIOS and Associated Tools 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-202 5by XTIDE Universal BIOS Team.6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 7 7 ; 8 8 ; This program is free software; you can redistribute it and/or modify … … 22 22 23 23 g_szProgramName: db "BIOS Drive Information Tool v1.0.3",CR,LF 24 db "(C) 2012-202 5by XTIDE Universal BIOS Team",CR,LF24 db "(C) 2012-2026 by XTIDE Universal BIOS Team",CR,LF 25 25 db "Released under GNU GPL v2",CR,LF 26 26 db "http://xtideuniversalbios.org/",CR,LF,NULL -
trunk/XTIDE_Universal_BIOS/Inc/Revision.inc
r635 r636 1 63 51 636 -
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeIO.asm
r633 r636 5 5 ; 6 6 ; XTIDE Universal BIOS and Associated Tools 7 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-202 5by XTIDE Universal BIOS Team.7 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 8 8 ; 9 9 ; This program is free software; you can redistribute it and/or modify … … 22 22 SECTION .text 23 23 24 %ifndef NOSWAPA0A3LOOKUPTABLE ; Not defined in the makefile? 25 %define NOSWAPA0A3LOOKUPTABLE 2 ; Set this to 0, 1 or 2. 2 saves the most space, 0 the least. 26 %endif 27 24 28 ;-------------------------------------------------------------------- 25 29 ; IdeIO_InputStatusRegisterToAL … … 56 60 cmp al, DEVICE_8BIT_XTIDE_REV2 57 61 jb SHORT .InputToALfromRegisterInDX ; Standard IDE controllers, Juko D16-X and XTIDE rev 1 62 %if NOSWAPA0A3LOOKUPTABLE = 0 58 63 mov bx, dx ; ...and BX for A0<->A3 swap and for memory mapped I/O 64 %endif 59 65 60 66 %ifdef MODULE_8BIT_IDE_ADVANCED 61 67 cmp al, DEVICE_8BIT_XTIDE_REV2_OLIVETTI 62 68 jbe SHORT .ReverseA0andA3fromRegisterIndexInDX 69 70 %if NOSWAPA0A3LOOKUPTABLE <> 0 71 mov bl, dl ; ...and BL for memory mapped I/O 72 %endif 63 73 64 74 eSHL_IM dx, 1 ; ADP50L and XT-CF … … 79 89 80 90 .ReverseA0andA3fromRegisterIndexInDX: 91 %if NOSWAPA0A3LOOKUPTABLE = 0 92 ; 5 bytes plus the lookup table (8 bytes). 81 93 mov dl, [cs:bx+g_rgbSwapA0andA3fromIdeRegisterIndex] 94 %else 95 ; 8 bytes. No lookup table. 96 test dl, 1 97 jz SHORT .InputToALfromRegisterInDX 98 xor dl, 1001b ; Clear A3, Set A0 99 %endif 82 100 83 101 .InputToALfromRegisterInDX: … … 181 199 182 200 .ReverseA0andA3fromRegisterIndexInDX: 201 %if NOSWAPA0A3LOOKUPTABLE = 0 202 ; 8 bytes plus the lookup table (8 bytes). 183 203 mov bx, dx 184 204 mov dl, [cs:bx+g_rgbSwapA0andA3fromIdeRegisterIndex] 185 205 SKIP2B bx ; Skip eSHL_IM dx, 1 206 %elif NOSWAPA0A3LOOKUPTABLE = 1 207 ; 9 bytes. No lookup table. 208 test dl, 1 209 jz SHORT OutputALtoRegisterInDX 210 xor dl, 1001b ; Clear A3, Set A0 211 SKIP2B bx ; Skip eSHL_IM dx, 1 212 %else 213 ; 7 bytes. No lookup table. 214 shr dx, 1 215 jnc SHORT .ShlRegisterIndexInDXandOutputAL 216 or dx, 4 217 %endif 186 218 187 219 .ShlRegisterIndexInDXandOutputAL: … … 196 228 197 229 198 230 %if NOSWAPA0A3LOOKUPTABLE = 0 199 231 ; A0 <-> A3 lookup table 200 232 g_rgbSwapA0andA3fromIdeRegisterIndex: … … 207 239 db 0110b ; <-> 0110b, 6 208 240 db 1110b ; <-> 0111b, 7 241 %endif 242 243 %undef NOSWAPA0A3LOOKUPTABLE 209 244 210 245 %endif ; MODULE_8BIT_IDE -
trunk/XTIDE_Universal_BIOS/Src/Initialization/AtaID.asm
r632 r636 5 5 ; 6 6 ; XTIDE Universal BIOS and Associated Tools 7 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-202 5by XTIDE Universal BIOS Team.7 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 8 8 ; 9 9 ; This program is free software; you can redistribute it and/or modify … … 216 216 %ifdef USE_386 217 217 movzx ax, BYTE [es:si+ATA1.bPioMode] ; AH = 0, AL = PIO mode 0, 1 or 2 218 lea bx, [eax+eax] 218 219 %else 219 220 mov al, [es:si+ATA1.bPioMode] 220 221 cbw 221 %endif222 222 mov bx, ax 223 223 eSHL_IM bx, 1 ; Shift for WORD lookup 224 %endif 224 225 mov cx, [cs:bx+.rgwPio0to2CycleTimeInNanosecs] 225 226 -
trunk/XTIDE_Universal_BIOS/Src/Initialization/Interrupts.asm
r632 r636 4 4 ; 5 5 ; XTIDE Universal BIOS and Associated Tools 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-202 5by XTIDE Universal BIOS Team.6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 7 7 ; 8 8 ; This program is free software; you can redistribute it and/or modify … … 266 266 %ifdef USE_NEC_V 267 267 eCLR1 al, cl ; Clear wanted bit 268 %elifdef USE_386 269 btr ax, cx ; Clear wanted bit 268 270 %else 269 271 mov ch, ~1 ; Load bit mask to be rotated -
trunk/XTIDE_Universal_BIOS/Src/Main.asm
r625 r636 15 15 ; 16 16 ; XTIDE Universal BIOS and Associated Tools 17 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-202 3by XTIDE Universal BIOS Team.17 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 18 18 ; 19 19 ; This program is free software; you can redistribute it and/or modify … … 29 29 ; 30 30 31 ORG 0 ; Code start offset 0000h 31 %define ORIGIN 0 32 ORG ORIGIN ; Code start offset 0000h 32 33 33 34 ; We must define included libraries before including "AssemblyLibrary.inc". -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/CompatibleDPT.asm
r632 r636 6 6 ; 7 7 ; XTIDE Universal BIOS and Associated Tools 8 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-202 5by XTIDE Universal BIOS Team.8 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 9 9 ; 10 10 ; This program is free software; you can redistribute it and/or modify … … 73 73 push ds 74 74 pop es 75 %ifdef USE_186 76 imul di, [cs:ROMVARS.bStealSize], 1024 77 %else 75 78 mov di, [cs:ROMVARS.bStealSize] ; No harm to read WORD 76 79 eSHL_IM di, 10 ; DI = RAMVARS size in bytes 80 %endif 77 81 %ifdef MODULE_EBIOS 78 82 sub di, BYTE (TRANSLATED_DPT_size * 2) + DPTE_size -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
r632 r636 4 4 ; 5 5 ; XTIDE Universal BIOS and Associated Tools 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-202 5by XTIDE Universal BIOS Team.6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 7 7 ; 8 8 ; This program is free software; you can redistribute it and/or modify … … 40 40 jnz SHORT .InitializeRamvars ; No need to steal RAM 41 41 42 mov di, BDA.wBaseMem 42 43 mov ds, ax 43 44 mov al, [cs:ROMVARS.bStealSize] 44 sub [ BDA.wBaseMem], ax45 sub [di], ax 45 46 %ifdef USE_186 46 imul ax, [ BDA.wBaseMem], 6447 imul ax, [di], 64 47 48 %else 48 49 mov al, 64 49 mul WORD [ BDA.wBaseMem]50 mul WORD [di] 50 51 %endif 51 52 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Main.asm
r620 r636 4 4 ; 5 5 ; XTIDE Universal BIOS and Associated Tools 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-20 13by XTIDE Universal BIOS Team.6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 7 7 ; 8 8 ; This program is free software; you can redistribute it and/or modify … … 42 42 43 43 ; Program first instruction. 44 ORG 100h ; Code starts at offset 100h (DOS .COM) 44 %define ORIGIN 100h 45 ORG ORIGIN ; Code starts at offset 100h (DOS .COM) 45 46 Start: 46 47 jmp Main_Start -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm
r633 r636 4 4 ; 5 5 ; XTIDE Universal BIOS and Associated Tools 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-202 5by XTIDE Universal BIOS Team.6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team. 7 7 ; 8 8 ; This program is free software; you can redistribute it and/or modify … … 98 98 g_szNfoMainFlash: db "Flash loaded BIOS image to EEPROM.",NULL 99 99 g_szNfoMainSave: db "Save BIOS changes back to original file from which it was loaded.",NULL 100 g_szNfoMainLicense: db "XTIDE Universal BIOS and XTIDECFG Copyright (C) 2009-2010 by Tomi Tilli, 2011-202 5by XTIDE Universal BIOS Team."100 g_szNfoMainLicense: db "XTIDE Universal BIOS and XTIDECFG Copyright (C) 2009-2010 by Tomi Tilli, 2011-2026 by XTIDE Universal BIOS Team." 101 101 db " Released under GNU GPL v2, with ABSOLUTELY NO WARRANTY. Press ENTER for more details...",NULL 102 102 g_szNfoMainHomePage: db "Visit http://xtideuniversalbios.org (home page) and http://forum.vcfed.org (support)",NULL 103 103 104 104 g_szHelpMainLicense: db "XTIDE Universal BIOS and XTIDECFG Configuration program are Copyright 2009-2010 by Tomi Tilli," 105 db " 2011-202 5by XTIDE Universal BIOS Team. Released under GNU GPL v2. This software comes with ABSOLUTELY NO WARRANTY."105 db " 2011-2026 by XTIDE Universal BIOS Team. Released under GNU GPL v2. This software comes with ABSOLUTELY NO WARRANTY." 106 106 db " This is free software, and you are welcome to redistribute it under certain conditions." 107 107 db " See the LICENSE.TXT file that was included with this distribution,"
Note:
See TracChangeset
for help on using the changeset viewer.
