To: djgpp AT delorie DOT com Subject: Re: inline assembly - jumps Message-ID: <19961217.033933.8319.0.aclemmer@juno.com> References: <19961213 DOT 064349 DOT 4351 DOT 1 DOT aclemmer AT juno DOT com> From: aclemmer AT juno DOT com (Aaron m Clemmer) Date: Mon, 16 Dec 1996 15:41:03 EST On Sat, 14 Dec 1996 04:15:16 GMT "Pin F. Sun" writes: >I had this problem, too. Everytime a label is defined before >a jump instruction calls it, the compiler generates error messages. >I've tried things like: >asm (" cmp %edx, $1200 > jge SKIP > inc edx > SKIP: > ... > "); >No error messages generated if the label is defined after the jump. I've been listening to the replies I got, and this is what to do... When the asm code is being pasted in multiple times as a macro, the label is defined more than once. What you need to do is specifiy either 'b' (for back) or 'f' (for forward) directly after the label on the jump ( 0: ... jge 0b). At first, I tried this with alpha-numeric labels, but that doesn't work. You need to use numeric labels when doing this. aaron