HPlogo System Debug Reference Manual: HP 3000 MPE/iX Computer Systems > Appendix C Emulated/Translated CM Code

Executing a Translated Section

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The following diagram indicates that the NM program counter (pc >) is located at the start (node point) of a NM translated section of code.

When all of the instructions in this section are executed, (that is, when pc advances to the next node point at PROC+%6), then the state of the machine is exactly the same as if the four original CM object code instructions had been executed (PROC+%2 through PROC+%6).

               Original CM                          Translated

               Object Code                          Object Code

                                   Translated

                                      Into

               CM Instructions                      NM Instructions



                                                    +-------------+

                                                    | PROC+%0     | N

                                                    |             |

               | ----------- |      ----+           |             |

             N | PROC+%2     |          |           |             |

               | PROC+%3     |          +----       | ----------- |

               | PROC+%4     |                pc >  | PROC+%2     | N

               | PROC+%5     |                      |             |

               | ----------- |      ----+           | Translated  |

                                        |           | Section     |

                                        |           |             |

                                        +----       | ----------- |

                                                    | PROC+%6     | N

                                                    |             |

                                                    |             |

                                                    |             |

                                                    | ----------- |

                                                    | PROC+%13    | N

                                                    |             |

                                                    |             |

                                                    |             |

                                                    |             |

                                                    |             |

                                                    |             |

                                                    |             |

                                                    +-------------+


Note that if, for example, only half of the NM translated section has been executed, it is not equivalent to emulating the first half of the original CM object code instructions.

NOTE: There may not be any correspondence between the relative position and sizes of emulated versus translated code sections.
Feedback to webmaster