delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/09/14/22:04:38

Date: Mon, 15 Sep 1997 13:58:35 +1100
From: Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz>
Subject: stub patch for transfer buffer driver
To: djgpp-workers AT delorie DOT com
Message-id: <199709150203.OAA17317@teleng1.tait.co.nz gatekeeper.tait.co.nz>
Organization: Tait Electronics Limited
MIME-version: 1.0
Comments: Authenticated sender is <billc AT blackmagic DOT tait DOT co DOT nz>

--Message-Boundary-11069
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

Here are the patches to stub.asm for the djgpp.sys transfer buffer 
driver.
Bill
--
Leave others their otherness.


--Message-Boundary-11069
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Text from file 'stub.drv.patch'

*** stub.asm~	Mon Sep 15 13:53:00 1997
--- stub.asm	Mon Sep 15 10:12:44 1997
***************
*** 122,127 ****
--- 122,140 ----
  dos3ok:
  	mov	[dos_major], al
  	mov	si, stubinfo_minkeep
+ 	mov	cx, 0xff04		; 0xff is for below. 4 byte read (and shift below)
+ 	mov	ax, 0x3d00		; open file, compat mode, read
+ 	mov	dx, djgpp_tb
+ 	int	0x21
+ 	jc	resize_again		; no device driver
+ 	mov	bx, ax
+ 	mov	dx, si
+ 	mov	ax, 0x4402		; ioctl read
+ 	int	0x21
+ ;	mov	ah, 0x3e		; close handle. Set by the driver.
+ 	int	0x21
+ 	mov	bx, end_of_memory	; still need to resize
+ 	jmp	have_tb
  
  ;-----------------------------------------------------------------------------
  ;  Resize memory in case we need to exec a DPMI server
***************
*** 139,146 ****
  	mov	bx, ax
  @f1:
  	mov	[si], bx		; si=&stubinfo_minkeep store for reference
  	inc	bh			; add 256 bytes for PSP
! 	mov	cx, 0xff04		; 0xff is for below
  	shr	bx, cl			; bytes to paragraphs
  
  	mov	ah, 0x4a		; ES = PSP segment from above
--- 152,160 ----
  	mov	bx, ax
  @f1:
  	mov	[si], bx		; si=&stubinfo_minkeep store for reference
+ have_tb:
  	inc	bh			; add 256 bytes for PSP
! ;	mov	cx, 0xff04		; 0xff is for below: set above
  	shr	bx, cl			; bytes to paragraphs
  
  	mov	ah, 0x4a		; ES = PSP segment from above
***************
*** 821,826 ****
--- 835,842 ----
  	.db	"no DPMI selectors$"
  msg_no_dpmi_memory:
  	.db	"no DPMI memory$"
+ djgpp_tb:
+ 	.db	"djgpp tb\0"		; dos allows spaces!
  
  ;-----------------------------------------------------------------------------
  ;  Unstored Data, available during and after mode switch

--Message-Boundary-11069--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019