aa
This commit is contained in:
1 parent
661f99c595
commit
badede4b8f
222 files changed
+14221
-4877
No files matched your search
@@ -0,0 +1,211 @@
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 1; @symbol_importdef<0> = [Toybox,1,7,13]; @symbol_importdef<1> = [Lang,1,14,18]; ]
|
||||
import Toybox.Lang;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 2; @symbol_importdef<0> = [Toybox,2,7,13]; @symbol_importdef<1> = [WatchUi,2,14,21]; ]
|
||||
import Toybox.WatchUi;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 3; @symbol_importdef<0> = [Toybox,3,7,13]; @symbol_importdef<1> = [Time,3,14,18]; ]
|
||||
import Toybox.Time;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 4; @symbol_importdef<0> = [Toybox,4,7,13]; @symbol_importdef<1> = [Timer,4,14,19]; ]
|
||||
import Toybox.Timer;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 5; @symbol_importdef<0> = [Toybox,5,7,13]; @symbol_importdef<1> = [System,5,14,20]; ]
|
||||
import Toybox.System;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 7; @symbol_classdef = [Card,7,6,10]; ]
|
||||
class Card {
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 7; ]
|
||||
<init> {
|
||||
}
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 7; ]
|
||||
static
|
||||
<init> {
|
||||
}
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 8; @position = 15; @symbol_vardef = [team,8,15,19]; @symbol_type<0> = [enTeam,8,29,35]; ]
|
||||
public
|
||||
var team as enTeam;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 9; @position = 15; @symbol_vardef = [card,9,15,19]; @symbol_type<0> = [enCard,9,29,35]; ]
|
||||
public
|
||||
var card as enCard;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 10; @position = 15; @symbol_vardef = [player,10,15,21]; @symbol_type<0> = [Number,10,29,35]; ]
|
||||
public
|
||||
var player as Number;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 11; @position = 15; @symbol_vardef = [remaining,11,15,24]; @symbol_type<0> = [Number,11,29,35]; ]
|
||||
public
|
||||
var remaining as Number;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 12; @position = 15; @symbol_vardef = [isActive,12,15,23]; @symbol_type<0> = [Boolean,12,29,36]; ]
|
||||
public
|
||||
var isActive as Boolean;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 14; @position = 16; @symbol_vardef = [start,14,16,21]; @symbol_type<0> = [Number,14,29,35]; ]
|
||||
private
|
||||
var start as Number or Null;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 15; @position = 16; @symbol_vardef = [end,15,16,19]; @symbol_type<0> = [Number,15,29,35]; ]
|
||||
private
|
||||
var end as Number or Null;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 16; @position = 16; @symbol_vardef = [duration,16,16,24]; @symbol_type<0> = [Number,16,29,35]; ]
|
||||
private
|
||||
var duration as Number or Null;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 17; @position = 16; @symbol_vardef = [_datetime,17,16,25]; @symbol_type<0> = [Number,17,29,35]; ]
|
||||
private
|
||||
var _datetime as Number or Null;
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 21; @symbol_functiondef = [initialize,21,13,23]; @symbol_param<0> = [tm,21,24,26]; @symbol_param<0>_type<0> = [enTeam,21,30,36]; @symbol_param<1> = [cd,21,38,40]; @symbol_param<1>_type<0> = [enCard,21,44,50]; @symbol_param<2> = [pl,21,52,54]; @symbol_param<2>_type<0> = [Number,21,58,64]; @symbol_param<3> = [dn,21,66,68]; @symbol_param<3>_type<0> = [Number,21,72,78]; @symbol_param<4> = [st,21,80,82]; @symbol_param<4>_type<0> = [Number,21,86,92]; ]
|
||||
function initialize(tm as enTeam, cd as enCard, pl as Number, dn as Number, st as Number) as Void {
|
||||
_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchCard_mc_21_93_34_4_start:
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 22 8 ]
|
||||
%tmp.1 = lgetv %tm;
|
||||
symbol [ tm %tmp.1 22 19 21 ];
|
||||
symbol [ team ? 22 8 12 ];
|
||||
putv self :team %tmp.1;
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 23 8 ]
|
||||
%tmp.2 = lgetv %cd;
|
||||
symbol [ cd %tmp.2 23 19 21 ];
|
||||
symbol [ card ? 23 8 12 ];
|
||||
putv self :card %tmp.2;
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 24 8 ]
|
||||
%tmp.3 = lgetv %st;
|
||||
symbol [ st %tmp.3 24 19 21 ];
|
||||
symbol [ start ? 24 8 13 ];
|
||||
putv self :start %tmp.3;
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 25 8 ]
|
||||
%tmp.4 = lgetv %dn;
|
||||
symbol [ dn %tmp.4 25 19 21 ];
|
||||
%tmp.5 = 60;
|
||||
%tmp.6 = mul %tmp.4 %tmp.5;
|
||||
symbol [ duration ? 25 8 16 ];
|
||||
putv self :duration %tmp.6;
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 26 8 ]
|
||||
symbol [ duration %tmp.8 26 20 28 ];
|
||||
%tmp.8 = getv ? :duration;
|
||||
symbol [ remaining ? 26 8 17 ];
|
||||
putv self :remaining %tmp.8;
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 27 8 ]
|
||||
symbol [ start %tmp.10 27 19 24 ];
|
||||
%tmp.10 = getv ? :start;
|
||||
symbol [ duration %tmp.12 27 27 35 ];
|
||||
%tmp.12 = getv ? :duration;
|
||||
%tmp.13 = add %tmp.10 %tmp.12;
|
||||
symbol [ end ? 27 8 11 ];
|
||||
putv self :end %tmp.13;
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 28 8 ]
|
||||
%tmp.14 = lgetv %pl;
|
||||
symbol [ pl %tmp.14 28 19 21 ];
|
||||
symbol [ player ? 28 8 14 ];
|
||||
putv self :player %tmp.14;
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 29 8 ]
|
||||
%tmp.15 = true;
|
||||
symbol [ isActive ? 29 8 16 ];
|
||||
putv self :isActive %tmp.15;
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 30 8 ]
|
||||
symbol [ Time %tmp.16 30 20 24 ];
|
||||
%tmp.16 = getm $.Toybox.Time;
|
||||
symbol [ now %tmp.17 30 25 28 ];
|
||||
%tmp.17 = getv function %tmp.16 :now;
|
||||
%tmp.18 = invoke %tmp.16 %tmp.17();
|
||||
symbol [ value %tmp.19 30 31 36 ];
|
||||
%tmp.19 = getv function %tmp.18 :value;
|
||||
%tmp.20 = invoke %tmp.18 %tmp.19();
|
||||
symbol [ _datetime ? 30 8 17 ];
|
||||
putv self :_datetime %tmp.20;
|
||||
_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchCard_mc_21_93_34_4_stop:
|
||||
}
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 40; @symbol_functiondef = [dummy,40,20,25]; @symbol_param<0> = [q,40,26,27]; @symbol_param<0>_type<0> = [Boolean,40,31,38]; ]
|
||||
public
|
||||
function dummy(q as Boolean) as Void {
|
||||
}
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 42; @symbol_functiondef = [update,42,20,26]; @symbol_param<0> = [el,42,27,29]; @symbol_param<0>_type<0> = [Number,42,33,39]; ]
|
||||
public
|
||||
function update(el as Number) as Void {
|
||||
_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchCard_mc_42_48_50_4_start:
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 43 8 ]
|
||||
symbol [ end %tmp.2 43 20 23 ];
|
||||
%tmp.2 = getv ? :end;
|
||||
%tmp.3 = lgetv %el;
|
||||
symbol [ el %tmp.3 43 26 28 ];
|
||||
%tmp.4 = sub %tmp.2 %tmp.3;
|
||||
symbol [ remaining ? 43 8 17 ];
|
||||
putv self :remaining %tmp.4;
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 45 8 ]
|
||||
_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchCard_mc_45_8_49_8_if_stmt:
|
||||
symbol [ end %tmp.6 45 11 14 ];
|
||||
%tmp.6 = getv ? :end;
|
||||
%tmp.7 = lgetv %el;
|
||||
symbol [ el %tmp.7 45 17 19 ];
|
||||
%tmp.8 = sub %tmp.6 %tmp.7;
|
||||
%tmp.9 = 0;
|
||||
%tmp.10 = eq %tmp.8 %tmp.9;
|
||||
bf %tmp.10 @_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchCard_mc_45_8_49_8_if_end;
|
||||
_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchCard_mc_45_8_49_8_if_true:
|
||||
_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchCard_mc_45_25_49_8_start:
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 47 16 ]
|
||||
symbol [ System %tmp.11 47 16 22 ];
|
||||
%tmp.11 = getm $.Toybox.System;
|
||||
symbol [ println %tmp.12 47 23 30 ];
|
||||
%tmp.12 = getv function %tmp.11 :println;
|
||||
symbol [ Lang %tmp.13 47 31 35 ];
|
||||
%tmp.13 = getm $.Toybox.Lang;
|
||||
symbol [ format %tmp.14 47 36 42 ];
|
||||
%tmp.14 = getv function %tmp.13 :format;
|
||||
%tmp.15 = "Card: $1$ Over";
|
||||
%tmp.16 = newa 1;
|
||||
symbol [ player %tmp.18 47 61 67 ];
|
||||
%tmp.18 = getv ? :player;
|
||||
symbol [ format %tmp.19 47 68 74 ];
|
||||
%tmp.19 = getv function %tmp.18 :format;
|
||||
%tmp.20 = "%02d";
|
||||
%tmp.21 = invoke %tmp.18 %tmp.19(%tmp.20);
|
||||
%tmp.22 = dup %tmp.16;
|
||||
%tmp.23 = aputv %tmp.22 0 %tmp.21;
|
||||
%tmp.24 = invoke %tmp.13 %tmp.14(%tmp.15, %tmp.23);
|
||||
invoke %tmp.11 %tmp.12(%tmp.24);
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 48 16 ]
|
||||
%tmp.25 = false;
|
||||
symbol [ isActive ? 48 16 24 ];
|
||||
putv self :isActive %tmp.25;
|
||||
_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchCard_mc_45_25_49_8_stop:
|
||||
goto @_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchCard_mc_45_8_49_8_if_end;
|
||||
_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchCard_mc_45_8_49_8_if_end:
|
||||
_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchCard_mc_42_48_50_4_stop:
|
||||
}
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 52; @symbol_functiondef = [toDict,52,13,19]; @symbol_return<0> = [Dictionary,52,25,35]; ]
|
||||
function toDict() as Dictionary {
|
||||
_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchCard_mc_52_36_62_4_start:
|
||||
[ "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc" 53 8 ]
|
||||
%tmp.1 = newd 7;
|
||||
%tmp.2 = "team";
|
||||
symbol [ team %tmp.4 54 26 30 ];
|
||||
%tmp.4 = getv ? :team;
|
||||
%tmp.5 = dup %tmp.1;
|
||||
%tmp.6 = aputv %tmp.5 %tmp.2 %tmp.4;
|
||||
%tmp.7 = "start";
|
||||
symbol [ start %tmp.9 55 26 31 ];
|
||||
%tmp.9 = getv ? :start;
|
||||
%tmp.10 = dup %tmp.6;
|
||||
%tmp.11 = aputv %tmp.10 %tmp.7 %tmp.9;
|
||||
%tmp.12 = "end";
|
||||
symbol [ end %tmp.14 56 26 29 ];
|
||||
%tmp.14 = getv ? :end;
|
||||
%tmp.15 = dup %tmp.11;
|
||||
%tmp.16 = aputv %tmp.15 %tmp.12 %tmp.14;
|
||||
%tmp.17 = "card";
|
||||
symbol [ card %tmp.19 57 26 30 ];
|
||||
%tmp.19 = getv ? :card;
|
||||
%tmp.20 = dup %tmp.16;
|
||||
%tmp.21 = aputv %tmp.20 %tmp.17 %tmp.19;
|
||||
%tmp.22 = "player";
|
||||
symbol [ player %tmp.24 58 26 32 ];
|
||||
%tmp.24 = getv ? :player;
|
||||
%tmp.25 = dup %tmp.21;
|
||||
%tmp.26 = aputv %tmp.25 %tmp.22 %tmp.24;
|
||||
%tmp.27 = "duration";
|
||||
symbol [ duration %tmp.29 59 26 34 ];
|
||||
%tmp.29 = getv ? :duration;
|
||||
%tmp.30 = dup %tmp.26;
|
||||
%tmp.31 = aputv %tmp.30 %tmp.27 %tmp.29;
|
||||
%tmp.32 = "datetime";
|
||||
symbol [ _datetime %tmp.34 60 26 35 ];
|
||||
%tmp.34 = getv ? :_datetime;
|
||||
%tmp.35 = dup %tmp.31;
|
||||
%tmp.36 = aputv %tmp.35 %tmp.32 %tmp.34;
|
||||
ret %tmp.36;
|
||||
_home_keith_Documents_code_garmin_hockeyTimermk3_hockeyTimer_source_test_matchCard_mc_52_36_62_4_stop:
|
||||
}
|
||||
}
|
||||
[ @file = "/home/keith/Documents/code/garmin/hockeyTimermk3/hockeyTimer/source/test/matchCard.mc"; @line = 1; ]
|
||||
<init> {
|
||||
}
|
||||
Reference in new issue
Block a user