MCPcopy Index your code
hub / github.com/endbasic/endbasic / to_parts

Method to_parts

core/src/bytecode.rs:194–196  ·  view source on GitHub ↗

Breaks apart the internal register representation and returns a tuple indicating if the register is global or not and its logical index.

(self)

Source from the content-addressed store, hash-verified

192 /// Breaks apart the internal register representation and returns a tuple indicating if the
193 /// register is global or not and its logical index.
194 pub(crate) fn to_parts(self) -> (bool, u8) {
195 if self.0 < Self::MAX_GLOBAL { (true, self.0) } else { (false, self.0 - Self::MAX_GLOBAL) }
196 }
197}
198
199/// A tagged reference to a variable (register) encoding the register's absolute address

Callers 7

newMethod · 0.80
compile_exprFunction · 0.80
reg_indexMethod · 0.80
resolve_array_indexMethod · 0.80
upcall_scopeMethod · 0.80
do_alloc_arrayMethod · 0.80
do_callMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected