- Timestamp:
- Mar 30, 2013, 6:50:48 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Display/DisplayContext.asm
r526 r531 127 127 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 128 128 %assign i 0 129 %rep DISPLAY_CONTEXT_size / 2 130 push WORD [VIDEO_BDA.displayContext + i] 131 %assign i i+2 132 %endrep 129 %ifdef USE_386 130 %rep DISPLAY_CONTEXT_size / 4 131 push DWORD [VIDEO_BDA.displayContext + i] 132 %assign i i+4 133 %endrep 134 %else 135 %rep DISPLAY_CONTEXT_size / 2 136 push WORD [VIDEO_BDA.displayContext + i] 137 %assign i i+2 138 %endrep 139 %endif 133 140 %endif 134 141 … … 144 151 145 152 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 146 %assign i DISPLAY_CONTEXT_size-2 147 %rep DISPLAY_CONTEXT_size / 2 148 pop WORD [VIDEO_BDA.displayContext + i] 149 %assign i i-2 150 %endrep 153 %ifdef USE_386 154 %assign i DISPLAY_CONTEXT_size-4 155 %rep DISPLAY_CONTEXT_size / 4 156 pop DWORD [VIDEO_BDA.displayContext + i] 157 %assign i i-4 158 %endrep 159 %else 160 %assign i DISPLAY_CONTEXT_size-2 161 %rep DISPLAY_CONTEXT_size / 2 162 pop WORD [VIDEO_BDA.displayContext + i] 163 %assign i i-2 164 %endrep 165 %endif 151 166 %endif 152 167 -
trunk/XTIDE_Universal_BIOS/Src/Initialization/FloppyDrive.asm
r530 r531 64 64 65 65 %else ; if XT build 66 cmp WORD [es:BIOS_DISKETTE_INTERRUPT_40h*4+2], 0C000h ; Any ROM segment? (set CF if not)66 cmp BYTE [es:BIOS_DISKETTE_INTERRUPT_40h*4+3], 0C0h ; Any ROM segment? (set CF if not) 67 67 %endif ; USE_AT 68 68 cmc … … 134 134 js .UseBIOSorBDA ; We didn't add in any drives, counts here are not valid 135 135 136 adc al ,1 ; adds in the drive count bit, and adds 1 for count vs. 0-index,136 adc al, 1 ; adds in the drive count bit, and adds 1 for count vs. 0-index, 137 137 jmp .FinishCalc ; need to clear AH on the way out, and add in minimum drive numbers 138 138 … … 175 175 cwd ; Floppy Drive 00h 176 176 int BIOS_DISKETTE_INTERRUPT_40h 177 mov al, dl; Number of Floppy Drives to AL177 xchg dx, ax ; Number of Floppy Drives to AL 178 178 179 179 pop dx … … 187 187 LOAD_BDA_SEGMENT_TO es, ax 188 188 mov al, [es:BDA.wEquipment] ; Load Equipment WORD low byte 189 190 %ifdef USE_UNDOC_INTEL 191 and al, 0C1h 192 eAAM 64 193 %else 189 194 mov ah, al ; Copy it to AH 190 195 and ax, 0C001h ; Leave bits 15..14 and 0 191 196 eROL_IM ah, 2 ; EW low byte bits 7..6 to 1..0 197 %endif ; USE_UNDOC_INTEL 198 192 199 add al, ah ; AL = Floppy Drive count 193 %endif 200 %endif ; USE_AT 194 201 195 202 pop es -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
r526 r531 56 56 mov al, [cs:ROMVARS.bStealSize] 57 57 sub [BDA.wBaseMem], ax 58 mov ax, [BDA.wBaseMem] 58 mov ax, [BDA.wBaseMem] ; We can save a byte here by using INT 12h instead 59 59 eSHL_IM ax, 6 ; Segment to first stolen kB (*=40h) 60 60 ; Fall to .InitializeRamvars
Note:
See TracChangeset
for help on using the changeset viewer.