File:  [OS/2 SDKs] / pmsdk / samples / newcard / asmsubs.asm
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:28:12 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: pmsdk-1988, HEAD
Microsoft OS/2 SDK PM 08-08-1988

        title   asmsubs.asm

;*********************************************************************/
;*                                                                   */
;*  Windows Cardfile                                                 */
;*  (c) Copyright Microsoft Corp. 1985,1986 - All Rights Reserved    */
;*                                                                   */
;*********************************************************************/
; assembler helper routines

.xlist
include cmacros.inc
.list

createSeg   _NRES1,NONRES1,byte,public,CODE

sBegin  DATA
sEnd    DATA

sBegin  NONRES1

assumes CS,NONRES1
assumes DS,DATA

cProc   RepMov,<PUBLIC,FAR>,<di,si>
        parmD   lpDest
        parmD   lpSrc
        parmW   cnt
cBegin
        push    ds
        cld
        mov     cx,cnt
        jcxz    rm_nochars
        les     di,lpDest
        lds     si,lpSrc
        repne   movsb
rm_nochars:
        pop     ds
cEnd

cProc   RepMovUp,<PUBLIC,FAR>,<di,si>
        parmD   lpDest
        parmD   lpSrc
        parmW   cnt
cBegin
        push    ds
        std
        mov     cx,cnt
        jcxz    rmu_nochars 
        les     di,lpDest
        lds     si,lpSrc
        add     si,cx
        add     di,cx
        dec     si
        dec     di
        repne   movsb
rmu_nochars:
        cld
        pop     ds
cEnd

sEnd    NONRES1

end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.