| delorie.com/archives/browse.cgi | search |
| Xref: | news2.mv.net comp.os.msdos.djgpp:7211 |
| From: | Elliott Oti <e DOT oti AT stud DOT warande DOT ruu DOT nl> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: inline assmebly problem |
| Date: | Tue, 13 Aug 1996 12:34:53 -0700 |
| Organization: | Academic Computer Centre Utrecht, (ACCU) |
| Lines: | 16 |
| Message-ID: | <3210D8DD.3494@stud.warande.ruu.nl> |
| References: | <4tmkh8$2t3 AT News DOT Dal DOT Ca> |
| NNTP-Posting-Host: | warande1078.warande.ruu.nl |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hafiz Awang Pon wrote:
>
> .. inline assembly here...
>
>the problem i'm encoutering is that the value inside the
> array is not what i expected. After putting some test
> variables into the program, I suspect some values
> in the registers has been altered not in the manner
> dictated by my code above. can someone help?
>
> 004277a AT dragon DOT acadiau DOT ca
Enclose your assembly statements in one asm(" movl %bla, %bla \n"
"popw %foo \n"
"addl %moo, %baa ")
statement. Otherwise DJGPP may mess registers up b/w statements.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |