Boolean values: Difference between revisions

Content added Content deleted
No edit summary
Line 19: Line 19:
<lang 360asm>FALSE DC X'00'
<lang 360asm>FALSE DC X'00'
TRUE DC X'FF'</lang>
TRUE DC X'FF'</lang>
=={{header|6502 Assembly}}==

There are no built-in true or false constants, but the functionality can be easily replicated with zero or nonzero values (or any two values which can cause a mutually exclusive branch condition, such as with <code>#$7f</code> and <code>#$80</code> and using <code>BMI</code>/<code>BPL</code>)
=={{header|8051 Assembly}}==
=={{header|8051 Assembly}}==
A single bit represents true or false. By convention, 0 (cleared) is false, 1 (set) is true.
A single bit represents true or false. By convention, 0 (cleared) is false, 1 (set) is true.