Changeset 602 in xtideuniversalbios
- Timestamp:
- May 9, 2019, 8:11:46 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Inc/Macros.inc
r596 r602 4 4 %ifndef MACROS_INC 5 5 %define MACROS_INC 6 7 8 ;-------------------------------------------------------------------- 9 ; Skips the immediately following 1 byte instruction by using it 10 ; as an immediate value to a dummy instruction. 11 ; Destroys the contents of %1. 12 ; 13 ; SKIP1B 14 ; Parameters: 15 ; %1: Any 8 bit general purpose register or F for flags. 16 ; Returns: 17 ; Nothing 18 ; Corrupts registers: 19 ; %1 20 ;-------------------------------------------------------------------- 21 %macro SKIP1B 1.nolist 22 %ifidni %1, f 23 db 03Ch ; Opcode byte for CMP AL, <immed> 24 ;db 0A8h ; Alt. version TEST AL, <immed> 25 %elifidni %1, al 26 db 0B0h ; Opcode byte for MOV AL, <immed> 27 %elifidni %1, ah 28 db 0B4h ; Opcode byte for MOV AH, <immed> 29 %elifidni %1, bl 30 db 0B3h ; Opcode byte for MOV BL, <immed> 31 %elifidni %1, bh 32 db 0B7h ; Opcode byte for MOV BH, <immed> 33 %elifidni %1, cl 34 db 0B1h ; Opcode byte for MOV CL, <immed> 35 %elifidni %1, ch 36 db 0B5h ; Opcode byte for MOV CH, <immed> 37 %elifidni %1, dl 38 db 0B2h ; Opcode byte for MOV DL, <immed> 39 %elifidni %1, dh 40 db 0B6h ; Opcode byte for MOV DH, <immed> 41 %else 42 %error "Invalid parameter passed to SKIP1B" 43 %endif 44 %endmacro 6 45 7 46 ;-------------------------------------------------------------------- -
trunk/Assembly_Library/Src/Keyboard/Keyboard.asm
r592 r602 44 44 push cx 45 45 46 mov c x, BUFFER_SIZE_FOR_WORD_INPUT47 call Memory_ReserveC XbytesFromStackToDSSI46 mov cl, BUFFER_SIZE_FOR_WORD_INPUT 47 call Memory_ReserveCLbytesFromStackToDSSI 48 48 49 49 call Char_GetFilterFunctionToDXforNumericBaseInBX -
trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm
r601 r602 612 612 jz SHORT ReturnWithoutHandlingKeystroke 613 613 614 mov c x, STRING_DIALOG_IO_size615 call Memory_ReserveC XbytesFromStackToDSSI614 mov cl, STRING_DIALOG_IO_size 615 call Memory_ReserveCLbytesFromStackToDSSI 616 616 617 617 ;;; InitializeStringDialogIoInDSSIforInputtingFileName … … 682 682 683 683 call DisplayLoadingMessageInInformationArea 684 mov c x, DRIVE_DIALOG_IO_size685 call Memory_ReserveC XbytesFromStackToDSSI684 mov cl, DRIVE_DIALOG_IO_size 685 call Memory_ReserveCLbytesFromStackToDSSI 686 686 call .DisplayDriveSelectionDialogWithIoInDSSI 687 687 call .ChangeDriveToUserSelectionFromIoInDSSI … … 741 741 push ss 742 742 pop ds 743 ePUSH_T ax, CURRENTDIR_CHARACTERS 743 ePUSH_T ax, CURRENTDIR_CHARACTERS ; The high byte is zero 744 744 mov cx, FLG_FILEATTR_DIRECTORY 745 745 mov dx, sp -
trunk/Assembly_Library/Src/Util/Memory.asm
r592 r602 122 122 123 123 ;-------------------------------------------------------------------- 124 ; Memory_ReserveCLbytesFromStackToDSSI 124 125 ; Memory_ReserveCXbytesFromStackToDSSI 125 126 ; Parameters 126 ; C X:Number of bytes to reserve127 ; CL/CX: Number of bytes to reserve 127 128 ; Returns: 128 129 ; DS:SI: Ptr to reserved buffer … … 132 133 %ifndef EXCLUDE_FROM_XUB 133 134 ALIGN JUMP_ALIGN 135 Memory_ReserveCLbytesFromStackToDSSI: 136 xor ch, ch 134 137 Memory_ReserveCXbytesFromStackToDSSI: 135 138 pop ax -
trunk/Assembly_Library/Src/Util/Sort.asm
r592 r602 32 32 ; ES:DI: Ptr to second item to compare 33 33 ; Returns: 34 ; FLAGS: Signed compari tion between first and second item34 ; FLAGS: Signed comparison between first and second item 35 35 ; Corrupts registers: 36 36 ; Nothing … … 56 56 Sort_ItemsFromDSSIwithCountInDXsizeInCXandComparatorInBX: 57 57 push es 58 push di 59 mov di, cx 60 eSHL_IM cx, 1 ; Reserve temp and pivot items 61 add cx, BYTE QSORT_PARAMS_size 62 eENTER_STRUCT cx 63 push cx 58 mov ax, cx 59 eSHL_IM ax, 1 ; Reserve temp and pivot items 60 add ax, BYTE QSORT_PARAMS_size 61 eENTER_STRUCT ax 62 push ax 64 63 65 64 %ifdef CLD_NEEDED 66 65 cld 67 66 %endif 68 mov cx, di ; Restore item size to CX69 67 xor ax, ax ; Zero starting index 70 68 dec dx ; Count to index of last item … … 76 74 pop ax 77 75 eLEAVE_STRUCT ax 78 pop di79 76 pop es 80 77 ret -
trunk/Serial_Server/library/Image.cpp
r592 r602 30 30 struct floppyInfo floppyInfos[] = 31 31 { 32 // { 0, 2969600 / 512, 6, 80, 2, 36 }, // 2.88MB 3.5" (alternate spelling with 2.9) 32 33 { 1, 2949120 / 512, 6, 80, 2, 36 }, // 2.88MB 3.5" 33 { 0, 2867200 / 512, 6, 80, 2, 36 }, // 2.88MB 3.5" (alternate spelling with 2.8)34 { 0, 2969600 / 512, 6, 80, 2, 36 }, // 2.88MB 3.5" (alternate spelling with 2.9)34 // { 0, 2867200 / 512, 6, 80, 2, 36 }, // 2.88MB 3.5" (alternate spelling with 2.8) 35 { 1, 1720320 / 512, 4, 80, 2, 21 }, // 1.44MB 3.5" Microsoft DMF (Distribution Media Format) 35 36 { 1, 1474560 / 512, 4, 80, 2, 18 }, // 1.44MB 3.5" 36 { 0, 1433600 / 512, 4, 80, 2, 18 }, // 1.44MB 3.5" (alternate spelling with 1.4)37 // { 0, 1433600 / 512, 4, 80, 2, 18 }, // 1.44MB 3.5" (alternate spelling with 1.4) 37 38 { 1, 1228800 / 512, 2, 80, 2, 15 }, // 1.2MB 5.25" 38 { 1, 737280 / 512, 3, 80, 1, 18}, // 720KB 3.5"39 { 1, 737280 / 512, 3, 80, 2, 9 }, // 720KB 3.5" 39 40 { 1, 368640 / 512, 1, 40, 2, 9 }, // 360KB 5.25" 40 41 { 1, 327680 / 512, 0, 40, 2, 8 }, // 320KB 5.25" -
trunk/Serial_Server/win32/Win32.cpp
r592 r602 37 37 char *bannerStrings[] = { 38 38 "SerDrive - XTIDE Universal BIOS Serial Drive Server", 39 "Copyright (C) 2012-201 8by XTIDE Universal BIOS Team",39 "Copyright (C) 2012-2019 by XTIDE Universal BIOS Team", 40 40 "Released under GNU GPL v2, with ABSOLUTELY NO WARRANTY", 41 41 ROM_VERSION_STRING, … … 91 91 "Floppy images may also be used. Image size must be exactly the same size", 92 92 "as a 2.88MB, 1.44MB, 1.2MB, 720KB, 360KB, 320KB, 180KB, or 160KB disk.", 93 "Microsoft DMF (Distribution Media Format) images are also supported.", 93 94 "Floppy images must be the last disks discovered by the BIOS, and only", 94 95 "two floppy drives are supported by the BIOS at a time.", -
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm
r601 r602 253 253 254 254 %elifdef USE_186 255 %ifdef USE_NEC_V 256 mov dx, es 257 xor ax, ax 258 eROL4 dl 259 eROL4 dh 260 add si, dx 261 adc al, ah 262 mov es, ax 263 264 %else 255 265 mov ax, es 256 266 rol ax, 4 … … 262 272 mov es, ax 263 273 274 %endif 264 275 %else ; 808x 265 276 mov al, 4 -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Dialogs.asm
r592 r602 21 21 SECTION .text 22 22 23 24 ;-------------------------------------------------------------------- 25 ; Dialogs_DisplayNotificationFromCSDX 26 ; Dialogs_DisplayErrorFromCSDX 27 ; Parameters: 28 ; CS:DX: Ptr to notification/error string to display 29 ; SS:BP: Menu handle 30 ; Returns: 31 ; Nothing 32 ; Corrupts registers: 33 ; AX 34 ;-------------------------------------------------------------------- 35 ALIGN JUMP_ALIGN 36 Dialogs_DisplayNotificationFromCSDX: 37 push di 38 mov di, g_szNotificationDialog 39 jmp SHORT DisplayMessageDialogWithMessageInCSDXandDialogInputInDSSI 40 41 ALIGN JUMP_ALIGN 42 Dialogs_DisplayErrorFromCSDX: 43 push di 44 mov di, g_szErrorDialog 45 SKIP1B al 46 ; Fall to DisplayMessageDialogWithMessageInCSDXandDialogInputInDSSI 47 23 48 ;-------------------------------------------------------------------- 24 49 ; Dialogs_DisplayHelpFromCSDXwithTitleInCSDI … … 32 57 ; AX 33 58 ;-------------------------------------------------------------------- 34 ALIGN JUMP_ALIGN35 59 Dialogs_DisplayHelpFromCSDXwithTitleInCSDI: 60 push di 61 62 DisplayMessageDialogWithMessageInCSDXandDialogInputInDSSI: 36 63 push ds 37 64 push si 38 push di39 65 push cx 40 66 41 mov cx, DIALOG_INPUT_size 42 call Memory_ReserveCXbytesFromStackToDSSI 67 mov cl, DIALOG_INPUT_size 68 call Memory_ReserveCLbytesFromStackToDSSI 69 call InitializeDialogInputFromDSSI 43 70 mov [si+DIALOG_INPUT.fszTitle], di 44 jmp SHORT DisplayMessageDialogWithMessageInCSDXandDialogInputInDSSI45 46 ;--------------------------------------------------------------------47 ; Dialogs_DisplayNotificationFromCSDX48 ; Dialogs_DisplayErrorFromCSDX49 ; Parameters:50 ; CS:DX: Ptr to notification string to display51 ; SS:BP: Menu handle52 ; Returns:53 ; Nothing54 ; Corrupts registers:55 ; AX56 ;--------------------------------------------------------------------57 ALIGN JUMP_ALIGN58 Dialogs_DisplayNotificationFromCSDX:59 push ds60 push si61 push di62 push cx63 64 mov cx, DIALOG_INPUT_size65 call Memory_ReserveCXbytesFromStackToDSSI66 mov WORD [si+DIALOG_INPUT.fszTitle], g_szNotificationDialog67 jmp SHORT DisplayMessageDialogWithMessageInCSDXandDialogInputInDSSI68 69 ALIGN JUMP_ALIGN70 Dialogs_DisplayErrorFromCSDX:71 push ds72 push si73 push di74 push cx75 76 mov cx, DIALOG_INPUT_size77 call Memory_ReserveCXbytesFromStackToDSSI78 mov WORD [si+DIALOG_INPUT.fszTitle], g_szErrorDialog79 ALIGN JUMP_ALIGN80 DisplayMessageDialogWithMessageInCSDXandDialogInputInDSSI:81 call InitializeDialogInputFromDSSI82 71 mov [si+DIALOG_INPUT.fszItems], dx 83 72 CALL_MENU_LIBRARY DisplayMessageWithInputInDSSI … … 85 74 add sp, BYTE DIALOG_INPUT_size 86 75 pop cx 87 pop di88 76 pop si 89 77 pop ds 78 79 pop di 90 80 ret 91 81 … … 135 125 push ds 136 126 137 mov c x, DIALOG_INPUT_size138 call Memory_ReserveC XbytesFromStackToDSSI127 mov cl, DIALOG_INPUT_size 128 call Memory_ReserveCLbytesFromStackToDSSI 139 129 call InitializeDialogInputFromDSSI 140 130 mov [si+DIALOG_INPUT.fszTitle], bx -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menuitem.asm
r592 r602 50 50 call Registers_CopyDSSItoESDI 51 51 52 mov c x, DIALOG_INPUT_size53 call Memory_ReserveC XbytesFromStackToDSSI52 mov cl, DIALOG_INPUT_size 53 call Memory_ReserveCLbytesFromStackToDSSI 54 54 call InitializeDialogInputInDSSIfromMenuitemInESDI 55 55 mov ax, [es:di+MENUITEM.itemValue+ITEM_VALUE.szMultichoice] … … 87 87 88 88 call Registers_CopyDSSItoESDI 89 mov c x, WORD_DIALOG_IO_size90 call Memory_ReserveC XbytesFromStackToDSSI89 mov cl, WORD_DIALOG_IO_size 90 call Memory_ReserveCLbytesFromStackToDSSI 91 91 call InitializeDialogInputInDSSIfromMenuitemInESDI 92 92 mov [si+WORD_DIALOG_IO.bNumericBase], bl -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/FlashMenu.asm
r593 r602 221 221 222 222 call .PrepareBuffersForFlashing 223 mov c x, FLASHVARS_size + PROGRESS_DIALOG_IO_size224 call Memory_ReserveC XbytesFromStackToDSSI223 mov cl, FLASHVARS_size + PROGRESS_DIALOG_IO_size 224 call Memory_ReserveCLbytesFromStackToDSSI 225 225 call .InitializeFlashvarsFromDSSI 226 226 mov bx, si ; DS:BX now points to FLASHVARS -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/MainMenu.asm
r596 r602 249 249 LoadBiosFromFile: 250 250 call Buffers_SaveChangesIfFileLoaded 251 mov c x, FILE_DIALOG_IO_size252 call Memory_ReserveC XbytesFromStackToDSSI251 mov cl, FILE_DIALOG_IO_size 252 call Memory_ReserveCLbytesFromStackToDSSI 253 253 call Dialogs_DisplayFileDialogWithDialogIoInDSSI 254 254 cmp BYTE [si+FILE_DIALOG_IO.bUserCancellation], TRUE -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm
r601 r602 293 293 g_szValueCfgDevice8b: db "8-bit",NULL 294 294 g_szValueCfgDeviceRev1: db "XTIDE r1",NULL 295 g_szValueCfgDeviceRev2: db "XTIDE r2",NULL295 g_szValueCfgDeviceRev2: 296 296 g_szValueCfgDeviceRev2Olivetti: db "XTIDE r2",NULL 297 297 g_szValueCfgDeviceXTCFPio8: db "XTCF PIO",NULL
Note:
See TracChangeset
for help on using the changeset viewer.