home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 October
/
VPR9710A.ISO
/
BENCH
/
DJ1SRC_K
/
105
/
DOUTILS.ASM
< prev
next >
Wrap
Assembly Source File
|
1997-05-01
|
2KB
|
86 lines
; This is file DOUTILS.ASM
;
; Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
;
; This file is distributed under the terms listed in the document
; "copying.dj", available from DJ Delorie at the address above.
; A copy of "copying.dj" should accompany this file; if not, a copy
; should be available from where this file was obtained. This file
; may not be distributed without a verbatim copy of "copying.dj".
;
; This file is distributed WITHOUT ANY WARRANTY; without even the implied
; warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
;
; 97/05/01 Kimio Itoh(kitoh@nn.iij4u.or.jp) modified
; for reduce binary size and for dead code elimination.
; 1.00 - 1.10 common version
; History:14,1
title du_utils
.386p
include build.inc
include segdefs.inc
include tss.inc
include gdt.inc
include idt.inc
;------------------------------------------------------------------------
start_data16
end_data16
;------------------------------------------------------------------------
start_code16
public __do_memset32
__do_memset32:
push cx
shr cx,2
jcxz nodset
db 67h ; so EDI is used
rep stosd
nodset:
pop cx
and cx,3
jcxz nobset
db 67h ; so EDI is used
rep stosb
nobset:
jmpt g_ctss
;------------------------------------------------------------------------
public __do_memmov32
__do_memmov32:
push cx
shr cx,2
jcxz nodmove
db 67h ; so ESI,EDI is used
rep movsd
nodmove:
pop cx
and cx,3
jcxz nobmove
db 67h ; so ESI,EDI is used
rep movsb
nobmove:
jmpt g_ctss
;------------------------------------------------------------------------
end_code16
;------------------------------------------------------------------------
start_code32
end_code32
;------------------------------------------------------------------------
end