Boolean values: Difference between revisions
Content added Content deleted
PatGarrett (talk | contribs) (→{{header|360 Assembly}}: Section added) |
|||
Line 9: | Line 9: | ||
* [[Logical operations]] |
* [[Logical operations]] |
||
<br><br> |
<br><br> |
||
=={{header|360 Assembly}}== |
|||
The are no TRUE or FALSE constants in 360 Assembly; but an often used convention is : |
|||
<lang 360asm> |
|||
FALSE DC X'00' |
|||
TRUE DC X'FF' |
|||
</lang> |
|||
=={{header|8051 Assembly}}== |
=={{header|8051 Assembly}}== |
||
Line 15: | Line 23: | ||
<lang asm>clr bit ; clears |
<lang asm>clr bit ; clears |
||
setb bit ; sets</lang> |
setb bit ; sets</lang> |
||
=={{header|8th}}== |
=={{header|8th}}== |
||
In 8th, any non-zero number is true, as is the specific boolean value 'true'. Everything else evaluates as 'false' (including the boolean value, 'false') |
In 8th, any non-zero number is true, as is the specific boolean value 'true'. Everything else evaluates as 'false' (including the boolean value, 'false') |