MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / constant_instruction

Method constant_instruction

aiscript-vm/src/chunk.rs:377–383  ·  view source on GitHub ↗
(&self, name: &str, constant: u8)

Source from the content-addressed store, hash-verified

375 }
376
377 fn constant_instruction(&self, name: &str, constant: u8) {
378 let name = format!("OP_{name}");
379 println!(
380 "{:-16} {:4} '{}'",
381 name, constant, self.constans[constant as usize]
382 );
383 }
384
385 fn byte_instruction(&self, name: &str, byte: u8) {
386 let name = format!("OP_{name}");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected