| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
1 | TPS-Hilfe für den HT46F47 - vs.2 | 20171203 | ||||||
2 | josvandenenden@gmail.com | |||||||
3 | How to use? | |||||||
4 | Beispielprogramme von B. Kainka | Jumps & Calls | ||||||
5 | Addr. | Instr. | Label | Mnemonic | Comment | Comment | Page | Address |
6 | 00 | 64 | Input | A = Din | Get the statuses of 4 inputs | |||
7 | 01 | 51 | B = A | Store them in B | ||||
8 | 01 | |||||||
9 | 02 | 4E | Test0 | A = 1110 | Test ---------------------------------- | Din.0 low? | ||
10 | 03 | 80 | Page = 0 | 0 | ||||
11 | 04 | C3 | Skip if A = B | |||||
12 | 05 | 98 | Jump Test1 | No | 08 | |||
13 | 06 | 82 | Page = 2 | Yes | 2 | |||
14 | 07 | 95 | Jump 25 | Start "Hochzählen" | 25 | |||
15 | 07 | |||||||
16 | 08 | 4D | Test1 | A = 1101 | Test ---------------------------------- | Din.1 low? | ||
17 | 09 | 80 | Page = 0 | 0 | ||||
18 | 0A | C3 | Skip if A = B | |||||
19 | 0B | 9E | Jump Test2 | No | 0E | |||
20 | 0C | 82 | Page = 2 | Yes | 2 | |||
21 | 0D | 9A | Jump 2A | Start "AD/PWM" | 2A | |||
22 | 0D | |||||||
23 | 0E | 4B | Test2 | A = 1011 | Test ---------------------------------- | Din.2 low? | ||
24 | 0F | 81 | Page = 1 | 1 | ||||
25 | 10 | C3 | Skip if A = B | |||||
26 | 11 | 94 | Jump Test3 | No | 14 | |||
27 | 12 | 83 | Page = 3 | Yes | 3 | |||
28 | 13 | 90 | Jump 30 | Start "Zufall" | 30 | |||
29 | 13 | |||||||
30 | 14 | 47 | Test3 | A = 0111 | Test ---------------------------------- | Din.3 low? | ||
31 | 14 | etc., see listing B. Kainka | ||||||
32 | 14 | |||||||