Changeset 145 in xtideuniversalbios
- Timestamp:
- Mar 15, 2011, 11:28:17 AM (14 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Keyboard/Keyboard.asm
r133 r145 159 159 je SHORT .Backspace 160 160 jcxz .RejectCharacter 161 test al, al ; Clear ZF and CF161 clc ; Clear CF (ZF is already cleared) 162 162 ret 163 163 -
trunk/Assembly_Library/Src/String/Char.asm
r41 r145 116 116 cmp al, '9' ; Decimal digit 117 117 jbe SHORT .ConvertToDecimalDigit 118 sub al, 'a'-10 ; Convert to hexadecimal integer 119 stc 120 ret 118 sub al, 'a'-'0'-10 ; Convert to hexadecimal integer 121 119 ALIGN JUMP_ALIGN 122 120 .ConvertToDecimalDigit: -
trunk/Assembly_Library/makefile
r85 r145 50 50 # Assembler preprocessor defines. # 51 51 ################################################################# 52 DEFINES = 52 DEFINES = 53 53 DEFINES_XT = ELIMINATE_CGA_SNOW 54 54 DEFINES_XTPLUS = USE_186 ELIMINATE_CGA_SNOW … … 69 69 IHEADERS = $(HEADERS:%=-I%) 70 70 71 # Path + target file to be buil d71 # Path + target file to be built 72 72 TARGET = $(BUILD_DIR)/$(PROG) 73 73 … … 107 107 # Make clean debug and release versions 108 108 all: clean at xtplus xt 109 @echo All build!109 @echo All done! 110 110 111 111 at: 112 112 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_AT) -l"$(TARGET)_at.lst" -o"$(TARGET)_at.$(EXTENSION)" 113 @echo AT version "$(TARGET)_at.$(EXTENSION)" buil d.113 @echo AT version "$(TARGET)_at.$(EXTENSION)" built. 114 114 115 115 xtplus: 116 116 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_XTPLUS) -l"$(TARGET)_xtp.lst" -o"$(TARGET)_xtp.$(EXTENSION)" 117 @echo XT plus version "$(TARGET)_xtp.$(EXTENSION)" buil d.117 @echo XT plus version "$(TARGET)_xtp.$(EXTENSION)" built. 118 118 119 119 xt: 120 120 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_XT) -l"$(TARGET)_xt.lst" -o"$(TARGET)_xt.$(EXTENSION)" 121 @echo XT version "$(TARGET)_xt.$(EXTENSION)" buil d.121 @echo XT version "$(TARGET)_xt.$(EXTENSION)" built. 122 122 123 123 clean: -
trunk/Configurator/Src/BiosFile.asm
r2 r145 1 ; File name : EEPROM.asm2 1 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 20.4.20104 ; Last update : 21.4.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for loading and saving BIOS image file. 7 3 … … 154 150 ; Cleared if supported size 155 151 ; Corrupts registers: 156 ; DX152 ; Nothing 157 153 ;-------------------------------------------------------------------- 158 154 ALIGN JUMP_ALIGN 159 155 BiosFile_GetFileSizeToCX: 160 mov cx, [si+DTA.dwFileSize ]161 mov dx, [si+DTA.dwFileSize+2]162 test dx, dx ; More than 65535 bytes?156 mov cx, [si+DTA.dwFileSize+2] ; High word of file size to CX 157 test cx, cx ; File larger than 65535 bytes? (clears CF) 158 mov cx, [si+DTA.dwFileSize] ; Low word of file size to CX 163 159 jnz SHORT .TooLargeFile 164 160 cmp cx, MAX_EEPROM_SIZE ; Too large? 165 161 ja SHORT .TooLargeFile 166 clc167 ret168 .TooLargeFile:169 162 stc 163 .TooLargeFile: ; CF is always cleared when jumping to here 164 cmc ; So we invert it 170 165 ret 171 166 -
trunk/Configurator/Src/MenuPageItem.asm
r2 r145 1 ; File name : MenuPageItem.asm2 1 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 15.4.20104 ; Last update : 1.5.20105 ; Author : Tomi Tilli6 2 ; Description : Functions to access MENUPAGEITEM structs. 7 3 … … 363 359 MainPageItem_ActivateSubmenuForGettingLookupValueWithoutMarkingUnsaved: 364 360 call MainPageItem_ActivateSubmenu 365 cmp cx, BYTE 0366 j lSHORT .Return ; User cancellation361 test cx, cx ; Clears CF 362 js SHORT .Return ; User cancellation 367 363 push si 368 364 mov si, [di+MENUPAGEITEM.pSubMenuPage] ; DS:SI points to value MENUPAGE … … 374 370 pop si 375 371 stc ; Changes so redraw 376 ret377 372 .Return: 378 clc379 373 ret 380 374 -
trunk/Configurator/Src/Menupages/FlashMenu.asm
r2 r145 1 ; File name : FlashMenu.asm2 1 ; Project name : XTIDE Univeral BIOS Configurator 3 ; Created date : 29.4.20104 ; Last update : 2.5.20105 ; Author : Tomi Tilli6 2 ; Description : Flash menu. 7 3 … … 143 139 mov [g_cfgVars+CFGVARS.bPageSize], al 144 140 stc 145 ret146 141 .Cancel: 147 clc148 142 ret 149 143 … … 306 300 ; Corrupts registers: 307 301 ; AX, BX, CX, DX 308 ;-------------------------------------------------------------------- 302 ;-------------------------------------------------------------------- 309 303 ALIGN JUMP_ALIGN 310 304 FlashMenu_FlashAllPagesBeforeUpdate: -
trunk/Configurator/makefile
r81 r145 59 59 IHEADERS += -I. 60 60 61 # Path + target file to be buil d61 # Path + target file to be built 62 62 TARGET = $(BUILD_DIR)\$(PROG).com 63 63 … … 93 93 ############################################ 94 94 95 .PHONY: all clean build 95 .PHONY: all clean build release 96 96 97 97 # Make clean debug and release versions … … 99 99 @$(MAKE) clean 100 100 @$(MAKE) build 101 @echo All build!101 @echo All done! 102 102 103 103 # Clean … … 109 109 build: 110 110 @$(AS) "$(SRC_ASM)" $(ASFLAGS) -l"$(BUILD_DIR)\$(PROG).lst" -o"$(TARGET)" 111 @echo "$(TARGET)" build. 111 @echo "$(TARGET)" built. 112 113 release: build 114 @echo Compressing with UPX... 115 @upx -qq --8086 --ultra-brute $(TARGET) 116 @echo Done! $(TARGET) is ready for release. -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
r128 r145 158 158 cmp dl, al ; Above last supported? 159 159 jae SHORT .DriveNotHandledByThisBIOS 160 cmp dl, ah ; Below first supported? 161 jb SHORT .DriveNotHandledByThisBIOS 162 xchg ax, di 160 cmp ah, dl ; Below first supported? 161 ja SHORT .DriveNotHandledByThisBIOS 163 162 stc 164 ret165 163 ALIGN JUMP_ALIGN 166 164 .DriveNotHandledByThisBIOS: 167 165 xchg ax, di 168 clc169 166 ret 170 167 -
trunk/XTIDE_Universal_BIOS/makefile
r132 r145 80 80 IHEADERS = $(HEADERS:%=-I%) 81 81 82 # Path + target file to be buil d82 # Path + target file to be built 83 83 TARGET = $(BUILD_DIR)/$(PROG) 84 84 … … 118 118 # Make clean debug and release versions 119 119 all: clean at xtplus xt 120 @echo All build!120 @echo All done! 121 121 122 122 at: 123 123 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_AT) -l"$(TARGET)_at.lst" -o"$(TARGET)_at.bin" 124 @echo AT version "$(TARGET)_at.bin" buil d.124 @echo AT version "$(TARGET)_at.bin" built. 125 125 126 126 xtplus: 127 127 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_XTPLUS) -l"$(TARGET)_xtp.lst" -o"$(TARGET)_xtp.bin" 128 @echo XT plus version "$(TARGET)_xtp.bin" buil d.128 @echo XT plus version "$(TARGET)_xtp.bin" built. 129 129 130 130 xt: 131 131 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_XT) -l"$(TARGET)_xt.lst" -o"$(TARGET)_xt.bin" 132 @echo XT version "$(TARGET)_xt.bin" buil d.132 @echo XT version "$(TARGET)_xt.bin" built. 133 133 134 134 clean: -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Buffers.asm
r144 r145 68 68 69 69 ;-------------------------------------------------------------------- 70 ; Buffers_NewBiosWithSizeIn CXandSourceInAXhasBeenLoadedForConfiguration70 ; Buffers_NewBiosWithSizeInDXCXandSourceInAXhasBeenLoadedForConfiguration 71 71 ; Parameters: 72 72 ; AX: EEPROM source (FLG_CFGVARS_FILELOADED or FLG_CFGVARS_ROMLOADED) -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/EEPROM.asm
r138 r145 49 49 inc bx 50 50 loop .CheckNextEepromSize 51 clc ; None of the supported EEPROMs are large enough 52 ret 51 ret ; Return with CF cleared (none of the supported EEPROMs are large enough) 53 52 ALIGN JUMP_ALIGN 54 53 .ReturnEepromSizeInCX: -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/FlashMenu.asm
r123 r145 218 218 call Dialogs_DisplayErrorFromCSDX 219 219 stc 220 ret 221 ALIGN JUMP_ALIGN 220 ALIGN JUMP_ALIGN, ret 222 221 .ImageFitsInSelectedEeprom: 223 clc224 222 ret 225 223 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/makefile
r82 r145 58 58 # Assembler preprocessor defines. # 59 59 ################################################################# 60 DEFINES = 60 DEFINES = 61 61 DEFINES_XT = ELIMINATE_CGA_SNOW 62 62 DEFINES_XTPLUS = USE_186 ELIMINATE_CGA_SNOW … … 77 77 IHEADERS = $(HEADERS:%=-I%) 78 78 79 # Path + target file to be buil d79 # Path + target file to be built 80 80 TARGET = $(BUILD_DIR)/$(PROG) 81 81 … … 111 111 ############################################ 112 112 113 .PHONY: all at xtplus xt clean 113 .PHONY: all at xtplus xt clean release 114 114 115 115 # Make clean debug and release versions 116 116 all: clean xt 117 @echo All build!117 @echo All done! 118 118 119 119 at: 120 120 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_AT) -l"$(TARGET)_at.lst" -o"$(TARGET)_at.$(EXTENSION)" 121 @echo AT version "$(TARGET)_at.$(EXTENSION)" buil d.121 @echo AT version "$(TARGET)_at.$(EXTENSION)" built. 122 122 123 123 xtplus: 124 124 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_XTPLUS) -l"$(TARGET)_xtp.lst" -o"$(TARGET)_xtp.$(EXTENSION)" 125 @echo XT plus version "$(TARGET)_xtp.$(EXTENSION)" buil d.125 @echo XT plus version "$(TARGET)_xtp.$(EXTENSION)" built. 126 126 127 127 xt: 128 128 @$(AS) "$(SRC_ASM)" $(ASFLAGS) $(DEFS_XT) -l"$(TARGET)_xt.lst" -o"$(TARGET).$(EXTENSION)" 129 @echo XT version "$(TARGET).$(EXTENSION)" buil d.129 @echo XT version "$(TARGET).$(EXTENSION)" built. 130 130 131 131 clean: 132 132 @$(RM) $(BUILD_DIR)\*.* 133 133 @echo Deleted "(*.*)" from "$(BUILD_DIR)/" 134 135 release: xt 136 @echo Compressing with UPX... 137 @upx -qq --8086 --ultra-brute $(TARGET).$(EXTENSION) 138 @echo Done! XT version is ready for release.
Note:
See TracChangeset
for help on using the changeset viewer.