Trippy V0.17 diagnostics Basic BT command sequence tests -- -- do we get a \n in response to BT\n? T: BT R: -- do we get a ?\n in response to a syntax error? T: BT} R: ? -- do we get a zero in the accumulator? T: BT? R: =0 -- what about commands with errors after good text? T: BT?} R: =0? -- is silent command terminator really silent? T: BT?.BT? R: =0=0 -- even where there is arbitrary junk between commands? T: BT?. -junk- BT? R: =0=0 Numeric Tests -- -- can we accumulate and echo a number T: BT@12345? R: =12345 -- again (so we test all 10 digits) T: BT@09876? R: =9876 -- test maxint T: BT@32767? R: =32767 -- test minint T: BT@32768? R: =-32768 -- test rollover to -1 T: BT@65535? R: =-1 -- test overflow T: BT@65536? R: ? Test Access to Variables -- -- check range of variable addressing allowed T:BT@ABCDEFGHIJKLMNOPQRSTUVWXYZ R: -- store a value in variable S (S and T are guaranteed harmless) T: BTS1234= R: -- read it back T: BTS? R: =1234 -- change it's value and check the result T: BTS5678=S? R: =5678 Test Arithmetic -- -- add something to it and check the result T: BTS4321+S? R: =9999 -- subtract something and check T: BTS111-+S? R: =9888 -- again and again T: BTS11-+S1-+S? R: =9876 -- now try shifting something into T T: BTT1