git @ Cat's Eye Technologies SixtyPical / 0.3 eg / conditional.p60
0.3

Tree @0.3 (Download .tar.gz)

conditional.p60 @0.3raw · history · blame

routine chrout
  inputs a
  trashes a
  @ 65490

routine main
  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
    }
}