def in.imm.give

bend-osdev-acpi@0.1.1.0 · aml_interp.bend:2110

import bend-osdev-acpi@0.1.1.0/aml_interp.bend as AmlInterp
import Base
import bend-osdev-acpi@0.1.1.0/error.bend as E
import bend-osdev-acpi@0.1.1.0/aml_value.bend as V

2110def in.imm.give(-H: Data, +wide: Bool, r: Result<&2, &2, E.AcpiError, AmlImm>, fs: List<&2, AmlFrame>, +w: AmlWorld<H>) -> AmlMachine<H>:
2111  match r:
2112    case Fail{e}:
2113      AmlMachine{AmlMFail{e}, in.no.cur(), fs, w}
2114    case Done{AmlImm{v, c}}:
2115      AmlMachine{AmlMGive{V.AmlInt{V.AmlInt.fit(wide, v)}}, c, fs, w}

Uses (12)

Used by (2)