Last change
on this file since 149 was 148, checked in by Tomi Tilli, 14 years ago |
Changes to XTIDE Universal BIOS:
- INT 13h optimizations to save almost 100 bytes.
|
File size:
1.3 KB
|
Rev | Line | |
---|
[88] | 1 | ; Project name : XTIDE Universal BIOS
|
---|
[3] | 2 | ; Description : RAMVARS struct containing BIOS variables stored in RAM.
|
---|
| 3 | %ifndef RAMVARS_INC
|
---|
| 4 | %define RAMVARS_INC
|
---|
| 5 |
|
---|
| 6 | ; Segment when RAMVARS is stored to top of interrupt vectors.
|
---|
| 7 | SEGMENT_RAMVARS_TOP_OF_INTERRUPT_VECTORS EQU 30h
|
---|
| 8 |
|
---|
| 9 |
|
---|
| 10 | ; Variables for translating drive numbers.
|
---|
| 11 | struc XLATEVARS
|
---|
| 12 | .bFDSwap resb 1 ; Floppy Drive to swap to 00h and vice versa
|
---|
| 13 | .bHDSwap resb 1 ; Hard Drive to swap to 80h and vice versa
|
---|
[148] | 14 | .bXlatedDrv resb 1 ; Drive number after translation
|
---|
[3] | 15 | resb 1 ; For WORD alignment
|
---|
| 16 | endstruc
|
---|
| 17 |
|
---|
| 18 | ; RAM Variables.
|
---|
| 19 | ; Variables should be kept to minimum since they might be located
|
---|
| 20 | ; at the top of interrupt vectors.
|
---|
| 21 | struc RAMVARS
|
---|
[148] | 22 | .fpOldI13h resb 4 ; Far pointer to old INT 13h handler
|
---|
| 23 | .wIdeBase resb 2 ; Base port address for currently handled controller
|
---|
[88] | 24 | .wTimeoutCounter resb 2
|
---|
[3] | 25 |
|
---|
| 26 | .wDrvCntAndFirst:
|
---|
[148] | 27 | .bDrvCnt resb 1 ; Number of drives handled by this BIOS
|
---|
| 28 | .bFirstDrv resb 1 ; Number of first drive for this BIOS
|
---|
[3] | 29 |
|
---|
| 30 | ; Variables for drive number translation
|
---|
| 31 | .xlateVars resb XLATEVARS_size
|
---|
| 32 | endstruc
|
---|
| 33 |
|
---|
| 34 | ; Full mode RAM variables.
|
---|
| 35 | struc FULLRAMVARS
|
---|
[148] | 36 | .ramVars resb RAMVARS_size
|
---|
| 37 | .wSign resb 2 ; FULLRAMVARS signature for finding segment
|
---|
[3] | 38 | endstruc
|
---|
| 39 |
|
---|
| 40 | W_SIGN_FULLRAMVARS EQU "fR" ; FULLRAMVARS signature
|
---|
| 41 |
|
---|
| 42 |
|
---|
| 43 | %endif ; RAMVARS_INC
|
---|
Note:
See
TracBrowser
for help on using the repository browser.