You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 6, 2025. It is now read-only.
// Instruction JUMP IF ZERO (example flag Z)instruction(JZ)
{
// Implementation defines instruction syntax// eg. "JZ 05h"impl(JZ, $int)
{
// How is instruction machine code concatenatedparam(0, REG_IAD), OPCODE
};
// Define fork value generator (default 0)fork(Z);
// Defines signals for fork value 0 (default)signals()
{
czytwysweiil;
wylwea;
}
// Defines signals for fork value 1signals(1)
{
czytwysweiil;
wyadweawel;
}
}
Sample instruction with generated forks
// Instruction JUMP IF ZERO (example flag Z)instruction(JZ)
{
// Implementation defines instruction syntax// eg. "JZ 05h"impl(JZ, $int)
{
// How is instruction machine code concatenatedparam(0, REG_IAD), OPCODE
};
// Defines signals in a more complex format// for the assembler to create forks on its owncode()
{
czytwysweiil;
if(Z)
{
wyadweawel;
}
else
{
wylwea;
}
}
}