MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / parser_data_label

Function parser_data_label

crates/asm-to-binary/src/assembler/mod.rs:197–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 assert_eq!(out.source_for_addr(12), Some(("a.hll", 11)));
196 assert_eq!(
197 out.source_for_addr(1000),
198 Some(("a.hll", 11)),
199 "past the end"
200 );
201
202 // line -> pc: lowest address attributed to the line.
203 assert_eq!(out.addr_for_source("a.hll", 10), Some(4));

Callers

nothing calls this directly

Calls 1

parse_oneFunction · 0.85

Tested by

no test coverage detected