mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-26 09:54:20 +00:00
Upload
Digital Research
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
;*****************************************************
|
||||
;*
|
||||
;* MEM Common Functions
|
||||
;*
|
||||
;*****************************************************
|
||||
|
||||
|
||||
getmd: ; get MD from MDUL
|
||||
;----- ------------------
|
||||
; output: BX = MD address
|
||||
; 0 if none found
|
||||
|
||||
; CX = Error Code
|
||||
|
||||
pushf ! cli
|
||||
mov cx,e_no_umd ! mov bx,mdul
|
||||
cmp bx,0 ! je gmd_ret
|
||||
xor cx,cx
|
||||
mov si,m_link[bx] ! mov mdul,si
|
||||
mov m_link[bx],cx ! mov m_start[bx],cx
|
||||
mov m_length[bx],cx ! mov m_plist[bx],cx
|
||||
gmd_ret:popf ! ret
|
||||
|
||||
|
||||
freemd: ; put MD on MDUL
|
||||
;------ ----------------
|
||||
; input: BX = MD address
|
||||
|
||||
pushf ! cli
|
||||
mov si,mdul ! mov mdul,bx
|
||||
mov m_link[bx],si ! popf ! ret
|
||||
Reference in New Issue
Block a user