| delorie.com/archives/browse.cgi | search |
| From: | ams AT ludd DOT luth DOT se (Martin Str|mberg) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Some assembly questions |
| Date: | 18 Mar 1999 17:45:44 GMT |
| Organization: | University of Lulea, Sweden |
| Lines: | 17 |
| Message-ID: | <7cre48$h9i$2@news.luth.se> |
| References: | <199903170746 DOT IAA06061 AT login-2 DOT eunet DOT no> <7cq156$q5$2 AT news DOT luth DOT se> <7cra9a$ui$1 AT murdoch DOT acc DOT Virginia DOT EDU> |
| NNTP-Posting-Host: | queeg.ludd.luth.se |
| X-Newsreader: | TIN [UNIX 1.3 950824BETA PL0] |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Clark L. Coleman (clc5q AT cobra DOT cs DOT Virginia DOT EDU) wrote:
: Your were given a bad mnemonic: "setc" is actually "stc".
:
: asm volatile("clc"); /* clears (sets to 0) the carry flag */
: asm volatile("cmc"); /* complements (inverts) the carry flag */
: asm volatile("stc"); /* sets (to 1) the carry flag */
Ahh! Thanks!
Perhaps somebody can inform me on the difference (if there is one)
between "cmpl $1, %eax" and "testl $1, %eax". It sounds to me like
they do the same thing, so I think I'm missing something...
Shostakovich, String Quartet No. 15,
MartinS
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |