flat assembler
Message board for the users of flat assembler.
Index
> Main > [$2 vs $ + 2] How to declare jump to relative address |
Author |
|
RIxRIpt 23 Jan 2015, 20:56
1.2.4 Numerical expressions:
Quote:
Code: jmp $ + 2 ;EB 02 |
|||
23 Jan 2015, 20:56 |
|
Art Vandelay 23 Jan 2015, 21:02
thanks
I tried doing jmp $2 when I read that section of the documentation *facepalm* |
|||
23 Jan 2015, 21:02 |
|
DOS386 30 Jan 2015, 10:27
Welcome to the FASM forum. The dollar symbol can also prefix HEX numbers:
Code: MOV CL, $2 ; Same as "MOV CL, 2" MOV EAX, $FFFF'FFFF INC EAX ; Will be ZERO now |
|||
30 Jan 2015, 10:27 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.