Conditional structures: Difference between revisions
→{{header|zkl}}
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) |
||
Line 7,760:
end while
</lang>
=={{header|Z80 Assembly}}==
In addition to branching, the Z80 can conditionally <code>CALL</code> a subroutine.
<lang z80>call z,foo ;call "foo" if the last math operation resulted in zero.
call c,bar ;call "bar" if the carry is set.
call nc,baz ;call "baz" if the carry is clear.</lang>
|