Aml.AmlSystem.loader: def of bend-osdev-acpi@0.1.2.0 Import: import bend-osdev-acpi@0.1.2.0/aml.bend as Aml Lines 121-126 of bend-osdev-acpi@0.1.2.0/aml.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.2.0/aml.bend&start_line=121&end_line=126 import Base import bend-osdev-bytes@0.1.1.1/bytes.bend as B import bend-osdev-acpi@0.1.2.0/aml_interp.bend as I # a machine at the start of a definition block, at the root def AmlSystem.loader(-H: Data, s: AmlSystem, aml: B.Octets) -> I.AmlMachine: match s: case AmlSystem{o, +wd, n, h}: +code = B.Octets.to_list(aml) I.AmlMachine{I.AmlMExec{}, I.AmlCur{code, B.len.fast(code)}, [I.AmlFTop{}], I.AmlWorld{aml.ctx("\\", Nil{}), n, h, aml.env(wd, o)}} Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/aml.bend&name=AmlSystem https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/aml.bend&name=aml.ctx https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/aml.bend&name=aml.env https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/aml_interp.bend&name=AmlCur https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/aml_interp.bend&name=AmlFrame https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/aml_interp.bend&name=AmlMachine https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/aml_interp.bend&name=AmlMode https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/aml_interp.bend&name=AmlWorld https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.to_list https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=len.fast