git @ Cat's Eye Technologies SixtyPical / goto-at-end-of-block eg / rudiments / conditional.60p
goto-at-end-of-block

Tree @goto-at-end-of-block (Download .tar.gz)

conditional.60p @goto-at-end-of-blockraw · history · blame

define chrout routine
  inputs a
  trashes a
  @ 65490

define main routine
  trashes a, x, y, z, n, c, v
{
    ld a, 0
    if z {
        ld a, 89
        call chrout
    } else {
        ld a, 78
        call chrout
    }

    ld a, 1
    if z {
        ld a, 89
        call chrout
    } else {
        ld a, 78
        call chrout
    }
}