home *** CD-ROM | disk | FTP | other *** search
- REM -------------------------------------------------------
- REM MEMCOPY.INC
- REM Kopieren beliebiger Speicherbereiche
- REM -------------------------------------------------------
- REM (c) 1988 by HEIMSOETH Software / Technical Support
- REM veröffentlicht in TOOLBOX 2/89
- REM -------------------------------------------------------
- REM Compiler: Turbo Basic V1.01e
- REM -------------------------------------------------------
-
- SUB MoveASM INLINE
- $INLINE &H55 'PUSH BP
- $INLINE &H89, $HE5 'MOV BP, SP
- $INLINE &H1E 'PUSH DS
- $INLINE &H06 'PUSH ES
- $INLINE &H8E, &H5E, &H06 'MOV DS,[BP+06]
- $INLINE &HA1, &H00, &H00 'MOV AX,[0000]
- $INLINE &H8B, &H36, &H02, &H00 'MOV SI,[0002]
- $INLINE &H8E, &H06, &H04, &H00 'MOV ES,[0004]
- $INLINE &H8B, &H3E, &H06, &H00 'MOV DI,[0006]
- $INLINE &H8B, &H0E, &H08, &H00 'MOV CX,[0008]
- $INLINE &H8E, &HD8 'MOV DS, AX
- $INLINE &HFC 'CLD
- $INLINE &HF3 'REPZ
- $INLINE &HA4 'MOVSB
- $INLINE &H07 'POP ES
- $INLINE &H1F 'POP DS
- $INLINE &H5D 'POP BP
- END SUB
-
- SUB Move(Quellsegment%, Quelloffset%, Zielsegment%,_
- Zieloffset%, Laenge%)
- LOCAL RegPack%()
- RegPack%(0) = Quellsegment%
- RegPack%(1) = Quelloffset%
- RegPack%(2) = Zielsegment%
- RegPack%(3) = Zieloffset%
- RegPack%(4) = Laenge%
- CALL MoveASM(RegPack%())
- END SUB
-
- REM -------------------------------------------------------