Category : C++ Source Code
Archive   : VCCRT1.ZIP
Filename : VCFFF.ASM

 
Output of file : VCFFF.ASM contained in archive : VCCRT1.ZIP
; /***
; *vecctor.cxx - C++ constructor helpers
; *
; * Copyright (c) 1991-1992, Microsoft Corporation. All rights reserved.
; *
; *Purpose:
; *
; * NOTE: The helper routines produced by this source must have
; * special names (i.e., not the "normal" C++ naming scheme). Thus,
; * the build process involves producing .asm files, sed scripts, etc.
; *
; *******************************************************************************/
;
; #include
;
; // tm this model ::= __near | __far | __huge
; // cm ctor call model ::= __near | __far
; // ctm ctor this model ::= __near | __far
; // vcm __vec_ctor call model ::= __near | __far
; // nelems_t #elements type ::= ptrdiff_t | long
;
; void pascal vcm vec_ctor(void tm* this_, size_t size, nelems_t eltCount,
; void (pascal cm* ctor)(void ctm* this_))
; {
; while (--eltCount >= 0) {
; (*ctor)(this_);
; this_ = (char tm*)this_ + size;
; }
; }
;

TITLE vecctor.cxx
.8087
_TEXT SEGMENT WORD PUBLIC 'CODE'
_TEXT ENDS
_DATA SEGMENT WORD PUBLIC 'DATA'
_DATA ENDS
CONST SEGMENT WORD PUBLIC 'CONST'
CONST ENDS
_BSS SEGMENT WORD PUBLIC 'BSS'
_BSS ENDS
DGROUP GROUP CONST, _BSS, _DATA
ASSUME DS: DGROUP, SS: DGROUP
_TEXT SEGMENT
ASSUME CS: _TEXT
PUBLIC ??_H@ZCXPEXIHP7CX0@Z@Z
??_H@ZCXPEXIHP7CX0@Z@Z PROC FAR
push bp
mov bp,sp
push di
push si
mov si,WORD PTR [bp+14]
mov di,WORD PTR [bp+10]
jmp SHORT $L338
nop
$FC334:
push WORD PTR [bp+16]
push si
call DWORD PTR [bp+6]
mov ax,WORD PTR [bp+12]
add si,ax
$L338:
dec di
jns $FC334
pop si
pop di
mov sp,bp
pop bp
ret 12
nop

??_H@ZCXPEXIHP7CX0@Z@Z ENDP
_TEXT ENDS
END



  3 Responses to “Category : C++ Source Code
Archive   : VCCRT1.ZIP
Filename : VCFFF.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/