🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #1883

Re: ����

#1883
From: James
Date: Mon, 16 Mar 1998 00:00
20 lines
1156 bytes
Hi, zhang,
    Which type of data do u want to exchagne?
    u see, u can use inline assemler to directly access the parameters in a
function, and if large buffer exchange is wanted, u may do as bellow

 void aaa( char *bufferp , int a )
{
    asm  {
      mov  ax , a // u can access the parameter directly.
       lds si , bufferp
        ... // thus, u can use ds:si to access the buffer.
   }
}

Wish this would help.
���� wrote:

> ����C����һ���������а���һ�λ����롣����֪���ʹ��������C���򽻻���
> �ݣ�
Technical Details
Message-ID: <350CE2E8.AA19D745@online.sh.cn>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6eflih$j7b$1@bbs.nease.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fc86e,3795e3f71061834d,start
X-Google-Attributes: gidfc86e,public
From: James <jchonc@online.sh.cn>
Subject: Re: ����
Date: 1998/03/16
Message-ID: <350CE2E8.AA19D745@online.sh.cn>
X-Deja-AN: 334478164
Content-Transfer-Encoding: 8bit
References: <6eflih$j7b$1@bbs.nease.net>
Mime-Version: 1.0
To: "����" <talents@public.east.cn.net>
Content-Type: text/plain; charset=iso-8859-1
Organization: Net Ease
Newsgroups: cn.bbs.comp.program