A few methods come to mind.
- As has already been mentioned in the question comments, you can use the conditional move instruction.
- You can use the SETxx instruction to set one of the 8-bit registers to 0 or 1.
- You can use the PUSHF instruction to save a copy of the EFLAGS register onto the stack. It can be restored using the POPF instruction.
- You can craft your code so that it does not use instructions that modify the EFLAGS register for the next time you wish to use the results of that comparison.
- Depending upon your use cases, you may be able to craft a simple arithmetic expression that will result in either 0 or 1 or some other desired value (personally I prefer the combination of 0 or -1 as it then becomes trivial to convert that to any X or Y pair using an AND followed by an ADD).
Hope this helps.