lib/Language/Zcode/Util.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 3 totaltotal 89.2% 25 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Language/Zcode/Runtime/State.pm ↑ Summary lib/Language/Zcode.pm »
1 package Language::Zcode::Util;
2
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5
6 2 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use vars qw(@EXPORT @ISA %Constants @Memory);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 @ISA = qw(Exporter);
9 2 @EXPORT = qw(%Constants @Memory);
10
11 # Utilities used both by parser and translator
12
13 13 ▶sub get_byte_at { $Memory[$_[0]]; }
Subroutine get_byte_at: called CC=1 SCAR=0.0
Pod undocumented
14 2 ▶sub set_byte_at { $Memory[$_[0]] = $_[1]; }
Subroutine set_byte_at: called CC=1 SCAR=0.0
Pod undocumented
15 20 ▶sub get_word_at { 256*$Memory[$_[0]] + $Memory[$_[0]+1]; }
Subroutine get_word_at: called CC=1 SCAR=0.0
Pod undocumented
16
17 2 1;
« lib/Language/Zcode/Runtime/State.pm ↑ Summary lib/Language/Zcode.pm »