; SRDISK - EMS memory device driver specific code
; Copyright (C) 1992-1996, 2005 Marko Kohtala
; Released under GNU GPL, read the file 'COPYING' for more information

; EMS 4.0

%define MEMSTR 'EMS '      ; Define 4 char memory type string
MAX_SIZE equ 7FFFh      ; Maximum possible size
ALLOCBLOCK equ 16       ; Memory allocation block size

;=== Push trace listing source: ems.mac
%include "ems.mac" ; NASM included file
;=== Pop trace listing source
METHOD equ 2


EMS_block       struc
EMS_sizel       dw ?
EMS_sizeh       dw ?
EMS_stype       db ?
EMS_shandle     dw ?
EMS_soff        dw ?
EMS_spage       dw ?
EMS_dtype       db ?
EMS_dhandle     dw ?
EMS_doff        dw ?
EMS_dpage       dw ?
EMS_block       ends

EMS_alloc_s struc       ; Changing this structure needs changes in srdisk.exe
EMS_handle      dw ? ; -1           ; EMS handle to disk memory (-1=no handle)
EMS_frame       dw ?            ; EMS page frame segment
EMS_cblk: ; NASM structure instance
EMS_block_size equ EMS_block_struc_size	; NASM port equate
istruc EMS_block
	resb EMS_block_size
iend
EMS_alloc_s ends
