Re: [OT] Finite vs Infinite State Machines?

2012-07-02 Thread Dave
On 15 Jun 2012, at 00:54, Graham Cox wrote: On 15/06/2012, at 3:56 AM, Dave wrote: On 14 Jun 2012, at 05:12, Graham Cox wrote: On 14/06/2012, at 8:03 AM, Dave wrote: In assembler this would be implemented is using an Exchange Instruction to alter the PC on the stack and cause it to

Re: [OT] Finite vs Infinite State Machines?

2012-06-14 Thread Dave
On 14 Jun 2012, at 05:12, Graham Cox wrote: On 14/06/2012, at 8:03 AM, Dave wrote: In assembler this would be implemented is using an Exchange Instruction to alter the PC on the stack and cause it to return to the correct place once the ASync Task (usually an interrupt) had finished.

Re: [OT] Finite vs Infinite State Machines?

2012-06-14 Thread Graham Cox
On 15/06/2012, at 3:56 AM, Dave wrote: On 14 Jun 2012, at 05:12, Graham Cox wrote: On 14/06/2012, at 8:03 AM, Dave wrote: In assembler this would be implemented is using an Exchange Instruction to alter the PC on the stack and cause it to return to the correct place once the ASync

[OT] Finite vs Infinite State Machines?

2012-06-13 Thread Dave
Hi, I'm interested how people will comment on this. A Finite State Machine Implementation would look something like this: -(void) nextState { lastState = currentState; currentState = nextState; switch (currentState) { // Do Something to make nextState

Re: [OT] Finite vs Infinite State Machines?

2012-06-13 Thread Graham Cox
On 14/06/2012, at 8:03 AM, Dave wrote: In assembler this would be implemented is using an Exchange Instruction to alter the PC on the stack and cause it to return to the correct place once the ASync Task (usually an interrupt) had finished. Ah, those were the days - push a calculated