TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Todd Cohen
from: Richard Hulme
date: 1995-05-21 13:38:42
subject: ASM

Hello Todd!

17 May 95, Richard Hulme writes to Todd Cohen:

 RH>         lea     eax,[{at}{at}BytesWritten]
 RH>         push    eax
 RH>         push    HelloStringLen          ;Number of bytes to write
 RH>         push    offset HelloString
 RH>         push    HSTDOUT                 ;File handle
 RH>         call    DosWrite                ;Print string
 RH>         add     esp,32                  ;Remove parameters from the stack

Ooops! Ahem, of course, the last line should be esp,16 *NOT* esp,32!
(This is one advantage INVOKE gives you!!!!)

Sorry about that.

bcnu,

Richard.

--- GoldED 2.40
* Origin: Floating Point/2 (2:250/109.10)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 250/109 25/10 250/107 255/1 440/4 141/209 270/101 105/103 42 712/515
@PATH: 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.