flat assembler
Message board for the users of flat assembler.
  
|  Index
      > High Level Languages > [solved]pointer & 0xFFF | 
| Author | 
 | 
| rugxulo 24 Feb 2018, 22:27 I'm no C pro (or is this C++ ?), but I'm not sure exactly what you're trying to do.
 But beware precedence levels. So, while it doesn't fix your problem, be careful of this: Quote: 
 | |||
|  24 Feb 2018, 22:27 | 
 | 
| rugxulo 24 Feb 2018, 23:16 You may also wish to use stdint.h 's intptr_t and uintptr_t . | |||
|  24 Feb 2018, 23:16 | 
 | 
| vivik 25 Feb 2018, 05:31 Perfect, thank you! This worked:
 if (((intptr_t)pointer & 0xFFF) == 0) break; | |||
|  25 Feb 2018, 05:31 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.