Jump to content

Conditional structures: Difference between revisions

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>
 
 
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.