1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-17 15:06:29 +00:00
C02/py65/testif.c02

19 lines
403 B
Plaintext
Raw Normal View History

2018-02-14 00:52:14 +00:00
/****************************************
* 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;