;8BC example program ;I have no idea if it will work. ; Here is the pseudo-assembly for a program that counts up to ; 0x80, back down to 0x01, and then repeats forever. MOV B C L1: IF C = H : D ;Jump to L2 ADD1 C ;Add 1 to C OUT3 C JMP U ;Jump to L1 L2: IF C = L : U ;Jump to L1 if C == L SUB1 C ;Subtract 1 OUT3 C JMP D ;Jump to L2 C: 0x00 B: 0x00 D: L2 U: L1 H: 0x80 L: 0x01 ; Here is the partial assembly of the same program. 00 20 MOV 01 18 B 02 17 C L1: 03 E0 IF 04 17 C 05 1B H 06 19 D 07 00 ADD1 08 17 C 09 8F OUT3 0A 17 C 0B CF JMP 0C 1A U L2: 0D E0 IF 0E 17 C 0F 1C L 10 1A U 11 2F SUB1 12 17 C 13 8F OUT3 14 17 C 15 CF JMP 16 19 D C: 17 00 B: 18 00 D: 19 0D U: 1A 03 H: 1B 80 L: 1C 01 ;Now for the fully assembled program. 201817E0171B1900178F17CF1AE0171C 1A2F178F17CF1900000D038001