diff options
author | johannst <johannst@users.noreply.github.com> | 2023-12-07 23:53:44 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2023-12-07 23:53:44 +0000 |
commit | d3e1eff9593501ff8677b9399e1f0625f415ec78 (patch) | |
tree | fbc8aa062fdd4ca510fae17ea515354549636f29 /src/tiny_vm | |
parent | 2294180c3778d0fcfa877818e98c420fcd54bb8a (diff) | |
download | juicebox-asm-d3e1eff9593501ff8677b9399e1f0625f415ec78.tar.gz juicebox-asm-d3e1eff9593501ff8677b9399e1f0625f415ec78.zip |
deploy: b5aea3fb5fcce31599e3d7397d5413a934132231
Diffstat (limited to 'src/tiny_vm')
-rw-r--r-- | src/tiny_vm/tiny_vm.rs.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tiny_vm/tiny_vm.rs.html b/src/tiny_vm/tiny_vm.rs.html index b986ed6..7de10c9 100644 --- a/src/tiny_vm/tiny_vm.rs.html +++ b/src/tiny_vm/tiny_vm.rs.html @@ -695,6 +695,7 @@ <a href="#695" id="695">695</a> <a href="#696" id="696">696</a> <a href="#697" id="697">697</a> +<a href="#698" id="698">698</a> </pre></div><pre class="rust"><code><span class="doccomment">//! TinyVm example. //! //! This example introduces as simple 16 bit virtual machine the [`TinyVm`]. The VM consits of @@ -736,8 +737,9 @@ </span><span class="attr">#[cfg(not(any(target_arch = <span class="string">"x86_64"</span>, target_os = <span class="string">"linux"</span>)))] </span><span class="macro">compile_error!</span>(<span class="string">"Only supported on x86_64 with SystemV abi"</span>); -<span class="kw">use </span>juicebox_asm::prelude::<span class="kw-2">*</span>; +<span class="kw">use </span>juicebox_asm::insn::<span class="kw-2">*</span>; <span class="kw">use </span>juicebox_asm::Runtime; +<span class="kw">use </span>juicebox_asm::{Asm, Imm16, Imm64, Label, MemOp, Reg16, Reg64}; <span class="doccomment">/// A guest physical address. </span><span class="kw">pub struct </span>PhysAddr(<span class="kw">pub </span>u16); |