Changeset 590 in xtideuniversalbios
- Timestamp:
- May 25, 2016, 8:16:35 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Inc/Debug.inc
r142 r590 22 22 23 23 mov ax, %1 24 mov b x, %225 CALL_DISPLAY_LIBRARY PrintWordFromAX withBaseInBX24 mov bl, %2 25 CALL_DISPLAY_LIBRARY PrintWordFromAXWithBaseInBL 26 26 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 27 27 call Keyboard_RemoveAllKeystrokesFromBuffer -
trunk/Assembly_Library/Inc/Display.inc
r505 r590 82 82 .FormatNullTerminatedStringFromCSSI resb 2 83 83 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 84 .PrintSignedWordFromAXWithBaseInB Xresb 285 %endif 86 .PrintWordFromAX withBaseInBXresb 284 .PrintSignedWordFromAXWithBaseInBL resb 2 85 %endif 86 .PrintWordFromAXWithBaseInBL resb 2 87 87 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS OR EXCLUDE_FROM_XTIDECFG 88 88 .PrintQWordFromSSBPwithBaseInBX resb 2 -
trunk/Assembly_Library/Src/Display/Display.asm
r526 r590 97 97 %define FormatNullTerminatedStringFromCSSI Display_FormatNullTerminatedStringFromCSSI 98 98 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 99 %define PrintSignedWordFromAXWithBaseInB X DisplayPrint_SignedWordFromAXWithBaseInBX99 %define PrintSignedWordFromAXWithBaseInBL DisplayPrint_SignedWordFromAXWithBaseInBL 100 100 %endif 101 %define PrintWordFromAX withBaseInBX DisplayPrint_WordFromAXWithBaseInBX101 %define PrintWordFromAXWithBaseInBL DisplayPrint_WordFromAXWithBaseInBL 102 102 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS OR EXCLUDE_FROM_XTIDECFG 103 103 %define PrintQWordFromSSBPwithBaseInBX DisplayPrint_QWordFromSSBPwithBaseInBX -
trunk/Assembly_Library/Src/Display/DisplayFormat.asm
r589 r590 334 334 d_FormatSignedDecimalWord: 335 335 mov ax, [bp] 336 mov b x, 10337 jmp DisplayPrint_SignedWordFromAXWithBaseInB X336 mov bl, 10 337 jmp DisplayPrint_SignedWordFromAXWithBaseInBL 338 338 %endif 339 339 … … 341 341 u_FormatUnsignedDecimalWord: 342 342 mov ax, [bp] 343 mov b x, 10344 jmp DisplayPrint_WordFromAXWithBaseInB X343 mov bl, 10 344 jmp DisplayPrint_WordFromAXWithBaseInBL 345 345 346 346 ALIGN DISPLAY_JUMP_ALIGN 347 347 x_FormatHexadecimalWord: 348 348 mov ax, [bp] 349 mov b x, 16350 call DisplayPrint_WordFromAXWithBaseInB X349 mov bl, 16 350 call DisplayPrint_WordFromAXWithBaseInBL 351 351 mov al, 'h' 352 352 jmp DisplayPrint_CharacterFromAL … … 354 354 ALIGN DISPLAY_JUMP_ALIGN 355 355 I_FormatDashForZero: 356 mov ax, [bp] 357 test ax,ax 358 jnz u_FormatUnsignedDecimalWord 359 mov [bp], word g_szDashForZero 356 cmp WORD [bp], 0 357 jne SHORT u_FormatUnsignedDecimalWord 358 mov WORD [bp], g_szDashForZero 360 359 ;;; fall-through 361 360 … … 366 365 mov si, [bp] 367 366 368 cmp si, byte 07fh ;well within the boundaries of ROMVARS_size367 cmp si, BYTE 7Fh ; well within the boundaries of ROMVARS_size 369 368 jb .notFormatted 370 369 -
trunk/Assembly_Library/Src/Display/DisplayPrint.asm
r589 r590 83 83 84 84 ;-------------------------------------------------------------------- 85 ; DisplayPrint_SignedWordFromAXWithBaseInB X85 ; DisplayPrint_SignedWordFromAXWithBaseInBL 86 86 ; Parameters: 87 87 ; AX: Word to display 88 ; B X: Integer base (binary=2, octal=8, decimal=10, hexadecimal=16)89 ; DS: BDA segment (zero) 90 ; ES:DI: Ptr to cursor location in video RAM 91 ; Returns: 92 ; DI: Updated offset to video RAM 93 ; Corrupts registers: 94 ; AX, DX88 ; BL: Integer base (binary=2, octal=8, decimal=10, hexadecimal=16) 89 ; DS: BDA segment (zero) 90 ; ES:DI: Ptr to cursor location in video RAM 91 ; Returns: 92 ; DI: Updated offset to video RAM 93 ; Corrupts registers: 94 ; AX, BH, DX 95 95 ;-------------------------------------------------------------------- 96 96 %ifndef EXCLUDE_FROM_XTIDE_UNIVERSAL_BIOS 97 97 ALIGN DISPLAY_JUMP_ALIGN 98 DisplayPrint_SignedWordFromAXWithBaseInB X:99 test ax, ax100 jns SHORT DisplayPrint_WordFromAXWithBaseInB X98 DisplayPrint_SignedWordFromAXWithBaseInBL: 99 sahf 100 jns SHORT DisplayPrint_WordFromAXWithBaseInBL 101 101 102 102 push ax … … 105 105 pop ax 106 106 neg ax 107 ; Fall to DisplayPrint_WordFromAXWithBaseInB X108 %endif 109 110 111 ;-------------------------------------------------------------------- 112 ; DisplayPrint_WordFromAXWithBaseInB X107 ; Fall to DisplayPrint_WordFromAXWithBaseInBL 108 %endif 109 110 111 ;-------------------------------------------------------------------- 112 ; DisplayPrint_WordFromAXWithBaseInBL 113 113 ; Parameters: 114 114 ; AX: Word to display 115 ; B X: Integer base (binary=2, octal=8, decimal=10, hexadecimal=16)116 ; DS: BDA segment (zero) 117 ; ES:DI: Ptr to cursor location in video RAM 118 ; Returns: 119 ; DI: Updated offset to video RAM 120 ; Corrupts registers: 121 ; AX, DX115 ; BL: Integer base (binary=2, octal=8, decimal=10, hexadecimal=16) 116 ; DS: BDA segment (zero) 117 ; ES:DI: Ptr to cursor location in video RAM 118 ; Returns: 119 ; DI: Updated offset to video RAM 120 ; Corrupts registers: 121 ; AX, BH, DX 122 122 ;-------------------------------------------------------------------- 123 123 %ifndef MODULE_STRINGS_COMPRESSED 124 124 ALIGN DISPLAY_JUMP_ALIGN 125 DisplayPrint_WordFromAXWithBaseInB X:125 DisplayPrint_WordFromAXWithBaseInBL: 126 126 push cx 127 127 128 128 xor cx, cx 129 xor bh, bh ; Base now in BX 129 130 ALIGN DISPLAY_JUMP_ALIGN 130 131 .DivideLoop: -
trunk/Assembly_Library/Src/LibraryTests.asm
r526 r590 598 598 pop ds 599 599 mov si, .rgwItems 600 mov b x, 16600 mov bl, 16 601 601 .Loop: 602 602 lodsw 603 CALL_DISPLAY_LIBRARY PrintSignedWordFromAXWithBaseInB X603 CALL_DISPLAY_LIBRARY PrintSignedWordFromAXWithBaseInBL 604 604 CALL_DISPLAY_LIBRARY PrintNewlineCharacters 605 605 loop .Loop -
trunk/BIOS_Drive_Information_Tool/Src/Main.asm
r589 r590 28 28 %include "EBIOS.inc" ; From XTIDE Universal BIOS 29 29 %include "IdeRegisters.inc" ; From XTIDE Universal BIOS 30 %include "Rom vars.inc" ; From XTIDE Universal BIOS30 %include "RomVars.inc" ; From XTIDE Universal BIOS 31 31 %include "CustomDPT.inc" ; From XTIDE Universal BIOS 32 32 -
trunk/BIOS_Drive_Information_Tool/Src/Strings.asm
r526 r590 22 22 23 23 g_szProgramName: db "BIOS Drive Information Tool v1.0.2",CR,LF 24 db "(C) 2012-201 3by XTIDE Universal BIOS Team",CR,LF24 db "(C) 2012-2016 by XTIDE Universal BIOS Team",CR,LF 25 25 db "Released under GNU GPL v2",CR,LF 26 db "http:// code.google.com/p/xtideuniversalbios/",CR,LF,NULL26 db "http://xtideuniversalbios.org/",CR,LF,NULL 27 27 28 28 g_szPressAnyKey: db CR,LF,"Press any key to display next drive.",CR,LF,NULL -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/MenuitemPrint.asm
r589 r590 248 248 249 249 call Menuitem_GetValueToAXfromMenuitemInDSSI 250 mov b x, 10251 CALL_DISPLAY_LIBRARY PrintWordFromAX withBaseInBX250 mov bl, 10 251 CALL_DISPLAY_LIBRARY PrintWordFromAXWithBaseInBL 252 252 jmp SHORT MenuitemPrint_FinishPrintingUnsignedOrHexValue 253 253 … … 270 270 271 271 call Menuitem_GetValueToAXfromMenuitemInDSSI 272 mov b x, 16273 CALL_DISPLAY_LIBRARY PrintWordFromAX withBaseInBX272 mov bl, 16 273 CALL_DISPLAY_LIBRARY PrintWordFromAXWithBaseInBL 274 274 mov al, 'h' 275 275 CALL_DISPLAY_LIBRARY PrintCharacterFromAL -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm
r589 r590 92 92 g_szNfoMainFlash: db "Flash loaded BIOS image to EEPROM.",NULL 93 93 g_szNfoMainSave: db "Save BIOS changes back to original file from which it was loaded.",NULL 94 g_szNfoMainLicense: db "XTIDE Universal BIOS and XTIDECFG Copyright (C) 2009-2010 by Tomi Tilli, 2011-201 3by XTIDE Universal BIOS Team."94 g_szNfoMainLicense: db "XTIDE Universal BIOS and XTIDECFG Copyright (C) 2009-2010 by Tomi Tilli, 2011-2016 by XTIDE Universal BIOS Team." 95 95 db " Released under GNU GPL v2, with ABSOLUTELY NO WARRANTY. Press ENTER for more details...",NULL 96 g_szNfoMainHomePage: db "Visit http:// code.google.com/p/ xtideuniversalbios (home page) and http://vintage-computer.com/ vcforum (support)",NULL96 g_szNfoMainHomePage: db "Visit http://xtideuniversalbios.org (home page) and http://vcfed.org/forum (support)",NULL 97 97 98 98 g_szHelpMainLicense: db "XTIDE Universal BIOS and XTIDECFG Configuration program are Copyright 2009-2010 by Tomi Tilli," 99 db " 2011-201 3by XTIDE Universal BIOS Team. Released under GNU GPL v2. This software comes with ABSOLUTELY NO WARRANTY."99 db " 2011-2016 by XTIDE Universal BIOS Team. Released under GNU GPL v2. This software comes with ABSOLUTELY NO WARRANTY." 100 100 db " This is free software, and you are welcome to redistribute it under certain conditions." 101 101 db " See the LICENSE.TXT file that was included with this distribution," 102 db " visit http://www.gnu.org/licenses/ gpl-2.0.html, or visit http:// code.coogle.com/p/ xtideuniversalbios.",NULL102 db " visit http://www.gnu.org/licenses/ gpl-2.0.html, or visit http://xtideuniversalbios.org.",NULL 103 103 104 104 ; Strings for XTIDE Universal BIOS configuration menu
Note:
See TracChangeset
for help on using the changeset viewer.