add and document inlined_instructions/2 to/in diag.pl (#1791)

This commit is contained in:
Mark
2023-04-22 17:13:24 -06:00
parent 198e925430
commit f35298a227
4 changed files with 195 additions and 39 deletions

View File

@@ -4445,6 +4445,14 @@ impl Machine {
try_or_throw!(self.machine_st, self.wam_instructions());
step_or_fail!(self, self.machine_st.p = self.machine_st.cp);
}
&Instruction::CallInlinedInstructions(_) => {
self.inlined_instructions();
self.machine_st.p += 1;
}
&Instruction::ExecuteInlinedInstructions(_) => {
self.inlined_instructions();
self.machine_st.p = self.machine_st.cp;
}
&Instruction::CallWriteTerm(_) => {
try_or_throw!(self.machine_st, self.write_term());
step_or_fail!(self, self.machine_st.p += 1);