🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42472

Assembly code in GNU C++ for DOS

#42472
From: Brea Torremocha
Date: Tue, 05 Dec 1995 00:00
42 lines
1160 bytes
I have a problem with the assembly code.
When I try  to send a pointer as an argument of an assembler
function, this function ignores the argument.

For example:

globl _flip

align 4

pushl %ebp
movl %esp,%ebp
pushw %es

movl 8(%ebp),%esi   /* Here is the problem. The function don't take
                       the pointer */

movl $0xA0000,%edi

movl _dos_seg,%es

pushw %ds

movw _dos_seg,%ds     

movl $16000,%ecx      

rep
movsl

popl %ds

popl %es

movl %ebp,%esp

pop %ebp

ret /* End */


If somebody knows something, please tell me.
Technical Details
Message-ID: <4a1m27$2aq@acebo.sdi.uam.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,9fad1beb500fc472,start
X-Google-Attributes: gid11318c,public
From: Brea Torremocha <cur2n9>
Subject: Assembly code in GNU C++ for DOS
Date: 1995/12/05
Message-ID: <4a1m27$2aq@acebo.sdi.uam.es>
X-Deja-AN: 120945689
content-type: text/plain; charset=us-ascii
organization: Universidad Autonoma de Madrid, Spain
x-url: news:gnu.gcc.help#Pine.A32.3.91.951204191045.71726E-100000@srv1.freenet.calgary.ab.ca
mime-version: 1.0
newsgroups: gnu.gcc.help
x-mailer: Mozilla 1.1N (X11; I; SunOS 5.3 sun4m)