1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-28 10:51:14 +00:00
C02/py65/testif.c02
2018-02-13 19:52:14 -05:00

19 lines
403 B
Plaintext

/****************************************
* TESTIF - Test C02 If/Then Statements *
****************************************/
#include <py65.h02>
#include <stdio.h02>
char true = $FF;
char false = $00;
char pass = " Passed";
char fail = " Failed";
main:
puts("if (true): "); if (true) putln(&pass); else putln(&fail);
puts("if (false): "); if (false) putln(&fail); else putln(&pass);
goto exit;