'Is it considered bad practice to use the flags register as a boolean return value?
I'm writing some procedures in x86 assembler that modify ZF as a means to return boolean values, so I can do something like this:
call is_value_correct
jz not_correct
I'm wondering if this is considered bad practice since some coding standards say that simple values should be returned in the AX register.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
