mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-25 06:31:25 +00:00
19 lines
403 B
Plaintext
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;
|
|
|