Condition code flag emulation for program code conversion
Abstract
An emulator allows subject code written for a subject processor having subject processor registers and condition code flags to run in a non-compatible computing environment. The emulator identifies and records parameters of instructions in the subject code that affect status of the subject condition code flags. Then, when an instruction in the subject code is encountered, such as a branch or jump, that uses the flag status to make a decision, the flag status is resolved from the recorded instruction parameters. Advantageously, emulation overhead is substantially reduced.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
Computer software resident on a tangible computer readable storage medium and operable when executed by a computer to perform program code conversion comprising the steps of: (a) establishing one or more abstract registers, each corresponding to a unique flag parameter (operand) used by a flag-affecting instruction which selectively modifies a flag; (b) generating an intermediate representation (IR) tree for a selected instruction sequence, said selected instruction sequence followed by a flag-using instruction which uses said flag, said IR tree depending from the one or more of said abstract
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 10,261,785 B2 | Arithmetic lazy flags representation for emulation | 2019 | 0 |