Mail Archives: djgpp/1996/12/16/15:57:15
On Sat, 14 Dec 1996 04:15:16 GMT "Pin F. Sun"
<pfsun AT undergrad DOT math DOT uwaterloo DOT ca> 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
- Raw text -