Changeset 595 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm
- Timestamp:
- Jul 7, 2018, 9:53:24 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm
r593 r595 200 200 %endif 201 201 clc 202 ;; fall through to Int19 _JumpToBootSectorOrRomBoot203 204 ;-------------------------------------------------------------------- 205 ; Int19 _JumpToBootSectorOrRomBoot202 ;; fall through to Int19h_JumpToBootSectorOrRomBoot 203 204 ;-------------------------------------------------------------------- 205 ; Int19h_JumpToBootSectorOrRomBoot 206 206 ; 207 207 ; Switches back to the POST stack, clears the DS and ES registers, … … 213 213 ; CF: Set for Boot Sector Boot 214 214 ; Clear for ROM Boot 215 ; ES:BX: (if CF set) Ptr to boot sector 215 ; ES:BX: (if CF set) Ptr to boot sector (ES = zero) 216 216 ; 217 217 ; Returns: 218 218 ; Never returns 219 219 ;-------------------------------------------------------------------- 220 Int19 _JumpToBootSectorOrRomBoot:221 mov cx, es ; Preserve MBR segment (can't push because of stack change)222 mov ax, 0; NOTE: can't use XOR (LOAD_BDA_SEGMENT_TO) as it impacts CF220 Int19h_JumpToBootSectorOrRomBoot: 221 mov ax, es ; Preserve MBR segment (can't push because of stack change) 222 ; NOTE: can't use XOR (LOAD_BDA_SEGMENT_TO) as it impacts CF 223 223 SWITCH_BACK_TO_POST_STACK 224 224 225 225 ; clear segment registers before boot sector or rom call 226 226 mov ds, ax 227 mov es, ax228 227 %ifdef USE_386 229 228 mov fs, ax … … 233 232 234 233 ; jump to boot sector 235 push cx ; sgment address for MBR234 push ax ; sgment address for MBR 236 235 push bx ; offset address for MBR 237 236 retf ; NOTE: DL is set to the drive number
Note:
See TracChangeset
for help on using the changeset viewer.