Conditional structures: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) |
||
Line 7,760: | Line 7,760: | ||
end while |
end while |
||
</lang> |
</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> |
|||