martinmcclure / mist

Filetree code for the Mist project (mist-project.org)
32 stars 5 forks source link

Fog needs conditionals #6

Closed martinmcclure closed 11 years ago

martinmcclure commented 11 years ago

Add a conditional node to Fog. Initial specification (comments/suggestions welcome):

A Fog conditional node is created with the message

Fog following: if: then: else:

The 'following' tree is executed. This is an arbitrary subtree, but its ultimate purpose is to set or clear a CPU condition flag. The specified CPU condition flag (#Z, #N, #C, #V, #notZ, #notN, #notC, #notV) is then tested. If the condition is met, the 'then' subtree is executed, otherwise the 'else' subtree is executed.

martinmcclure commented 11 years ago

Fog Conditionals complete, merged to master.