# PM0044 5.4.4 Pipeline stalled, table 12

Legend
| Decode
| Execute
| Fetch
| Flush
| Fetch Stall - space in prefetch buffer but bus busy
| Decode Stall - bus busy
| Decode Stall - insufficient data in prefetch buffer
| Decode Stall - read after write

## Errata

- Table 12 shows the BTJT as taking 1 decode, 2 execute cycles but the later documentation for the instruction implies the second execution cycle is only used if the branch is taken - and this isn't.
- Table 12 has a jump in time (cycles) from 4 straight to 7.
- The last instruction is shown one cycle early in table 12. The decode stall should line up with the execution cycle of the previous instruction as the description above the table says.

0x080e0 | sub SP,#0x14 |  |  |
0x080e2 | ld A,#0x14 |  |  |  |
0x080e4 | btjt 0x0010,#5,0x80f8 |  |  |  |  |
0x080e9 | inc A |  |  |  |  |  |
0x080ea | btjf 0x0020,#3,0x80f8 |  |  |  |  |  |  |  |
0x080f8 | incw Y |  |  |  |  |  |  |  |  |  |
0x080fa | ld A,(X) |  |  |  |  |  |  |  |  |  |  |  |
Address | Instruction | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---