AmlInterp.in.apply.code: def of bend-osdev-acpi@0.1.1.0 Import: import bend-osdev-acpi@0.1.1.0/aml_interp.bend as AmlInterp Lines 1916-2029 of bend-osdev-acpi@0.1.1.0/aml_interp.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&start_line=1916&end_line=2029 import Base import bend-osdev-word64@0.1.1.0/word64.bend as W 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 import bend-osdev-acpi@0.1.1.0/aml_host.bend as Hs def in.apply.code(~H: Data, ~io: H -> Hs.AmlHostOp -> Result<&2, &2, E.AcpiError, Hs.AmlHostAns>, +code: Nat, args: List<&2, V.AmlValue>, c: AmlCur, fs: List<&2, AmlFrame>, +w: AmlWorld) -> AmlMachine: match code: case 6n: in.ap.alias(~H, ~io, args, c, fs, w) case 8n: in.ap.name(~H, ~io, args, c, fs, w) case 21n: in.ap.external(~H, ~io, args, c, fs, w) case 112n: in.ap.store(~H, ~io, args, c, fs, w) case 113n: in.val.give(H, in.refof(args), c, fs, w) case 114n: in.ap.int2(~H, ~io, 114n, args, c, fs, w) case 115n: in.ap.concat(~H, ~io, args, c, fs, w) case 116n: in.ap.int2(~H, ~io, 116n, args, c, fs, w) case 117n: in.ap.incdec(~H, ~io, True{}, args, c, fs, w) case 118n: in.ap.incdec(~H, ~io, False{}, args, c, fs, w) case 119n: in.ap.int2(~H, ~io, 119n, args, c, fs, w) case 120n: in.ap.div(~H, ~io, args, c, fs, w) case 121n: in.ap.int2(~H, ~io, 121n, args, c, fs, w) case 122n: in.ap.int2(~H, ~io, 122n, args, c, fs, w) case 123n: in.ap.int2(~H, ~io, 123n, args, c, fs, w) case 124n: in.ap.int2(~H, ~io, 124n, args, c, fs, w) case 125n: in.ap.int2(~H, ~io, 125n, args, c, fs, w) case 126n: in.ap.int2(~H, ~io, 126n, args, c, fs, w) case 127n: in.ap.int2(~H, ~io, 127n, args, c, fs, w) case 128n: in.ap.int1(~H, ~io, 128n, args, c, fs, w) case 129n: in.ap.int1(~H, ~io, 129n, args, c, fs, w) case 130n: in.ap.int1(~H, ~io, 130n, args, c, fs, w) case 131n: in.ap.deref(~H, ~io, args, c, fs, w) case 133n: in.ap.int2(~H, ~io, 133n, args, c, fs, w) case 134n: in.ap.notify(~H, ~io, args, c, fs, w) case 135n: in.ap.size(~H, ~io, args, c, fs, w) case 136n: in.ap.index(~H, ~io, args, c, fs, w) case 138n: in.ap.create(~H, ~io, 138n, args, c, fs, w) case 139n: in.ap.create(~H, ~io, 139n, args, c, fs, w) case 140n: in.ap.create(~H, ~io, 140n, args, c, fs, w) case 141n: in.ap.create(~H, ~io, 141n, args, c, fs, w) case 142n: in.ap.otype(~H, ~io, args, c, fs, w) case 143n: in.ap.create(~H, ~io, 143n, args, c, fs, w) case 144n: in.ap.logic(~H, ~io, 144n, args, c, fs, w) case 145n: in.ap.logic(~H, ~io, 145n, args, c, fs, w) case 146n: in.ap.logic(~H, ~io, 146n, args, c, fs, w) case 147n: in.ap.logic(~H, ~io, 147n, args, c, fs, w) case 148n: in.ap.logic(~H, ~io, 148n, args, c, fs, w) case 149n: in.ap.logic(~H, ~io, 149n, args, c, fs, w) case 150n: in.ap.conv(~H, ~io, 150n, args, c, fs, w) case 153n: in.ap.conv(~H, ~io, 153n, args, c, fs, w) case 157n: in.ap.copy(~H, ~io, args, c, fs, w) case 164n: in.ap.ret(~H, ~io, args, c, fs, w) case 257n: in.ap.mutex(~H, ~io, args, c, fs, w) case 258n: in.ap.mutex(~H, ~io, args, c, fs, w) case 274n: in.ap.condref(~H, ~io, args, c, fs, w) case 275n: in.ap.create(~H, ~io, 275n, args, c, fs, w) case 289n: in.ap.sleep(~H, ~io, 10, args, c, fs, w) case 290n: in.ap.sleep(~H, ~io, 10000, args, c, fs, w) case 291n: in.give(H, V.AmlInt{W.W64.zero()}, c, fs, w) case 293n: in.give(H, V.AmlInt{W.W64.zero()}, c, fs, w) case 304n: in.give(H, V.AmlInt{W.W64.from_u32(2)}, c, fs, w) case 306n: in.ap.fatal(~H, ~io, args, c, fs, w) case 307n: in.give(H, V.AmlInt{in.clock(H, w)}, c, fs, w) case 384n: in.ap.region(~H, ~io, args, c, fs, w) case _: AmlMachine{AmlMFail{E.AcpiAmlBadOpcode{U32.from_nat(code)}}, c, fs, w} Uses (44): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_host.bend&name=AmlHostAns https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_host.bend&name=AmlHostOp https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=AmlCur https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=AmlFrame https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=AmlMachine https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=AmlMode https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=AmlWorld https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.alias https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.concat https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.condref https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.conv https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.copy https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.create https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.deref https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.div https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.external https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.fatal https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.incdec https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.index https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.int1 https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.int2 https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.logic https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.mutex https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.name https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.notify https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.otype https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.region https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.ret https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.size https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.sleep https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.ap.store https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.clock https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.give https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.refof https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_interp.bend&name=in.val.give https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_value.bend&name=AmlValue https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/error.bend&name=AcpiError https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.from_u32 https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.zero