home *** CD-ROM | disk | FTP | other *** search
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; ;
- ; DOS32 - By Adam Seychell ;
- ; ;
- ; Variables "include" file (TASM ideal mode version) ;
- ; ;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- public start32
- extrn debug :near
- extrn GetIRQVector :near
- extrn SetIRQVector :near
- extrn GetIntVector :near
- extrn SetIntVector :near
- extrn AllocDMAregion :near
- extrn Allocate_Memory :near
- extrn Debug :near
- extrn Real_GS :dword
- extrn Real_FS :dword
- extrn Real_DS :dword
- extrn Real_ES :dword
- extrn Real_SS :dword
- extrn Real_SP :dword
- extrn CODE32_sel :word ; Selector
- extrn DATA32_sel :word ; Selector
- extrn Zero_sel :word ; Selector
- extrn PIC1_Base :byte ; IRQ 0..7
- extrn PIC2_Base :byte ; IRQ 0..7
- extrn Environment_segment :word ; real mode segment
- extrn Environment_addr :dword ; 32bit offset
- extrn PSP_segment :word ; real mode segment
- extrn PSP_addr :dword ; 32bit offset
- extrn _0b8000h :dword ; 32bit offset
- extrn _0a0000h :dword ; 32bit offset
- extrn CODE32_addr :dword ; 32bit offset
- extrn Zero_Addr :dword ; 32bit offset
-
- ; two macros used for calling DOS and BIOS Servises in real mode
- ;but from protected mode
- ;
- ;macro DosInt n
- ; int n
- ;endm
-