max_stars_repo_path stringlengths 4 261 | max_stars_repo_name stringlengths 6 106 | max_stars_count int64 0 38.8k | id stringlengths 1 6 | text stringlengths 7 1.05M |
|---|---|---|---|---|
src/parser/sparqlParser/generated/SparqlAutomatic.g4 | ad-freiburg/qlever | 41 | 2315 | /*
* Copyright 2007 the original author or authors.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
* conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following
* disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided with the distribution.
*
* Neither the name of the author or authors nor the names of its contributors may be used to endorse or promote
* products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* @author <NAME> (simone)
* @author <NAME> (michele)
* Ported to Antlr4 by <NAME>
* Extended for use with QLever by <NAME> (<EMAIL>)
* and <NAME> (<EMAIL>)
*/
grammar SparqlAutomatic;
query
: prologue (selectQuery | constructQuery | describeQuery | askQuery) valuesClause EOF
;
//updateUnit : update;
prologue
: (baseDecl | prefixDecl)*
;
baseDecl
: BASE iriref
;
prefixDecl
: PREFIX PNAME_NS iriref
;
selectQuery : selectClause datasetClause* whereClause solutionModifier;
subSelect : selectClause whereClause solutionModifier valuesClause;
selectClause
: SELECT ( DISTINCT | REDUCED)? ( ( var | alias )+ | '*' ) // extracted the alias rule for easier visiting.
;
alias: ( '(' aliasWithouBrackes ')' ) ; // NOT part of sparql, for easier antlr parsing
aliasWithouBrackes : ( expression AS var ); // Needed for interaction between old and new parser
constructQuery : CONSTRUCT ( constructTemplate datasetClause* whereClause solutionModifier | datasetClause* WHERE '{' triplesTemplate? '}' solutionModifier );
describeQuery : DESCRIBE ( varOrIri+ | '*' ) datasetClause* whereClause? solutionModifier;
askQuery : ASK datasetClause* whereClause solutionModifier;
datasetClause : FROM ( defaultGraphClause | namedGraphClause ) ;
defaultGraphClause
: sourceSelector
;
namedGraphClause
: NAMED sourceSelector
;
sourceSelector
: iri
;
whereClause
: WHERE? groupGraphPattern
;
solutionModifier
: groupClause? havingClause? orderClause? limitOffsetClauses?
;
groupClause: GROUPBY groupCondition+ ;
groupCondition : builtInCall | functionCall | '(' expression ( AS var )? ')' | var;
havingClause: HAVING havingCondition+;
havingCondition : constraint;
orderClause
: ORDERBY orderCondition+
;
orderCondition
: ( ( ASC | DESC ) brackettedExpression )
| ( constraint | var )
;
// This is an extension to the SPARQL standard.
// We're adding an additional modifier to the limitOffsetClauses. This
// modifier `TEXTLIMIT` is used in QLever's full-text index. The order of the
// solution modifiers does not matter, but each of them may occur at most
// once. This behavior is the same as in standard SPARQL.
limitOffsetClauses
: limitClause offsetClause? textLimitClause?
| limitClause textLimitClause? offsetClause?
| offsetClause limitClause? textLimitClause?
| offsetClause textLimitClause? limitClause?
| textLimitClause offsetClause? limitClause?
| textLimitClause limitClause? offsetClause?
;
limitClause
: LIMIT integer
;
offsetClause
: OFFSET integer
;
textLimitClause
: TEXTLIMIT integer
;
valuesClause : ( VALUES dataBlock )?;
// omitted rules 29 - 50 which are there for unsupported query types ( not select)
triplesTemplate: triplesSameSubject ( '.' triplesTemplate? )?;
groupGraphPattern
: '{' ( subSelect | groupGraphPatternSub )'}'
;
groupGraphPatternSub
: triplesBlock? ( graphPatternNotTriples '.'? triplesBlock? )*
;
triplesBlock
: triplesSameSubjectPath ( '.' triplesBlock? )?
;
graphPatternNotTriples
: groupOrUnionGraphPattern | optionalGraphPattern | minusGraphPattern | graphGraphPattern | serviceGraphPattern | filterR | bind | inlineData
;
optionalGraphPattern
: OPTIONAL groupGraphPattern
;
graphGraphPattern
: GRAPH varOrIri groupGraphPattern
;
serviceGraphPattern
: SERVICE SILENT? varOrIri groupGraphPattern
;
bind : BIND '(' expression AS var ')' ;
inlineData : VALUES dataBlock ;
dataBlock : inlineDataOneVar | inlineDataFull ;
inlineDataOneVar : var '{' dataBlockValue* '}' ;
inlineDataFull : ( NIL | '(' var* ')' ) '{' dataBlockSingle* '}'; // factored out dataBlockSingle for antlr
dataBlockSingle:( '(' dataBlockValue* ')' | NIL ); // helper rule for antlr
dataBlockValue : iri | rdfLiteral | numericLiteral | booleanLiteral | 'UNDEF' ;
minusGraphPattern : MINUS groupGraphPattern;
groupOrUnionGraphPattern
: groupGraphPattern ( UNION groupGraphPattern )*
;
filterR
: FILTER constraint
;
constraint
: brackettedExpression | builtInCall | functionCall
;
functionCall
: iri argList;
argList
: NIL | '(' DISTINCT? expression ( ',' expression )* ')'
;
expressionList : NIL | '(' expression ( ',' expression )* ')';
constructTemplate
: '{' constructTriples? '}'
;
constructTriples
: triplesSameSubject ( '.' constructTriples? )?
;
triplesSameSubject
: varOrTerm propertyListNotEmpty | triplesNode propertyList
;
propertyList
: propertyListNotEmpty?
;
propertyListNotEmpty
: verb objectList ( ';' ( verb objectList )? )*
;
verb
: varOrIri | 'a' ;
objectList
: objectR ( ',' objectR )*
;
objectR : graphNode;
triplesSameSubjectPath
: varOrTerm propertyListPathNotEmpty | triplesNodePath propertyListPath
;
propertyListPath
: propertyListPathNotEmpty?
;
propertyListPathNotEmpty
: verbPathOrSimple objectListPath ( ';' ( verbPathOrSimple objectList )? )*
;
verbPath
: path
;
verbSimple
: var
;
/*
* We need an extra rule for this since otherwise ANTLR gives us no easy way to
* treat the verbPaths/verbSimples above as a single list in the correct order as we lose
* the order between the separe verbPath/verbSimple lists.
*/
verbPathOrSimple
: (verbPath | verbSimple)
;
/* property paths */
objectListPath
: objectPath ( ',' objectPath )*
;
objectPath
: graphNodePath
;
path
: pathAlternative
;
pathAlternative
: pathSequence ( '|' pathSequence )*
;
pathSequence
: pathEltOrInverse ( '/' pathEltOrInverse )*
;
pathElt
: pathPrimary pathMod?
;
pathEltOrInverse
: pathElt | '^' pathElt
;
pathMod
: '+' | '*' | '?'
;
pathPrimary
: iri | 'a' | '!' pathNegatedPropertySet | '(' path ')'
;
pathNegatedPropertySet
: pathOneInPropertySet | '(' ( pathOneInPropertySet ( '|' pathOneInPropertySet )* )? ')'
;
pathOneInPropertySet
: iri | 'a' | '^' ( iri | 'a' )
;
/* property paths end */
integer : INTEGER;
triplesNode
: collection
| blankNodePropertyList
;
blankNodePropertyList
: '[' propertyListNotEmpty ']'
;
triplesNodePath
: collectionPath
| blankNodePropertyListPath
;
blankNodePropertyListPath
: '[' propertyListPathNotEmpty ']'
;
collection
: '(' graphNode+ ')'
;
collectionPath
: '(' graphNodePath+ ')'
;
graphNode
: varOrTerm | triplesNode
;
graphNodePath
: varOrTerm | triplesNodePath
;
varOrTerm
: var
| graphTerm
;
varOrIri
: var | iri
;
var
: VAR1
| VAR2
;
graphTerm
: iri
| rdfLiteral
| numericLiteral
| booleanLiteral
| blankNode
| NIL
;
expression
: conditionalOrExpression
;
conditionalOrExpression
: conditionalAndExpression ( '||' conditionalAndExpression )*
;
conditionalAndExpression
: valueLogical ( '&&' valueLogical )*
;
valueLogical
: relationalExpression
;
relationalExpression
: numericExpression ( '=' numericExpression | '!=' numericExpression | numericExpression | '>' numericExpression | '<=' numericExpression | '>=' numericExpression | IN expressionList | NOT IN expressionList)?
;
numericExpression
: additiveExpression
;
additiveExpression :
multiplicativeExpression ( '+' multiplicativeExpression | '-' multiplicativeExpression | strangeMultiplicativeSubexprOfAdditive)*
;
strangeMultiplicativeSubexprOfAdditive:
( numericLiteralPositive | numericLiteralNegative ) ( ( '*' unaryExpression ) | ( '/' unaryExpression ) )*
;
multiplicativeExpression
: unaryExpression ( '*' unaryExpression | '/' unaryExpression )*
;
unaryExpression
: '!' primaryExpression
| '+' primaryExpression
| '-' primaryExpression
| primaryExpression
;
primaryExpression
: brackettedExpression | builtInCall | iriOrFunction | rdfLiteral | numericLiteral | booleanLiteral | var;
brackettedExpression
: '(' expression ')'
;
builtInCall : aggregate
| STR '(' expression ')'
| LANG '(' expression ')'
| LANGMATCHES '(' expression ',' expression ')'
| DATATYPE '(' expression ')'
| BOUND '(' var ')'
| IRI '(' expression ')'
| URI '(' expression ')'
| BNODE ( '(' expression ')' | NIL )
| RAND NIL
| ABS '(' expression ')'
| CEIL '(' expression ')'
| FLOOR '(' expression ')'
| ROUND '(' expression ')'
| CONCAT expressionList
| substringExpression
| STRLEN '(' expression ')'
| strReplaceExpression
| UCASE '(' expression ')'
| LCASE '(' expression ')'
| ENCODE '_' FOR '_' URI '(' expression ')'
| CONTAINS '(' expression ',' expression ')'
| STRSTARTS '(' expression ',' expression ')'
| STRENDS '(' expression ',' expression ')'
| STRBEFORE '(' expression ',' expression ')'
| STRAFTER '(' expression ',' expression ')'
| YEAR '(' expression ')'
| MONTH '(' expression ')'
| DAY '(' expression ')'
| HOURS '(' expression ')'
| MINUTES '(' expression ')'
| SECONDS '(' expression ')'
| TIMEZONE '(' expression ')'
| TZ '(' expression ')'
| NOW NIL
| UUID NIL
| STRUUID NIL
| MD5 '(' expression ')'
| SHA1 '(' expression ')'
| SHA256 '(' expression ')'
| SHA384 '(' expression ')'
| SHA512 '(' expression ')'
| COALESCE expressionList
| IF '(' expression ',' expression ',' expression ')'
| STRLANG '(' expression ',' expression ')'
| STRDT '(' expression ',' expression ')'
| SAMETERM '(' expression ',' expression ')'
| ISIRI '(' expression ')'
| ISURI '(' expression ')'
| ISBLANK '(' expression ')'
| ISLITERAL '(' expression ')'
| ISNUMERIC '(' expression ')'
| regexExpression
| existsFunc
| notExistsFunc;
regexExpression : REGEX '(' expression ',' expression ( ',' expression )? ')';
substringExpression : SUBSTR '(' expression ',' expression ( ',' expression )? ')' ;
strReplaceExpression : REPLACE '(' expression ',' expression ',' expression ( ',' expression )? ')';
existsFunc : EXISTS groupGraphPattern;
notExistsFunc : NOT EXISTS groupGraphPattern;
aggregate : COUNT '(' DISTINCT? ( '*' | expression ) ')'
| SUM '(' DISTINCT? expression ')'
| MIN '(' DISTINCT? expression ')'
| MAX '(' DISTINCT? expression ')'
| AVG '(' DISTINCT? expression ')'
| SAMPLE '(' DISTINCT? expression ')'
| GROUP_CONCAT '(' DISTINCT? expression ( ';' SEPARATOR '=' string )? ')' ;
iriOrFunction
: iri argList?
;
rdfLiteral
: string ( LANGTAG | ( '^^' iri ) )?
;
numericLiteral
: numericLiteralUnsigned | numericLiteralPositive | numericLiteralNegative
;
numericLiteralUnsigned
: INTEGER
| DECIMAL
| DOUBLE
;
numericLiteralPositive
: INTEGER_POSITIVE
| DECIMAL_POSITIVE
| DOUBLE_POSITIVE
;
numericLiteralNegative
: INTEGER_NEGATIVE
| DECIMAL_NEGATIVE
| DOUBLE_NEGATIVE
;
booleanLiteral
: 'true'
| 'false'
;
string
: STRING_LITERAL1
| STRING_LITERAL2
| STRING_LITERAL_LONG1 | STRING_LITERAL_LONG2
/* | STRING_LITERAL_LONG('0'..'9') | STRING_LITERAL_LONG('0'..'9')*/
;
iri
: (LANGTAG '@')? (iriref
| prefixedName)
;
prefixedName
: pnameLn
| pnameNs
;
blankNode
: BLANK_NODE_LABEL
| ANON
;
iriref : IRI_REF;
pnameLn
: PNAME_LN
;
pnameNs : PNAME_NS;
BASE : B A S E;
PREFIX : P R E F I X;
//PREFIX : 'PREFIX';
SELECT : S E L E C T;
DISTINCT : D I S T I N C T;
REDUCED : R E D U C E D;
AS : A S;
CONSTRUCT : C O N S T R U C T;
WHERE : W H E R E;
DESCRIBE : D E S C R I B E;
ASK : A S K;
FROM : F R O M;
NAMED : N A M E D;
GROUPBY : G R O U P WS+ B Y;
GROUP_CONCAT : G R O U P '_' C O N C A T;
HAVING : H A V I N G;
ORDERBY: O R D E R WS+ B Y;
ASC : A S C;
DESC : D E S C;
LIMIT : L I M I T;
OFFSET : O F F S E T;
TEXTLIMIT: T E X T L I M I T;
VALUES : V A L U E S;
LOAD : L O A D;
SILENT : S I L E N T;
CLEAR : C L E A R;
DROP : D R O P;
CREATE: C R E A T E;
ADD: A D D;
DATA: D A T A;
MOVE: M O V E;
COPY: C O P Y;
INSERT : I N S E R T;
DELETE : D E L E T E;
WITH: W I T H;
USING: U S I N G;
DEFAULT : D E F A U L T;
GRAPH: G R A P H;
ALL : A L L;
OPTIONAL : O P T I O N A L;
SERVICE : S E R V I C E;
BIND: B I N D;
UNDEF: U N D E F;
MINUS : M I N U S;
UNION: U N I O N;
FILTER : F I L T E R;
NOT : N O T;
IN : I N ;
STR : S T R;
LANG : L A N G;
LANGMATCHES : L A N G M A T C H E S;
DATATYPE : D A T A T Y P E;
BOUND : B O U N D;
IRI : I R I;
URI : U R I;
BNODE : B N O D E;
RAND : R A N D;
ABS : A B S;
CEIL : C E I L;
FLOOR : F L O O R;
ROUND : R O U N D;
CONCAT : C O N C A T;
STRLEN : S T R L E N;
UCASE : U C A S E;
LCASE : L C A S E;
ENCODE : E N C O D E;
FOR : F O R;
CONTAINS : C O N T A I N S;
STRSTARTS : S T R S T A R T S;
STRENDS : S T R E N D S;
STRBEFORE : S T R B E F O R E;
STRAFTER : S T R A F T E R;
YEAR : Y E A R;
MONTH : M O N T H;
DAY : D A Y;
HOURS : H O U R S;
MINUTES : M I N U T E S;
SECONDS : S E C O N D S;
TIMEZONE : T I M E Z O N E;
TZ : T Z;
NOW : N O W;
UUID : U U I D;
STRUUID : S T R U U I D;
SHA1 : S H A '1';
SHA256 : S H A '256';
SHA384 : S H A '382';
SHA512 : S H A '512';
MD5 : M D '5';
COALESCE : C O A L E S C E;
IF : I F;
STRLANG : S T R L A N G;
STRDT : S T R D T;
SAMETERM : S A M E T E R M;
ISIRI : I S I R I;
ISURI : I S U R I;
ISBLANK : I S B L A N K;
ISLITERAL : I S L I T E R A L;
ISNUMERIC : I S N U M E R I C;
REGEX : R E G E X;
SUBSTR : S U B S T R;
REPLACE : R E P L A C E;
EXISTS : E X I S T S;
COUNT : C O U N T;
SUM : S U M;
MIN : M I N;
MAX : M A X;
AVG : A V G;
SAMPLE : S A M P L E;
SEPARATOR : S E P A R A T O R;
// LEXER RULES
IRI_REF
: '<' ~('<' | '>' | '"' | '{' | '}' | '|' | '^' | '\\' | '`'| '\u0000'..'\u0020')* '>'
;
PNAME_NS
: PN_PREFIX? ':'
;
PNAME_LN : PNAME_NS PN_LOCAL;
BLANK_NODE_LABEL
: '_:' ( PN_CHARS_U | DIGIT ) ((PN_CHARS|'.')* PN_CHARS)?
;
VAR1
: '?' VARNAME
;
VAR2
: '$' VARNAME
;
LANGTAG
: '@' ('a'..'z' | 'A' .. 'Z')+ ('-' ('a'..'z' | 'A' .. 'Z' | DIGIT)+)*
;
INTEGER
: DIGIT+
;
DECIMAL
: DIGIT* '.' DIGIT+
;
DOUBLE
: DIGIT+ '.' DIGIT* EXPONENT
| '.' DIGIT+ EXPONENT
| DIGIT+ EXPONENT
;
INTEGER_POSITIVE
: '+' INTEGER
;
DECIMAL_POSITIVE
: '+' DECIMAL
;
DOUBLE_POSITIVE
: '+' DOUBLE
;
INTEGER_NEGATIVE
: '-' INTEGER
;
DECIMAL_NEGATIVE
: '-' DECIMAL
;
DOUBLE_NEGATIVE
: '-' DOUBLE
;
EXPONENT
: ('e'|'E') ('+'|'-')? DIGIT+
;
STRING_LITERAL1
: '\'' ( ~('\u0027' | '\u005C' | '\u000A' | '\u000D') | ECHAR )* '\''
;
STRING_LITERAL2
: '"' ( ~('\u0022' | '\u005C' | '\u000A' | '\u000D') | ECHAR )* '"'
;
STRING_LITERAL_LONG1
: '\'\'\'' ( ( '\'' | '\'\'' )? (~('\'' | '\\') | ECHAR ) )* '\'\'\''
;
STRING_LITERAL_LONG2
: '"""' ( ( '"' | '""' )? ( ~('"' | '\\') | ECHAR ) )* '"""'
;
ECHAR
: '\\' ('t' | 'b' | 'n' | 'r' | 'f' | '"' | '\'' | '\\')
;
NIL
: '(' WS* ')'
;
ANON
: '[' WS* ']'
;
PN_CHARS_U
: PN_CHARS_BASE | '_'
;
VARNAME
: ( PN_CHARS_U | DIGIT ) ( PN_CHARS_U | DIGIT | '\u00B7' | ('\u0300'..'\u036F') | ('\u203F'..'\u2040') )*
;
fragment
PN_CHARS
: PN_CHARS_U
| '-'
| DIGIT
| '\u00B7'
| '\u0300'..'\u036F'
| '\u203F'..'\u2040'
;
PN_PREFIX
: PN_CHARS_BASE ((PN_CHARS|'.')* PN_CHARS)?
;
PN_LOCAL
: ( PN_CHARS_U | ':' | DIGIT | PLX ) ((PN_CHARS|'.' | ':' | PLX)* (PN_CHARS | ':' | PLX))?
;
PLX:
PERCENT | PN_LOCAL_ESC;
PERCENT :
'%' HEX HEX;
HEX:
DIGIT | 'A'..'F' | 'a'..'f';
PN_LOCAL_ESC :
'\\' ( '_' | '~' | '.' | '-' | '!' | '$' | '&' | '\'' | '(' | ')' | '*' | '+' | ',' | ';' | '=' | '/' | '?' | '#' | '@' | '%' );
fragment
PN_CHARS_BASE
: 'A'..'Z'
| 'a'..'z'
| '\u00C0'..'\u00D6'
| '\u00D8'..'\u00F6'
| '\u00F8'..'\u02FF'
| '\u0370'..'\u037D'
| '\u037F'..'\u1FFF'
| '\u200C'..'\u200D'
| '\u2070'..'\u218F'
| '\u2C00'..'\u2FEF'
| '\u3001'..'\uD7FF'
| '\uF900'..'\uFDCF'
| '\uFDF0'..'\uFFFD'
// not supported by antlr4 | '\U00010000'..'\U000EFFFF'
;
fragment
DIGIT
: '0'..'9'
;
WS
: (' '
| '\t'
| '\n'
| '\r')+ ->skip
;
COMMENTS
: '#' ~( '\r' | '\n')* ->skip
;
// todo: builtin call
fragment A : ('a' | 'A');
fragment B : ('b' | 'B');
fragment C : ('c' | 'C');
fragment D : ('d' | 'D');
fragment E : ('e' | 'E');
fragment F : ('f' | 'F');
fragment G : ('g' | 'G');
fragment H : ('h' | 'H');
fragment I : ('i' | 'I');
fragment J : ('j' | 'J');
fragment K : ('k' | 'K');
fragment L : ('l' | 'L');
fragment M : ('m' | 'M');
fragment N : ('n' | 'N');
fragment O : ('o' | 'O');
fragment P : ('p' | 'P');
fragment Q : ('q' | 'Q');
fragment R : ('r' | 'R');
fragment S : ('s' | 'S');
fragment T : ('t' | 'T');
fragment U : ('u' | 'U');
fragment V : ('v' | 'V');
fragment W : ('w' | 'W');
fragment X : ('x' | 'X');
fragment Y : ('y' | 'Y');
fragment Z : ('z' | 'Z');
/*
fragment A : [aA]; // match either an 'a' or 'A'
fragment B : [bB];
fragment C : [cC];
fragment D : [dD];
fragment E : [eE];
fragment F : [fF];
fragment G : [gG];
fragment H : [hH];
fragment I : [iI];
fragment J : [jJ];
fragment K : [kK];
fragment L : [lL];
fragment M : [mM];
fragment N : [nN];
fragment O : [oO];
fragment P : [pP];
fragment Q : [qQ];
fragment R : [rR];
fragment S : [sS];
fragment T : [tT];
fragment U : [uU];
fragment V : [vV];
fragment W : [wW];
fragment X : [xX];
fragment Y : [yY];
fragment Z : [zZ];
*/ |
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_4293_1102.asm | ljhsiun2/medusa | 9 | 170948 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x18a71, %rdx
clflush (%rdx)
nop
nop
nop
dec %rdi
movl $0x61626364, (%rdx)
nop
nop
nop
nop
and $21435, %rbx
lea addresses_D_ht+0x12b79, %rbp
nop
nop
nop
nop
nop
add %rsi, %rsi
movb $0x61, (%rbp)
cmp %rdi, %rdi
lea addresses_UC_ht+0x11801, %rsi
lea addresses_D_ht+0x1c6b9, %rdi
nop
and $34532, %r13
mov $116, %rcx
rep movsb
nop
nop
dec %rdi
lea addresses_D_ht+0x1096e, %r10
nop
nop
nop
xor $6027, %rsi
movb $0x61, (%r10)
nop
dec %rdi
lea addresses_A_ht+0x1eee1, %r13
nop
nop
nop
nop
cmp $4459, %r10
mov $0x6162636465666768, %rbx
movq %rbx, (%r13)
nop
nop
nop
nop
sub $10783, %rdi
lea addresses_WT_ht+0x1acfd, %rsi
lea addresses_normal_ht+0x1d2f1, %rdi
nop
nop
nop
nop
nop
cmp %rdx, %rdx
mov $80, %rcx
rep movsq
nop
nop
nop
add $11079, %rbx
lea addresses_D_ht+0x10585, %rbp
nop
nop
add %rcx, %rcx
mov (%rbp), %dx
nop
nop
nop
sub %rsi, %rsi
lea addresses_A_ht+0x13f31, %rdx
nop
nop
xor $60785, %rcx
mov $0x6162636465666768, %r13
movq %r13, (%rdx)
nop
nop
nop
nop
sub $28007, %rbx
lea addresses_UC_ht+0x16971, %rsi
lea addresses_WT_ht+0x9ab5, %rdi
nop
and $55584, %rbp
mov $40, %rcx
rep movsq
nop
cmp $11762, %rsi
lea addresses_D_ht+0x13ab, %rbp
nop
nop
cmp $24863, %rsi
movw $0x6162, (%rbp)
nop
nop
and $60362, %rbx
lea addresses_D_ht+0x1605d, %rsi
lea addresses_A_ht+0x12a71, %rdi
nop
nop
nop
cmp $51504, %rdx
mov $12, %rcx
rep movsw
nop
nop
nop
nop
inc %rcx
lea addresses_A_ht+0xeae9, %rsi
nop
sub $4301, %rbx
mov $0x6162636465666768, %rbp
movq %rbp, %xmm4
vmovups %ymm4, (%rsi)
nop
nop
nop
and %rbp, %rbp
lea addresses_WT_ht+0x1ea71, %rbp
nop
nop
nop
nop
nop
add %r10, %r10
movb $0x61, (%rbp)
nop
nop
sub $35351, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r15
push %r8
push %rax
push %rbx
push %rdx
// Store
lea addresses_WT+0xe618, %rax
nop
nop
cmp %rbx, %rbx
mov $0x5152535455565758, %r15
movq %r15, (%rax)
nop
nop
xor %rdx, %rdx
// Store
mov $0x271, %r15
nop
nop
nop
xor $38792, %r12
mov $0x5152535455565758, %rdx
movq %rdx, (%r15)
add $41110, %rbx
// Store
lea addresses_normal+0xb711, %r10
nop
nop
nop
nop
nop
sub %rdx, %rdx
mov $0x5152535455565758, %r8
movq %r8, %xmm3
vmovups %ymm3, (%r10)
nop
nop
nop
xor %r10, %r10
// Store
lea addresses_US+0x731, %rax
nop
nop
nop
inc %rdx
movw $0x5152, (%rax)
nop
nop
nop
sub %r12, %r12
// Load
lea addresses_A+0x16a71, %r12
nop
sub %r15, %r15
movb (%r12), %bl
nop
add $56214, %rbx
// Store
lea addresses_WC+0x19bf1, %r10
nop
nop
nop
cmp %rbx, %rbx
movb $0x51, (%r10)
and %rbx, %rbx
// Faulty Load
lea addresses_UC+0x1da71, %rdx
nop
nop
nop
nop
cmp $49605, %r15
movb (%rdx), %r12b
lea oracles, %r8
and $0xff, %r12
shlq $12, %r12
mov (%r8,%r12,1), %r12
pop %rdx
pop %rbx
pop %rax
pop %r8
pop %r15
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'00': 4293}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
programs/oeis/100/A100071.asm | karttu/loda | 1 | 162860 | ; A100071: a(n) = n * binomial(n-1, floor((n-1)/2)) = n * max_{i=0..n} binomial(n-1, i).
; 0,1,2,6,12,30,60,140,280,630,1260,2772,5544,12012,24024,51480,102960,218790,437580,923780,1847560,3879876,7759752,16224936,32449872,67603900,135207800,280816200,561632400,1163381400,2326762800,4808643120,9617286240,19835652870,39671305740,81676217700,163352435400,335780006100,671560012200,1378465288200,2756930576400,5651707681620,11303415363240,23145088600920,46290177201840,94684453367400,189368906734800,386971244197200,773942488394400,1580132580471900,3160265160943800,6446940928325352
mov $2,2
add $2,$0
div $2,2
mov $1,$2
mov $3,$0
bin $3,$2
mul $3,2
mul $1,$3
div $1,2
|
alloy4fun_models/trashltl/models/7/p96htNBDphuQNx3HK.als | Kaixi26/org.alloytools.alloy | 0 | 3502 | <gh_stars>0
open main
pred idp96htNBDphuQNx3HK_prop8 {
eventually all l: File.link | l in Trash
}
pred __repair { idp96htNBDphuQNx3HK_prop8 }
check __repair { idp96htNBDphuQNx3HK_prop8 <=> prop8o } |
3-mid/opengl/source/lean/opengl-viewport.ads | charlie5/lace | 20 | 30432 | <gh_stars>10-100
package openGL.Viewport
--
-- Models an opendGL viewport.
--
is
function Extent return Extent_2d;
procedure Extent_is (Now : in Extent_2d);
end openGL.Viewport;
|
core/lib/groups/FreeAbelianGroup.agda | AntoineAllioux/HoTT-Agda | 294 | 6101 | {-# OPTIONS --without-K --rewriting #-}
open import lib.Basics
open import lib.NType2
open import lib.types.Group
open import lib.types.Word
open import lib.groups.GeneratedAbelianGroup
open import lib.groups.GeneratedGroup
open import lib.groups.GroupProduct
open import lib.groups.Homomorphism
open import lib.groups.Isomorphism
module lib.groups.FreeAbelianGroup {i} where
module FreeAbelianGroup (A : Type i) where
private
module Gen = GeneratedAbelianGroup A empty-rel
open Gen hiding (GenAbGroup; module HomomorphismEquiv) public
CommutativityRel : Rel (Word A) i
CommutativityRel = AbGroupRel
FormalSumRel : Rel (Word A) i
FormalSumRel = QuotWordRel
FormalSum : Type i
FormalSum = QuotWord
FreeGroup : Group i
FreeGroup = Gen.GenGroup
FreeAbGroup : AbGroup i
FreeAbGroup = Gen.GenAbGroup
module FreeAbGroup = AbGroup FreeAbGroup
{- Universal Property -}
module Freeness {j} (G : AbGroup j) where
private
module G = AbGroup G
extend-equiv : (A → G.El) ≃ (FreeAbGroup.grp →ᴳ G.grp)
extend-equiv =
Gen.HomomorphismEquiv.extend-equiv G ∘e every-function-respects-empty-rel-equiv A G.grp
extend : (A → G.El) → (FreeAbGroup.grp →ᴳ G.grp)
extend = –> extend-equiv
extend-is-equiv : is-equiv extend
extend-is-equiv = snd extend-equiv
extend-hom : Πᴳ A (λ _ → G.grp) →ᴳ hom-group FreeAbGroup.grp G
extend-hom = record {M} where
module M where
f : (A → G.El) → (FreeAbGroup.grp →ᴳ G.grp)
f = extend
abstract
pres-comp : preserves-comp (Group.comp (Πᴳ A (λ _ → G.grp))) (Group.comp (hom-group FreeAbGroup.grp G)) f
pres-comp = λ f₁ f₂ → group-hom= $ λ= $
QuotWord-elim
(Word-extendᴳ-comp G f₁ f₂)
(λ _ → prop-has-all-paths-↓)
extend-iso : Πᴳ A (λ _ → G.grp) ≃ᴳ hom-group FreeAbGroup.grp G
extend-iso = extend-hom , snd extend-equiv
|
oeis/040/A040208.asm | neoneye/loda-programs | 11 | 100548 | ; A040208: Continued fraction for sqrt(223).
; Submitted by <NAME>(s1)
; 14,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13,1,28,1,13
gcd $0,262156
mul $0,42
mod $0,13
mov $1,$0
div $1,5
mul $1,16
add $0,$1
mul $0,2
div $0,3
sub $0,1
|
tools-src/gnu/gcc/gcc/ada/cstand.ads | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 4237 | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- C S T A N D --
-- --
-- S p e c --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992-2000 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
-- MA 02111-1307, USA. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains the procedure that is used to create the tree for
-- package Standard and initialize the entities in package Stand.
with Types; use Types;
package CStand is
procedure Create_Standard;
-- This procedure creates the tree for package standard, and initializes
-- the Standard_Entities array and Standard_Package_Node. First the
-- syntactic representation is created (as though the parser had parsed
-- a copy of the source of Standard) and then semantic information is
-- added as it would be by the semantic phases of the compiler. The
-- tree is in the standard format defined by Syntax_Info, except that
-- all Sloc values are set to Standard_Location except for nodes that
-- are part of package ASCII, which have Sloc = Standard_ASCII_Location.
-- The semantics info is in the format given by Entity_Info. The global
-- variables Last_Standard_Node_Id and Last_Standard_List_Id are also set.
procedure Set_Float_Bounds (Id : Entity_Id);
-- Procedure to set bounds for float type or subtype. Id is the entity
-- whose bounds and type are to be set (a floating-point type).
end CStand;
|
src/main/antlr4/com/github/bigdata/sql/antlr4/stream/StreamSqlLexer.g4 | duhanmin/bigdata-sql-parser | 1 | 3301 | lexer grammar StreamSqlLexer;
channels { DCSTREAMCOMMENT, ERRORCHANNEL }
// SKIP
SPACE: [ \t\r\n]+ -> channel(HIDDEN);
SPEC_MYSQL_COMMENT: '/*!' .+? '*/' -> channel(DCSTREAMCOMMENT);
COMMENT_INPUT: '/*' .*? '*/' -> channel(HIDDEN);
LINE_COMMENT: (
('-- ' | '#') ~[\r\n]* ('\r'? '\n' | EOF)
| '--' ('\r'? '\n' | EOF)
) -> channel(HIDDEN);
// Keywords
// Common Keywords
CREATE: 'CREATE';
TABLE: 'TABLE';
SOURCE: 'SOURCE';
SINK: 'SINK';
WITH: 'WITH';
VIEW: 'VIEW';
COMMENT: 'COMMENT';
TRUE: 'TRUE';
FALSE: 'FALSE';
AS: 'AS';
BY: 'BY';
PROCTIME: 'PROCTIME';
ROWTIME: 'ROWTIME';
SET: 'SET';
WATERMARK: 'WATERMARK';
RANGE: 'RANGE';
DELAY: 'DELAY';
INSERT: 'INSERT';
INTO: 'INTO';
FUNCTION: 'FUNCTION';
USING: 'USING';
MINUSMINUS: '--';
// DATA TYPE Keywords
VARCHAR: 'VARCHAR';
BOOLEAN: 'BOOLEAN';
TINYINT: 'TINYINT';
SMALLINT: 'SMALLINT';
INT: 'INT';
BIGINT: 'BIGINT';
FLOAT: 'FLOAT';
DECIMAL: 'DECIMAL';
DOUBLE: 'DOUBLE';
DATE: 'DATE';
TIME: 'TIME';
TIMESTAMP: 'TIMESTAMP';
// Operators. Arithmetics
STAR: '*';
DIVIDE: '/';
MODULE: '%';
PLUS: '+';
MINUS: '-';
// Operators. Comparation
EQUAL_SYMBOL: '=';
GREATER_SYMBOL: '>';
LESS_SYMBOL: '<';
EXCLAMATION_SYMBOL: '!';
// Operators. Bit
BIT_NOT_OP: '~';
BIT_OR_OP: '|';
BIT_AND_OP: '&';
BIT_XOR_OP: '^';
// Constructors symbols
DOT: '.';
LR_BRACKET: '(';
RR_BRACKET: ')';
COMMA: ',';
SEMI: ';';
DOT_ID: '.' ID_LITERAL;
ID: ID_LITERAL;
REVERSE_QUOTE_ID: '`' ~'`'+ '`';
STRING_LITERAL: DQUOTA_STRING | SQUOTA_STRING;
DECIMAL_LITERAL: DEC_DIGIT+;
REAL_LITERAL: (DEC_DIGIT+)? '.' DEC_DIGIT+
| DEC_DIGIT+ '.' EXPONENT_NUM_PART
| (DEC_DIGIT+)? '.' (DEC_DIGIT+ EXPONENT_NUM_PART)
| DEC_DIGIT+ EXPONENT_NUM_PART;
fragment EXPONENT_NUM_PART: 'E' '-'? DEC_DIGIT+;
fragment ID_LITERAL: [A-Z_$0-9]*?[A-Z_$]+?[A-Z_$0-9]*;
fragment DQUOTA_STRING: '"' ( '\\'. | '""' | ~('"'| '\\') )* '"';
fragment SQUOTA_STRING: '\'' ('\\'. | '\'\'' | ~('\'' | '\\'))* '\'';
fragment DEC_DIGIT: [0-9];
ERROR_RECONGNIGION: . -> channel(ERRORCHANNEL); |
programs/oeis/262/A262037.asm | jmorken/loda | 1 | 176579 | ; A262037: Replace the second half of digits of n with the first half in reverse order.
; 0,1,2,3,4,5,6,7,8,9,11,11,11,11,11,11,11,11,11,11,22,22,22,22,22,22,22,22,22,22,33,33,33,33,33,33,33,33,33,33,44,44,44,44,44,44,44,44,44,44,55,55,55,55,55,55,55,55,55,55,66,66,66,66,66,66,66,66,66,66,77,77,77,77,77,77,77
mov $1,1
lpb $0
mov $2,$0
div $0,10
mov $1,$2
add $1,1
pow $5,5
sub $5,$3
div $5,5
mov $4,$5
mov $6,$5
mov $5,2
add $6,$4
mul $2,$6
add $1,$2
mov $3,5
lpe
sub $1,1
|
cgaeffects/rotatingblock/linchnkl.asm | bocke/CGAGraphics | 17 | 246476 | DOSSEG
.MODEL small
.CODE
jmp_addr DW ?
line_hd_jmptab DW line_hd0, line_hd1, line_hd2, line_hd3
line_hu_jmptab DW line_hu0, line_hu1, line_hu2, line_hu3
line_vd_jmptab DW line_vd_loop1, line_vd_loop2, line_vd_loop3, line_vd_loop4, line_vd_incx11, line_vd_incx21, line_vd_incx31, line_vd_incx41
line_vu_jmptab DW line_vu_loop1, line_vu_loop2, line_vu_loop3, line_vu_loop4, line_vu_incx11, line_vu_incx21, line_vu_incx31, line_vu_incx41
PUBLIC _cga_draw_line_chunky_left
_cga_draw_line_chunky_left PROC
; Draw a line from (x0, y0) to (x1, y1) in the given colour (0-3) in the CGA buffer buff
; with pixels to the right in given colour and ones to the left in colour 0
ARG buff:DWORD, x0:WORD, y0:WORD, x1:WORD, y1:WORD, colour:BYTE
push bp
mov bp, sp
push di
push si
push ds
les di, buff ; set ES to segment for graphics memory (CGA or buffer)
mov ax, es
mov ds, ax ; reflect in DS
mov dx, [x1] ; compute dx
sub dx, [x0]
jae line_dx_pos ; if x1 < x0 switch line endpoints
mov ax, [x0] ; line must always be right moving
xchg ax, [x1]
mov [x0], ax
mov ax, [y0]
xchg ax, [y1]
mov [y0], ax
neg dx
line_dx_pos:
mov ax, [y0] ; compute offset for line y0
shr ax, 1 ; add 8192 to offset if odd line
sbb si, si
and si, 8192
shl ax, 1 ; add 80*y0 to offset
shl ax, 1
shl ax, 1
shl ax, 1
add si, ax
shl ax, 1
shl ax, 1
add si, ax
mov ax, [x0] ; add x0/4 to offset
shr ax, 1
shr ax, 1
add si, ax
add di, si
mov si, [x0] ; compute 2*(x0 mod 4)
and si, 3
shl si, 1
mov cx, 6 ; compute colour shift
sub cx, si
mov bx, [y1] ; compute dy
sub bx, [y0]
jae line_down
neg bx
cmp bx, dx
jbe line_goto_hu
jmp line_vu
line_goto_hu:
jmp line_hu
line_down:
cmp bx, dx
jb line_hd
jmp line_vd
line_hd: ; horizontalish, down
mov si, cs:[line_hd_jmptab + si]
mov cs:[jmp_addr], si
shl ax, 1 ; round x0 down to multiple of 4
shl ax, 1
mov si, [x1] ; compute iterations, unrolled by 4
sub si, ax
inc si
push si ; save iterations for prologue
shr si, 1 ; divide iterations by 4
shr si, 1
xor al, al ; blank previous byte (assumes no overrun of edge of screen)
dec di
stosb
mov ah, [colour] ; get colour
mov al, 0ffh ; get initial shifted mask
add cl, 2
shl al, cl
not al
mov cx, si ; get iterations
shl bx, 1 ; compute 2*dy
xor si, si ; D = -dx
sub si, dx
shl dx, 1 ; compute 2*dx
cmp cl, 0 ; check for zero iterations
jne line_hd_iter
mov cx, [x0]
and cl, 3
inc cl
mov bp, [y0] ; compute initial even/odd offset diff
shr bp, 1
mov bp, 8191
jnc line_hd_even_no_iter
sub bp, 16304
line_hd_even_no_iter:
dec cl
jnz line_hd_not0
jmp line_hd_no_iter0
line_hd_not0:
dec cl
jnz line_hd_not1
pop cx
and cl, 3
jmp line_hd_no_iter1
line_hd_not1:
pop cx
and cl, 3
dec cl
jmp line_hd_no_iter2
line_hd_iter:
mov bp, [y0] ; compute initial even/odd offset diff
shr bp, 1
mov bp, 8191
jnc line_hd_even
sub bp, 16304
line_hd_even:
jmp WORD PTR cs:[jmp_addr]
line_hd0:
add si, bx ; D += 2*dy
jle line_skip_incy_hd0
and al, ah
stosw ; draw pixels
dec di
add di, bp ; odd <-> even line (reenigne's trick)
xor bp, 0ffb0h ; adjust ydelta
sub si, dx ; D -= 2*dx
dec di ; blank previous byte
xor al, al
stosb
mov al, 03fh ; get new mask
line_skip_incy_hd0:
line_hd1:
add si, bx ; D += 2*dy
jle line_skip_incy_hd1
and al, ah ; draw pixels
stosw
dec di
add di, bp ; odd <-> even line (reenigne's trick)
xor bp, 0ffb0h ; adjust ydelta
sub si, dx ; D -= 2*dx
dec di ; blank previous byte
xor al, al
stosb
mov al, 0fh ; get new mask
line_skip_incy_hd1:
line_hd2:
add si, bx ; D += 2*dy
jle line_skip_incy_hd2
and al, ah ; draw pixels
stosw
dec di
add di, bp ; odd <-> even line (reenigne's trick)
xor bp, 0ffb0h ; adjust ydelta
sub si, dx ; D -= 2*dx
dec di ; blank previous byte
xor al, al
stosb
mov al, 03h ; get new mask
line_skip_incy_hd2:
line_hd3:
and al, ah ; draw pixels
stosb
add si, bx ; D += 2*dy
jle line_skip_incy_hd3
mov al, ah ; write next byte
stosb
dec di
add di, bp ; odd <-> even line (reenigne's trick)
xor bp, 0ffb0h ; adjust ydelta
sub si, dx ; D -= 2*dx
inc di
cmp cl, 1
je line_hd_blank_check
dec di ; blank previous byte
xor al, al
stosb
line_skip_incy_hd3:
mov al, 0ffh ; get new mask
loop line_hd0
mov al, ah ; write next byte
stosb
dec di
mov al, 0ffh ; get new mask
jmp line_hd_no_iter0
line_hd_blank_check:
pop cx
and cl, 03h
jz line_hd_done
dec di ; blank previous byte
xor al, al
stosb
mov al, 0ffh ; get new mask
jmp line_hd_skip_iter_test
line_hd_no_iter0:
pop cx ; do remaining iterations (0-3)
and cl, 03h
jz line_hd_done
line_hd_skip_iter_test:
add si, bx ; D += 2*dy
jle line_skip_incy_hd4
and al, ah ; draw pixels
stosw
dec di
add di, bp ; odd <-> even line (reenigne's trick)
xor bp, 0ffb0h ; adjust ydelta
sub si, dx ; D -= 2*dx
cmp cl, 1
je line_hd_done
xor al, al ; blank previous byte
dec di
stosb
mov al, 03fh ; get new mask
line_skip_incy_hd4:
line_hd_no_iter1:
dec cl
jz line_hd_no_iter2
add si, bx ; D += 2*dy
jle line_skip_incy_hd5
and al, ah ; draw pixels
stosw
dec di
add di, bp ; odd <-> even line (reenigne's trick)
xor bp, 0ffb0h ; adjust ydelta
sub si, dx ; D -= 2*dx
cmp cl, 1
je line_hd_done
xor al, al ; blank previous byte
dec di
stosb
mov al, 0fh
line_skip_incy_hd5:
line_hd_no_iter2:
and al, ah ; draw pixels
stosw
line_hd_done:
pop ds
pop si
pop di
pop bp
ret
line_vd: ; verticalish, down
mov ax, [y0] ; start rounding y0 down to multiple of 2
shr ax, 1
jnc line_vd_even ; deal with odd starting line
add si, 8
sub di, 8192 ; addressing below assumes we started on even line
line_vd_even:
shl ax, 1 ; finish rounding y0 down to multiple of 2
mov si, cs:[line_vd_jmptab + si]
mov cs:[jmp_addr], si
mov cx, [y1] ; compute iterations
sub cx, ax
inc cx
shr cx, 1 ; divide iterations by 2
mov ah, [colour] ; get colour
push bp
cmp cl, 0 ; check for zero iterations
jne line_vd_iter
xor bx, bx ; compute al
mov cx, [x0]
and cl, 3
shl cl, 1
mov al, 0ffh
shr al, cl
jmp line_vd_no_iter
line_vd_iter:
shl dx, 1 ; compute 2*dx
mov si, bx ; compute D
mov bp, bx
shl bp, 1 ; compute 2*dy
sub dx, bp ; compute 2*dx - 2*dy
mov bx, -8192
add di, 8192 ; compensate for first subtraction of 8192
jmp cs:[jmp_addr]
line_vd_loop2:
dec di ; blank previous byte
xor al, al
mov [bx+di], al
inc di
mov al, ah ; draw pixels
and al, 03fh
mov [bx+di], ax ; reenigne's trick
add si, dx ; D += 2*dx - 2*dy
jg line_vd_incx31
add si, bp ; D += 2*dy
line_vd_incx21:
dec di ; blank previous byte
xor al, al
stosb
mov al, ah ; draw pixels
and al, 03fh
stosw
dec di
add si, dx ; D += 2*dx - 2*dy
jg line_vd_incx32
add si, bp ; D += 2*dy
line_vd_incx22:
add di, 79
loop line_vd_loop2
mov al, 03fh
jmp line_vd_no_iter
line_vd_loop1:
dec di ; blank previous byte
xor al, al
mov [bx+di], al
inc di
mov al, ah ; draw pixels
mov [bx+di], ax ; reenigne's trick
add si, dx ; D += 2*dx - 2*dy
jg line_vd_incx21
add si, bp ; D += 2*dy
line_vd_incx11:
dec di ; blank previous byte
xor al, al
stosb
mov al, ah ; draw pixels
stosw
dec di
add si, dx ; D += 2*dx - 2*dy
jg line_vd_incx22
add si, bp ; D += 2*dy
line_vd_incx12:
add di, 79
loop line_vd_loop1
mov al, 0ffh
jmp line_vd_no_iter
line_vd_loop3:
dec di ; blank previous byte
xor al, al
mov [bx+di], al
inc di
mov al, ah ; draw pixels
and al, 0fh
mov [bx+di], ax ; reenigne's trick
add si, dx ; D += 2*dx - 2*dy
jg line_vd_incx41
add si, bp ; D += 2*dy
line_vd_incx31:
dec di ; blank previous byte
xor al, al
stosb
mov al, ah ; draw pixels
and al, 0fh
stosw
dec di
add si, dx ; D += 2*dx - 2*dy
jg line_vd_incx42
add si, bp ; D += 2*dy
line_vd_incx32:
add di, 79
loop line_vd_loop3
mov al, 0fh
jmp line_vd_no_iter
line_vd_loop4:
dec di ; blank previous byte
xor al, al
mov [bx+di], al
inc di
mov al, ah
and al, 03h
mov [bx+di], ax ; reenigne's trick
inc di ; move to next byte, maybe?
add si, dx ; D += 2*dx - 2*dy
jg line_vd_incx11
dec di
add si, bp ; D += 2*dy
line_vd_incx41:
dec di ; blank previous byte
xor al, al
stosb
mov al, ah
and al, 03h
stosw
; move to next byte, maybe?
add si, dx ; D += 2*dx - 2*dy
jg line_vd_incx12
dec di
add si, bp ; D += 2*dy
line_vd_incx42:
add di, 79
loop line_vd_loop4
mov al, 03h
line_vd_no_iter:
pop bp
test [y1], 1
jnz line_vd_done
and al, ah
mov [bx+di], ax
dec di ; blank previous byte
xor al, al
mov [bx+di], al
line_vd_done:
pop ds
pop si
pop di
pop bp
ret
line_vu: ; verticalish, up
mov ax, [y0] ; start rounding y0 up to multiple of 2
inc ax
shr ax, 1
jc line_vu_even
add si, 8
sub di, 8112 ; addressing below assumes we started on even line
line_vu_even:
shl ax, 1 ; finish rounding y0 up to multiple of 2
mov si, cs:[line_vu_jmptab + si]
mov cs:[jmp_addr], si
mov cx, [y1] ; compute iterations
sub cx, ax
neg cx
inc cx
shr cx, 1 ; divide iterations by 2
mov ah, [colour] ; compute shifted colour
push bp
cmp cl, 0 ; check for zero iterations
jne line_vu_iter
xor bx, bx ; compute al
mov cx, [x0]
and cl, 3
shl cl, 1
mov al, 0ffh
shr al, cl
jmp line_vu_no_iter
line_vu_iter:
shl dx, 1 ; compute 2*dx
mov si, bx ; compute D
mov bp, bx
shl bp, 1 ; compute 2*dy
sub dx, bp ; compute 2*dx - 2*dy
mov bx, -8112
add di, 8112 ; compensate for first subtraction of 8112
jmp cs:[jmp_addr]
line_vu_loop2:
dec di ; blank previous byte
xor al, al
mov [bx+di], al
inc di
mov al, ah ; draw pixels
and al, 03fh
mov [bx+di], ax ; reenigne's trick
add si, dx ; D += 2*dx - 2*dy
jg line_vu_incx31
add si, bp ; D += 2*dy
line_vu_incx21:
dec di ; blank previous byte
xor al, al
stosb
mov al, ah ; draw pixels
and al, 03fh
stosw
dec di
add si, dx ; D += 2*dx - 2*dy
jg line_vu_incx32
add si, bp ; D += 2*dy
line_vu_incx22:
sub di, 81
loop line_vu_loop2
mov al, 03fh
jmp line_vu_no_iter
line_vu_loop1:
mov al, [bx+di] ; reenigne's trick
and al, 03fh
or al, ah
mov [bx+di], al
dec di ; blank previous byte
xor al, al
mov [bx+di], al
inc di
mov al, ah ; draw pixels
mov [bx+di], ax ; reenigne's trick
add si, dx ; D += 2*dx - 2*dy
jg line_vu_incx21
add si, bp ; D += 2*dy
line_vu_incx11:
dec di ; blank previous byte
xor al, al
stosb
mov al, ah ; draw pixels
stosw
dec di
add si, dx ; D += 2*dx - 2*dy
jg line_vu_incx22
add si, bp ; D += 2*dy
line_vu_incx12:
sub di, 81
loop line_vu_loop1
mov al, 0ffh
jmp line_vu_no_iter
line_vu_loop3:
dec di ; blank previous byte
xor al, al
mov [bx+di], al
inc di
mov al, ah ; draw pixels
and al, 0fh
mov [bx+di], ax ; reenigne's trick
add si, dx ; D += 2*dx - 2*dy
jg line_vu_incx41
add si, bp ; D += 2*dy
line_vu_incx31:
dec di ; blank previous byte
xor al, al
stosb
mov al, ah ; draw pixels
and al, 0fh
stosw
dec di
add si, dx ; D += 2*dx - 2*dy
jg line_vu_incx42
add si, bp ; D += 2*dy
line_vu_incx32:
sub di, 81
loop line_vu_loop3
mov al, 0fh
jmp line_vu_no_iter
line_vu_loop4:
dec di ; blank previous byte
xor al, al
mov [bx+di], al
inc di
mov al, ah
and al, 03h
mov [bx+di], ax ; reenigne's trick
inc di ; move to next byte, maybe?
add si, dx ; D += 2*dx - 2*dy
jg line_vu_incx11
dec di
add si, bp ; D += 2*dy
line_vu_incx41:
dec di ; blank previous byte
xor al, al
stosb
mov al, ah
and al, 03h
stosw
; move to next byte, maybe?
add si, dx ; D += 2*dx - 2*dy
jg line_vu_incx12
dec di
add si, bp ; D += 2*dy
line_vu_incx42:
sub di, 81
loop line_vu_loop4
mov al, 03h
line_vu_no_iter:
pop bp
test [y1], 1
jnz line_vu_done
and al, ah
mov [bx+di], ax
dec di ; blank previous byte
xor al, al
mov [bx+di], al
line_vu_done:
pop ds
pop si
pop di
pop bp
ret
line_hu: ; horizontalish, up
mov si, cs:[line_hu_jmptab + si]
mov cs:[jmp_addr], si
shl ax, 1 ; round x0 down to multiple of 4
shl ax, 1
mov si, [x1] ; compute iterations, unrolled by 4
sub si, ax
inc si
push si ; save iterations for prologue
shr si, 1 ; divide iterations by 4
shr si, 1
xor al, al ; blank previous byte (assumes no overrun of edge of screen)
dec di
stosb
mov ah, [colour] ; get colour
mov al, 0ffh ; get initial shifted mask
add cl, 2
shl al, cl
not al
mov cx, si ; get iterations
shl bx, 1 ; compute 2*dy
xor si, si ; D = -dx
sub si, dx
shl dx, 1 ; compute 2*dx
cmp cl, 0 ; check for zero iterations
jne line_hu_iter
mov cx, [x0]
and cl, 3
inc cl
mov bp, [y0] ; compute initial even/odd offset diff
shr bp, 1
mov bp, 8111
jnc line_hu_even_no_iter
sub bp, 16304
line_hu_even_no_iter:
dec cl
jnz line_hu_not0
jmp line_hu_no_iter0
line_hu_not0:
dec cl
jnz line_hu_not1
pop cx
and cl, 3
jmp line_hu_no_iter1
line_hu_not1:
pop cx
and cl, 3
dec cl
jmp line_hu_no_iter2
line_hu_iter:
mov bp, [y0] ; compute initial even/odd offset diff
shr bp, 1
mov bp, 8111
jnc line_hu_even
sub bp, 16304
line_hu_even:
jmp WORD PTR cs:[jmp_addr]
line_hu0:
add si, bx ; D += 2*dy
jle line_skip_incy_hu0
and al, ah
stosw ; draw pixels
dec di
add di, bp ; odd <-> even line (reenigne's trick)
xor bp, 0c050h ; adjust ydelta
sub si, dx ; D -= 2*dx
dec di ; blank previous byte
xor al, al
stosb
mov al, 03fh ; get new mask
line_skip_incy_hu0:
line_hu1:
add si, bx ; D += 2*dy
jle line_skip_incy_hu1
and al, ah ; draw pixels
stosw
dec di
add di, bp ; odd <-> even line (reenigne's trick)
xor bp, 0c050h ; adjust ydelta
sub si, dx ; D -= 2*dx
dec di ; blank previous byte
xor al, al
stosb
mov al, 0fh ; get new mask
line_skip_incy_hu1:
line_hu2:
add si, bx ; D += 2*dy
jle line_skip_incy_hu2
and al, ah ; draw pixels
stosw
dec di
add di, bp ; odd <-> even line (reenigne's trick)
xor bp, 0c050h ; adjust ydelta
sub si, dx ; D -= 2*dx
dec di ; blank previous byte
xor al, al
stosb
mov al, 03h ; get new mask
line_skip_incy_hu2:
line_hu3:
and al, ah ; draw pixels
stosb
add si, bx ; D += 2*dy
jle line_skip_incy_hu3
mov al, ah ; write next byte
stosb
dec di
add di, bp ; odd <-> even line (reenigne's trick)
xor bp, 0c050h ; adjust ydelta
sub si, dx ; D -= 2*dx
inc di
cmp cl, 1
je line_hu_blank_check
dec di ; blank previous byte
xor al, al
stosb
line_skip_incy_hu3:
mov al, 0ffh ; get new mask
loop line_hu0
mov al, ah ; write next byte
stosb
dec di
mov al, 0ffh ; get new mask
jmp line_hu_no_iter0
line_hu_blank_check:
pop cx
and cl, 03h
jz line_hu_done
dec di ; blank previous byte
xor al, al
stosb
mov al, 0ffh ; get new mask
jmp line_hu_skip_iter_test
line_hu_no_iter0:
pop cx ; do remaining iterations (0-3)
and cl, 03h
jz line_hu_done
line_hu_skip_iter_test:
add si, bx ; D += 2*dy
jle line_skip_incy_hu4
and al, ah ; draw pixels
stosw
dec di
add di, bp ; odd <-> even line (reenigne's trick)
xor bp, 0c050h ; adjust ydelta
sub si, dx ; D -= 2*dx
cmp cl, 1
je line_hu_done
xor al, al ; blank previous byte
dec di
stosb
mov al, 03fh ; get new mask
line_skip_incy_hu4:
line_hu_no_iter1:
dec cl
jz line_hu_no_iter2
add si, bx ; D += 2*dy
jle line_skip_incy_hu5
and al, ah ; draw pixels
stosw
dec di
add di, bp ; odd <-> even line (reenigne's trick)
xor bp, 0c050h ; adjust ydelta
sub si, dx ; D -= 2*dx
cmp cl, 1
je line_hu_done
xor al, al ; blank previous byte
dec di
stosb
mov al, 0fh
line_skip_incy_hu5:
line_hu_no_iter2:
and al, ah ; draw pixels
stosw
line_hu_done:
pop ds
pop si
pop di
pop bp
ret
_cga_draw_line_chunky_left ENDP
END
|
data/pokemon/dex_entries/wobbuffet.asm | Dev727/ancientplatinum | 28 | 10138 | db "PATIENT@" ; species name
dw 403, 630 ; height, weight
db "In order to con-"
next "ceal its black"
next "tail, it lives in"
page "a dark cave and"
next "only moves about"
next "at night.@"
|
test/Succeed/ReflectionBlockOnMeta.agda | redfish64/autonomic-agda | 0 | 8740 |
module _ where
open import Common.Prelude hiding (_>>=_; _<$>_)
open import Common.Reflection
infixl 8 _<$>_
_<$>_ : ∀ {a b} {A : Set a} {B : Set b} → (A → B) → TC A → TC B
f <$> m = m >>= λ x → returnTC (f x)
macro
default : Tactic
default hole =
inferType hole >>= λ
{ (def (quote Nat) []) → unify hole (lit (nat 42))
; (def (quote Bool) []) → unify hole (con (quote false) [])
; (meta x _) → catchTC (blockOnMeta x) (typeError (strErr "impossible" ∷ []))
-- check that the block isn't caught
; _ → typeError (strErr "No default" ∷ [])
}
aNat : Nat
aNat = default
aBool : Bool
aBool = default
alsoNat : Nat
soonNat : _
soonNat = default
alsoNat = soonNat
|
game_rom_loader.asm | ethandicks/1802-adventureland-plus | 0 | 245087 | <reponame>ethandicks/1802-adventureland-plus
;__________________________________________________________________________________________________
; Macro definitions
INCL "macros.asm"
;__________________________________________________________________________________________________
; The game loader starts at address CA00 in the ROM image
; (On entry, R0 is our program counter)
CPU 1802
ORG $D000
; Setup code to initialize the stack and SCRT registers
; SETUP R2 (Stack)
LDI HIGH STACK
PHI R2
LDI LOW STACK
PLO R2 ;STACK = 7F6FH
SEX R2 ;X = 2
; SETUP R4 (CALL PC)
LDI HIGH CALL
PHI R4
LDI LOW CALL
PLO R4 ;R4 = PC FOR CALL SUBROUTINE
; SETUP R5 (RETURN PC)
LDI HIGH RETURN
PHI R5
LDI LOW RETURN
PLO R5 ;R5 = PC FOR RETURN SUBROUTINE
;SETUP R3 AS OUR NEW PC
LDI HIGH LoaderStart
PHI R3
LDI LOW LoaderStart
PLO R3
SEP R3 ;CHANGE PC FROM R0 TO R3
; When calling a subroutine:
; - accumulator value D is passed through
; - R6 is preserved but not passed through
; - RF.1 is trashed.
; When in a subroutine, R6=Caller
;__________________________________________________________________________________________________
; Decompressor code
INCL "decompress.asm"
;__________________________________________________________________________________________________
; Main logic for game loader
LoaderStart
; set up baud rate register
LDI HIGH BAUD
PHI R7
LDI LOW BAUD
PLO R7
LDA R7
PHI RE
LDN R7
PLO RE
; decompress Splash screen into RAM
LDI $C9
PHI R7
LDI $9B
PLO R7 ; R7 points to the size of the compressed block
LDA R7
PHI R8
LDA R7 ; now R7 points to the size of the uncompressed text
ADI $9F
PLO R8
GHI R8
ADCI $C9
PHI R8 ; R8 points to one byte past the end of the compressed data
LDI $00 ; decompressed data should be stored at $0013
PHI R9
LDI $13
PLO R9
LDA R7
ADI $13
PLO RA
LDA R7 ; now R7 points to the start of the compressed data
ADCI $00
PHI RA ; RA points to one byte past the end of the uncompressed data
SEP R4
DW Do_ULZ_Decompress ; defined in decompress.asm
; check for errors
BZ SplashOkay
LBR DecompressFailed
SplashOkay
; null-terminate the splash screen string
STR R9
; print the splash screen
LDI $00
PHI R7
LDI $13
PLO R7
SEP R4
DW MON_OUTSTR
; find the end of the first block of text
FindTextEnd
INC R7
LDN R7
BNZ FindTextEnd
; did we just print everything that was decompressed?
LDI $01
PLO RA ; RA is our "print again" flag
GHI R9
STR R2
GHI R7
SM
BNZ KeyWait
GLO R9
STR R2
GLO R7
SM
BNZ KeyWait
DEC RA ; we already printed everything
KeyWait
; wait for a keypress
SEP R4
DW MON_INPUT
; should we print another message?
GLO RA
BZ PrintDecompressing
; Yes, print the instructions (following the splash screen) now
INC R7
SEP R4
DW MON_OUTSTR
PrintDecompressing
; print Decompressing message
LDI HIGH StartingMsg
PHI R7
LDI LOW StartingMsg
PLO R7
SEP R4
DW MON_OUTSTR
; decompress Adventureland program into RAM
LDI HIGH CompressedSize
PHI R7
LDI LOW CompressedSize
PLO R7 ; R7 points to the size of the compressed block
LDA R7
PHI R8
LDA R7 ; now R7 points to the size of the uncompressed game data, little endian
PLO R8 ; R8 holds the compressed data size
ADI LOW (CompressedSize+4)
PLO R8
GHI R8
ADCI HIGH (CompressedSize+4)
PHI R8 ; R8 points to one byte past the end of the compressed data
LDI $00
PHI R9
LDI $13
PLO R9 ; R9 decompressed data should be stored at $0013
LDA R7
ADI $13
PLO RA
LDA R7 ; now R7 points to the start of the compressed data
ADCI $00
PHI RA
SEP R4
DW Do_ULZ_Decompress ; defined in decompress.asm
; check for errors
BZ DecompressOkay
; not okay
DecompressFailed
PHI R1 ; put error code in R1 so developer can see it in the monitor
LDI HIGH ErrorMsg
PHI R7
LDI LOW ErrorMsg
PLO R7
SEP R4
DW MON_OUTSTR
Exit
LDI $8B
PHI R0
LDI $5E
PLO R0
SEX R0
SEP R0 ; jump back to the monitor program
; write LBR instruction at 0010 to jump into the game program
DecompressOkay
LDI HIGH GameStartAddr ; starting address of the game in RAM is stored here by build_rom.py
PHI R7
LDI LOW GameStartAddr
PLO R7 ; R7 points to the size of the starting address of the game
LDI $00
PHI R8
LDI $10
PLO R8
LDI $C0
STR R8
INC R8
LDA R7 ; high byte of game start addresss
STR R8
INC R8
LDA R7 ; low byte of game start address
STR R8
; Jump to start the game
LBR $0010
;__________________________________________________________________________________________________
; Read-only Data
StartingMsg BYTE "\r\n\nDecompressing...", 0
ErrorMsg BYTE "\r\n\nDecompress failed.\r\n", 0
; These 3 fields must be at the end of the file
; They will get replaced with the correct values by the build script
GameStartAddr DW 0
CompressedSize DW 0
GameRamSize DW 0
END
|
src/apsepp-test_event_class-generic_assert_num_mixin.ads | thierr26/ada-apsepp | 0 | 28613 | <filename>src/apsepp-test_event_class-generic_assert_num_mixin.ads
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
generic
type Parent is abstract new Test_Event_Base with private;
package Apsepp.Test_Event_Class.Generic_Assert_Num_Mixin is
type Child_W_Assert_Num is new Parent with private
with Type_Invariant'Class => Child_W_Assert_Num.Has_Assert_Num;
overriding
procedure Set (Obj : in out Child_W_Assert_Num; Data : Test_Event_Data);
overriding
function Has_Assert_Num (Obj : Child_W_Assert_Num) return Boolean
is (True);
overriding
function Assert_Num (Obj : Child_W_Assert_Num) return Test_Assert_Count;
private
type Child_W_Assert_Num is new Parent with record
Assert_Num : Test_Assert_Count;
end record;
end Apsepp.Test_Event_Class.Generic_Assert_Num_Mixin;
|
8088/xtce/gentests/functional.asm | reenigne/reenigne | 92 | 4641 | org 0
cpu 8086
testA:
dw 0 ; cycle count ignored (computed by emulator)
db 0 ; MUL queuefiller, no NOPs
db 0 ; Refresh period
db 0 ; Refresh phase
db .preambleEnd - ($+1)
.preambleEnd:
db .instructionsEnd - ($+1)
out 0xe0,al
.instructionsEnd:
db .fixupsEnd - ($+1)
.fixupsEnd:
%if 0 ; Test is currently not working on hardware - SPK seems to be always 0 even as T/C2OUT is oscillating and SPKRDATA is 1. Hardware issue?
test0:
dw 0 ; cycle count ignored (computed by emulator)
db 0x40 ; No queuefiller, no NOPs
db 0 ; Refresh period
db 0 ; Refresh phase
db .preambleEnd - ($+1)
.preambleEnd:
db .instructionsEnd - ($+1)
; mov al,0x99
; out 0x63,al
in al,0x61
and al,0xfc
out 0x61,al
or al,3
out 0x61,al
; mov al,0xb4
; out 0x43,al
; mov al,2
; out 0x42,al
; mov al,0
; out 0x42,al
; mov al,0xb4
; out 0x43,al
; mov al,2
; out 0x42,al
; mov al,0
; out 0x42,al
; mov al,0xb4
; out 0x43,al
; mov al,2
; out 0x42,al
; mov al,0
; out 0x42,al
; mov al,0xb4
; out 0x43,al
; mov al,2
; out 0x42,al
; mov al,0
; out 0x42,al
mov al,0x94
out 0x43,al
mov al,2
out 0x42,al
in al,0x62
mov ah,al
in al,0x62
mov bl,al
in al,0x62
mov bh,al
in al,0x62
mov cl,al
in al,0x62
mov ch,al
in al,0x62
mov dl,al
in al,0x62
mov dh,al
in al,0x62
and ax,0x3030
cmp ax,0x3020
jne .fail
and bx,0x3030
cmp bx,0x1010
jne .fail
and cx,0x3030
cmp cx,0x0000
jne .fail
and dx,0x3030
cmp dx,0x2020
jne .fail
; Reading from port 0x63 seems to give unpredictable results, so we'll skip
; it for now.
; in al,0x63
; mov ah,al
; in al,0x63
; mov bl,al
; in al,0x63
; mov bh,al
; in al,0x63
; mov cl,al
; in al,0x63
; mov ch,al
; in al,0x63
; mov dl,al
; in al,0x63
; mov dh,al
; in al,0x63
;
; and ax,0x3030
; cmp ax,0x1030
; jne .fail
; and bx,0x3030
; cmp bx,0x0010
; jne .fail
; and cx,0x3030
; cmp cx,0x2000
; jne .fail
; and dx,0x3030
; cmp dx,0x2020
; jne .fail
mov al,0xb4
out 0x43,al
mov al,0x6e ; low
out 0x42,al
mov al,0xf9 ; high
out 0x42,al
;
; int 0xff
.fail:
; int 0xfe
.instructionsEnd:
db .fixupsEnd - ($+1)
.fixupsEnd:
%endif
|
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xca_notsx.log_21829_806.asm | ljhsiun2/medusa | 9 | 170634 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x95dc, %r11
clflush (%r11)
nop
nop
nop
nop
nop
dec %rbx
mov $0x6162636465666768, %r15
movq %r15, %xmm3
vmovups %ymm3, (%r11)
nop
nop
xor %r10, %r10
lea addresses_WT_ht+0x12e6e, %rsi
lea addresses_UC_ht+0x147a5, %rdi
nop
nop
cmp %rax, %rax
mov $114, %rcx
rep movsw
nop
nop
nop
cmp $19304, %rbx
lea addresses_D_ht+0x1332c, %rsi
lea addresses_D_ht+0x18dc, %rdi
clflush (%rdi)
nop
nop
add %r11, %r11
mov $14, %rcx
rep movsl
nop
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_UC_ht+0x64dc, %rbx
nop
nop
nop
add $5536, %rdi
mov (%rbx), %r11d
nop
nop
cmp $24038, %rsi
lea addresses_D_ht+0x150dc, %rsi
lea addresses_UC_ht+0xd0dc, %rdi
nop
nop
nop
xor %r11, %r11
mov $89, %rcx
rep movsw
nop
nop
xor $64568, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r15
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_WC+0x1a4dc, %rcx
cmp %rdx, %rdx
movl $0x51525354, (%rcx)
nop
nop
nop
sub %rsi, %rsi
// REPMOV
lea addresses_RW+0x19dc, %rsi
lea addresses_PSE+0xc0dc, %rdi
nop
nop
nop
nop
xor $63532, %r14
mov $75, %rcx
rep movsw
nop
nop
nop
nop
nop
xor %r13, %r13
// Faulty Load
lea addresses_PSE+0xc0dc, %r10
nop
nop
inc %rdi
mov (%r10), %cx
lea oracles, %r14
and $0xff, %rcx
shlq $12, %rcx
mov (%r14,%rcx,1), %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r14
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_RW'}, 'dst': {'same': True, 'congruent': 0, 'type': 'addresses_PSE'}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 1, 'type': 'addresses_WT_ht'}, 'dst': {'same': True, 'congruent': 0, 'type': 'addresses_UC_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}, 'dst': {'same': True, 'congruent': 10, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
grammars/TranslationLexer.g4 | Open-MBEE/text2text | 0 | 4168 | <reponame>Open-MBEE/text2text<filename>grammars/TranslationLexer.g4<gh_stars>0
lexer grammar TranslationLexer;
import JsonPath2Lexer;
/**
* Defines the grammar of translation (Text2Text).
*/
/*
* Standard mode: outside of template, allows for field definition
*/
STARTTEMPLATE : T E M P L A T E ':' -> pushMode(TEMPLATE_MODE) ;
TRIGGER : T R I G G E R
| T R I G
| T R
;
REQUIRED : R E Q U I R E D
| R E Q
;
KEYWORD : K E Y W O R D
| K E Y
| K W
;
RAW : R A W
;
BODY : B O D Y
| B D
;
MULTIVALUE : M U L T I V A L U E
| M U L T I V A L
| M U L T I
| M U L
;
NODUPLICATES : N O D U P L I C A T E S
| N O D U P
;
COMMENT : '//' (~[\r\n])* -> skip ;
// JsonPath2Lexer handles IDENTIFIER, etc.
mode TEMPLATE_MODE;
ENDTEMPLATE : '\n' F I E L D S ':' -> popMode;
TEMPLATE_CHAR : . ;
/*
* Fragments (independent of mode)
*/
fragment A : [aA];
fragment B : [bB];
fragment C : [cC];
fragment D : [dD];
fragment E : [eE];
fragment F : [fF];
fragment G : [gG];
fragment H : [hH];
fragment I : [iI];
fragment J : [jJ];
fragment K : [kK];
fragment L : [lL];
fragment M : [mM];
fragment N : [nN];
fragment O : [oO];
fragment P : [pP];
fragment Q : [qQ];
fragment R : [rR];
fragment S : [sS];
fragment T : [tT];
fragment U : [uU];
fragment V : [vV];
fragment W : [wW];
fragment X : [xX];
fragment Y : [yY];
fragment Z : [zZ];
|
components/src/motion/l3gd20/l3gd20.ads | rocher/Ada_Drivers_Library | 192 | 17012 | <filename>components/src/motion/l3gd20/l3gd20.ads<gh_stars>100-1000
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of STMicroelectronics nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
-- --
-- This file is based on: --
-- --
-- @file l3gd20.h --
-- @author MCD Application Team --
-- @version V1.1.0 --
-- @date 19-June-2014 --
-- @brief This file contains all the functions prototypes for the --
-- l3gd20.c driver --
-- --
-- COPYRIGHT(c) 2014 STMicroelectronics --
------------------------------------------------------------------------------
-- This file provides a driver for the L3GD20 gyroscope from ST
-- Microelectronics.
-- See datasheet "L3GD20 MEMS motion sensor: three-axis digital output
-- gyroscope" DocID022116 Rev 2, dated February 2013, file number DM00036465
with Interfaces; use Interfaces;
with HAL; use HAL;
with HAL.SPI; use HAL.SPI;
with HAL.GPIO; use HAL.GPIO;
package L3GD20 is
pragma Elaborate_Body;
type Three_Axis_Gyroscope is tagged limited private;
procedure Initialize
(This : in out Three_Axis_Gyroscope;
Port : Any_SPI_Port;
Chip_Select : Any_GPIO_Point);
-- Does device-specific initialization. Must be called prior to use.
--
-- NB: does NOT init/configure SPI and GPIO IO, which must be done
-- (elsewhere) prior to calling this routine.
type Power_Mode_Selection is
(L3GD20_Mode_Powerdown,
L3GD20_Mode_Active)
with Size => 8;
for Power_Mode_Selection use
(L3GD20_Mode_Powerdown => 16#00#,
L3GD20_Mode_Active => 16#08#);
type Output_Data_Rate_Selection is
(L3GD20_Output_Data_Rate_95Hz,
L3GD20_Output_Data_Rate_190Hz,
L3GD20_Output_Data_Rate_380Hz,
L3GD20_Output_Data_Rate_760Hz)
with Size => 8;
for Output_Data_Rate_Selection use
(L3GD20_Output_Data_Rate_95Hz => 16#00#,
L3GD20_Output_Data_Rate_190Hz => 16#40#,
L3GD20_Output_Data_Rate_380Hz => 16#80#,
L3GD20_Output_Data_Rate_760Hz => 16#C0#);
-- See App Note 4505, pg 8, Table 3.
function Data_Rate_Hertz (Selection : Output_Data_Rate_Selection) return Float is
(case Selection is
when L3GD20_Output_Data_Rate_95Hz => 95.0,
when L3GD20_Output_Data_Rate_190Hz => 190.0,
when L3GD20_Output_Data_Rate_380Hz => 380.0,
when L3GD20_Output_Data_Rate_760Hz => 760.0);
type Axes_Selection is
(L3GD20_Axes_Disable,
L3GD20_Y_Enable,
L3GD20_X_Enable,
L3GD20_Z_Enable,
L3GD20_Axes_Enable)
with Size => 8;
for Axes_Selection use
(L3GD20_X_Enable => 16#02#,
L3GD20_Y_Enable => 16#01#,
L3GD20_Z_Enable => 16#04#,
L3GD20_Axes_Enable => 16#07#,
L3GD20_Axes_Disable => 16#00#);
-- See App Note 4505, pg 8, Table 3.
type Bandwidth_Selection is
(L3GD20_Bandwidth_1,
L3GD20_Bandwidth_2,
L3GD20_Bandwidth_3,
L3GD20_Bandwidth_4)
with Size => 8;
for Bandwidth_Selection use
(L3GD20_Bandwidth_1 => 16#00#,
L3GD20_Bandwidth_2 => 16#10#,
L3GD20_Bandwidth_3 => 16#20#,
L3GD20_Bandwidth_4 => 16#30#);
type Full_Scale_Selection is
(L3GD20_Fullscale_250,
L3GD20_Fullscale_500,
L3GD20_Fullscale_2000)
with Size => 8;
for Full_Scale_Selection use
(L3GD20_Fullscale_250 => 16#00#,
L3GD20_Fullscale_500 => 16#10#,
L3GD20_Fullscale_2000 => 16#20#);
type Block_Data_Update_Selection is
(L3GD20_BlockDataUpdate_Continous,
L3GD20_BlockDataUpdate_Single)
with Size => 8;
for Block_Data_Update_Selection use
(L3GD20_BlockDataUpdate_Continous => 16#00#,
L3GD20_BlockDataUpdate_Single => 16#80#);
type Endian_Data_Selection is
(L3GD20_Little_Endian,
L3GD20_Big_Endian)
with Size => 8;
for Endian_Data_Selection use
(L3GD20_Little_Endian => 16#00#,
L3GD20_Big_Endian => 16#40#);
-- Set up the gyro behavior. Must be called prior to using the gyro.
procedure Configure
(This : in out Three_Axis_Gyroscope;
Power_Mode : Power_Mode_Selection;
Output_Data_Rate : Output_Data_Rate_Selection;
Axes_Enable : Axes_Selection;
Bandwidth : Bandwidth_Selection;
BlockData_Update : Block_Data_Update_Selection;
Endianness : Endian_Data_Selection;
Full_Scale : Full_Scale_Selection);
procedure Enable_Low_Pass_Filter (This : in out Three_Axis_Gyroscope);
-- See App Note 4505, pg 15, Figure 5 and Table 9 for the concept. Enables
-- the low pass filter LPF2 in the diagrams, for output to the data
-- registers and the FIFO. The value of LPF2 is determined by the output
-- data rate and bandwidth selections specified when calling procedure
-- Configure. These values are shown in the App Note, pg 16, Table 11.
-- The filter allows frequencies lower than the LPF2 "cutoff" value, and
-- attenuates those at or above the cutoff. Note that the high pass filter
-- is independent of the low pass filter.
procedure Disable_Low_Pass_Filter (This : in out Three_Axis_Gyroscope);
function Full_Scale_Sensitivity (This : Three_Axis_Gyroscope) return Float;
-- Returns the sensitivity per LSB based on the Full_Scale_Selection
-- specified to procedure Configure. Used to scale raw angle rates. Note
-- that the values are already in terms of millidegrees per second per
-- digit, so to use these values you should multiply, rather than divide.
-- NB: These values are not measured on the specific device on the board
-- in use. Instead, they are statistical averages determined at the factory
-- for this component family, so you will likely need to tweak them a bit.
-- High Pass Filtering functionality
-- See App Note 4505, pg 17, Table 14.
type High_Pass_Filter_Mode is
(L3GD20_HPM_Normal_Mode_Reset,
-- filter is reset by reading the Reference register
L3GD20_HPM_Reference_Signal,
-- output data is input - Reference register
L3GD20_HPM_Normal_Mode,
-- filter is reset by reading the Reference register
L3GD20_HPM_Autoreset_Int)
-- filter is auto-reset on configured interrupt
with Size => 8;
for High_Pass_Filter_Mode use
(L3GD20_HPM_Normal_Mode_Reset => 16#00#,
L3GD20_HPM_Reference_Signal => 16#10#,
L3GD20_HPM_Normal_Mode => 16#20#,
L3GD20_HPM_Autoreset_Int => 16#30#);
-- See App Note 4505, pg 17, Table 13 for the resulting frequencies. As
-- shown in that table, the frequencies selected by these enumerals are
-- a function of the configured output data rate selected elsewhere.
type High_Pass_Cutoff_Frequency is
(L3GD20_HPFCF_0,
L3GD20_HPFCF_1,
L3GD20_HPFCF_2,
L3GD20_HPFCF_3,
L3GD20_HPFCF_4,
L3GD20_HPFCF_5,
L3GD20_HPFCF_6,
L3GD20_HPFCF_7,
L3GD20_HPFCF_8,
L3GD20_HPFCF_9)
with Size => 8;
for High_Pass_Cutoff_Frequency use -- confirming
(L3GD20_HPFCF_0 => 16#00#,
L3GD20_HPFCF_1 => 16#01#,
L3GD20_HPFCF_2 => 16#02#,
L3GD20_HPFCF_3 => 16#03#,
L3GD20_HPFCF_4 => 16#04#,
L3GD20_HPFCF_5 => 16#05#,
L3GD20_HPFCF_6 => 16#06#,
L3GD20_HPFCF_7 => 16#07#,
L3GD20_HPFCF_8 => 16#08#,
L3GD20_HPFCF_9 => 16#09#);
procedure Configure_High_Pass_Filter
(This : in out Three_Axis_Gyroscope;
Mode_Selection : High_Pass_Filter_Mode;
Cutoff_Frequency : High_Pass_Cutoff_Frequency);
procedure Enable_High_Pass_Filter (This : in out Three_Axis_Gyroscope);
-- Allows frequencies higher than the cutoff specified to procedure
-- Configure_High_Pass_Filter, and attenuates those at or below it.
procedure Disable_High_Pass_Filter (This : in out Three_Axis_Gyroscope);
function Reference_Value
(This : Three_Axis_Gyroscope)
return UInt8
with Inline;
procedure Set_Reference
(This : in out Three_Axis_Gyroscope; Value : UInt8)
with Inline;
-- Basic data access functionality
type Gyro_Data_Status is record
ZYX_Overrun : Boolean;
Z_Overrun : Boolean;
Y_Overrun : Boolean;
X_Overrun : Boolean;
ZYX_Available : Boolean;
Z_Available : Boolean;
Y_Available : Boolean;
X_Available : Boolean;
end record
with Size => 8;
for Gyro_Data_Status use record
ZYX_Overrun at 0 range 7 .. 7;
Z_Overrun at 0 range 6 .. 6;
Y_Overrun at 0 range 5 .. 5;
X_Overrun at 0 range 4 .. 4;
ZYX_Available at 0 range 3 .. 3;
Z_Available at 0 range 2 .. 2;
Y_Available at 0 range 1 .. 1;
X_Available at 0 range 0 .. 0;
end record;
function Data_Status (This : Three_Axis_Gyroscope) return Gyro_Data_Status
with Inline;
type Angle_Rate is new Integer_16;
type Angle_Rates is record
X : Angle_Rate; -- pitch, per Figure 2, pg 7 of the Datasheet
Y : Angle_Rate; -- roll
Z : Angle_Rate; -- yaw
end record with Size => 3 * 16;
for Angle_Rates use record
X at 0 range 0 .. 15;
Y at 2 range 0 .. 15;
Z at 4 range 0 .. 15;
end record;
-- confirming, but required, eg for matching FIFO content format
procedure Get_Raw_Angle_Rates
(This : Three_Axis_Gyroscope;
Rates : out Angle_Rates);
-- Returns the latest data, swapping UInt8s if required by the endianess
-- selected by a previous call to Configure.
-- NB: does NOT check whether the gyro status indicates data are ready.
-- NB: does NOT apply any sensitity scaling.
-- FIFO functionality
type FIFO_Modes is
(L3GD20_Bypass_Mode,
L3GD20_FIFO_Mode,
L3GD20_Stream_Mode,
L3GD20_Stream_To_FIFO_Mode,
L3GD20_Bypass_To_Stream_Mode)
with Size => 8;
for FIFO_Modes use -- confirming
(L3GD20_Bypass_Mode => 2#0000_0000#,
L3GD20_FIFO_Mode => 2#0010_0000#,
L3GD20_Stream_Mode => 2#0100_0000#,
L3GD20_Stream_To_FIFO_Mode => 2#0110_0000#,
L3GD20_Bypass_To_Stream_Mode => 2#1000_0000#);
procedure Set_FIFO_Mode (This : in out Three_Axis_Gyroscope;
Mode : FIFO_Modes);
procedure Enable_FIFO (This : in out Three_Axis_Gyroscope);
procedure Disable_FIFO (This : in out Three_Axis_Gyroscope);
subtype FIFO_Level is Integer range 0 .. 31;
procedure Set_FIFO_Watermark (This : in out Three_Axis_Gyroscope;
Level : FIFO_Level);
type Angle_Rates_FIFO_Buffer is array (FIFO_Level range <>) of Angle_Rates
with Alignment => Angle_Rate'Alignment;
procedure Get_Raw_Angle_Rates_FIFO
(This : in out Three_Axis_Gyroscope;
Buffer : out Angle_Rates_FIFO_Buffer);
-- Returns the latest raw data in the FIFO, swapping UInt8s if required by
-- the endianess selected by a previous call to Configure. Fills the entire
-- buffer passed.
-- NB: does NOT apply any sensitity scaling.
function Current_FIFO_Depth (This : Three_Axis_Gyroscope) return FIFO_Level;
-- The number of unread entries currently in the hardware FIFO
function FIFO_Below_Watermark (This : Three_Axis_Gyroscope) return Boolean;
function FIFO_Empty (This : Three_Axis_Gyroscope) return Boolean;
function FIFO_Overrun (This : Three_Axis_Gyroscope) return Boolean;
-- Interrupt 2 controls
procedure Disable_Int2_Interrupts (This : in out Three_Axis_Gyroscope);
procedure Enable_Data_Ready_Interrupt (This : in out Three_Axis_Gyroscope);
procedure Disable_Data_Ready_Interrupt (This : in out Three_Axis_Gyroscope);
procedure Enable_FIFO_Watermark_Interrupt
(This : in out Three_Axis_Gyroscope);
procedure Disable_FIFO_Watermark_Interrupt
(This : in out Three_Axis_Gyroscope);
procedure Enable_FIFO_Overrun_Interrupt (This : in out Three_Axis_Gyroscope);
procedure Disable_FIFO_Overrun_Interrupt (This : in out Three_Axis_Gyroscope);
procedure Enable_FIFO_Empty_Interrupt (This : in out Three_Axis_Gyroscope);
procedure Disable_FIFO_Empty_Interrupt (This : in out Three_Axis_Gyroscope);
-- Interrupt 1 facilities
procedure Disable_Int1_Interrupts (This : in out Three_Axis_Gyroscope);
type Sample_Counter is mod 2 ** 6;
procedure Set_Duration_Counter
(This : in out Three_Axis_Gyroscope;
Value : Sample_Counter);
-- Loads the INT1_DURATION register with the specified Value and enables
-- the "wait" option so that the interrupt is not generated unless any
-- sample value is beyond a threshold for the corresponding amount of time.
-- The effective time is dependent on the data rate selected elsewhere.
type Axes_Interrupts is
(Z_High_Interrupt,
Z_Low_Interrupt,
Y_High_Interrupt,
Y_Low_Interrupt,
X_High_Interrupt,
X_Low_Interrupt);
procedure Enable_Event
(This : in out Three_Axis_Gyroscope;
Event : Axes_Interrupts);
procedure Disable_Event
(This : in out Three_Axis_Gyroscope;
Event : Axes_Interrupts);
type Axis_Sample_Threshold is new UInt16 range 0 .. 2 ** 15;
-- Threshold values do not use the high-order bit
procedure Set_Threshold
(This : in out Three_Axis_Gyroscope;
Event : Axes_Interrupts;
Value : Axis_Sample_Threshold);
-- Writes the two-UInt8 threshold value into the two threshold registers for
-- the specified interrupt event. Does not enable the event itself.
type Threshold_Event is record
Axis : Axes_Interrupts;
Threshold : Axis_Sample_Threshold;
end record;
type Threshold_Event_List is
array (Positive range <>) of Threshold_Event;
type Interrupt1_Active_Edge is
(L3GD20_Interrupt1_High_Edge,
L3GD20_Interrupt1_Low_Edge);
for Interrupt1_Active_Edge use
(L3GD20_Interrupt1_Low_Edge => 16#20#,
L3GD20_Interrupt1_High_Edge => 16#00#);
procedure Configure_Interrupt1
(This : in out Three_Axis_Gyroscope;
Triggers : Threshold_Event_List;
Latched : Boolean := False;
Active_Edge : Interrupt1_Active_Edge := L3GD20_Interrupt1_High_Edge;
Combine_Events : Boolean := False;
Sample_Count : Sample_Counter := 0);
--
-- If Latched is False (the hardware default value), the interrupt signal
-- goes high when the interrupt condition is satisfied and returns low
-- immediately if the interrupt condition is no longer verified. Otherwise,
-- if Latched is True, the interrupt signal remains high even if the
-- condition returns to a non-interrupt status, until a read of the
-- INT1_SRC register is performed.
--
-- If Combine_Events is True, all events' criteria must be
-- safisfied for the interrupt to be generated; otherwise any one is
-- sufficient.
--
-- If Sample_Count is not zero, passes Sample_Count to a call to
-- Set_Duration_Counter
--
-- For every event and threshold specified in Triggers, sets the threshold
-- value and enables the corresponding high or low threshold interrupt for
-- that axis. For example, the following call enables the interrupt when
-- the sampled value for the X axis is greater than 10 or the sample for
-- the Z axis is greater than 20:
--
-- Configure_Interrupt_1
-- (Latched => ... ,
-- Active_Edge => ... ,
-- Triggers => ((X_High_Interrupt, Threshold => 10),
-- (Z_High_Interrupt, Threshold => 20)));
--
-- For that example call, if Combine_Events is True, the interrupt is only
-- generated if both thresholds are exceeded. Otherwise either one is
-- sufficient for the interrupt to be generated.
procedure Enable_Interrupt1 (This : in out Three_Axis_Gyroscope);
procedure Disable_Interrupt1 (This : in out Three_Axis_Gyroscope);
type Pin_Modes is (Push_Pull, Open_Drain);
for Pin_Modes use (Push_Pull => 0, Open_Drain => 2#0001_0000#);
procedure Set_Interrupt_Pin_Mode
(This : in out Three_Axis_Gyroscope;
Mode : Pin_Modes);
type Interrupt1_Sources is record
Interrupts_Active : Boolean;
Z_High_Interrupt : Boolean;
Z_Low_Interrupt : Boolean;
Y_High_Interrupt : Boolean;
Y_Low_Interrupt : Boolean;
X_High_Interrupt : Boolean;
X_Low_Interrupt : Boolean;
end record
with Size => 8;
for Interrupt1_Sources use record
Interrupts_Active at 0 range 6 .. 6;
Z_High_Interrupt at 0 range 5 .. 5;
Z_Low_Interrupt at 0 range 4 .. 4;
Y_High_Interrupt at 0 range 3 .. 3;
Y_Low_Interrupt at 0 range 2 .. 2;
X_High_Interrupt at 0 range 1 .. 1;
X_Low_Interrupt at 0 range 0 .. 0;
end record;
function Interrupt1_Source (This : Three_Axis_Gyroscope) return Interrupt1_Sources;
-- Miscellaneous functionality
procedure Sleep (This : in out Three_Axis_Gyroscope);
-- See App Note 4505, pg 9
procedure Reboot (This : Three_Axis_Gyroscope);
procedure Reset (This : in out Three_Axis_Gyroscope);
-- writes default values to all writable registers
I_Am_L3GD20 : constant := 16#D4#;
function Device_Id (This : Three_Axis_Gyroscope) return UInt8;
-- Will return I_Am_L3GD20 when functioning properly
function Temperature (This : Three_Axis_Gyroscope) return UInt8;
-- the temperature of the chip itself
private
type Three_Axis_Gyroscope is tagged limited record
Port : Any_SPI_Port;
CS : Any_GPIO_Point;
end record;
type Register is new UInt8;
procedure Write
(This : Three_Axis_Gyroscope;
Addr : Register;
Data : UInt8)
with Inline;
-- Writes Data to the specified register within the gyro chip
procedure Read
(This : Three_Axis_Gyroscope;
Addr : Register;
Data : out UInt8)
with Inline;
-- Reads Data from the specified register within the gyro chip
procedure Read_UInt8s
(This : Three_Axis_Gyroscope;
Addr : Register;
Buffer : out SPI_Data_8b;
Count : Natural);
-- Reads multiple Data from the specified register within the gyro chip
-- L3GD20 Registers
Who_Am_I : constant Register := 16#0F#; -- device identification
CTRL_REG1 : constant Register := 16#20#; -- Control register 1
CTRL_REG2 : constant Register := 16#21#; -- Control register 2
CTRL_REG3 : constant Register := 16#22#; -- Control register 3
CTRL_REG4 : constant Register := 16#23#; -- Control register 4
CTRL_REG5 : constant Register := 16#24#; -- Control register 5
Reference : constant Register := 16#25#; -- Reference
OUT_Temp : constant Register := 16#26#; -- Temperature
Status : constant Register := 16#27#; -- Status
OUT_X_L : constant Register := 16#28#; -- Output X low UInt8
OUT_X_H : constant Register := 16#29#; -- Output X high UInt8
OUT_Y_L : constant Register := 16#2A#; -- Output Y low UInt8
OUT_Y_H : constant Register := 16#2B#; -- Output Y high UInt8
OUT_Z_L : constant Register := 16#2C#; -- Output Z low UInt8
OUT_Z_H : constant Register := 16#2D#; -- Output Z high UInt8
FIFO_CTRL : constant Register := 16#2E#; -- FIFO control
FIFO_SRC : constant Register := 16#2F#; -- FIFO src
INT1_CFG : constant Register := 16#30#; -- Interrupt 1 configuration
INT1_SRC : constant Register := 16#31#; -- Interrupt 1 source
INT1_TSH_XH : constant Register := 16#32#; -- Interrupt 1 Threshold X
INT1_TSH_XL : constant Register := 16#33#; -- Interrupt 1 Threshold X
INT1_TSH_YH : constant Register := 16#34#; -- Interrupt 1 Threshold Y
INT1_TSH_YL : constant Register := 16#35#; -- Interrupt 1 Threshold Y
INT1_TSH_ZH : constant Register := 16#36#; -- Interrupt 1 Threshold Z
INT1_TSH_ZL : constant Register := 16#37#; -- Interrupt 1 Threshold Z
INT1_Duration : constant Register := 16#38#; -- Interrupt 1 Duration
end L3GD20;
|
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_sm_/i9-9900K_12_0xca_notsx.log_21829_1599.asm | ljhsiun2/medusa | 9 | 99734 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x9e6c, %r10
nop
xor %rbp, %rbp
movb (%r10), %r9b
nop
nop
nop
nop
and %r12, %r12
lea addresses_normal_ht+0x1b06c, %rbp
nop
nop
nop
nop
xor $57261, %r11
movw $0x6162, (%rbp)
nop
nop
dec %r12
lea addresses_normal_ht+0x1094c, %r12
nop
nop
add $62059, %rsi
mov (%r12), %bp
nop
nop
nop
nop
and $41420, %r12
lea addresses_UC_ht+0x1666c, %r10
nop
xor %rdx, %rdx
and $0xffffffffffffffc0, %r10
vmovntdqa (%r10), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %r9
nop
nop
nop
nop
nop
and $43095, %rsi
lea addresses_WC_ht+0xcdd4, %r10
nop
nop
nop
nop
nop
and %rbp, %rbp
mov (%r10), %r12w
nop
nop
nop
nop
nop
inc %r9
lea addresses_UC_ht+0x1b06c, %r10
nop
inc %r9
movb (%r10), %dl
nop
nop
nop
nop
nop
cmp $63675, %r9
lea addresses_WT_ht+0x22f0, %rdx
nop
xor $48259, %r11
mov (%rdx), %esi
nop
nop
nop
nop
xor %r11, %r11
lea addresses_UC_ht+0x1a66c, %r9
clflush (%r9)
nop
xor %r10, %r10
mov (%r9), %r12w
nop
nop
nop
and $21044, %rdx
lea addresses_A_ht+0x1131c, %r10
nop
nop
nop
nop
inc %r12
mov $0x6162636465666768, %rsi
movq %rsi, %xmm3
movups %xmm3, (%r10)
nop
nop
and %r12, %r12
lea addresses_WC_ht+0x1ec6c, %r11
clflush (%r11)
nop
nop
inc %r12
movb (%r11), %dl
inc %rsi
lea addresses_normal_ht+0x175e8, %rsi
lea addresses_WT_ht+0x14910, %rdi
nop
nop
nop
nop
nop
cmp %r10, %r10
mov $7, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp %rdx, %rdx
lea addresses_D_ht+0x14e7c, %rsi
lea addresses_UC_ht+0x22e8, %rdi
nop
nop
nop
nop
nop
cmp %rdx, %rdx
mov $97, %rcx
rep movsq
nop
nop
add $27849, %r9
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %rbp
push %rbx
push %rcx
push %rsi
// Store
lea addresses_UC+0x15e6c, %rsi
nop
nop
add %rcx, %rcx
movb $0x51, (%rsi)
nop
sub %r11, %r11
// Store
mov $0xb2c, %r13
nop
nop
nop
nop
dec %rbx
movb $0x51, (%r13)
nop
xor %rsi, %rsi
// Store
lea addresses_D+0xfc90, %rcx
nop
sub %rbp, %rbp
mov $0x5152535455565758, %rbx
movq %rbx, %xmm3
movntdq %xmm3, (%rcx)
nop
cmp $63276, %rbp
// Store
lea addresses_US+0x168ac, %rsi
nop
nop
nop
nop
sub $21236, %rbx
movb $0x51, (%rsi)
add %r12, %r12
// Store
lea addresses_RW+0xaa6c, %r11
clflush (%r11)
nop
nop
nop
inc %rbx
movb $0x51, (%r11)
nop
sub %r11, %r11
// Faulty Load
lea addresses_UC+0x15e6c, %rbx
clflush (%rbx)
nop
nop
add $59406, %rbp
movntdqa (%rbx), %xmm3
vpextrq $0, %xmm3, %r11
lea oracles, %rcx
and $0xff, %r11
shlq $12, %r11
mov (%rcx,%r11,1), %r11
pop %rsi
pop %rcx
pop %rbx
pop %rbp
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC', 'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 2}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 10}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 2}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 2}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}}
{'51': 21138, '00': 677, '46': 14}
51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 46 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 00 51 51 00 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51
*/
|
test/fail/Issue546.agda | asr/agda-kanso | 1 | 1881 | module Issue546 where
data I : Set where
i : I
data ⊤ : Set where
tt : ⊤
abstract
P : I → Set
P i = ⊤
Q : P i → Set
Q _ = ⊤
q : Q tt
q = tt
-- Q tt should be rejected.
-- This bug was introduced in Agda 2.3.0. |
src/Delay-monad/Alternative/Partial-order.agda | nad/partiality-monad | 2 | 11608 | <filename>src/Delay-monad/Alternative/Partial-order.agda
------------------------------------------------------------------------
-- Information orderings
------------------------------------------------------------------------
{-# OPTIONS --erased-cubical --sized-types #-}
open import Prelude hiding (module W)
module Delay-monad.Alternative.Partial-order {a} {A : Type a} where
open import Equality.Propositional.Cubical
open import Logical-equivalence using (_⇔_)
open import Bijection equality-with-J using (_↔_)
open import Function-universe equality-with-J as F hiding (id; _∘_)
open import H-level equality-with-J
open import H-level.Closure equality-with-J
open import H-level.Truncation.Propositional equality-with-paths
open import Delay-monad.Alternative
open import Delay-monad.Alternative.Equivalence
open import Delay-monad.Alternative.Termination
import Delay-monad.Partial-order as PO
import Delay-monad.Termination as T
infix 4 _⊑_
-- Information orderings.
_⊑_ : Delay A → Delay A → Type a
x ⊑ y = ∀ z → x ⇓ z → y ⇓ z
_∥⊑∥_ : Delay A → Delay A → Type a
x ∥⊑∥ y = ∀ z → x ∥⇓∥ z → y ∥⇓∥ z
-- The two ordering relations are logically equivalent (if A is a
-- set).
⊑⇔∥⊑∥ : Is-set A → ∀ x y → x ⊑ y ⇔ x ∥⊑∥ y
⊑⇔∥⊑∥ A-set x y =
∀-cong _ λ _ → →-cong _ (⇓⇔∥⇓∥ A-set x) (⇓⇔∥⇓∥ A-set y)
-- The ordering relation _⊑_ is pointwise logically equivalent (via
-- Delay⇔Delay) to the ordering relation defined in
-- Delay-monad.Partial-order.
⊑⇔⊑ : ∀ x y →
x ⊑ y ⇔ _⇔_.to Delay⇔Delay x PO.⊑ _⇔_.to Delay⇔Delay y
⊑⇔⊑ x y =
x ⊑ y ↝⟨ F.id ⟩
(∀ z → x ⇓ z → y ⇓ z) ↝⟨ ∀-cong _ (λ _ → →-cong _ (⇓⇔⇓ x) (⇓⇔⇓ y)) ⟩
(∀ z → _⇔_.to Delay⇔Delay x T.⇓ z → _⇔_.to Delay⇔Delay y T.⇓ z) ↝⟨ inverse $ ∀-cong _ (λ _ → →-cong _ (_↔_.logical-equivalence PO.⇓↔⇓)
(_↔_.logical-equivalence PO.⇓↔⇓)) ⟩
(∀ z → _⇔_.to Delay⇔Delay x PO.⇓ z → _⇔_.to Delay⇔Delay y PO.⇓ z) ↝⟨ inverse PO.⊑⇔⇓→⇓ ⟩□
_⇔_.to Delay⇔Delay x PO.⊑ _⇔_.to Delay⇔Delay y □
⊑⇔⊑′ : ∀ {x y} →
x PO.⊑ y ⇔ _⇔_.from Delay⇔Delay x ⊑ _⇔_.from Delay⇔Delay y
⊑⇔⊑′ {x} {y} =
x PO.⊑ y ↝⟨ PO.⊑⇔⇓→⇓ ⟩
(∀ z → x PO.⇓ z → y PO.⇓ z) ↝⟨ ∀-cong _ (λ _ → →-cong _ (_↔_.logical-equivalence PO.⇓↔⇓)
(_↔_.logical-equivalence PO.⇓↔⇓)) ⟩
(∀ z → x T.⇓ z → y T.⇓ z) ↝⟨ ∀-cong _ (λ _ → →-cong _ ⇓⇔⇓′ ⇓⇔⇓′) ⟩
(∀ z → _⇔_.from Delay⇔Delay x ⇓ z → _⇔_.from Delay⇔Delay y ⇓ z) ↝⟨ F.id ⟩□
_⇔_.from Delay⇔Delay x ⊑ _⇔_.from Delay⇔Delay y □
-- The ordering relation _∥⊑∥_ is pointwise propositional.
∥⊑∥-propositional : ∀ x y → Is-proposition (x ∥⊑∥ y)
∥⊑∥-propositional _ _ =
Π-closure ext 1 λ _ →
Π-closure ext 1 λ _ →
truncation-is-proposition
-- The ordering relation _∥⊑∥_ is reflexive.
∥⊑∥-reflexive : ∀ x → x ∥⊑∥ x
∥⊑∥-reflexive _ = λ _ → id
-- The ordering relation _∥⊑∥_ is transitive.
∥⊑∥-transitive : ∀ x y z → x ∥⊑∥ y → y ∥⊑∥ z → x ∥⊑∥ z
∥⊑∥-transitive _ _ _ p q = λ z → q z ∘ p z
|
test/Succeed/Issue2824BuiltinRewriteInParametrizedModule.agda | alhassy/agda | 1 | 17228 | <filename>test/Succeed/Issue2824BuiltinRewriteInParametrizedModule.agda
-- Andreas, 2017-11-01, issue #2824
-- allow built-in pragmas in parametrized modules
{-# OPTIONS --rewriting #-}
open import Agda.Builtin.Equality
module _ (A : Set) where -- This is the top-level module header.
{-# BUILTIN REWRITE _≡_ #-}
postulate
P : A → Set
a b : A
a→b : a ≡ b
{-# REWRITE a→b #-}
test : P a → P b
test x = x
-- Should succeed.
|
test/Fail/TerminationCheckUnquote.agda | hborum/agda | 3 | 6501 | <gh_stars>1-10
-- Check that unquoted functions are termination checked.
module _ where
open import Common.Prelude hiding (_>>=_)
open import Common.Reflection
open import Common.Equality
`⊥ : Type
`⊥ = def (quote ⊥) []
⊥-elim : ∀ {a} {A : Set a} → ⊥ → A
⊥-elim ()
{-
Generate
cheat : ⊥
cheat = cheat
-}
makeLoop : TC Term
makeLoop =
freshName "cheat" >>= λ cheat →
declareDef (vArg cheat) `⊥ >>= λ _ →
defineFun cheat (clause [] (def cheat []) ∷ []) >>= λ _ →
returnTC (def cheat [])
macro
magic : Tactic
magic hole =
makeLoop >>= λ loop →
unify hole (def (quote ⊥-elim) (vArg loop ∷ []))
postulate
ComplexityClass : Set
P NP : ComplexityClass
thm : P ≡ NP → ⊥
thm = magic
|
CPU/cpu_test/test_storage/rt_accelerate.asm | SilenceX12138/MIPS-Microsystems | 55 | 94565 | <filename>CPU/cpu_test/test_storage/rt_accelerate.asm<gh_stars>10-100
.text
lw $2,4($0)
addiu $2,$1,10 |
oeis/021/A021117.asm | neoneye/loda-programs | 11 | 7073 | <reponame>neoneye/loda-programs
; A021117: Decimal expansion of 1/113.
; Submitted by <NAME>
; 0,0,8,8,4,9,5,5,7,5,2,2,1,2,3,8,9,3,8,0,5,3,0,9,7,3,4,5,1,3,2,7,4,3,3,6,2,8,3,1,8,5,8,4,0,7,0,7,9,6,4,6,0,1,7,6,9,9,1,1,5,0,4,4,2,4,7,7,8,7,6,1,0,6,1,9,4,6,9,0,2,6,5,4,8,6,7,2,5,6,6,3,7,1,6,8,1,4,1,5
add $0,1
mov $3,3
lpb $0
sub $0,1
add $2,$3
div $2,34
mul $3,10
lpe
mov $0,$2
mod $0,10
|
src/Projects/eu_projects-projects-housekeeping.ads | fintatarta/eugen | 0 | 8770 | with EU_Projects.Times.Time_Expressions.Solving;
private package EU_Projects.Projects.Housekeeping is
procedure Link_Milestone_To_Deliverable (Project : in out Project_Descriptor);
procedure Check_Node_Table (Project : in out Project_Descriptor);
function Collect_Equations (Project : Project_Descriptor)
return Times.Time_Expressions.Solving.Time_Equation_System;
procedure Assign_Results (Project : in out Project_Descriptor;
Values : Times.Time_Expressions.Solving.Variable_Map);
Housekeeping_Failed : exception;
end EU_Projects.Projects.Housekeeping;
|
granary/x86/attach.asm | Granary/granary | 37 | 84135 | /* Copyright 2012-2013 <NAME>, all rights reserved. */
#include "granary/x86/asm_defines.asm"
#include "granary/x86/asm_helpers.asm"
#include "granary/pp.h"
START_FILE
DECLARE_FUNC(_ZN7granary6attachENS_22instrumentation_policyE)
GLOBAL_LABEL(_ZN7granary6attachENS_22instrumentation_policyE:)
lea (%rsp), %ARG2;
#if !CONFIG_ENV_KERNEL
# if defined(__clang__) && defined(__APPLE__)
lea SHARED_SYMBOL(_ZN7granary9do_attachENS_22instrumentation_policyEPPh), %rax;
jmpq *%rax;
# else
jmp SHARED_SYMBOL(_ZN7granary9do_attachENS_22instrumentation_policyEPPh);
# endif
#else
jmp SYMBOL(_ZN7granary9do_attachENS_22instrumentation_policyEPPh)
#endif
END_FUNC(ZN7granary6attachEv)
END_FILE
|
oeis/039/A039915.asm | neoneye/loda-programs | 11 | 175431 | <filename>oeis/039/A039915.asm
; A039915: Smallest k such that k(p-1)-1 is positive and divisible by p where p = n-th prime.
; Submitted by <NAME>(s1)
; 3,2,4,6,10,12,16,18,22,28,30,36,40,42,46,52,58,60,66,70,72,78,82,88,96,100,102,106,108,112,126,130,136,138,148,150,156,162,166,172,178,180,190,192,196,198,210,222,226,228,232,238,240,250,256,262,268,270,276,280,282,292,306,310,312,316,330,336,346,348,352,358,366,372,378,382,388,396,400,408,418,420,430,432,438,442,448,456,460,462,466,478,486,490,498,502,508,520,522,540
seq $0,6005 ; The odd prime numbers together with 1.
mov $1,4
div $1,$0
max $1,$0
mov $0,$1
sub $0,1
|
programs/player/polypian.asm | shoaib-jamal/MichalOS | 14 | 85758 | polypiano:
call start.draw_background
call os_check_adlib
jc .adliberror
.error_bypass:
mov ax, buffer
mov bx, .channelmsg
call os_input_dialog
mov si, buffer
call os_string_to_int
cmp al, 9
jg .error
cmp al, 1
jl .error
.init_adlib:
mov byte [.currentchannel], 0
mov [.numofchannels], al
mov si, .dummyinterrupt
mov cx, 1820
mov bl, al
call os_start_adlib
mov cx, 7 ; We will only read 7 registers here
mov si, .adlibsquare
.preparechannels:
lodsw
push cx
clr bx
mov cx, 9
.channelloop:
push ax
add ah, [.adliboffsets + bx]
inc bx
call os_adlib_regwrite
pop ax
loop .channelloop
pop cx
loop .preparechannels
lodsw
.feedbackloop: ; Write the 8th register
call os_adlib_regwrite
inc ah
cmp ah, 0C9h
jne .feedbackloop
call start.draw_clear_background
mov16 dx, 1, 9
call os_move_cursor
mov si, start.piano0
call os_print_string
call os_hide_cursor
.pianoloop:
mov16 dx, 1, 17
call os_move_cursor
mov si, start.octavemsg
call os_print_string
mov al, [start.octave]
call os_print_1hex
call os_wait_for_key
cmp ah, 72
je .octave_up
cmp ah, 80
je .octave_down
cmp al, ' '
je .execstop
cmp al, 27
je .end
mov si, start.keydata1
mov di, start.notedata1
.decodeloop:
mov bh, [si]
inc si
add di, 2
cmp bh, 0
je .pianoloop
cmp ah, bh
jne .decodeloop
sub di, 2 ; We've overflowed a bit
mov ax, [di]
mov bl, [start.octave]
mov cl, 6
sub cl, bl
shr ax, cl
mov cl, [.currentchannel]
call os_adlib_calcfreq
inc cl
cmp cl, [.numofchannels]
jne .no_reset_counter
clr cl
.no_reset_counter:
mov [.currentchannel], cl
jmp .pianoloop
.octave_down:
cmp byte [start.octave], 1
jle .pianoloop
dec byte [start.octave]
jmp .pianoloop
.octave_up:
cmp byte [start.octave], 6
jge .pianoloop
inc byte [start.octave]
jmp .pianoloop
.execstop:
mov cl, 0
.stoploop:
call os_adlib_noteoff
inc cl
cmp cl, 9
jne .stoploop
jmp .pianoloop
.end:
call os_stop_adlib
jmp start
.dummyinterrupt:
ret
.adliberror:
mov byte [0085h], 1
mov ax, start.adlib_msg1
mov bx, start.adlib_msg2
clr cx
mov dx, 1
call os_dialog_box
mov byte [0085h], 0
cmp ax, 0
je .error_bypass
popa
jmp start
.error:
mov ax, .channelerr
mov bx, .channelerr2
clr cx
clr dx
call os_dialog_box
mov al, 9
jmp .init_adlib
.currentchannel db 0
.numofchannels db 0
.adlibsquare db 02h, 20h
db 01h, 23h
db 19h, 40h
db 0F0h,60h
db 0F0h,63h
db 0F0h,80h
db 0FFh,83h
db 0Eh, 0C0h
.adliboffsets db 0, 1, 2, 8, 9, 10, 16, 17, 18
.channelmsg db 'How many notes at once? (1-9)', 0
.channelerr db 'Number not in range.', 0
.channelerr2 db 'Defaulted to 9 notes.', 0
|
src/main/java/com/brolius/antlr/decaf.g4 | gbrolo/decaf-ide | 0 | 1466 | // decaf grammar for antlr v.4
// author@: <NAME>
grammar decaf;
// -------------------------------- LEXER --------------------------------------
fragment LETTER: ('a'..'z'|'A'..'Z') ;
fragment DIGIT: '0'..'9' ;
ID: LETTER( LETTER | DIGIT)* ;
NUM: DIGIT(DIGIT)* ;
COMMENTS: '//' ~('\r' | '\n' )* -> channel(HIDDEN);
WHITESPACE: [ \t\r\n\f]+ ->channel(HIDDEN);
CHAR: '\'' ( ~['\r\n\\] | '\\' ['\\] ) '\'';
// -------------------------------- LEXER --------------------------------------
// ------------------------------- PARSER --------------------------------------
program: 'class' ID '{' (declaration)* '}' ;
declaration: structDeclaration| varDeclaration | methodDeclaration ;
varDeclaration: varType ID ';' | varType ID '[' NUM ']' ';' ;
structDeclaration: 'struct' ID '{' (varDeclaration)* '}' ;
varType: 'int'
| 'char'
| 'boolean'
| 'struct' ID
| structDeclaration
| 'void' ;
methodDeclaration: methodType ID '(' (parameter (',' parameter)*)* ')' block ;
methodType: 'int' | 'char' | 'boolean' | 'void' ;
parameter: parameterType ID | parameterType ID '[' ']' ;
parameterType: 'int' | 'char' | 'boolean' ;
block: '{' (varDeclaration)* (statement)* '}' ;
statement: 'if' '(' expression ')' block ( 'else' block )?
| 'while' '(' expression ')' block
|'return' expressionA ';'
| methodCall ';'
| block
| location '=' expression
| (expression)? ';' ;
expressionA: expression | ;
location: (ID|ID '[' expression ']') ('.' location)? ;
expression: methodCall
| location
| literal
| '('expression')'
| '-' expression
| '!' expression
| expression and_op expression
| expression or_op expression
| expression eq_op expression
| expression rel_op expression
| expression modulus_op expression
| expression div_op expression
| expression mul_op expression
| expression arith_op_sum_subs expression
;
methodCall: ID '(' arg1 ')' ;
arg1: arg2 |;
arg2: (arg) (',' arg)* ;
arg: expression;
and_op: '&&';
or_op: '||';
eq_op: '==' | '!=' ;
rel_op: '<' | '>' | '<=' | '>=' ;
modulus_op: '%';
div_op: '/';
mul_op: '*';
arith_op_sum_subs: '+' | '-';
literal: int_literal | char_literal | bool_literal ;
int_literal: NUM ;
char_literal: CHAR ;
bool_literal: 'true' | 'false' ;
// ------------------------------- PARSER --------------------------------------
|
8085_programming/8085 Programs/test11.asm | SayanGhoshBDA/code-backup | 16 | 161687 | <reponame>SayanGhoshBDA/code-backup
.ORG 0000H
LXI SP,0020H
MVI A,05H
SUI 02H
PUSH PSW
POP D
STA 2000H
HLT
|
Assembly/Project/IO.asm | Myself086/Project-Nested | 338 | 243120 |
// ---------------------------------------------------------------------------
.mx 0x30
IO__Error:
rtl
// ---------------------------------------------------------------------------
// PPUCTRL $2000 VPHB SINN NMI enable (V), PPU master/slave (P), sprite height (H), background tile select (B), sprite tile select (S), increment mode (I), nametable select (NN)
// PPUMASK $2001 BGRs bMmG color emphasis (BGR), sprite enable (s), background enable (b), sprite left column enable (M), background left column enable (m), greyscale (G)
// PPUSTATUS $2002 VSO- ---- vblank (V), sprite 0 hit (S), sprite overflow (O), read resets write pair for $2005/2006
// OAMADDR $2003 aaaa aaaa OAM read/write address
// OAMDATA $2004 dddd dddd OAM data read/write
// PPUSCROLL $2005 xxxx xxxx fine scroll position (two writes: X, Y)
// PPUADDR $2006 aaaa aaaa PPU read/write address (two writes: MSB, LSB)
// PPUDATA $2007 dddd dddd PPU data read/write
// OAMDMA $4014 aaaa aaaa OAM DMA high address
.mx 0x30
IO__r2000_a:
IO__r2000_a_i:
IO__r2000_x:
IO__r2000_y:
rtl
IO__w2000_a:
CoreCall_Begin
CoreCall_Lock
CoreCall_Push
CoreCall_Call IO__w2000_a_i
CoreCall_Pull
CoreCall_End
IO__w2000_x:
CoreCall_Begin
CoreCall_Lock
CoreCall_Push
CoreCall_CopyUpTo +b_1
stx $_IO_2000
b_1:
CoreCall_Call IO__w2000_in
CoreCall_Pull
CoreCall_End
IO__w2000_y:
CoreCall_Begin
CoreCall_Lock
CoreCall_Push
CoreCall_CopyUpTo +b_1
sty $_IO_2000
b_1:
CoreCall_Call IO__w2000_in
CoreCall_Pull
CoreCall_End
IO__w2000_a_i:
sta $_IO_2000
IO__w2000_in:
php
lock
xba
IO__w2000_in2:
lda $_IO_2000
bit #0x04
bne $+IO__w2000_a_inc32
// Change name tables
and #0x03
sta $_PPU_SCROLL_X+1
lsr a
sta $_PPU_SCROLL_Y+1
// Inc 1
lda #.VramQ_PpuAddrInc
sta $0x2180
lda #0x01
sta $0x2180
sta $_IO_PPUADDR_INC
xba
plp
rtl
IO__w2000_a_inc32:
// Change name tables
and #0x03
sta $_PPU_SCROLL_X+1
lsr a
sta $_PPU_SCROLL_Y+1
// Inc 32
lda #.VramQ_PpuAddrInc
sta $0x2180
lda #0x20
sta $0x2180
sta $_IO_PPUADDR_INC
xba
plp
rtl
IO__r2001_a:
IO__r2001_a_i:
IO__r2001_x:
IO__r2001_y:
rtl
IO__w2001_a_i:
sta $_IO_2001
rtl
IO__w2001_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_IO_2001
b_1:
CoreCall_End
IO__w2001_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_IO_2001
b_1:
CoreCall_End
IO__w2001_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_IO_2001
b_1:
CoreCall_End
IO__r2002_a:
IO__r2002_a_i:
IO__r2002_x:
IO__r2002_y:
php
pha
stz $_IO_HILO
// Did we hit sprite 0?
lda $3,s
cmp $_IO_2002_LastReturn
bne $+IO__r2002_NewCall
lda $4,s
sbc $_IO_2002_LastReturn+1
bne $+IO__r2002_NewCall
// Increment and compare with 3 to set bit 6, assuming A==0 and carry set from cmp+!bne
inc $_IO_2002_CallCount
adc $_IO_2002_CallCount
adc #0x3c
and #0x40
beq $+IO__r2002_NoSprite0
stz $_IO_2002_CallCount
ora $_IO_2002
eor #0x80
sta $_IO_2002
sta $_IO_Temp
// Change scanline to sprite 0
lda $_Sprite0Line
sta $_Scanline
// Add new HDMA coordinates
phx
phy
rep #0x10
.mx 0x20
.vstack _VSTACK_START
call Hdma__UpdateScrolling
// Change mode back
sep #0x30
.mx 0x30
ply
plx
pla
plp
rtl
IO__r2002_NoSprite0:
ora $_IO_2002
and #0xbf
eor #0x80
sta $_IO_2002
sta $_IO_Temp
pla
plp
rtl
IO__r2002_NewCall:
lda $3,s
sta $_IO_2002_LastReturn
lda $4,s
sta $_IO_2002_LastReturn+1
stz $_IO_2002_CallCount
lda $_IO_2002
and #0xbf
eor #0x80
sta $_IO_2002
sta $_IO_Temp
pla
plp
rtl
IO__w2002_a:
IO__w2002_a_i:
rtl
IO__w2002_x:
rtl
IO__w2002_y:
rtl
IO__r2003_a:
IO__r2003_a_i:
IO__r2003_x:
IO__r2003_y:
rtl
IO__w2003_a:
IO__w2003_a_i:
rtl
IO__w2003_x:
rtl
IO__w2003_y:
rtl
IO__r2004_a:
IO__r2004_a_i:
IO__r2004_x:
IO__r2004_y:
rtl
IO__w2004_a:
IO__w2004_a_i:
rtl
IO__w2004_x:
rtl
IO__w2004_y:
rtl
IO__r2005_a:
IO__r2005_a_i:
IO__r2005_x:
IO__r2005_y:
rtl
.macro IO__w2005_Mac reg
php
bit $_IO_HILO
bmi $+b_high
b_low:
sec
ror $_IO_HILO
st{0} $_PPU_SCROLL_X
plp
rtl
b_high:
stz $_IO_HILO
st{0} $_PPU_SCROLL_Y
plp
rtl
.endm
IO__w2005_a:
IO__w2005_a_i:
IO__w2005_Mac a
IO__w2005_x:
IO__w2005_Mac x
IO__w2005_y:
IO__w2005_Mac y
IO__r2006_a:
IO__r2006_a_i:
IO__r2006_x:
IO__r2006_y:
rtl
// Note: Value is in X rather than IO_Temp
.macro IO__w2006_Low_Mac
// Write 2
stz $_IO_HILO
lda #.VramQ_PpuAddrLow
sta $0x2180
stx $_IO_PPUADDR+0
stx $0x2180
// Change scroll values (also transfer new scroll values)
lda $_PPU_SCROLL_Y
and #0xc7
ora $=IO__w2006_SR2AND38,x
sta $_PPU_SCROLL_Y
sta $_IO_SCROLL_Y
lda $_PPU_SCROLL_X
and #0x07
ora $=IO__w2006_SL3,x
sta $_PPU_SCROLL_X
sta $_IO_SCROLL_X
lda $_PPU_SCROLL_X+1
sta $_IO_SCROLL_X+1
lsr a
sta $_IO_SCROLL_Y+1
.endm
.macro IO__w2006_High_Mac
// Write 1
ora #0x80
sta $_IO_HILO
lda #.VramQ_PpuAddrHigh
sta $0x2180
txa
and #0x3f
sta $_IO_PPUADDR+1
sta $0x2180
// Change scroll values
lda $_PPU_SCROLL_Y
and #0x38
ora $=IO__w2006_SR4AND03_OR_SL6,x
sta $_PPU_SCROLL_Y
lda $=IO__w2006_SR2AND03,x
sta $_PPU_SCROLL_X+1
lsr a
sta $_PPU_SCROLL_Y+1
.endm
IO__w2006_y:
php
phx
xba
tyx
lock
lda $_IO_HILO
bpl $+b_high
IO__w2006_Low_Mac
xba
plx
plp
rtl
b_high:
IO__w2006_High_Mac
xba
plx
plp
rtl
IO__w2006_x:
php
xba
lock
lda $_IO_HILO
bpl $+b_high
IO__w2006_Low_Mac
xba
plp
rtl
b_high:
IO__w2006_High_Mac
xba
plp
rtl
IO__w2006_a:
IO__w2006_a_i:
php
phx
tax
lock
lda $_IO_HILO
bpl $+b_high
IO__w2006_Low_Mac
txa
plx
plp
rtl
b_high:
IO__w2006_High_Mac
txa
plx
plp
rtl
//IO__w2006_SR4AND03:
// .fill 0x10, 0
// .fill 0x10, 1
// .fill 0x10, 2
// .fill 0x10, 3
// .fill 0x10, 0
// .fill 0x10, 1
// .fill 0x10, 2
// .fill 0x10, 3
// .fill 0x10, 0
// .fill 0x10, 1
// .fill 0x10, 2
// .fill 0x10, 3
// .fill 0x10, 0
// .fill 0x10, 1
// .fill 0x10, 2
// .fill 0x10, 3
//IO__w2006_SL6:
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
// .data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
IO__w2006_SR4AND03_OR_SL6:
.data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
.data8 0x01, 0x41, 0x81, 0xc1, 0x01, 0x41, 0x81, 0xc1, 0x01, 0x41, 0x81, 0xc1, 0x01, 0x41, 0x81, 0xc1
.data8 0x02, 0x42, 0x82, 0xc2, 0x02, 0x42, 0x82, 0xc2, 0x02, 0x42, 0x82, 0xc2, 0x02, 0x42, 0x82, 0xc2
.data8 0x03, 0x43, 0x83, 0xc3, 0x03, 0x43, 0x83, 0xc3, 0x03, 0x43, 0x83, 0xc3, 0x03, 0x43, 0x83, 0xc3
.data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
.data8 0x01, 0x41, 0x81, 0xc1, 0x01, 0x41, 0x81, 0xc1, 0x01, 0x41, 0x81, 0xc1, 0x01, 0x41, 0x81, 0xc1
.data8 0x02, 0x42, 0x82, 0xc2, 0x02, 0x42, 0x82, 0xc2, 0x02, 0x42, 0x82, 0xc2, 0x02, 0x42, 0x82, 0xc2
.data8 0x03, 0x43, 0x83, 0xc3, 0x03, 0x43, 0x83, 0xc3, 0x03, 0x43, 0x83, 0xc3, 0x03, 0x43, 0x83, 0xc3
.data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
.data8 0x01, 0x41, 0x81, 0xc1, 0x01, 0x41, 0x81, 0xc1, 0x01, 0x41, 0x81, 0xc1, 0x01, 0x41, 0x81, 0xc1
.data8 0x02, 0x42, 0x82, 0xc2, 0x02, 0x42, 0x82, 0xc2, 0x02, 0x42, 0x82, 0xc2, 0x02, 0x42, 0x82, 0xc2
.data8 0x03, 0x43, 0x83, 0xc3, 0x03, 0x43, 0x83, 0xc3, 0x03, 0x43, 0x83, 0xc3, 0x03, 0x43, 0x83, 0xc3
.data8 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0, 0x00, 0x40, 0x80, 0xc0
.data8 0x01, 0x41, 0x81, 0xc1, 0x01, 0x41, 0x81, 0xc1, 0x01, 0x41, 0x81, 0xc1, 0x01, 0x41, 0x81, 0xc1
.data8 0x02, 0x42, 0x82, 0xc2, 0x02, 0x42, 0x82, 0xc2, 0x02, 0x42, 0x82, 0xc2, 0x02, 0x42, 0x82, 0xc2
.data8 0x03, 0x43, 0x83, 0xc3, 0x03, 0x43, 0x83, 0xc3, 0x03, 0x43, 0x83, 0xc3, 0x03, 0x43, 0x83, 0xc3
IO__w2006_SR2AND03:
.data8 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3
.data8 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3
.data8 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3
.data8 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3
.data8 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3
.data8 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3
.data8 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3
.data8 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3
IO__w2006_SL3:
.data8 0x00, 0x08, 0x10, 0x18, 0x20, 0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60, 0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0, 0xa8, 0xb0, 0xb8, 0xc0, 0xc8, 0xd0, 0xd8, 0xe0, 0xe8, 0xf0, 0xf8
.data8 0x00, 0x08, 0x10, 0x18, 0x20, 0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60, 0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0, 0xa8, 0xb0, 0xb8, 0xc0, 0xc8, 0xd0, 0xd8, 0xe0, 0xe8, 0xf0, 0xf8
.data8 0x00, 0x08, 0x10, 0x18, 0x20, 0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60, 0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0, 0xa8, 0xb0, 0xb8, 0xc0, 0xc8, 0xd0, 0xd8, 0xe0, 0xe8, 0xf0, 0xf8
.data8 0x00, 0x08, 0x10, 0x18, 0x20, 0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60, 0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0, 0xa8, 0xb0, 0xb8, 0xc0, 0xc8, 0xd0, 0xd8, 0xe0, 0xe8, 0xf0, 0xf8
.data8 0x00, 0x08, 0x10, 0x18, 0x20, 0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60, 0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0, 0xa8, 0xb0, 0xb8, 0xc0, 0xc8, 0xd0, 0xd8, 0xe0, 0xe8, 0xf0, 0xf8
.data8 0x00, 0x08, 0x10, 0x18, 0x20, 0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60, 0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0, 0xa8, 0xb0, 0xb8, 0xc0, 0xc8, 0xd0, 0xd8, 0xe0, 0xe8, 0xf0, 0xf8
.data8 0x00, 0x08, 0x10, 0x18, 0x20, 0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60, 0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0, 0xa8, 0xb0, 0xb8, 0xc0, 0xc8, 0xd0, 0xd8, 0xe0, 0xe8, 0xf0, 0xf8
.data8 0x00, 0x08, 0x10, 0x18, 0x20, 0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60, 0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0, 0xa8, 0xb0, 0xb8, 0xc0, 0xc8, 0xd0, 0xd8, 0xe0, 0xe8, 0xf0, 0xf8
IO__w2006_SR2AND38:
.fill 0x20, 0x00
.fill 0x20, 0x08
.fill 0x20, 0x10
.fill 0x20, 0x18
.fill 0x20, 0x20
.fill 0x20, 0x28
.fill 0x20, 0x30
.fill 0x20, 0x38
IO__r2007_ChrRamReadCode:
// This code is copied to RAM at "ChrRam_Read"
lda $=ChrRam_CONSTBANK
jmp $_IO__r2007_ChrRamCallBack
IO__r2007_ChrRamWriteCode:
// This code is copied to RAM at "ChrRam_Write"
sta $=ChrRam_CONSTBANK
pla
plp
rtl
IO__r2007_a:
IO__r2007_a_i:
IO__r2007_x:
IO__r2007_y:
php
pha
// Queue a dummy read
lda #.VramQ_Read
sta $0x2180
// Return last byte read
lda $_IO_2007r
sta $_IO_Temp
// Load higher bits of address
lda $_IO_PPUADDR+1
// Is it CHR banks?
cmp #0x20
bcs $+b_1
phx
// Is this game using CHR RAM?
ldx $_CHR_0_PageLength
bne $+b_2
// Read from CHR RAM clone
lda $_ChrRam_Page
trapeq
Exception "Reading CHR RAM{}{}{}CPU attempted to read CHR RAM.{}{}CHR RAM clone must be turned on for this game."
// Calculate destination address, assume carry clear from BCS
//clc
adc $_IO_PPUADDR+1
sta $_ChrRam_Read+2
lda $_IO_PPUADDR+0
sta $_ChrRam_Read+1
// Increment PPU address, assume carry clear because ADC shouldn't wrap the bank
//clc
adc $_IO_PPUADDR_INC
sta $_IO_PPUADDR+0
bcc $+b_3
inc $_IO_PPUADDR+1
b_3:
// Call
plx
jmp $_ChrRam_Read
IO__r2007_ChrRamCallBack:
// "Return" value
sta $_IO_2007r
pla
plp
rtl
b_2:
phy
// Apply pattern swap
tay
lda $_IO_MapperChrBankSwap
lsr a
tya
bcc $+b_2
eor #0x10
b_2:
// Push bank only for CHR ROM
phb
// Which page are we in? Keep carry set during the loop
ldy #0xff
sec
b_loop:
iny
sbc $_CHR_0_PageLength,y
bcs $-b_loop
// Go back by 1 index, assume carry clear from BCS
adc $_CHR_0_PageLength,y
// Push incomplete address to stack
pha
lda $_IO_PPUADDR
pha
// Load CHR page and bank
lda $_CHR_0_NesBank,y
tax
lda $=RomInfo_ChrBankLut_hi,x
pha
plb
lda $=RomInfo_ChrBankLut_lo,x
clc
adc $2,s
sta $2,s
// Read byte
ldy #0
lda ($1,s),y
// Clear pointer and restore DB
ply
ply
plb
sta $_IO_2007r
// Increment address
lda $_IO_PPUADDR
clc
adc $_IO_PPUADDR_INC
sta $_IO_PPUADDR
bcc $+b_2
inc $_IO_PPUADDR+1
b_2:
ply
plx
pla
plp
rtl
b_1:
// Is it name tables?
cmp #0x30
bcs $+IO__r2007_skip20
phx
tax
lda $_NameTable_Remap_Main-0x20,x
xba
lda $_IO_PPUADDR
rep #0x11
.mx 0x20
tax
lda $=Nes_Nametables-0x2000,x
sta $_IO_2007r
// Increment address
lda $_IO_PPUADDR
adc $_IO_PPUADDR_INC
sta $_IO_PPUADDR
sep #0x30
.mx 0x30
plx
pla
plp
rtl
IO__r2007_skip20:
// Is it palette?
cmp #0x3f
bne $+IO__r2007_skip3f
phx
ldx $_IO_PPUADDR
lda $=IO__w2007_PaletteMirror,x
tax
lda $_PaletteNes,x
// Immediate return instead of next read
sta $_IO_Temp
// Increment address
lda $_IO_PPUADDR
clc
adc $_IO_PPUADDR_INC
sta $_IO_PPUADDR
plx
pla
plp
rtl
IO__r2007_skip3f:
pla
plp
rtl
IO__w2007_y:
sty $_IO_Temp
bra $+IO__w2007_In
IO__w2007_x:
stx $_IO_Temp
bra $+IO__w2007_In
IO__w2007_a:
IO__w2007_a_i:
sta $_IO_Temp
//bra $+IO__w2007_In
IO__w2007_In:
php
pha
// TODO: Properly fix port 2002 shortcut
stz $_IO_2002_LastReturn+1
// Load higher bits of address
lda $_IO_PPUADDR+1
and #0x3f
// Is it CHR banks?
cmp #0x20
bcs $+IO__w2007_skip00
// Is this game using CHR RAM?
lda $_CHR_0_PageLength
bne $+IO__w2007_skip00
// Write to CHR banks
lda #.VramQ_Tile
lock
sta $0x2180
lda $_IO_Temp
sta $0x2180
// Write to CHR RAM clone
lda $_ChrRam_Page
beq $+b_2
// Calculate destination address, assume carry clear from BCS
//clc
adc $_IO_PPUADDR+1
sta $_ChrRam_Write+2
lda $_IO_PPUADDR+0
sta $_ChrRam_Write+1
// Increment PPU address, assume carry clear because ADC shouldn't wrap the bank
//clc
adc $_IO_PPUADDR_INC
sta $_IO_PPUADDR+0
bcc $+b_3
inc $_IO_PPUADDR+1
b_3:
// Call
jmp $_ChrRam_Write
b_2:
pla
plp
rtl
IO__w2007_skip00:
// Is it name tables?
cmp #0x30
jcs $_IO__w2007_skip20
phx
tax
lda $_NameTable_Remap_Main-0x20,x
xba
lda $_IO_PPUADDR
rep #0x11
.mx 0x20
tax
rep #0x10
.mx 0x20
lda $_IO_Temp
cmp $=Nes_Nametables-0x2000,x
beq $+IO__w2007_NoChanges_16bit
sta $=Nes_Nametables-0x2000,x
rep #0x31
.mx 0x00
// Is it attribute?
txa
and #0x03c0
eor #0x03c0
bne $+IO__w2007_skipAttribute
lda $_IO_PPUADDR
adc $_IO_PPUADDR_INC
sta $_IO_PPUADDR
sep #0x34
.mx 0x30
// Write to queue
lda #.VramQ_TileAttribute
//lock
sta $0x2180
lda $_IO_Temp
sta $0x2180
plx
pla
plp
rtl
IO__w2007_skipAttribute:
.mx 0x00
lda $_IO_PPUADDR
adc $_IO_PPUADDR_INC
sta $_IO_PPUADDR
sep #0x34
.mx 0x30
// Write to queue
lda #.VramQ_Tile
//lock
sta $0x2180
lda $_IO_Temp
sta $0x2180
plx
pla
plp
rtl
IO__w2007_NoChanges_16bit:
rep #0x31
.mx 0x00
lda $_IO_PPUADDR
adc $_IO_PPUADDR_INC
sta $_IO_PPUADDR
sep #0x30
.mx 0x30
// Value written is unchanged, queue a dummy read instead
lda #.VramQ_Read
sta $0x2180
plx
pla
plp
rtl
IO__w2007_NoChanges:
// Value written is unchanged, queue a dummy read instead
lda #.VramQ_Read
sta $0x2180
// Increment address
lda $_IO_PPUADDR
clc
adc $_IO_PPUADDR_INC
sta $_IO_PPUADDR
plx
pla
plp
rtl
IO__w2007_skip20:
// Is it palette?
cmp #0x3f
bne $+IO__w2007_skip3f
phx
ldx $_IO_PPUADDR
lda $=IO__w2007_PaletteMirror,x
tax
lda $_IO_Temp
cmp $_PaletteNes,x
beq $-IO__w2007_NoChanges
sta $_PaletteNes,x
rep #0x31
.mx 0x00
lda $_IO_PPUADDR
adc $_IO_PPUADDR_INC
sta $_IO_PPUADDR
sep #0x34
.mx 0x30
// Write to queue
lda #.VramQ_Palette
//lock
sta $0x2180
lda $_IO_Temp
asl a
sta $0x2180
plx
pla
plp
rtl
IO__w2007_skip3f:
// Return
pla
plp
rtl
IO__w2007_PaletteMirror:
.repeat 8, ".data8 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x00, 0x11, 0x12, 0x13, 0x04, 0x15, 0x16, 0x17, 0x08, 0x19, 0x1a, 0x1b, 0x0c, 0x1d, 0x1e, 0x1f"
.macro IO__w4014_mac8x8 addr
//ldy #0xef
cpy $.Zero+0+{0}
bcc $+b_next
// A
ldx $.Zero+2+{0}
lda $_IO__SpriteAttributeLUT,x
eor $_IO_Temp
pha
// Y, T
pei ($.Zero+0+{0})
// X
ldx $.Zero+3+{0}
phx
b_next:
.endm
.macro IO__w4014_mac8x16 addr
{1}stz $_Sprite0Line
cmp $.Zero+0+{0}
bcc $+b_end
b_in:
ldy $.Zero+2+{0}
bpl $+b_NoYFlip
// With Y flip
// Prepare T1 and A1, keep A1/A2 in A and T1/T2 in X
lda $.Zero+1+{0}
ora #0x01
tax
eor $.Zero+1+{0}
eor $_IO__SpriteAttributeLUT2,y
eor $_IO_Temp
// A1
pha
// T1
phx
// Y1
ldy $.Zero+0+{0}
phy
// X1
ldy $.Zero+3+{0}
phy
// A2
pha
// T2
dex
phx
// Y2, assume carry set from BCC
lda $.Zero+0+{0}
tay
adc #7
{1}sta $_Sprite0Line
pha
// Mark scanline for potentially hitting the 8 sprites limit
ldx $_IO__SR3,y
dec $_Sprites_CountdownPer8Lines+0,x
dec $_Sprites_CountdownPer8Lines+1,x
dec $_Sprites_CountdownPer8Lines+2,x
// X2
ldy $.Zero+3+{0}
phy
// Compare next (TODO: Compare and jump directly into the next macro)
lda #0xef
bra $+b_end
// Else
b_NoYFlip:
// Without Y flip
// Prepare T1 and A1, keep A1/A2 in A and T1/T2 in X
lda $.Zero+1+{0}
and #0xfe
tax
eor $.Zero+1+{0}
eor $_IO__SpriteAttributeLUT,y
eor $_IO_Temp
// A1
pha
// T1
phx
// Y1
ldy $.Zero+0+{0}
phy
// X1
ldy $.Zero+3+{0}
phy
// A2
pha
// T2
inx
phx
// Y2, assume carry set from BCC
lda $.Zero+0+{0}
tay
adc #7
{1}sta $_Sprite0Line
pha
// Mark scanline for potentially hitting the 8 sprites limit
ldx $_IO__SR3,y
dec $_Sprites_CountdownPer8Lines+0,x
dec $_Sprites_CountdownPer8Lines+1,x
dec $_Sprites_CountdownPer8Lines+2,x
// X2
ldy $.Zero+3+{0}
phy
// Compare next
lda #0xef
b_end:
.endm
.macro IO__w4014_mac8x16_nolimit addr
cmp $.Zero+0+{0}
bcc $+b_end
b_in:
ldy $.Zero+2+{0}
bpl $+b_NoYFlip
// With Y flip
// Prepare T1 and A1, keep A1/A2 in A and T1/T2 in X
lda $.Zero+1+{0}
ora #0x01
tax
eor $.Zero+1+{0}
eor $_IO__SpriteAttributeLUT2,y
eor $_IO_Temp
// A1
pha
// T1
phx
// Y1
ldy $.Zero+0+{0}
phy
// X1
ldy $.Zero+3+{0}
phy
// A2
pha
// T2
dex
phx
// Y2, assume carry set from BCC
lda $.Zero+0+{0}
adc #7
pha
// X2
phy
// Compare next (TODO: Compare and jump directly into the next macro)
lda #0xef
bra $+b_end
// Else
b_NoYFlip:
// Without Y flip
// Prepare T1 and A1, keep A1/A2 in A and T1/T2 in X
lda $.Zero+1+{0}
and #0xfe
tax
eor $.Zero+1+{0}
eor $_IO__SpriteAttributeLUT,y
eor $_IO_Temp
// A1
pha
// T1
phx
// Y1
ldy $.Zero+0+{0}
phy
// X1
ldy $.Zero+3+{0}
phy
// A2
pha
// T2
inx
phx
// Y2, assume carry set from BCC
lda $.Zero+0+{0}
adc #7
pha
// X2
phy
// Compare next
lda #0xef
b_end:
.endm
.mx 0x30
IO__r4014_RangeFix:
// Is it between 0x08-0x1f?
cmp #0x20
bcs $+b_1
and #0x07
sta $_IO_Temp
bra $+IO__w4014_RangeFixExit
b_1:
// Is it between 0x20-0x5f? (TODO: Support mappers using this range?)
cmp #0x60
trapcc
Exception "DMA Transfer Failed{}{}{}IO.w4014 attempted to copy bytes from page 0x{a:X}"
// Is between 0x60-0xff
// Load correct bank
and #0xe0
tax
lda $_Program_Bank+2,x
pha
plb
// Prepare countdown before changing to 16-bit mode
ldy #0x10
smx 0x00
// Copy sprite data
ldx $_IO_Temp-1
b_loop:
lda $0x0000,x
sta $_NesSpriteRemap+0x00,x
lda $0x0020,x
sta $_NesSpriteRemap+0x20,x
lda $0x0040,x
sta $_NesSpriteRemap+0x40,x
lda $0x0060,x
sta $_NesSpriteRemap+0x60,x
lda $0x0080,x
sta $_NesSpriteRemap+0x80,x
lda $0x00a0,x
sta $_NesSpriteRemap+0xa0,x
lda $0x00c0,x
sta $_NesSpriteRemap+0xc0,x
lda $0x00e0,x
sta $_NesSpriteRemap+0xe0,x
inx
inx
dey
bne $-b_loop
smx 0x30
// Change page
lda #.NesSpriteRemap/0x100
sta $_IO_Temp
bra $+IO__w4014_RangeFixExit
.mx 0x30
IO__r4014_a:
IO__r4014_a_i:
IO__r4014_x:
IO__r4014_y:
stz $_IO_Temp
rtl
IO__w4014_x:
stx $_IO_Temp
bra $+IO__w4014_In
IO__w4014_y:
sty $_IO_Temp
bra $+IO__w4014_In
IO__w4014_a:
IO__w4014_a_i:
sta $_IO_Temp
//bra $+IO__w4014_In
IO__w4014_In:
php
phb
pha
phx
phy
lock
// Do we need to fix the page number?
lda $_IO_Temp
cmp #0x08
bcs $-IO__r4014_RangeFix
IO__w4014_RangeFixExit:
phk
plb
// Nes: Y, T, A, X
// Snes: X, Y, T, A
// What size are sprites?
lda $_IO_2000_EarlyValue
and #0x20
beq $+IO__w4014_8x8
jmp $_IO__w4014_8x16
IO__w4014_8x8:
// Sprite limit?
lda $=RomInfo_SpriteLimit
bpl $+IO__w4014_8x8_nolimit
jmp $_IO__w4014_8x8_limit
IO__w4014_8x8_nolimit:
// Change mode
.mx 0x00
rep #0x31
// Change DP to point to Nes sprite
lda $_IO_Temp-1
tcd
// Keep stack pointer and replace it to the sprite buffer
tsc
sta $_IO_Temp16
// Replace stack pointer to the sprite buffer
lda #_Sprites_Buffer+0x0ff
tcs
// Change mode
.mx 0x30
sep #0x30
// Nes: Y, T, A, X
// Snes: X, Y, T, A
// Update sprite 0 hit, assume carry clear from REP
lda $0x00
adc $=RomInfo_SpriteZeroOffset
bcc $+b_1
lda #0xf0
b_1:
sta $_Sprite0Line
// Which sprite bank to use?
lda $_IO_2000_EarlyValue
lsr a
lsr a
lsr a
eor $_IO_MapperChrBankSwap
and #0x01
sta $_IO_Temp
// Convert all sprites
ldy #0xef
IO__w4014_mac8x8 0xfc
IO__w4014_mac8x8 0xf8
IO__w4014_mac8x8 0xf4
IO__w4014_mac8x8 0xf0
IO__w4014_mac8x8 0xec
IO__w4014_mac8x8 0xe8
IO__w4014_mac8x8 0xe4
IO__w4014_mac8x8 0xe0
IO__w4014_mac8x8 0xdc
IO__w4014_mac8x8 0xd8
IO__w4014_mac8x8 0xd4
IO__w4014_mac8x8 0xd0
IO__w4014_mac8x8 0xcc
IO__w4014_mac8x8 0xc8
IO__w4014_mac8x8 0xc4
IO__w4014_mac8x8 0xc0
IO__w4014_mac8x8 0xbc
IO__w4014_mac8x8 0xb8
IO__w4014_mac8x8 0xb4
IO__w4014_mac8x8 0xb0
IO__w4014_mac8x8 0xac
IO__w4014_mac8x8 0xa8
IO__w4014_mac8x8 0xa4
IO__w4014_mac8x8 0xa0
IO__w4014_mac8x8 0x9c
IO__w4014_mac8x8 0x98
IO__w4014_mac8x8 0x94
IO__w4014_mac8x8 0x90
IO__w4014_mac8x8 0x8c
IO__w4014_mac8x8 0x88
IO__w4014_mac8x8 0x84
IO__w4014_mac8x8 0x80
IO__w4014_mac8x8 0x7c
IO__w4014_mac8x8 0x78
IO__w4014_mac8x8 0x74
IO__w4014_mac8x8 0x70
IO__w4014_mac8x8 0x6c
IO__w4014_mac8x8 0x68
IO__w4014_mac8x8 0x64
IO__w4014_mac8x8 0x60
IO__w4014_mac8x8 0x5c
IO__w4014_mac8x8 0x58
IO__w4014_mac8x8 0x54
IO__w4014_mac8x8 0x50
IO__w4014_mac8x8 0x4c
IO__w4014_mac8x8 0x48
IO__w4014_mac8x8 0x44
IO__w4014_mac8x8 0x40
IO__w4014_mac8x8 0x3c
IO__w4014_mac8x8 0x38
IO__w4014_mac8x8 0x34
IO__w4014_mac8x8 0x30
IO__w4014_mac8x8 0x2c
IO__w4014_mac8x8 0x28
IO__w4014_mac8x8 0x24
IO__w4014_mac8x8 0x20
IO__w4014_mac8x8 0x1c
IO__w4014_mac8x8 0x18
IO__w4014_mac8x8 0x14
IO__w4014_mac8x8 0x10
IO__w4014_mac8x8 0x0c
IO__w4014_mac8x8 0x08
IO__w4014_mac8x8 0x04
IO__w4014_mac8x8 0x00
// Are extra sprites already loaded?
bit $_IO_4014_SpriteSize
bpl $+b_1
// Change mode
.mx 0x00
rep #0x30
// Clear the second half of sprite memory and extra bits
lda #0xf000
ldx #0x001c
b_loop:
sta $_Sprites_Buffer+0x100,x
sta $_Sprites_Buffer+0x120,x
sta $_Sprites_Buffer+0x140,x
sta $_Sprites_Buffer+0x160,x
sta $_Sprites_Buffer+0x180,x
sta $_Sprites_Buffer+0x1a0,x
sta $_Sprites_Buffer+0x1c0,x
sta $_Sprites_Buffer+0x1e0,x
stz $_Sprites_Buffer+0x200,x
dex
dex
dex
dex
bpl $-b_loop
// Change mode
.mx 0x30
sep #0x30
b_1:
// Queue sprite DMA (TODO: No priority transfer)
lda #.VramQ_SpriteXfer8x8
sta $0x2180
tsc
inc a
lsr a
sta $0x2180
// Change mode
.mx 0x20
rep #0x10
// Save sprite size
stz $_IO_4014_SpriteSize
// Fill remaining space in the sprite buffer
tsx
lda #0xf0
jmp ($_IO__w4014_FillSwitch+1-Sprites_Buffer,x)
IO__w4014_8x8_limit:
// Change mode
.mx 0x00
rep #0x31
// Change DP to point to Nes sprite
lda $_IO_Temp-1
tcd
// Keep stack pointer and replace it to the sprite buffer
tsc
sta $_IO_Temp16
// Replace stack pointer to the sprite buffer
lda #_Sprites_Buffer+0x0ff
tcs
// Change mode
.mx 0x30
sep #0x30
// Nes: Y, T, A, X
// Snes: X, Y, T, A
// Update sprite 0 hit, assume carry clear from REP
lda $0x00
adc $=RomInfo_SpriteZeroOffset
bcc $+b_1
lda #0xf0
b_1:
sta $_Sprite0Line
// Which sprite bank to use?
lda $_IO_2000_EarlyValue
lsr a
lsr a
lsr a
eor $_IO_MapperChrBankSwap
and #0x01
sta $_IO_Temp
// Convert all sprites
ldy #0xef
IO__w4014_mac8x8 0x00
IO__w4014_mac8x8 0x04
IO__w4014_mac8x8 0x08
IO__w4014_mac8x8 0x0c
IO__w4014_mac8x8 0x10
IO__w4014_mac8x8 0x14
IO__w4014_mac8x8 0x18
IO__w4014_mac8x8 0x1c
IO__w4014_mac8x8 0x20
IO__w4014_mac8x8 0x24
IO__w4014_mac8x8 0x28
IO__w4014_mac8x8 0x2c
IO__w4014_mac8x8 0x30
IO__w4014_mac8x8 0x34
IO__w4014_mac8x8 0x38
IO__w4014_mac8x8 0x3c
IO__w4014_mac8x8 0x40
IO__w4014_mac8x8 0x44
IO__w4014_mac8x8 0x48
IO__w4014_mac8x8 0x4c
IO__w4014_mac8x8 0x50
IO__w4014_mac8x8 0x54
IO__w4014_mac8x8 0x58
IO__w4014_mac8x8 0x5c
IO__w4014_mac8x8 0x60
IO__w4014_mac8x8 0x64
IO__w4014_mac8x8 0x68
IO__w4014_mac8x8 0x6c
IO__w4014_mac8x8 0x70
IO__w4014_mac8x8 0x74
IO__w4014_mac8x8 0x78
IO__w4014_mac8x8 0x7c
IO__w4014_mac8x8 0x80
IO__w4014_mac8x8 0x84
IO__w4014_mac8x8 0x88
IO__w4014_mac8x8 0x8c
IO__w4014_mac8x8 0x90
IO__w4014_mac8x8 0x94
IO__w4014_mac8x8 0x98
IO__w4014_mac8x8 0x9c
IO__w4014_mac8x8 0xa0
IO__w4014_mac8x8 0xa4
IO__w4014_mac8x8 0xa8
IO__w4014_mac8x8 0xac
IO__w4014_mac8x8 0xb0
IO__w4014_mac8x8 0xb4
IO__w4014_mac8x8 0xb8
IO__w4014_mac8x8 0xbc
IO__w4014_mac8x8 0xc0
IO__w4014_mac8x8 0xc4
IO__w4014_mac8x8 0xc8
IO__w4014_mac8x8 0xcc
IO__w4014_mac8x8 0xd0
IO__w4014_mac8x8 0xd4
IO__w4014_mac8x8 0xd8
IO__w4014_mac8x8 0xdc
IO__w4014_mac8x8 0xe0
IO__w4014_mac8x8 0xe4
IO__w4014_mac8x8 0xe8
IO__w4014_mac8x8 0xec
IO__w4014_mac8x8 0xf0
IO__w4014_mac8x8 0xf4
IO__w4014_mac8x8 0xf8
IO__w4014_mac8x8 0xfc
// Are extra sprites already loaded?
bit $_IO_4014_SpriteSize
bpl $+b_1
// Change mode
.mx 0x00
rep #0x30
// Adjust sprite size
ldx #0xffff
stx $_Sprites_Buffer+0x210
ldx #0x55ff
stx $_Sprites_Buffer+0x212
ldx #0x5555
stx $_Sprites_Buffer+0x214
stx $_Sprites_Buffer+0x216
stx $_Sprites_Buffer+0x218
stx $_Sprites_Buffer+0x21a
stx $_Sprites_Buffer+0x21c
stx $_Sprites_Buffer+0x21e
// Write 60 8x8 sprites, 2 for each 8 lines (some of which are overwritten after this loop)
lda #0xf000
ldx #0x0074
sec
b_loop:
sbc #0x0800
sta $_Sprites_Buffer+0x110,x
sta $_Sprites_Buffer+0x188,x
dex
dex
dex
dex
bpl $-b_loop
// Write big sprites
stz $_Sprites_Buffer+0x100
stz $_Sprites_Buffer+0x110
stz $_Sprites_Buffer+0x120
lda #0xc000
sta $_Sprites_Buffer+0x104
sta $_Sprites_Buffer+0x114
sta $_Sprites_Buffer+0x124
asl a
sta $_Sprites_Buffer+0x108
sta $_Sprites_Buffer+0x118
sta $_Sprites_Buffer+0x128
lsr a
sta $_Sprites_Buffer+0x10c
sta $_Sprites_Buffer+0x11c
sta $_Sprites_Buffer+0x12c
// Change mode
.mx 0x30
sep #0x30
b_1:
// Change mode
.mx 0x20
rep #0x10
// Queue sprite DMA
lda #.VramQ_SpriteXfer8x8
sta $0x2180
tsc
inc a
lsr a
sta $0x2180
// Do we have 8 free sprites?
tsx
cpx #_Sprites_Buffer+0x021
bcc $+b_1
// Are these 8 sprites already written?
lda #0x01
and $_IO_4014_SpriteSize
bne $+b_2
// Move our 8 sprites offscreen
ldy #0x5555
sty $_Sprites_Buffer+0x200
// Write our 8 sprites
ldy #0x0000
sty $_Sprites_Buffer+0x000
ldy #0x0800
sty $_Sprites_Buffer+0x004
ldy #0x1000
sty $_Sprites_Buffer+0x008
ldy #0x1800
sty $_Sprites_Buffer+0x00c
ldy #0x2000
sty $_Sprites_Buffer+0x010
ldy #0x2800
sty $_Sprites_Buffer+0x014
ldy #0x3000
sty $_Sprites_Buffer+0x018
ldy #0x3800
sty $_Sprites_Buffer+0x01c
// Save sprite size
lda #0x01
sta $_IO_4014_SpriteSize
b_2:
// Fill remaining space in the sprite buffer (Except first 8 sprites)
//tsx
lda #0xf0
jmp ($_IO__w4014_FillSwitch2+1-Sprites_Buffer,x)
b_1:
// Move sprites on screen
stz $_Sprites_Buffer+0x200
stz $_Sprites_Buffer+0x201
// Save sprite size
stz $_IO_4014_SpriteSize
// Fill remaining space in the sprite buffer
//tsx
lda #0xf0
jmp ($_IO__w4014_FillSwitch+1-Sprites_Buffer,x)
.mx 0x30
IO__w4014_8x16:
// Sprite limit?
lda $=RomInfo_SpriteLimit
bpl $+IO__w4014_8x16_nolimit
jmp $_IO__w4014_8x16_limit
IO__w4014_8x16_nolimit:
// Change mode and clear carry for sprite 0 math
.mx 0x10
rep #0x21
// Change DP to point to Nes sprite
lda $_IO_Temp-1
tcd
// Keep stack pointer
tsc
sta $_IO_Temp16
// Replace stack pointer to the sprite buffer
lda #_Sprites_Buffer+0x1ff
tcs
// Change mode
.mx 0x30
sep #0x30
// Which sprite bank to use?
lda $_IO_MapperChrBankSwap
and #0x01
sta $_IO_Temp
// Nes: Y, T, A, X
// Snes: X, Y, T, A
// Update sprite 0 hit, assume carry clear from REP
lda $0x00
adc $=RomInfo_SpriteZeroOffset
bcc $+b_1
lda #0xf0
b_1:
sta $_Sprite0Line
lda #0xef
IO__w4014_mac8x16_nolimit 0xfc
IO__w4014_mac8x16_nolimit 0xf8
IO__w4014_mac8x16_nolimit 0xf4
IO__w4014_mac8x16_nolimit 0xf0
IO__w4014_mac8x16_nolimit 0xec
IO__w4014_mac8x16_nolimit 0xe8
IO__w4014_mac8x16_nolimit 0xe4
IO__w4014_mac8x16_nolimit 0xe0
IO__w4014_mac8x16_nolimit 0xdc
IO__w4014_mac8x16_nolimit 0xd8
IO__w4014_mac8x16_nolimit 0xd4
IO__w4014_mac8x16_nolimit 0xd0
IO__w4014_mac8x16_nolimit 0xcc
IO__w4014_mac8x16_nolimit 0xc8
IO__w4014_mac8x16_nolimit 0xc4
IO__w4014_mac8x16_nolimit 0xc0
IO__w4014_mac8x16_nolimit 0xbc
IO__w4014_mac8x16_nolimit 0xb8
IO__w4014_mac8x16_nolimit 0xb4
IO__w4014_mac8x16_nolimit 0xb0
IO__w4014_mac8x16_nolimit 0xac
IO__w4014_mac8x16_nolimit 0xa8
IO__w4014_mac8x16_nolimit 0xa4
IO__w4014_mac8x16_nolimit 0xa0
IO__w4014_mac8x16_nolimit 0x9c
IO__w4014_mac8x16_nolimit 0x98
IO__w4014_mac8x16_nolimit 0x94
IO__w4014_mac8x16_nolimit 0x90
IO__w4014_mac8x16_nolimit 0x8c
IO__w4014_mac8x16_nolimit 0x88
IO__w4014_mac8x16_nolimit 0x84
IO__w4014_mac8x16_nolimit 0x80
IO__w4014_mac8x16_nolimit 0x7c
IO__w4014_mac8x16_nolimit 0x78
IO__w4014_mac8x16_nolimit 0x74
IO__w4014_mac8x16_nolimit 0x70
IO__w4014_mac8x16_nolimit 0x6c
IO__w4014_mac8x16_nolimit 0x68
IO__w4014_mac8x16_nolimit 0x64
IO__w4014_mac8x16_nolimit 0x60
IO__w4014_mac8x16_nolimit 0x5c
IO__w4014_mac8x16_nolimit 0x58
IO__w4014_mac8x16_nolimit 0x54
IO__w4014_mac8x16_nolimit 0x50
IO__w4014_mac8x16_nolimit 0x4c
IO__w4014_mac8x16_nolimit 0x48
IO__w4014_mac8x16_nolimit 0x44
IO__w4014_mac8x16_nolimit 0x40
IO__w4014_mac8x16_nolimit 0x3c
IO__w4014_mac8x16_nolimit 0x38
IO__w4014_mac8x16_nolimit 0x34
IO__w4014_mac8x16_nolimit 0x30
IO__w4014_mac8x16_nolimit 0x2c
IO__w4014_mac8x16_nolimit 0x28
IO__w4014_mac8x16_nolimit 0x24
IO__w4014_mac8x16_nolimit 0x20
IO__w4014_mac8x16_nolimit 0x1c
IO__w4014_mac8x16_nolimit 0x18
IO__w4014_mac8x16_nolimit 0x14
IO__w4014_mac8x16_nolimit 0x10
IO__w4014_mac8x16_nolimit 0x0c
IO__w4014_mac8x16_nolimit 0x08
IO__w4014_mac8x16_nolimit 0x04
IO__w4014_mac8x16_nolimit 0x00
// Queue sprite DMA (TODO: No priority transfer)
lda #.VramQ_SpriteXfer8x8
sta $0x2180
tsc
inc a
lsr a
sta $0x2180
// Change mode
.mx 0x20
rep #0x10
// Save sprite size and fill remaining space in the sprite buffer
tsx
lda #0xf0
sta $_IO_4014_SpriteSize
jmp ($_IO__w4014_FillSwitch+1-Sprites_Buffer,x)
IO__w4014_8x16_limit:
// Change mode and clear carry for sprite 0 math
.mx 0x10
rep #0x21
// Change DP to point to Nes sprite
lda $_IO_Temp-1
tcd
// Keep stack pointer
tsc
sta $_IO_Temp16
// Reset sprite count per scanline
lda #_Sprites_CountdownPer8Lines+0x1d
tcs
lda #0x0808
pha
pha
pha
pha
pha
pha
pha
pha
pha
pha
pha
pha
pha
pha
pha
// Replace stack pointer to the sprite buffer (Already done from overriding extra attribute bits)
//lda #_Sprites_Buffer+0x1ff
//tcs
// Change mode
.mx 0x30
sep #0x30
// Which sprite bank to use?
lda $_IO_MapperChrBankSwap
and #0x01
sta $_IO_Temp
// Nes: Y, T, A, X
// Snes: X, Y, T, A
// Update sprite 0 hit, assume carry clear from REP
lda $0x00
adc $=RomInfo_SpriteZeroOffset
bcc $+b_1
lda #0xf0
b_1:
sta $_Sprite0Line
lda #0xef
IO__w4014_mac8x16 0x00, "//"
IO__w4014_mac8x16 0x04, "//"
IO__w4014_mac8x16 0x08, "//"
IO__w4014_mac8x16 0x0c, "//"
IO__w4014_mac8x16 0x10, "//"
IO__w4014_mac8x16 0x14, "//"
IO__w4014_mac8x16 0x18, "//"
IO__w4014_mac8x16 0x1c, "//"
IO__w4014_mac8x16 0x20, "//"
IO__w4014_mac8x16 0x24, "//"
IO__w4014_mac8x16 0x28, "//"
IO__w4014_mac8x16 0x2c, "//"
IO__w4014_mac8x16 0x30, "//"
IO__w4014_mac8x16 0x34, "//"
IO__w4014_mac8x16 0x38, "//"
IO__w4014_mac8x16 0x3c, "//"
IO__w4014_mac8x16 0x40, "//"
IO__w4014_mac8x16 0x44, "//"
IO__w4014_mac8x16 0x48, "//"
IO__w4014_mac8x16 0x4c, "//"
IO__w4014_mac8x16 0x50, "//"
IO__w4014_mac8x16 0x54, "//"
IO__w4014_mac8x16 0x58, "//"
IO__w4014_mac8x16 0x5c, "//"
IO__w4014_mac8x16 0x60, "//"
IO__w4014_mac8x16 0x64, "//"
IO__w4014_mac8x16 0x68, "//"
IO__w4014_mac8x16 0x6c, "//"
IO__w4014_mac8x16 0x70, "//"
IO__w4014_mac8x16 0x74, "//"
IO__w4014_mac8x16 0x78, "//"
IO__w4014_mac8x16 0x7c, "//"
IO__w4014_mac8x16 0x80, "//"
IO__w4014_mac8x16 0x84, "//"
IO__w4014_mac8x16 0x88, "//"
IO__w4014_mac8x16 0x8c, "//"
IO__w4014_mac8x16 0x90, "//"
IO__w4014_mac8x16 0x94, "//"
IO__w4014_mac8x16 0x98, "//"
IO__w4014_mac8x16 0x9c, "//"
IO__w4014_mac8x16 0xa0, "//"
IO__w4014_mac8x16 0xa4, "//"
IO__w4014_mac8x16 0xa8, "//"
IO__w4014_mac8x16 0xac, "//"
IO__w4014_mac8x16 0xb0, "//"
IO__w4014_mac8x16 0xb4, "//"
IO__w4014_mac8x16 0xb8, "//"
IO__w4014_mac8x16 0xbc, "//"
IO__w4014_mac8x16 0xc0, "//"
IO__w4014_mac8x16 0xc4, "//"
IO__w4014_mac8x16 0xc8, "//"
IO__w4014_mac8x16 0xcc, "//"
IO__w4014_mac8x16 0xd0, "//"
IO__w4014_mac8x16 0xd4, "//"
IO__w4014_mac8x16 0xd8, "//"
IO__w4014_mac8x16 0xdc, "//"
IO__w4014_mac8x16 0xe0, "//"
IO__w4014_mac8x16 0xe4, "//"
IO__w4014_mac8x16 0xe8, "//"
IO__w4014_mac8x16 0xec, "//"
IO__w4014_mac8x16 0xf0, "//"
IO__w4014_mac8x16 0xf4, "//"
IO__w4014_mac8x16 0xf8, "//"
IO__w4014_mac8x16 0xfc, "//"
// Queue sprite transfer with sprite priority
.mx 0x10
rep #0x20
tsc
lsr a
inc a
tax
cmp #_Sprites_Buffer/2+0x100
bne $+b_1
// No sprite on screen
ldy #.VramQ_SpriteXferEmpty
sty $0x2180
bra $+b_2
b_1:
ldy #.VramQ_SpriteXfer8x16
sty $0x2180
stx $0x2180
b_2:
// Adjust our pointer from 1-byte empty address to 4-byte full offset
.mx 0x00
rep #0x30
txa
asl a
tax
// Add 12 big sprites
sbc #_Zero-1+0x30
// Do we have enough free space?
jmi $_IO__w4014_8x16_exit
tax
// Add big sprites regardless of need, at least in this version
stz $_Sprites_Buffer+0x00,x
stz $_Sprites_Buffer+0x10,x
stz $_Sprites_Buffer+0x20,x
lda #0xc000
sta $_Sprites_Buffer+0x04,x
sta $_Sprites_Buffer+0x14,x
sta $_Sprites_Buffer+0x24,x
asl a
sta $_Sprites_Buffer+0x08,x
sta $_Sprites_Buffer+0x18,x
sta $_Sprites_Buffer+0x28,x
lsr a
sta $_Sprites_Buffer+0x0c,x
sta $_Sprites_Buffer+0x1c,x
sta $_Sprites_Buffer+0x2c,x
.macro IO__w4014_SpriteLimit_mac8x16 linePair
//lda #0x0080
bit $_Sprites_CountdownPer8Lines+{0}
bmi $+b_both
beq $+b_none
b_even: // 00f0
// Reserve 2 sprites
txa
sec
sbc #8
jmi $_IO__w4014_8x16_exit
tax
// Add 2 sprites
lda #_Zero+{0}*0x800
sta $_Sprites_Buffer+0x00,x
sta $_Sprites_Buffer+0x04,x
// Next
lda #0x0080
bra $+b_none
b_both: // f0f0
beq $+b_odd
// Reserve 4 sprites
txa
sec
sbc #16
jmi $_IO__w4014_8x16_exit
tax
// Add 4 sprites
lda #_Zero+{0}*0x800
sta $_Sprites_Buffer+0x00,x
sta $_Sprites_Buffer+0x04,x
lda #_Zero+{0}*0x800+0x800
sta $_Sprites_Buffer+0x08,x
sta $_Sprites_Buffer+0x0c,x
// Next
lda #0x0080
bra $+b_none
b_odd: // f000
// Reserve 2 sprites
txa
sec
sbc #8
jmi $_IO__w4014_8x16_exit
tax
// Add 2 sprites
lda #_Zero+{0}*0x800+0x800
sta $_Sprites_Buffer+0x00,x
sta $_Sprites_Buffer+0x04,x
// Next
lda #0x0080
//bra $+b_none
b_none: // 0000
.endm
lda #0x0080
IO__w4014_SpriteLimit_mac8x16 0x00
IO__w4014_SpriteLimit_mac8x16 0x02
IO__w4014_SpriteLimit_mac8x16 0x04
IO__w4014_SpriteLimit_mac8x16 0x06
IO__w4014_SpriteLimit_mac8x16 0x08
IO__w4014_SpriteLimit_mac8x16 0x0a
IO__w4014_SpriteLimit_mac8x16 0x0c
IO__w4014_SpriteLimit_mac8x16 0x0e
IO__w4014_SpriteLimit_mac8x16 0x10
IO__w4014_SpriteLimit_mac8x16 0x12
IO__w4014_SpriteLimit_mac8x16 0x14
IO__w4014_SpriteLimit_mac8x16 0x16
IO__w4014_SpriteLimit_mac8x16 0x18
IO__w4014_SpriteLimit_mac8x16 0x1a
IO__w4014_SpriteLimit_mac8x16 0x1c
//IO__w4014_SpriteLimit_mac8x16 0x1e
IO__w4014_8x16_exit:
sep #0x20
.mx 0x20
// Save sprite size, write any non-zero value for 8x16
lda #0xf0
sta $_IO_4014_SpriteSize
// Fill remaining space in the sprite buffer
//lda #0xf0
jmp ($_IO__w4014_FillSwitch,x)
IO__w4014_FillSwitch:
switch 0x200, IO__w4014_FillSwitch_End, IO__w4014_FillSwitch_End
.macro IO__w4014_FillSwitch_mac
case {0}
sta $_Sprites_Buffer+1+{0}*2-4
.endm
.macro IO__w4014_FillSwitch_mac2
IO__w4014_FillSwitch_mac {0}e
IO__w4014_FillSwitch_mac {0}c
IO__w4014_FillSwitch_mac {0}a
IO__w4014_FillSwitch_mac {0}8
IO__w4014_FillSwitch_mac {0}6
IO__w4014_FillSwitch_mac {0}4
IO__w4014_FillSwitch_mac {0}2
{1}IO__w4014_FillSwitch_mac {0}0
.endm
IO__w4014_FillSwitch_mac2 0x1f, ""
IO__w4014_FillSwitch_mac2 0x1e, ""
IO__w4014_FillSwitch_mac2 0x1d, ""
IO__w4014_FillSwitch_mac2 0x1c, ""
IO__w4014_FillSwitch_mac2 0x1b, ""
IO__w4014_FillSwitch_mac2 0x1a, ""
IO__w4014_FillSwitch_mac2 0x19, ""
IO__w4014_FillSwitch_mac2 0x18, ""
IO__w4014_FillSwitch_mac2 0x17, ""
IO__w4014_FillSwitch_mac2 0x16, ""
IO__w4014_FillSwitch_mac2 0x15, ""
IO__w4014_FillSwitch_mac2 0x14, ""
IO__w4014_FillSwitch_mac2 0x13, ""
IO__w4014_FillSwitch_mac2 0x12, ""
IO__w4014_FillSwitch_mac2 0x11, ""
IO__w4014_FillSwitch_mac2 0x10, ""
IO__w4014_FillSwitch_mac2 0x0f, ""
IO__w4014_FillSwitch_mac2 0x0e, ""
IO__w4014_FillSwitch_mac2 0x0d, ""
IO__w4014_FillSwitch_mac2 0x0c, ""
IO__w4014_FillSwitch_mac2 0x0b, ""
IO__w4014_FillSwitch_mac2 0x0a, ""
IO__w4014_FillSwitch_mac2 0x09, ""
IO__w4014_FillSwitch_mac2 0x08, ""
IO__w4014_FillSwitch_mac2 0x07, ""
IO__w4014_FillSwitch_mac2 0x06, ""
IO__w4014_FillSwitch_mac2 0x05, ""
IO__w4014_FillSwitch_mac2 0x04, ""
IO__w4014_FillSwitch_mac2 0x03, ""
IO__w4014_FillSwitch_mac2 0x02, ""
IO__w4014_FillSwitch_mac2 0x01, ""
IO__w4014_FillSwitch_mac2 0x00, "//"
IO__w4014_FillSwitch_End:
// Fix DP
rep #0x20
.mx 0x00
lda #0x0000
tcd
// Fix stack pointer
lda $_IO_Temp16
tcs
// Change mode back
sep #0x30
.mx 0x30
ply
plx
pla
plb
plp
rtl
IO__w4014_FillSwitch2:
switch 0x200, IO__w4014_FillSwitch2_End, IO__w4014_FillSwitch2_End
IO__w4014_FillSwitch_mac2 0x1f, ""
IO__w4014_FillSwitch_mac2 0x1e, ""
IO__w4014_FillSwitch_mac2 0x1d, ""
IO__w4014_FillSwitch_mac2 0x1c, ""
IO__w4014_FillSwitch_mac2 0x1b, ""
IO__w4014_FillSwitch_mac2 0x1a, ""
IO__w4014_FillSwitch_mac2 0x19, ""
IO__w4014_FillSwitch_mac2 0x18, ""
IO__w4014_FillSwitch_mac2 0x17, ""
IO__w4014_FillSwitch_mac2 0x16, ""
IO__w4014_FillSwitch_mac2 0x15, ""
IO__w4014_FillSwitch_mac2 0x14, ""
IO__w4014_FillSwitch_mac2 0x13, ""
IO__w4014_FillSwitch_mac2 0x12, ""
IO__w4014_FillSwitch_mac2 0x11, ""
IO__w4014_FillSwitch_mac2 0x10, ""
IO__w4014_FillSwitch_mac2 0x0f, ""
IO__w4014_FillSwitch_mac2 0x0e, ""
IO__w4014_FillSwitch_mac2 0x0d, ""
IO__w4014_FillSwitch_mac2 0x0c, ""
IO__w4014_FillSwitch_mac2 0x0b, ""
IO__w4014_FillSwitch_mac2 0x0a, ""
IO__w4014_FillSwitch_mac2 0x09, ""
IO__w4014_FillSwitch_mac2 0x08, ""
IO__w4014_FillSwitch_mac2 0x07, ""
IO__w4014_FillSwitch_mac2 0x06, ""
IO__w4014_FillSwitch_mac2 0x05, ""
IO__w4014_FillSwitch_mac2 0x04, ""
IO__w4014_FillSwitch_mac2 0x03, ""
IO__w4014_FillSwitch_mac2 0x02, ""
IO__w4014_FillSwitch_mac2 0x01, "//"
IO__w4014_FillSwitch2_End:
// Fix DP
rep #0x20
.mx 0x00
lda #0x0000
tcd
// Fix stack pointer
lda $_IO_Temp16
tcs
// Change mode back
sep #0x30
.mx 0x30
ply
plx
pla
plb
plp
rtl
// Align to avoid page boundary crossing penalty (TODO: Move this to a better place within the bank)
.align 0x100
IO__SpriteAttributeLUT:
.data8 0x20, 0x22, 0x24, 0x26, 0x20, 0x22, 0x24, 0x26, 0x20, 0x22, 0x24, 0x26, 0x20, 0x22, 0x24, 0x26
.data8 0x20, 0x22, 0x24, 0x26, 0x20, 0x22, 0x24, 0x26, 0x20, 0x22, 0x24, 0x26, 0x20, 0x22, 0x24, 0x26
.data8 0x00, 0x02, 0x04, 0x06, 0x00, 0x02, 0x04, 0x06, 0x00, 0x02, 0x04, 0x06, 0x00, 0x02, 0x04, 0x06
.data8 0x00, 0x02, 0x04, 0x06, 0x00, 0x02, 0x04, 0x06, 0x00, 0x02, 0x04, 0x06, 0x00, 0x02, 0x04, 0x06
.data8 0x60, 0x62, 0x64, 0x66, 0x60, 0x62, 0x64, 0x66, 0x60, 0x62, 0x64, 0x66, 0x60, 0x62, 0x64, 0x66
.data8 0x60, 0x62, 0x64, 0x66, 0x60, 0x62, 0x64, 0x66, 0x60, 0x62, 0x64, 0x66, 0x60, 0x62, 0x64, 0x66
.data8 0x40, 0x42, 0x44, 0x46, 0x40, 0x42, 0x44, 0x46, 0x40, 0x42, 0x44, 0x46, 0x40, 0x42, 0x44, 0x46
.data8 0x40, 0x42, 0x44, 0x46, 0x40, 0x42, 0x44, 0x46, 0x40, 0x42, 0x44, 0x46, 0x40, 0x42, 0x44, 0x46
.data8 0xa0, 0xa2, 0xa4, 0xa6, 0xa0, 0xa2, 0xa4, 0xa6, 0xa0, 0xa2, 0xa4, 0xa6, 0xa0, 0xa2, 0xa4, 0xa6
.data8 0xa0, 0xa2, 0xa4, 0xa6, 0xa0, 0xa2, 0xa4, 0xa6, 0xa0, 0xa2, 0xa4, 0xa6, 0xa0, 0xa2, 0xa4, 0xa6
.data8 0x80, 0x82, 0x84, 0x86, 0x80, 0x82, 0x84, 0x86, 0x80, 0x82, 0x84, 0x86, 0x80, 0x82, 0x84, 0x86
.data8 0x80, 0x82, 0x84, 0x86, 0x80, 0x82, 0x84, 0x86, 0x80, 0x82, 0x84, 0x86, 0x80, 0x82, 0x84, 0x86
.data8 0xe0, 0xe2, 0xe4, 0xe6, 0xe0, 0xe2, 0xe4, 0xe6, 0xe0, 0xe2, 0xe4, 0xe6, 0xe0, 0xe2, 0xe4, 0xe6
.data8 0xe0, 0xe2, 0xe4, 0xe6, 0xe0, 0xe2, 0xe4, 0xe6, 0xe0, 0xe2, 0xe4, 0xe6, 0xe0, 0xe2, 0xe4, 0xe6
.data8 0xc0, 0xc2, 0xc4, 0xc6, 0xc0, 0xc2, 0xc4, 0xc6, 0xc0, 0xc2, 0xc4, 0xc6, 0xc0, 0xc2, 0xc4, 0xc6
.data8 0xc0, 0xc2, 0xc4, 0xc6, 0xc0, 0xc2, 0xc4, 0xc6, 0xc0, 0xc2, 0xc4, 0xc6, 0xc0, 0xc2, 0xc4, 0xc6
IO__SpriteAttributeLUT2:
.data8 0x21, 0x23, 0x25, 0x27, 0x21, 0x23, 0x25, 0x27, 0x21, 0x23, 0x25, 0x27, 0x21, 0x23, 0x25, 0x27
.data8 0x21, 0x23, 0x25, 0x27, 0x21, 0x23, 0x25, 0x27, 0x21, 0x23, 0x25, 0x27, 0x21, 0x23, 0x25, 0x27
.data8 0x01, 0x03, 0x05, 0x07, 0x01, 0x03, 0x05, 0x07, 0x01, 0x03, 0x05, 0x07, 0x01, 0x03, 0x05, 0x07
.data8 0x01, 0x03, 0x05, 0x07, 0x01, 0x03, 0x05, 0x07, 0x01, 0x03, 0x05, 0x07, 0x01, 0x03, 0x05, 0x07
.data8 0x61, 0x63, 0x65, 0x67, 0x61, 0x63, 0x65, 0x67, 0x61, 0x63, 0x65, 0x67, 0x61, 0x63, 0x65, 0x67
.data8 0x61, 0x63, 0x65, 0x67, 0x61, 0x63, 0x65, 0x67, 0x61, 0x63, 0x65, 0x67, 0x61, 0x63, 0x65, 0x67
.data8 0x41, 0x43, 0x45, 0x47, 0x41, 0x43, 0x45, 0x47, 0x41, 0x43, 0x45, 0x47, 0x41, 0x43, 0x45, 0x47
.data8 0x41, 0x43, 0x45, 0x47, 0x41, 0x43, 0x45, 0x47, 0x41, 0x43, 0x45, 0x47, 0x41, 0x43, 0x45, 0x47
.data8 0xa1, 0xa3, 0xa5, 0xa7, 0xa1, 0xa3, 0xa5, 0xa7, 0xa1, 0xa3, 0xa5, 0xa7, 0xa1, 0xa3, 0xa5, 0xa7
.data8 0xa1, 0xa3, 0xa5, 0xa7, 0xa1, 0xa3, 0xa5, 0xa7, 0xa1, 0xa3, 0xa5, 0xa7, 0xa1, 0xa3, 0xa5, 0xa7
.data8 0x81, 0x83, 0x85, 0x87, 0x81, 0x83, 0x85, 0x87, 0x81, 0x83, 0x85, 0x87, 0x81, 0x83, 0x85, 0x87
.data8 0x81, 0x83, 0x85, 0x87, 0x81, 0x83, 0x85, 0x87, 0x81, 0x83, 0x85, 0x87, 0x81, 0x83, 0x85, 0x87
.data8 0xe1, 0xe3, 0xe5, 0xe7, 0xe1, 0xe3, 0xe5, 0xe7, 0xe1, 0xe3, 0xe5, 0xe7, 0xe1, 0xe3, 0xe5, 0xe7
.data8 0xe1, 0xe3, 0xe5, 0xe7, 0xe1, 0xe3, 0xe5, 0xe7, 0xe1, 0xe3, 0xe5, 0xe7, 0xe1, 0xe3, 0xe5, 0xe7
.data8 0xc1, 0xc3, 0xc5, 0xc7, 0xc1, 0xc3, 0xc5, 0xc7, 0xc1, 0xc3, 0xc5, 0xc7, 0xc1, 0xc3, 0xc5, 0xc7
.data8 0xc1, 0xc3, 0xc5, 0xc7, 0xc1, 0xc3, 0xc5, 0xc7, 0xc1, 0xc3, 0xc5, 0xc7, 0xc1, 0xc3, 0xc5, 0xc7
IO__SR3:
.fill 8, 0x00
.fill 8, 0x01
.fill 8, 0x02
.fill 8, 0x03
.fill 8, 0x04
.fill 8, 0x05
.fill 8, 0x06
.fill 8, 0x07
.fill 8, 0x08
.fill 8, 0x09
.fill 8, 0x0a
.fill 8, 0x0b
.fill 8, 0x0c
.fill 8, 0x0d
.fill 8, 0x0e
.fill 8, 0x0f
.fill 8, 0x10
.fill 8, 0x11
.fill 8, 0x12
.fill 8, 0x13
.fill 8, 0x14
.fill 8, 0x15
.fill 8, 0x16
.fill 8, 0x17
.fill 8, 0x18
.fill 8, 0x19
.fill 8, 0x1a
.fill 8, 0x1b
.fill 8, 0x1c
.fill 8, 0x1d
.fill 8, 0x1e
.fill 8, 0x1f
// ---------------------------------------------------------------------------
// Sound registers
IO__w4000_Switch_Trap:
trap
Exception "IO Index Failed{}{}{}A direct indexed IO access in page 0x40 failed."
IO__w4000_Switch:
switch 0x80, IO__w4000_Switch_Trap, IO__w4000_Switch_Trap
caseat 0x00, IO__w4000_ind
caseat 0x01, IO__w4001_ind
caseat 0x02, IO__w4002_ind
caseat 0x03, IO__w4003_ind
caseat 0x04, IO__w4004_ind
caseat 0x05, IO__w4005_ind
caseat 0x06, IO__w4006_ind
caseat 0x07, IO__w4007_ind
caseat 0x08, IO__w4008_ind
caseat 0x09, IO__w4009_ind
caseat 0x0a, IO__w400a_ind
caseat 0x0b, IO__w400b_ind
caseat 0x0c, IO__w400c_ind
caseat 0x0d, IO__w400d_ind
caseat 0x0e, IO__w400e_ind
caseat 0x0f, IO__w400f_ind
caseat 0x10, IO__w4010_ind
caseat 0x11, IO__w4011_ind
caseat 0x12, IO__w4012_ind
caseat 0x13, IO__w4013_ind
caseat 0x15, IO__w4015_ind
.macro IO_w40xx offset, indexReg
php
phx
xba
//lda $_Addition+{0},{1}
t{1}a
asl a
tax
jmp ($_IO__w4000_Switch+{0}*2,x)
.endm
.macro IO_w40xx_Return
plx
plp
rtl
.endm
IO__w4000_a_x: IO_w40xx 0x00, x
IO__w4000_a_y: IO_w40xx 0x00, y
IO__w4001_a_x: IO_w40xx 0x01, x
IO__w4001_a_y: IO_w40xx 0x01, y
IO__w4002_a_x: IO_w40xx 0x02, x
IO__w4002_a_y: IO_w40xx 0x02, y
IO__w4003_a_x: IO_w40xx 0x03, x
IO__w4003_a_y: IO_w40xx 0x03, y
IO__w4004_a_x: IO_w40xx 0x04, x
IO__w4004_a_y: IO_w40xx 0x04, y
IO__w4005_a_x: IO_w40xx 0x05, x
IO__w4005_a_y: IO_w40xx 0x05, y
IO__w4006_a_x: IO_w40xx 0x06, x
IO__w4006_a_y: IO_w40xx 0x06, y
IO__w4007_a_x: IO_w40xx 0x07, x
IO__w4007_a_y: IO_w40xx 0x07, y
IO__w4008_a_x: IO_w40xx 0x08, x
IO__w4008_a_y: IO_w40xx 0x08, y
IO__w4009_a_x: IO_w40xx 0x09, x
IO__w4009_a_y: IO_w40xx 0x09, y
IO__w400a_a_x: IO_w40xx 0x0a, x
IO__w400a_a_y: IO_w40xx 0x0a, y
IO__w400b_a_x: IO_w40xx 0x0b, x
IO__w400b_a_y: IO_w40xx 0x0b, y
IO__w400c_a_x: IO_w40xx 0x0c, x
IO__w400c_a_y: IO_w40xx 0x0c, y
IO__w400d_a_x: IO_w40xx 0x0d, x
IO__w400d_a_y: IO_w40xx 0x0d, y
IO__w400e_a_x: IO_w40xx 0x0e, x
IO__w400e_a_y: IO_w40xx 0x0e, y
IO__w400f_a_x: IO_w40xx 0x0f, x
IO__w400f_a_y: IO_w40xx 0x0f, y
IO__w4010_a_x: IO_w40xx 0x10, x
IO__w4010_a_y: IO_w40xx 0x10, y
IO__w4011_a_x: IO_w40xx 0x11, x
IO__w4011_a_y: IO_w40xx 0x11, y
IO__w4012_a_x: IO_w40xx 0x12, x
IO__w4012_a_y: IO_w40xx 0x12, y
IO__w4013_a_x: IO_w40xx 0x13, x
IO__w4013_a_y: IO_w40xx 0x13, y
IO__r4000_a:
IO__r4000_a_i:
IO__r4000_x:
IO__r4000_y:
rtl
IO__w4000_ind:
xba
sta $_Sound_NesRegs+0x0
IO_w40xx_Return
IO__w4000_a_i:
sta $_Sound_NesRegs+0x0
rtl
IO__w4000_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x0
b_1:
CoreCall_End
IO__w4000_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x0
b_1:
CoreCall_End
IO__w4000_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x0
b_1:
CoreCall_End
IO__r4001_a:
IO__r4001_a_i:
IO__r4001_x:
IO__r4001_y:
rtl
IO__w4001_ind:
lda #0x40
tsb $_Sound_ExtraControl
xba
sta $_Sound_NesRegs+0x1
IO_w40xx_Return
IO__w4001_a_i:
sta $_Sound_NesRegs+0x1
php
xba
lda #0x40
tsb $_Sound_ExtraControl
xba
plp
rtl
IO__w4001_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x1
b_1:
CoreCall_UseA8
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
lda #0x40
tsb $_Sound_ExtraControl
b_1:
CoreCall_Pull
CoreCall_End
IO__w4001_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x1
b_1:
CoreCall_UseA8
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
lda #0x40
tsb $_Sound_ExtraControl
b_1:
CoreCall_Pull
CoreCall_End
IO__w4001_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x1
b_1:
CoreCall_UseA8
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
lda #0x40
tsb $_Sound_ExtraControl
b_1:
CoreCall_Pull
CoreCall_End
IO__r4002_a:
IO__r4002_a_i:
IO__r4002_x:
IO__r4002_y:
rtl
IO__w4002_ind:
xba
sta $_Sound_NesRegs+0x2
IO_w40xx_Return
IO__w4002_a_i:
sta $_Sound_NesRegs+0x2
rtl
IO__w4002_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x2
b_1:
CoreCall_End
IO__w4002_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x2
b_1:
CoreCall_End
IO__w4002_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x2
b_1:
CoreCall_End
IO__r4003_a:
IO__r4003_a_i:
IO__r4003_x:
IO__r4003_y:
rtl
.macro IO__w4003_Mac
lda $=Sound__EmulateLengthCounter_length_d3_mixed,x
sta $_Sound_square0_length
lda #0x01
tsb $_Sound_NesRegs+0x15
tsb $_Sound_ExtraControl
.endm
IO__w4003_ind:
xba
sta $_Sound_NesRegs+0x3
tax
IO__w4003_Mac
txa
IO_w40xx_Return
IO__w4003_a_i:
sta $_Sound_NesRegs+0x3
php
phx
tax
IO__w4003_Mac
txa
plx
plp
rtl
IO__w4003_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x3
b_1:
CoreCall_UseA8
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
IO__w4003_Mac
b_1:
CoreCall_Pull
CoreCall_End
IO__w4003_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x3
b_1:
CoreCall_UseA8
CoreCall_UseX
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
tyx
IO__w4003_Mac
b_1:
CoreCall_Pull
CoreCall_End
IO__w4003_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x3
b_1:
CoreCall_UseX
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
tax
IO__w4003_Mac
txa // Removed when A is unused
b_1:
CoreCall_IfNotFreeA +b_1
CoreCall_Remove 1
b_1:
CoreCall_Pull
CoreCall_End
IO__r4004_a:
IO__r4004_a_i:
IO__r4004_x:
IO__r4004_y:
rtl
IO__w4004_ind:
xba
sta $_Sound_NesRegs+0x4
IO_w40xx_Return
IO__w4004_a_i:
sta $_Sound_NesRegs+0x4
rtl
IO__w4004_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x4
b_1:
CoreCall_End
IO__w4004_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x4
b_1:
CoreCall_End
IO__w4004_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x4
b_1:
CoreCall_End
IO__r4005_a:
IO__r4005_a_i:
IO__r4005_x:
IO__r4005_y:
rtl
IO__w4005_ind:
lda #0x80
tsb $_Sound_ExtraControl
xba
sta $_Sound_NesRegs+0x5
IO_w40xx_Return
IO__w4005_a_i:
sta $_Sound_NesRegs+0x5
php
xba
lda #0x80
tsb $_Sound_ExtraControl
xba
plp
rtl
IO__w4005_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x5
b_1:
CoreCall_UseA8
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
lda #0x80
tsb $_Sound_ExtraControl
b_1:
CoreCall_Pull
CoreCall_End
IO__w4005_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x5
b_1:
CoreCall_UseA8
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
lda #0x80
tsb $_Sound_ExtraControl
b_1:
CoreCall_Pull
CoreCall_End
IO__w4005_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x5
b_1:
CoreCall_UseA8
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
lda #0x80
tsb $_Sound_ExtraControl
b_1:
CoreCall_Pull
CoreCall_End
IO__r4006_a:
IO__r4006_a_i:
IO__r4006_x:
IO__r4006_y:
rtl
IO__w4006_ind:
xba
sta $_Sound_NesRegs+0x6
IO_w40xx_Return
IO__w4006_a_i:
sta $_Sound_NesRegs+0x6
rtl
IO__w4006_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x6
b_1:
CoreCall_End
IO__w4006_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x6
b_1:
CoreCall_End
IO__w4006_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x6
b_1:
CoreCall_End
IO__r4007_a:
IO__r4007_a_i:
IO__r4007_x:
IO__r4007_y:
rtl
.macro IO__w4007_Mac
lda $=Sound__EmulateLengthCounter_length_d3_mixed,x
sta $_Sound_square1_length
lda #0x02
tsb $_Sound_NesRegs+0x15
tsb $_Sound_ExtraControl
.endm
IO__w4007_ind:
xba
sta $_Sound_NesRegs+0x7
tax
IO__w4007_Mac
txa
IO_w40xx_Return
IO__w4007_a_i:
sta $_Sound_NesRegs+0x7
php
phx
tax
IO__w4007_Mac
txa
plx
plp
rtl
IO__w4007_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x7
b_1:
CoreCall_UseA8
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
IO__w4007_Mac
b_1:
CoreCall_Pull
CoreCall_End
IO__w4007_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x7
b_1:
CoreCall_UseA8
CoreCall_UseX
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
tyx
IO__w4007_Mac
b_1:
CoreCall_Pull
CoreCall_End
IO__w4007_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x7
b_1:
CoreCall_UseX
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
tax
IO__w4007_Mac
txa // Removed when A is unused
b_1:
CoreCall_IfNotFreeA +b_1
CoreCall_Remove 1
b_1:
CoreCall_Pull
CoreCall_End
IO__r4008_a:
IO__r4008_a_i:
IO__r4008_x:
IO__r4008_y:
rtl
IO__w4008_ind:
xba
sta $_Sound_NesRegs+0x8
IO_w40xx_Return
IO__w4008_a_i:
sta $_Sound_NesRegs+0x8
rtl
IO__w4008_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x8
b_1:
CoreCall_End
IO__w4008_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x8
b_1:
CoreCall_End
IO__w4008_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x8
b_1:
CoreCall_End
IO__r4009_a:
IO__r4009_a_i:
IO__r4009_x:
IO__r4009_y:
rtl
IO__w4009_ind:
xba
sta $_Sound_NesRegs+0x9
IO_w40xx_Return
IO__w4009_a_i:
sta $_Sound_NesRegs+0x9
rtl
IO__w4009_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x9
b_1:
CoreCall_End
IO__w4009_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x9
b_1:
CoreCall_End
IO__w4009_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x9
b_1:
CoreCall_End
IO__r400a_a:
IO__r400a_a_i:
IO__r400a_x:
IO__r400a_y:
rtl
IO__w400a_ind:
xba
sta $_Sound_NesRegs+0xa
IO_w40xx_Return
IO__w400a_a_i:
sta $_Sound_NesRegs+0xa
rtl
IO__w400a_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0xa
b_1:
CoreCall_End
IO__w400a_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0xa
b_1:
CoreCall_End
IO__w400a_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0xa
b_1:
CoreCall_End
IO__r400b_a:
IO__r400b_a_i:
IO__r400b_x:
IO__r400b_y:
rtl
.macro IO__w400b_Mac
lda #0x04
tsb $_Sound_ExtraControl
tsb $_Sound_NesRegs+0x15
lda $=Sound__EmulateLengthCounter_length_d3_mixed,x
sta $_Sound_triangle_length
.endm
IO__w400b_ind:
xba
sta $_Sound_NesRegs+0xb
tax
IO__w400b_Mac
txa
IO_w40xx_Return
IO__w400b_a_i:
sta $_Sound_NesRegs+0xb
php
phx
tax
IO__w400b_Mac
txa
plx
plp
rtl
IO__w400b_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0xb
b_1:
CoreCall_UseA8
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
IO__w400b_Mac
b_1:
CoreCall_Pull
CoreCall_End
IO__w400b_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0xb
b_1:
CoreCall_UseA8
CoreCall_UseX
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
tyx
IO__w400b_Mac
b_1:
CoreCall_Pull
CoreCall_End
IO__w400b_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0xb
b_1:
CoreCall_UseX
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
tax
IO__w400b_Mac
txa // Removed when A is unused
b_1:
CoreCall_IfNotFreeA +b_1
CoreCall_Remove 1
b_1:
CoreCall_Pull
CoreCall_End
IO__r400c_a:
IO__r400c_a_i:
IO__r400c_x:
IO__r400c_y:
rtl
IO__w400c_ind:
xba
sta $_Sound_NesRegs+0xc
IO_w40xx_Return
IO__w400c_a_i:
sta $_Sound_NesRegs+0xc
rtl
IO__w400c_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0xc
b_1:
CoreCall_End
IO__w400c_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0xc
b_1:
CoreCall_End
IO__w400c_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0xc
b_1:
CoreCall_End
IO__r400d_a:
IO__r400d_a_i:
IO__r400d_x:
IO__r400d_y:
rtl
IO__w400d_ind:
xba
sta $_Sound_NesRegs+0xd
IO_w40xx_Return
IO__w400d_a_i:
sta $_Sound_NesRegs+0xd
rtl
IO__w400d_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0xd
b_1:
CoreCall_End
IO__w400d_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0xd
b_1:
CoreCall_End
IO__w400d_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0xd
b_1:
CoreCall_End
IO__r400e_a:
IO__r400e_a_i:
IO__r400e_x:
IO__r400e_y:
rtl
IO__w400e_ind:
xba
sta $_Sound_NesRegs+0xe
IO_w40xx_Return
IO__w400e_a_i:
sta $_Sound_NesRegs+0xe
rtl
IO__w400e_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0xe
b_1:
CoreCall_End
IO__w400e_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0xe
b_1:
CoreCall_End
IO__w400e_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0xe
b_1:
CoreCall_End
IO__r400f_a:
IO__r400f_a_i:
IO__r400f_x:
IO__r400f_y:
rtl
.macro IO__w400f_Mac
// Update length
lda $=Sound__EmulateLengthCounter_length_d3_mixed,x
sta $_Sound_noise_length
// Enable noise
lda #0x08
tsb $_Sound_NesRegs+0x15
tsb $_Sound_ExtraControl
.endm
IO__w400f_ind:
xba
sta $_Sound_NesRegs+0xf
tax
IO__w400f_Mac
txa
IO_w40xx_Return
IO__w400f_a_i:
sta $_Sound_NesRegs+0xf
php
phx
tax
IO__w400f_Mac
txa
plx
plp
rtl
IO__w400f_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0xf
b_1:
CoreCall_UseA8
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
IO__w400f_Mac
b_1:
CoreCall_Pull
CoreCall_End
IO__w400f_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0xf
b_1:
CoreCall_UseA8
CoreCall_UseX
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
tyx
IO__w400f_Mac
b_1:
CoreCall_Pull
CoreCall_End
IO__w400f_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0xf
b_1:
CoreCall_UseX
CoreCall_UseN
CoreCall_UseZ
CoreCall_Push
CoreCall_CopyUpTo +b_1
tax
IO__w400f_Mac
txa // Removed when A is unused
b_1:
CoreCall_IfNotFreeA +b_1
CoreCall_Remove 1
b_1:
CoreCall_Pull
CoreCall_End
IO__r4010_a:
IO__r4010_a_i:
IO__r4010_x:
IO__r4010_y:
rtl
IO__w4010_ind:
xba
sta $_Sound_NesRegs+0x10
IO_w40xx_Return
IO__w4010_a_i:
sta $_Sound_NesRegs+0x10
rtl
IO__w4010_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x10
b_1:
CoreCall_End
IO__w4010_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x10
b_1:
CoreCall_End
IO__w4010_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x10
b_1:
CoreCall_End
IO__r4011_a:
IO__r4011_a_i:
IO__r4011_x:
IO__r4011_y:
rtl
IO__w4011_ind:
xba
sta $_Sound_NesRegs+0x11
IO_w40xx_Return
IO__w4011_a_i:
sta $_Sound_NesRegs+0x11
rtl
IO__w4011_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x11
b_1:
CoreCall_End
IO__w4011_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x11
b_1:
CoreCall_End
IO__w4011_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x11
b_1:
CoreCall_End
IO__r4012_a:
IO__r4012_a_i:
IO__r4012_x:
IO__r4012_y:
rtl
IO__w4012_ind:
xba
sta $_Sound_NesRegs+0x12
IO_w40xx_Return
IO__w4012_a_i:
sta $_Sound_NesRegs+0x12
rtl
IO__w4012_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x12
b_1:
CoreCall_End
IO__w4012_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x12
b_1:
CoreCall_End
IO__w4012_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x12
b_1:
CoreCall_End
IO__r4013_a:
IO__r4013_a_i:
IO__r4013_x:
IO__r4013_y:
rtl
IO__w4013_ind:
xba
sta $_Sound_NesRegs+0x13
IO_w40xx_Return
IO__w4013_a_i:
sta $_Sound_NesRegs+0x13
rtl
IO__w4013_a:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sta $_Sound_NesRegs+0x13
b_1:
CoreCall_End
IO__w4013_x:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
stx $_Sound_NesRegs+0x13
b_1:
CoreCall_End
IO__w4013_y:
CoreCall_Begin
CoreCall_CopyUpTo +b_1
sty $_Sound_NesRegs+0x13
b_1:
CoreCall_End
IO__r4015_a:
IO__r4015_a_i:
IO__r4015_x:
IO__r4015_y:
php
xba
lda $_Sound_NesRegs+0x15
and #0x1f
sta $_IO_Temp
xba
plp
rtl
IO__w4015_ind:
plx
xba
sta $_IO_Temp
bra $+IO__w4015_in2
IO__w4015_x:
stx $_IO_Temp
bra $+IO__w4015_in
IO__w4015_y:
sty $_IO_Temp
bra $+IO__w4015_in
IO__w4015_a:
IO__w4015_a_i:
sta $_IO_Temp
//bra $+IO__w4015_in
IO__w4015_in:
php
xba
lda $_IO_Temp
IO__w4015_in2:
eor #0xff
and #0x1f
trb $_Sound_NesRegs+0x15
trb $_Sound_ExtraControl
lsr $_IO_Temp
bcs $+b_1
// Channel 0
//lda #0x20
//tsb $_Sound_NesRegs+0x0
stz $_Sound_NesRegs+0x3
stz $_Sound_square0_length
b_1:
lsr $_IO_Temp
bcs $+b_1
// Channel 1
//lda #0x20
//tsb $_Sound_NesRegs+0x4
stz $_Sound_NesRegs+0x7
stz $_Sound_square1_length
b_1:
lsr $_IO_Temp
bcs $+b_1
// Channel 2
//stz $_Sound_NesRegs+0x8
stz $_Sound_triangle_length
b_1:
lsr $_IO_Temp
bcs $+b_1
// Channel 3
stz $_Sound_NesRegs+0xc
stz $_Sound_noise_length
b_1:
xba
plp
rtl
// ---------------------------------------------------------------------------
// Input registers
IO__r4016_a:
IO__r4016_a_i:
xba
lda $0x4016
sta $_IO_Temp
xba
rtl
IO__r4016_a_x:
lda $0x4016,x
rtl
IO__r4016_a_y:
lda $0x4016,y
rtl
IO__w4016_x:
stx $0x4016
rtl
IO__w4016_y:
sty $0x4016
rtl
IO__w4016_a:
IO__w4016_a_i:
sta $0x4016
rtl
IO__r4017_a:
IO__r4017_a_i:
xba
lda $0x4017
sta $_IO_Temp
xba
rtl
IO__r4017_a_x:
lda $0x4017,x
rtl
IO__r4017_a_y:
lda $0x4017,y
rtl
IO__w4017_x:
stx $0x4017
rtl
IO__w4017_y:
sty $0x4017
rtl
IO__w4017_a:
IO__w4017_a_i:
sta $0x4017
rtl
|
Klient/graphics_tests_old_do_not_use/test_keyboard_simple.adb | albinjal/Ada_Project | 4 | 28498 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with TJa.Window.Elementary; use TJa.Window.Elementary;
with TJa.Keyboard; use TJa.Keyboard;
with TJa.Misc; use TJa.Misc;
procedure Test_Keyboard_Simple is
Key : Key_Type;
X, Y : Integer := 10;
begin
Clear_Window;
Put_Line("Förflytta dig med pilarna och avsluta med ESC");
Put_Line("Sätt ett kryss med SPACE");
Set_Buffer_Mode(Off);
Set_Echo_Mode(Off);
loop
Goto_XY(1, 20);
Put("Current position: (");
Put(X, Width => 2);
Put(", ");
Put(Y, Width => 2);
Put(")");
Goto_XY(X, Y);
Get_Immediate(Key);
exit when Is_Esc(Key);
if Is_Character(Key) and then To_Character(Key) = ' ' then
Put('X');
elsif Is_Up_Arrow(Key) then
Y := Integer'Max(3, Y - 1);
elsif Is_Down_Arrow(Key) then
Y := Integer'Min(19, Y + 1);
elsif Is_Left_Arrow(Key) then
X := Integer'Max(1, X - 1);
elsif Is_Right_Arrow(Key) then
X := Integer'Min(79, X + 1);
else
Beep;
end if;
end loop;
Set_Echo_Mode(On);
Set_Buffer_Mode(On);
end Test_Keyboard_Simple;
|
Transynther/x86/_processed/US/_st_/i7-7700_9_0x48_notsx.log_15817_1879.asm | ljhsiun2/medusa | 9 | 168111 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xe7ac, %rsi
lea addresses_UC_ht+0x1256c, %rdi
nop
nop
nop
nop
nop
inc %r12
mov $100, %rcx
rep movsl
nop
nop
and $36520, %rsi
lea addresses_D_ht+0x1186c, %rdi
nop
nop
nop
nop
dec %r10
mov (%rdi), %rbx
nop
nop
add $53357, %r10
lea addresses_A_ht+0x992c, %rsi
lea addresses_D_ht+0x1a56c, %rdi
nop
nop
nop
nop
dec %r9
mov $29, %rcx
rep movsw
nop
nop
cmp $23954, %r9
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r15
push %rbx
push %rcx
push %rdx
// Store
lea addresses_US+0x1796c, %rbx
clflush (%rbx)
nop
sub $21848, %rdx
mov $0x5152535455565758, %r15
movq %r15, (%rbx)
nop
nop
nop
nop
sub $32258, %r11
// Store
lea addresses_WC+0x16c, %r15
nop
nop
nop
xor $51462, %rcx
movl $0x51525354, (%r15)
nop
nop
cmp %r11, %r11
// Store
mov $0x4dacc000000016c, %rcx
nop
sub %r13, %r13
mov $0x5152535455565758, %r12
movq %r12, %xmm1
vmovups %ymm1, (%rcx)
nop
nop
nop
nop
dec %r11
// Store
lea addresses_WT+0xb16c, %r12
nop
nop
nop
nop
nop
cmp $24989, %rcx
mov $0x5152535455565758, %rbx
movq %rbx, %xmm4
movntdq %xmm4, (%r12)
nop
nop
and $37818, %rbx
// Store
lea addresses_WT+0x1116c, %rbx
nop
nop
nop
nop
xor %r12, %r12
movl $0x51525354, (%rbx)
// Exception!!!
nop
nop
nop
nop
mov (0), %r13
nop
and $4126, %r15
// Load
lea addresses_US+0x1296c, %rdx
nop
nop
nop
and $31530, %r12
mov (%rdx), %r15
nop
nop
nop
nop
nop
xor %r12, %r12
// Store
lea addresses_UC+0x1067c, %rbx
cmp %r11, %r11
movw $0x5152, (%rbx)
nop
nop
nop
nop
sub %r13, %r13
// Store
lea addresses_PSE+0x1316c, %rcx
nop
nop
cmp $35152, %rdx
mov $0x5152535455565758, %r12
movq %r12, %xmm4
vmovaps %ymm4, (%rcx)
nop
xor $35988, %rbx
// Store
lea addresses_UC+0x1cfec, %rbx
and %rcx, %rcx
movl $0x51525354, (%rbx)
nop
nop
dec %r11
// Store
mov $0x1ac, %r15
nop
nop
cmp $52222, %r13
mov $0x5152535455565758, %r12
movq %r12, (%r15)
nop
and $22842, %rdx
// Faulty Load
lea addresses_US+0x1296c, %r12
add $17764, %rbx
movb (%r12), %cl
lea oracles, %rdx
and $0xff, %rcx
shlq $12, %rcx
mov (%rdx,%rcx,1), %rcx
pop %rdx
pop %rcx
pop %rbx
pop %r15
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_US', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_US', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC', 'congruent': 10}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_NC', 'congruent': 6}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT', 'congruent': 7}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT', 'congruent': 8}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_US', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC', 'congruent': 4}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 32, 'type': 'addresses_PSE', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC', 'congruent': 5}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_P', 'congruent': 4}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_US', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'congruent': 10, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 6, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_D_ht', 'congruent': 8}}
{'dst': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}}
{'58': 15817}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
|
Release/dmg_growl.applescript | xhan/MacCodes | 1 | 2017 | on run -- for testing in script editor
process_disk_image("Growl", "/Users/evands/growl/Release/Artwork")
end run
on process_disk_image(volumeName, artPath)
tell application "Finder"
tell disk volumeName
open
tell container window
set current view to icon view
set toolbar visible to false
set statusbar visible to false
--set the bounds to {30, 50, 579, 600}
end tell
close
set opts to the icon view options of container window
tell opts
set icon size to 64
set arrangement to not arranged
end tell
-- set background picture of opts to file ".background:growlDMGBackground.png"
-- set position of item "Growl.mpkg" to {147, 75}
-- set position of item "Extras" to {100, 320}
--set position of item "Scripts" to {36, 153}
-- set position of item "Growl Documentation.webloc" to {100, 218}
-- set position of item "Growl version history.webloc" to {275, 218}
-- set position of item "Get more styles.webloc" to {415, 218}
-- set position of item "Uninstall Growl.app" to {415, 320}
-- Custom icons
-- my copyIconOfTo(artPath & "/GrowlIcon", "/Volumes/" & volumeName & "/Growl.mpkg")
update without registering applications
tell container window
open
set the_window_id to id
end tell
update without registering applications
end tell
set bounds of window id the_window_id to {30, 50, 575, 450}
--give the finder some time to write the .DS_Store file
delay 5
end tell
end process_disk_image
on copyIconOfTo(aFileOrFolderWithIcon, aFileOrFolder)
tell application "Finder" to set f to POSIX file aFileOrFolderWithIcon as alias
-- grab the file's icon
my CopyOrPaste(f, "c")
-- now the icon is in the clipboard
tell application "Finder" to set c to POSIX file aFileOrFolder as alias
my CopyOrPaste(result, "v")
end copyIconOfTo
on CopyOrPaste(i, cv)
tell application "Finder"
activate
open information window of i
end tell
tell application "System Events" to tell process "Finder" to tell window 1
keystroke tab -- select icon button
keystroke (cv & "w") using command down (* (copy or paste) + close window *)
end tell -- window 1 then process Finder then System Events
end CopyOrPaste |
special_keys/volume_up_minor.scpt | caius/special_keys | 0 | 1456 | <filename>special_keys/volume_up_minor.scpt<gh_stars>0
set scale to 64
set currentVolume to output volume of (get volume settings)
set newVolume to round (currentVolume * scale / 100)
if newVolume < scale then
set newVolume to newVolume + 1
end if
set volume output volume (newVolume * 100 / scale)
|
programs/oeis/145/A145128.asm | jmorken/loda | 1 | 162802 | ; A145128: 1 + (1200 + (634 + (225 + (85 + (15 + n)*n)*n)*n)*n)*n/720.
; 1,4,13,38,99,231,490,960,1761,3058,5071,8086,12467,18669,27252,38896,54417,74784,101137,134806,177331,230483,296286,377040,475345,594126,736659,906598,1108003,1345369,1623656,1948320,2325345,2761276,3263253,3839046,4497091,5246527,6097234,7059872,8145921,9367722,10738519,12272502,13984851,15891781,18010588,20359696,22958705,25828440,28991001,32469814,36289683,40476843,45059014,50065456,55527025,61476230,67947291,74976198,82600771,90860721,99797712,109455424,119879617,131118196,143221277,156241254,170232867,185253271,201362106,218621568,237096481,256854370,277965535,300503126,324543219,350164893,377450308,406484784,437356881,470158480,504984865,541934806,581110643,622618371,666567726,713072272,762249489,814220862,869111971,927052582,988176739,1052622857,1120533816,1192057056,1267344673,1346553516,1429845285,1517386630,1609349251,1705909999,1807250978,1913559648,2025028929,2141857306,2264248935,2392413750,2526567571,2666932213,2813735596,2967211856,3127601457,3295151304,3470114857,3652752246,3843330387,4042123099,4249411222,4465482736,4690632881,4925164278,5169387051,5423618950,5688185475,5963420001,6249663904,6547266688,6856586113,7177988324,7511847981,7858548390,8218481635,8592048711,8979659658,9381733696,9798699361,10230994642,10679067119,11143374102,11624382771,12122570317,12638424084,13172441712,13725131281,14297011456,14888611633,15500472086,16133144115,16787190195,17463184126,18161711184,18883368273,19628764078,20398519219,21193266406,22013650595,22860329145,23733971976,24635261728,25564893921,26523577116,27512033077,28530996934,29581217347,30663456671,31778491122,32927110944,34110120577,35328338826,36582599031,37873749238,39202652371,40570186405,41977244540,43424735376,44913583089,46444727608,48019124793,49637746614,51301581331,53011633675,54768925030,56574493616,58429394673,60334700646,62291501371,64300904262,66364034499,68482035217,70656067696,72887311552,75176964929,77526244692,79936386621,82408645606,84944295843,87544631031,90210964570,92944629760,95746980001,98619388994,101563250943,104579980758,107671014259,110837808381,114081841380,117404613040,120807644881,124292480368,127860685121,131513847126,135253576947,139081507939,142999296462,147008622096,151111187857,155308720414,159602970307,163995712166,168488744931,173083892073,177783001816,182587947360,187500627105,192522964876,197656910149,202904438278,208267550723,213748275279,219348666306,225070804960,230916799425,236888785146,242988925063,249219409846,255582458131,262080316757,268715261004,275489594832,282405651121,289465791912,296672408649,304027922422,311534784211,319195475131,327012506678,334988420976,343125791025,351427220950
mov $12,$0
mov $14,$0
add $14,1
lpb $14
clr $0,12
mov $0,$12
sub $14,1
sub $0,$14
mov $9,$0
mov $11,$0
add $11,1
lpb $11
mov $0,$9
sub $11,1
sub $0,$11
add $0,3
mov $4,$0
bin $4,4
add $4,1
add $10,$4
lpe
add $13,$10
lpe
mov $1,$13
|
tools/scitools/conf/understand/ada/ada05/a-calfor.ads | brucegua/moocos | 1 | 16102 | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- A D A . C A L E N D A R . F O R M A T T I N G --
-- --
-- S p e c --
-- --
-- Copyright (C) 2005 - 2006, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
-- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
-- MA 02111-1307, USA. --
-- --
--
--
--
--
--
--
--
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Ada.Calendar.Time_Zones;
package Ada.Calendar.Formatting is
-- Day of the week
type Day_Name is
(Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday);
function Day_Of_Week (Date : Time) return Day_Name;
-- Hours:Minutes:Seconds access
subtype Hour_Number is Natural range 0 .. 23;
subtype Minute_Number is Natural range 0 .. 59;
subtype Second_Number is Natural range 0 .. 59;
subtype Second_Duration is Day_Duration range 0.0 .. 1.0;
function Year
(Date : Time;
Time_Zone : Time_Zones.Time_Offset := 0) return Year_Number;
function Month
(Date : Time;
Time_Zone : Time_Zones.Time_Offset := 0) return Month_Number;
function Day
(Date : Time;
Time_Zone : Time_Zones.Time_Offset := 0) return Day_Number;
function Hour
(Date : Time;
Time_Zone : Time_Zones.Time_Offset := 0) return Hour_Number;
function Minute
(Date : Time;
Time_Zone : Time_Zones.Time_Offset := 0) return Minute_Number;
function Second
(Date : Time) return Second_Number;
function Sub_Second
(Date : Time) return Second_Duration;
function Seconds_Of
(Hour : Hour_Number;
Minute : Minute_Number;
Second : Second_Number := 0;
Sub_Second : Second_Duration := 0.0) return Day_Duration;
procedure Split
(Seconds : Day_Duration;
Hour : out Hour_Number;
Minute : out Minute_Number;
Second : out Second_Number;
Sub_Second : out Second_Duration);
procedure Split
(Date : Time;
Year : out Year_Number;
Month : out Month_Number;
Day : out Day_Number;
Hour : out Hour_Number;
Minute : out Minute_Number;
Second : out Second_Number;
Sub_Second : out Second_Duration;
Time_Zone : Time_Zones.Time_Offset := 0);
function Time_Of
(Year : Year_Number;
Month : Month_Number;
Day : Day_Number;
Hour : Hour_Number;
Minute : Minute_Number;
Second : Second_Number;
Sub_Second : Second_Duration := 0.0;
Leap_Second : Boolean := False;
Time_Zone : Time_Zones.Time_Offset := 0) return Time;
function Time_Of
(Year : Year_Number;
Month : Month_Number;
Day : Day_Number;
Seconds : Day_Duration;
Leap_Second : Boolean := False;
Time_Zone : Time_Zones.Time_Offset := 0) return Time;
procedure Split
(Date : Time;
Year : out Year_Number;
Month : out Month_Number;
Day : out Day_Number;
Hour : out Hour_Number;
Minute : out Minute_Number;
Second : out Second_Number;
Sub_Second : out Second_Duration;
Leap_Second : out Boolean;
Time_Zone : Time_Zones.Time_Offset := 0);
procedure Split
(Date : Time;
Year : out Year_Number;
Month : out Month_Number;
Day : out Day_Number;
Seconds : out Day_Duration;
Leap_Second : out Boolean;
Time_Zone : Time_Zones.Time_Offset := 0);
-- Simple image and value
function Image
(Date : Time;
Include_Time_Fraction : Boolean := False;
Time_Zone : Time_Zones.Time_Offset := 0) return String;
function Value
(Date : String;
Time_Zone : Time_Zones.Time_Offset := 0) return Time;
function Image
(Elapsed_Time : Duration;
Include_Time_Fraction : Boolean := False) return String;
function Value (Elapsed_Time : String) return Duration;
end Ada.Calendar.Formatting;
|
src/are-installer.ads | stcarrez/resource-embedder | 7 | 11490 | -----------------------------------------------------------------------
-- are-installer -- Resource selector, preparer and installer
-- Copyright (C) 2012, 2017, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Finalization;
private with Ada.Strings.Unbounded;
private with Ada.Containers.Vectors;
private with Ada.Containers.Indefinite_Vectors;
private with Ada.Containers.Indefinite_Ordered_Maps;
private with GNAT.Regpat;
private with DOM.Core;
private with Util.Log;
-- = Rules =
-- The `Advanced Resource Embedder` provides several mechanisms to integrate
-- files in the generated code.
--
-- An XML file file contains a set of rules which describe how to select the
-- files to include in the generator. The XML file is read and resource rules
-- introduced by the `resource` XML element are collected.
--
-- The source paths are then scanned and a complete tree of source files is created.
-- Because several source paths are given, we have several source trees with possibly
-- duplicate files and names in them.
--
-- The source paths are matched against the resource rules and each installation rule
-- is filled with the source files that they match.
--
-- The resource installation rules are executed in the order defined
-- in the `package.xml` file. Each resource rule can have its own way to make
-- the installation for the set of files that matched the rule definition.
-- A resource rule can copy the file, another can concatenate the source files,
-- another can do some transformation on the source files and prepare it before being
-- embedded and used by the generator.
--
-- @include are-installer-copies.ads
-- @include are-installer-concat.ads
-- @include are-installer-exec.ads
-- @include are-installer-bundles.ads
-- @include are-installer-merges.ads
package Are.Installer is
type Installer_Type is limited new Ada.Finalization.Limited_Controlled with private;
-- Read the XML package file that describes the resources and build the list
-- of rules to collect and build those resources.
procedure Read_Package (Installer : in out Installer_Type;
File : in String;
Context : in out Context_Type'Class);
-- Scan the directory collecting the files that must be taken into account and
-- processed by the distribution rules.
procedure Scan_Directory (Installer : in out Installer_Type;
Path : in String;
Context : in out Context_Type'Class);
-- Add a simple rule to copy the files matching the pattern on the resource.
procedure Add_Rule (Installer : in out Installer_Type;
Resource : in Are.Resource_Access;
Pattern : in String);
-- Execute the installation rules and collect the resources to be written
-- in the context.
procedure Execute (Installer : in out Installer_Type;
Context : in out Context_Type'Class);
-- Clear the rules and files that have been loaded.
procedure Clear (Installer : in out Installer_Type);
private
type Directory_List;
type Directory_List_Access is access all Directory_List;
-- A `File_Record` refers to a source file that must be processed by a resource
-- rule. It is linked to the directory which contains it through the `Dir` member.
-- The `Name` refers to the file name part.
type File_Record (Length : Natural) is record
Dir : Directory_List_Access;
Name : String (1 .. Length);
end record;
package File_Record_Vectors is
new Ada.Containers.Indefinite_Vectors (Index_Type => Positive,
Element_Type => File_Record);
subtype File_Vector is File_Record_Vectors.Vector;
subtype File_Cursor is File_Record_Vectors.Cursor;
-- Get the first source path from the list.
function Get_Source_Path (From : in File_Vector;
Use_First_File : in Boolean := False) return String;
-- The file tree represents the target distribution tree that must be built.
-- Each key represent a target file and it is associated with a `File_Vector` which
-- represents the list of source files that must be used to build the target.
package File_Tree is
new Ada.Containers.Indefinite_Ordered_Maps (Key_Type => String,
Element_Type => File_Vector,
"<" => "<",
"=" => File_Record_Vectors."=");
package Directory_List_Vector is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => Directory_List_Access);
-- The `Directory_List` describes the content of a source directory.
type Directory_List (Length : Positive;
Path_Length : Natural)
is record
Files : File_Record_Vectors.Vector;
Directories : Directory_List_Vector.Vector;
Rel_Pos : Positive := 1;
Name : String (1 .. Length);
Path : String (1 .. Path_Length);
end record;
-- Get the relative path of the directory.
function Get_Relative_Path (Dir : in Directory_List) return String;
-- Strip the base part of the path
function Get_Strip_Path (Base : in String;
Path : in String) return String;
-- Build a regular expression pattern from a pattern string.
function Make_Regexp (Pattern : in String) return String;
-- Build a regular expression pattern from a pattern string.
function Make_Regexp (Pattern : in String) return GNAT.Regpat.Pattern_Matcher;
-- Scan the directory whose root path is `Path` and with the relative path
-- `Rel_Path` and build in `Dir` the list of files and directories.
procedure Scan (Path : in String;
Rel_Path : in String;
Dir : in Directory_List_Access);
type Match_Rule is record
Base_Dir : Ada.Strings.Unbounded.Unbounded_String;
Match : Ada.Strings.Unbounded.Unbounded_String;
end record;
package Match_Rule_Vector is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => Match_Rule);
-- ------------------------------
-- Distribution rule
-- ------------------------------
-- The <b>Distrib_Rule</b> represents a distribution rule that must be executed on
-- a given file or set of files.
type Distrib_Rule is abstract tagged record
Dir : Ada.Strings.Unbounded.Unbounded_String;
Resource : Are.Resource_Access;
Matches : Match_Rule_Vector.Vector;
Excludes : Match_Rule_Vector.Vector;
Files : File_Tree.Map;
Level : Util.Log.Level_Type := Util.Log.DEBUG_LEVEL;
Strip_Extension : Boolean := False;
Source_Timestamp : Boolean := False;
end record;
type Distrib_Rule_Access is access all Distrib_Rule'Class;
-- Get a name to qualify the installation rule (used for logs).
function Get_Install_Name (Rule : in Distrib_Rule) return String is abstract;
-- Install the file <b>File</b> according to the distribution rule.
procedure Install (Rule : in Distrib_Rule;
Target : in String;
File : in File_Vector;
Context : in out Context_Type'Class) is abstract;
-- Scan the directory tree whose root is defined by <b>Dir</b> and find the files
-- that match the current rule.
procedure Scan (Rule : in out Distrib_Rule;
Dir : in Directory_List);
procedure Scan (Rule : in out Distrib_Rule;
Dir : in Directory_List;
Base_Dir : in String;
Pattern : in String;
Exclude : in Boolean);
procedure Execute (Rule : in out Distrib_Rule;
Context : in out Context_Type'Class);
-- Get the target path associate with the given source file for the distribution rule.
function Get_Target_Path (Rule : in Distrib_Rule;
Base : in String;
File : in File_Record) return String;
-- Get the source path of the file.
function Get_Source_Path (Rule : in Distrib_Rule;
File : in File_Record) return String;
-- Get the path that must be exported by the rule.
function Get_Export_Path (Rule : in Distrib_Rule;
Path : in String) return String;
-- Add the file to be processed by the distribution rule. The file has a relative
-- path represented by <b>Path</b>. The path is relative from the base directory
-- specified in <b>Base_Dir</b>.
procedure Add_Source_File (Rule : in out Distrib_Rule;
Path : in String;
File : in File_Record);
-- Remove the file to be processed by the distribution rule. This is the opposite of
-- <tt>Add_Source_File</tt> and used for the <exclude name="xxx"/> rules.
procedure Remove_Source_File (Rule : in out Distrib_Rule;
Path : in String;
File : in File_Record);
-- Load and add the file in the resource library.
procedure Add_File (Rule : in Distrib_Rule;
Name : in String;
Path : in String;
Modtime : in Ada.Calendar.Time;
Override : in Boolean := False);
-- Create a resource rule identified by `Kind`.
-- The resource rule is configured according to the DOM tree whose node is `Node`.
function Create_Rule (Kind : in String;
Node : in DOM.Core.Node) return Distrib_Rule_Access;
-- A list of rules that define how to build the distribution.
package Distrib_Rule_Vectors is
new Ada.Containers.Vectors (Index_Type => Positive,
Element_Type => Distrib_Rule_Access);
type Installer_Type is limited new Ada.Finalization.Limited_Controlled with record
Rules : Distrib_Rule_Vectors.Vector;
Trees : Directory_List_Vector.Vector;
end record;
procedure Delete (Directory : in out Directory_List_Access);
overriding
procedure Finalize (Installer : in out Installer_Type);
end Are.Installer;
|
libsrc/stdio/conio/gotoxy_callee.asm | Frodevan/z88dk | 38 | 93358 | <reponame>Frodevan/z88dk
; void gotoxy_callee(uint x, uint y)
; 09.2017 stefano
SECTION code_clib
PUBLIC gotoxy_callee
PUBLIC _gotoxy_callee
PUBLIC ASMDISP_GOTOXY_CALLEE
EXTERN __console_x
EXTERN __console_y
.gotoxy_callee
._gotoxy_callee
pop hl
pop de
pop bc
push hl
.asmentry
; c = x e = y
ld a,c
ld (__console_x),a
ld a,e
ld (__console_y),a
ret
DEFC ASMDISP_GOTOXY_CALLEE = asmentry - gotoxy_callee
|
programs/oeis/103/A103488.asm | neoneye/loda | 22 | 177788 | ; A103488: a(n) = 2^(n^2-1).
; 1,8,256,32768,16777216,34359738368,281474976710656,9223372036854775808,1208925819614629174706176,633825300114114700748351602688
mov $1,2
pow $1,$0
add $0,2
pow $1,$0
mov $0,$1
|
oeis/159/A159808.asm | neoneye/loda-programs | 11 | 752 | ; A159808: Numerator of Hermite(n, 5/22).
; Submitted by <NAME>
; 1,5,-217,-3505,140017,4092925,-148955945,-6687706825,218892836705,14041864596725,-406539275359865,-36014008700873825,902137507503591505,109095368804855545325,-2292647754582021148105,-381078348283760693301625,6416919607713933301113025,1507619962593291070969457125,-18861107453168666245931699225,-6661498094322219236372613732625,53415881598058431216930884373425,32508730184509833260128104887772125,-108915859358783781143802229946885225,-173621058799124271182641041572233219625
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
mov $3,$1
mov $1,$2
mul $2,5
mul $3,-1
mul $3,$0
mul $3,242
lpe
mov $0,$1
|
oeis/326/A326815.asm | neoneye/loda-programs | 11 | 98197 | <gh_stars>10-100
; A326815: Dirichlet g.f.: zeta(s)^3 * Product_{p prime} (1 - 2 * p^(-s)).
; Submitted by <NAME>
; 1,1,1,0,1,1,1,-2,0,1,1,0,1,1,1,-5,1,0,1,0,1,1,1,-2,0,1,-2,0,1,1,1,-9,1,1,1,0,1,1,1,-2,1,1,1,0,0,1,1,-5,0,0,1,0,1,-2,1,-2,1,1,1,0,1,1,0,-14,1,1,1,0,1,1,1,0,1,1,0,0,1,1,1,-5,-5,1,1,0,1,1,1,-2,1,0,1,0,1,1,1,-9,1,0,0,0
add $0,1
mov $1,1
lpb $0
mov $3,$0
lpb $3
mov $4,$0
cmp $6,0
add $2,$6
mod $4,$2
cmp $4,0
cmp $4,0
mov $5,$2
add $2,1
cmp $5,1
max $4,$5
sub $3,$4
add $6,3
lpe
mov $5,1
lpb $0
dif $0,$2
sub $4,1
add $5,$4
lpe
mul $1,$5
lpe
mov $0,$1
|
source/amf/dd/amf-internals-tables-dg_metamodel-links.ads | svn2github/matreshka | 24 | 30692 | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, <NAME> <<EMAIL>> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
package AMF.Internals.Tables.DG_Metamodel.Links is
procedure Initialize;
private
procedure Initialize_1;
procedure Initialize_2;
procedure Initialize_3;
procedure Initialize_4;
procedure Initialize_5;
procedure Initialize_6;
procedure Initialize_7;
procedure Initialize_8;
procedure Initialize_9;
procedure Initialize_10;
procedure Initialize_11;
procedure Initialize_12;
procedure Initialize_13;
procedure Initialize_14;
procedure Initialize_15;
procedure Initialize_16;
procedure Initialize_17;
procedure Initialize_18;
procedure Initialize_19;
procedure Initialize_20;
procedure Initialize_21;
procedure Initialize_22;
procedure Initialize_23;
procedure Initialize_24;
procedure Initialize_25;
procedure Initialize_26;
procedure Initialize_27;
procedure Initialize_28;
procedure Initialize_29;
procedure Initialize_30;
procedure Initialize_31;
procedure Initialize_32;
procedure Initialize_33;
procedure Initialize_34;
procedure Initialize_35;
procedure Initialize_36;
procedure Initialize_37;
procedure Initialize_38;
procedure Initialize_39;
procedure Initialize_40;
procedure Initialize_41;
procedure Initialize_42;
procedure Initialize_43;
procedure Initialize_44;
procedure Initialize_45;
procedure Initialize_46;
procedure Initialize_47;
procedure Initialize_48;
procedure Initialize_49;
procedure Initialize_50;
procedure Initialize_51;
procedure Initialize_52;
procedure Initialize_53;
procedure Initialize_54;
procedure Initialize_55;
procedure Initialize_56;
procedure Initialize_57;
procedure Initialize_58;
procedure Initialize_59;
procedure Initialize_60;
procedure Initialize_61;
procedure Initialize_62;
procedure Initialize_63;
procedure Initialize_64;
procedure Initialize_65;
procedure Initialize_66;
procedure Initialize_67;
procedure Initialize_68;
procedure Initialize_69;
procedure Initialize_70;
procedure Initialize_71;
procedure Initialize_72;
procedure Initialize_73;
procedure Initialize_74;
procedure Initialize_75;
procedure Initialize_76;
procedure Initialize_77;
procedure Initialize_78;
procedure Initialize_79;
procedure Initialize_80;
procedure Initialize_81;
procedure Initialize_82;
procedure Initialize_83;
procedure Initialize_84;
procedure Initialize_85;
procedure Initialize_86;
procedure Initialize_87;
procedure Initialize_88;
procedure Initialize_89;
procedure Initialize_90;
procedure Initialize_91;
procedure Initialize_92;
procedure Initialize_93;
procedure Initialize_94;
procedure Initialize_95;
procedure Initialize_96;
procedure Initialize_97;
procedure Initialize_98;
procedure Initialize_99;
procedure Initialize_100;
procedure Initialize_101;
procedure Initialize_102;
procedure Initialize_103;
procedure Initialize_104;
procedure Initialize_105;
procedure Initialize_106;
procedure Initialize_107;
procedure Initialize_108;
procedure Initialize_109;
procedure Initialize_110;
procedure Initialize_111;
procedure Initialize_112;
procedure Initialize_113;
procedure Initialize_114;
procedure Initialize_115;
procedure Initialize_116;
procedure Initialize_117;
procedure Initialize_118;
procedure Initialize_119;
procedure Initialize_120;
procedure Initialize_121;
procedure Initialize_122;
procedure Initialize_123;
procedure Initialize_124;
procedure Initialize_125;
procedure Initialize_126;
procedure Initialize_127;
procedure Initialize_128;
procedure Initialize_129;
procedure Initialize_130;
procedure Initialize_131;
procedure Initialize_132;
procedure Initialize_133;
procedure Initialize_134;
procedure Initialize_135;
procedure Initialize_136;
procedure Initialize_137;
procedure Initialize_138;
procedure Initialize_139;
procedure Initialize_140;
procedure Initialize_141;
procedure Initialize_142;
procedure Initialize_143;
procedure Initialize_144;
procedure Initialize_145;
procedure Initialize_146;
procedure Initialize_147;
procedure Initialize_148;
procedure Initialize_149;
procedure Initialize_150;
procedure Initialize_151;
procedure Initialize_152;
procedure Initialize_153;
procedure Initialize_154;
procedure Initialize_155;
procedure Initialize_156;
procedure Initialize_157;
procedure Initialize_158;
procedure Initialize_159;
procedure Initialize_160;
procedure Initialize_161;
procedure Initialize_162;
procedure Initialize_163;
procedure Initialize_164;
procedure Initialize_165;
procedure Initialize_166;
procedure Initialize_167;
procedure Initialize_168;
procedure Initialize_169;
procedure Initialize_170;
procedure Initialize_171;
procedure Initialize_172;
procedure Initialize_173;
procedure Initialize_174;
procedure Initialize_175;
procedure Initialize_176;
procedure Initialize_177;
procedure Initialize_178;
procedure Initialize_179;
procedure Initialize_180;
procedure Initialize_181;
procedure Initialize_182;
procedure Initialize_183;
procedure Initialize_184;
procedure Initialize_185;
procedure Initialize_186;
procedure Initialize_187;
procedure Initialize_188;
procedure Initialize_189;
procedure Initialize_190;
procedure Initialize_191;
procedure Initialize_192;
procedure Initialize_193;
procedure Initialize_194;
procedure Initialize_195;
procedure Initialize_196;
procedure Initialize_197;
procedure Initialize_198;
procedure Initialize_199;
procedure Initialize_200;
procedure Initialize_201;
procedure Initialize_202;
procedure Initialize_203;
procedure Initialize_204;
procedure Initialize_205;
procedure Initialize_206;
procedure Initialize_207;
procedure Initialize_208;
procedure Initialize_209;
procedure Initialize_210;
procedure Initialize_211;
procedure Initialize_212;
procedure Initialize_213;
procedure Initialize_214;
procedure Initialize_215;
procedure Initialize_216;
procedure Initialize_217;
procedure Initialize_218;
procedure Initialize_219;
procedure Initialize_220;
procedure Initialize_221;
procedure Initialize_222;
procedure Initialize_223;
procedure Initialize_224;
procedure Initialize_225;
procedure Initialize_226;
procedure Initialize_227;
procedure Initialize_228;
procedure Initialize_229;
procedure Initialize_230;
procedure Initialize_231;
procedure Initialize_232;
procedure Initialize_233;
procedure Initialize_234;
procedure Initialize_235;
procedure Initialize_236;
procedure Initialize_237;
procedure Initialize_238;
procedure Initialize_239;
procedure Initialize_240;
procedure Initialize_241;
procedure Initialize_242;
procedure Initialize_243;
procedure Initialize_244;
procedure Initialize_245;
procedure Initialize_246;
procedure Initialize_247;
procedure Initialize_248;
procedure Initialize_249;
procedure Initialize_250;
procedure Initialize_251;
procedure Initialize_252;
procedure Initialize_253;
procedure Initialize_254;
procedure Initialize_255;
procedure Initialize_256;
procedure Initialize_257;
procedure Initialize_258;
procedure Initialize_259;
procedure Initialize_260;
procedure Initialize_261;
procedure Initialize_262;
procedure Initialize_263;
procedure Initialize_264;
procedure Initialize_265;
procedure Initialize_266;
procedure Initialize_267;
procedure Initialize_268;
procedure Initialize_269;
procedure Initialize_270;
procedure Initialize_271;
procedure Initialize_272;
procedure Initialize_273;
procedure Initialize_274;
procedure Initialize_275;
procedure Initialize_276;
procedure Initialize_277;
procedure Initialize_278;
procedure Initialize_279;
procedure Initialize_280;
procedure Initialize_281;
procedure Initialize_282;
procedure Initialize_283;
procedure Initialize_284;
procedure Initialize_285;
procedure Initialize_286;
procedure Initialize_287;
procedure Initialize_288;
procedure Initialize_289;
procedure Initialize_290;
procedure Initialize_291;
procedure Initialize_292;
procedure Initialize_293;
procedure Initialize_294;
procedure Initialize_295;
procedure Initialize_296;
procedure Initialize_297;
procedure Initialize_298;
procedure Initialize_299;
procedure Initialize_300;
procedure Initialize_301;
procedure Initialize_302;
procedure Initialize_303;
procedure Initialize_304;
procedure Initialize_305;
procedure Initialize_306;
procedure Initialize_307;
procedure Initialize_308;
procedure Initialize_309;
procedure Initialize_310;
procedure Initialize_311;
procedure Initialize_312;
procedure Initialize_313;
procedure Initialize_314;
procedure Initialize_315;
procedure Initialize_316;
procedure Initialize_317;
procedure Initialize_318;
procedure Initialize_319;
procedure Initialize_320;
procedure Initialize_321;
procedure Initialize_322;
end AMF.Internals.Tables.DG_Metamodel.Links;
|
src/main/antlr/AttributesLexer.g4 | vlsergey/tex2html | 0 | 6547 | lexer grammar AttributesLexer ;
@header {
package com.github.vlsergey.tex2html.grammar;
}
ALPHA : [a-zA-Z]+ ;
COMMA : ',' ;
DOT : '.' ;
NUMERIC : [0-9]+ ;
EQUALS : '=' ;
TEXTWIDTH : '\\textwidth' ;
|
gcc-gcc-7_3_0-release/gcc/ada/s-exctra.ads | best08618/asylo | 7 | 17675 | <filename>gcc-gcc-7_3_0-release/gcc/ada/s-exctra.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . E X C E P T I O N _ T R A C E S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2000-2015, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package provides an interface allowing to control *automatic* output
-- to standard error upon exception occurrences (as opposed to explicit
-- generation of traceback information using System.Traceback).
-- This output includes the basic information associated with the exception
-- (name, message) as well as a backtrace of the call chain at the point
-- where the exception occurred. This backtrace is only output if the call
-- chain information is available, depending if the binder switch dedicated
-- to that purpose has been used or not.
-- The default backtrace is in the form of absolute code locations which may
-- be converted to corresponding source locations using the addr2line utility
-- or from within GDB. Please refer to System.Traceback for information about
-- what is necessary to be able to exploit this possibility.
-- The backtrace output can also be customized by way of a "decorator" which
-- may return any string output in association with a provided call chain.
-- The decorator replaces the default backtrace mentioned above.
-- On systems that use DWARF debugging output, then if the "-g" compiler
-- switch and the "-Es" binder switch are used, the decorator is automatically
-- set to Symbolic_Traceback.
with System.Traceback_Entries;
package System.Exception_Traces is
-- The following defines the exact situations in which raises will
-- cause automatic output of trace information.
type Trace_Kind is
(Every_Raise,
-- Denotes the initial raise event for any exception occurrence, either
-- explicit or due to a specific language rule, within the context of a
-- task or not.
Unhandled_Raise,
-- Denotes the raise events corresponding to exceptions for which there
-- is no user defined handler. This includes unhandled exceptions in
-- task bodies.
Unhandled_Raise_In_Main
-- Same as Unhandled_Raise, except exceptions in task bodies are not
-- included.
);
-- The following procedures can be used to activate and deactivate
-- traces identified by the above trace kind values.
procedure Trace_On (Kind : Trace_Kind);
-- Activate the traces denoted by Kind
procedure Trace_Off;
-- Stop the tracing requested by the last call to Trace_On.
-- Has no effect if no such call has ever occurred.
-- The following provide the backtrace decorating facilities
type Traceback_Decorator is access
function (Traceback : Traceback_Entries.Tracebacks_Array) return String;
-- A backtrace decorator is a function which returns the string to be
-- output for a call chain provided by way of a tracebacks array.
procedure Set_Trace_Decorator (Decorator : Traceback_Decorator);
-- Set the decorator to be used for future automatic outputs. Restore the
-- default behavior if the provided access value is null.
--
-- Note: System.Traceback.Symbolic.Symbolic_Traceback may be used as the
-- Decorator, to get a symbolic traceback. This will cause a significant
-- cpu and memory overhead on some platforms.
--
-- Note: The Decorator is called when constructing the
-- Exception_Information; that needs to be taken into account
-- if the Decorator has any side effects.
end System.Exception_Traces;
|
alloy-delivery.als | bchabod/alloy-delivery | 0 | 3688 | open util/integer
open util/ordering[Time] as to
open util/boolean
/********************************* Signatures *********************************/
/**
* Signature Time pour simuler le temps.
*/
sig Time
{
}
/**
* Signature de l'objet Drone
* Attributs :
* coordonnees : coordonnees actuelles du drone
*/
sig Drone
{
coordonnees : Coordonnees one -> Time,
batterie : Int one -> Time,
commande : Commande lone -> Time,
coordonneesCible : Coordonnees lone -> Time,
capaciteMax : Int,
coordReceptaclesVisites : Coordonnees set -> Time
}
/**
* Signature de l'objet Receptacle
* Attributs :
* coordonnees : coordonnees du receptables
* receptaclesVoisins : tous les receptables voisins de ce receptable
*/
sig Receptacle
{
coordonnees : Coordonnees,
capaciteMax : Int,
contenanceActuelle : Int one -> Time ,
receptaclesVoisins : some Receptacle
}
/**
* Signature de l'objet Entrepot
* Attributs :
* coordonnees : coordonnees de l'entrepot
* receptaclesVoisins : tous les receptables voisins de cet entrepot
*/
sig Entrepot
{
coordonnees : Coordonnees,
receptaclesVoisinsEntrepot : some Receptacle,
commandes: some Commande
}
/**
* Signature de l'objet Coordonnees
* Attributs :
* x : coordonnee X (entier) de cette coordonnee
* Y : coordonnee Y (entier) de cette coordonnee
*/
sig Coordonnees
{
x : Int,
y : Int
}
/**
* Signature de l'objet Commande
* Attributs :
* coordonneesLivraison : Coordonnees ou doit etre effectuee la livraison
*/
sig Commande
{
coordonneesLivraison : Coordonnees,
poids: Int,
affectee : Bool one -> Time
}
/********************************* Fonctions *********************************/
/**
* Calcule la valeur absolue d'un entier
* Retourne : la valeur absolue de l'entier X
*/
fun abs[x: Int]: Int {
x >= 0 => x else x.mul[-1]
}
/**
* Calcule la valeur max entre deux entiers
* Retourne : la valeur max entre a et b
*/
fun max[a, b: Int]: Int {
a > b => a else b
}
/********************************* Faits *********************************/
/**
* Ensemble des faits pour placer les elements avec leurs coordonnees
*/
fact invCoordonnees
{
initInstances
predCoordonnees
receptaclesVoisins
poidsCommandes
}
fact initCapacites
{
capacitesReceptacles
capacitesDrones
}
/**
* Sequences d'execution
*/
fact traces
{
// Post-Condition du programme
init [to/first]
// Execution
all t: Time - to/last
| let t' = t.next
| all drone: Drone
| (charger[t, t', drone] || rechargerBatterie[t, t', drone] || livrer[t, t', drone] || deplacerDroneVersCommande[t, t', drone] || deplacerDroneVersEntrepot[t, t', drone] || skip[t, t', drone])
all t: Time - to/last
| let t' = t.next
| all r: Receptacle
| majReceptacle[t, t', r]
all t: Time - to/last
| let t' = t.next
| all c: Commande
| majCommande[t, t', c]
// Post-Condition du programme
all drone: Drone | #drone.commande.to/last = 0 && some e:Entrepot | drone.coordonnees.to/last = e.coordonnees
all c: Commande | c.affectee.to/last = {True}
}
/**
* Initialisation à T0
*/
pred init [t: Time]
{
// Tous les drones sont sur un entrepot
all d: Drone | some e: Entrepot | d.coordonnees.t = e.coordonnees
// Toutes les commandes appartiennent a l'entrepot
all c:Commande | one e:Entrepot | c in e.commandes
// Pas de commande à prendre en charge en début
all d: Drone | #d.commande.t = 0 && #d.coordonneesCible.t = 0 && #d.coordReceptaclesVisites.t = 0
// Toutes les commandes sont non affectées
all c: Commande | c.affectee.t = {False}
// Initialise la batterie au max
all d: Drone | d.batterie.t = 3
//on initialise les contenances des receptacles
all r: Receptacle | r.contenanceActuelle.t = 0
}
/**
* Opération : Charge une commande
* Précondition : Drone sur entrepot, sans commande, avec batterie pleine, avec presence de commandes à traiter
*/
pred charger [t, t': Time, drone: Drone]
{
// Précondition
(one e: Entrepot | drone.coordonnees.t = e.coordonnees && some c: e.commandes | c.affectee.t = {False}) && drone.batterie.t = 3 && #drone.commande.t = 0
// Affectation de la commande
some c: Commande, e: Entrepot | c in e.commandes && c.affectee.t = {False} && drone.commande.t' = c && c.affectee.t' = {True}
// Commande ne pouvant être partagée avec d'autres drones
no d: Drone | d != drone && d.commande.t' = drone.commande.t'
// Initialisation du réceptacle cible du drone au réceptacle le plus proche, qui est dans l'ilot de la commande
some r: Receptacle | drone.coordonneesCible.t' = r.coordonnees && r.coordonnees.positionVoisin[drone.coordonnees.t]
// Nouveau parcours à effectuer
#drone.coordReceptaclesVisites.t' = 0
// Nouvelles valeurs
drone.coordonnees.t' = drone.coordonnees.t
drone.batterie.t' = drone.batterie.t
}
/**
* Opération : Recharge de batterie
* Précondition : Drone sur son réceptacle cible et possède une batterie < 3 (non pleine)
*/
pred rechargerBatterie [t, t': Time, drone: Drone]
{
// Précondition
drone.coordonnees.t = drone.coordonneesCible.t && drone.batterie.t < 3
// Nouvelles valeurs
drone.coordonnees.t' = drone.coordonnees.t
drone.coordonneesCible.t' = drone.coordonneesCible.t
drone.coordReceptaclesVisites.t' = drone.coordReceptaclesVisites.t
drone.commande.t' = drone.commande.t
drone.batterie.t' = drone.batterie.t.add[1]
}
/**
* Opération : Déplacement de drone
* Précondition : Possède une commande, n'est pas sur la livraison et :
* - Soit le drone se situe sur la cible mais avec une batterie pleine (si non pleine il doit se recharger)
* - Soit le drone ne se situe pas sur la cible
*/
pred deplacerDroneVersCommande [t, t': Time, drone: Drone]
{
// Précondition
((drone.coordonnees.t = drone.coordonneesCible.t && drone.batterie.t = 3) || (drone.coordonnees.t != drone.coordonneesCible.t))
#drone.commande.t = 1 && drone.commande.t.coordonneesLivraison != drone.coordonnees.t
// On regarde si la cible a ete atteinte
drone.coordonnees.t = drone.coordonneesCible.t => {
// On ajoute les coordonnees du receptacle au chemin parcouru
drone.coordReceptaclesVisites.t' = drone.coordReceptaclesVisites.t + drone.coordonneesCible.t
// Le receptacle cible change
some r: Receptacle
| r.coordonnees.positionVoisin[drone.coordonnees.t] && r.coordonnees not in drone.coordReceptaclesVisites.t && drone.coordonneesCible.t' = r.coordonnees
} else {
// On garde le même réceptacle cible
drone.coordonneesCible.t' = drone.coordonneesCible.t
// On garde le même chemin
drone.coordReceptaclesVisites.t' = drone.coordReceptaclesVisites.t
}
// On se dirige vers la cible a l'instant t'
(
(drone.coordonneesCible.t'.x > drone.coordonnees.t.x && drone.coordonnees.t'.x = drone.coordonnees.t.x.add[1] && drone.coordonnees.t'.y = drone.coordonnees.t.y)
|| (drone.coordonneesCible.t'.x < drone.coordonnees.t.x && drone.coordonnees.t'.x = drone.coordonnees.t.x.sub[1] && drone.coordonnees.t'.y = drone.coordonnees.t.y)
|| (drone.coordonneesCible.t'.y > drone.coordonnees.t.y && drone.coordonnees.t'.y = drone.coordonnees.t.y.add[1] && drone.coordonnees.t'.x = drone.coordonnees.t.x)
|| (drone.coordonneesCible.t'.y < drone.coordonnees.t.y && drone.coordonnees.t'.y = drone.coordonnees.t.y.sub[1] && drone.coordonnees.t'.x = drone.coordonnees.t.x)
)
// On vérifie qu'un autre drone ne souhaite pas aller aux futures coordonnees, sauf s'il s'agit d'un entrepot
no d: Drone | d != drone && d.coordonnees.t' = drone.coordonnees.t' && no e: Entrepot | e.coordonnees = drone.coordonnees.t'
// Diminution de la batterie
drone.batterie.t' = drone.batterie.t.sub[1]
drone.commande.t' = drone.commande.t
}
/**
* Opération : Déplacement retour d'un drone
* Précondition : Plus de commande et n'est pas sur un entrepot
*/
pred deplacerDroneVersEntrepot [t, t': Time, drone: Drone]
{
// Prédicat
#drone.commande.t = 0 && no e: Entrepot | drone.coordonnees.t = e.coordonnees
// On regarde si la cible change
drone.coordonnees.t = drone.coordonneesCible.t => {
// On enleve le réceptacle au chemin a parcourir
drone.coordReceptaclesVisites.t' = drone.coordReceptaclesVisites.t - drone.coordonneesCible.t
// La cible change : soit le receptacle voisin dans l'historique, soit un entrepot si historique vide
#drone.coordReceptaclesVisites.t' > 0 => {
some cible: Coordonnees
| cible.positionVoisin[drone.coordonnees.t] && cible in drone.coordReceptaclesVisites.t && drone.coordonneesCible.t' = cible
} else {
some e: Entrepot
| e.coordonnees.positionVoisin[drone.coordonnees.t] && drone.coordonneesCible.t' = e.coordonnees
}
} else {
// On garde la meme cible
drone.coordonneesCible.t' = drone.coordonneesCible.t
// On garde le même chemin
drone.coordReceptaclesVisites.t' = drone.coordReceptaclesVisites.t
}
// On se dirige vers la cible a l'instant t'
(
(drone.coordonneesCible.t'.x > drone.coordonnees.t.x && drone.coordonnees.t'.x = drone.coordonnees.t.x.add[1] && drone.coordonnees.t'.y = drone.coordonnees.t.y)
|| (drone.coordonneesCible.t'.x < drone.coordonnees.t.x && drone.coordonnees.t'.x = drone.coordonnees.t.x.sub[1] && drone.coordonnees.t'.y = drone.coordonnees.t.y)
|| (drone.coordonneesCible.t'.y > drone.coordonnees.t.y && drone.coordonnees.t'.y = drone.coordonnees.t.y.add[1] && drone.coordonnees.t'.x = drone.coordonnees.t.x)
|| (drone.coordonneesCible.t'.y < drone.coordonnees.t.y && drone.coordonnees.t'.y = drone.coordonnees.t.y.sub[1] && drone.coordonnees.t'.x = drone.coordonnees.t.x)
)
// On vérifie qu'un autre drone ne souhaite pas aller aux futures coordonnees, sauf s'il s'agit d'un entrepot
no d: Drone | d != drone && d.coordonnees.t' = drone.coordonnees.t' && no e: Entrepot | e.coordonnees = drone.coordonnees.t'
// Diminution de la batterie
drone.batterie.t' = drone.batterie.t.sub[1]
// Nouvelles valeurs
drone.commande.t' = drone.commande.t
}
pred skip [t, t': Time, drone: Drone]
{
// Nouvelles valeurs
drone.coordonnees.t' = drone.coordonnees.t
drone.coordonneesCible.t' = drone.coordonneesCible.t
drone.coordReceptaclesVisites.t' = drone.coordReceptaclesVisites.t
drone.commande.t' = drone.commande.t
drone.batterie.t' = drone.batterie.t
}
pred majCommande [t, t' : Time, c : Commande]
{
(no d: Drone | d.commande.t' = c) => {
// On conserve la valeur affectee
c.affectee.t' = c.affectee.t
} else {
// La commande est affectée
c.affectee.t' = {True}
}
}
/**
* Opération : Livrer une commande
* Précondition : Batterie pleine (= 3) && Sur les coordonnees de livraison && Presence d'une commande
*/
pred livrer [t, t': Time, drone: Drone]
{
// Précondition
#drone.commande.t = 1 && drone.coordonnees.t = drone.commande.t.coordonneesLivraison && drone.batterie.t = 3
// Nouvelles valeurs
drone.coordonnees.t' = drone.coordonnees.t
drone.coordonneesCible.t' = drone.coordonneesCible.t
drone.coordReceptaclesVisites.t' = drone.coordReceptaclesVisites.t
drone.batterie.t' = drone.batterie.t
#drone.commande.t' = 0
}
/**
* Propage la contenance du receptacle aux coordonnees c à travers le temps.
*/
pred majReceptacle [t, t' : Time, r : Receptacle]
{
//soit on trouve un drone qui livre et on add le poids
(one d: Drone | #d.commande.t = 1 && d.coordonnees.t = d.commande.t.coordonneesLivraison && d.batterie.t = 3 && r.coordonnees = d.coordonnees.t &&
r.contenanceActuelle.t' = r.contenanceActuelle.t.add[d.commande.t.poids])
<=> not
//soit on propage ce qu'il y avait avant, ou on le vide aléatoirement
( r.contenanceActuelle.t' = r.contenanceActuelle.t || ( r.contenanceActuelle.t' = 0))
}
/********************************* Predicats *********************************/
/**
* Vérifie que deux coordonnees sont egales
*/
pred coordonneesEgales[c0,c1 : Coordonnees]
{
c0.x = c1.x && c0.y = c1.y
}
/**
* Initialise le nombre d'instances des objets
*/
pred initInstances
{
one Entrepot
#Drone = 2 // DNB
#Receptacle = 5 // RNB
}
/**
* Ensemble des predicats qui contraignent les coordonnees
*/
pred predCoordonnees
{
coordonneesUniques
coordonneesReceptacles
coordonneesEntrepot
coordonneesDrones
coordonneesCommandes
}
/**
* Verifie que les instances de Coordonnees sont sur des cases differentes
*/
pred coordonneesUniques
{
no c0, c1 : Coordonnees | (c0 != c1 && c1.coordonneesEgales[c0])
}
/**
* Verifie que les receptacles soient sur des coordonnees differentes
*/
pred coordonneesReceptacles
{
no r0, r1 : Receptacle | (r0 != r1 && r0.coordonnees = r1.coordonnees)
}
/**
* Verifie que les receptacles ne soient pas sur les coordonnees des entrepots
*/
pred coordonneesEntrepot
{
no r : Receptacle, e : Entrepot | r.coordonnees = e.coordonnees
}
/**
* Verifie que les drones ne soient pas sur les memes coordonnees, a l'exception des entrepots,
* qui peuvent heberger plusieurs drones.
*/
pred coordonneesDrones
{
// no d0, d1 : Drone | (d0 != d1 && d0.coordonnees = d1.coordonnees && (no e0 : Entrepot | d0.coordonnees = e0.coordonnees))
}
/**
* Verifie que les commandes sont sur des receptacles
*/
pred coordonneesCommandes
{
all c: Commande | some r: Receptacle | c.coordonneesLivraison = r.coordonnees
}
/**
* Verifie que deux coordonnees soient au plus d'une distance de 3 cases (distance de manhattan)
*/
pred positionVoisin[c0, c1 : Coordonnees]
{
abs[c0.x.sub[c1.x]].add[abs[c0.y.sub[c1.y]]] =< 3
}
/**
* Verifie que deux coordonnees soient au plus d'une distance de 3 cases (distance de manhattan)
*/
pred receptaclesVoisins
{
// Decommenter la ligne ci-dessous pour forcer plusieurs chemins en sortie de l'entrepot
//all e0 : Entrepot | #e0.receptaclesVoisins = 2
// Associe des receptacles voisins aux entrepots
all e0 : Entrepot | all r0: e0.receptaclesVoisinsEntrepot | e0.coordonnees.positionVoisin[r0.coordonnees]
// Empeche un receptacle d'etre son propre voisin
all r0 : Receptacle
| !(r0 in r0.receptaclesVoisins)
// Associe pour chaque receptacle ses receptacles voisins
all r0: Receptacle | all r1 : r0.receptaclesVoisins | r1.coordonnees.positionVoisin[r0.coordonnees] && r0 in r1.receptaclesVoisins
// Verifie que chaque receptacle soit accessible depuis les entrepots
all e0 : Entrepot, r0 : Receptacle
| some r1 : e0.receptaclesVoisinsEntrepot
| r0 in r1.*receptaclesVoisins
}
pred capacitesReceptacles
{
all r : Receptacle | r.capaciteMax = 12 //RCAP
}
pred capacitesDrones
{
all d : Drone | d.capaciteMax = 5 //DCAP
}
//on définit le poids des Commandes
pred poidsCommandes
{
all c: Commande | c.poids >= 1 && c.poids <= 5
}
/********************************* Assertions *********************************/
/**
* Verifie qu'il n'existe pas deux drones sur les memes coordonnees, a l'exception
* des entrepots.
*/
assert assertCoordonneesDrones
{
no d0 : Drone, t : Time |
(no e : Entrepot | e.coordonnees = d0.coordonnees.t)
&& (some d1 : Drone | d0 != d1 && d0.coordonnees.t = d1.coordonnees.t)
}
check assertCoordonneesDrones for 15 but 1 Entrepot, 2 Drone, 5 Receptacle, 4 Commande, 6 int, 10 Time
/**
* Verifie la tolerance d'un cas particulier : 2 receptacles sont voisins d'un
* entrepot, sans etre voisins entre eux.
* /!\ : Fonctionne que si la cardinalite des receptacles en sortie de l'entrepot
* est > 1.
*/
assert assertReceptablesVoisinsEntrepotMaisPasEntreEux
{
some r0, r1 : Receptacle, e0 : Entrepot
| r0 != r1 &&
!r0.coordonnees.positionVoisin[r1.coordonnees] &&
e0.coordonnees.positionVoisin[r0.coordonnees] &&
e0.coordonnees.positionVoisin[r1.coordonnees]
}
check assertReceptablesVoisinsEntrepotMaisPasEntreEux for 8 but 6 int
//mise en évidence que ça ne marche pas pour le moment
assert receptacleVoisinSontVoisins
{
all r:Receptacle | r.receptaclesVoisins.coordonnees.positionVoisin[r.coordonnees]
}
check receptacleVoisinSontVoisins for 7 but 6 int
/**
* Vérification : Une commande ne peut avoir l'état "non affectée" et être reliée à un drone.
*/
assert assertCommandeEtatErrone
{
no c : Commande, t : Time, d : Drone |
c.affectee.t = {False} && #d.commande.t = 1 && d.commande.t = c
}
check assertCommandeEtatErrone for 15 but 2 Drone, 5 Receptacle, 6 int, 1 Entrepot, 2 Commande
/**
* Vérification : Deux drones ne peuvent partager une même commande à un instant T.
*/
assert assertCommandesPartagees
{
no d0, d1 : Drone, t : Time |
d0 != d1 && #d0.commande.t = 1 && d0.commande.t = d1.commande.t
}
check assertCommandesPartagees for 15 but 2 Drone, 5 Receptacle, 6 int, 1 Entrepot, 2 Commande
/********************************* Lancements *********************************/
/**
* Predicat vide permettant la simulation
*/
pred go
{
// Placement de l'entrepôt au centre de la carte
one e : Entrepot | e.coordonnees.x = 0 && e.coordonnees.y = 0
// Une commande rapprochee
//one c: Commande, r: Receptacle | c.coordonneesLivraison.x = 0 && c.coordonneesLivraison.y = 2 && c.coordonneesLivraison = r.coordonnees
// Limite sur la taille de la carte
all c : Coordonnees | c.x <= 8 && c.x >= -8 && c.y <= 8 && c.y >= -8
}
run go for 10 but 2 Drone, 5 Receptacle, 6 int, 1 Entrepot
|
msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/complex1.adb | TUDSSL/TICS | 7 | 19529 | <reponame>TUDSSL/TICS<filename>msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/complex1.adb<gh_stars>1-10
-- { dg-do compile }
with Ada.Numerics.Complex_types; use Ada.Numerics.Complex_types;
with Complex1_Pkg; use Complex1_Pkg;
procedure Complex1 is
Z : Complex;
begin
Coord (Z.Re, Z.Im);
end;
|
Thesis/LangChanges.agda | inc-lc/ilc-agda | 10 | 3469 | module Thesis.LangChanges where
open import Thesis.Changes
open import Thesis.IntChanges
open import Thesis.Types
open import Thesis.Contexts
open import Thesis.Environments
open import Relation.Binary.PropositionalEquality
Chτ : (τ : Type) → Set
Chτ τ = ⟦ Δt τ ⟧Type
ΔΓ : Context → Context
ΔΓ ∅ = ∅
ΔΓ (τ • Γ) = Δt τ • τ • ΔΓ Γ
ChΓ : ∀ (Γ : Context) → Set
ChΓ Γ = ⟦ ΔΓ Γ ⟧Context
[_]τ_from_to_ : ∀ (τ : Type) → (dv : Chτ τ) → (v1 v2 : ⟦ τ ⟧Type) → Set
isCompChangeStructureτ : ∀ τ → IsCompChangeStructure ⟦ τ ⟧Type ⟦ Δt τ ⟧Type [ τ ]τ_from_to_
changeStructureτ : ∀ τ → ChangeStructure ⟦ τ ⟧Type
changeStructureτ τ = record { isCompChangeStructure = isCompChangeStructureτ τ }
instance
ichangeStructureτ : ∀ {τ} → ChangeStructure ⟦ τ ⟧Type
ichangeStructureτ {τ} = changeStructureτ τ
[ σ ⇒ τ ]τ df from f1 to f2 =
∀ (da : Chτ σ) (a1 a2 : ⟦ σ ⟧Type) →
[ σ ]τ da from a1 to a2 → [ τ ]τ df a1 da from f1 a1 to f2 a2
[ unit ]τ tt from tt to tt = ⊤
[ int ]τ dv from v1 to v2 = v1 + dv ≡ v2
[ pair σ τ ]τ (da , db) from (a1 , b1) to (a2 , b2) = [ σ ]τ da from a1 to a2 × [ τ ]τ db from b1 to b2
[ sum σ τ ]τ dv from v1 to v2 = sch_from_to_ dv v1 v2
isCompChangeStructureτ (σ ⇒ τ) = ChangeStructure.isCompChangeStructure (funCS {{changeStructureτ σ}} {{changeStructureτ τ}})
isCompChangeStructureτ unit = ChangeStructure.isCompChangeStructure unitCS
isCompChangeStructureτ int = ChangeStructure.isCompChangeStructure intCS
isCompChangeStructureτ (pair σ τ) = ChangeStructure.isCompChangeStructure (pairCS {{changeStructureτ σ}} {{changeStructureτ τ}})
isCompChangeStructureτ (sum σ τ) = ChangeStructure.isCompChangeStructure (sumCS {{changeStructureτ σ}} {{changeStructureτ τ}})
open import Data.Unit
-- We can define an alternative semantics for contexts, that defines environments as nested products:
⟦_⟧Context-prod : Context → Set
⟦ ∅ ⟧Context-prod = ⊤
⟦ τ • Γ ⟧Context-prod = ⟦ τ ⟧Type × ⟦ Γ ⟧Context-prod
-- And define a change structure for such environments, reusing the change
-- structure constructor for pairs. However, this change structure does not
-- duplicate base values in the environment. We probably *could* define a
-- different change structure for pairs that gives the right result.
changeStructureΓ-old : ∀ Γ → ChangeStructure ⟦ Γ ⟧Context-prod
changeStructureΓ-old ∅ = unitCS
changeStructureΓ-old (τ • Γ) = pairCS {{changeStructureτ τ}} {{changeStructureΓ-old Γ}}
data [_]Γ_from_to_ : ∀ Γ → ChΓ Γ → (ρ1 ρ2 : ⟦ Γ ⟧Context) → Set where
v∅ : [ ∅ ]Γ ∅ from ∅ to ∅
_v•_ : ∀ {τ Γ dv v1 v2 dρ ρ1 ρ2} →
(dvv : [ τ ]τ dv from v1 to v2) →
(dρρ : [ Γ ]Γ dρ from ρ1 to ρ2) →
[ τ • Γ ]Γ (dv • v1 • dρ) from (v1 • ρ1) to (v2 • ρ2)
module _ where
_e⊕_ : ∀ {Γ} → ⟦ Γ ⟧Context → ChΓ Γ → ⟦ Γ ⟧Context
_e⊕_ ∅ ∅ = ∅
_e⊕_ (v • ρ) (dv • _ • dρ) = v ⊕ dv • ρ e⊕ dρ
_e⊝_ : ∀ {Γ} → ⟦ Γ ⟧Context → ⟦ Γ ⟧Context → ChΓ Γ
_e⊝_ ∅ ∅ = ∅
_e⊝_ (v₂ • ρ₂) (v₁ • ρ₁) = v₂ ⊝ v₁ • v₁ • ρ₂ e⊝ ρ₁
isEnvCompCS : ∀ Γ → IsCompChangeStructure ⟦ Γ ⟧Context (ChΓ Γ) [ Γ ]Γ_from_to_
efromto→⊕ : ∀ {Γ} (dρ : ChΓ Γ) (ρ1 ρ2 : ⟦ Γ ⟧Context) →
[ Γ ]Γ dρ from ρ1 to ρ2 → (ρ1 e⊕ dρ) ≡ ρ2
efromto→⊕ .∅ .∅ .∅ v∅ = refl
efromto→⊕ .(_ • _ • _) .(_ • _) .(_ • _) (dvv v• dρρ) =
cong₂ _•_ (fromto→⊕ _ _ _ dvv) (efromto→⊕ _ _ _ dρρ)
e⊝-fromto : ∀ {Γ} → (ρ1 ρ2 : ⟦ Γ ⟧Context) → [ Γ ]Γ ρ2 e⊝ ρ1 from ρ1 to ρ2
e⊝-fromto ∅ ∅ = v∅
e⊝-fromto (v1 • ρ1) (v2 • ρ2) = ⊝-fromto v1 v2 v• e⊝-fromto ρ1 ρ2
_e⊚_ : ∀ {Γ} → ChΓ Γ → ChΓ Γ → ChΓ Γ
_e⊚_ {∅} ∅ ∅ = ∅
_e⊚_ {τ • Γ} (dv1 • v1 • dρ1) (dv2 • _ • dρ2) = dv1 ⊚[ ⟦ τ ⟧Type ] dv2 • v1 • dρ1 e⊚ dρ2
e⊚-fromto : ∀ Γ → (ρ1 ρ2 ρ3 : ⟦ Γ ⟧Context) (dρ1 dρ2 : ChΓ Γ) →
[ Γ ]Γ dρ1 from ρ1 to ρ2 →
[ Γ ]Γ dρ2 from ρ2 to ρ3 → [ Γ ]Γ (dρ1 e⊚ dρ2) from ρ1 to ρ3
e⊚-fromto ∅ ∅ ∅ ∅ ∅ ∅ v∅ v∅ = v∅
e⊚-fromto (τ • Γ) (v1 • ρ1) (v2 • ρ2) (v3 • ρ3)
(dv1 • (.v1 • dρ1)) (dv2 • (.v2 • dρ2))
(dvv1 v• dρρ1) (dvv2 v• dρρ2) =
⊚-fromto v1 v2 v3 dv1 dv2 dvv1 dvv2
v•
e⊚-fromto Γ ρ1 ρ2 ρ3 dρ1 dρ2 dρρ1 dρρ2
isEnvCompCS Γ = record
{ isChangeStructure = record
{ _⊕_ = _e⊕_
; fromto→⊕ = efromto→⊕
; _⊝_ = _e⊝_
; ⊝-fromto = e⊝-fromto
}
; _⊚_ = _e⊚_
; ⊚-fromto = e⊚-fromto Γ
}
changeStructureΓ : ∀ Γ → ChangeStructure ⟦ Γ ⟧Context
changeStructureΓ Γ = record { isCompChangeStructure = isEnvCompCS Γ }
instance
ichangeStructureΓ : ∀ {Γ} → ChangeStructure ⟦ Γ ⟧Context
ichangeStructureΓ {Γ} = changeStructureΓ Γ
changeStructureΓτ : ∀ Γ τ → ChangeStructure (⟦ Γ ⟧Context → ⟦ τ ⟧Type)
changeStructureΓτ Γ τ = funCS
instance
ichangeStructureΓτ : ∀ {Γ τ} → ChangeStructure (⟦ Γ ⟧Context → ⟦ τ ⟧Type)
ichangeStructureΓτ {Γ} {τ} = changeStructureΓτ Γ τ
|
test/asset/agda-stdlib-1.0/Codata/Covec.agda | omega12345/agda-mode | 5 | 17153 | <reponame>omega12345/agda-mode
------------------------------------------------------------------------
-- The Agda standard library
--
-- The Covec type and some operations
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe --sized-types #-}
module Codata.Covec where
open import Size
open import Codata.Thunk using (Thunk; force)
open import Codata.Conat as Conat
open import Codata.Conat.Bisimilarity
open import Codata.Conat.Properties
open import Codata.Cofin as Cofin using (Cofin; zero; suc)
open import Codata.Colist as Colist using (Colist ; [] ; _∷_)
open import Codata.Stream as Stream using (Stream ; _∷_)
open import Function
data Covec {ℓ} (A : Set ℓ) (i : Size) : Conat ∞ → Set ℓ where
[] : Covec A i zero
_∷_ : ∀ {n} → A → Thunk (λ i → Covec A i (n .force)) i → Covec A i (suc n)
module _ {ℓ} {A : Set ℓ} where
head : ∀ {n i} → Covec A i (suc n) → A
head (x ∷ _) = x
tail : ∀ {n} → Covec A ∞ (suc n) → Covec A ∞ (n .force)
tail (_ ∷ xs) = xs .force
lookup : ∀ {n} → Cofin n → Covec A ∞ n → A
lookup zero = head
lookup (suc k) = lookup k ∘′ tail
replicate : ∀ {i} → (n : Conat ∞) → A → Covec A i n
replicate zero a = []
replicate (suc n) a = a ∷ λ where .force → replicate (n .force) a
cotake : ∀ {i} → (n : Conat ∞) → Stream A i → Covec A i n
cotake zero xs = []
cotake (suc n) (x ∷ xs) = x ∷ λ where .force → cotake (n .force) (xs .force)
infixr 5 _++_
_++_ : ∀ {i m n} → Covec A i m → Covec A i n → Covec A i (m + n)
[] ++ ys = ys
(x ∷ xs) ++ ys = x ∷ λ where .force → xs .force ++ ys
fromColist : ∀ {i} → (xs : Colist A ∞) → Covec A i (Colist.length xs)
fromColist [] = []
fromColist (x ∷ xs) = x ∷ λ where .force → fromColist (xs .force)
toColist : ∀ {i n} → Covec A i n → Colist A i
toColist [] = []
toColist (x ∷ xs) = x ∷ λ where .force → toColist (xs .force)
fromStream : ∀ {i} → Stream A i → Covec A i infinity
fromStream = cotake infinity
cast : ∀ {i} {m n} → i ⊢ m ≈ n → Covec A i m → Covec A i n
cast zero [] = []
cast (suc eq) (a ∷ as) = a ∷ λ where .force → cast (eq .force) (as .force)
module _ {a b} {A : Set a} {B : Set b} where
map : ∀ {i n} (f : A → B) → Covec A i n → Covec B i n
map f [] = []
map f (a ∷ as) = f a ∷ λ where .force → map f (as .force)
ap : ∀ {i n} → Covec (A → B) i n → Covec A i n → Covec B i n
ap [] [] = []
ap (f ∷ fs) (a ∷ as) = (f a) ∷ λ where .force → ap (fs .force) (as .force)
scanl : ∀ {i n} → (B → A → B) → B → Covec A i n → Covec B i (1 ℕ+ n)
scanl c n [] = n ∷ λ where .force → []
scanl c n (a ∷ as) = n ∷ λ where
.force → cast (suc λ where .force → 0ℕ+-identity)
(scanl c (c n a) (as .force))
module _ {a b c} {A : Set a} {B : Set b} {C : Set c} where
zipWith : ∀ {i n} → (A → B → C) → Covec A i n → Covec B i n → Covec C i n
zipWith f [] [] = []
zipWith f (a ∷ as) (b ∷ bs) =
f a b ∷ λ where .force → zipWith f (as .force) (bs .force)
|
demo/vl53l1x_demo-main.adb | simonjwright/VL53L1X | 0 | 10107 | <gh_stars>0
with Semihosting;
with Ada.Real_Time;
with HAL.I2C;
with VL53L1X;
with VL53L1X_Demo.Hardware; use VL53L1X_Demo.Hardware;
procedure VL53L1X_Demo.Main is
-- Override the default task stack sizes used by Cortex GNAT RTS,
-- which aren't enough for this code.
-- For the environment task.
Environment_Task_Storage_Size : constant Natural := 3072
with
Export,
Convention => Ada,
External_Name => "_environment_task_storage_size";
procedure Setup_Sensor
(Sensor : in out VL53L1X.VL53L1X_Ranging_Sensor;
Address : HAL.I2C.I2C_Address := 16#52#);
-- (a) only one sensor can have a given I2C address, which
-- initializes to 16#52#. Start off with all but one shut down,
-- configure it to the required address, then do the rest one by
-- one.
--
-- (b) the address is only reset by cycling power to the device.
procedure Setup_Sensor
(Sensor : in out VL53L1X.VL53L1X_Ranging_Sensor;
Address : HAL.I2C.I2C_Address := 16#52#)
is
Status : VL53L1X.Boot_Status;
use type VL53L1X.Boot_Status;
begin
VL53L1X.Boot_Device (Sensor, Status => Status);
pragma Assert (Status = VL53L1X.Ok,
"couldn't boot device: " & Status'Image);
VL53L1X.Set_Device_Address (Sensor, Addr => Address);
VL53L1X.Sensor_Init (Sensor);
Semihosting.Log_Line
("timing budget:"
& VL53L1X.Get_Measurement_Budget (Sensor)'Image
& ", interval:"
& VL53L1X.Get_Inter_Measurement_Time (Sensor)'Image);
Semihosting.Log_Line ("distance mode: "
& VL53L1X.Get_Distance_Mode (Sensor)'Image);
VL53L1X.Set_Distance_Mode (Sensor, Mode => VL53L1X.Short);
Semihosting.Log_Line ("distance mode: "
& VL53L1X.Get_Distance_Mode (Sensor)'Image);
VL53L1X.Set_Distance_Mode (Sensor, Mode => VL53L1X.Long);
Semihosting.Log_Line ("distance mode: "
& VL53L1X.Get_Distance_Mode (Sensor)'Image);
Semihosting.Log_Line
("timing budget:"
& VL53L1X.Get_Measurement_Budget (Sensor)'Image
& ", interval:"
& VL53L1X.Get_Inter_Measurement_Time (Sensor)'Image);
VL53L1X.Set_Measurement_Budget (Sensor, Budget => 500);
VL53L1X.Set_Inter_Measurement_Time (Sensor, Interval => 1_500);
end Setup_Sensor;
begin
Semihosting.Log_Line ("vl53l1x_demo");
Initialize_I2C_GPIO (Sensor_Port);
Configure_I2C (Sensor_Port);
Configure_Pimoroni;
Configure_Polulu;
Semihosting.Log_Line ("Setting up the Pimoroni breakout");
Disable_Polulu;
Setup_Sensor (Pimoroni, Address => 16#50#);
Semihosting.Log_Line ("Setting up the Polulu breakout");
Enable_Polulu;
Setup_Sensor (Polulu, Address => 16#54#);
Exercise : declare
use type Ada.Real_Time.Time;
-- Note, Semihosting output, being done via the debugger,
-- suspends the program while the output is going on; this
-- effectively stops the clock, so the program runs about 2
-- times slower overall; the exercise takes about 20 seconds.
Stop_Time : constant Ada.Real_Time.Time
:= Ada.Real_Time.Clock + Ada.Real_Time.Seconds (10);
begin
VL53L1X.Start_Ranging (Pimoroni);
VL53L1X.Start_Ranging (Polulu);
loop
exit when Ada.Real_Time.Clock >= Stop_Time;
declare
Breakout_Available : Data_Available;
Measurement : VL53L1X.Measurement;
use all type VL53L1X.Ranging_Status;
begin
Wait_For_Data_Available (Breakout_Available);
if Breakout_Available (On_Pimoroni) then
if not VL53L1X.Is_Measurement_Ready (Pimoroni) then
-- Is this right?
VL53L1X.Clear_Interrupt (Pimoroni);
Semihosting.Log_Line ("pimoroni: not ready");
else
Measurement := VL53L1X.Get_Measurement (Pimoroni);
VL53L1X.Clear_Interrupt (Pimoroni);
Semihosting.Log_Line
("pimoroni: distance:"
& (if Measurement.Status = Ok then
Measurement.Distance'Image
else
" ---")
& ", status: " & Measurement.Status'Image);
end if;
end if;
if Breakout_Available (On_Polulu) then
if not VL53L1X.Is_Measurement_Ready (Polulu) then
-- Is this right?
VL53L1X.Clear_Interrupt (Polulu);
Semihosting.Log_Line ("polulu: not ready");
else
Measurement := VL53L1X.Get_Measurement (Polulu);
VL53L1X.Clear_Interrupt (Polulu);
Semihosting.Log_Line
("polulu: distance:"
& (if Measurement.Status = Ok then
Measurement.Distance'Image
else
" ---")
& ", status: " & Measurement.Status'Image);
end if;
end if;
end;
end loop;
end Exercise;
Semihosting.Log_Line ("stopping the exercise & resetting the breakouts");
VL53L1X.Stop_Ranging (Pimoroni);
VL53L1X.Stop_Ranging (Polulu);
VL53L1X.Set_Device_Address (Pimoroni, 16#52#);
VL53L1X.Set_Device_Address (Polulu, 16#52#);
-- Now we can restart the program without having to power cycle
-- the breakouts.
delay until Ada.Real_Time.Time_Last;
end VL53L1X_Demo.Main;
|
programs/oeis/340/A340507.asm | jmorken/loda | 1 | 94497 | <reponame>jmorken/loda<filename>programs/oeis/340/A340507.asm
; A340507: a(n) = floor(sqrt(2*n)) - A003056(n).
; 0,0,1,0,0,1,0,0,1,1,0,0,0,1,1,0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1
mul $0,2
cal $0,307136 ; a(n) = ceiling(2*sqrt(A000037(n))), n >= 1.
gcd $0,2
mov $1,$0
sub $1,1
|
test/interaction/Issue2937/NoUnicode.agda | shlevy/agda | 1,989 | 9652 | <filename>test/interaction/Issue2937/NoUnicode.agda
{-# OPTIONS --no-unicode #-}
module Issue2937.NoUnicode where
foo : _ -> _ -> Set
foo bar x = \x -> foo (bar x {!!}) x
|
programs/oeis/022/A022846.asm | karttu/loda | 0 | 176246 | <reponame>karttu/loda
; A022846: Nearest integer to n*sqrt(2).
; 0,1,3,4,6,7,8,10,11,13,14,16,17,18,20,21,23,24,25,27,28,30,31,33,34,35,37,38,40,41,42,44,45,47,48,49,51,52,54,55,57,58,59,61,62,64,65,66,68,69,71,72,74,75,76,78,79,81,82,83,85,86,88,89,91,92,93,95,96,98,99,100,102,103,105,106,107,109,110,112,113,115,116,117,119,120,122,123,124,126,127,129,130,132,133,134,136,137,139,140,141,143,144,146,147,148,150,151,153,154,156,157,158,160,161,163,164,165,167,168,170,171,173,174,175,177,178,180,181,182,184,185,187,188,190,191,192,194,195,197,198,199,201,202,204,205,206,208,209,211,212,214,215,216,218,219,221,222,223,225,226,228,229,231,232,233,235,236,238,239,240,242,243,245,246,247,249,250,252,253,255,256,257,259,260,262,263,264,266,267,269,270,272,273,274,276,277,279,280,281,283,284,286,287,288,290,291,293,294,296,297,298,300,301,303,304,305,307,308,310,311,313,314,315,317,318,320,321,322,324,325,327,328,330,331,332,334,335,337,338,339,341,342,344,345,346,348,349,351,352
pow $0,2
lpb $0,1
add $1,1
trn $0,$1
lpe
|
oeis/019/A019552.asm | neoneye/loda-programs | 11 | 86840 | ; A019552: a(n) is the concatenation of n and 4n.
; 14,28,312,416,520,624,728,832,936,1040,1144,1248,1352,1456,1560,1664,1768,1872,1976,2080,2184,2288,2392,2496,25100,26104,27108,28112,29116,30120,31124,32128,33132,34136,35140,36144,37148,38152,39156,40160,41164,42168,43172,44176,45180,46184,47188,48192,49196,50200,51204,52208,53212,54216,55220,56224,57228,58232,59236,60240,61244,62248,63252,64256,65260,66264,67268,68272,69276,70280,71284,72288,73292,74296,75300,76304,77308,78312,79316,80320,81324,82328,83332,84336,85340,86344,87348,88352,89356
mov $2,$0
add $2,1
mov $4,$0
lpb $2
mov $0,$4
sub $2,1
sub $0,$2
mov $6,$0
mov $7,0
mov $8,2
lpb $8
mov $0,$6
sub $8,1
add $0,$8
trn $0,1
seq $0,248365 ; 4n concatenated with itself.
mov $3,$0
mov $5,$8
mul $5,$0
add $7,$5
lpe
min $6,1
mul $6,$3
mov $3,$7
sub $3,$6
div $3,360
mul $3,90
add $3,14
add $1,$3
lpe
mov $0,$1
|
src/host/x86/avx/asm/uXimmlegacy.asm | Navegos/uasmlib | 3 | 169788 | <filename>src/host/x86/avx/asm/uXimmlegacy.asm
include uXx86asm.inc
ifndef __MIC__
.ymm
option arch:avx
option evex:0
;include uXavx256intrin.inc
include uXymmconstdata.inc
.const
uXalignsize_t
_mmvcmppsjmptable isize_t offset _mmvcmpps_0, offset _mmvcmpps_1, offset _mmvcmpps_2, offset _mmvcmpps_3, offset _mmvcmpps_4, \
offset _mmvcmpps_5, offset _mmvcmpps_6, offset _mmvcmpps_7, offset _mmvcmpps_8, offset _mmvcmpps_9, \
offset _mmvcmpps_10, offset _mmvcmpps_11, offset _mmvcmpps_12, offset _mmvcmpps_13, offset _mmvcmpps_14, \
offset _mmvcmpps_15, offset _mmvcmpps_16, offset _mmvcmpps_17, offset _mmvcmpps_18, offset _mmvcmpps_19, \
offset _mmvcmpps_20, offset _mmvcmpps_21, offset _mmvcmpps_22, offset _mmvcmpps_23, offset _mmvcmpps_24, \
offset _mmvcmpps_25, offset _mmvcmpps_26, offset _mmvcmpps_27, offset _mmvcmpps_28, offset _mmvcmpps_29, \
offset _mmvcmpps_30, offset _mmvcmpps_31
uXalignsize_t
_mmvcmpssjmptable isize_t offset _mmvcmpss_0, offset _mmvcmpss_1, offset _mmvcmpss_2, offset _mmvcmpss_3, offset _mmvcmpss_4, \
offset _mmvcmpss_5, offset _mmvcmpss_6, offset _mmvcmpss_7, offset _mmvcmpss_8, offset _mmvcmpss_9, \
offset _mmvcmpss_10, offset _mmvcmpss_11, offset _mmvcmpss_12, offset _mmvcmpss_13, offset _mmvcmpss_14, \
offset _mmvcmpss_15, offset _mmvcmpss_16, offset _mmvcmpss_17, offset _mmvcmpss_18, offset _mmvcmpss_19, \
offset _mmvcmpss_20, offset _mmvcmpss_21, offset _mmvcmpss_22, offset _mmvcmpss_23, offset _mmvcmpss_24, \
offset _mmvcmpss_25, offset _mmvcmpss_26, offset _mmvcmpss_27, offset _mmvcmpss_28, offset _mmvcmpss_29, \
offset _mmvcmpss_30, offset _mmvcmpss_31
uXalignsize_t
_mmvcomissjmptable isize_t offset _mmvcomiss_0, offset _mmvcomiss_1, offset _mmvcomiss_2, offset _mmvcomiss_3, offset _mmvcomiss_4, \
offset _mmvcomiss_5, offset _mmvcomiss_6, offset _mmvcomiss_7, offset _mmvcomiss_8, offset _mmvcomiss_9, \
offset _mmvcomiss_10, offset _mmvcomiss_11, offset _mmvcomiss_12, offset _mmvcomiss_13, offset _mmvcomiss_14, \
offset _mmvcomiss_15, offset _mmvcomiss_16, offset _mmvcomiss_17, offset _mmvcomiss_18, offset _mmvcomiss_19, \
offset _mmvcomiss_20, offset _mmvcomiss_21, offset _mmvcomiss_22, offset _mmvcomiss_23, offset _mmvcomiss_24, \
offset _mmvcomiss_25, offset _mmvcomiss_26, offset _mmvcomiss_27, offset _mmvcomiss_28, offset _mmvcomiss_29, \
offset _mmvcomiss_30, offset _mmvcomiss_31
uXalignsize_t
_mmvcmppdjmptable isize_t offset _mmvcmppd_0, offset _mmvcmppd_1, offset _mmvcmppd_2, offset _mmvcmppd_3, offset _mmvcmppd_4, \
offset _mmvcmppd_5, offset _mmvcmppd_6, offset _mmvcmppd_7, offset _mmvcmppd_8, offset _mmvcmppd_9, \
offset _mmvcmppd_10, offset _mmvcmppd_11, offset _mmvcmppd_12, offset _mmvcmppd_13, offset _mmvcmppd_14, \
offset _mmvcmppd_15, offset _mmvcmppd_16, offset _mmvcmppd_17, offset _mmvcmppd_18, offset _mmvcmppd_19, \
offset _mmvcmppd_20, offset _mmvcmppd_21, offset _mmvcmppd_22, offset _mmvcmppd_23, offset _mmvcmppd_24, \
offset _mmvcmppd_25, offset _mmvcmppd_26, offset _mmvcmppd_27, offset _mmvcmppd_28, offset _mmvcmppd_29, \
offset _mmvcmppd_30, offset _mmvcmppd_31
uXalignsize_t
_mmvcmpsdjmptable isize_t offset _mmvcmpsd_0, offset _mmvcmpsd_1, offset _mmvcmpsd_2, offset _mmvcmpsd_3, offset _mmvcmpsd_4, \
offset _mmvcmpsd_5, offset _mmvcmpsd_6, offset _mmvcmpsd_7, offset _mmvcmpsd_8, offset _mmvcmpsd_9, \
offset _mmvcmpsd_10, offset _mmvcmpsd_11, offset _mmvcmpsd_12, offset _mmvcmpsd_13, offset _mmvcmpsd_14, \
offset _mmvcmpsd_15, offset _mmvcmpsd_16, offset _mmvcmpsd_17, offset _mmvcmpsd_18, offset _mmvcmpsd_19, \
offset _mmvcmpsd_20, offset _mmvcmpsd_21, offset _mmvcmpsd_22, offset _mmvcmpsd_23, offset _mmvcmpsd_24, \
offset _mmvcmpsd_25, offset _mmvcmpsd_26, offset _mmvcmpsd_27, offset _mmvcmpsd_28, offset _mmvcmpsd_29, \
offset _mmvcmpsd_30, offset _mmvcmpsd_31
uXalignsize_t
_mmvcomisdjmptable isize_t offset _mmvcomisd_0, offset _mmvcomisd_1, offset _mmvcomisd_2, offset _mmvcomisd_3, offset _mmvcomisd_4, \
offset _mmvcomisd_5, offset _mmvcomisd_6, offset _mmvcomisd_7, offset _mmvcomisd_8, offset _mmvcomisd_9, \
offset _mmvcomisd_10, offset _mmvcomisd_11, offset _mmvcomisd_12, offset _mmvcomisd_13, offset _mmvcomisd_14, \
offset _mmvcomisd_15, offset _mmvcomisd_16, offset _mmvcomisd_17, offset _mmvcomisd_18, offset _mmvcomisd_19, \
offset _mmvcomisd_20, offset _mmvcomisd_21, offset _mmvcomisd_22, offset _mmvcomisd_23, offset _mmvcomisd_24, \
offset _mmvcomisd_25, offset _mmvcomisd_26, offset _mmvcomisd_27, offset _mmvcomisd_28, offset _mmvcomisd_29, \
offset _mmvcomisd_30, offset _mmvcomisd_31
uXalignxmmFPopt
uXveccallopt
.code
;******************
; Externs
;******************
;extern uXveccall _uX_intrin_CPUFeatures:proc
;******************
; FP, comparison
;******************
uXprocstart _uX_mm_cmp_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
;.if(rparam3 > 3)
; ret
;.else
ifndef __X64__
movzx eax, byte ptr [rparam3]
;mov rbx, dword ptr [rbx+rparam3*4]
jmp dword ptr [_mmvcmppsjmptable+eax*4]
else
;movzx rax, byte ptr [rparam3]
lea rbx, qword ptr [_mmvcmppsjmptable]
mov rbx, qword ptr [rbx+rparam3*8]
jmp rbx
endif
_mmvcmpps_0 label size_t
vcmpps xmm0, xmm0, xmm1, 0
ret
_mmvcmpps_1 label size_t
vcmpps xmm0, xmm0, xmm1, 1
ret
_mmvcmpps_2 label size_t
vcmpps xmm0, xmm0, xmm1, 2
ret
_mmvcmpps_3 label size_t
vcmpps xmm0, xmm0, xmm1, 3
ret
_mmvcmpps_4 label size_t
vcmpps xmm0, xmm0, xmm1, 4
ret
_mmvcmpps_5 label size_t
vcmpps xmm0, xmm0, xmm1, 5
ret
_mmvcmpps_6 label size_t
vcmpps xmm0, xmm0, xmm1, 6
ret
_mmvcmpps_7 label size_t
vcmpps xmm0, xmm0, xmm1, 7
ret
_mmvcmpps_8 label size_t
vcmpps xmm0, xmm0, xmm1, 8
ret
_mmvcmpps_9 label size_t
vcmpps xmm0, xmm0, xmm1, 9
ret
_mmvcmpps_10 label size_t
vcmpps xmm0, xmm0, xmm1, 10
ret
_mmvcmpps_11 label size_t
vcmpps xmm0, xmm0, xmm1, 11
ret
_mmvcmpps_12 label size_t
vcmpps xmm0, xmm0, xmm1, 12
ret
_mmvcmpps_13 label size_t
vcmpps xmm0, xmm0, xmm1, 13
ret
_mmvcmpps_14 label size_t
vcmpps xmm0, xmm0, xmm1, 14
ret
_mmvcmpps_15 label size_t
vcmpps xmm0, xmm0, xmm1, 15
ret
_mmvcmpps_16 label size_t
vcmpps xmm0, xmm0, xmm1, 16
ret
_mmvcmpps_17 label size_t
vcmpps xmm0, xmm0, xmm1, 17
ret
_mmvcmpps_18 label size_t
vcmpps xmm0, xmm0, xmm1, 18
ret
_mmvcmpps_19 label size_t
vcmpps xmm0, xmm0, xmm1, 19
ret
_mmvcmpps_20 label size_t
vcmpps xmm0, xmm0, xmm1, 20
ret
_mmvcmpps_21 label size_t
vcmpps xmm0, xmm0, xmm1, 21
ret
_mmvcmpps_22 label size_t
vcmpps xmm0, xmm0, xmm1, 22
ret
_mmvcmpps_23 label size_t
vcmpps xmm0, xmm0, xmm1, 23
ret
_mmvcmpps_24 label size_t
vcmpps xmm0, xmm0, xmm1, 24
ret
_mmvcmpps_25 label size_t
vcmpps xmm0, xmm0, xmm1, 25
ret
_mmvcmpps_26 label size_t
vcmpps xmm0, xmm0, xmm1, 26
ret
_mmvcmpps_27 label size_t
vcmpps xmm0, xmm0, xmm1, 27
ret
_mmvcmpps_28 label size_t
vcmpps xmm0, xmm0, xmm1, 28
ret
_mmvcmpps_29 label size_t
vcmpps xmm0, xmm0, xmm1, 29
ret
_mmvcmpps_30 label size_t
vcmpps xmm0, xmm0, xmm1, 30
ret
_mmvcmpps_31 label size_t
vcmpps xmm0, xmm0, xmm1, 31
ret
;.endif
uXprocend
uXprocstart _uX_mm_cmpeqoq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 0
ret
uXprocend
uXprocstart _uX_mm_cmpltos_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 1
ret
uXprocend
uXprocstart _uX_mm_cmpleos_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 2
ret
uXprocend
uXprocstart _uX_mm_cmpunordq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 3
ret
uXprocend
uXprocstart _uX_mm_cmpnequq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 4
ret
uXprocend
uXprocstart _uX_mm_cmpnltus_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 5
ret
uXprocend
uXprocstart _uX_mm_cmpnleus_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 6
ret
uXprocend
uXprocstart _uX_mm_cmpordq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 7
ret
uXprocend
uXprocstart _uX_mm_cmpequq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 8
ret
uXprocend
uXprocstart _uX_mm_cmpngeus_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 9
ret
uXprocend
uXprocstart _uX_mm_cmpngtus_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 10
ret
uXprocend
uXprocstart _uX_mm_cmpfalseoq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 11
ret
uXprocend
uXprocstart _uX_mm_cmpneqoq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 12
ret
uXprocend
uXprocstart _uX_mm_cmpgeos_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 13
ret
uXprocend
uXprocstart _uX_mm_cmpgtos_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 14
ret
uXprocend
uXprocstart _uX_mm_cmptrueuq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 15
ret
uXprocend
uXprocstart _uX_mm_cmpeqos_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 16
ret
uXprocend
uXprocstart _uX_mm_cmpltoq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 17
ret
uXprocend
uXprocstart _uX_mm_cmpleoq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 18
ret
uXprocend
uXprocstart _uX_mm_cmpunords_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 19
ret
uXprocend
uXprocstart _uX_mm_cmpnequs_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 20
ret
uXprocend
uXprocstart _uX_mm_cmpnltuq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 21
ret
uXprocend
uXprocstart _uX_mm_cmpnleuq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 22
ret
uXprocend
uXprocstart _uX_mm_cmpords_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 23
ret
uXprocend
uXprocstart _uX_mm_cmpequs_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 24
ret
uXprocend
uXprocstart _uX_mm_cmpngeuq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 25
ret
uXprocend
uXprocstart _uX_mm_cmpngtuq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 26
ret
uXprocend
uXprocstart _uX_mm_cmpfalseos_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 27
ret
uXprocend
uXprocstart _uX_mm_cmpneqos_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 28
ret
uXprocend
uXprocstart _uX_mm_cmpgeoq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 29
ret
uXprocend
uXprocstart _uX_mm_cmpgtoq_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 30
ret
uXprocend
uXprocstart _uX_mm_cmptrueus_ps, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpps xmm0, xmm0, xmm1, 31
ret
uXprocend
uXprocstart _uX_mm_cmp_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
;.if(rparam3 > 3)
; ret
;.else
ifndef __X64__
movzx eax, byte ptr [rparam3]
;mov rbx, dword ptr [rbx+rparam3*4]
jmp dword ptr [_mmvcmpssjmptable+eax*4]
else
;movzx rax, byte ptr [rparam3]
lea rbx, qword ptr [_mmvcmpssjmptable]
mov rbx, qword ptr [rbx+rparam3*8]
jmp rbx
endif
_mmvcmpss_0 label size_t
vcmpss xmm0, xmm0, xmm1, 0
ret
_mmvcmpss_1 label size_t
vcmpss xmm0, xmm0, xmm1, 1
ret
_mmvcmpss_2 label size_t
vcmpss xmm0, xmm0, xmm1, 2
ret
_mmvcmpss_3 label size_t
vcmpss xmm0, xmm0, xmm1, 3
ret
_mmvcmpss_4 label size_t
vcmpss xmm0, xmm0, xmm1, 4
ret
_mmvcmpss_5 label size_t
vcmpss xmm0, xmm0, xmm1, 5
ret
_mmvcmpss_6 label size_t
vcmpss xmm0, xmm0, xmm1, 6
ret
_mmvcmpss_7 label size_t
vcmpss xmm0, xmm0, xmm1, 7
ret
_mmvcmpss_8 label size_t
vcmpss xmm0, xmm0, xmm1, 8
ret
_mmvcmpss_9 label size_t
vcmpss xmm0, xmm0, xmm1, 9
ret
_mmvcmpss_10 label size_t
vcmpss xmm0, xmm0, xmm1, 10
ret
_mmvcmpss_11 label size_t
vcmpss xmm0, xmm0, xmm1, 11
ret
_mmvcmpss_12 label size_t
vcmpss xmm0, xmm0, xmm1, 12
ret
_mmvcmpss_13 label size_t
vcmpss xmm0, xmm0, xmm1, 13
ret
_mmvcmpss_14 label size_t
vcmpss xmm0, xmm0, xmm1, 14
ret
_mmvcmpss_15 label size_t
vcmpss xmm0, xmm0, xmm1, 15
ret
_mmvcmpss_16 label size_t
vcmpss xmm0, xmm0, xmm1, 16
ret
_mmvcmpss_17 label size_t
vcmpss xmm0, xmm0, xmm1, 17
ret
_mmvcmpss_18 label size_t
vcmpss xmm0, xmm0, xmm1, 18
ret
_mmvcmpss_19 label size_t
vcmpss xmm0, xmm0, xmm1, 19
ret
_mmvcmpss_20 label size_t
vcmpss xmm0, xmm0, xmm1, 20
ret
_mmvcmpss_21 label size_t
vcmpss xmm0, xmm0, xmm1, 21
ret
_mmvcmpss_22 label size_t
vcmpss xmm0, xmm0, xmm1, 22
ret
_mmvcmpss_23 label size_t
vcmpss xmm0, xmm0, xmm1, 23
ret
_mmvcmpss_24 label size_t
vcmpss xmm0, xmm0, xmm1, 24
ret
_mmvcmpss_25 label size_t
vcmpss xmm0, xmm0, xmm1, 25
ret
_mmvcmpss_26 label size_t
vcmpss xmm0, xmm0, xmm1, 26
ret
_mmvcmpss_27 label size_t
vcmpss xmm0, xmm0, xmm1, 27
ret
_mmvcmpss_28 label size_t
vcmpss xmm0, xmm0, xmm1, 28
ret
_mmvcmpss_29 label size_t
vcmpss xmm0, xmm0, xmm1, 29
ret
_mmvcmpss_30 label size_t
vcmpss xmm0, xmm0, xmm1, 30
ret
_mmvcmpss_31 label size_t
vcmpss xmm0, xmm0, xmm1, 31
ret
;.endif
uXprocend
uXprocstart _uX_mm_cmpeqoq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 0
ret
uXprocend
uXprocstart _uX_mm_cmpltos_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 1
ret
uXprocend
uXprocstart _uX_mm_cmpleos_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 2
ret
uXprocend
uXprocstart _uX_mm_cmpunordq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 3
ret
uXprocend
uXprocstart _uX_mm_cmpnequq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 4
ret
uXprocend
uXprocstart _uX_mm_cmpnltus_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 5
ret
uXprocend
uXprocstart _uX_mm_cmpnleus_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 6
ret
uXprocend
uXprocstart _uX_mm_cmpordq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 7
ret
uXprocend
uXprocstart _uX_mm_cmpequq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 8
ret
uXprocend
uXprocstart _uX_mm_cmpngeus_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 9
ret
uXprocend
uXprocstart _uX_mm_cmpngtus_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 10
ret
uXprocend
uXprocstart _uX_mm_cmpfalseoq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 11
ret
uXprocend
uXprocstart _uX_mm_cmpneqoq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 12
ret
uXprocend
uXprocstart _uX_mm_cmpgeos_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 13
ret
uXprocend
uXprocstart _uX_mm_cmpgtos_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 14
ret
uXprocend
uXprocstart _uX_mm_cmptrueuq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 15
ret
uXprocend
uXprocstart _uX_mm_cmpeqos_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 16
ret
uXprocend
uXprocstart _uX_mm_cmpltoq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 17
ret
uXprocend
uXprocstart _uX_mm_cmpleoq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 18
ret
uXprocend
uXprocstart _uX_mm_cmpunords_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 19
ret
uXprocend
uXprocstart _uX_mm_cmpnequs_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 20
ret
uXprocend
uXprocstart _uX_mm_cmpnltuq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 21
ret
uXprocend
uXprocstart _uX_mm_cmpnleuq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 22
ret
uXprocend
uXprocstart _uX_mm_cmpords_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 23
ret
uXprocend
uXprocstart _uX_mm_cmpequs_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 24
ret
uXprocend
uXprocstart _uX_mm_cmpngeuq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 25
ret
uXprocend
uXprocstart _uX_mm_cmpngtuq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 26
ret
uXprocend
uXprocstart _uX_mm_cmpfalseos_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 27
ret
uXprocend
uXprocstart _uX_mm_cmpneqos_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 28
ret
uXprocend
uXprocstart _uX_mm_cmpgeoq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 29
ret
uXprocend
uXprocstart _uX_mm_cmpgtoq_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 30
ret
uXprocend
uXprocstart _uX_mm_cmptrueus_ss, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpss xmm0, xmm0, xmm1, 31
ret
uXprocend
;******************
; FP, comparison return int
;******************
uXprocstart _uX_mm_comi_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
;.if(rparam3 > 3)
; ret
;.else
ifndef __X64__
movzx eax, byte ptr [rparam3]
;mov rbx, dword ptr [rbx+rparam3*4]
jmp dword ptr [_mmvcomissjmptable+eax*4]
else
;movzx rax, byte ptr [rparam3]
lea rbx, qword ptr [_mmvcomissjmptable]
mov rbx, qword ptr [rbx+rparam3*8]
jmp rbx
endif
_mmvcomiss_0 label size_t
vcmpss xmm0, xmm0, xmm1, 0
movd eax, xmm0
and eax, true
ret
_mmvcomiss_1 label size_t
vcmpss xmm0, xmm0, xmm1, 1
movd eax, xmm0
and eax, true
ret
_mmvcomiss_2 label size_t
vcmpss xmm0, xmm0, xmm1, 2
movd eax, xmm0
and eax, true
ret
_mmvcomiss_3 label size_t
vcmpss xmm0, xmm0, xmm1, 3
movd eax, xmm0
and eax, true
ret
_mmvcomiss_4 label size_t
vcmpss xmm0, xmm0, xmm1, 4
movd eax, xmm0
and eax, true
ret
_mmvcomiss_5 label size_t
vcmpss xmm0, xmm0, xmm1, 5
movd eax, xmm0
and eax, true
ret
_mmvcomiss_6 label size_t
vcmpss xmm0, xmm0, xmm1, 6
movd eax, xmm0
and eax, true
ret
_mmvcomiss_7 label size_t
vcmpss xmm0, xmm0, xmm1, 7
movd eax, xmm0
and eax, true
ret
_mmvcomiss_8 label size_t
vcmpss xmm0, xmm0, xmm1, 8
movd eax, xmm0
and eax, true
ret
_mmvcomiss_9 label size_t
vcmpss xmm0, xmm0, xmm1, 9
movd eax, xmm0
and eax, true
ret
_mmvcomiss_10 label size_t
vcmpss xmm0, xmm0, xmm1, 10
movd eax, xmm0
and eax, true
ret
_mmvcomiss_11 label size_t
vcmpss xmm0, xmm0, xmm1, 11
movd eax, xmm0
and eax, true
ret
_mmvcomiss_12 label size_t
vcmpss xmm0, xmm0, xmm1, 12
movd eax, xmm0
and eax, true
ret
_mmvcomiss_13 label size_t
vcmpss xmm0, xmm0, xmm1, 13
movd eax, xmm0
and eax, true
ret
_mmvcomiss_14 label size_t
vcmpss xmm0, xmm0, xmm1, 14
movd eax, xmm0
and eax, true
ret
_mmvcomiss_15 label size_t
vcmpss xmm0, xmm0, xmm1, 15
movd eax, xmm0
and eax, true
ret
_mmvcomiss_16 label size_t
vcmpss xmm0, xmm0, xmm1, 16
movd eax, xmm0
and eax, true
ret
_mmvcomiss_17 label size_t
vcmpss xmm0, xmm0, xmm1, 17
movd eax, xmm0
and eax, true
ret
_mmvcomiss_18 label size_t
vcmpss xmm0, xmm0, xmm1, 18
movd eax, xmm0
and eax, true
ret
_mmvcomiss_19 label size_t
vcmpss xmm0, xmm0, xmm1, 19
movd eax, xmm0
and eax, true
ret
_mmvcomiss_20 label size_t
vcmpss xmm0, xmm0, xmm1, 20
movd eax, xmm0
and eax, true
ret
_mmvcomiss_21 label size_t
vcmpss xmm0, xmm0, xmm1, 21
movd eax, xmm0
and eax, true
ret
_mmvcomiss_22 label size_t
vcmpss xmm0, xmm0, xmm1, 22
movd eax, xmm0
and eax, true
ret
_mmvcomiss_23 label size_t
vcmpss xmm0, xmm0, xmm1, 23
movd eax, xmm0
and eax, true
ret
_mmvcomiss_24 label size_t
vcmpss xmm0, xmm0, xmm1, 24
movd eax, xmm0
and eax, true
ret
_mmvcomiss_25 label size_t
vcmpss xmm0, xmm0, xmm1, 25
movd eax, xmm0
and eax, true
ret
_mmvcomiss_26 label size_t
vcmpss xmm0, xmm0, xmm1, 26
movd eax, xmm0
and eax, true
ret
_mmvcomiss_27 label size_t
vcmpss xmm0, xmm0, xmm1, 27
movd eax, xmm0
and eax, true
ret
_mmvcomiss_28 label size_t
vcmpss xmm0, xmm0, xmm1, 28
movd eax, xmm0
and eax, true
ret
_mmvcomiss_29 label size_t
vcmpss xmm0, xmm0, xmm1, 29
movd eax, xmm0
and eax, true
ret
_mmvcomiss_30 label size_t
vcmpss xmm0, xmm0, xmm1, 30
movd eax, xmm0
and eax, true
ret
_mmvcomiss_31 label size_t
vcmpss xmm0, xmm0, xmm1, 31
movd eax, xmm0
and eax, true
ret
;.endif
uXprocend
uXprocstart _uX_mm_comieqoq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 0
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiltos_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 1
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comileos_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 2
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiunordq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 3
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_cominequq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 4
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_cominltus_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 5
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_cominleus_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 6
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiordq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 7
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiequq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 8
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comingeus_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 9
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comingtus_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 10
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comifalseoq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 11
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comineqoq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 12
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comigeos_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 13
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comigtos_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 14
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comitrueuq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 15
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comieqos_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 16
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiltoq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 17
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comileoq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 18
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiunords_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 19
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_cominequs_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 20
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_cominltuq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 21
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_cominleuq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 22
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiords_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 23
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiequs_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 24
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comingeuq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 25
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comingtuq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 26
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comifalseos_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 27
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comineqos_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 28
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comigeoq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 29
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comigtoq_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 30
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comitrueus_ss, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpss xmm0, xmm0, xmm1, 31
movd eax, xmm0
and eax, true
ret
uXprocend
;******************
; DP, comparison
;******************
uXprocstart _uX_mm_cmp_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
;.if(rparam3 > 3)
; ret
;.else
ifndef __X64__
movzx eax, byte ptr [rparam3]
;mov rbx, dword ptr [rbx+rparam3*4]
jmp dword ptr [_mmvcmppdjmptable+eax*4]
else
;movzx rax, byte ptr [rparam3]
lea rbx, qword ptr [_mmvcmppdjmptable]
mov rbx, qword ptr [rbx+rparam3*8]
jmp rbx
endif
_mmvcmppd_0 label size_t
vcmppd xmm0, xmm0, xmm1, 0
ret
_mmvcmppd_1 label size_t
vcmppd xmm0, xmm0, xmm1, 1
ret
_mmvcmppd_2 label size_t
vcmppd xmm0, xmm0, xmm1, 2
ret
_mmvcmppd_3 label size_t
vcmppd xmm0, xmm0, xmm1, 3
ret
_mmvcmppd_4 label size_t
vcmppd xmm0, xmm0, xmm1, 4
ret
_mmvcmppd_5 label size_t
vcmppd xmm0, xmm0, xmm1, 5
ret
_mmvcmppd_6 label size_t
vcmppd xmm0, xmm0, xmm1, 6
ret
_mmvcmppd_7 label size_t
vcmppd xmm0, xmm0, xmm1, 7
ret
_mmvcmppd_8 label size_t
vcmppd xmm0, xmm0, xmm1, 8
ret
_mmvcmppd_9 label size_t
vcmppd xmm0, xmm0, xmm1, 9
ret
_mmvcmppd_10 label size_t
vcmppd xmm0, xmm0, xmm1, 10
ret
_mmvcmppd_11 label size_t
vcmppd xmm0, xmm0, xmm1, 11
ret
_mmvcmppd_12 label size_t
vcmppd xmm0, xmm0, xmm1, 12
ret
_mmvcmppd_13 label size_t
vcmppd xmm0, xmm0, xmm1, 13
ret
_mmvcmppd_14 label size_t
vcmppd xmm0, xmm0, xmm1, 14
ret
_mmvcmppd_15 label size_t
vcmppd xmm0, xmm0, xmm1, 15
ret
_mmvcmppd_16 label size_t
vcmppd xmm0, xmm0, xmm1, 16
ret
_mmvcmppd_17 label size_t
vcmppd xmm0, xmm0, xmm1, 17
ret
_mmvcmppd_18 label size_t
vcmppd xmm0, xmm0, xmm1, 18
ret
_mmvcmppd_19 label size_t
vcmppd xmm0, xmm0, xmm1, 19
ret
_mmvcmppd_20 label size_t
vcmppd xmm0, xmm0, xmm1, 20
ret
_mmvcmppd_21 label size_t
vcmppd xmm0, xmm0, xmm1, 21
ret
_mmvcmppd_22 label size_t
vcmppd xmm0, xmm0, xmm1, 22
ret
_mmvcmppd_23 label size_t
vcmppd xmm0, xmm0, xmm1, 23
ret
_mmvcmppd_24 label size_t
vcmppd xmm0, xmm0, xmm1, 24
ret
_mmvcmppd_25 label size_t
vcmppd xmm0, xmm0, xmm1, 25
ret
_mmvcmppd_26 label size_t
vcmppd xmm0, xmm0, xmm1, 26
ret
_mmvcmppd_27 label size_t
vcmppd xmm0, xmm0, xmm1, 27
ret
_mmvcmppd_28 label size_t
vcmppd xmm0, xmm0, xmm1, 28
ret
_mmvcmppd_29 label size_t
vcmppd xmm0, xmm0, xmm1, 29
ret
_mmvcmppd_30 label size_t
vcmppd xmm0, xmm0, xmm1, 30
ret
_mmvcmppd_31 label size_t
vcmppd xmm0, xmm0, xmm1, 31
ret
;.endif
uXprocend
uXprocstart _uX_mm_cmpeqoq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 0
ret
uXprocend
uXprocstart _uX_mm_cmpltos_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 1
ret
uXprocend
uXprocstart _uX_mm_cmpleos_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 2
ret
uXprocend
uXprocstart _uX_mm_cmpunordq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 3
ret
uXprocend
uXprocstart _uX_mm_cmpnequq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 4
ret
uXprocend
uXprocstart _uX_mm_cmpnltus_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 5
ret
uXprocend
uXprocstart _uX_mm_cmpnleus_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 6
ret
uXprocend
uXprocstart _uX_mm_cmpordq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 7
ret
uXprocend
uXprocstart _uX_mm_cmpequq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 8
ret
uXprocend
uXprocstart _uX_mm_cmpngeus_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 9
ret
uXprocend
uXprocstart _uX_mm_cmpngtus_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 10
ret
uXprocend
uXprocstart _uX_mm_cmpfalseoq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 11
ret
uXprocend
uXprocstart _uX_mm_cmpneqoq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 12
ret
uXprocend
uXprocstart _uX_mm_cmpgeos_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 13
ret
uXprocend
uXprocstart _uX_mm_cmpgtos_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 14
ret
uXprocend
uXprocstart _uX_mm_cmptrueuq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 15
ret
uXprocend
uXprocstart _uX_mm_cmpeqos_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 16
ret
uXprocend
uXprocstart _uX_mm_cmpltoq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 17
ret
uXprocend
uXprocstart _uX_mm_cmpleoq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 18
ret
uXprocend
uXprocstart _uX_mm_cmpunords_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 19
ret
uXprocend
uXprocstart _uX_mm_cmpnequs_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 20
ret
uXprocend
uXprocstart _uX_mm_cmpnltuq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 21
ret
uXprocend
uXprocstart _uX_mm_cmpnleuq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 22
ret
uXprocend
uXprocstart _uX_mm_cmpords_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 23
ret
uXprocend
uXprocstart _uX_mm_cmpequs_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 24
ret
uXprocend
uXprocstart _uX_mm_cmpngeuq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 25
ret
uXprocend
uXprocstart _uX_mm_cmpngtuq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 26
ret
uXprocend
uXprocstart _uX_mm_cmpfalseos_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 27
ret
uXprocend
uXprocstart _uX_mm_cmpneqos_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 28
ret
uXprocend
uXprocstart _uX_mm_cmpgeoq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 29
ret
uXprocend
uXprocstart _uX_mm_cmpgtoq_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 30
ret
uXprocend
uXprocstart _uX_mm_cmptrueus_pd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmppd xmm0, xmm0, xmm1, 31
ret
uXprocend
uXprocstart _uX_mm_cmp_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
;.if(rparam3 > 3)
; ret
;.else
ifndef __X64__
movzx eax, byte ptr [rparam3]
;mov rbx, dword ptr [rbx+rparam3*4]
jmp dword ptr [_mmvcmpsdjmptable+eax*4]
else
;movzx rax, byte ptr [rparam3]
lea rbx, qword ptr [_mmvcmpsdjmptable]
mov rbx, qword ptr [rbx+rparam3*8]
jmp rbx
endif
_mmvcmpsd_0 label size_t
vcmpsd xmm0, xmm0, xmm1, 0
ret
_mmvcmpsd_1 label size_t
vcmpsd xmm0, xmm0, xmm1, 1
ret
_mmvcmpsd_2 label size_t
vcmpsd xmm0, xmm0, xmm1, 2
ret
_mmvcmpsd_3 label size_t
vcmpsd xmm0, xmm0, xmm1, 3
ret
_mmvcmpsd_4 label size_t
vcmpsd xmm0, xmm0, xmm1, 4
ret
_mmvcmpsd_5 label size_t
vcmpsd xmm0, xmm0, xmm1, 5
ret
_mmvcmpsd_6 label size_t
vcmpsd xmm0, xmm0, xmm1, 6
ret
_mmvcmpsd_7 label size_t
vcmpsd xmm0, xmm0, xmm1, 7
ret
_mmvcmpsd_8 label size_t
vcmpsd xmm0, xmm0, xmm1, 8
ret
_mmvcmpsd_9 label size_t
vcmpsd xmm0, xmm0, xmm1, 9
ret
_mmvcmpsd_10 label size_t
vcmpsd xmm0, xmm0, xmm1, 10
ret
_mmvcmpsd_11 label size_t
vcmpsd xmm0, xmm0, xmm1, 11
ret
_mmvcmpsd_12 label size_t
vcmpsd xmm0, xmm0, xmm1, 12
ret
_mmvcmpsd_13 label size_t
vcmpsd xmm0, xmm0, xmm1, 13
ret
_mmvcmpsd_14 label size_t
vcmpsd xmm0, xmm0, xmm1, 14
ret
_mmvcmpsd_15 label size_t
vcmpsd xmm0, xmm0, xmm1, 15
ret
_mmvcmpsd_16 label size_t
vcmpsd xmm0, xmm0, xmm1, 16
ret
_mmvcmpsd_17 label size_t
vcmpsd xmm0, xmm0, xmm1, 17
ret
_mmvcmpsd_18 label size_t
vcmpsd xmm0, xmm0, xmm1, 18
ret
_mmvcmpsd_19 label size_t
vcmpsd xmm0, xmm0, xmm1, 19
ret
_mmvcmpsd_20 label size_t
vcmpsd xmm0, xmm0, xmm1, 20
ret
_mmvcmpsd_21 label size_t
vcmpsd xmm0, xmm0, xmm1, 21
ret
_mmvcmpsd_22 label size_t
vcmpsd xmm0, xmm0, xmm1, 22
ret
_mmvcmpsd_23 label size_t
vcmpsd xmm0, xmm0, xmm1, 23
ret
_mmvcmpsd_24 label size_t
vcmpsd xmm0, xmm0, xmm1, 24
ret
_mmvcmpsd_25 label size_t
vcmpsd xmm0, xmm0, xmm1, 25
ret
_mmvcmpsd_26 label size_t
vcmpsd xmm0, xmm0, xmm1, 26
ret
_mmvcmpsd_27 label size_t
vcmpsd xmm0, xmm0, xmm1, 27
ret
_mmvcmpsd_28 label size_t
vcmpsd xmm0, xmm0, xmm1, 28
ret
_mmvcmpsd_29 label size_t
vcmpsd xmm0, xmm0, xmm1, 29
ret
_mmvcmpsd_30 label size_t
vcmpsd xmm0, xmm0, xmm1, 30
ret
_mmvcmpsd_31 label size_t
vcmpsd xmm0, xmm0, xmm1, 31
ret
;.endif
uXprocend
uXprocstart _uX_mm_cmpeqoq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 0
ret
uXprocend
uXprocstart _uX_mm_cmpltos_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 1
ret
uXprocend
uXprocstart _uX_mm_cmpleos_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 2
ret
uXprocend
uXprocstart _uX_mm_cmpunordq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 3
ret
uXprocend
uXprocstart _uX_mm_cmpnequq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 4
ret
uXprocend
uXprocstart _uX_mm_cmpnltus_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 5
ret
uXprocend
uXprocstart _uX_mm_cmpnleus_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 6
ret
uXprocend
uXprocstart _uX_mm_cmpordq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 7
ret
uXprocend
uXprocstart _uX_mm_cmpequq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 8
ret
uXprocend
uXprocstart _uX_mm_cmpngeus_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 9
ret
uXprocend
uXprocstart _uX_mm_cmpngtus_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 10
ret
uXprocend
uXprocstart _uX_mm_cmpfalseoq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 11
ret
uXprocend
uXprocstart _uX_mm_cmpneqoq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 12
ret
uXprocend
uXprocstart _uX_mm_cmpgeos_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 13
ret
uXprocend
uXprocstart _uX_mm_cmpgtos_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 14
ret
uXprocend
uXprocstart _uX_mm_cmptrueuq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 15
ret
uXprocend
uXprocstart _uX_mm_cmpeqos_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 16
ret
uXprocend
uXprocstart _uX_mm_cmpltoq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 17
ret
uXprocend
uXprocstart _uX_mm_cmpleoq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 18
ret
uXprocend
uXprocstart _uX_mm_cmpunords_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 19
ret
uXprocend
uXprocstart _uX_mm_cmpnequs_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 20
ret
uXprocend
uXprocstart _uX_mm_cmpnltuq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 21
ret
uXprocend
uXprocstart _uX_mm_cmpnleuq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 22
ret
uXprocend
uXprocstart _uX_mm_cmpords_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 23
ret
uXprocend
uXprocstart _uX_mm_cmpequs_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 24
ret
uXprocend
uXprocstart _uX_mm_cmpngeuq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 25
ret
uXprocend
uXprocstart _uX_mm_cmpngtuq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 26
ret
uXprocend
uXprocstart _uX_mm_cmpfalseos_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 27
ret
uXprocend
uXprocstart _uX_mm_cmpneqos_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 28
ret
uXprocend
uXprocstart _uX_mm_cmpgeoq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 29
ret
uXprocend
uXprocstart _uX_mm_cmpgtoq_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 30
ret
uXprocend
uXprocstart _uX_mm_cmptrueus_sd, xmmword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
vcmpsd xmm0, xmm0, xmm1, 31
ret
uXprocend
;******************
; DP, comparison return int
;******************
uXprocstart _uX_mm_comi_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B), _Imm8:dword
;.if(rparam3 > 3)
; ret
;.else
ifndef __X64__
movzx eax, byte ptr [rparam3]
;mov rbx, dword ptr [rbx+rparam3*4]
jmp dword ptr [_mmvcomisdjmptable+eax*4]
else
;movzx rax, byte ptr [rparam3]
lea rbx, qword ptr [_mmvcomisdjmptable]
mov rbx, qword ptr [rbx+rparam3*8]
jmp rbx
endif
_mmvcomisd_0 label size_t
vcmpsd xmm0, xmm0, xmm1, 0
movd eax, xmm0
and eax, true
ret
_mmvcomisd_1 label size_t
vcmpsd xmm0, xmm0, xmm1, 1
movd eax, xmm0
and eax, true
ret
_mmvcomisd_2 label size_t
vcmpsd xmm0, xmm0, xmm1, 2
movd eax, xmm0
and eax, true
ret
_mmvcomisd_3 label size_t
vcmpsd xmm0, xmm0, xmm1, 3
movd eax, xmm0
and eax, true
ret
_mmvcomisd_4 label size_t
vcmpsd xmm0, xmm0, xmm1, 4
movd eax, xmm0
and eax, true
ret
_mmvcomisd_5 label size_t
vcmpsd xmm0, xmm0, xmm1, 5
movd eax, xmm0
and eax, true
ret
_mmvcomisd_6 label size_t
vcmpsd xmm0, xmm0, xmm1, 6
movd eax, xmm0
and eax, true
ret
_mmvcomisd_7 label size_t
vcmpsd xmm0, xmm0, xmm1, 7
movd eax, xmm0
and eax, true
ret
_mmvcomisd_8 label size_t
vcmpsd xmm0, xmm0, xmm1, 8
movd eax, xmm0
and eax, true
ret
_mmvcomisd_9 label size_t
vcmpsd xmm0, xmm0, xmm1, 9
movd eax, xmm0
and eax, true
ret
_mmvcomisd_10 label size_t
vcmpsd xmm0, xmm0, xmm1, 10
movd eax, xmm0
and eax, true
ret
_mmvcomisd_11 label size_t
vcmpsd xmm0, xmm0, xmm1, 11
movd eax, xmm0
and eax, true
ret
_mmvcomisd_12 label size_t
vcmpsd xmm0, xmm0, xmm1, 12
movd eax, xmm0
and eax, true
ret
_mmvcomisd_13 label size_t
vcmpsd xmm0, xmm0, xmm1, 13
movd eax, xmm0
and eax, true
ret
_mmvcomisd_14 label size_t
vcmpsd xmm0, xmm0, xmm1, 14
movd eax, xmm0
and eax, true
ret
_mmvcomisd_15 label size_t
vcmpsd xmm0, xmm0, xmm1, 15
movd eax, xmm0
and eax, true
ret
_mmvcomisd_16 label size_t
vcmpsd xmm0, xmm0, xmm1, 16
movd eax, xmm0
and eax, true
ret
_mmvcomisd_17 label size_t
vcmpsd xmm0, xmm0, xmm1, 17
movd eax, xmm0
and eax, true
ret
_mmvcomisd_18 label size_t
vcmpsd xmm0, xmm0, xmm1, 18
movd eax, xmm0
and eax, true
ret
_mmvcomisd_19 label size_t
vcmpsd xmm0, xmm0, xmm1, 19
movd eax, xmm0
and eax, true
ret
_mmvcomisd_20 label size_t
vcmpsd xmm0, xmm0, xmm1, 20
movd eax, xmm0
and eax, true
ret
_mmvcomisd_21 label size_t
vcmpsd xmm0, xmm0, xmm1, 21
movd eax, xmm0
and eax, true
ret
_mmvcomisd_22 label size_t
vcmpsd xmm0, xmm0, xmm1, 22
movd eax, xmm0
and eax, true
ret
_mmvcomisd_23 label size_t
vcmpsd xmm0, xmm0, xmm1, 23
movd eax, xmm0
and eax, true
ret
_mmvcomisd_24 label size_t
vcmpsd xmm0, xmm0, xmm1, 24
movd eax, xmm0
and eax, true
ret
_mmvcomisd_25 label size_t
vcmpsd xmm0, xmm0, xmm1, 25
movd eax, xmm0
and eax, true
ret
_mmvcomisd_26 label size_t
vcmpsd xmm0, xmm0, xmm1, 26
movd eax, xmm0
and eax, true
ret
_mmvcomisd_27 label size_t
vcmpsd xmm0, xmm0, xmm1, 27
movd eax, xmm0
and eax, true
ret
_mmvcomisd_28 label size_t
vcmpsd xmm0, xmm0, xmm1, 28
movd eax, xmm0
and eax, true
ret
_mmvcomisd_29 label size_t
vcmpsd xmm0, xmm0, xmm1, 29
movd eax, xmm0
and eax, true
ret
_mmvcomisd_30 label size_t
vcmpsd xmm0, xmm0, xmm1, 30
movd eax, xmm0
and eax, true
ret
_mmvcomisd_31 label size_t
vcmpsd xmm0, xmm0, xmm1, 31
movd eax, xmm0
and eax, true
ret
;.endif
uXprocend
uXprocstart _uX_mm_comieqoq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 0
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiltos_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 1
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comileos_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 2
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiunordq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 3
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_cominequq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 4
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_cominltus_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 5
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_cominleus_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 6
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiordq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 7
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiequq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 8
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comingeus_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 9
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comingtus_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 10
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comifalseoq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 11
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comineqoq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 12
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comigeos_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 13
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comigtos_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 14
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comitrueuq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 15
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comieqos_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 16
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiltoq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 17
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comileoq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 18
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiunords_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 19
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_cominequs_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 20
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_cominltuq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 21
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_cominleuq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 22
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiords_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 23
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comiequs_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 24
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comingeuq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 25
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comingtuq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 26
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comifalseos_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 27
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comineqos_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 28
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comigeoq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 29
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comigtoq_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 30
movd eax, xmm0
and eax, true
ret
uXprocend
uXprocstart _uX_mm_comitrueus_sd, dword, < >, < >, xmmwordparam1(Inxmm_A), xmmwordparam2(Inxmm_B)
vcmpsd xmm0, xmm0, xmm1, 31
movd eax, xmm0
and eax, true
ret
uXprocend
endif ;__MIC__
end
|
ScrollModus/_code/GlobalCode/sprites.asm | kosmonautdnb/TheLandsOfZador | 0 | 89167 | SPRITECOUNT = 16
; the index is the port
spriteRestoreXS ds.b SPRITECOUNT*2,$00
spriteRestoreYS ds.b SPRITECOUNT*2,$00
spriteRestoreXE ds.b SPRITECOUNT*2,$00
spriteRestoreYE ds.b SPRITECOUNT*2,$00
; it's in demopart.asm
;spriteRestored ds.b SPRITECOUNT*2,$00
spritePortRestoreAdders
dc.b SPRITECOUNT * 0
dc.b SPRITECOUNT * 1
spritePortRestoreAdd
dc.b $00
;---------------------------------------------------------------------------------------
;-------- VSPRITE LOGIK ----------------------------------------------------------------
;---------------------------------------------------------------------------------------
spritePX dc.w $0000 ; x sprite position
spritePY dc.w $0000 ; y sprite position
spriteImage dc.b $00 ; sprite Image
spriteFlipped dc.b $00 ; flipped?
spriteWhite dc.b $00 ; is it constantly white
spritePort dc.b $00 ; the port where the restauration information is written to
SUBROUTINE
SPRITE_XSIZE4 dc.b $00
SPRITE_XSIZE dc.b $00
SPRITE_YSIZE dc.b $00
SPRITE_XADD dc.b $00
SPRITE_YADD dc.b $00
SPRITE_DATA dc.b $00
SPRITE_SPECIALTABLE dc.b $00
SPRITE_XSTART dc.w $0000
SPRITE_YSTART dc.w $0000
SPRITE_XEND dc.w $0000
SPRITE_YEND dc.w $0000
SPRITE_XSIZE_PLUS3 dc.b $00
SPRITE_YSIZE_PLUS7 dc.b $00
SPRITE_XEND_4 dc.b $00
SPRITE_YEND_8 dc.b $00
SPRITE_XSTART_4 dc.b $00
SPRITE_YSTART_8 dc.b $00
SCROLL_XPOS_4_40 dc.b $00
SCROLL_YPOS_8_25 dc.b $00
SPRITE_XBLOCKADD dc.b $00
SPRITE_YBLOCKADD dc.b $00
SPRITE_XSMOOTHVAL dc.b $00
SPRITE_YSMOOTHVAL dc.b $00
SCREEN_XSTART_4 dc.b $00
SCREEN_YSTART_8 dc.b $00
SPRITE_XEND_4_CLIPPED dc.b $00
SPRITE_XENDCLIP dc.b $00
ZP_SPRITE_YREG_X dc.b $00
ZP_SPRITE_XCOUNT dc.b $00
SPRITE_YBLOCKADD_8 dc.b $00
SPRITE_YSMOOTH_INV dc.b $00
SPRITE_XCLIP2 dc.b $00
SPRITE_XCLIP3 dc.b $00
SCREEN_XSTART_4_8 dc.w $00
SPRITE_XLOOP_START dc.b $00
finex dc.b $00
SPRITE_FLIPADD dc.b $00
isRightClean dc.b $00
isLeftClean dc.b $00
; save for one cycle alignment
SPRITE_BUILD_FROM_TWO_LOCATIONS SUBROUTINE
lda ZP_LEFT_BYTE + 0
sta .location1 + 1
lda ZP_LEFT_BYTE + 1
sta .location1 + 2
lda ZP_RIGHT_BYTE + 0
sta .location2 + 1
lda ZP_RIGHT_BYTE + 1
sta .location2 + 2
ldy ZP_Y_LENGTH
dey
.nextelement
.location1
ldx $4444,y
ror1a
lda $4400,x ; rortable1
.location2
ldx $4444,y ; location2
ror2a
ora $4400,x ; rortable2
sta SPRITEBUFFER_PLUS_8,y
dey
bpl .nextelement
jmp SPRITE_BUILD_FILL_NEXT8
SPRITE_BUILD_FROM_TWO_LOCATIONS_LEFT SUBROUTINE
lda #$00
sta isRightClean
lda ZP_LEFT_BYTE + 0
sta .location1 + 1
lda ZP_LEFT_BYTE + 1
sta .location1 + 2
ldy ZP_Y_LENGTH
dey
.nextelement
.location1
ldx $4444,y
ror1al
lda $4400,x ; rortable1
sta SPRITEBUFFER_PLUS_8,y
dey
bpl .nextelement
jmp SPRITE_BUILD_FILL_NEXT8
.dofastloop dc.b $00
;---------------------------------------------------------------------------------------
;-- main sprite blitting function --
;---------------------------------------------------------------------------------------
blitVSprite
stx .xrestore + 1
sty .yrestore + 1
lda spriteImage
asl
tay
lda (ZP_SPRITES),y
sta ZP_SPRITE_STRUCT_ADR + 0
iny
lda (ZP_SPRITES),y
sta ZP_SPRITE_STRUCT_ADR + 1
ldy #$00
lda (ZP_SPRITE_STRUCT_ADR),y ; x size 4 0-7
lsr
lsr
lsr
lsr
lsr
sta SPRITE_XSIZE4
asl
asl
sta SPRITE_XSIZE
lda (ZP_SPRITE_STRUCT_ADR),y ; y size
and #31
bne .notzweiundreisig
lda #32
.notzweiundreisig
sta SPRITE_YSIZE
iny
lda (ZP_SPRITE_STRUCT_ADR),y ; x and y add (y add 0 - 31, x add 0 - 7)
tax
and #$07
sta SPRITE_XADD
txa
lsr
lsr
lsr
clc
adc #$07 ; dunno
sta SPRITE_YADD
iny ; spriteflippadd
ldx spriteFlipped
beq .notflipperior
lda (ZP_SPRITE_STRUCT_ADR),y
sta SPRITE_XADD
.notflipperior
iny
tya
clc
adc ZP_SPRITE_STRUCT_ADR + 0
sta ZP_SPRITE_DATA + 0
lda ZP_SPRITE_STRUCT_ADR + 1
adc #$00
sta ZP_SPRITE_DATA + 1
lda #$00
ldx spriteFlipped
beq .notxflipped
ora #$02
.notxflipped
ldx spriteWhite
beq .notwhite
ora #$01
.notwhite
sta SPRITE_SPECIALTABLE
cmp #$00
beq .nothingspecial
clc
adc #[>SPECIALTABLES]-1
sta ZP_SPECIAL
.nothingspecial
; DUNNO
lda SPRITE_XADD
clc
adc #$02
sta SPRITE_XADD
; calculate start and end
lda spritePX + 0
clc
adc SPRITE_XADD + 0
sta SPRITE_XSTART + 0
lda spritePX + 1
adc #$00
sta SPRITE_XSTART + 1
lda scrollFineX
lsr
sta finex
lda SPRITE_XSTART + 0
sec
sbc finex
sta SPRITE_XSTART + 0
lda SPRITE_XSTART + 1
sbc #$00
sta SPRITE_XSTART + 1
lda spritePY + 0
clc
adc SPRITE_YADD + 0
sta SPRITE_YSTART + 0
lda spritePY + 1
adc #$00
sta SPRITE_YSTART + 1
lda SPRITE_YSTART + 0
sec
sbc scrollFineY
sta SPRITE_YSTART + 0
lda SPRITE_YSTART + 1
sbc #$00
sta SPRITE_YSTART + 1
lda SPRITE_XSIZE
clc
adc #$03
sta SPRITE_XSIZE_PLUS3
lda SPRITE_YSIZE
clc
adc #$07
sta SPRITE_YSIZE_PLUS7
lda SPRITE_XSTART + 0
clc
adc SPRITE_XSIZE_PLUS3
sta SPRITE_XEND + 0
lda SPRITE_XSTART + 1
adc #$00
sta SPRITE_XEND + 1
lda SPRITE_YSTART + 0
clc
adc SPRITE_YSIZE_PLUS7
sta SPRITE_YEND + 0
lda SPRITE_YSTART + 1
adc #$00
sta SPRITE_YEND + 1
; calculate start and end in blocks
lda SPRITE_XSTART + 0
lsr
lsr
sta SPRITE_XSTART_4
lda SPRITE_XSTART + 1
asl
asl
asl
asl
asl
asl
ora SPRITE_XSTART_4
sta SPRITE_XSTART_4
lda SPRITE_YSTART + 0
lsr
lsr
lsr
sta SPRITE_YSTART_8
lda SPRITE_YSTART + 1
asl
asl
asl
asl
asl
ora SPRITE_YSTART_8
sta SPRITE_YSTART_8
lda SPRITE_XEND + 0
lsr
lsr
sta SPRITE_XEND_4
lda SPRITE_XEND + 1
asl
asl
asl
asl
asl
asl
ora SPRITE_XEND_4
sta SPRITE_XEND_4
lda SPRITE_YEND + 0
lsr
lsr
lsr
sta SPRITE_YEND_8
lda SPRITE_YEND + 1
asl
asl
asl
asl
asl
ora SPRITE_YEND_8
sta SPRITE_YEND_8
; now do the clipping
;--------------------------------------
; earlyOutTest
;--------------------------------------
lda SPRITE_XEND_4
beq .xfully
bpl .xinsideleft
.xfully
jmp .out
.xinsideleft
lda SPRITE_YEND_8
beq .yfully
bpl .yinsideup
.yfully
jmp .out
.yinsideup
lda SPRITE_XSTART_4
cmp #40
bmi .xinsideright
jmp .out
.xinsideright
lda SPRITE_YSTART_8
cmp #DISPLAYAREAROWS
bmi .yinsidedown
jmp .out
.yinsidedown
lda #$00
sta SPRITE_XBLOCKADD
sta SPRITE_YBLOCKADD
;--------------------------------------
; partial clipping
;--------------------------------------
lda SPRITE_XSTART_4
cmp #$00
bpl .nothalveclippedleft
lda #$00
sec
sbc SPRITE_XSTART_4
sta SPRITE_XBLOCKADD
lda #$00
sta SPRITE_XSTART_4
.nothalveclippedleft
lda SPRITE_YSTART_8
cmp #$00
bpl .nothalveclippedup
lda #$00
sec
sbc SPRITE_YSTART_8
sta SPRITE_YBLOCKADD
lda #$00
sta SPRITE_YSTART_8
.nothalveclippedup
lda #$00
sta SPRITE_XEND_4_CLIPPED
sta SPRITE_XENDCLIP
; xend and yend will be clipped directly
lda SPRITE_XEND_4
cmp #40
bmi .nothalveclippedright
beq .nothalveclippedright
lda SPRITE_XEND_4
sec
sbc #40
sta SPRITE_XENDCLIP
lda #$01
sta SPRITE_XEND_4_CLIPPED
lda #40
.nothalveclippedright
sta SPRITE_XEND_4
lda SPRITE_YEND_8
cmp #DISPLAYAREAROWS
bmi .nothalveclippeddown
lda #DISPLAYAREAROWS
.nothalveclippeddown
sta SPRITE_YEND_8
;--------------------------------------
; clipping done
;--------------------------------------
; calculate ror values
lda SPRITE_XSTART
and #$03
sta SPRITE_XSMOOTHVAL
lda SPRITE_YSTART
and #$07
sta SPRITE_YSMOOTHVAL
;--------------------------------------
; calculate screen block coordinates
;--------------------------------------
lda SPRITE_XSTART_4
clc
adc scrollPosXDiv4
sta SCREEN_XSTART_4
asl
asl
asl
sta SCREEN_XSTART_4_8 + 0
lda SCREEN_XSTART_4
lsr
lsr
lsr
lsr
lsr
sta SCREEN_XSTART_4_8 + 1
lda SPRITE_YSTART_8
clc
adc scrollPosYDiv8
sta SCREEN_YSTART_8
;--------------------------------------
; calculate blitting address
;--------------------------------------
;;;;; ---- everything ok!
lda #$00
sta ZP_SPRITE_YREG_X ; xcounter
lda SPRITE_XEND_4
sec
sbc SPRITE_XSTART_4
sta ZP_SPRITE_XCOUNT ; xsize
lda spriteFlipped
beq .notflipped
lda ZP_SPRITE_XCOUNT
sec
sbc #$01
asl
asl
asl
clc
adc SCREEN_XSTART_4_8 + 0
sta SCREEN_XSTART_4_8 + 0
lda SCREEN_XSTART_4_8 + 1
adc #$00
sta SCREEN_XSTART_4_8 + 1
.notflipped
ldy SCREEN_YSTART_8
lda MUL320LO,y
clc
adc SCREEN_XSTART_4_8 + 0
sta ZP_SCREENBLITADDRESS + 0
lda MUL320HI,y
adc SCREEN_XSTART_4_8 + 1
and #$1f
; fastloop for screen position
ldx #$00
cmp #>[320*[25-6]]
bcs .nofastloop
ldy spriteFlipped
beq .doitfast
cmp #$00 ; for flipped sprites there is a sub so no 0 line
beq .nofastloop
.doitfast
ldx #$01
.nofastloop
stx .dofastloop
ora BITMAPSCREENHI
sta ZP_SCREENBLITADDRESS + 1
;--------------------------------------
; calculate rortable pos
;--------------------------------------
lda SPRITE_XSTART
ldx spriteFlipped
bne .noflip
eor #$ff
jmp .flip
.noflip
clc
adc #$03
.flip
and #$03
clc
adc #>RORTABLES1
sta ror1a + 2
sta ror1b + 2
sta ror1al + 2
sta ror1bl + 2
clc
adc #[>RORTABLES2]-[>RORTABLES1]
sta ror2a + 2
sta ror2b + 2
sta ror2ar + 2
sta ror2br + 2
lda SPRITE_YBLOCKADD
asl
asl
asl
sta SPRITE_YBLOCKADD_8
; y calculations
lda SPRITE_YSMOOTHVAL
eor #$07
clc
adc #$01
clc
adc SPRITE_YBLOCKADD_8
sta SPRITE_YSMOOTH_INV
lda SPRITE_YSIZE
sta ZP_Y_LENGTH ; y clipping is imperfect the whole sprite gets generated here
; generate adresses for the readout
lda ZP_SPRITE_DATA + 0
sta ZP_BYTE + 0
lda ZP_SPRITE_DATA + 1
sta ZP_BYTE + 1
lda #$00
sta SPRITE_XCLIP3
sta SPRITE_XCLIP2
sta isLeftClean
sta isRightClean
lda spriteFlipped
beq .notxflipped2
lda SPRITE_XBLOCKADD
beq .yo2
lda #$01
sta SPRITE_XCLIP2
.yo2
lda #$00
sta SPRITE_XBLOCKADD
lda SPRITE_XEND_4_CLIPPED
beq .c
ldx SPRITE_XENDCLIP
.xaddloop2
lda ZP_BYTE + 0
clc
adc SPRITE_YSIZE
sta ZP_BYTE + 0
lda ZP_BYTE + 1
adc #$00
sta ZP_BYTE + 1
dex
bne .xaddloop2
lda #$01
sta SPRITE_XCLIP3
.c
.notxflipped2
ldx SPRITE_XBLOCKADD
lda SPRITE_XSMOOTHVAL
bne .a
inx
.a
dex
beq .noxaddloop
bmi .noxaddloop
.xaddloop
lda ZP_BYTE + 0
clc
adc SPRITE_YSIZE
sta ZP_BYTE + 0
lda ZP_BYTE + 1
adc #$00
sta ZP_BYTE + 1
dex
bne .xaddloop
.noxaddloop
lda #$01
sta SPRITE_XLOOP_START
.nextxelement
lda ZP_BYTE + 0
sta ZP_LEFT_BYTE + 0
clc
adc SPRITE_YSIZE
sta ZP_RIGHT_BYTE + 0
lda ZP_BYTE + 1
sta ZP_LEFT_BYTE + 1
adc #$00
sta ZP_RIGHT_BYTE + 1
lda ZP_SPRITE_XCOUNT
cmp #$01
bne .notlastcolumn
lda SPRITE_XCLIP3
bne .doit
lda SPRITE_XEND_4_CLIPPED
ora SPRITE_XCLIP2
bne .notlastcolumn
.doit
lda #$01
sta isRightClean
.notlastcolumn
lda SPRITE_XLOOP_START
beq .notfirstcolumn
lda SPRITE_XSMOOTHVAL
beq .notfirstcolumn
lda SPRITE_XBLOCKADD
bne .notfirstcolumn
lda ZP_LEFT_BYTE + 0
sta ZP_RIGHT_BYTE + 0
lda ZP_LEFT_BYTE + 1
sta ZP_RIGHT_BYTE + 1
lda #$01
sta isLeftClean
lda SPRITE_XCLIP3
beq .nolo
lda ZP_RIGHT_BYTE + 0
sec
sbc SPRITE_YSIZE
sta ZP_LEFT_BYTE + 0
lda ZP_RIGHT_BYTE + 1
sbc #$00
sta ZP_LEFT_BYTE + 1
lda ZP_SPRITE_XCOUNT
cmp #$01
bne .ya
lda #$01
sta isRightClean
.ya
.nolo
jmp .firstcolumndone
.notfirstcolumn
lda ZP_BYTE + 0
clc
adc SPRITE_YSIZE
sta ZP_BYTE + 0
lda ZP_BYTE + 1
adc #$00
sta ZP_BYTE + 1
.firstcolumndone
lda #$00
sta SPRITE_XLOOP_START
lda ZP_SPRITE_YREG_X
sta ZP_SPRITE_YREG ; y counter
lda SPRITE_YEND_8
sec
sbc SPRITE_YSTART_8
sta ZP_SPRITE_YCOUNT ; ysize
lda #<SPRITEBUFFER
clc
adc SPRITE_YSMOOTH_INV
sta ZP_SPRITE_BUFFER + 0
lda #>SPRITEBUFFER
sta ZP_SPRITE_BUFFER + 1
; sprite buffer preparation
lda SPRITE_XSMOOTHVAL
bne .wemustror
lda SPRITE_SPECIALTABLE
bne .special1
jmp SPRITE_BUILD_FROM_ONE_LOCATION
.special1
jmp SPRITE_BUILD_FROM_ONE_LOCATION_SPECIAL
.wemustror
lda SPRITE_SPECIALTABLE
bne .special2
lda isLeftClean
beq .notleftclean1
jmp SPRITE_BUILD_FROM_TWO_LOCATIONS_RIGHT
.notleftclean1
lda isRightClean
beq .notrightclean1
jmp SPRITE_BUILD_FROM_TWO_LOCATIONS_LEFT
.notrightclean1
jmp SPRITE_BUILD_FROM_TWO_LOCATIONS
.special2
lda isLeftClean
beq .notleftclean2
jmp SPRITE_BUILD_FROM_TWO_LOCATIONS_RIGHT_SPECIAL
.notleftclean2
lda isRightClean
beq .notrightclean2
jmp SPRITE_BUILD_FROM_TWO_LOCATIONS_LEFT_SPECIAL
.notrightclean2
jmp SPRITE_BUILD_FROM_TWO_LOCATIONS_SPECIAL
SPRITEBUILDREADY ;-------------- jump back point --------------
; write early out test
lda ZP_SCREENBLITADDRESS + 0
sta ZP_SCREENBLITWRITE + 0
lda ZP_SCREENBLITADDRESS + 1
sta ZP_SCREENBLITWRITE + 1
lda .dofastloop
beq .normalloop
jmp fastloop
.normalloop
clc
echo "1", . / $100
.nextyelement
;-------------------------------- MainLoop for drawing the tiles
ldy #$00
REPEAT 7
lax (ZP_SPRITE_BUFFER),y
ora (ZP_SCREENBLITWRITE),y
and AUTOMASKING,x
sta (ZP_SCREENBLITWRITE),y
iny
REPEND
lax (ZP_SPRITE_BUFFER),y
ora (ZP_SCREENBLITWRITE),y
and AUTOMASKING,x
sta (ZP_SCREENBLITWRITE),y
dec ZP_SPRITE_YCOUNT
beq .doneyelement
lda ZP_SPRITE_BUFFER
adc #$08
sta ZP_SPRITE_BUFFER
lda ZP_SCREENBLITWRITE + 0
adc #<320
sta ZP_SCREENBLITWRITE + 0
lda ZP_SCREENBLITWRITE + 1
adc #>320
and #$1f
ora BITMAPSCREENHI
sta ZP_SCREENBLITWRITE + 1
bne .nextyelement
beq .nextyelement
echo "2", . / $100
.doneyelement
fastloopend
dec ZP_SPRITE_XCOUNT
beq .nonextxelement
lda spriteFlipped
beq .b
lda ZP_SCREENBLITADDRESS + 0
sec
sbc #<[$08*2]
sta ZP_SCREENBLITADDRESS + 0
lda ZP_SCREENBLITADDRESS + 1
sbc #>[$08*2]
sta ZP_SCREENBLITADDRESS + 1
.b
lda ZP_SCREENBLITADDRESS + 0
clc
adc #<$08
sta ZP_SCREENBLITADDRESS + 0
lda ZP_SCREENBLITADDRESS + 1
adc #>$08
and #$1f
ora BITMAPSCREENHI
sta ZP_SCREENBLITADDRESS + 1
jmp .nextxelement
.nonextxelement
lda spritePort
cmp #$ff
beq .norestore
clc
adc spritePortRestoreAdd
tax
lda SCREEN_XSTART_4
sta spriteRestoreXS,x
lda SCREEN_YSTART_8
sta spriteRestoreYS,x
lda SPRITE_XEND_4
clc
adc scrollPosXDiv4
sta spriteRestoreXE,x
lda SPRITE_YEND_8
clc
adc scrollPosYDiv8
sta spriteRestoreYE,x
lda #$00
sta spriteRestored,x
.norestore
.out
.xrestore
ldx #$44
.yrestore
ldy #$44
rts
; -------------------------------------------------------------------------------------------
; -- SPRITEBUFFER STUFF --
; -------------------------------------------------------------------------------------------
; -- these routines blit the sprite from the source data rored right and with flipping --
; -- into a special line buffer which will be used later to draw them onto the screen --
; -------------------------------------------------------------------------------------------
;-----
SPRITE_BUILD_FROM_TWO_LOCATIONS_RIGHT SUBROUTINE
lda #$00
sta isLeftClean
lda ZP_RIGHT_BYTE + 0
sta .location1 + 1
lda ZP_RIGHT_BYTE + 1
sta .location1 + 2
ldy ZP_Y_LENGTH
dey
.nextelement
echo "1", . / $100
.location1
ldx $4444,y
ror2ar
lda $4400,x ; rortable1
sta SPRITEBUFFER_PLUS_8,y
dey
bpl .nextelement
echo "2", . / $100
jmp SPRITE_BUILD_FILL_NEXT8
;-----
SPRITE_BUILD_FROM_ONE_LOCATION SUBROUTINE
lda ZP_LEFT_BYTE + 0
sta .location1 + 1
lda ZP_LEFT_BYTE + 1
sta .location1 + 2
ldy ZP_Y_LENGTH
dey
.nextelement
echo "1", . / $100
.location1
lda $4444,y ; location
sta SPRITEBUFFER_PLUS_8,y
dey
bpl .nextelement
echo "2", . / $100
jmp SPRITE_BUILD_FILL_NEXT8
;-----
SPRITE_BUILD_FROM_TWO_LOCATIONS_SPECIAL SUBROUTINE
lda ZP_LEFT_BYTE + 0
sta .location1 + 1
lda ZP_LEFT_BYTE + 1
sta .location1 + 2
lda ZP_RIGHT_BYTE + 0
sta .location2 + 1
lda ZP_RIGHT_BYTE + 1
sta .location2 + 2
lda ZP_SPECIAL
sta .special + 2
ldy ZP_Y_LENGTH
dey
.nextelement
echo "1", . / $100
.location1
ldx $4444,y ; location1
ror1b
lda $4400,x ; rortable1
.location2
ldx $4444,y ; location2
ror2b
ora $4400,x ; rortable2
tax
.special
lda $4400,x ; specialtable
sta SPRITEBUFFER_PLUS_8,y
dey
echo "2", . / $100
bpl .nextelement
jmp SPRITE_BUILD_FILL_NEXT8
SPRITE_BUILD_FROM_TWO_LOCATIONS_LEFT_SPECIAL SUBROUTINE
lda #$00
sta isRightClean
lda ZP_LEFT_BYTE + 0
sta .location1 + 1
lda ZP_LEFT_BYTE + 1
sta .location1 + 2
lda ZP_SPECIAL
sta .special + 2
ldy ZP_Y_LENGTH
dey
.nextelement
echo "1", . / $100
.location1
ldx $4444,y ; location1
ror1bl
lda $4400,x ; rortable1
.location2
tax
.special
lda $4400,x ; specialtable
sta SPRITEBUFFER_PLUS_8,y
dey
bpl .nextelement
echo "2", . / $100
jmp SPRITE_BUILD_FILL_NEXT8
SPRITE_BUILD_FROM_TWO_LOCATIONS_RIGHT_SPECIAL SUBROUTINE
lda #$00
sta isLeftClean
lda ZP_RIGHT_BYTE + 0
sta .location1 + 1
lda ZP_RIGHT_BYTE + 1
sta .location1 + 2
lda ZP_SPECIAL
sta .special + 2
ldy ZP_Y_LENGTH
dey
.nextelement
echo "1", . / $100
.location1
ldx $4444,y ; location1
ror2br
lda $4400,x ; rortable2
.location2
tax
.special
lda $4400,x ; specialtable
sta SPRITEBUFFER_PLUS_8,y
dey
bpl .nextelement
echo "2", . / $100
jmp SPRITE_BUILD_FILL_NEXT8
;-----
SPRITE_BUILD_FROM_ONE_LOCATION_SPECIAL SUBROUTINE
lda ZP_LEFT_BYTE + 0
sta .location + 1
lda ZP_LEFT_BYTE + 1
sta .location + 2
lda ZP_SPECIAL
sta .special + 2
ldy ZP_Y_LENGTH
dey
.nextelement
echo "1", . / $100
.location
ldx $4444,y ; location
.special
lda $4400,x ; specialtable
sta SPRITEBUFFER_PLUS_8,y
dey
bpl .nextelement
echo "2", . / $100
jmp SPRITE_BUILD_FILL_NEXT8
;-----
SPRITE_BUILD_FILL_NEXT8 SUBROUTINE
ldy ZP_Y_LENGTH
lda #$00
Y SET 0
REPEAT 8
sta SPRITEBUFFER_PLUS_8+Y,y
Y SET Y + 1
REPEND
jmp SPRITEBUILDREADY
fastloop SUBROUTINE
clc
ldy #$00
.nextyelement
REPEAT 8
lax (ZP_SPRITE_BUFFER),y
ora (ZP_SCREENBLITWRITE),y
and AUTOMASKING,x
sta (ZP_SCREENBLITWRITE),y
iny
REPEND
lda ZP_SCREENBLITWRITE + 0
adc #<[320-8]
sta ZP_SCREENBLITWRITE + 0
inc ZP_SCREENBLITWRITE + 1
bcc .nocarry
clc
inc ZP_SCREENBLITWRITE + 1
.nocarry
dec ZP_SPRITE_YCOUNT
bne .nextyelement
jmp fastloopend
;------------------------------------------------------------------------------------------
;-- restores the sprite rectangle (spritePortRestoreAdd should point to the last frame) --
;------------------------------------------------------------------------------------------
restoreSpritePort SUBROUTINE
lda spritePort
clc
adc spritePortRestoreAdd
tax
lda spriteRestored,x
bne .alreadyRestored
lda #$01
sta spriteRestored,x
lda spriteRestoreXS,x
sta rectLevelXS
lda spriteRestoreYS,x
sta rectLevelYS
lda spriteRestoreXE,x
sta rectLevelXE
lda spriteRestoreYE,x
sta rectLevelYE
jsr restoreRect
.alreadyRestored
rts
;------------------------------------------------------------------------------------------
;-- initializes the sprites --
;------------------------------------------------------------------------------------------
SUBROUTINE
initSpriteSubsystem
lda SPRITES + 0
sta ZP_SPRITES + 0
lda SPRITES + 1
sta ZP_SPRITES + 1
lda ENEMYX_XARRAYINDEX_ADR + 0
sta ZP_ENEMYX_XARRAYINDEX + 0
lda ENEMYX_XARRAYINDEX_ADR + 1
sta ZP_ENEMYX_XARRAYINDEX + 1
lda ENEMYX_EARRAYINDEX_ADR + 0
sta ZP_ENEMYX_EARRAYINDEX + 0
lda ENEMYX_EARRAYINDEX_ADR + 1
sta ZP_ENEMYX_EARRAYINDEX + 1
lda ENEMYX_COUNT_ADR + 0
sta ZP_ENEMYX_COUNT + 0
lda ENEMYX_COUNT_ADR + 1
sta ZP_ENEMYX_COUNT + 1
lda ENEMYY_ENEMYTYPE_ADR + 0
sta ZP_ENEMYY_ENEMYTYPE + 0
lda ENEMYY_ENEMYTYPE_ADR + 1
sta ZP_ENEMYY_ENEMYTYPE + 1
lda ENEMYY_YPOSITION_ADR + 0
sta ZP_ENEMYY_YPOSITION + 0
lda ENEMYY_YPOSITION_ADR + 1
sta ZP_ENEMYY_YPOSITION + 1
ldx #SPRITECOUNT * 2 - 1
.reloop
lda #$01
sta spriteRestored,x ; we don't want this sprite to be updated
dex
bpl .reloop
rts
|
oeis/126/A126718.asm | neoneye/loda-programs | 11 | 246800 | ; A126718: a(n) is the number of nonnegative integers k less than 10^n such that the decimal representation of k lacks the digits 1,2,3, at least one of digits 4,5, at least one of digits 6,7 and at least one of digits 8,9.
; Submitted by <NAME>(s2)
; 7,43,235,1171,5467,24403,105595,447091,1864027,7686163,31440955,127865011,517788187,2090186323,8417944315,33843570931,135890057947,545108340883,2185079263675,8754257900851,35058860433307,140360940805843,561820285607035,2248410759910771,8997031992754267,35998295031677203,144023681711342395,576186232404576691,2305019447906540827,9220901349712090963,36886076079548597755,147551716373179994611,590229101683446592987,2360983115357505823123,9444132587404260861115,37777130727745914580531
mov $1,1
mov $2,1
mov $3,2
lpb $0
sub $0,1
mul $1,4
mul $3,3
add $1,$3
mul $2,2
add $2,1
sub $1,$2
lpe
mov $0,$1
mul $0,6
add $0,1
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0xca.log_38_1837.asm | ljhsiun2/medusa | 9 | 86095 | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r15
push %r8
push %rax
push %rdi
// Load
mov $0x7af, %rax
nop
nop
add %r12, %r12
mov (%rax), %r13
nop
nop
nop
dec %rdi
// Store
mov $0x756810000000dbf, %r11
nop
nop
nop
and $14280, %r15
mov $0x5152535455565758, %r13
movq %r13, (%r11)
nop
nop
nop
nop
and $5279, %rdi
// Store
lea addresses_WC+0x58af, %r13
nop
nop
and %r8, %r8
movw $0x5152, (%r13)
add $27228, %r13
// Faulty Load
lea addresses_A+0xd4af, %rdi
clflush (%rdi)
nop
nop
nop
nop
sub %r11, %r11
vmovntdqa (%rdi), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %r15
lea oracles, %r11
and $0xff, %r15
shlq $12, %r15
mov (%r11,%r15,1), %r15
pop %rdi
pop %rax
pop %r8
pop %r15
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
{'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 8, 'NT': True, 'type': 'addresses_P'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_NC'}}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WC'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': True, 'type': 'addresses_A'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'00': 38}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
reuse/ada/general.adb | cocolab8/cocktail | 0 | 27039 | -- $Id: General.mi,v 1.5 1994/06/13 09:41:43 grosch rel $
-- $Log: General.mi,v $
-- Ich, <NAME>, Informatiker, Aug. 1994
-- General Subroutines: minimum, maximum, binary logarithm, and power of 2
package body General is
-- Returns the minimum of 'a' and 'b'.
function Min (a, b: Integer) return Integer is
begin
if a <= b then
return a;
else
return b;
end if;
end Min;
-- Returns the maximum of 'a' and 'b'.
function Max (a, b: Integer) return Integer is
begin
if a >= b then
return a;
else
return b;
end if;
end Max;
-- Returns the logarithm to the base 2 of 'x'.
function Log2 (x: Integer) return Integer is
z : Integer := x;
y : Integer := 0;
begin
if z >= 65536 then y := y + 16; z := z / 65536; end if;
if z >= 256 then y := y + 8; z := z / 256; end if;
if z >= 16 then y := y + 4; z := z / 16; end if;
if z >= 4 then y := y + 2; z := z / 4; end if;
if z >= 2 then y := y + 1; z := z / 2; end if;
return y;
end Log2;
-- Returns the number of the lowest bit set in 'x'.
function AntiLog (x: Integer) return Integer is
z : Integer := x;
y : Integer := 0;
begin
if (z mod 65536) = 0 then y := y + 16; z := z / 65536; end if;
if (z mod 256) = 0 then y := y + 8; z := z / 256; end if;
if (z mod 16) = 0 then y := y + 4; z := z / 16; end if;
if (z mod 4) = 0 then y := y + 2; z := z / 4; end if;
if (z mod 2) = 0 then y := y + 1; z := z / 2; end if;
return y;
end AntiLog;
-- Returns 2 to the power of 'x'.
function Exp2 (x: Integer) return Integer is
z : Integer := x;
y : Integer := 1;
begin
if z >= 16 then z := z - 16; y := y * 65536; end if;
if z >= 8 then z := z - 8; y := y * 256; end if;
if z >= 4 then z := z - 4; y := y * 16; end if;
if z >= 2 then z := z - 2; y := y * 4; end if;
if z >= 1 then z := z - 1; y := y * 2; end if;
return y;
end Exp2;
-- Returns 10 to the power of 'x'.
function Exp10 (x: Integer) return Float is
z : Integer := abs (x);
y : Float := 1.0;
negative : Boolean := x < 0;
begin
-- if z >= 64 then z := z - 64; y := y * 1.0E64; end if; too big
if z >= 32 then z := z - 32; y := y * 1.0E32; end if;
if z >= 16 then z := z - 16; y := y * 1.0E16; end if;
if z >= 8 then z := z - 8; y := y * 1.0E8 ; end if;
if z >= 4 then z := z - 4; y := y * 1.0E4 ; end if;
if z >= 2 then z := z - 2; y := y * 1.0E2 ; end if;
if z >= 1 then z := z - 1; y := y * 1.0E1 ; end if;
if negative then return 1.0 / y; else return y; end if;
end Exp10;
end General;
|
asm/store_test_i6.asm | yoshiki9636/my-riscv-rv32i | 1 | 97674 | ;*
;* My RISC-V RV32I CPU
;* Test Code Store Instructions : No.6
;* RV32I code
;* @auther <NAME> <<EMAIL>>
;* @copylight 2021 <NAME>
;* @license https://opensource.org/licenses/MIT MIT license
;* @version 0.1
;*
nop
nop
; clear LED to black
addi x1, x0, 7 ; LED value
lui x2, 0xc0000 ; LED address
sb x1, 0x0(x2) ; set LED
; store pattern data for test
lui x3, 0xa5a5a ;
ori x3, x3, 0x5a5 ; test value (1)
sw x3, 0x0(x0)
sw x3, 0x4(x0)
sw x3, 0x8(x0)
sw x3, 0xc(x0)
; test sb offset 0
:fail_test1
and x4, x4, x0
lui x5, 0xfedcb
ori x5, x5, 0x298
lui x7, 0x00001
srli x7, x7, 1
or x5, x5, x7
sb x5, 0x0(x4)
lw x6, 0x0(x4)
lui x7, 0xa5a5a
ori x7, x7, 0x598
bne x6, x7, fail_test1
; next value
addi x1, x0, 6 ; LED value
sb x1, 0x0(x2) ; set LED
; test sb offset 1
:fail_test2
and x8, x8, x0
ori x4, x0, 0x1
lui x5, 0x98fed
ori x5, x5, 0x4ba
lui x7, 0x00001
srli x7, x7, 1
or x5, x5, x7
sb x5, 0x0(x4)
lw x6, 0x0(x8)
lui x7, 0xa5a5b
ori x7, x7, 0x298
lui x8, 0x00001
srli x8, x8, 1
or x7, x7, x8
bne x6, x7, fail_test2
; next value
addi x1, x0, 5 ; LED value
sb x1, 0x0(x2) ; set LED
; test sb offset 2
:fail_test3
and x8, x8, x0
ori x4, x0, 0x2
lui x5, 0xba98f
ori x5, x5, 0x6dc
lui x7, 0x00001
srli x7, x7, 1
or x5, x5, x7
sb x5, 0x0(x4)
lw x6, 0x0(x8)
lui x7, 0xa5dcb
ori x7, x7, 0x298
lui x8, 0x00001
srli x8, x8, 1
or x7, x7, x8
bne x6, x7, fail_test3
; next value
addi x1, x0, 4 ; LED value
sb x1, 0x0(x2) ; set LED
; test sb offset 3
:fail_test4
and x8, x8, x0
ori x4, x0, 0x3
lui x5, 0xdcba9
ori x5, x5, 0x0fe
lui x7, 0x00001
srli x7, x7, 1
or x5, x5, x7
sb x5, 0x0(x4)
lw x6, 0x0(x8)
lui x7, 0xfedcb
ori x7, x7, 0x298
lui x8, 0x00001
srli x8, x8, 1
or x7, x7, x8
bne x6, x7, fail_test4
; next value
addi x1, x0, 3 ; LED value
sb x1, 0x0(x2) ; set LED
; test sh offset 0
:fail_test5
ori x8, x0, 0x4
ori x4, x0, 0x4
lui x5, 0xfedcb
ori x5, x5, 0x298
lui x7, 0x00001
srli x7, x7, 1
or x5, x5, x7
sh x5, 0x0(x4)
lw x6, 0x0(x8)
lui x7, 0xa5a5b
ori x7, x7, 0x298
lui x8, 0x00001
srli x8, x8, 1
or x7, x7, x8
bne x6, x7, fail_test5
; next value
addi x1, x0, 2 ; LED value
sb x1, 0x0(x2) ; set LED
; test sh offset 1
:fail_test6
ori x8, x0, 0x4
ori x4, x0, 0x6
lui x5, 0xba98f
ori x5, x5, 0x6dc
lui x7, 0x00001
srli x7, x7, 1
or x5, x5, x7
sh x5, 0x0(x4)
lw x6, 0x0(x8)
lui x7, 0xfedcb
ori x7, x7, 0x298
lui x8, 0x00001
srli x8, x8, 1
or x7, x7, x8
bne x6, x7, fail_test6
; next value
addi x1, x0, 1 ; LED value
sb x1, 0x0(x2) ; set LED
; test sw
:fail_test7
ori x8, x0, 0x8
ori x4, x0, 0x8
lui x5, 0x76543
ori x5, x5, 0x210
sw x5, 0x0(x4)
lw x6, 0x0(x8)
lui x7, 0x76543
ori x7, x7, 0x210
bne x6, x7, fail_test7
; next value
addi x1, x0, 0 ; LED value
sb x1, 0x0(x2) ; set LED
; test finished
nop
nop
lui x2, 01000 ; loop max
;ori x2, x0, 10
and x3, x0, x3 ; LED value
and x4, x0, x4 ;
lui x4, 0xc0000 ; LED address
:label_led
and x1, x0, x1 ; loop counter
:label_waitloop
addi x1, x1, 1
blt x1, x2, label_waitloop
addi x3, x3, 1
sb x3, 0x0(x4)
jalr x0, x0, label_led
nop
nop
nop
nop
|
programs/oeis/128/A128785.asm | neoneye/loda | 22 | 88763 | ; A128785: a(n) = n^2*6^n.
; 0,6,144,1944,20736,194400,1679616,13716864,107495424,816293376,6046617600,43898443776,313456656384,2207257288704,15359376162816,105791621529600,722204136308736,4891804579528704,32905425960566784,219978866143789056,1462463376025190400,9674195232406634496,63704904659657293824,417767287995355889664,2729307650873251332096,17768930018706063360000,115313248249394868781056,746124479057475082911744,4814498696140415349817344,30987194414189458998951936,198966527748660022109798400,1274712221109748541650108416,8149668976585114505617342464,52001891692389783378616909824,331207640751529419204854808576,2105861729691817674010106265600,13367494538843734067838845976576,84722685294801258976256389545984,536185058724731999832202599727104,3388659865596886586197147455062016,21387991262149974508542153562521600,134824549918777901808222600519745536,848889373194732488244038074896482304
mov $2,6
pow $2,$0
mov $3,$0
pow $3,2
mul $3,$2
mov $0,$3
|
anyconnect-cisco.scpt | communikein/anyconnect_autoconnect | 9 | 4224 | <reponame>communikein/anyconnect_autoconnect<filename>anyconnect-cisco.scpt
-- AnyConnect now refered to as targetApp
set targetApp to "Cisco AnyConnect Secure Mobility Client"
-- Determine if AnyConnect is currently running
tell application "System Events"
set processExists to exists process targetApp
end tell
-- Close connection if running; else start connection and fill in password
if processExists is true then
tell application targetApp
quit
end tell
else
tell application targetApp
activate
end tell
tell application "System Events"
-- Wait for first window to open. Do nothing.
repeat until (window 1 of process targetApp exists)
delay 0.1
end repeat
-- You may need to uncomment below if your OpenConnect implementation requires a keystroke to accept the default VPN
-- tell process targetApp
-- keystroke return
-- end tell
-- Wait for "Cisco AnyConnect Login" window to open and then automatically enter password extracted from your Keychain
repeat until (window "Cisco AnyConnect Login" of process targetApp exists)
delay 0.1
end repeat
-- Wait for "Cisco AnyConnect Login" window to complete loading
repeat until (button "Log in" of group 2 of group 4 of UI element 1 of scroll area 1 of group 1 of group 1 of window "Cisco AnyConnect Login" of application process targetApp exists)
delay 0.1
end repeat
-- This is where the the password in the Keychain is accessed for use as input rather than being hardcoded as plain text in other versions of this script out in the wild
tell process targetApp
set credentialsID to "Enterprise Connect"
set username to "YOUR_CISCO_EMAIL" -- like "<EMAIL>"
set PSWD to do shell script "/usr/bin/security find-generic-password -wl " & quoted form of credentialsID
keystroke username as text
keystroke tab
keystroke PSWD as text
keystroke return
end tell
-- Autoclick on "Accept" of AnyConnect Banner window. If you have no welcome banner that needs acceptance, comment out these lines to the first "end tell" below
repeat until (window "Cisco AnyConnect - Banner" of process targetApp exists)
delay 0.1
end repeat
tell process targetApp
keystroke return
end tell
end tell
end if
|
src/adda-generator.ads | alban-linard/adda | 0 | 6196 | <reponame>alban-linard/adda<gh_stars>0
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Containers.Indefinite_Hashed_Sets;
with Ada.Finalization;
use Ada.Containers;
generic
type Variable_Type is private;
with function Hash_Variable
(Element : in Variable_Type)
return Hash_Type;
type Value_Type is private;
with function Hash_Value
(Element : in Value_Type)
return Hash_Type;
type Terminal_Type is private;
with function Hash_Terminal
(Element : in Terminal_Type)
return Hash_Type;
package Adda.Generator is
type Decision_Diagram is private;
type Structure (<>) is private;
function Make
(Value : in Terminal_Type)
return Decision_Diagram;
function Make
(Variable : in Variable_Type;
Value : in Value_Type;
Successor : in Decision_Diagram)
return Decision_Diagram;
private
use Ada.Finalization;
type Any_Structure is access constant Structure;
type Decision_Diagram is
new Controlled with record
Data : Any_Structure;
end record;
overriding procedure Initialize
(Object : in out Decision_Diagram);
overriding procedure Adjust
(Object : in out Decision_Diagram);
overriding procedure Finalize
(Object : in out Decision_Diagram);
function Hash
(Element : in Decision_Diagram)
return Hash_Type;
function "="
(Left, Right : in Decision_Diagram)
return Boolean;
package Successors is new Indefinite_Hashed_Maps (Key_Type => Value_Type,
Element_Type => Decision_Diagram, Hash => Hash_Value,
Equivalent_Keys => "=", "=" => "=");
type Structure_Type is
(Terminal,
Non_Terminal);
type Structure (Of_Type : Structure_Type) is
record
Identifier : Natural := 0;
Reference_Counter : access Natural := null;
case Of_Type is
when Terminal =>
Value : Terminal_Type;
when Non_Terminal =>
Variable : Variable_Type;
Alpha : Successors.Map;
end case;
end record;
function Hash
(Element : in Structure)
return Hash_Type;
function "="
(Left, Right : in Structure)
return Boolean;
package Unicity is new Indefinite_Hashed_Sets (Element_Type => Structure,
Hash => Hash, Equivalent_Elements => "=", "=" => "=");
Identifier : Natural := 0;
Unicity_Table : Unicity.Set;
end Adda.Generator;
|
oeis/052/A052687.asm | neoneye/loda-programs | 11 | 247047 | ; A052687: E.g.f. (1+x-x^3)/((1-x)(1-x^2)).
; 1,2,6,18,96,480,3600,25200,241920,2177280,25401600,279417600,3832012800,49816166400,784604620800,11769069312000,209227898880000,3556874280960000,70426110763008000,1338096104497152000
mov $2,$0
lpb $0
div $0,2
mov $1,$0
mov $0,$2
add $1,1
add $3,1
div $0,$3
lpb $0
mul $1,$0
sub $0,$3
add $1,$0
lpe
lpe
mov $0,$1
add $0,1
|
bootdict/x86/main-proc.asm | ikysil/ikforth | 8 | 3793 | START:
; typedef struct _MainProcContext {
; int argc;
; char const ** argv;
; char const ** envp;
; char const * startFileName;
; int startFileNameLength;
; int const * exitCode;
; void const ** sysfunctions;
; } MainProcContext;
;
; typedef void __stdcall (* MainProc)(MainProcContext *);
$STDCALL_SAVE
MOV ESI,[EBP + 8] ; get address of MainProcContext
MOV EBX,IMAGE_BASE
CLD
LEA EDI,[EBX + ARGC_VAR]
MOVSD
LEA EDI,[EBX + ARGV_VAR]
MOVSD
LEA EDI,[EBX + ENVP_VAR]
MOVSD
LEA EDI,[EBX + SF_VAR]
MOVSD
LEA EDI,[EBX + HASH_SF_VAR]
MOVSD
LEA EDI,[EBX + EXIT_CODE_VAR]
MOVSD
LEA EDI,[EBX + FUNC_TABLE_VAR]
MOVSD
MOV EAX,DWORD [EBX + MAIN_PROC_VAR]
PUSH EAX
PUSH F_FALSE
PUSH 0
$CSYSCALL START_THREAD
$STDCALL_RESTORE
RET
|
libsrc/target/gb/gbdk/set_data.asm | Frodevan/z88dk | 640 | 87874 | <filename>libsrc/target/gb/gbdk/set_data.asm<gh_stars>100-1000
MODULE set_bkg_data
PUBLIC set_bkg_data
PUBLIC _set_bkg_data
PUBLIC set_win_data
PUBLIC _set_win_data
PUBLIC set_sprite_data
PUBLIC _set_sprite_data
GLOBAL copy_vram
SECTION code_driver
INCLUDE "target/gb/def/gb_globals.def"
; void __LIB__ set_bkg_data(uint8_t first_tile, uint8_t nb_tiles, unsigned char *data) NONBANKED;
; void __LIB__ set_win_data(uint8_t first_tile, uint8_t nb_tiles, unsigned char *data) __smallc NONBANKED;
set_bkg_data:
_set_bkg_data:
set_win_data:
_set_win_data:
LDH A,(LCDC)
BIT 4,A
JP NZ,_set_sprite_data
PUSH BC
ld hl,sp+4
LD C,(HL) ; BC = data
INC HL
LD B,(HL)
INC HL
LD E,(HL) ; E = nb_tiles
INC HL
INC HL
LD L,(HL) ; L = first_tile
PUSH HL
XOR A
OR E ; Is nb_tiles == 0?
JR NZ,set_1
LD DE,0x1000 ; DE = nb_tiles = 256
JR set_2
set_1:
LD H,0x00 ; HL = nb_tiles
LD L,E
ADD HL,HL ; HL *= 16
ADD HL,HL
ADD HL,HL
ADD HL,HL
LD D,H ; DE = nb_tiles
LD E,L
set_2:
POP HL ; HL = first_tile
LD A,L
RLCA ; Sign extend (patterns have signed numbers)
SBC A
LD H,A
ADD HL,HL ; HL *= 16
ADD HL,HL
ADD HL,HL
ADD HL,HL
PUSH BC
LD BC,0x9000
ADD HL,BC
POP BC
set_3: ; Special version of '.copy_vram'
BIT 3,H ; Bigger than 0x9800
JR Z,set_4
BIT 4,H
JR Z,set_4
RES 4,H ; Switch to 0x8800
set_4:
LDH A,(STAT)
AND 0x02
JR NZ,set_4
LD A,(BC)
LD (HL+),A
INC BC
DEC DE
LD A,D
OR E
JR NZ,set_3
POP BC
RET
; void __LIB__ set_sprite_data(uint8_t first_tile, uint8_t nb_tiles, unsigned char *data) __smallc NONBANKED;
_set_sprite_data:
set_sprite_data:
PUSH BC
ld hl,sp+4
LD C,(HL) ; BC = data
INC HL
LD B,(HL)
INC HL
LD E,(HL) ; E = nb_tiles
INC HL
INC HL
LD L,(HL) ; L = first_tile
PUSH HL
XOR A
OR E ; Is nb_tiles == 0?
JR NZ,spr_1
LD DE,0x1000 ; DE = nb_tiles = 256
JR spr_2
spr_1:
LD H,0x00 ; HL = nb_tiles
LD L,E
ADD HL,HL ; HL *= 16
ADD HL,HL
ADD HL,HL
ADD HL,HL
LD D,H ; DE = nb_tiles
LD E,L
spr_2:
POP HL ; HL = first_tile
LD H,0x00
ADD HL,HL ; HL *= 16
ADD HL,HL
ADD HL,HL
ADD HL,HL
PUSH BC
LD BC,0x8000
ADD HL,BC
POP BC
CALL copy_vram
POP BC
RET
|
oeis/027/A027797.asm | neoneye/loda-programs | 11 | 101887 | ; A027797: a(n) = 22*(n+1)*C(n+3,12).
; 220,3146,24024,130130,560560,2042040,6534528,18845112,49884120,122862740,284524240,624660036,1308811504,2631351800,5099265600,9561123000,17401243860,30826185390,53279826600,90034894950,149023274400,241985412240,386041244160,605812006800,936254919600,1426411906920,2144320317216,3183389112904,4670609509280,6777045921360,9731142861440,13835487794128,19487790734412,27206980570770,37665477890040,51728886842490,70504556881616,95400701820424,128198031561600,171136154312200,227017347557000
mov $1,$0
add $0,12
bin $0,$1
add $1,10
mul $0,$1
mul $0,22
|
oeis/193/A193778.asm | neoneye/loda-programs | 11 | 167997 | <reponame>neoneye/loda-programs
; A193778: Number of signed permutations of length 2n invariant under D and D'bar.
; Submitted by <NAME>
; 1,2,8,32,160,832,4864,29696,195584,1341440,9723904,73105408,574062592,4657184768,39165624320,339133595648,3028204650496,27760959422464,261439835078656,2521668748574720,24912764963127296,251559029812232192,2595790316527157248,27328775256530747392,293470259633559961600,3210502943894071672832,35768031851144139505664,405428369867271732985856,4673804179658110532583424,54755585784450655159582720,651672456409242132098842624,7874015206952562883347611648,96555415008651150146951708672
mov $3,1
lpb $0
sub $0,1
mul $1,4
mov $2,$3
add $3,$1
mov $1,$2
mul $1,$0
add $3,$2
lpe
mov $0,$3
|
source/utilities/initexit.adb | Vovanium/libusb1-ada | 0 | 29230 | <reponame>Vovanium/libusb1-ada<filename>source/utilities/initexit.adb
with USB;
with USB.LibUSB1;
with Interfaces.C;
with Ada.Text_IO;
use Ada.Text_IO;
procedure InitExit is
Ctx: aliased USB.LibUSB1.Context_Access;
R: USB.LibUSB1.Status;
begin
R := USB.LibUSB1.Init_Lib(Ctx'Access);
Put(USB.LibUSB1.Status'Image(R));
Put_Line("");
USB.LibUSB1.Exit_Lib(Ctx);
end;
|
int-tests/windows/link/nasm/main.asm | kreilley/Disassembler | 1 | 14474 | <reponame>kreilley/Disassembler
global main
extern GetStdHandle
extern WriteFile
section .text
main:
mov rcx, 0fffffff5h
call GetStdHandle
mov rcx, rax
mov rdx, NtlpBuffer
mov r8, [NtnNBytesToWrite]
mov r9, NtlpNBytesWritten
sub rsp, 40
mov dword [rsp + 32], 00h
call WriteFile
add rsp, 40
ExitProgram:
xor eax, eax
ret
section .data
NtlpBuffer: db 'Hello, World!', 00h
NtnNBytesToWrite: dq 0eh
section .bss
NtlpNBytesWritten: resd 01h |
Debug/stream_buffer.asm | polamagdygeo/uWave | 0 | 179366 | ;******************************************************************************
;* TI ARM C/C++ Codegen Unix v18.1.1.LTS *
;* Date/Time created: Fri Jul 3 20:08:22 2020 *
;******************************************************************************
.compiler_opts --abi=eabi --arm_vmrs_si_workaround=off --code_state=16 --diag_wrap=off --embedded_constants=on --endian=little --float_support=FPv4SPD16 --hll_source=on --object_format=elf --silicon_version=7M4 --symdebug:dwarf --symdebug:dwarf_version=3 --unaligned_access=on
.thumb
$C$DW$CU .dwtag DW_TAG_compile_unit
.dwattr $C$DW$CU, DW_AT_name("../OS/stream_buffer.c")
.dwattr $C$DW$CU, DW_AT_producer("TI TI ARM C/C++ Codegen Unix v18.1.1.LTS Copyright (c) 1996-2017 Texas Instruments Incorporated")
.dwattr $C$DW$CU, DW_AT_TI_version(0x01)
.dwattr $C$DW$CU, DW_AT_comp_dir("/home/pola/workspace_v8/Microwave/Debug")
$C$DW$1 .dwtag DW_TAG_subprogram
.dwattr $C$DW$1, DW_AT_name("memset")
.dwattr $C$DW$1, DW_AT_TI_symbol_name("memset")
.dwattr $C$DW$1, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$1, DW_AT_declaration
.dwattr $C$DW$1, DW_AT_external
.dwattr $C$DW$1, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/string.h")
.dwattr $C$DW$1, DW_AT_decl_line(0x7a)
.dwattr $C$DW$1, DW_AT_decl_column(0x16)
$C$DW$2 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$2, DW_AT_type(*$C$DW$T$3)
$C$DW$3 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$3, DW_AT_type(*$C$DW$T$10)
$C$DW$4 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$4, DW_AT_type(*$C$DW$T$31)
.dwendtag $C$DW$1
$C$DW$5 .dwtag DW_TAG_subprogram
.dwattr $C$DW$5, DW_AT_name("vPortEnterCritical")
.dwattr $C$DW$5, DW_AT_TI_symbol_name("vPortEnterCritical")
.dwattr $C$DW$5, DW_AT_declaration
.dwattr $C$DW$5, DW_AT_external
.dwattr $C$DW$5, DW_AT_decl_file("../OS/portmacro.h")
.dwattr $C$DW$5, DW_AT_decl_line(0x76)
.dwattr $C$DW$5, DW_AT_decl_column(0x0d)
.dwendtag $C$DW$5
$C$DW$6 .dwtag DW_TAG_subprogram
.dwattr $C$DW$6, DW_AT_name("vPortExitCritical")
.dwattr $C$DW$6, DW_AT_TI_symbol_name("vPortExitCritical")
.dwattr $C$DW$6, DW_AT_declaration
.dwattr $C$DW$6, DW_AT_external
.dwattr $C$DW$6, DW_AT_decl_file("../OS/portmacro.h")
.dwattr $C$DW$6, DW_AT_decl_line(0x77)
.dwattr $C$DW$6, DW_AT_decl_column(0x0d)
.dwendtag $C$DW$6
$C$DW$7 .dwtag DW_TAG_subprogram
.dwattr $C$DW$7, DW_AT_name("vTaskSetTimeOutState")
.dwattr $C$DW$7, DW_AT_TI_symbol_name("vTaskSetTimeOutState")
.dwattr $C$DW$7, DW_AT_declaration
.dwattr $C$DW$7, DW_AT_external
.dwattr $C$DW$7, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$7, DW_AT_decl_line(0x8c1)
.dwattr $C$DW$7, DW_AT_decl_column(0x06)
$C$DW$8 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$8, DW_AT_type(*$C$DW$T$123)
.dwendtag $C$DW$7
$C$DW$9 .dwtag DW_TAG_subprogram
.dwattr $C$DW$9, DW_AT_name("xTaskNotifyStateClear")
.dwattr $C$DW$9, DW_AT_TI_symbol_name("xTaskNotifyStateClear")
.dwattr $C$DW$9, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$9, DW_AT_declaration
.dwattr $C$DW$9, DW_AT_external
.dwattr $C$DW$9, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$9, DW_AT_decl_line(0x848)
.dwattr $C$DW$9, DW_AT_decl_column(0x0c)
$C$DW$10 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$10, DW_AT_type(*$C$DW$T$35)
.dwendtag $C$DW$9
$C$DW$11 .dwtag DW_TAG_subprogram
.dwattr $C$DW$11, DW_AT_name("xTaskGetCurrentTaskHandle")
.dwattr $C$DW$11, DW_AT_TI_symbol_name("xTaskGetCurrentTaskHandle")
.dwattr $C$DW$11, DW_AT_type(*$C$DW$T$35)
.dwattr $C$DW$11, DW_AT_declaration
.dwattr $C$DW$11, DW_AT_external
.dwattr $C$DW$11, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$11, DW_AT_decl_line(0x8bc)
.dwattr $C$DW$11, DW_AT_decl_column(0x0e)
.dwendtag $C$DW$11
$C$DW$12 .dwtag DW_TAG_subprogram
.dwattr $C$DW$12, DW_AT_name("xTaskNotifyWait")
.dwattr $C$DW$12, DW_AT_TI_symbol_name("xTaskNotifyWait")
.dwattr $C$DW$12, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$12, DW_AT_declaration
.dwattr $C$DW$12, DW_AT_external
.dwattr $C$DW$12, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$12, DW_AT_decl_line(0x78e)
.dwattr $C$DW$12, DW_AT_decl_column(0x0c)
$C$DW$13 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$13, DW_AT_type(*$C$DW$T$45)
$C$DW$14 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$14, DW_AT_type(*$C$DW$T$45)
$C$DW$15 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$15, DW_AT_type(*$C$DW$T$212)
$C$DW$16 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$16, DW_AT_type(*$C$DW$T$46)
.dwendtag $C$DW$12
$C$DW$17 .dwtag DW_TAG_subprogram
.dwattr $C$DW$17, DW_AT_name("xTaskCheckForTimeOut")
.dwattr $C$DW$17, DW_AT_TI_symbol_name("xTaskCheckForTimeOut")
.dwattr $C$DW$17, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$17, DW_AT_declaration
.dwattr $C$DW$17, DW_AT_external
.dwattr $C$DW$17, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$17, DW_AT_decl_line(0x8c7)
.dwattr $C$DW$17, DW_AT_decl_column(0x0c)
$C$DW$18 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$18, DW_AT_type(*$C$DW$T$123)
$C$DW$19 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$19, DW_AT_type(*$C$DW$T$211)
.dwendtag $C$DW$17
$C$DW$20 .dwtag DW_TAG_subprogram
.dwattr $C$DW$20, DW_AT_name("vTaskSuspendAll")
.dwattr $C$DW$20, DW_AT_TI_symbol_name("vTaskSuspendAll")
.dwattr $C$DW$20, DW_AT_declaration
.dwattr $C$DW$20, DW_AT_external
.dwattr $C$DW$20, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$20, DW_AT_decl_line(0x4fa)
.dwattr $C$DW$20, DW_AT_decl_column(0x06)
.dwendtag $C$DW$20
$C$DW$21 .dwtag DW_TAG_subprogram
.dwattr $C$DW$21, DW_AT_name("xTaskGenericNotify")
.dwattr $C$DW$21, DW_AT_TI_symbol_name("xTaskGenericNotify")
.dwattr $C$DW$21, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$21, DW_AT_declaration
.dwattr $C$DW$21, DW_AT_external
.dwattr $C$DW$21, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$21, DW_AT_decl_line(0x6e6)
.dwattr $C$DW$21, DW_AT_decl_column(0x0c)
$C$DW$22 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$22, DW_AT_type(*$C$DW$T$35)
$C$DW$23 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$23, DW_AT_type(*$C$DW$T$45)
$C$DW$24 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$24, DW_AT_type(*$C$DW$T$93)
$C$DW$25 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$25, DW_AT_type(*$C$DW$T$212)
.dwendtag $C$DW$21
$C$DW$26 .dwtag DW_TAG_subprogram
.dwattr $C$DW$26, DW_AT_name("xTaskResumeAll")
.dwattr $C$DW$26, DW_AT_TI_symbol_name("xTaskResumeAll")
.dwattr $C$DW$26, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$26, DW_AT_declaration
.dwattr $C$DW$26, DW_AT_external
.dwattr $C$DW$26, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$26, DW_AT_decl_line(0x530)
.dwattr $C$DW$26, DW_AT_decl_column(0x0c)
.dwendtag $C$DW$26
$C$DW$27 .dwtag DW_TAG_subprogram
.dwattr $C$DW$27, DW_AT_name("xTaskGenericNotifyFromISR")
.dwattr $C$DW$27, DW_AT_TI_symbol_name("xTaskGenericNotifyFromISR")
.dwattr $C$DW$27, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$27, DW_AT_declaration
.dwattr $C$DW$27, DW_AT_external
.dwattr $C$DW$27, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$27, DW_AT_decl_line(0x741)
.dwattr $C$DW$27, DW_AT_decl_column(0x0c)
$C$DW$28 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$28, DW_AT_type(*$C$DW$T$35)
$C$DW$29 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$29, DW_AT_type(*$C$DW$T$45)
$C$DW$30 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$30, DW_AT_type(*$C$DW$T$93)
$C$DW$31 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$31, DW_AT_type(*$C$DW$T$212)
$C$DW$32 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$32, DW_AT_type(*$C$DW$T$217)
.dwendtag $C$DW$27
; /home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armacpia -@/tmp/TI3MUGpsllC
.sect ".text"
.clink
.thumbfunc xStreamBufferGenericCreateStatic
.thumb
.global xStreamBufferGenericCreateStatic
$C$DW$33 .dwtag DW_TAG_subprogram
.dwattr $C$DW$33, DW_AT_name("xStreamBufferGenericCreateStatic")
.dwattr $C$DW$33, DW_AT_low_pc(xStreamBufferGenericCreateStatic)
.dwattr $C$DW$33, DW_AT_high_pc(0x00)
.dwattr $C$DW$33, DW_AT_TI_symbol_name("xStreamBufferGenericCreateStatic")
.dwattr $C$DW$33, DW_AT_external
.dwattr $C$DW$33, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$33, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$33, DW_AT_TI_begin_line(0x11b)
.dwattr $C$DW$33, DW_AT_TI_begin_column(0x17)
.dwattr $C$DW$33, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$33, DW_AT_decl_line(0x11b)
.dwattr $C$DW$33, DW_AT_decl_column(0x17)
.dwattr $C$DW$33, DW_AT_TI_max_frame_size(0x28)
.dwpsn file "../OS/stream_buffer.c",line 288,column 2,is_stmt,address xStreamBufferGenericCreateStatic,isa 1
.dwfde $C$DW$CIE, xStreamBufferGenericCreateStatic
$C$DW$34 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$34, DW_AT_name("xBufferSizeBytes")
.dwattr $C$DW$34, DW_AT_TI_symbol_name("xBufferSizeBytes")
.dwattr $C$DW$34, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$34, DW_AT_location[DW_OP_reg0]
$C$DW$35 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$35, DW_AT_name("xTriggerLevelBytes")
.dwattr $C$DW$35, DW_AT_TI_symbol_name("xTriggerLevelBytes")
.dwattr $C$DW$35, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$35, DW_AT_location[DW_OP_reg1]
$C$DW$36 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$36, DW_AT_name("xIsMessageBuffer")
.dwattr $C$DW$36, DW_AT_TI_symbol_name("xIsMessageBuffer")
.dwattr $C$DW$36, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$36, DW_AT_location[DW_OP_reg2]
$C$DW$37 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$37, DW_AT_name("pucStreamBufferStorageArea")
.dwattr $C$DW$37, DW_AT_TI_symbol_name("pucStreamBufferStorageArea")
.dwattr $C$DW$37, DW_AT_type(*$C$DW$T$109)
.dwattr $C$DW$37, DW_AT_location[DW_OP_reg3]
$C$DW$38 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$38, DW_AT_name("pxStaticStreamBuffer")
.dwattr $C$DW$38, DW_AT_TI_symbol_name("pxStaticStreamBuffer")
.dwattr $C$DW$38, DW_AT_type(*$C$DW$T$112)
.dwattr $C$DW$38, DW_AT_location[DW_OP_breg13 40]
;----------------------------------------------------------------------
; 283 | StreamBufferHandle_t xStreamBufferGenericCreateStatic( size_t xBufferSi
; | zeBytes,
; 284 |
; | size_t xTriggerLevelBytes,
; 285 |
; | BaseType_t xIsMessageBuffer,
; 286 |
; | uint8_t * const pucStreamBufferStor
; | ageArea,
; 287 |
; | StaticStreamBuffer_t * const pxStat
; | icStreamBuffer )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferGenericCreateStatic *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 4 Args + 32 Auto + 4 Save = 40 byte *
;*****************************************************************************
xStreamBufferGenericCreateStatic:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
.dwcfi save_reg_to_mem, 14, -4
SUB SP, SP, #36 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 40
$C$DW$39 .dwtag DW_TAG_variable
.dwattr $C$DW$39, DW_AT_name("xBufferSizeBytes")
.dwattr $C$DW$39, DW_AT_TI_symbol_name("xBufferSizeBytes")
.dwattr $C$DW$39, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$39, DW_AT_location[DW_OP_breg13 4]
$C$DW$40 .dwtag DW_TAG_variable
.dwattr $C$DW$40, DW_AT_name("xTriggerLevelBytes")
.dwattr $C$DW$40, DW_AT_TI_symbol_name("xTriggerLevelBytes")
.dwattr $C$DW$40, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$40, DW_AT_location[DW_OP_breg13 8]
$C$DW$41 .dwtag DW_TAG_variable
.dwattr $C$DW$41, DW_AT_name("xIsMessageBuffer")
.dwattr $C$DW$41, DW_AT_TI_symbol_name("xIsMessageBuffer")
.dwattr $C$DW$41, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$41, DW_AT_location[DW_OP_breg13 12]
$C$DW$42 .dwtag DW_TAG_variable
.dwattr $C$DW$42, DW_AT_name("pucStreamBufferStorageArea")
.dwattr $C$DW$42, DW_AT_TI_symbol_name("pucStreamBufferStorageArea")
.dwattr $C$DW$42, DW_AT_type(*$C$DW$T$109)
.dwattr $C$DW$42, DW_AT_location[DW_OP_breg13 16]
$C$DW$43 .dwtag DW_TAG_variable
.dwattr $C$DW$43, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$43, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$43, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$43, DW_AT_location[DW_OP_breg13 20]
$C$DW$44 .dwtag DW_TAG_variable
.dwattr $C$DW$44, DW_AT_name("xReturn")
.dwattr $C$DW$44, DW_AT_TI_symbol_name("xReturn")
.dwattr $C$DW$44, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$44, DW_AT_location[DW_OP_breg13 24]
$C$DW$45 .dwtag DW_TAG_variable
.dwattr $C$DW$45, DW_AT_name("ucFlags")
.dwattr $C$DW$45, DW_AT_TI_symbol_name("ucFlags")
.dwattr $C$DW$45, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$45, DW_AT_location[DW_OP_breg13 28]
STR A4, [SP, #16] ; [DPU_V7M3_PIPE] |288|
STR A3, [SP, #12] ; [DPU_V7M3_PIPE] |288|
STR A2, [SP, #8] ; [DPU_V7M3_PIPE] |288|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |288|
.dwpsn file "../OS/stream_buffer.c",line 289,column 40,is_stmt,isa 1
;----------------------------------------------------------------------
; 289 | StreamBuffer_t * const pxStreamBuffer = ( StreamBuffer_t * ) pxStaticSt
; | reamBuffer; /*lint !e740 !e9087 Safe cast as StaticStreamBuffer_t is op
; | aque Streambuffer_t. */
; 290 | StreamBufferHandle_t xReturn;
; 291 | uint8_t ucFlags;
;----------------------------------------------------------------------
LDR A1, [SP, #40] ; [DPU_V7M3_PIPE] |289|
STR A1, [SP, #20] ; [DPU_V7M3_PIPE] |289|
.dwpsn file "../OS/stream_buffer.c",line 293,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 293 | configASSERT( pucStreamBufferStorageArea );
;----------------------------------------------------------------------
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |293|
CBNZ A1, ||$C$L2|| ; []
; BRANCHCC OCCURS {||$C$L2||} ; [] |293|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |293|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |293|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L1||
;*
;* Loop source line : 293
;* Loop closing brace source line : 293
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L1||:
B ||$C$L1|| ; [DPU_V7M3_PIPE] |293|
; BRANCH OCCURS {||$C$L1||} ; [] |293|
;* --------------------------------------------------------------------------*
||$C$L2||:
.dwpsn file "../OS/stream_buffer.c",line 294,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 294 | configASSERT( pxStaticStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #40] ; [DPU_V7M3_PIPE] |294|
CBNZ A1, ||$C$L4|| ; []
; BRANCHCC OCCURS {||$C$L4||} ; [] |294|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |294|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |294|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L3||
;*
;* Loop source line : 294
;* Loop closing brace source line : 294
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L3||:
B ||$C$L3|| ; [DPU_V7M3_PIPE] |294|
; BRANCH OCCURS {||$C$L3||} ; [] |294|
;* --------------------------------------------------------------------------*
||$C$L4||:
.dwpsn file "../OS/stream_buffer.c",line 295,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 295 | configASSERT( xTriggerLevelBytes <= xBufferSizeBytes );
;----------------------------------------------------------------------
LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |295|
LDR A3, [SP, #8] ; [DPU_V7M3_PIPE] |295|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |295|
CMP A2, A3 ; [DPU_V7M3_PIPE] |295|
BCC ||$C$L5|| ; [DPU_V7M3_PIPE] |295|
; BRANCHCC OCCURS {||$C$L5||} ; [] |295|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |295|
;* --------------------------------------------------------------------------*
||$C$L5||:
CBNZ A1, ||$C$L7|| ; []
; BRANCHCC OCCURS {||$C$L7||} ; [] |295|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |295|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |295|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L6||
;*
;* Loop source line : 295
;* Loop closing brace source line : 295
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L6||:
B ||$C$L6|| ; [DPU_V7M3_PIPE] |295|
; BRANCH OCCURS {||$C$L6||} ; [] |295|
;* --------------------------------------------------------------------------*
||$C$L7||:
.dwpsn file "../OS/stream_buffer.c",line 299,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 299 | if( xTriggerLevelBytes == ( size_t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |299|
CBNZ A1, ||$C$L8|| ; []
; BRANCHCC OCCURS {||$C$L8||} ; [] |299|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 301,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 301 | xTriggerLevelBytes = ( size_t ) 1;
;----------------------------------------------------------------------
MOVS A1, #1 ; [DPU_V7M3_PIPE] |301|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |301|
;* --------------------------------------------------------------------------*
||$C$L8||:
.dwpsn file "../OS/stream_buffer.c",line 304,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 304 | if( xIsMessageBuffer != pdFALSE )
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |304|
CBZ A1, ||$C$L9|| ; []
; BRANCHCC OCCURS {||$C$L9||} ; [] |304|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 307,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 307 | ucFlags = sbFLAGS_IS_MESSAGE_BUFFER | sbFLAGS_IS_STATICALLY_ALLOCATED;
;----------------------------------------------------------------------
MOVS A1, #3 ; [DPU_V7M3_PIPE] |307|
STRB A1, [SP, #28] ; [DPU_V7M3_PIPE] |307|
.dwpsn file "../OS/stream_buffer.c",line 308,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 309 | else
;----------------------------------------------------------------------
B ||$C$L10|| ; [DPU_V7M3_PIPE] |308|
; BRANCH OCCURS {||$C$L10||} ; [] |308|
;* --------------------------------------------------------------------------*
||$C$L9||:
.dwpsn file "../OS/stream_buffer.c",line 312,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 312 | ucFlags = sbFLAGS_IS_STATICALLY_ALLOCATED;
;----------------------------------------------------------------------
MOVS A1, #2 ; [DPU_V7M3_PIPE] |312|
STRB A1, [SP, #28] ; [DPU_V7M3_PIPE] |312|
;* --------------------------------------------------------------------------*
||$C$L10||:
.dwpsn file "../OS/stream_buffer.c",line 319,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 319 | configASSERT( xBufferSizeBytes > sbBYTES_TO_STORE_MESSAGE_LENGTH );
; 321 | #if( configASSERT_DEFINED == 1 )
;----------------------------------------------------------------------
LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |319|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |319|
CMP A2, #4 ; [DPU_V7M3_PIPE] |319|
BLS ||$C$L11|| ; [DPU_V7M3_PIPE] |319|
; BRANCHCC OCCURS {||$C$L11||} ; [] |319|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |319|
;* --------------------------------------------------------------------------*
||$C$L11||:
CBNZ A1, ||$C$L13|| ; []
; BRANCHCC OCCURS {||$C$L13||} ; [] |319|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |319|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |319|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L12||
;*
;* Loop source line : 319
;* Loop closing brace source line : 319
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L12||:
B ||$C$L12|| ; [DPU_V7M3_PIPE] |319|
; BRANCH OCCURS {||$C$L12||} ; [] |319|
;* --------------------------------------------------------------------------*
||$C$L13||:
$C$DW$46 .dwtag DW_TAG_lexical_block
.dwattr $C$DW$46, DW_AT_low_pc(0x00)
.dwattr $C$DW$46, DW_AT_high_pc(0x00)
$C$DW$47 .dwtag DW_TAG_variable
.dwattr $C$DW$47, DW_AT_name("xSize")
.dwattr $C$DW$47, DW_AT_TI_symbol_name("xSize")
.dwattr $C$DW$47, DW_AT_type(*$C$DW$T$33)
.dwattr $C$DW$47, DW_AT_location[DW_OP_breg13 32]
.dwpsn file "../OS/stream_buffer.c",line 326,column 26,is_stmt,isa 1
;----------------------------------------------------------------------
; 326 | volatile size_t xSize = sizeof( StaticStreamBuffer_t );
;----------------------------------------------------------------------
MOVS A1, #36 ; [DPU_V7M3_PIPE] |326|
STR A1, [SP, #32] ; [DPU_V7M3_PIPE] |326|
.dwpsn file "../OS/stream_buffer.c",line 327,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 327 | configASSERT( xSize == sizeof( StreamBuffer_t ) );
; 329 | #endif /* configASSERT_DEFINED */
;----------------------------------------------------------------------
LDR A2, [SP, #32] ; [DPU_V7M3_PIPE] |327|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |327|
CMP A2, #36 ; [DPU_V7M3_PIPE] |327|
BNE ||$C$L14|| ; [DPU_V7M3_PIPE] |327|
; BRANCHCC OCCURS {||$C$L14||} ; [] |327|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |327|
;* --------------------------------------------------------------------------*
||$C$L14||:
CBNZ A1, ||$C$L16|| ; []
; BRANCHCC OCCURS {||$C$L16||} ; [] |327|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |327|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |327|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L15||
;*
;* Loop source line : 327
;* Loop closing brace source line : 327
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L15||:
B ||$C$L15|| ; [DPU_V7M3_PIPE] |327|
; BRANCH OCCURS {||$C$L15||} ; [] |327|
;* --------------------------------------------------------------------------*
||$C$L16||:
.dwendtag $C$DW$46
.dwpsn file "../OS/stream_buffer.c",line 331,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 331 | if( ( pucStreamBufferStorageArea != NULL ) && ( pxStaticStreamBuffer !=
; | NULL ) )
;----------------------------------------------------------------------
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |331|
CBZ A1, ||$C$L17|| ; []
; BRANCHCC OCCURS {||$C$L17||} ; [] |331|
;* --------------------------------------------------------------------------*
LDR A1, [SP, #40] ; [DPU_V7M3_PIPE] |331|
CBZ A1, ||$C$L17|| ; []
; BRANCHCC OCCURS {||$C$L17||} ; [] |331|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 333,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 333 | prvInitialiseNewStreamBuffer( pxStreamBuffer,
; 334 | pucStreamBuff
; | erStorageArea,
; 335 | xBufferSizeBy
; | tes,
; 336 | xTriggerLevel
; | Bytes,
; 337 | ucFlags );
;----------------------------------------------------------------------
LDRB A1, [SP, #28] ; [DPU_V7M3_PIPE] |333|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |333|
LDR A2, [SP, #16] ; [DPU_V7M3_PIPE] |333|
LDR A3, [SP, #4] ; [DPU_V7M3_PIPE] |333|
LDR A4, [SP, #8] ; [DPU_V7M3_PIPE] |333|
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |333|
$C$DW$48 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$48, DW_AT_low_pc(0x00)
.dwattr $C$DW$48, DW_AT_name("prvInitialiseNewStreamBuffer")
.dwattr $C$DW$48, DW_AT_TI_call
BL prvInitialiseNewStreamBuffer ; [DPU_V7M3_PIPE] |333|
; CALL OCCURS {prvInitialiseNewStreamBuffer } ; [] |333|
.dwpsn file "../OS/stream_buffer.c",line 341,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 341 | pxStreamBuffer->ucFlags |= sbFLAGS_IS_STATICALLY_ALLOCATED;
; 343 | traceSTREAM_BUFFER_CREATE( pxStreamBuffer, xIsMessageBuffer );
;----------------------------------------------------------------------
LDR A2, [SP, #20] ; [DPU_V7M3_PIPE] |341|
LDRB A1, [A2, #28] ; [DPU_V7M3_PIPE] |341|
ORR A1, A1, #2 ; [DPU_V7M3_PIPE] |341|
STRB A1, [A2, #28] ; [DPU_V7M3_PIPE] |341|
.dwpsn file "../OS/stream_buffer.c",line 345,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 345 | xReturn = ( StreamBufferHandle_t ) pxStaticStreamBuffer; /*lint !e9087
; | Data hiding requires cast to opaque type. */
;----------------------------------------------------------------------
LDR A1, [SP, #40] ; [DPU_V7M3_PIPE] |345|
STR A1, [SP, #24] ; [DPU_V7M3_PIPE] |345|
.dwpsn file "../OS/stream_buffer.c",line 346,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 347 | else
;----------------------------------------------------------------------
B ||$C$L18|| ; [DPU_V7M3_PIPE] |346|
; BRANCH OCCURS {||$C$L18||} ; [] |346|
;* --------------------------------------------------------------------------*
||$C$L17||:
.dwpsn file "../OS/stream_buffer.c",line 349,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 349 | xReturn = NULL;
; 350 | traceSTREAM_BUFFER_CREATE_STATIC_FAILED( xReturn, xIsMessageBuffer );
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |349|
STR A1, [SP, #24] ; [DPU_V7M3_PIPE] |349|
;* --------------------------------------------------------------------------*
||$C$L18||:
.dwpsn file "../OS/stream_buffer.c",line 353,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 353 | return xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #24] ; [DPU_V7M3_PIPE] |353|
.dwpsn file "../OS/stream_buffer.c",line 354,column 2,is_stmt,isa 1
ADD SP, SP, #36 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
$C$DW$49 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$49, DW_AT_low_pc(0x00)
.dwattr $C$DW$49, DW_AT_TI_return
POP {PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
; BRANCH OCCURS ; []
.dwattr $C$DW$33, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$33, DW_AT_TI_end_line(0x162)
.dwattr $C$DW$33, DW_AT_TI_end_column(0x02)
.dwendentry
.dwendtag $C$DW$33
.sect ".text"
.clink
.thumbfunc vStreamBufferDelete
.thumb
.global vStreamBufferDelete
$C$DW$50 .dwtag DW_TAG_subprogram
.dwattr $C$DW$50, DW_AT_name("vStreamBufferDelete")
.dwattr $C$DW$50, DW_AT_low_pc(vStreamBufferDelete)
.dwattr $C$DW$50, DW_AT_high_pc(0x00)
.dwattr $C$DW$50, DW_AT_TI_symbol_name("vStreamBufferDelete")
.dwattr $C$DW$50, DW_AT_external
.dwattr $C$DW$50, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$50, DW_AT_TI_begin_line(0x167)
.dwattr $C$DW$50, DW_AT_TI_begin_column(0x06)
.dwattr $C$DW$50, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$50, DW_AT_decl_line(0x167)
.dwattr $C$DW$50, DW_AT_decl_column(0x06)
.dwattr $C$DW$50, DW_AT_TI_max_frame_size(0x10)
.dwpsn file "../OS/stream_buffer.c",line 360,column 1,is_stmt,address vStreamBufferDelete,isa 1
.dwfde $C$DW$CIE, vStreamBufferDelete
$C$DW$51 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$51, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$51, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$51, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$51, DW_AT_location[DW_OP_reg0]
;----------------------------------------------------------------------
; 359 | void vStreamBufferDelete( StreamBufferHandle_t xStreamBuffer )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: vStreamBufferDelete *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 8 Auto + 4 Save = 12 byte *
;*****************************************************************************
vStreamBufferDelete:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 16
.dwcfi save_reg_to_mem, 14, -4
.dwcfi save_reg_to_mem, 3, -8
.dwcfi save_reg_to_mem, 2, -12
.dwcfi save_reg_to_mem, 1, -16
$C$DW$52 .dwtag DW_TAG_variable
.dwattr $C$DW$52, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$52, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$52, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$52, DW_AT_location[DW_OP_breg13 0]
$C$DW$53 .dwtag DW_TAG_variable
.dwattr $C$DW$53, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$53, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$53, DW_AT_type(*$C$DW$T$105)
.dwattr $C$DW$53, DW_AT_location[DW_OP_breg13 4]
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |360|
.dwpsn file "../OS/stream_buffer.c",line 361,column 33,is_stmt,isa 1
;----------------------------------------------------------------------
; 361 | StreamBuffer_t * pxStreamBuffer = xStreamBuffer;
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |361|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |361|
.dwpsn file "../OS/stream_buffer.c",line 363,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 363 | configASSERT( pxStreamBuffer );
; 365 | traceSTREAM_BUFFER_DELETE( xStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |363|
CBNZ A1, ||$C$L20|| ; []
; BRANCHCC OCCURS {||$C$L20||} ; [] |363|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |363|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |363|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L19||
;*
;* Loop source line : 363
;* Loop closing brace source line : 363
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L19||:
B ||$C$L19|| ; [DPU_V7M3_PIPE] |363|
; BRANCH OCCURS {||$C$L19||} ; [] |363|
;* --------------------------------------------------------------------------*
||$C$L20||:
.dwpsn file "../OS/stream_buffer.c",line 367,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 367 | if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_STATICALLY_ALLOCATED ) == (
; | uint8_t ) pdFALSE )
; 369 | #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
; 373 | vPortFree( ( void * ) pxStreamBuffer ); /*lint !e9087 S
; | tandard free() semantics require void *, plus pxStreamBuffer was alloca
; | ted by pvPortMalloc(). */
; 375 | #else
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |367|
LDRB A1, [A1, #28] ; [DPU_V7M3_PIPE] |367|
LSRS A1, A1, #2 ; [DPU_V7M3_PIPE] |367|
BCS ||$C$L23|| ; [DPU_V7M3_PIPE] |367|
; BRANCHCC OCCURS {||$C$L23||} ; [] |367|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 379,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 379 | configASSERT( xStreamBuffer == ( StreamBufferHandle_t ) ~0 );
; 381 | #endif
; 383 | else
;----------------------------------------------------------------------
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |379|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |379|
CMP A2, #-1 ; [DPU_V7M3_PIPE] |379|
BNE ||$C$L21|| ; [DPU_V7M3_PIPE] |379|
; BRANCHCC OCCURS {||$C$L21||} ; [] |379|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |379|
;* --------------------------------------------------------------------------*
||$C$L21||:
CBNZ A1, ||$C$L24|| ; []
; BRANCHCC OCCURS {||$C$L24||} ; [] |379|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |379|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |379|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L22||
;*
;* Loop source line : 379
;* Loop closing brace source line : 379
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L22||:
B ||$C$L22|| ; [DPU_V7M3_PIPE] |379|
; BRANCH OCCURS {||$C$L22||} ; [] |379|
;* --------------------------------------------------------------------------*
;* --------------------------------------------------------------------------*
||$C$L23||:
.dwpsn file "../OS/stream_buffer.c",line 387,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 387 | ( void ) memset( pxStreamBuffer, 0x00, sizeof( StreamBuffer_t ) );
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |387|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |387|
MOVS A3, #36 ; [DPU_V7M3_PIPE] |387|
$C$DW$54 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$54, DW_AT_low_pc(0x00)
.dwattr $C$DW$54, DW_AT_name("memset")
.dwattr $C$DW$54, DW_AT_TI_call
BL memset ; [DPU_V7M3_PIPE] |387|
; CALL OCCURS {memset } ; [] |387|
.dwpsn file "../OS/stream_buffer.c",line 389,column 1,is_stmt,isa 1
;* --------------------------------------------------------------------------*
||$C$L24||:
$C$DW$55 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$55, DW_AT_low_pc(0x00)
.dwattr $C$DW$55, DW_AT_TI_return
POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
.dwcfi restore_reg, 3
.dwcfi restore_reg, 2
.dwcfi restore_reg, 1
; BRANCH OCCURS ; []
.dwattr $C$DW$50, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$50, DW_AT_TI_end_line(0x185)
.dwattr $C$DW$50, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$50
.sect ".text"
.clink
.thumbfunc xStreamBufferReset
.thumb
.global xStreamBufferReset
$C$DW$56 .dwtag DW_TAG_subprogram
.dwattr $C$DW$56, DW_AT_name("xStreamBufferReset")
.dwattr $C$DW$56, DW_AT_low_pc(xStreamBufferReset)
.dwattr $C$DW$56, DW_AT_high_pc(0x00)
.dwattr $C$DW$56, DW_AT_TI_symbol_name("xStreamBufferReset")
.dwattr $C$DW$56, DW_AT_external
.dwattr $C$DW$56, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$56, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$56, DW_AT_TI_begin_line(0x188)
.dwattr $C$DW$56, DW_AT_TI_begin_column(0x0c)
.dwattr $C$DW$56, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$56, DW_AT_decl_line(0x188)
.dwattr $C$DW$56, DW_AT_decl_column(0x0c)
.dwattr $C$DW$56, DW_AT_TI_max_frame_size(0x18)
.dwpsn file "../OS/stream_buffer.c",line 393,column 1,is_stmt,address xStreamBufferReset,isa 1
.dwfde $C$DW$CIE, xStreamBufferReset
$C$DW$57 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$57, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$57, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$57, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$57, DW_AT_location[DW_OP_reg0]
;----------------------------------------------------------------------
; 392 | BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferReset *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 4 Args + 16 Auto + 4 Save = 24 byte *
;*****************************************************************************
xStreamBufferReset:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
.dwcfi save_reg_to_mem, 14, -4
SUB SP, SP, #20 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 24
$C$DW$58 .dwtag DW_TAG_variable
.dwattr $C$DW$58, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$58, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$58, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$58, DW_AT_location[DW_OP_breg13 4]
$C$DW$59 .dwtag DW_TAG_variable
.dwattr $C$DW$59, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$59, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$59, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$59, DW_AT_location[DW_OP_breg13 8]
$C$DW$60 .dwtag DW_TAG_variable
.dwattr $C$DW$60, DW_AT_name("xReturn")
.dwattr $C$DW$60, DW_AT_TI_symbol_name("xReturn")
.dwattr $C$DW$60, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$60, DW_AT_location[DW_OP_breg13 12]
$C$DW$61 .dwtag DW_TAG_variable
.dwattr $C$DW$61, DW_AT_name("uxStreamBufferNumber")
.dwattr $C$DW$61, DW_AT_TI_symbol_name("uxStreamBufferNumber")
.dwattr $C$DW$61, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$61, DW_AT_location[DW_OP_breg13 16]
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |393|
.dwpsn file "../OS/stream_buffer.c",line 394,column 39,is_stmt,isa 1
;----------------------------------------------------------------------
; 394 | StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |394|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |394|
.dwpsn file "../OS/stream_buffer.c",line 395,column 20,is_stmt,isa 1
;----------------------------------------------------------------------
; 395 | BaseType_t xReturn = pdFAIL;
; 397 | #if( configUSE_TRACE_FACILITY == 1 )
; 398 | UBaseType_t uxStreamBufferNumber;
; 399 | #endif
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |395|
STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |395|
.dwpsn file "../OS/stream_buffer.c",line 401,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 401 | configASSERT( pxStreamBuffer );
; 403 | #if( configUSE_TRACE_FACILITY == 1 )
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |401|
CBNZ A1, ||$C$L26|| ; []
; BRANCHCC OCCURS {||$C$L26||} ; [] |401|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |401|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |401|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L25||
;*
;* Loop source line : 401
;* Loop closing brace source line : 401
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L25||:
B ||$C$L25|| ; [DPU_V7M3_PIPE] |401|
; BRANCH OCCURS {||$C$L25||} ; [] |401|
;* --------------------------------------------------------------------------*
||$C$L26||:
.dwpsn file "../OS/stream_buffer.c",line 407,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 407 | uxStreamBufferNumber = pxStreamBuffer->uxStreamBufferNumber;
; 409 | #endif
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |407|
LDR A1, [A1, #32] ; [DPU_V7M3_PIPE] |407|
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |407|
.dwpsn file "../OS/stream_buffer.c",line 412,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 412 | taskENTER_CRITICAL();
;----------------------------------------------------------------------
$C$DW$62 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$62, DW_AT_low_pc(0x00)
.dwattr $C$DW$62, DW_AT_name("vPortEnterCritical")
.dwattr $C$DW$62, DW_AT_TI_call
BL vPortEnterCritical ; [DPU_V7M3_PIPE] |412|
; CALL OCCURS {vPortEnterCritical } ; [] |412|
.dwpsn file "../OS/stream_buffer.c",line 414,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 414 | if( pxStreamBuffer->xTaskWaitingToReceive == NULL )
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |414|
LDR A1, [A1, #16] ; [DPU_V7M3_PIPE] |414|
CBNZ A1, ||$C$L27|| ; []
; BRANCHCC OCCURS {||$C$L27||} ; [] |414|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 416,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 416 | if( pxStreamBuffer->xTaskWaitingToSend == NULL )
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |416|
LDR A1, [A1, #20] ; [DPU_V7M3_PIPE] |416|
CBNZ A1, ||$C$L27|| ; []
; BRANCHCC OCCURS {||$C$L27||} ; [] |416|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 418,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 418 | prvInitialiseNewStreamBuffer( pxStreamBuffer,
; 419 | pxStreamBuffe
; | r->pucBuffer,
; 420 | pxStreamBuffe
; | r->xLength,
; 421 | pxStreamBuffe
; | r->xTriggerLevelBytes,
; 422 | pxStreamBuffe
; | r->ucFlags );
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |418|
LDRB A1, [A1, #28] ; [DPU_V7M3_PIPE] |418|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |418|
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |418|
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |418|
LDR A3, [SP, #8] ; [DPU_V7M3_PIPE] |418|
LDR A4, [A1, #12] ; [DPU_V7M3_PIPE] |418|
LDR A2, [A2, #24] ; [DPU_V7M3_PIPE] |418|
LDR A3, [A3, #8] ; [DPU_V7M3_PIPE] |418|
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |418|
$C$DW$63 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$63, DW_AT_low_pc(0x00)
.dwattr $C$DW$63, DW_AT_name("prvInitialiseNewStreamBuffer")
.dwattr $C$DW$63, DW_AT_TI_call
BL prvInitialiseNewStreamBuffer ; [DPU_V7M3_PIPE] |418|
; CALL OCCURS {prvInitialiseNewStreamBuffer } ; [] |418|
.dwpsn file "../OS/stream_buffer.c",line 423,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 423 | xReturn = pdPASS;
; 425 | #if( configUSE_TRACE_FACILITY == 1 )
;----------------------------------------------------------------------
MOVS A1, #1 ; [DPU_V7M3_PIPE] |423|
STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |423|
.dwpsn file "../OS/stream_buffer.c",line 427,column 6,is_stmt,isa 1
;----------------------------------------------------------------------
; 427 | pxStreamBuffer->uxStreamBufferNumber = uxStreamBufferNumber;
; 429 | #endif
; 431 | traceSTREAM_BUFFER_RESET( xStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |427|
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |427|
STR A1, [A2, #32] ; [DPU_V7M3_PIPE] |427|
;* --------------------------------------------------------------------------*
||$C$L27||:
.dwpsn file "../OS/stream_buffer.c",line 435,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 435 | taskEXIT_CRITICAL();
;----------------------------------------------------------------------
$C$DW$64 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$64, DW_AT_low_pc(0x00)
.dwattr $C$DW$64, DW_AT_name("vPortExitCritical")
.dwattr $C$DW$64, DW_AT_TI_call
BL vPortExitCritical ; [DPU_V7M3_PIPE] |435|
; CALL OCCURS {vPortExitCritical } ; [] |435|
.dwpsn file "../OS/stream_buffer.c",line 437,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 437 | return xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |437|
.dwpsn file "../OS/stream_buffer.c",line 438,column 1,is_stmt,isa 1
ADD SP, SP, #20 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
$C$DW$65 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$65, DW_AT_low_pc(0x00)
.dwattr $C$DW$65, DW_AT_TI_return
POP {PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
; BRANCH OCCURS ; []
.dwattr $C$DW$56, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$56, DW_AT_TI_end_line(0x1b6)
.dwattr $C$DW$56, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$56
.sect ".text"
.clink
.thumbfunc xStreamBufferSetTriggerLevel
.thumb
.global xStreamBufferSetTriggerLevel
$C$DW$66 .dwtag DW_TAG_subprogram
.dwattr $C$DW$66, DW_AT_name("xStreamBufferSetTriggerLevel")
.dwattr $C$DW$66, DW_AT_low_pc(xStreamBufferSetTriggerLevel)
.dwattr $C$DW$66, DW_AT_high_pc(0x00)
.dwattr $C$DW$66, DW_AT_TI_symbol_name("xStreamBufferSetTriggerLevel")
.dwattr $C$DW$66, DW_AT_external
.dwattr $C$DW$66, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$66, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$66, DW_AT_TI_begin_line(0x1b9)
.dwattr $C$DW$66, DW_AT_TI_begin_column(0x0c)
.dwattr $C$DW$66, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$66, DW_AT_decl_line(0x1b9)
.dwattr $C$DW$66, DW_AT_decl_column(0x0c)
.dwattr $C$DW$66, DW_AT_TI_max_frame_size(0x10)
.dwpsn file "../OS/stream_buffer.c",line 442,column 1,is_stmt,address xStreamBufferSetTriggerLevel,isa 1
.dwfde $C$DW$CIE, xStreamBufferSetTriggerLevel
$C$DW$67 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$67, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$67, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$67, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$67, DW_AT_location[DW_OP_reg0]
$C$DW$68 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$68, DW_AT_name("xTriggerLevel")
.dwattr $C$DW$68, DW_AT_TI_symbol_name("xTriggerLevel")
.dwattr $C$DW$68, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$68, DW_AT_location[DW_OP_reg1]
;----------------------------------------------------------------------
; 441 | BaseType_t xStreamBufferSetTriggerLevel( StreamBufferHandle_t xStreamBu
; | ffer, size_t xTriggerLevel )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferSetTriggerLevel *
;* *
;* Regs Modified : A1,A2,SP,SR *
;* Regs Used : A1,A2,SP,LR,SR *
;* Local Frame Size : 0 Args + 16 Auto + 0 Save = 16 byte *
;*****************************************************************************
xStreamBufferSetTriggerLevel:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
SUB SP, SP, #16 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 16
$C$DW$69 .dwtag DW_TAG_variable
.dwattr $C$DW$69, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$69, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$69, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$69, DW_AT_location[DW_OP_breg13 0]
$C$DW$70 .dwtag DW_TAG_variable
.dwattr $C$DW$70, DW_AT_name("xTriggerLevel")
.dwattr $C$DW$70, DW_AT_TI_symbol_name("xTriggerLevel")
.dwattr $C$DW$70, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$70, DW_AT_location[DW_OP_breg13 4]
$C$DW$71 .dwtag DW_TAG_variable
.dwattr $C$DW$71, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$71, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$71, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$71, DW_AT_location[DW_OP_breg13 8]
$C$DW$72 .dwtag DW_TAG_variable
.dwattr $C$DW$72, DW_AT_name("xReturn")
.dwattr $C$DW$72, DW_AT_TI_symbol_name("xReturn")
.dwattr $C$DW$72, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$72, DW_AT_location[DW_OP_breg13 12]
STR A2, [SP, #4] ; [DPU_V7M3_PIPE] |442|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |442|
.dwpsn file "../OS/stream_buffer.c",line 443,column 39,is_stmt,isa 1
;----------------------------------------------------------------------
; 443 | StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
; 444 | BaseType_t xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |443|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |443|
.dwpsn file "../OS/stream_buffer.c",line 446,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 446 | configASSERT( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |446|
CBNZ A1, ||$C$L29|| ; []
; BRANCHCC OCCURS {||$C$L29||} ; [] |446|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |446|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |446|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L28||
;*
;* Loop source line : 446
;* Loop closing brace source line : 446
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L28||:
B ||$C$L28|| ; [DPU_V7M3_PIPE] |446|
; BRANCH OCCURS {||$C$L28||} ; [] |446|
;* --------------------------------------------------------------------------*
||$C$L29||:
.dwpsn file "../OS/stream_buffer.c",line 449,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 449 | if( xTriggerLevel == ( size_t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |449|
CBNZ A1, ||$C$L30|| ; []
; BRANCHCC OCCURS {||$C$L30||} ; [] |449|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 451,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 451 | xTriggerLevel = ( size_t ) 1;
;----------------------------------------------------------------------
MOVS A1, #1 ; [DPU_V7M3_PIPE] |451|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |451|
;* --------------------------------------------------------------------------*
||$C$L30||:
.dwpsn file "../OS/stream_buffer.c",line 456,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 456 | if( xTriggerLevel <= pxStreamBuffer->xLength )
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |456|
LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |456|
LDR A1, [A1, #8] ; [DPU_V7M3_PIPE] |456|
CMP A1, A2 ; [DPU_V7M3_PIPE] |456|
BCC ||$C$L31|| ; [DPU_V7M3_PIPE] |456|
; BRANCHCC OCCURS {||$C$L31||} ; [] |456|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 458,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 458 | pxStreamBuffer->xTriggerLevelBytes = xTriggerLevel;
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |458|
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |458|
STR A1, [A2, #12] ; [DPU_V7M3_PIPE] |458|
.dwpsn file "../OS/stream_buffer.c",line 459,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 459 | xReturn = pdPASS;
;----------------------------------------------------------------------
MOVS A1, #1 ; [DPU_V7M3_PIPE] |459|
STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |459|
.dwpsn file "../OS/stream_buffer.c",line 460,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 461 | else
;----------------------------------------------------------------------
B ||$C$L32|| ; [DPU_V7M3_PIPE] |460|
; BRANCH OCCURS {||$C$L32||} ; [] |460|
;* --------------------------------------------------------------------------*
||$C$L31||:
.dwpsn file "../OS/stream_buffer.c",line 463,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 463 | xReturn = pdFALSE;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |463|
STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |463|
;* --------------------------------------------------------------------------*
||$C$L32||:
.dwpsn file "../OS/stream_buffer.c",line 466,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 466 | return xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |466|
.dwpsn file "../OS/stream_buffer.c",line 467,column 1,is_stmt,isa 1
ADD SP, SP, #16 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
$C$DW$73 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$73, DW_AT_low_pc(0x00)
.dwattr $C$DW$73, DW_AT_TI_return
BX LR ; [DPU_V7M3_PIPE]
; BRANCH OCCURS ; []
.dwattr $C$DW$66, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$66, DW_AT_TI_end_line(0x1d3)
.dwattr $C$DW$66, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$66
.sect ".text"
.clink
.thumbfunc xStreamBufferSpacesAvailable
.thumb
.global xStreamBufferSpacesAvailable
$C$DW$74 .dwtag DW_TAG_subprogram
.dwattr $C$DW$74, DW_AT_name("xStreamBufferSpacesAvailable")
.dwattr $C$DW$74, DW_AT_low_pc(xStreamBufferSpacesAvailable)
.dwattr $C$DW$74, DW_AT_high_pc(0x00)
.dwattr $C$DW$74, DW_AT_TI_symbol_name("xStreamBufferSpacesAvailable")
.dwattr $C$DW$74, DW_AT_external
.dwattr $C$DW$74, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$74, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$74, DW_AT_TI_begin_line(0x1d6)
.dwattr $C$DW$74, DW_AT_TI_begin_column(0x08)
.dwattr $C$DW$74, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$74, DW_AT_decl_line(0x1d6)
.dwattr $C$DW$74, DW_AT_decl_column(0x08)
.dwattr $C$DW$74, DW_AT_TI_max_frame_size(0x10)
.dwpsn file "../OS/stream_buffer.c",line 471,column 1,is_stmt,address xStreamBufferSpacesAvailable,isa 1
.dwfde $C$DW$CIE, xStreamBufferSpacesAvailable
$C$DW$75 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$75, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$75, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$75, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$75, DW_AT_location[DW_OP_reg0]
;----------------------------------------------------------------------
; 470 | size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer
; | )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferSpacesAvailable *
;* *
;* Regs Modified : A1,A2,SP,SR *
;* Regs Used : A1,A2,SP,LR,SR *
;* Local Frame Size : 0 Args + 12 Auto + 0 Save = 12 byte *
;*****************************************************************************
xStreamBufferSpacesAvailable:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
SUB SP, SP, #16 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 16
$C$DW$76 .dwtag DW_TAG_variable
.dwattr $C$DW$76, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$76, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$76, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$76, DW_AT_location[DW_OP_breg13 0]
$C$DW$77 .dwtag DW_TAG_variable
.dwattr $C$DW$77, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$77, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$77, DW_AT_type(*$C$DW$T$104)
.dwattr $C$DW$77, DW_AT_location[DW_OP_breg13 4]
$C$DW$78 .dwtag DW_TAG_variable
.dwattr $C$DW$78, DW_AT_name("xSpace")
.dwattr $C$DW$78, DW_AT_TI_symbol_name("xSpace")
.dwattr $C$DW$78, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$78, DW_AT_location[DW_OP_breg13 8]
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |471|
.dwpsn file "../OS/stream_buffer.c",line 472,column 45,is_stmt,isa 1
;----------------------------------------------------------------------
; 472 | const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
; 473 | size_t xSpace;
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |472|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |472|
.dwpsn file "../OS/stream_buffer.c",line 475,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 475 | configASSERT( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |475|
CBNZ A1, ||$C$L34|| ; []
; BRANCHCC OCCURS {||$C$L34||} ; [] |475|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |475|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |475|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L33||
;*
;* Loop source line : 475
;* Loop closing brace source line : 475
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L33||:
B ||$C$L33|| ; [DPU_V7M3_PIPE] |475|
; BRANCH OCCURS {||$C$L33||} ; [] |475|
;* --------------------------------------------------------------------------*
||$C$L34||:
.dwpsn file "../OS/stream_buffer.c",line 477,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 477 | xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail;
;----------------------------------------------------------------------
LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |477|
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |477|
LDR A2, [A2, #0] ; [DPU_V7M3_PIPE] |477|
LDR A1, [A1, #8] ; [DPU_V7M3_PIPE] |477|
ADDS A1, A1, A2 ; [DPU_V7M3_PIPE] |477|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |477|
.dwpsn file "../OS/stream_buffer.c",line 478,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 478 | xSpace -= pxStreamBuffer->xHead;
;----------------------------------------------------------------------
LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |478|
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |478|
LDR A2, [A2, #4] ; [DPU_V7M3_PIPE] |478|
SUBS A1, A1, A2 ; [DPU_V7M3_PIPE] |478|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |478|
.dwpsn file "../OS/stream_buffer.c",line 479,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 479 | xSpace -= ( size_t ) 1;
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |479|
SUBS A1, A1, #1 ; [DPU_V7M3_PIPE] |479|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |479|
.dwpsn file "../OS/stream_buffer.c",line 481,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 481 | if( xSpace >= pxStreamBuffer->xLength )
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |481|
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |481|
LDR A1, [A1, #8] ; [DPU_V7M3_PIPE] |481|
CMP A1, A2 ; [DPU_V7M3_PIPE] |481|
BHI ||$C$L35|| ; [DPU_V7M3_PIPE] |481|
; BRANCHCC OCCURS {||$C$L35||} ; [] |481|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 483,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 483 | xSpace -= pxStreamBuffer->xLength;
;----------------------------------------------------------------------
LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |483|
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |483|
LDR A2, [A2, #8] ; [DPU_V7M3_PIPE] |483|
SUBS A1, A1, A2 ; [DPU_V7M3_PIPE] |483|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |483|
.dwpsn file "../OS/stream_buffer.c",line 484,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 485 | else
; 487 | mtCOVERAGE_TEST_MARKER();
;----------------------------------------------------------------------
;* --------------------------------------------------------------------------*
||$C$L35||:
.dwpsn file "../OS/stream_buffer.c",line 490,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 490 | return xSpace;
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |490|
.dwpsn file "../OS/stream_buffer.c",line 491,column 1,is_stmt,isa 1
ADD SP, SP, #16 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
$C$DW$79 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$79, DW_AT_low_pc(0x00)
.dwattr $C$DW$79, DW_AT_TI_return
BX LR ; [DPU_V7M3_PIPE]
; BRANCH OCCURS ; []
.dwattr $C$DW$74, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$74, DW_AT_TI_end_line(0x1eb)
.dwattr $C$DW$74, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$74
.sect ".text"
.clink
.thumbfunc xStreamBufferBytesAvailable
.thumb
.global xStreamBufferBytesAvailable
$C$DW$80 .dwtag DW_TAG_subprogram
.dwattr $C$DW$80, DW_AT_name("xStreamBufferBytesAvailable")
.dwattr $C$DW$80, DW_AT_low_pc(xStreamBufferBytesAvailable)
.dwattr $C$DW$80, DW_AT_high_pc(0x00)
.dwattr $C$DW$80, DW_AT_TI_symbol_name("xStreamBufferBytesAvailable")
.dwattr $C$DW$80, DW_AT_external
.dwattr $C$DW$80, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$80, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$80, DW_AT_TI_begin_line(0x1ee)
.dwattr $C$DW$80, DW_AT_TI_begin_column(0x08)
.dwattr $C$DW$80, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$80, DW_AT_decl_line(0x1ee)
.dwattr $C$DW$80, DW_AT_decl_column(0x08)
.dwattr $C$DW$80, DW_AT_TI_max_frame_size(0x10)
.dwpsn file "../OS/stream_buffer.c",line 495,column 1,is_stmt,address xStreamBufferBytesAvailable,isa 1
.dwfde $C$DW$CIE, xStreamBufferBytesAvailable
$C$DW$81 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$81, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$81, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$81, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$81, DW_AT_location[DW_OP_reg0]
;----------------------------------------------------------------------
; 494 | size_t xStreamBufferBytesAvailable( StreamBufferHandle_t xStreamBuffer
; | )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferBytesAvailable *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 12 Auto + 4 Save = 16 byte *
;*****************************************************************************
xStreamBufferBytesAvailable:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {A2, A3, A4, LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 16
.dwcfi save_reg_to_mem, 14, -4
.dwcfi save_reg_to_mem, 3, -8
.dwcfi save_reg_to_mem, 2, -12
.dwcfi save_reg_to_mem, 1, -16
$C$DW$82 .dwtag DW_TAG_variable
.dwattr $C$DW$82, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$82, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$82, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$82, DW_AT_location[DW_OP_breg13 0]
$C$DW$83 .dwtag DW_TAG_variable
.dwattr $C$DW$83, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$83, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$83, DW_AT_type(*$C$DW$T$104)
.dwattr $C$DW$83, DW_AT_location[DW_OP_breg13 4]
$C$DW$84 .dwtag DW_TAG_variable
.dwattr $C$DW$84, DW_AT_name("xReturn")
.dwattr $C$DW$84, DW_AT_TI_symbol_name("xReturn")
.dwattr $C$DW$84, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$84, DW_AT_location[DW_OP_breg13 8]
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |495|
.dwpsn file "../OS/stream_buffer.c",line 496,column 45,is_stmt,isa 1
;----------------------------------------------------------------------
; 496 | const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
; 497 | size_t xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |496|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |496|
.dwpsn file "../OS/stream_buffer.c",line 499,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 499 | configASSERT( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |499|
CBNZ A1, ||$C$L37|| ; []
; BRANCHCC OCCURS {||$C$L37||} ; [] |499|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |499|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |499|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L36||
;*
;* Loop source line : 499
;* Loop closing brace source line : 499
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L36||:
B ||$C$L36|| ; [DPU_V7M3_PIPE] |499|
; BRANCH OCCURS {||$C$L36||} ; [] |499|
;* --------------------------------------------------------------------------*
||$C$L37||:
.dwpsn file "../OS/stream_buffer.c",line 501,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 501 | xReturn = prvBytesInBuffer( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |501|
$C$DW$85 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$85, DW_AT_low_pc(0x00)
.dwattr $C$DW$85, DW_AT_name("prvBytesInBuffer")
.dwattr $C$DW$85, DW_AT_TI_call
BL prvBytesInBuffer ; [DPU_V7M3_PIPE] |501|
; CALL OCCURS {prvBytesInBuffer } ; [] |501|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |501|
.dwpsn file "../OS/stream_buffer.c",line 502,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 502 | return xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |502|
.dwpsn file "../OS/stream_buffer.c",line 503,column 1,is_stmt,isa 1
$C$DW$86 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$86, DW_AT_low_pc(0x00)
.dwattr $C$DW$86, DW_AT_TI_return
POP {A2, A3, A4, PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
.dwcfi restore_reg, 3
.dwcfi restore_reg, 2
.dwcfi restore_reg, 1
; BRANCH OCCURS ; []
.dwattr $C$DW$80, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$80, DW_AT_TI_end_line(0x1f7)
.dwattr $C$DW$80, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$80
.sect ".text"
.clink
.thumbfunc xStreamBufferSend
.thumb
.global xStreamBufferSend
$C$DW$87 .dwtag DW_TAG_subprogram
.dwattr $C$DW$87, DW_AT_name("xStreamBufferSend")
.dwattr $C$DW$87, DW_AT_low_pc(xStreamBufferSend)
.dwattr $C$DW$87, DW_AT_high_pc(0x00)
.dwattr $C$DW$87, DW_AT_TI_symbol_name("xStreamBufferSend")
.dwattr $C$DW$87, DW_AT_external
.dwattr $C$DW$87, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$87, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$87, DW_AT_TI_begin_line(0x1fa)
.dwattr $C$DW$87, DW_AT_TI_begin_column(0x08)
.dwattr $C$DW$87, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$87, DW_AT_decl_line(0x1fa)
.dwattr $C$DW$87, DW_AT_decl_column(0x08)
.dwattr $C$DW$87, DW_AT_TI_max_frame_size(0x38)
.dwpsn file "../OS/stream_buffer.c",line 510,column 1,is_stmt,address xStreamBufferSend,isa 1
.dwfde $C$DW$CIE, xStreamBufferSend
$C$DW$88 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$88, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$88, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$88, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$88, DW_AT_location[DW_OP_reg0]
$C$DW$89 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$89, DW_AT_name("pvTxData")
.dwattr $C$DW$89, DW_AT_TI_symbol_name("pvTxData")
.dwattr $C$DW$89, DW_AT_type(*$C$DW$T$117)
.dwattr $C$DW$89, DW_AT_location[DW_OP_reg1]
$C$DW$90 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$90, DW_AT_name("xDataLengthBytes")
.dwattr $C$DW$90, DW_AT_TI_symbol_name("xDataLengthBytes")
.dwattr $C$DW$90, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$90, DW_AT_location[DW_OP_reg2]
$C$DW$91 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$91, DW_AT_name("xTicksToWait")
.dwattr $C$DW$91, DW_AT_TI_symbol_name("xTicksToWait")
.dwattr $C$DW$91, DW_AT_type(*$C$DW$T$46)
.dwattr $C$DW$91, DW_AT_location[DW_OP_reg3]
;----------------------------------------------------------------------
; 506 | size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
; 507 | const void *pvTxData,
; 508 | size_t xDataLengthBytes,
; 509 | TickType_t xTicksToWait )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferSend *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 4 Args + 44 Auto + 4 Save = 52 byte *
;*****************************************************************************
xStreamBufferSend:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
.dwcfi save_reg_to_mem, 14, -4
SUB SP, SP, #52 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 56
$C$DW$92 .dwtag DW_TAG_variable
.dwattr $C$DW$92, DW_AT_name("xTimeOut")
.dwattr $C$DW$92, DW_AT_TI_symbol_name("xTimeOut")
.dwattr $C$DW$92, DW_AT_type(*$C$DW$T$121)
.dwattr $C$DW$92, DW_AT_location[DW_OP_breg13 8]
$C$DW$93 .dwtag DW_TAG_variable
.dwattr $C$DW$93, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$93, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$93, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$93, DW_AT_location[DW_OP_breg13 16]
$C$DW$94 .dwtag DW_TAG_variable
.dwattr $C$DW$94, DW_AT_name("pvTxData")
.dwattr $C$DW$94, DW_AT_TI_symbol_name("pvTxData")
.dwattr $C$DW$94, DW_AT_type(*$C$DW$T$117)
.dwattr $C$DW$94, DW_AT_location[DW_OP_breg13 20]
$C$DW$95 .dwtag DW_TAG_variable
.dwattr $C$DW$95, DW_AT_name("xDataLengthBytes")
.dwattr $C$DW$95, DW_AT_TI_symbol_name("xDataLengthBytes")
.dwattr $C$DW$95, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$95, DW_AT_location[DW_OP_breg13 24]
$C$DW$96 .dwtag DW_TAG_variable
.dwattr $C$DW$96, DW_AT_name("xTicksToWait")
.dwattr $C$DW$96, DW_AT_TI_symbol_name("xTicksToWait")
.dwattr $C$DW$96, DW_AT_type(*$C$DW$T$46)
.dwattr $C$DW$96, DW_AT_location[DW_OP_breg13 28]
$C$DW$97 .dwtag DW_TAG_variable
.dwattr $C$DW$97, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$97, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$97, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$97, DW_AT_location[DW_OP_breg13 32]
$C$DW$98 .dwtag DW_TAG_variable
.dwattr $C$DW$98, DW_AT_name("xReturn")
.dwattr $C$DW$98, DW_AT_TI_symbol_name("xReturn")
.dwattr $C$DW$98, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$98, DW_AT_location[DW_OP_breg13 36]
$C$DW$99 .dwtag DW_TAG_variable
.dwattr $C$DW$99, DW_AT_name("xSpace")
.dwattr $C$DW$99, DW_AT_TI_symbol_name("xSpace")
.dwattr $C$DW$99, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$99, DW_AT_location[DW_OP_breg13 40]
$C$DW$100 .dwtag DW_TAG_variable
.dwattr $C$DW$100, DW_AT_name("xRequiredSpace")
.dwattr $C$DW$100, DW_AT_TI_symbol_name("xRequiredSpace")
.dwattr $C$DW$100, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$100, DW_AT_location[DW_OP_breg13 44]
STR A4, [SP, #28] ; [DPU_V7M3_PIPE] |510|
STR A3, [SP, #24] ; [DPU_V7M3_PIPE] |510|
STR A2, [SP, #20] ; [DPU_V7M3_PIPE] |510|
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |510|
.dwpsn file "../OS/stream_buffer.c",line 511,column 39,is_stmt,isa 1
;----------------------------------------------------------------------
; 511 | StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
;----------------------------------------------------------------------
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |511|
STR A1, [SP, #32] ; [DPU_V7M3_PIPE] |511|
.dwpsn file "../OS/stream_buffer.c",line 512,column 24,is_stmt,isa 1
;----------------------------------------------------------------------
; 512 | size_t xReturn, xSpace = 0;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |512|
STR A1, [SP, #40] ; [DPU_V7M3_PIPE] |512|
.dwpsn file "../OS/stream_buffer.c",line 513,column 23,is_stmt,isa 1
;----------------------------------------------------------------------
; 513 | size_t xRequiredSpace = xDataLengthBytes;
; 514 | TimeOut_t xTimeOut;
;----------------------------------------------------------------------
LDR A1, [SP, #24] ; [DPU_V7M3_PIPE] |513|
STR A1, [SP, #44] ; [DPU_V7M3_PIPE] |513|
.dwpsn file "../OS/stream_buffer.c",line 516,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 516 | configASSERT( pvTxData );
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |516|
CBNZ A1, ||$C$L39|| ; []
; BRANCHCC OCCURS {||$C$L39||} ; [] |516|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |516|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |516|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L38||
;*
;* Loop source line : 516
;* Loop closing brace source line : 516
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L38||:
B ||$C$L38|| ; [DPU_V7M3_PIPE] |516|
; BRANCH OCCURS {||$C$L38||} ; [] |516|
;* --------------------------------------------------------------------------*
||$C$L39||:
.dwpsn file "../OS/stream_buffer.c",line 517,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 517 | configASSERT( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |517|
CBNZ A1, ||$C$L41|| ; []
; BRANCHCC OCCURS {||$C$L41||} ; [] |517|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |517|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |517|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L40||
;*
;* Loop source line : 517
;* Loop closing brace source line : 517
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L40||:
B ||$C$L40|| ; [DPU_V7M3_PIPE] |517|
; BRANCH OCCURS {||$C$L40||} ; [] |517|
;* --------------------------------------------------------------------------*
||$C$L41||:
.dwpsn file "../OS/stream_buffer.c",line 523,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 523 | if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_
; | t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |523|
LDRB A1, [A1, #28] ; [DPU_V7M3_PIPE] |523|
LSRS A1, A1, #1 ; [DPU_V7M3_PIPE] |523|
BCC ||$C$L44|| ; [DPU_V7M3_PIPE] |523|
; BRANCHCC OCCURS {||$C$L44||} ; [] |523|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 525,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 525 | xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
;----------------------------------------------------------------------
LDR A1, [SP, #44] ; [DPU_V7M3_PIPE] |525|
ADDS A1, A1, #4 ; [DPU_V7M3_PIPE] |525|
STR A1, [SP, #44] ; [DPU_V7M3_PIPE] |525|
.dwpsn file "../OS/stream_buffer.c",line 528,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 528 | configASSERT( xRequiredSpace > xDataLengthBytes );
; 530 | else
; 532 | mtCOVERAGE_TEST_MARKER();
;----------------------------------------------------------------------
LDR A2, [SP, #24] ; [DPU_V7M3_PIPE] |528|
LDR A3, [SP, #44] ; [DPU_V7M3_PIPE] |528|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |528|
CMP A2, A3 ; [DPU_V7M3_PIPE] |528|
BCS ||$C$L42|| ; [DPU_V7M3_PIPE] |528|
; BRANCHCC OCCURS {||$C$L42||} ; [] |528|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |528|
;* --------------------------------------------------------------------------*
||$C$L42||:
CBNZ A1, ||$C$L44|| ; []
; BRANCHCC OCCURS {||$C$L44||} ; [] |528|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |528|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |528|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L43||
;*
;* Loop source line : 528
;* Loop closing brace source line : 528
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L43||:
B ||$C$L43|| ; [DPU_V7M3_PIPE] |528|
; BRANCH OCCURS {||$C$L43||} ; [] |528|
;* --------------------------------------------------------------------------*
;* --------------------------------------------------------------------------*
||$C$L44||:
.dwpsn file "../OS/stream_buffer.c",line 535,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 535 | if( xTicksToWait != ( TickType_t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #28] ; [DPU_V7M3_PIPE] |535|
CMP A1, #0 ; [DPU_V7M3_PIPE] |535|
BEQ ||$C$L51|| ; [DPU_V7M3_PIPE] |535|
; BRANCHCC OCCURS {||$C$L51||} ; [] |535|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 537,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 537 | vTaskSetTimeOutState( &xTimeOut );
; 539 | do
;----------------------------------------------------------------------
ADD A1, SP, #8 ; [DPU_V7M3_PIPE] |537|
$C$DW$101 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$101, DW_AT_low_pc(0x00)
.dwattr $C$DW$101, DW_AT_name("vTaskSetTimeOutState")
.dwattr $C$DW$101, DW_AT_TI_call
BL vTaskSetTimeOutState ; [DPU_V7M3_PIPE] |537|
; CALL OCCURS {vTaskSetTimeOutState } ; [] |537|
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L45||
;*
;* Loop source line : 539
;* Loop closing brace source line : 568
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L45||:
.dwpsn file "../OS/stream_buffer.c",line 543,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 543 | taskENTER_CRITICAL();
;----------------------------------------------------------------------
$C$DW$102 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$102, DW_AT_low_pc(0x00)
.dwattr $C$DW$102, DW_AT_name("vPortEnterCritical")
.dwattr $C$DW$102, DW_AT_TI_call
BL vPortEnterCritical ; [DPU_V7M3_PIPE] |543|
; CALL OCCURS {vPortEnterCritical } ; [] |543|
.dwpsn file "../OS/stream_buffer.c",line 545,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 545 | xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |545|
$C$DW$103 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$103, DW_AT_low_pc(0x00)
.dwattr $C$DW$103, DW_AT_name("xStreamBufferSpacesAvailable")
.dwattr $C$DW$103, DW_AT_TI_call
BL xStreamBufferSpacesAvailable ; [DPU_V7M3_PIPE] |545|
; CALL OCCURS {xStreamBufferSpacesAvailable } ; [] |545|
STR A1, [SP, #40] ; [DPU_V7M3_PIPE] |545|
.dwpsn file "../OS/stream_buffer.c",line 547,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 547 | if( xSpace < xRequiredSpace )
;----------------------------------------------------------------------
LDR A1, [SP, #44] ; [DPU_V7M3_PIPE] |547|
LDR A2, [SP, #40] ; [DPU_V7M3_PIPE] |547|
CMP A1, A2 ; [DPU_V7M3_PIPE] |547|
BLS ||$C$L49|| ; [DPU_V7M3_PIPE] |547|
; BRANCHCC OCCURS {||$C$L49||} ; [] |547|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 550,column 6,is_stmt,isa 1
;----------------------------------------------------------------------
; 550 | ( void ) xTaskNotifyStateClear( NULL );
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |550|
$C$DW$104 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$104, DW_AT_low_pc(0x00)
.dwattr $C$DW$104, DW_AT_name("xTaskNotifyStateClear")
.dwattr $C$DW$104, DW_AT_TI_call
BL xTaskNotifyStateClear ; [DPU_V7M3_PIPE] |550|
; CALL OCCURS {xTaskNotifyStateClear } ; [] |550|
.dwpsn file "../OS/stream_buffer.c",line 553,column 6,is_stmt,isa 1
;----------------------------------------------------------------------
; 553 | configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL );
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |553|
LDR A2, [A1, #20] ; [DPU_V7M3_PIPE] |553|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |553|
CBNZ A2, ||$C$L46|| ; []
; BRANCHCC OCCURS {||$C$L46||} ; [] |553|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |553|
;* --------------------------------------------------------------------------*
||$C$L46||:
CBNZ A1, ||$C$L48|| ; []
; BRANCHCC OCCURS {||$C$L48||} ; [] |553|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |553|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |553|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L47||
;*
;* Loop source line : 553
;* Loop closing brace source line : 553
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L47||:
B ||$C$L47|| ; [DPU_V7M3_PIPE] |553|
; BRANCH OCCURS {||$C$L47||} ; [] |553|
;* --------------------------------------------------------------------------*
||$C$L48||:
.dwpsn file "../OS/stream_buffer.c",line 554,column 6,is_stmt,isa 1
;----------------------------------------------------------------------
; 554 | pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle();
;----------------------------------------------------------------------
$C$DW$105 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$105, DW_AT_low_pc(0x00)
.dwattr $C$DW$105, DW_AT_name("xTaskGetCurrentTaskHandle")
.dwattr $C$DW$105, DW_AT_TI_call
BL xTaskGetCurrentTaskHandle ; [DPU_V7M3_PIPE] |554|
; CALL OCCURS {xTaskGetCurrentTaskHandle } ; [] |554|
LDR A2, [SP, #32] ; [DPU_V7M3_PIPE] |554|
STR A1, [A2, #20] ; [DPU_V7M3_PIPE] |554|
.dwpsn file "../OS/stream_buffer.c",line 555,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 556 | else
;----------------------------------------------------------------------
B ||$C$L50|| ; [DPU_V7M3_PIPE] |555|
; BRANCH OCCURS {||$C$L50||} ; [] |555|
;* --------------------------------------------------------------------------*
||$C$L49||:
.dwpsn file "../OS/stream_buffer.c",line 558,column 6,is_stmt,isa 1
;----------------------------------------------------------------------
; 558 | taskEXIT_CRITICAL();
;----------------------------------------------------------------------
$C$DW$106 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$106, DW_AT_low_pc(0x00)
.dwattr $C$DW$106, DW_AT_name("vPortExitCritical")
.dwattr $C$DW$106, DW_AT_TI_call
BL vPortExitCritical ; [DPU_V7M3_PIPE] |558|
; CALL OCCURS {vPortExitCritical } ; [] |558|
.dwpsn file "../OS/stream_buffer.c",line 559,column 6,is_stmt,isa 1
;----------------------------------------------------------------------
; 559 | break;
;----------------------------------------------------------------------
B ||$C$L51|| ; [DPU_V7M3_PIPE] |559|
; BRANCH OCCURS {||$C$L51||} ; [] |559|
;* --------------------------------------------------------------------------*
||$C$L50||:
.dwpsn file "../OS/stream_buffer.c",line 562,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 562 | taskEXIT_CRITICAL();
; 564 | traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer );
;----------------------------------------------------------------------
$C$DW$107 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$107, DW_AT_low_pc(0x00)
.dwattr $C$DW$107, DW_AT_name("vPortExitCritical")
.dwattr $C$DW$107, DW_AT_TI_call
BL vPortExitCritical ; [DPU_V7M3_PIPE] |562|
; CALL OCCURS {vPortExitCritical } ; [] |562|
.dwpsn file "../OS/stream_buffer.c",line 565,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 565 | ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksT
; | oWait );
;----------------------------------------------------------------------
LDR A4, [SP, #28] ; [DPU_V7M3_PIPE] |565|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |565|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |565|
MOVS A3, #0 ; [DPU_V7M3_PIPE] |565|
$C$DW$108 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$108, DW_AT_low_pc(0x00)
.dwattr $C$DW$108, DW_AT_name("xTaskNotifyWait")
.dwattr $C$DW$108, DW_AT_TI_call
BL xTaskNotifyWait ; [DPU_V7M3_PIPE] |565|
; CALL OCCURS {xTaskNotifyWait } ; [] |565|
.dwpsn file "../OS/stream_buffer.c",line 566,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 566 | pxStreamBuffer->xTaskWaitingToSend = NULL;
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |566|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |566|
STR A2, [A1, #20] ; [DPU_V7M3_PIPE] |566|
.dwpsn file "../OS/stream_buffer.c",line 568,column 12,is_stmt,isa 1
;----------------------------------------------------------------------
; 568 | } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE );
;----------------------------------------------------------------------
ADD A2, SP, #28 ; [DPU_V7M3_PIPE] |568|
ADD A1, SP, #8 ; [DPU_V7M3_PIPE] |568|
$C$DW$109 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$109, DW_AT_low_pc(0x00)
.dwattr $C$DW$109, DW_AT_name("xTaskCheckForTimeOut")
.dwattr $C$DW$109, DW_AT_TI_call
BL xTaskCheckForTimeOut ; [DPU_V7M3_PIPE] |568|
; CALL OCCURS {xTaskCheckForTimeOut } ; [] |568|
CMP A1, #0 ; [DPU_V7M3_PIPE] |568|
BEQ ||$C$L45|| ; [DPU_V7M3_PIPE] |568|
; BRANCHCC OCCURS {||$C$L45||} ; [] |568|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 569,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 570 | else
; 572 | mtCOVERAGE_TEST_MARKER();
;----------------------------------------------------------------------
;* --------------------------------------------------------------------------*
||$C$L51||:
.dwpsn file "../OS/stream_buffer.c",line 575,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 575 | if( xSpace == ( size_t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #40] ; [DPU_V7M3_PIPE] |575|
CBNZ A1, ||$C$L52|| ; []
; BRANCHCC OCCURS {||$C$L52||} ; [] |575|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 577,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 577 | xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |577|
$C$DW$110 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$110, DW_AT_low_pc(0x00)
.dwattr $C$DW$110, DW_AT_name("xStreamBufferSpacesAvailable")
.dwattr $C$DW$110, DW_AT_TI_call
BL xStreamBufferSpacesAvailable ; [DPU_V7M3_PIPE] |577|
; CALL OCCURS {xStreamBufferSpacesAvailable } ; [] |577|
STR A1, [SP, #40] ; [DPU_V7M3_PIPE] |577|
.dwpsn file "../OS/stream_buffer.c",line 578,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 579 | else
; 581 | mtCOVERAGE_TEST_MARKER();
;----------------------------------------------------------------------
;* --------------------------------------------------------------------------*
||$C$L52||:
.dwpsn file "../OS/stream_buffer.c",line 584,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 584 | xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengt
; | hBytes, xSpace, xRequiredSpace );
;----------------------------------------------------------------------
LDR A1, [SP, #44] ; [DPU_V7M3_PIPE] |584|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |584|
LDR A4, [SP, #40] ; [DPU_V7M3_PIPE] |584|
LDR A2, [SP, #20] ; [DPU_V7M3_PIPE] |584|
LDR A3, [SP, #24] ; [DPU_V7M3_PIPE] |584|
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |584|
$C$DW$111 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$111, DW_AT_low_pc(0x00)
.dwattr $C$DW$111, DW_AT_name("prvWriteMessageToBuffer")
.dwattr $C$DW$111, DW_AT_TI_call
BL prvWriteMessageToBuffer ; [DPU_V7M3_PIPE] |584|
; CALL OCCURS {prvWriteMessageToBuffer } ; [] |584|
STR A1, [SP, #36] ; [DPU_V7M3_PIPE] |584|
.dwpsn file "../OS/stream_buffer.c",line 586,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 586 | if( xReturn > ( size_t ) 0 )
; 588 | traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn );
;----------------------------------------------------------------------
LDR A1, [SP, #36] ; [DPU_V7M3_PIPE] |586|
CBZ A1, ||$C$L54|| ; []
; BRANCHCC OCCURS {||$C$L54||} ; [] |586|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 591,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 591 | if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevel
; | Bytes )
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |591|
$C$DW$112 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$112, DW_AT_low_pc(0x00)
.dwattr $C$DW$112, DW_AT_name("prvBytesInBuffer")
.dwattr $C$DW$112, DW_AT_TI_call
BL prvBytesInBuffer ; [DPU_V7M3_PIPE] |591|
; CALL OCCURS {prvBytesInBuffer } ; [] |591|
LDR A2, [SP, #32] ; [DPU_V7M3_PIPE] |591|
LDR A2, [A2, #12] ; [DPU_V7M3_PIPE] |591|
CMP A2, A1 ; [DPU_V7M3_PIPE] |591|
BHI ||$C$L54|| ; [DPU_V7M3_PIPE] |591|
; BRANCHCC OCCURS {||$C$L54||} ; [] |591|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 593,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 593 | sbSEND_COMPLETED( pxStreamBuffer );
;----------------------------------------------------------------------
$C$DW$113 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$113, DW_AT_low_pc(0x00)
.dwattr $C$DW$113, DW_AT_name("vTaskSuspendAll")
.dwattr $C$DW$113, DW_AT_TI_call
BL vTaskSuspendAll ; [DPU_V7M3_PIPE] |593|
; CALL OCCURS {vTaskSuspendAll } ; [] |593|
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |593|
LDR A1, [A1, #16] ; [DPU_V7M3_PIPE] |593|
CBZ A1, ||$C$L53|| ; []
; BRANCHCC OCCURS {||$C$L53||} ; [] |593|
;* --------------------------------------------------------------------------*
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |593|
LDR A1, [A1, #16] ; [DPU_V7M3_PIPE] |593|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |593|
MOVS A3, #0 ; [DPU_V7M3_PIPE] |593|
MOVS A4, #0 ; [DPU_V7M3_PIPE] |593|
$C$DW$114 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$114, DW_AT_low_pc(0x00)
.dwattr $C$DW$114, DW_AT_name("xTaskGenericNotify")
.dwattr $C$DW$114, DW_AT_TI_call
BL xTaskGenericNotify ; [DPU_V7M3_PIPE] |593|
; CALL OCCURS {xTaskGenericNotify } ; [] |593|
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |593|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |593|
STR A2, [A1, #16] ; [DPU_V7M3_PIPE] |593|
;* --------------------------------------------------------------------------*
||$C$L53||:
$C$DW$115 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$115, DW_AT_low_pc(0x00)
.dwattr $C$DW$115, DW_AT_name("xTaskResumeAll")
.dwattr $C$DW$115, DW_AT_TI_call
BL xTaskResumeAll ; [DPU_V7M3_PIPE] |593|
; CALL OCCURS {xTaskResumeAll } ; [] |593|
.dwpsn file "../OS/stream_buffer.c",line 594,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 595 | else
; 597 | mtCOVERAGE_TEST_MARKER();
; 600 | else
; 602 | mtCOVERAGE_TEST_MARKER();
; 603 | traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer );
;----------------------------------------------------------------------
B ||$C$L54|| ; [DPU_V7M3_PIPE] |594|
; BRANCH OCCURS {||$C$L54||} ; [] |594|
;* --------------------------------------------------------------------------*
;* --------------------------------------------------------------------------*
||$C$L54||:
.dwpsn file "../OS/stream_buffer.c",line 606,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 606 | return xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #36] ; [DPU_V7M3_PIPE] |606|
.dwpsn file "../OS/stream_buffer.c",line 607,column 1,is_stmt,isa 1
ADD SP, SP, #52 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
$C$DW$116 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$116, DW_AT_low_pc(0x00)
.dwattr $C$DW$116, DW_AT_TI_return
POP {PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
; BRANCH OCCURS ; []
.dwattr $C$DW$87, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$87, DW_AT_TI_end_line(0x25f)
.dwattr $C$DW$87, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$87
.sect ".text"
.clink
.thumbfunc xStreamBufferSendFromISR
.thumb
.global xStreamBufferSendFromISR
$C$DW$117 .dwtag DW_TAG_subprogram
.dwattr $C$DW$117, DW_AT_name("xStreamBufferSendFromISR")
.dwattr $C$DW$117, DW_AT_low_pc(xStreamBufferSendFromISR)
.dwattr $C$DW$117, DW_AT_high_pc(0x00)
.dwattr $C$DW$117, DW_AT_TI_symbol_name("xStreamBufferSendFromISR")
.dwattr $C$DW$117, DW_AT_external
.dwattr $C$DW$117, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$117, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$117, DW_AT_TI_begin_line(0x262)
.dwattr $C$DW$117, DW_AT_TI_begin_column(0x08)
.dwattr $C$DW$117, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$117, DW_AT_decl_line(0x262)
.dwattr $C$DW$117, DW_AT_decl_column(0x08)
.dwattr $C$DW$117, DW_AT_TI_max_frame_size(0x30)
.dwpsn file "../OS/stream_buffer.c",line 614,column 1,is_stmt,address xStreamBufferSendFromISR,isa 1
.dwfde $C$DW$CIE, xStreamBufferSendFromISR
$C$DW$118 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$118, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$118, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$118, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$118, DW_AT_location[DW_OP_reg0]
$C$DW$119 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$119, DW_AT_name("pvTxData")
.dwattr $C$DW$119, DW_AT_TI_symbol_name("pvTxData")
.dwattr $C$DW$119, DW_AT_type(*$C$DW$T$117)
.dwattr $C$DW$119, DW_AT_location[DW_OP_reg1]
$C$DW$120 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$120, DW_AT_name("xDataLengthBytes")
.dwattr $C$DW$120, DW_AT_TI_symbol_name("xDataLengthBytes")
.dwattr $C$DW$120, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$120, DW_AT_location[DW_OP_reg2]
$C$DW$121 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$121, DW_AT_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$121, DW_AT_TI_symbol_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$121, DW_AT_type(*$C$DW$T$218)
.dwattr $C$DW$121, DW_AT_location[DW_OP_reg3]
;----------------------------------------------------------------------
; 610 | size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer,
; 611 | const void *pvTxData,
; 612 | size_t xDataLengthBytes,
; 613 | BaseType_t * const pxHigherPriorityTaskWoken )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferSendFromISR *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 4 Args + 36 Auto + 4 Save = 44 byte *
;*****************************************************************************
xStreamBufferSendFromISR:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
.dwcfi save_reg_to_mem, 14, -4
SUB SP, SP, #44 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 48
$C$DW$122 .dwtag DW_TAG_variable
.dwattr $C$DW$122, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$122, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$122, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$122, DW_AT_location[DW_OP_breg13 4]
$C$DW$123 .dwtag DW_TAG_variable
.dwattr $C$DW$123, DW_AT_name("pvTxData")
.dwattr $C$DW$123, DW_AT_TI_symbol_name("pvTxData")
.dwattr $C$DW$123, DW_AT_type(*$C$DW$T$117)
.dwattr $C$DW$123, DW_AT_location[DW_OP_breg13 8]
$C$DW$124 .dwtag DW_TAG_variable
.dwattr $C$DW$124, DW_AT_name("xDataLengthBytes")
.dwattr $C$DW$124, DW_AT_TI_symbol_name("xDataLengthBytes")
.dwattr $C$DW$124, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$124, DW_AT_location[DW_OP_breg13 12]
$C$DW$125 .dwtag DW_TAG_variable
.dwattr $C$DW$125, DW_AT_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$125, DW_AT_TI_symbol_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$125, DW_AT_type(*$C$DW$T$218)
.dwattr $C$DW$125, DW_AT_location[DW_OP_breg13 16]
$C$DW$126 .dwtag DW_TAG_variable
.dwattr $C$DW$126, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$126, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$126, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$126, DW_AT_location[DW_OP_breg13 20]
$C$DW$127 .dwtag DW_TAG_variable
.dwattr $C$DW$127, DW_AT_name("xReturn")
.dwattr $C$DW$127, DW_AT_TI_symbol_name("xReturn")
.dwattr $C$DW$127, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$127, DW_AT_location[DW_OP_breg13 24]
$C$DW$128 .dwtag DW_TAG_variable
.dwattr $C$DW$128, DW_AT_name("xSpace")
.dwattr $C$DW$128, DW_AT_TI_symbol_name("xSpace")
.dwattr $C$DW$128, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$128, DW_AT_location[DW_OP_breg13 28]
$C$DW$129 .dwtag DW_TAG_variable
.dwattr $C$DW$129, DW_AT_name("xRequiredSpace")
.dwattr $C$DW$129, DW_AT_TI_symbol_name("xRequiredSpace")
.dwattr $C$DW$129, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$129, DW_AT_location[DW_OP_breg13 32]
STR A4, [SP, #16] ; [DPU_V7M3_PIPE] |614|
STR A3, [SP, #12] ; [DPU_V7M3_PIPE] |614|
STR A2, [SP, #8] ; [DPU_V7M3_PIPE] |614|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |614|
.dwpsn file "../OS/stream_buffer.c",line 615,column 39,is_stmt,isa 1
;----------------------------------------------------------------------
; 615 | StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
; 616 | size_t xReturn, xSpace;
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |615|
STR A1, [SP, #20] ; [DPU_V7M3_PIPE] |615|
.dwpsn file "../OS/stream_buffer.c",line 617,column 23,is_stmt,isa 1
;----------------------------------------------------------------------
; 617 | size_t xRequiredSpace = xDataLengthBytes;
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |617|
STR A1, [SP, #32] ; [DPU_V7M3_PIPE] |617|
.dwpsn file "../OS/stream_buffer.c",line 619,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 619 | configASSERT( pvTxData );
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |619|
CBNZ A1, ||$C$L56|| ; []
; BRANCHCC OCCURS {||$C$L56||} ; [] |619|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |619|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |619|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L55||
;*
;* Loop source line : 619
;* Loop closing brace source line : 619
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L55||:
B ||$C$L55|| ; [DPU_V7M3_PIPE] |619|
; BRANCH OCCURS {||$C$L55||} ; [] |619|
;* --------------------------------------------------------------------------*
||$C$L56||:
.dwpsn file "../OS/stream_buffer.c",line 620,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 620 | configASSERT( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |620|
CBNZ A1, ||$C$L58|| ; []
; BRANCHCC OCCURS {||$C$L58||} ; [] |620|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |620|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |620|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L57||
;*
;* Loop source line : 620
;* Loop closing brace source line : 620
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L57||:
B ||$C$L57|| ; [DPU_V7M3_PIPE] |620|
; BRANCH OCCURS {||$C$L57||} ; [] |620|
;* --------------------------------------------------------------------------*
||$C$L58||:
.dwpsn file "../OS/stream_buffer.c",line 626,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 626 | if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_
; | t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |626|
LDRB A1, [A1, #28] ; [DPU_V7M3_PIPE] |626|
LSRS A1, A1, #1 ; [DPU_V7M3_PIPE] |626|
BCC ||$C$L59|| ; [DPU_V7M3_PIPE] |626|
; BRANCHCC OCCURS {||$C$L59||} ; [] |626|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 628,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 628 | xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |628|
ADDS A1, A1, #4 ; [DPU_V7M3_PIPE] |628|
STR A1, [SP, #32] ; [DPU_V7M3_PIPE] |628|
.dwpsn file "../OS/stream_buffer.c",line 629,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 630 | else
; 632 | mtCOVERAGE_TEST_MARKER();
;----------------------------------------------------------------------
;* --------------------------------------------------------------------------*
||$C$L59||:
.dwpsn file "../OS/stream_buffer.c",line 635,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 635 | xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |635|
$C$DW$130 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$130, DW_AT_low_pc(0x00)
.dwattr $C$DW$130, DW_AT_name("xStreamBufferSpacesAvailable")
.dwattr $C$DW$130, DW_AT_TI_call
BL xStreamBufferSpacesAvailable ; [DPU_V7M3_PIPE] |635|
; CALL OCCURS {xStreamBufferSpacesAvailable } ; [] |635|
STR A1, [SP, #28] ; [DPU_V7M3_PIPE] |635|
.dwpsn file "../OS/stream_buffer.c",line 636,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 636 | xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengt
; | hBytes, xSpace, xRequiredSpace );
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |636|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |636|
LDR A3, [SP, #12] ; [DPU_V7M3_PIPE] |636|
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |636|
LDR A4, [SP, #28] ; [DPU_V7M3_PIPE] |636|
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |636|
$C$DW$131 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$131, DW_AT_low_pc(0x00)
.dwattr $C$DW$131, DW_AT_name("prvWriteMessageToBuffer")
.dwattr $C$DW$131, DW_AT_TI_call
BL prvWriteMessageToBuffer ; [DPU_V7M3_PIPE] |636|
; CALL OCCURS {prvWriteMessageToBuffer } ; [] |636|
STR A1, [SP, #24] ; [DPU_V7M3_PIPE] |636|
.dwpsn file "../OS/stream_buffer.c",line 638,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 638 | if( xReturn > ( size_t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #24] ; [DPU_V7M3_PIPE] |638|
CBZ A1, ||$C$L61|| ; []
; BRANCHCC OCCURS {||$C$L61||} ; [] |638|
;* --------------------------------------------------------------------------*
$C$DW$132 .dwtag DW_TAG_lexical_block
.dwattr $C$DW$132, DW_AT_low_pc(0x00)
.dwattr $C$DW$132, DW_AT_high_pc(0x00)
.dwpsn file "../OS/stream_buffer.c",line 641,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 641 | if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevel
; | Bytes )
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |641|
$C$DW$133 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$133, DW_AT_low_pc(0x00)
.dwattr $C$DW$133, DW_AT_name("prvBytesInBuffer")
.dwattr $C$DW$133, DW_AT_TI_call
BL prvBytesInBuffer ; [DPU_V7M3_PIPE] |641|
; CALL OCCURS {prvBytesInBuffer } ; [] |641|
LDR A2, [SP, #20] ; [DPU_V7M3_PIPE] |641|
LDR A2, [A2, #12] ; [DPU_V7M3_PIPE] |641|
CMP A2, A1 ; [DPU_V7M3_PIPE] |641|
BHI ||$C$L61|| ; [DPU_V7M3_PIPE] |641|
; BRANCHCC OCCURS {||$C$L61||} ; [] |641|
;* --------------------------------------------------------------------------*
$C$DW$134 .dwtag DW_TAG_lexical_block
.dwattr $C$DW$134, DW_AT_low_pc(0x00)
.dwattr $C$DW$134, DW_AT_high_pc(0x00)
$C$DW$135 .dwtag DW_TAG_lexical_block
.dwattr $C$DW$135, DW_AT_low_pc(0x00)
.dwattr $C$DW$135, DW_AT_high_pc(0x00)
$C$DW$136 .dwtag DW_TAG_variable
.dwattr $C$DW$136, DW_AT_name("uxSavedInterruptStatus")
.dwattr $C$DW$136, DW_AT_TI_symbol_name("uxSavedInterruptStatus")
.dwattr $C$DW$136, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$136, DW_AT_location[DW_OP_breg13 36]
.dwpsn file "../OS/stream_buffer.c",line 643,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 643 | sbSEND_COMPLETE_FROM_ISR( pxStreamBuffer, pxHigherPriorityTaskWoken );
;----------------------------------------------------------------------
MOVS A1, #160 ; [DPU_V7M3_PIPE] |643|
MRS A2, BASEPRI ; [DPU_V7M3_PIPE] |643|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |643|
STR A2, [SP, #36] ; [DPU_V7M3_PIPE] |643|
dsb
isb
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |643|
LDR A1, [A1, #16] ; [DPU_V7M3_PIPE] |643|
CBZ A1, ||$C$L60|| ; []
; BRANCHCC OCCURS {||$C$L60||} ; [] |643|
;* --------------------------------------------------------------------------*
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |643|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |643|
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |643|
LDR A1, [A1, #16] ; [DPU_V7M3_PIPE] |643|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |643|
MOVS A3, #0 ; [DPU_V7M3_PIPE] |643|
MOVS A4, #0 ; [DPU_V7M3_PIPE] |643|
$C$DW$137 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$137, DW_AT_low_pc(0x00)
.dwattr $C$DW$137, DW_AT_name("xTaskGenericNotifyFromISR")
.dwattr $C$DW$137, DW_AT_TI_call
BL xTaskGenericNotifyFromISR ; [DPU_V7M3_PIPE] |643|
; CALL OCCURS {xTaskGenericNotifyFromISR } ; [] |643|
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |643|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |643|
STR A2, [A1, #16] ; [DPU_V7M3_PIPE] |643|
;* --------------------------------------------------------------------------*
||$C$L60||:
LDR A1, [SP, #36] ; [DPU_V7M3_PIPE] |643|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |643|
.dwendtag $C$DW$135
.dwendtag $C$DW$134
.dwpsn file "../OS/stream_buffer.c",line 644,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 645 | else
; 647 | mtCOVERAGE_TEST_MARKER();
; 650 | else
; 652 | mtCOVERAGE_TEST_MARKER();
; 655 | traceSTREAM_BUFFER_SEND_FROM_ISR( xStreamBuffer, xReturn );
;----------------------------------------------------------------------
B ||$C$L61|| ; [DPU_V7M3_PIPE] |644|
; BRANCH OCCURS {||$C$L61||} ; [] |644|
;* --------------------------------------------------------------------------*
.dwendtag $C$DW$132
;* --------------------------------------------------------------------------*
||$C$L61||:
.dwpsn file "../OS/stream_buffer.c",line 657,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 657 | return xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #24] ; [DPU_V7M3_PIPE] |657|
.dwpsn file "../OS/stream_buffer.c",line 658,column 1,is_stmt,isa 1
ADD SP, SP, #44 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
$C$DW$138 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$138, DW_AT_low_pc(0x00)
.dwattr $C$DW$138, DW_AT_TI_return
POP {PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
; BRANCH OCCURS ; []
.dwattr $C$DW$117, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$117, DW_AT_TI_end_line(0x292)
.dwattr $C$DW$117, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$117
.sect ".text"
.clink
.thumbfunc prvWriteMessageToBuffer
.thumb
$C$DW$139 .dwtag DW_TAG_subprogram
.dwattr $C$DW$139, DW_AT_name("prvWriteMessageToBuffer")
.dwattr $C$DW$139, DW_AT_low_pc(prvWriteMessageToBuffer)
.dwattr $C$DW$139, DW_AT_high_pc(0x00)
.dwattr $C$DW$139, DW_AT_TI_symbol_name("prvWriteMessageToBuffer")
.dwattr $C$DW$139, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$139, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$139, DW_AT_TI_begin_line(0x295)
.dwattr $C$DW$139, DW_AT_TI_begin_column(0x0f)
.dwattr $C$DW$139, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$139, DW_AT_decl_line(0x295)
.dwattr $C$DW$139, DW_AT_decl_column(0x0f)
.dwattr $C$DW$139, DW_AT_TI_max_frame_size(0x20)
.dwpsn file "../OS/stream_buffer.c",line 666,column 1,is_stmt,address prvWriteMessageToBuffer,isa 1
.dwfde $C$DW$CIE, prvWriteMessageToBuffer
$C$DW$140 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$140, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$140, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$140, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$140, DW_AT_location[DW_OP_reg0]
$C$DW$141 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$141, DW_AT_name("pvTxData")
.dwattr $C$DW$141, DW_AT_TI_symbol_name("pvTxData")
.dwattr $C$DW$141, DW_AT_type(*$C$DW$T$117)
.dwattr $C$DW$141, DW_AT_location[DW_OP_reg1]
$C$DW$142 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$142, DW_AT_name("xDataLengthBytes")
.dwattr $C$DW$142, DW_AT_TI_symbol_name("xDataLengthBytes")
.dwattr $C$DW$142, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$142, DW_AT_location[DW_OP_reg2]
$C$DW$143 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$143, DW_AT_name("xSpace")
.dwattr $C$DW$143, DW_AT_TI_symbol_name("xSpace")
.dwattr $C$DW$143, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$143, DW_AT_location[DW_OP_reg3]
$C$DW$144 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$144, DW_AT_name("xRequiredSpace")
.dwattr $C$DW$144, DW_AT_TI_symbol_name("xRequiredSpace")
.dwattr $C$DW$144, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$144, DW_AT_location[DW_OP_breg13 32]
;----------------------------------------------------------------------
; 661 | static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamB
; | uffer,
; 662 | const void * pvTxData,
; 663 | size_t xDataLengthBytes,
; 664 | size_t xSpace,
; 665 | size_t xRequiredSpace )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: prvWriteMessageToBuffer *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 24 Auto + 4 Save = 28 byte *
;*****************************************************************************
prvWriteMessageToBuffer:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
.dwcfi save_reg_to_mem, 14, -4
SUB SP, SP, #28 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 32
$C$DW$145 .dwtag DW_TAG_variable
.dwattr $C$DW$145, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$145, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$145, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$145, DW_AT_location[DW_OP_breg13 0]
$C$DW$146 .dwtag DW_TAG_variable
.dwattr $C$DW$146, DW_AT_name("pvTxData")
.dwattr $C$DW$146, DW_AT_TI_symbol_name("pvTxData")
.dwattr $C$DW$146, DW_AT_type(*$C$DW$T$117)
.dwattr $C$DW$146, DW_AT_location[DW_OP_breg13 4]
$C$DW$147 .dwtag DW_TAG_variable
.dwattr $C$DW$147, DW_AT_name("xDataLengthBytes")
.dwattr $C$DW$147, DW_AT_TI_symbol_name("xDataLengthBytes")
.dwattr $C$DW$147, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$147, DW_AT_location[DW_OP_breg13 8]
$C$DW$148 .dwtag DW_TAG_variable
.dwattr $C$DW$148, DW_AT_name("xSpace")
.dwattr $C$DW$148, DW_AT_TI_symbol_name("xSpace")
.dwattr $C$DW$148, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$148, DW_AT_location[DW_OP_breg13 12]
$C$DW$149 .dwtag DW_TAG_variable
.dwattr $C$DW$149, DW_AT_name("xShouldWrite")
.dwattr $C$DW$149, DW_AT_TI_symbol_name("xShouldWrite")
.dwattr $C$DW$149, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$149, DW_AT_location[DW_OP_breg13 16]
$C$DW$150 .dwtag DW_TAG_variable
.dwattr $C$DW$150, DW_AT_name("xReturn")
.dwattr $C$DW$150, DW_AT_TI_symbol_name("xReturn")
.dwattr $C$DW$150, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$150, DW_AT_location[DW_OP_breg13 20]
;----------------------------------------------------------------------
; 667 | BaseType_t xShouldWrite;
; 668 | size_t xReturn;
;----------------------------------------------------------------------
STR A4, [SP, #12] ; [DPU_V7M3_PIPE] |666|
STR A3, [SP, #8] ; [DPU_V7M3_PIPE] |666|
STR A2, [SP, #4] ; [DPU_V7M3_PIPE] |666|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |666|
.dwpsn file "../OS/stream_buffer.c",line 670,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 670 | if( xSpace == ( size_t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |670|
CBNZ A1, ||$C$L62|| ; []
; BRANCHCC OCCURS {||$C$L62||} ; [] |670|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 674,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 674 | xShouldWrite = pdFALSE;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |674|
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |674|
.dwpsn file "../OS/stream_buffer.c",line 675,column 2,is_stmt,isa 1
B ||$C$L67|| ; [DPU_V7M3_PIPE] |675|
; BRANCH OCCURS {||$C$L67||} ; [] |675|
;* --------------------------------------------------------------------------*
||$C$L62||:
.dwpsn file "../OS/stream_buffer.c",line 676,column 7,is_stmt,isa 1
;----------------------------------------------------------------------
; 676 | else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( u
; | int8_t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |676|
LDRB A1, [A1, #28] ; [DPU_V7M3_PIPE] |676|
LSRS A1, A1, #1 ; [DPU_V7M3_PIPE] |676|
BCS ||$C$L65|| ; [DPU_V7M3_PIPE] |676|
; BRANCHCC OCCURS {||$C$L65||} ; [] |676|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 681,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 681 | xShouldWrite = pdTRUE;
;----------------------------------------------------------------------
MOVS A1, #1 ; [DPU_V7M3_PIPE] |681|
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |681|
.dwpsn file "../OS/stream_buffer.c",line 682,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 682 | xDataLengthBytes = configMIN( xDataLengthBytes, xSpace );
;----------------------------------------------------------------------
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |682|
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |682|
CMP A1, A2 ; [DPU_V7M3_PIPE] |682|
BLS ||$C$L63|| ; [DPU_V7M3_PIPE] |682|
; BRANCHCC OCCURS {||$C$L63||} ; [] |682|
;* --------------------------------------------------------------------------*
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |682|
B ||$C$L64|| ; [DPU_V7M3_PIPE] |682|
; BRANCH OCCURS {||$C$L64||} ; [] |682|
;* --------------------------------------------------------------------------*
||$C$L63||:
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |682|
;* --------------------------------------------------------------------------*
||$C$L64||:
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |682|
.dwpsn file "../OS/stream_buffer.c",line 683,column 2,is_stmt,isa 1
B ||$C$L67|| ; [DPU_V7M3_PIPE] |683|
; BRANCH OCCURS {||$C$L67||} ; [] |683|
;* --------------------------------------------------------------------------*
||$C$L65||:
.dwpsn file "../OS/stream_buffer.c",line 684,column 7,is_stmt,isa 1
;----------------------------------------------------------------------
; 684 | else if( xSpace >= xRequiredSpace )
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |684|
LDR A2, [SP, #12] ; [DPU_V7M3_PIPE] |684|
CMP A1, A2 ; [DPU_V7M3_PIPE] |684|
BHI ||$C$L66|| ; [DPU_V7M3_PIPE] |684|
; BRANCHCC OCCURS {||$C$L66||} ; [] |684|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 690,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 690 | xShouldWrite = pdTRUE;
;----------------------------------------------------------------------
MOVS A1, #1 ; [DPU_V7M3_PIPE] |690|
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |690|
.dwpsn file "../OS/stream_buffer.c",line 691,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 691 | ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &(
; | xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH );
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |691|
ADD A2, SP, #8 ; [DPU_V7M3_PIPE] |691|
MOVS A3, #4 ; [DPU_V7M3_PIPE] |691|
$C$DW$151 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$151, DW_AT_low_pc(0x00)
.dwattr $C$DW$151, DW_AT_name("prvWriteBytesToBuffer")
.dwattr $C$DW$151, DW_AT_TI_call
BL prvWriteBytesToBuffer ; [DPU_V7M3_PIPE] |691|
; CALL OCCURS {prvWriteBytesToBuffer } ; [] |691|
.dwpsn file "../OS/stream_buffer.c",line 692,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 693 | else
;----------------------------------------------------------------------
B ||$C$L67|| ; [DPU_V7M3_PIPE] |692|
; BRANCH OCCURS {||$C$L67||} ; [] |692|
;* --------------------------------------------------------------------------*
||$C$L66||:
.dwpsn file "../OS/stream_buffer.c",line 696,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 696 | xShouldWrite = pdFALSE;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |696|
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |696|
;* --------------------------------------------------------------------------*
||$C$L67||:
.dwpsn file "../OS/stream_buffer.c",line 699,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 699 | if( xShouldWrite != pdFALSE )
;----------------------------------------------------------------------
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |699|
CBZ A1, ||$C$L68|| ; []
; BRANCHCC OCCURS {||$C$L68||} ; [] |699|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 702,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 702 | xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pv
; | TxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented
; | as uint8_t for ease of sizing, alighment and access. */
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |702|
LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |702|
LDR A3, [SP, #8] ; [DPU_V7M3_PIPE] |702|
$C$DW$152 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$152, DW_AT_low_pc(0x00)
.dwattr $C$DW$152, DW_AT_name("prvWriteBytesToBuffer")
.dwattr $C$DW$152, DW_AT_TI_call
BL prvWriteBytesToBuffer ; [DPU_V7M3_PIPE] |702|
; CALL OCCURS {prvWriteBytesToBuffer } ; [] |702|
STR A1, [SP, #20] ; [DPU_V7M3_PIPE] |702|
.dwpsn file "../OS/stream_buffer.c",line 703,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 704 | else
;----------------------------------------------------------------------
B ||$C$L69|| ; [DPU_V7M3_PIPE] |703|
; BRANCH OCCURS {||$C$L69||} ; [] |703|
;* --------------------------------------------------------------------------*
||$C$L68||:
.dwpsn file "../OS/stream_buffer.c",line 706,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 706 | xReturn = 0;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |706|
STR A1, [SP, #20] ; [DPU_V7M3_PIPE] |706|
;* --------------------------------------------------------------------------*
||$C$L69||:
.dwpsn file "../OS/stream_buffer.c",line 709,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 709 | return xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |709|
.dwpsn file "../OS/stream_buffer.c",line 710,column 1,is_stmt,isa 1
ADD SP, SP, #28 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
$C$DW$153 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$153, DW_AT_low_pc(0x00)
.dwattr $C$DW$153, DW_AT_TI_return
POP {PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
; BRANCH OCCURS ; []
.dwattr $C$DW$139, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$139, DW_AT_TI_end_line(0x2c6)
.dwattr $C$DW$139, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$139
.sect ".text"
.clink
.thumbfunc xStreamBufferReceive
.thumb
.global xStreamBufferReceive
$C$DW$154 .dwtag DW_TAG_subprogram
.dwattr $C$DW$154, DW_AT_name("xStreamBufferReceive")
.dwattr $C$DW$154, DW_AT_low_pc(xStreamBufferReceive)
.dwattr $C$DW$154, DW_AT_high_pc(0x00)
.dwattr $C$DW$154, DW_AT_TI_symbol_name("xStreamBufferReceive")
.dwattr $C$DW$154, DW_AT_external
.dwattr $C$DW$154, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$154, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$154, DW_AT_TI_begin_line(0x2c9)
.dwattr $C$DW$154, DW_AT_TI_begin_column(0x08)
.dwattr $C$DW$154, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$154, DW_AT_decl_line(0x2c9)
.dwattr $C$DW$154, DW_AT_decl_column(0x08)
.dwattr $C$DW$154, DW_AT_TI_max_frame_size(0x28)
.dwpsn file "../OS/stream_buffer.c",line 717,column 1,is_stmt,address xStreamBufferReceive,isa 1
.dwfde $C$DW$CIE, xStreamBufferReceive
$C$DW$155 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$155, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$155, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$155, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$155, DW_AT_location[DW_OP_reg0]
$C$DW$156 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$156, DW_AT_name("pvRxData")
.dwattr $C$DW$156, DW_AT_TI_symbol_name("pvRxData")
.dwattr $C$DW$156, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$156, DW_AT_location[DW_OP_reg1]
$C$DW$157 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$157, DW_AT_name("xBufferLengthBytes")
.dwattr $C$DW$157, DW_AT_TI_symbol_name("xBufferLengthBytes")
.dwattr $C$DW$157, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$157, DW_AT_location[DW_OP_reg2]
$C$DW$158 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$158, DW_AT_name("xTicksToWait")
.dwattr $C$DW$158, DW_AT_TI_symbol_name("xTicksToWait")
.dwattr $C$DW$158, DW_AT_type(*$C$DW$T$46)
.dwattr $C$DW$158, DW_AT_location[DW_OP_reg3]
;----------------------------------------------------------------------
; 713 | size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
; 714 | void *pvRxData,
; 715 | size_t xBufferLengthBytes,
; 716 | TickType_t xTicksToWait )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferReceive *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 4 Args + 32 Auto + 4 Save = 40 byte *
;*****************************************************************************
xStreamBufferReceive:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
.dwcfi save_reg_to_mem, 14, -4
SUB SP, SP, #36 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 40
$C$DW$159 .dwtag DW_TAG_variable
.dwattr $C$DW$159, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$159, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$159, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$159, DW_AT_location[DW_OP_breg13 4]
$C$DW$160 .dwtag DW_TAG_variable
.dwattr $C$DW$160, DW_AT_name("pvRxData")
.dwattr $C$DW$160, DW_AT_TI_symbol_name("pvRxData")
.dwattr $C$DW$160, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$160, DW_AT_location[DW_OP_breg13 8]
$C$DW$161 .dwtag DW_TAG_variable
.dwattr $C$DW$161, DW_AT_name("xBufferLengthBytes")
.dwattr $C$DW$161, DW_AT_TI_symbol_name("xBufferLengthBytes")
.dwattr $C$DW$161, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$161, DW_AT_location[DW_OP_breg13 12]
$C$DW$162 .dwtag DW_TAG_variable
.dwattr $C$DW$162, DW_AT_name("xTicksToWait")
.dwattr $C$DW$162, DW_AT_TI_symbol_name("xTicksToWait")
.dwattr $C$DW$162, DW_AT_type(*$C$DW$T$46)
.dwattr $C$DW$162, DW_AT_location[DW_OP_breg13 16]
$C$DW$163 .dwtag DW_TAG_variable
.dwattr $C$DW$163, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$163, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$163, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$163, DW_AT_location[DW_OP_breg13 20]
$C$DW$164 .dwtag DW_TAG_variable
.dwattr $C$DW$164, DW_AT_name("xReceivedLength")
.dwattr $C$DW$164, DW_AT_TI_symbol_name("xReceivedLength")
.dwattr $C$DW$164, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$164, DW_AT_location[DW_OP_breg13 24]
$C$DW$165 .dwtag DW_TAG_variable
.dwattr $C$DW$165, DW_AT_name("xBytesAvailable")
.dwattr $C$DW$165, DW_AT_TI_symbol_name("xBytesAvailable")
.dwattr $C$DW$165, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$165, DW_AT_location[DW_OP_breg13 28]
$C$DW$166 .dwtag DW_TAG_variable
.dwattr $C$DW$166, DW_AT_name("xBytesToStoreMessageLength")
.dwattr $C$DW$166, DW_AT_TI_symbol_name("xBytesToStoreMessageLength")
.dwattr $C$DW$166, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$166, DW_AT_location[DW_OP_breg13 32]
STR A4, [SP, #16] ; [DPU_V7M3_PIPE] |717|
STR A3, [SP, #12] ; [DPU_V7M3_PIPE] |717|
STR A2, [SP, #8] ; [DPU_V7M3_PIPE] |717|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |717|
.dwpsn file "../OS/stream_buffer.c",line 718,column 39,is_stmt,isa 1
;----------------------------------------------------------------------
; 718 | StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |718|
STR A1, [SP, #20] ; [DPU_V7M3_PIPE] |718|
.dwpsn file "../OS/stream_buffer.c",line 719,column 24,is_stmt,isa 1
;----------------------------------------------------------------------
; 719 | size_t xReceivedLength = 0, xBytesAvailable, xBytesToStoreMessageLength
; | ;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |719|
STR A1, [SP, #24] ; [DPU_V7M3_PIPE] |719|
.dwpsn file "../OS/stream_buffer.c",line 721,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 721 | configASSERT( pvRxData );
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |721|
CBNZ A1, ||$C$L71|| ; []
; BRANCHCC OCCURS {||$C$L71||} ; [] |721|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |721|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |721|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L70||
;*
;* Loop source line : 721
;* Loop closing brace source line : 721
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L70||:
B ||$C$L70|| ; [DPU_V7M3_PIPE] |721|
; BRANCH OCCURS {||$C$L70||} ; [] |721|
;* --------------------------------------------------------------------------*
||$C$L71||:
.dwpsn file "../OS/stream_buffer.c",line 722,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 722 | configASSERT( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |722|
CBNZ A1, ||$C$L73|| ; []
; BRANCHCC OCCURS {||$C$L73||} ; [] |722|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |722|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |722|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L72||
;*
;* Loop source line : 722
;* Loop closing brace source line : 722
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L72||:
B ||$C$L72|| ; [DPU_V7M3_PIPE] |722|
; BRANCH OCCURS {||$C$L72||} ; [] |722|
;* --------------------------------------------------------------------------*
||$C$L73||:
.dwpsn file "../OS/stream_buffer.c",line 729,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 729 | if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_
; | t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |729|
LDRB A1, [A1, #28] ; [DPU_V7M3_PIPE] |729|
LSRS A1, A1, #1 ; [DPU_V7M3_PIPE] |729|
BCC ||$C$L74|| ; [DPU_V7M3_PIPE] |729|
; BRANCHCC OCCURS {||$C$L74||} ; [] |729|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 731,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 731 | xBytesToStoreMessageLength = sbBYTES_TO_STORE_MESSAGE_LENGTH;
;----------------------------------------------------------------------
MOVS A1, #4 ; [DPU_V7M3_PIPE] |731|
STR A1, [SP, #32] ; [DPU_V7M3_PIPE] |731|
.dwpsn file "../OS/stream_buffer.c",line 732,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 733 | else
;----------------------------------------------------------------------
B ||$C$L75|| ; [DPU_V7M3_PIPE] |732|
; BRANCH OCCURS {||$C$L75||} ; [] |732|
;* --------------------------------------------------------------------------*
||$C$L74||:
.dwpsn file "../OS/stream_buffer.c",line 735,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 735 | xBytesToStoreMessageLength = 0;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |735|
STR A1, [SP, #32] ; [DPU_V7M3_PIPE] |735|
;* --------------------------------------------------------------------------*
||$C$L75||:
.dwpsn file "../OS/stream_buffer.c",line 738,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 738 | if( xTicksToWait != ( TickType_t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |738|
CMP A1, #0 ; [DPU_V7M3_PIPE] |738|
BEQ ||$C$L80|| ; [DPU_V7M3_PIPE] |738|
; BRANCHCC OCCURS {||$C$L80||} ; [] |738|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 742,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 742 | taskENTER_CRITICAL();
;----------------------------------------------------------------------
$C$DW$167 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$167, DW_AT_low_pc(0x00)
.dwattr $C$DW$167, DW_AT_name("vPortEnterCritical")
.dwattr $C$DW$167, DW_AT_TI_call
BL vPortEnterCritical ; [DPU_V7M3_PIPE] |742|
; CALL OCCURS {vPortEnterCritical } ; [] |742|
.dwpsn file "../OS/stream_buffer.c",line 744,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 744 | xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |744|
$C$DW$168 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$168, DW_AT_low_pc(0x00)
.dwattr $C$DW$168, DW_AT_name("prvBytesInBuffer")
.dwattr $C$DW$168, DW_AT_TI_call
BL prvBytesInBuffer ; [DPU_V7M3_PIPE] |744|
; CALL OCCURS {prvBytesInBuffer } ; [] |744|
STR A1, [SP, #28] ; [DPU_V7M3_PIPE] |744|
.dwpsn file "../OS/stream_buffer.c",line 751,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 751 | if( xBytesAvailable <= xBytesToStoreMessageLength )
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |751|
LDR A2, [SP, #28] ; [DPU_V7M3_PIPE] |751|
CMP A1, A2 ; [DPU_V7M3_PIPE] |751|
BCC ||$C$L79|| ; [DPU_V7M3_PIPE] |751|
; BRANCHCC OCCURS {||$C$L79||} ; [] |751|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 754,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 754 | ( void ) xTaskNotifyStateClear( NULL );
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |754|
$C$DW$169 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$169, DW_AT_low_pc(0x00)
.dwattr $C$DW$169, DW_AT_name("xTaskNotifyStateClear")
.dwattr $C$DW$169, DW_AT_TI_call
BL xTaskNotifyStateClear ; [DPU_V7M3_PIPE] |754|
; CALL OCCURS {xTaskNotifyStateClear } ; [] |754|
.dwpsn file "../OS/stream_buffer.c",line 757,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 757 | configASSERT( pxStreamBuffer->xTaskWaitingToReceive == NULL );
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |757|
LDR A2, [A1, #16] ; [DPU_V7M3_PIPE] |757|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |757|
CBNZ A2, ||$C$L76|| ; []
; BRANCHCC OCCURS {||$C$L76||} ; [] |757|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |757|
;* --------------------------------------------------------------------------*
||$C$L76||:
CBNZ A1, ||$C$L78|| ; []
; BRANCHCC OCCURS {||$C$L78||} ; [] |757|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |757|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |757|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L77||
;*
;* Loop source line : 757
;* Loop closing brace source line : 757
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L77||:
B ||$C$L77|| ; [DPU_V7M3_PIPE] |757|
; BRANCH OCCURS {||$C$L77||} ; [] |757|
;* --------------------------------------------------------------------------*
||$C$L78||:
.dwpsn file "../OS/stream_buffer.c",line 758,column 5,is_stmt,isa 1
;----------------------------------------------------------------------
; 758 | pxStreamBuffer->xTaskWaitingToReceive = xTaskGetCurrentTaskHandle();
;----------------------------------------------------------------------
$C$DW$170 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$170, DW_AT_low_pc(0x00)
.dwattr $C$DW$170, DW_AT_name("xTaskGetCurrentTaskHandle")
.dwattr $C$DW$170, DW_AT_TI_call
BL xTaskGetCurrentTaskHandle ; [DPU_V7M3_PIPE] |758|
; CALL OCCURS {xTaskGetCurrentTaskHandle } ; [] |758|
LDR A2, [SP, #20] ; [DPU_V7M3_PIPE] |758|
STR A1, [A2, #16] ; [DPU_V7M3_PIPE] |758|
.dwpsn file "../OS/stream_buffer.c",line 759,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 760 | else
; 762 | mtCOVERAGE_TEST_MARKER();
;----------------------------------------------------------------------
;* --------------------------------------------------------------------------*
||$C$L79||:
.dwpsn file "../OS/stream_buffer.c",line 765,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 765 | taskEXIT_CRITICAL();
;----------------------------------------------------------------------
$C$DW$171 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$171, DW_AT_low_pc(0x00)
.dwattr $C$DW$171, DW_AT_name("vPortExitCritical")
.dwattr $C$DW$171, DW_AT_TI_call
BL vPortExitCritical ; [DPU_V7M3_PIPE] |765|
; CALL OCCURS {vPortExitCritical } ; [] |765|
.dwpsn file "../OS/stream_buffer.c",line 767,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 767 | if( xBytesAvailable <= xBytesToStoreMessageLength )
; 770 | traceBLOCKING_ON_STREAM_BUFFER_RECEIVE( xStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |767|
LDR A2, [SP, #28] ; [DPU_V7M3_PIPE] |767|
CMP A1, A2 ; [DPU_V7M3_PIPE] |767|
BCC ||$C$L81|| ; [DPU_V7M3_PIPE] |767|
; BRANCHCC OCCURS {||$C$L81||} ; [] |767|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 771,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 771 | ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksT
; | oWait );
;----------------------------------------------------------------------
LDR A4, [SP, #16] ; [DPU_V7M3_PIPE] |771|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |771|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |771|
MOVS A3, #0 ; [DPU_V7M3_PIPE] |771|
$C$DW$172 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$172, DW_AT_low_pc(0x00)
.dwattr $C$DW$172, DW_AT_name("xTaskNotifyWait")
.dwattr $C$DW$172, DW_AT_TI_call
BL xTaskNotifyWait ; [DPU_V7M3_PIPE] |771|
; CALL OCCURS {xTaskNotifyWait } ; [] |771|
.dwpsn file "../OS/stream_buffer.c",line 772,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 772 | pxStreamBuffer->xTaskWaitingToReceive = NULL;
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |772|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |772|
STR A2, [A1, #16] ; [DPU_V7M3_PIPE] |772|
.dwpsn file "../OS/stream_buffer.c",line 775,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 775 | xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |775|
$C$DW$173 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$173, DW_AT_low_pc(0x00)
.dwattr $C$DW$173, DW_AT_name("prvBytesInBuffer")
.dwattr $C$DW$173, DW_AT_TI_call
BL prvBytesInBuffer ; [DPU_V7M3_PIPE] |775|
; CALL OCCURS {prvBytesInBuffer } ; [] |775|
STR A1, [SP, #28] ; [DPU_V7M3_PIPE] |775|
.dwpsn file "../OS/stream_buffer.c",line 776,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 777 | else
; 779 | mtCOVERAGE_TEST_MARKER();
; 782 | else
;----------------------------------------------------------------------
B ||$C$L81|| ; [DPU_V7M3_PIPE] |776|
; BRANCH OCCURS {||$C$L81||} ; [] |776|
;* --------------------------------------------------------------------------*
;* --------------------------------------------------------------------------*
||$C$L80||:
.dwpsn file "../OS/stream_buffer.c",line 784,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 784 | xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |784|
$C$DW$174 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$174, DW_AT_low_pc(0x00)
.dwattr $C$DW$174, DW_AT_name("prvBytesInBuffer")
.dwattr $C$DW$174, DW_AT_TI_call
BL prvBytesInBuffer ; [DPU_V7M3_PIPE] |784|
; CALL OCCURS {prvBytesInBuffer } ; [] |784|
STR A1, [SP, #28] ; [DPU_V7M3_PIPE] |784|
;* --------------------------------------------------------------------------*
||$C$L81||:
.dwpsn file "../OS/stream_buffer.c",line 792,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 792 | if( xBytesAvailable > xBytesToStoreMessageLength )
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |792|
LDR A2, [SP, #28] ; [DPU_V7M3_PIPE] |792|
CMP A1, A2 ; [DPU_V7M3_PIPE] |792|
BCS ||$C$L83|| ; [DPU_V7M3_PIPE] |792|
; BRANCHCC OCCURS {||$C$L83||} ; [] |792|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 794,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 794 | xReceivedLength = prvReadMessageFromBuffer( pxStreamBuffer, pvRxData, x
; | BufferLengthBytes, xBytesAvailable, xBytesToStoreMessageLength );
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |794|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |794|
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |794|
LDR A3, [SP, #12] ; [DPU_V7M3_PIPE] |794|
LDR A4, [SP, #28] ; [DPU_V7M3_PIPE] |794|
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |794|
$C$DW$175 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$175, DW_AT_low_pc(0x00)
.dwattr $C$DW$175, DW_AT_name("prvReadMessageFromBuffer")
.dwattr $C$DW$175, DW_AT_TI_call
BL prvReadMessageFromBuffer ; [DPU_V7M3_PIPE] |794|
; CALL OCCURS {prvReadMessageFromBuffer } ; [] |794|
STR A1, [SP, #24] ; [DPU_V7M3_PIPE] |794|
.dwpsn file "../OS/stream_buffer.c",line 797,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 797 | if( xReceivedLength != ( size_t ) 0 )
; 799 | traceSTREAM_BUFFER_RECEIVE( xStreamBuffer, xReceivedLength );
;----------------------------------------------------------------------
LDR A1, [SP, #24] ; [DPU_V7M3_PIPE] |797|
CBZ A1, ||$C$L83|| ; []
; BRANCHCC OCCURS {||$C$L83||} ; [] |797|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 800,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 800 | sbRECEIVE_COMPLETED( pxStreamBuffer );
;----------------------------------------------------------------------
$C$DW$176 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$176, DW_AT_low_pc(0x00)
.dwattr $C$DW$176, DW_AT_name("vTaskSuspendAll")
.dwattr $C$DW$176, DW_AT_TI_call
BL vTaskSuspendAll ; [DPU_V7M3_PIPE] |800|
; CALL OCCURS {vTaskSuspendAll } ; [] |800|
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |800|
LDR A1, [A1, #20] ; [DPU_V7M3_PIPE] |800|
CBZ A1, ||$C$L82|| ; []
; BRANCHCC OCCURS {||$C$L82||} ; [] |800|
;* --------------------------------------------------------------------------*
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |800|
LDR A1, [A1, #20] ; [DPU_V7M3_PIPE] |800|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |800|
MOVS A3, #0 ; [DPU_V7M3_PIPE] |800|
MOVS A4, #0 ; [DPU_V7M3_PIPE] |800|
$C$DW$177 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$177, DW_AT_low_pc(0x00)
.dwattr $C$DW$177, DW_AT_name("xTaskGenericNotify")
.dwattr $C$DW$177, DW_AT_TI_call
BL xTaskGenericNotify ; [DPU_V7M3_PIPE] |800|
; CALL OCCURS {xTaskGenericNotify } ; [] |800|
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |800|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |800|
STR A2, [A1, #20] ; [DPU_V7M3_PIPE] |800|
;* --------------------------------------------------------------------------*
||$C$L82||:
$C$DW$178 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$178, DW_AT_low_pc(0x00)
.dwattr $C$DW$178, DW_AT_name("xTaskResumeAll")
.dwattr $C$DW$178, DW_AT_TI_call
BL xTaskResumeAll ; [DPU_V7M3_PIPE] |800|
; CALL OCCURS {xTaskResumeAll } ; [] |800|
.dwpsn file "../OS/stream_buffer.c",line 801,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 802 | else
; 804 | mtCOVERAGE_TEST_MARKER();
; 807 | else
; 809 | traceSTREAM_BUFFER_RECEIVE_FAILED( xStreamBuffer );
; 810 | mtCOVERAGE_TEST_MARKER();
;----------------------------------------------------------------------
B ||$C$L83|| ; [DPU_V7M3_PIPE] |801|
; BRANCH OCCURS {||$C$L83||} ; [] |801|
;* --------------------------------------------------------------------------*
;* --------------------------------------------------------------------------*
||$C$L83||:
.dwpsn file "../OS/stream_buffer.c",line 813,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 813 | return xReceivedLength;
;----------------------------------------------------------------------
LDR A1, [SP, #24] ; [DPU_V7M3_PIPE] |813|
.dwpsn file "../OS/stream_buffer.c",line 814,column 1,is_stmt,isa 1
ADD SP, SP, #36 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
$C$DW$179 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$179, DW_AT_low_pc(0x00)
.dwattr $C$DW$179, DW_AT_TI_return
POP {PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
; BRANCH OCCURS ; []
.dwattr $C$DW$154, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$154, DW_AT_TI_end_line(0x32e)
.dwattr $C$DW$154, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$154
.sect ".text"
.clink
.thumbfunc xStreamBufferNextMessageLengthBytes
.thumb
.global xStreamBufferNextMessageLengthBytes
$C$DW$180 .dwtag DW_TAG_subprogram
.dwattr $C$DW$180, DW_AT_name("xStreamBufferNextMessageLengthBytes")
.dwattr $C$DW$180, DW_AT_low_pc(xStreamBufferNextMessageLengthBytes)
.dwattr $C$DW$180, DW_AT_high_pc(0x00)
.dwattr $C$DW$180, DW_AT_TI_symbol_name("xStreamBufferNextMessageLengthBytes")
.dwattr $C$DW$180, DW_AT_external
.dwattr $C$DW$180, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$180, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$180, DW_AT_TI_begin_line(0x331)
.dwattr $C$DW$180, DW_AT_TI_begin_column(0x08)
.dwattr $C$DW$180, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$180, DW_AT_decl_line(0x331)
.dwattr $C$DW$180, DW_AT_decl_column(0x08)
.dwattr $C$DW$180, DW_AT_TI_max_frame_size(0x20)
.dwpsn file "../OS/stream_buffer.c",line 818,column 1,is_stmt,address xStreamBufferNextMessageLengthBytes,isa 1
.dwfde $C$DW$CIE, xStreamBufferNextMessageLengthBytes
$C$DW$181 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$181, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$181, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$181, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$181, DW_AT_location[DW_OP_reg0]
;----------------------------------------------------------------------
; 817 | size_t xStreamBufferNextMessageLengthBytes( StreamBufferHandle_t xStrea
; | mBuffer )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferNextMessageLengthBytes *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 24 Auto + 4 Save = 28 byte *
;*****************************************************************************
xStreamBufferNextMessageLengthBytes:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
.dwcfi save_reg_to_mem, 14, -4
SUB SP, SP, #28 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 32
$C$DW$182 .dwtag DW_TAG_variable
.dwattr $C$DW$182, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$182, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$182, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$182, DW_AT_location[DW_OP_breg13 0]
$C$DW$183 .dwtag DW_TAG_variable
.dwattr $C$DW$183, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$183, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$183, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$183, DW_AT_location[DW_OP_breg13 4]
$C$DW$184 .dwtag DW_TAG_variable
.dwattr $C$DW$184, DW_AT_name("xReturn")
.dwattr $C$DW$184, DW_AT_TI_symbol_name("xReturn")
.dwattr $C$DW$184, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$184, DW_AT_location[DW_OP_breg13 8]
$C$DW$185 .dwtag DW_TAG_variable
.dwattr $C$DW$185, DW_AT_name("xBytesAvailable")
.dwattr $C$DW$185, DW_AT_TI_symbol_name("xBytesAvailable")
.dwattr $C$DW$185, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$185, DW_AT_location[DW_OP_breg13 12]
$C$DW$186 .dwtag DW_TAG_variable
.dwattr $C$DW$186, DW_AT_name("xOriginalTail")
.dwattr $C$DW$186, DW_AT_TI_symbol_name("xOriginalTail")
.dwattr $C$DW$186, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$186, DW_AT_location[DW_OP_breg13 16]
$C$DW$187 .dwtag DW_TAG_variable
.dwattr $C$DW$187, DW_AT_name("xTempReturn")
.dwattr $C$DW$187, DW_AT_TI_symbol_name("xTempReturn")
.dwattr $C$DW$187, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$187, DW_AT_location[DW_OP_breg13 20]
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |818|
.dwpsn file "../OS/stream_buffer.c",line 819,column 39,is_stmt,isa 1
;----------------------------------------------------------------------
; 819 | StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
; 820 | size_t xReturn, xBytesAvailable, xOriginalTail;
; 821 | configMESSAGE_BUFFER_LENGTH_TYPE xTempReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |819|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |819|
.dwpsn file "../OS/stream_buffer.c",line 823,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 823 | configASSERT( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |823|
CBNZ A1, ||$C$L85|| ; []
; BRANCHCC OCCURS {||$C$L85||} ; [] |823|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |823|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |823|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L84||
;*
;* Loop source line : 823
;* Loop closing brace source line : 823
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L84||:
B ||$C$L84|| ; [DPU_V7M3_PIPE] |823|
; BRANCH OCCURS {||$C$L84||} ; [] |823|
;* --------------------------------------------------------------------------*
||$C$L85||:
.dwpsn file "../OS/stream_buffer.c",line 826,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 826 | if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_
; | t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |826|
LDRB A1, [A1, #28] ; [DPU_V7M3_PIPE] |826|
LSRS A1, A1, #1 ; [DPU_V7M3_PIPE] |826|
BCC ||$C$L90|| ; [DPU_V7M3_PIPE] |826|
; BRANCHCC OCCURS {||$C$L90||} ; [] |826|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 828,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 828 | xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |828|
$C$DW$188 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$188, DW_AT_low_pc(0x00)
.dwattr $C$DW$188, DW_AT_name("prvBytesInBuffer")
.dwattr $C$DW$188, DW_AT_TI_call
BL prvBytesInBuffer ; [DPU_V7M3_PIPE] |828|
; CALL OCCURS {prvBytesInBuffer } ; [] |828|
STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |828|
.dwpsn file "../OS/stream_buffer.c",line 829,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 829 | if( xBytesAvailable > sbBYTES_TO_STORE_MESSAGE_LENGTH )
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |829|
CMP A1, #4 ; [DPU_V7M3_PIPE] |829|
BLS ||$C$L86|| ; [DPU_V7M3_PIPE] |829|
; BRANCHCC OCCURS {||$C$L86||} ; [] |829|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 837,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 837 | xOriginalTail = pxStreamBuffer->xTail;
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |837|
LDR A1, [A1, #0] ; [DPU_V7M3_PIPE] |837|
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |837|
.dwpsn file "../OS/stream_buffer.c",line 838,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 838 | ( void ) prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * ) &xTempRe
; | turn, sbBYTES_TO_STORE_MESSAGE_LENGTH, xBytesAvailable );
;----------------------------------------------------------------------
LDR A4, [SP, #12] ; [DPU_V7M3_PIPE] |838|
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |838|
ADD A2, SP, #20 ; [DPU_V7M3_PIPE] |838|
MOVS A3, #4 ; [DPU_V7M3_PIPE] |838|
$C$DW$189 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$189, DW_AT_low_pc(0x00)
.dwattr $C$DW$189, DW_AT_name("prvReadBytesFromBuffer")
.dwattr $C$DW$189, DW_AT_TI_call
BL prvReadBytesFromBuffer ; [DPU_V7M3_PIPE] |838|
; CALL OCCURS {prvReadBytesFromBuffer } ; [] |838|
.dwpsn file "../OS/stream_buffer.c",line 839,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 839 | xReturn = ( size_t ) xTempReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |839|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |839|
.dwpsn file "../OS/stream_buffer.c",line 840,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 840 | pxStreamBuffer->xTail = xOriginalTail;
;----------------------------------------------------------------------
LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |840|
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |840|
STR A1, [A2, #0] ; [DPU_V7M3_PIPE] |840|
.dwpsn file "../OS/stream_buffer.c",line 841,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 842 | else
;----------------------------------------------------------------------
B ||$C$L91|| ; [DPU_V7M3_PIPE] |841|
; BRANCH OCCURS {||$C$L91||} ; [] |841|
;* --------------------------------------------------------------------------*
||$C$L86||:
.dwpsn file "../OS/stream_buffer.c",line 848,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 848 | configASSERT( xBytesAvailable == 0 );
;----------------------------------------------------------------------
LDR A2, [SP, #12] ; [DPU_V7M3_PIPE] |848|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |848|
CBNZ A2, ||$C$L87|| ; []
; BRANCHCC OCCURS {||$C$L87||} ; [] |848|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |848|
;* --------------------------------------------------------------------------*
||$C$L87||:
CBNZ A1, ||$C$L89|| ; []
; BRANCHCC OCCURS {||$C$L89||} ; [] |848|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |848|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |848|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L88||
;*
;* Loop source line : 848
;* Loop closing brace source line : 848
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L88||:
B ||$C$L88|| ; [DPU_V7M3_PIPE] |848|
; BRANCH OCCURS {||$C$L88||} ; [] |848|
;* --------------------------------------------------------------------------*
||$C$L89||:
.dwpsn file "../OS/stream_buffer.c",line 849,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 849 | xReturn = 0;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |849|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |849|
.dwpsn file "../OS/stream_buffer.c",line 851,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 852 | else
;----------------------------------------------------------------------
B ||$C$L91|| ; [DPU_V7M3_PIPE] |851|
; BRANCH OCCURS {||$C$L91||} ; [] |851|
;* --------------------------------------------------------------------------*
||$C$L90||:
.dwpsn file "../OS/stream_buffer.c",line 854,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 854 | xReturn = 0;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |854|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |854|
;* --------------------------------------------------------------------------*
||$C$L91||:
.dwpsn file "../OS/stream_buffer.c",line 857,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 857 | return xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |857|
.dwpsn file "../OS/stream_buffer.c",line 858,column 1,is_stmt,isa 1
ADD SP, SP, #28 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
$C$DW$190 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$190, DW_AT_low_pc(0x00)
.dwattr $C$DW$190, DW_AT_TI_return
POP {PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
; BRANCH OCCURS ; []
.dwattr $C$DW$180, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$180, DW_AT_TI_end_line(0x35a)
.dwattr $C$DW$180, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$180
.sect ".text"
.clink
.thumbfunc xStreamBufferReceiveFromISR
.thumb
.global xStreamBufferReceiveFromISR
$C$DW$191 .dwtag DW_TAG_subprogram
.dwattr $C$DW$191, DW_AT_name("xStreamBufferReceiveFromISR")
.dwattr $C$DW$191, DW_AT_low_pc(xStreamBufferReceiveFromISR)
.dwattr $C$DW$191, DW_AT_high_pc(0x00)
.dwattr $C$DW$191, DW_AT_TI_symbol_name("xStreamBufferReceiveFromISR")
.dwattr $C$DW$191, DW_AT_external
.dwattr $C$DW$191, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$191, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$191, DW_AT_TI_begin_line(0x35d)
.dwattr $C$DW$191, DW_AT_TI_begin_column(0x08)
.dwattr $C$DW$191, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$191, DW_AT_decl_line(0x35d)
.dwattr $C$DW$191, DW_AT_decl_column(0x08)
.dwattr $C$DW$191, DW_AT_TI_max_frame_size(0x30)
.dwpsn file "../OS/stream_buffer.c",line 865,column 1,is_stmt,address xStreamBufferReceiveFromISR,isa 1
.dwfde $C$DW$CIE, xStreamBufferReceiveFromISR
$C$DW$192 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$192, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$192, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$192, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$192, DW_AT_location[DW_OP_reg0]
$C$DW$193 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$193, DW_AT_name("pvRxData")
.dwattr $C$DW$193, DW_AT_TI_symbol_name("pvRxData")
.dwattr $C$DW$193, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$193, DW_AT_location[DW_OP_reg1]
$C$DW$194 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$194, DW_AT_name("xBufferLengthBytes")
.dwattr $C$DW$194, DW_AT_TI_symbol_name("xBufferLengthBytes")
.dwattr $C$DW$194, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$194, DW_AT_location[DW_OP_reg2]
$C$DW$195 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$195, DW_AT_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$195, DW_AT_TI_symbol_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$195, DW_AT_type(*$C$DW$T$218)
.dwattr $C$DW$195, DW_AT_location[DW_OP_reg3]
;----------------------------------------------------------------------
; 861 | size_t xStreamBufferReceiveFromISR( StreamBufferHandle_t xStreamBuffer,
; 862 | void *pvRxData,
; 863 | size_t xBufferLengthBytes,
; 864 | BaseType_t * const pxHigherPriorityTaskWoken )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferReceiveFromISR *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 4 Args + 36 Auto + 4 Save = 44 byte *
;*****************************************************************************
xStreamBufferReceiveFromISR:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
.dwcfi save_reg_to_mem, 14, -4
SUB SP, SP, #44 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 48
$C$DW$196 .dwtag DW_TAG_variable
.dwattr $C$DW$196, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$196, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$196, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$196, DW_AT_location[DW_OP_breg13 4]
$C$DW$197 .dwtag DW_TAG_variable
.dwattr $C$DW$197, DW_AT_name("pvRxData")
.dwattr $C$DW$197, DW_AT_TI_symbol_name("pvRxData")
.dwattr $C$DW$197, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$197, DW_AT_location[DW_OP_breg13 8]
$C$DW$198 .dwtag DW_TAG_variable
.dwattr $C$DW$198, DW_AT_name("xBufferLengthBytes")
.dwattr $C$DW$198, DW_AT_TI_symbol_name("xBufferLengthBytes")
.dwattr $C$DW$198, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$198, DW_AT_location[DW_OP_breg13 12]
$C$DW$199 .dwtag DW_TAG_variable
.dwattr $C$DW$199, DW_AT_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$199, DW_AT_TI_symbol_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$199, DW_AT_type(*$C$DW$T$218)
.dwattr $C$DW$199, DW_AT_location[DW_OP_breg13 16]
$C$DW$200 .dwtag DW_TAG_variable
.dwattr $C$DW$200, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$200, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$200, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$200, DW_AT_location[DW_OP_breg13 20]
$C$DW$201 .dwtag DW_TAG_variable
.dwattr $C$DW$201, DW_AT_name("xReceivedLength")
.dwattr $C$DW$201, DW_AT_TI_symbol_name("xReceivedLength")
.dwattr $C$DW$201, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$201, DW_AT_location[DW_OP_breg13 24]
$C$DW$202 .dwtag DW_TAG_variable
.dwattr $C$DW$202, DW_AT_name("xBytesAvailable")
.dwattr $C$DW$202, DW_AT_TI_symbol_name("xBytesAvailable")
.dwattr $C$DW$202, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$202, DW_AT_location[DW_OP_breg13 28]
$C$DW$203 .dwtag DW_TAG_variable
.dwattr $C$DW$203, DW_AT_name("xBytesToStoreMessageLength")
.dwattr $C$DW$203, DW_AT_TI_symbol_name("xBytesToStoreMessageLength")
.dwattr $C$DW$203, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$203, DW_AT_location[DW_OP_breg13 32]
STR A4, [SP, #16] ; [DPU_V7M3_PIPE] |865|
STR A3, [SP, #12] ; [DPU_V7M3_PIPE] |865|
STR A2, [SP, #8] ; [DPU_V7M3_PIPE] |865|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |865|
.dwpsn file "../OS/stream_buffer.c",line 866,column 39,is_stmt,isa 1
;----------------------------------------------------------------------
; 866 | StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |866|
STR A1, [SP, #20] ; [DPU_V7M3_PIPE] |866|
.dwpsn file "../OS/stream_buffer.c",line 867,column 24,is_stmt,isa 1
;----------------------------------------------------------------------
; 867 | size_t xReceivedLength = 0, xBytesAvailable, xBytesToStoreMessageLength
; | ;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |867|
STR A1, [SP, #24] ; [DPU_V7M3_PIPE] |867|
.dwpsn file "../OS/stream_buffer.c",line 869,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 869 | configASSERT( pvRxData );
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |869|
CBNZ A1, ||$C$L93|| ; []
; BRANCHCC OCCURS {||$C$L93||} ; [] |869|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |869|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |869|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L92||
;*
;* Loop source line : 869
;* Loop closing brace source line : 869
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L92||:
B ||$C$L92|| ; [DPU_V7M3_PIPE] |869|
; BRANCH OCCURS {||$C$L92||} ; [] |869|
;* --------------------------------------------------------------------------*
||$C$L93||:
.dwpsn file "../OS/stream_buffer.c",line 870,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 870 | configASSERT( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |870|
CBNZ A1, ||$C$L95|| ; []
; BRANCHCC OCCURS {||$C$L95||} ; [] |870|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |870|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |870|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L94||
;*
;* Loop source line : 870
;* Loop closing brace source line : 870
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L94||:
B ||$C$L94|| ; [DPU_V7M3_PIPE] |870|
; BRANCH OCCURS {||$C$L94||} ; [] |870|
;* --------------------------------------------------------------------------*
||$C$L95||:
.dwpsn file "../OS/stream_buffer.c",line 877,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 877 | if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_
; | t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |877|
LDRB A1, [A1, #28] ; [DPU_V7M3_PIPE] |877|
LSRS A1, A1, #1 ; [DPU_V7M3_PIPE] |877|
BCC ||$C$L96|| ; [DPU_V7M3_PIPE] |877|
; BRANCHCC OCCURS {||$C$L96||} ; [] |877|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 879,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 879 | xBytesToStoreMessageLength = sbBYTES_TO_STORE_MESSAGE_LENGTH;
;----------------------------------------------------------------------
MOVS A1, #4 ; [DPU_V7M3_PIPE] |879|
STR A1, [SP, #32] ; [DPU_V7M3_PIPE] |879|
.dwpsn file "../OS/stream_buffer.c",line 880,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 881 | else
;----------------------------------------------------------------------
B ||$C$L97|| ; [DPU_V7M3_PIPE] |880|
; BRANCH OCCURS {||$C$L97||} ; [] |880|
;* --------------------------------------------------------------------------*
||$C$L96||:
.dwpsn file "../OS/stream_buffer.c",line 883,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 883 | xBytesToStoreMessageLength = 0;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |883|
STR A1, [SP, #32] ; [DPU_V7M3_PIPE] |883|
;* --------------------------------------------------------------------------*
||$C$L97||:
.dwpsn file "../OS/stream_buffer.c",line 886,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 886 | xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |886|
$C$DW$204 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$204, DW_AT_low_pc(0x00)
.dwattr $C$DW$204, DW_AT_name("prvBytesInBuffer")
.dwattr $C$DW$204, DW_AT_TI_call
BL prvBytesInBuffer ; [DPU_V7M3_PIPE] |886|
; CALL OCCURS {prvBytesInBuffer } ; [] |886|
STR A1, [SP, #28] ; [DPU_V7M3_PIPE] |886|
.dwpsn file "../OS/stream_buffer.c",line 893,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 893 | if( xBytesAvailable > xBytesToStoreMessageLength )
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |893|
LDR A2, [SP, #28] ; [DPU_V7M3_PIPE] |893|
CMP A1, A2 ; [DPU_V7M3_PIPE] |893|
BCS ||$C$L99|| ; [DPU_V7M3_PIPE] |893|
; BRANCHCC OCCURS {||$C$L99||} ; [] |893|
;* --------------------------------------------------------------------------*
$C$DW$205 .dwtag DW_TAG_lexical_block
.dwattr $C$DW$205, DW_AT_low_pc(0x00)
.dwattr $C$DW$205, DW_AT_high_pc(0x00)
.dwpsn file "../OS/stream_buffer.c",line 895,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 895 | xReceivedLength = prvReadMessageFromBuffer( pxStreamBuffer, pvRxData, x
; | BufferLengthBytes, xBytesAvailable, xBytesToStoreMessageLength );
;----------------------------------------------------------------------
LDR A1, [SP, #32] ; [DPU_V7M3_PIPE] |895|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |895|
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |895|
LDR A3, [SP, #12] ; [DPU_V7M3_PIPE] |895|
LDR A4, [SP, #28] ; [DPU_V7M3_PIPE] |895|
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |895|
$C$DW$206 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$206, DW_AT_low_pc(0x00)
.dwattr $C$DW$206, DW_AT_name("prvReadMessageFromBuffer")
.dwattr $C$DW$206, DW_AT_TI_call
BL prvReadMessageFromBuffer ; [DPU_V7M3_PIPE] |895|
; CALL OCCURS {prvReadMessageFromBuffer } ; [] |895|
STR A1, [SP, #24] ; [DPU_V7M3_PIPE] |895|
.dwpsn file "../OS/stream_buffer.c",line 898,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 898 | if( xReceivedLength != ( size_t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #24] ; [DPU_V7M3_PIPE] |898|
CBZ A1, ||$C$L99|| ; []
; BRANCHCC OCCURS {||$C$L99||} ; [] |898|
;* --------------------------------------------------------------------------*
$C$DW$207 .dwtag DW_TAG_lexical_block
.dwattr $C$DW$207, DW_AT_low_pc(0x00)
.dwattr $C$DW$207, DW_AT_high_pc(0x00)
$C$DW$208 .dwtag DW_TAG_lexical_block
.dwattr $C$DW$208, DW_AT_low_pc(0x00)
.dwattr $C$DW$208, DW_AT_high_pc(0x00)
$C$DW$209 .dwtag DW_TAG_variable
.dwattr $C$DW$209, DW_AT_name("uxSavedInterruptStatus")
.dwattr $C$DW$209, DW_AT_TI_symbol_name("uxSavedInterruptStatus")
.dwattr $C$DW$209, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$209, DW_AT_location[DW_OP_breg13 36]
.dwpsn file "../OS/stream_buffer.c",line 900,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 900 | sbRECEIVE_COMPLETED_FROM_ISR( pxStreamBuffer, pxHigherPriorityTaskWoken
; | );
;----------------------------------------------------------------------
MOVS A1, #160 ; [DPU_V7M3_PIPE] |900|
MRS A2, BASEPRI ; [DPU_V7M3_PIPE] |900|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |900|
STR A2, [SP, #36] ; [DPU_V7M3_PIPE] |900|
dsb
isb
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |900|
LDR A1, [A1, #20] ; [DPU_V7M3_PIPE] |900|
CBZ A1, ||$C$L98|| ; []
; BRANCHCC OCCURS {||$C$L98||} ; [] |900|
;* --------------------------------------------------------------------------*
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |900|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |900|
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |900|
LDR A1, [A1, #20] ; [DPU_V7M3_PIPE] |900|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |900|
MOVS A3, #0 ; [DPU_V7M3_PIPE] |900|
MOVS A4, #0 ; [DPU_V7M3_PIPE] |900|
$C$DW$210 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$210, DW_AT_low_pc(0x00)
.dwattr $C$DW$210, DW_AT_name("xTaskGenericNotifyFromISR")
.dwattr $C$DW$210, DW_AT_TI_call
BL xTaskGenericNotifyFromISR ; [DPU_V7M3_PIPE] |900|
; CALL OCCURS {xTaskGenericNotifyFromISR } ; [] |900|
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |900|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |900|
STR A2, [A1, #20] ; [DPU_V7M3_PIPE] |900|
;* --------------------------------------------------------------------------*
||$C$L98||:
LDR A1, [SP, #36] ; [DPU_V7M3_PIPE] |900|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |900|
.dwendtag $C$DW$208
.dwendtag $C$DW$207
.dwpsn file "../OS/stream_buffer.c",line 901,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 902 | else
; 904 | mtCOVERAGE_TEST_MARKER();
; 907 | else
; 909 | mtCOVERAGE_TEST_MARKER();
; 912 | traceSTREAM_BUFFER_RECEIVE_FROM_ISR( xStreamBuffer, xReceivedLength );
;----------------------------------------------------------------------
B ||$C$L99|| ; [DPU_V7M3_PIPE] |901|
; BRANCH OCCURS {||$C$L99||} ; [] |901|
;* --------------------------------------------------------------------------*
.dwendtag $C$DW$205
;* --------------------------------------------------------------------------*
||$C$L99||:
.dwpsn file "../OS/stream_buffer.c",line 914,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 914 | return xReceivedLength;
;----------------------------------------------------------------------
LDR A1, [SP, #24] ; [DPU_V7M3_PIPE] |914|
.dwpsn file "../OS/stream_buffer.c",line 915,column 1,is_stmt,isa 1
ADD SP, SP, #44 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
$C$DW$211 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$211, DW_AT_low_pc(0x00)
.dwattr $C$DW$211, DW_AT_TI_return
POP {PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
; BRANCH OCCURS ; []
.dwattr $C$DW$191, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$191, DW_AT_TI_end_line(0x393)
.dwattr $C$DW$191, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$191
.sect ".text"
.clink
.thumbfunc prvReadMessageFromBuffer
.thumb
$C$DW$212 .dwtag DW_TAG_subprogram
.dwattr $C$DW$212, DW_AT_name("prvReadMessageFromBuffer")
.dwattr $C$DW$212, DW_AT_low_pc(prvReadMessageFromBuffer)
.dwattr $C$DW$212, DW_AT_high_pc(0x00)
.dwattr $C$DW$212, DW_AT_TI_symbol_name("prvReadMessageFromBuffer")
.dwattr $C$DW$212, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$212, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$212, DW_AT_TI_begin_line(0x396)
.dwattr $C$DW$212, DW_AT_TI_begin_column(0x0f)
.dwattr $C$DW$212, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$212, DW_AT_decl_line(0x396)
.dwattr $C$DW$212, DW_AT_decl_column(0x0f)
.dwattr $C$DW$212, DW_AT_TI_max_frame_size(0x28)
.dwpsn file "../OS/stream_buffer.c",line 923,column 1,is_stmt,address prvReadMessageFromBuffer,isa 1
.dwfde $C$DW$CIE, prvReadMessageFromBuffer
$C$DW$213 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$213, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$213, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$213, DW_AT_type(*$C$DW$T$105)
.dwattr $C$DW$213, DW_AT_location[DW_OP_reg0]
$C$DW$214 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$214, DW_AT_name("pvRxData")
.dwattr $C$DW$214, DW_AT_TI_symbol_name("pvRxData")
.dwattr $C$DW$214, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$214, DW_AT_location[DW_OP_reg1]
$C$DW$215 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$215, DW_AT_name("xBufferLengthBytes")
.dwattr $C$DW$215, DW_AT_TI_symbol_name("xBufferLengthBytes")
.dwattr $C$DW$215, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$215, DW_AT_location[DW_OP_reg2]
$C$DW$216 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$216, DW_AT_name("xBytesAvailable")
.dwattr $C$DW$216, DW_AT_TI_symbol_name("xBytesAvailable")
.dwattr $C$DW$216, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$216, DW_AT_location[DW_OP_reg3]
$C$DW$217 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$217, DW_AT_name("xBytesToStoreMessageLength")
.dwattr $C$DW$217, DW_AT_TI_symbol_name("xBytesToStoreMessageLength")
.dwattr $C$DW$217, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$217, DW_AT_location[DW_OP_breg13 40]
;----------------------------------------------------------------------
; 918 | static size_t prvReadMessageFromBuffer( StreamBuffer_t *pxStreamBuffer,
; 919 | void *pvRxData,
; 920 | size_t xBufferLengthBytes,
; 921 | size_t xBytesAvailable,
; 922 | size_t xBytesToStoreMessageLength )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: prvReadMessageFromBuffer *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 32 Auto + 4 Save = 36 byte *
;*****************************************************************************
prvReadMessageFromBuffer:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
.dwcfi save_reg_to_mem, 14, -4
SUB SP, SP, #36 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 40
$C$DW$218 .dwtag DW_TAG_variable
.dwattr $C$DW$218, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$218, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$218, DW_AT_type(*$C$DW$T$105)
.dwattr $C$DW$218, DW_AT_location[DW_OP_breg13 0]
$C$DW$219 .dwtag DW_TAG_variable
.dwattr $C$DW$219, DW_AT_name("pvRxData")
.dwattr $C$DW$219, DW_AT_TI_symbol_name("pvRxData")
.dwattr $C$DW$219, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$219, DW_AT_location[DW_OP_breg13 4]
$C$DW$220 .dwtag DW_TAG_variable
.dwattr $C$DW$220, DW_AT_name("xBufferLengthBytes")
.dwattr $C$DW$220, DW_AT_TI_symbol_name("xBufferLengthBytes")
.dwattr $C$DW$220, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$220, DW_AT_location[DW_OP_breg13 8]
$C$DW$221 .dwtag DW_TAG_variable
.dwattr $C$DW$221, DW_AT_name("xBytesAvailable")
.dwattr $C$DW$221, DW_AT_TI_symbol_name("xBytesAvailable")
.dwattr $C$DW$221, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$221, DW_AT_location[DW_OP_breg13 12]
$C$DW$222 .dwtag DW_TAG_variable
.dwattr $C$DW$222, DW_AT_name("xOriginalTail")
.dwattr $C$DW$222, DW_AT_TI_symbol_name("xOriginalTail")
.dwattr $C$DW$222, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$222, DW_AT_location[DW_OP_breg13 16]
$C$DW$223 .dwtag DW_TAG_variable
.dwattr $C$DW$223, DW_AT_name("xReceivedLength")
.dwattr $C$DW$223, DW_AT_TI_symbol_name("xReceivedLength")
.dwattr $C$DW$223, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$223, DW_AT_location[DW_OP_breg13 20]
$C$DW$224 .dwtag DW_TAG_variable
.dwattr $C$DW$224, DW_AT_name("xNextMessageLength")
.dwattr $C$DW$224, DW_AT_TI_symbol_name("xNextMessageLength")
.dwattr $C$DW$224, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$224, DW_AT_location[DW_OP_breg13 24]
$C$DW$225 .dwtag DW_TAG_variable
.dwattr $C$DW$225, DW_AT_name("xTempNextMessageLength")
.dwattr $C$DW$225, DW_AT_TI_symbol_name("xTempNextMessageLength")
.dwattr $C$DW$225, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$225, DW_AT_location[DW_OP_breg13 28]
;----------------------------------------------------------------------
; 924 | size_t xOriginalTail, xReceivedLength, xNextMessageLength;
; 925 | configMESSAGE_BUFFER_LENGTH_TYPE xTempNextMessageLength;
;----------------------------------------------------------------------
STR A4, [SP, #12] ; [DPU_V7M3_PIPE] |923|
STR A3, [SP, #8] ; [DPU_V7M3_PIPE] |923|
STR A2, [SP, #4] ; [DPU_V7M3_PIPE] |923|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |923|
.dwpsn file "../OS/stream_buffer.c",line 927,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 927 | if( xBytesToStoreMessageLength != ( size_t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #40] ; [DPU_V7M3_PIPE] |927|
CBZ A1, ||$C$L100|| ; []
; BRANCHCC OCCURS {||$C$L100||} ; [] |927|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 933,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 933 | xOriginalTail = pxStreamBuffer->xTail;
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |933|
LDR A1, [A1, #0] ; [DPU_V7M3_PIPE] |933|
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |933|
.dwpsn file "../OS/stream_buffer.c",line 934,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 934 | ( void ) prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * ) &xTempNe
; | xtMessageLength, xBytesToStoreMessageLength, xBytesAvailable );
;----------------------------------------------------------------------
LDR A3, [SP, #40] ; [DPU_V7M3_PIPE] |934|
LDR A4, [SP, #12] ; [DPU_V7M3_PIPE] |934|
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |934|
ADD A2, SP, #28 ; [DPU_V7M3_PIPE] |934|
$C$DW$226 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$226, DW_AT_low_pc(0x00)
.dwattr $C$DW$226, DW_AT_name("prvReadBytesFromBuffer")
.dwattr $C$DW$226, DW_AT_TI_call
BL prvReadBytesFromBuffer ; [DPU_V7M3_PIPE] |934|
; CALL OCCURS {prvReadBytesFromBuffer } ; [] |934|
.dwpsn file "../OS/stream_buffer.c",line 935,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 935 | xNextMessageLength = ( size_t ) xTempNextMessageLength;
;----------------------------------------------------------------------
LDR A1, [SP, #28] ; [DPU_V7M3_PIPE] |935|
STR A1, [SP, #24] ; [DPU_V7M3_PIPE] |935|
.dwpsn file "../OS/stream_buffer.c",line 939,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 939 | xBytesAvailable -= xBytesToStoreMessageLength;
;----------------------------------------------------------------------
LDR A2, [SP, #40] ; [DPU_V7M3_PIPE] |939|
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |939|
SUBS A1, A1, A2 ; [DPU_V7M3_PIPE] |939|
STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |939|
.dwpsn file "../OS/stream_buffer.c",line 943,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 943 | if( xNextMessageLength > xBufferLengthBytes )
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |943|
LDR A2, [SP, #24] ; [DPU_V7M3_PIPE] |943|
CMP A1, A2 ; [DPU_V7M3_PIPE] |943|
BCS ||$C$L101|| ; [DPU_V7M3_PIPE] |943|
; BRANCHCC OCCURS {||$C$L101||} ; [] |943|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 948,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 948 | pxStreamBuffer->xTail = xOriginalTail;
;----------------------------------------------------------------------
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |948|
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |948|
STR A1, [A2, #0] ; [DPU_V7M3_PIPE] |948|
.dwpsn file "../OS/stream_buffer.c",line 949,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 949 | xNextMessageLength = 0;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |949|
STR A1, [SP, #24] ; [DPU_V7M3_PIPE] |949|
.dwpsn file "../OS/stream_buffer.c",line 950,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 951 | else
; 953 | mtCOVERAGE_TEST_MARKER();
; 956 | else
;----------------------------------------------------------------------
B ||$C$L101|| ; [DPU_V7M3_PIPE] |950|
; BRANCH OCCURS {||$C$L101||} ; [] |950|
;* --------------------------------------------------------------------------*
;* --------------------------------------------------------------------------*
||$C$L100||:
.dwpsn file "../OS/stream_buffer.c",line 960,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 960 | xNextMessageLength = xBufferLengthBytes;
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |960|
STR A1, [SP, #24] ; [DPU_V7M3_PIPE] |960|
;* --------------------------------------------------------------------------*
||$C$L101||:
.dwpsn file "../OS/stream_buffer.c",line 964,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 964 | xReceivedLength = prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * )
; | pvRxData, xNextMessageLength, xBytesAvailable ); /*lint !e9079 Data st
; | orage area is implemented as uint8_t array for ease of sizing, indexing
; | and alignment. */
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |964|
LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |964|
LDR A3, [SP, #24] ; [DPU_V7M3_PIPE] |964|
LDR A4, [SP, #12] ; [DPU_V7M3_PIPE] |964|
$C$DW$227 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$227, DW_AT_low_pc(0x00)
.dwattr $C$DW$227, DW_AT_name("prvReadBytesFromBuffer")
.dwattr $C$DW$227, DW_AT_TI_call
BL prvReadBytesFromBuffer ; [DPU_V7M3_PIPE] |964|
; CALL OCCURS {prvReadBytesFromBuffer } ; [] |964|
STR A1, [SP, #20] ; [DPU_V7M3_PIPE] |964|
.dwpsn file "../OS/stream_buffer.c",line 966,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 966 | return xReceivedLength;
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |966|
.dwpsn file "../OS/stream_buffer.c",line 967,column 1,is_stmt,isa 1
ADD SP, SP, #36 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
$C$DW$228 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$228, DW_AT_low_pc(0x00)
.dwattr $C$DW$228, DW_AT_TI_return
POP {PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
; BRANCH OCCURS ; []
.dwattr $C$DW$212, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$212, DW_AT_TI_end_line(0x3c7)
.dwattr $C$DW$212, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$212
.sect ".text"
.clink
.thumbfunc xStreamBufferIsEmpty
.thumb
.global xStreamBufferIsEmpty
$C$DW$229 .dwtag DW_TAG_subprogram
.dwattr $C$DW$229, DW_AT_name("xStreamBufferIsEmpty")
.dwattr $C$DW$229, DW_AT_low_pc(xStreamBufferIsEmpty)
.dwattr $C$DW$229, DW_AT_high_pc(0x00)
.dwattr $C$DW$229, DW_AT_TI_symbol_name("xStreamBufferIsEmpty")
.dwattr $C$DW$229, DW_AT_external
.dwattr $C$DW$229, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$229, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$229, DW_AT_TI_begin_line(0x3ca)
.dwattr $C$DW$229, DW_AT_TI_begin_column(0x0c)
.dwattr $C$DW$229, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$229, DW_AT_decl_line(0x3ca)
.dwattr $C$DW$229, DW_AT_decl_column(0x0c)
.dwattr $C$DW$229, DW_AT_TI_max_frame_size(0x10)
.dwpsn file "../OS/stream_buffer.c",line 971,column 1,is_stmt,address xStreamBufferIsEmpty,isa 1
.dwfde $C$DW$CIE, xStreamBufferIsEmpty
$C$DW$230 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$230, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$230, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$230, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$230, DW_AT_location[DW_OP_reg0]
;----------------------------------------------------------------------
; 970 | BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferIsEmpty *
;* *
;* Regs Modified : A1,A2,SP,SR *
;* Regs Used : A1,A2,SP,LR,SR *
;* Local Frame Size : 0 Args + 16 Auto + 0 Save = 16 byte *
;*****************************************************************************
xStreamBufferIsEmpty:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
SUB SP, SP, #16 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 16
$C$DW$231 .dwtag DW_TAG_variable
.dwattr $C$DW$231, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$231, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$231, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$231, DW_AT_location[DW_OP_breg13 0]
$C$DW$232 .dwtag DW_TAG_variable
.dwattr $C$DW$232, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$232, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$232, DW_AT_type(*$C$DW$T$104)
.dwattr $C$DW$232, DW_AT_location[DW_OP_breg13 4]
$C$DW$233 .dwtag DW_TAG_variable
.dwattr $C$DW$233, DW_AT_name("xReturn")
.dwattr $C$DW$233, DW_AT_TI_symbol_name("xReturn")
.dwattr $C$DW$233, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$233, DW_AT_location[DW_OP_breg13 8]
$C$DW$234 .dwtag DW_TAG_variable
.dwattr $C$DW$234, DW_AT_name("xTail")
.dwattr $C$DW$234, DW_AT_TI_symbol_name("xTail")
.dwattr $C$DW$234, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$234, DW_AT_location[DW_OP_breg13 12]
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |971|
.dwpsn file "../OS/stream_buffer.c",line 972,column 45,is_stmt,isa 1
;----------------------------------------------------------------------
; 972 | const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
; 973 | BaseType_t xReturn;
; 974 | size_t xTail;
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |972|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |972|
.dwpsn file "../OS/stream_buffer.c",line 976,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 976 | configASSERT( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |976|
CBNZ A1, ||$C$L103|| ; []
; BRANCHCC OCCURS {||$C$L103||} ; [] |976|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |976|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |976|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L102||
;*
;* Loop source line : 976
;* Loop closing brace source line : 976
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L102||:
B ||$C$L102|| ; [DPU_V7M3_PIPE] |976|
; BRANCH OCCURS {||$C$L102||} ; [] |976|
;* --------------------------------------------------------------------------*
||$C$L103||:
.dwpsn file "../OS/stream_buffer.c",line 979,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 979 | xTail = pxStreamBuffer->xTail;
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |979|
LDR A1, [A1, #0] ; [DPU_V7M3_PIPE] |979|
STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |979|
.dwpsn file "../OS/stream_buffer.c",line 980,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 980 | if( pxStreamBuffer->xHead == xTail )
;----------------------------------------------------------------------
LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |980|
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |980|
LDR A2, [A2, #4] ; [DPU_V7M3_PIPE] |980|
CMP A1, A2 ; [DPU_V7M3_PIPE] |980|
BNE ||$C$L104|| ; [DPU_V7M3_PIPE] |980|
; BRANCHCC OCCURS {||$C$L104||} ; [] |980|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 982,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 982 | xReturn = pdTRUE;
;----------------------------------------------------------------------
MOVS A1, #1 ; [DPU_V7M3_PIPE] |982|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |982|
.dwpsn file "../OS/stream_buffer.c",line 983,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 984 | else
;----------------------------------------------------------------------
B ||$C$L105|| ; [DPU_V7M3_PIPE] |983|
; BRANCH OCCURS {||$C$L105||} ; [] |983|
;* --------------------------------------------------------------------------*
||$C$L104||:
.dwpsn file "../OS/stream_buffer.c",line 986,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 986 | xReturn = pdFALSE;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |986|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |986|
;* --------------------------------------------------------------------------*
||$C$L105||:
.dwpsn file "../OS/stream_buffer.c",line 989,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 989 | return xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |989|
.dwpsn file "../OS/stream_buffer.c",line 990,column 1,is_stmt,isa 1
ADD SP, SP, #16 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
$C$DW$235 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$235, DW_AT_low_pc(0x00)
.dwattr $C$DW$235, DW_AT_TI_return
BX LR ; [DPU_V7M3_PIPE]
; BRANCH OCCURS ; []
.dwattr $C$DW$229, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$229, DW_AT_TI_end_line(0x3de)
.dwattr $C$DW$229, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$229
.sect ".text"
.clink
.thumbfunc xStreamBufferIsFull
.thumb
.global xStreamBufferIsFull
$C$DW$236 .dwtag DW_TAG_subprogram
.dwattr $C$DW$236, DW_AT_name("xStreamBufferIsFull")
.dwattr $C$DW$236, DW_AT_low_pc(xStreamBufferIsFull)
.dwattr $C$DW$236, DW_AT_high_pc(0x00)
.dwattr $C$DW$236, DW_AT_TI_symbol_name("xStreamBufferIsFull")
.dwattr $C$DW$236, DW_AT_external
.dwattr $C$DW$236, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$236, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$236, DW_AT_TI_begin_line(0x3e1)
.dwattr $C$DW$236, DW_AT_TI_begin_column(0x0c)
.dwattr $C$DW$236, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$236, DW_AT_decl_line(0x3e1)
.dwattr $C$DW$236, DW_AT_decl_column(0x0c)
.dwattr $C$DW$236, DW_AT_TI_max_frame_size(0x18)
.dwpsn file "../OS/stream_buffer.c",line 994,column 1,is_stmt,address xStreamBufferIsFull,isa 1
.dwfde $C$DW$CIE, xStreamBufferIsFull
$C$DW$237 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$237, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$237, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$237, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$237, DW_AT_location[DW_OP_reg0]
;----------------------------------------------------------------------
; 993 | BaseType_t xStreamBufferIsFull( StreamBufferHandle_t xStreamBuffer )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferIsFull *
;* *
;* Regs Modified : A1,A2,SP,LR,SR,FPEXC,FPSCR *
;* Regs Used : A1,A2,SP,LR,SR,FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 16 Auto + 4 Save = 20 byte *
;*****************************************************************************
xStreamBufferIsFull:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
.dwcfi save_reg_to_mem, 14, -4
SUB SP, SP, #20 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 24
$C$DW$238 .dwtag DW_TAG_variable
.dwattr $C$DW$238, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$238, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$238, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$238, DW_AT_location[DW_OP_breg13 0]
$C$DW$239 .dwtag DW_TAG_variable
.dwattr $C$DW$239, DW_AT_name("xReturn")
.dwattr $C$DW$239, DW_AT_TI_symbol_name("xReturn")
.dwattr $C$DW$239, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$239, DW_AT_location[DW_OP_breg13 4]
$C$DW$240 .dwtag DW_TAG_variable
.dwattr $C$DW$240, DW_AT_name("xBytesToStoreMessageLength")
.dwattr $C$DW$240, DW_AT_TI_symbol_name("xBytesToStoreMessageLength")
.dwattr $C$DW$240, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$240, DW_AT_location[DW_OP_breg13 8]
$C$DW$241 .dwtag DW_TAG_variable
.dwattr $C$DW$241, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$241, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$241, DW_AT_type(*$C$DW$T$104)
.dwattr $C$DW$241, DW_AT_location[DW_OP_breg13 12]
;----------------------------------------------------------------------
; 995 | BaseType_t xReturn;
; 996 | size_t xBytesToStoreMessageLength;
;----------------------------------------------------------------------
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |994|
.dwpsn file "../OS/stream_buffer.c",line 997,column 45,is_stmt,isa 1
;----------------------------------------------------------------------
; 997 | const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |997|
STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |997|
.dwpsn file "../OS/stream_buffer.c",line 999,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 999 | configASSERT( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |999|
CBNZ A1, ||$C$L107|| ; []
; BRANCHCC OCCURS {||$C$L107||} ; [] |999|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |999|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |999|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L106||
;*
;* Loop source line : 999
;* Loop closing brace source line : 999
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L106||:
B ||$C$L106|| ; [DPU_V7M3_PIPE] |999|
; BRANCH OCCURS {||$C$L106||} ; [] |999|
;* --------------------------------------------------------------------------*
||$C$L107||:
.dwpsn file "../OS/stream_buffer.c",line 1005,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1005 | if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_
; | t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1005|
LDRB A1, [A1, #28] ; [DPU_V7M3_PIPE] |1005|
LSRS A1, A1, #1 ; [DPU_V7M3_PIPE] |1005|
BCC ||$C$L108|| ; [DPU_V7M3_PIPE] |1005|
; BRANCHCC OCCURS {||$C$L108||} ; [] |1005|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 1007,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1007 | xBytesToStoreMessageLength = sbBYTES_TO_STORE_MESSAGE_LENGTH;
;----------------------------------------------------------------------
MOVS A1, #4 ; [DPU_V7M3_PIPE] |1007|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |1007|
.dwpsn file "../OS/stream_buffer.c",line 1008,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1009 | else
;----------------------------------------------------------------------
B ||$C$L109|| ; [DPU_V7M3_PIPE] |1008|
; BRANCH OCCURS {||$C$L109||} ; [] |1008|
;* --------------------------------------------------------------------------*
||$C$L108||:
.dwpsn file "../OS/stream_buffer.c",line 1011,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1011 | xBytesToStoreMessageLength = 0;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |1011|
STR A1, [SP, #8] ; [DPU_V7M3_PIPE] |1011|
;* --------------------------------------------------------------------------*
||$C$L109||:
.dwpsn file "../OS/stream_buffer.c",line 1015,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1015 | if( xStreamBufferSpacesAvailable( xStreamBuffer ) <= xBytesToStoreMessa
; | geLength )
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1015|
$C$DW$242 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$242, DW_AT_low_pc(0x00)
.dwattr $C$DW$242, DW_AT_name("xStreamBufferSpacesAvailable")
.dwattr $C$DW$242, DW_AT_TI_call
BL xStreamBufferSpacesAvailable ; [DPU_V7M3_PIPE] |1015|
; CALL OCCURS {xStreamBufferSpacesAvailable } ; [] |1015|
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |1015|
CMP A2, A1 ; [DPU_V7M3_PIPE] |1015|
BCC ||$C$L110|| ; [DPU_V7M3_PIPE] |1015|
; BRANCHCC OCCURS {||$C$L110||} ; [] |1015|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 1017,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1017 | xReturn = pdTRUE;
;----------------------------------------------------------------------
MOVS A1, #1 ; [DPU_V7M3_PIPE] |1017|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1017|
.dwpsn file "../OS/stream_buffer.c",line 1018,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1019 | else
;----------------------------------------------------------------------
B ||$C$L111|| ; [DPU_V7M3_PIPE] |1018|
; BRANCH OCCURS {||$C$L111||} ; [] |1018|
;* --------------------------------------------------------------------------*
||$C$L110||:
.dwpsn file "../OS/stream_buffer.c",line 1021,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1021 | xReturn = pdFALSE;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |1021|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1021|
;* --------------------------------------------------------------------------*
||$C$L111||:
.dwpsn file "../OS/stream_buffer.c",line 1024,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1024 | return xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1024|
.dwpsn file "../OS/stream_buffer.c",line 1025,column 1,is_stmt,isa 1
ADD SP, SP, #20 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
$C$DW$243 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$243, DW_AT_low_pc(0x00)
.dwattr $C$DW$243, DW_AT_TI_return
POP {PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
; BRANCH OCCURS ; []
.dwattr $C$DW$236, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$236, DW_AT_TI_end_line(0x401)
.dwattr $C$DW$236, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$236
.sect ".text"
.clink
.thumbfunc xStreamBufferSendCompletedFromISR
.thumb
.global xStreamBufferSendCompletedFromISR
$C$DW$244 .dwtag DW_TAG_subprogram
.dwattr $C$DW$244, DW_AT_name("xStreamBufferSendCompletedFromISR")
.dwattr $C$DW$244, DW_AT_low_pc(xStreamBufferSendCompletedFromISR)
.dwattr $C$DW$244, DW_AT_high_pc(0x00)
.dwattr $C$DW$244, DW_AT_TI_symbol_name("xStreamBufferSendCompletedFromISR")
.dwattr $C$DW$244, DW_AT_external
.dwattr $C$DW$244, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$244, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$244, DW_AT_TI_begin_line(0x404)
.dwattr $C$DW$244, DW_AT_TI_begin_column(0x0c)
.dwattr $C$DW$244, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$244, DW_AT_decl_line(0x404)
.dwattr $C$DW$244, DW_AT_decl_column(0x0c)
.dwattr $C$DW$244, DW_AT_TI_max_frame_size(0x20)
.dwpsn file "../OS/stream_buffer.c",line 1029,column 1,is_stmt,address xStreamBufferSendCompletedFromISR,isa 1
.dwfde $C$DW$CIE, xStreamBufferSendCompletedFromISR
$C$DW$245 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$245, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$245, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$245, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$245, DW_AT_location[DW_OP_reg0]
$C$DW$246 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$246, DW_AT_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$246, DW_AT_TI_symbol_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$246, DW_AT_type(*$C$DW$T$217)
.dwattr $C$DW$246, DW_AT_location[DW_OP_reg1]
;----------------------------------------------------------------------
; 1028 | BaseType_t xStreamBufferSendCompletedFromISR( StreamBufferHandle_t xStr
; | eamBuffer, BaseType_t *pxHigherPriorityTaskWoken )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferSendCompletedFromISR *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 4 Args + 20 Auto + 4 Save = 28 byte *
;*****************************************************************************
xStreamBufferSendCompletedFromISR:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
.dwcfi save_reg_to_mem, 14, -4
SUB SP, SP, #28 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 32
$C$DW$247 .dwtag DW_TAG_variable
.dwattr $C$DW$247, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$247, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$247, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$247, DW_AT_location[DW_OP_breg13 4]
$C$DW$248 .dwtag DW_TAG_variable
.dwattr $C$DW$248, DW_AT_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$248, DW_AT_TI_symbol_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$248, DW_AT_type(*$C$DW$T$217)
.dwattr $C$DW$248, DW_AT_location[DW_OP_breg13 8]
$C$DW$249 .dwtag DW_TAG_variable
.dwattr $C$DW$249, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$249, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$249, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$249, DW_AT_location[DW_OP_breg13 12]
$C$DW$250 .dwtag DW_TAG_variable
.dwattr $C$DW$250, DW_AT_name("xReturn")
.dwattr $C$DW$250, DW_AT_TI_symbol_name("xReturn")
.dwattr $C$DW$250, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$250, DW_AT_location[DW_OP_breg13 16]
$C$DW$251 .dwtag DW_TAG_variable
.dwattr $C$DW$251, DW_AT_name("uxSavedInterruptStatus")
.dwattr $C$DW$251, DW_AT_TI_symbol_name("uxSavedInterruptStatus")
.dwattr $C$DW$251, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$251, DW_AT_location[DW_OP_breg13 20]
STR A2, [SP, #8] ; [DPU_V7M3_PIPE] |1029|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1029|
.dwpsn file "../OS/stream_buffer.c",line 1030,column 39,is_stmt,isa 1
;----------------------------------------------------------------------
; 1030 | StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
; 1031 | BaseType_t xReturn;
; 1032 | UBaseType_t uxSavedInterruptStatus;
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1030|
STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1030|
.dwpsn file "../OS/stream_buffer.c",line 1034,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1034 | configASSERT( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1034|
CBNZ A1, ||$C$L113|| ; []
; BRANCHCC OCCURS {||$C$L113||} ; [] |1034|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |1034|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |1034|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L112||
;*
;* Loop source line : 1034
;* Loop closing brace source line : 1034
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L112||:
B ||$C$L112|| ; [DPU_V7M3_PIPE] |1034|
; BRANCH OCCURS {||$C$L112||} ; [] |1034|
;* --------------------------------------------------------------------------*
||$C$L113||:
.dwpsn file "../OS/stream_buffer.c",line 1036,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1036 | uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_IS
; | R();
;----------------------------------------------------------------------
MOVS A1, #160 ; [DPU_V7M3_PIPE] |1036|
MRS A2, BASEPRI ; [DPU_V7M3_PIPE] |1036|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |1036|
STR A2, [SP, #20] ; [DPU_V7M3_PIPE] |1036|
.dwpsn file "../OS/stream_buffer.c",line 1036,column 43,is_stmt,isa 1
dsb
isb
.dwpsn file "../OS/stream_buffer.c",line 1038,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1038 | if( ( pxStreamBuffer )->xTaskWaitingToReceive != NULL )
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1038|
LDR A1, [A1, #16] ; [DPU_V7M3_PIPE] |1038|
CBZ A1, ||$C$L114|| ; []
; BRANCHCC OCCURS {||$C$L114||} ; [] |1038|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 1040,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 1040 | ( void ) xTaskNotifyFromISR( ( pxStreamBuffer )->xTaskWaitingToReceive,
; 1041 | ( uint32_t ) 0
; | ,
; 1042 | eNoAction,
; 1043 | pxHigherPriori
; | tyTaskWoken );
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |1040|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1040|
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1040|
LDR A1, [A1, #16] ; [DPU_V7M3_PIPE] |1040|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |1040|
MOVS A3, #0 ; [DPU_V7M3_PIPE] |1040|
MOVS A4, #0 ; [DPU_V7M3_PIPE] |1040|
$C$DW$252 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$252, DW_AT_low_pc(0x00)
.dwattr $C$DW$252, DW_AT_name("xTaskGenericNotifyFromISR")
.dwattr $C$DW$252, DW_AT_TI_call
BL xTaskGenericNotifyFromISR ; [DPU_V7M3_PIPE] |1040|
; CALL OCCURS {xTaskGenericNotifyFromISR } ; [] |1040|
.dwpsn file "../OS/stream_buffer.c",line 1044,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 1044 | ( pxStreamBuffer )->xTaskWaitingToReceive = NULL;
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1044|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |1044|
STR A2, [A1, #16] ; [DPU_V7M3_PIPE] |1044|
.dwpsn file "../OS/stream_buffer.c",line 1045,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 1045 | xReturn = pdTRUE;
;----------------------------------------------------------------------
MOVS A1, #1 ; [DPU_V7M3_PIPE] |1045|
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1045|
.dwpsn file "../OS/stream_buffer.c",line 1046,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1047 | else
;----------------------------------------------------------------------
B ||$C$L115|| ; [DPU_V7M3_PIPE] |1046|
; BRANCH OCCURS {||$C$L115||} ; [] |1046|
;* --------------------------------------------------------------------------*
||$C$L114||:
.dwpsn file "../OS/stream_buffer.c",line 1049,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 1049 | xReturn = pdFALSE;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |1049|
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1049|
;* --------------------------------------------------------------------------*
||$C$L115||:
.dwpsn file "../OS/stream_buffer.c",line 1052,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1052 | portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |1052|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |1052|
.dwpsn file "../OS/stream_buffer.c",line 1054,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1054 | return xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1054|
.dwpsn file "../OS/stream_buffer.c",line 1055,column 1,is_stmt,isa 1
ADD SP, SP, #28 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
$C$DW$253 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$253, DW_AT_low_pc(0x00)
.dwattr $C$DW$253, DW_AT_TI_return
POP {PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
; BRANCH OCCURS ; []
.dwattr $C$DW$244, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$244, DW_AT_TI_end_line(0x41f)
.dwattr $C$DW$244, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$244
.sect ".text"
.clink
.thumbfunc xStreamBufferReceiveCompletedFromISR
.thumb
.global xStreamBufferReceiveCompletedFromISR
$C$DW$254 .dwtag DW_TAG_subprogram
.dwattr $C$DW$254, DW_AT_name("xStreamBufferReceiveCompletedFromISR")
.dwattr $C$DW$254, DW_AT_low_pc(xStreamBufferReceiveCompletedFromISR)
.dwattr $C$DW$254, DW_AT_high_pc(0x00)
.dwattr $C$DW$254, DW_AT_TI_symbol_name("xStreamBufferReceiveCompletedFromISR")
.dwattr $C$DW$254, DW_AT_external
.dwattr $C$DW$254, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$254, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$254, DW_AT_TI_begin_line(0x422)
.dwattr $C$DW$254, DW_AT_TI_begin_column(0x0c)
.dwattr $C$DW$254, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$254, DW_AT_decl_line(0x422)
.dwattr $C$DW$254, DW_AT_decl_column(0x0c)
.dwattr $C$DW$254, DW_AT_TI_max_frame_size(0x20)
.dwpsn file "../OS/stream_buffer.c",line 1059,column 1,is_stmt,address xStreamBufferReceiveCompletedFromISR,isa 1
.dwfde $C$DW$CIE, xStreamBufferReceiveCompletedFromISR
$C$DW$255 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$255, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$255, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$255, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$255, DW_AT_location[DW_OP_reg0]
$C$DW$256 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$256, DW_AT_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$256, DW_AT_TI_symbol_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$256, DW_AT_type(*$C$DW$T$217)
.dwattr $C$DW$256, DW_AT_location[DW_OP_reg1]
;----------------------------------------------------------------------
; 1058 | BaseType_t xStreamBufferReceiveCompletedFromISR( StreamBufferHandle_t x
; | StreamBuffer, BaseType_t *pxHigherPriorityTaskWoken )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: xStreamBufferReceiveCompletedFromISR *
;* *
;* Regs Modified : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2,D2_hi, *
;* D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7,D7_hi, *
;* FPEXC,FPSCR *
;* Local Frame Size : 4 Args + 20 Auto + 4 Save = 28 byte *
;*****************************************************************************
xStreamBufferReceiveCompletedFromISR:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
.dwcfi save_reg_to_mem, 14, -4
SUB SP, SP, #28 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 32
$C$DW$257 .dwtag DW_TAG_variable
.dwattr $C$DW$257, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$257, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$257, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$257, DW_AT_location[DW_OP_breg13 4]
$C$DW$258 .dwtag DW_TAG_variable
.dwattr $C$DW$258, DW_AT_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$258, DW_AT_TI_symbol_name("pxHigherPriorityTaskWoken")
.dwattr $C$DW$258, DW_AT_type(*$C$DW$T$217)
.dwattr $C$DW$258, DW_AT_location[DW_OP_breg13 8]
$C$DW$259 .dwtag DW_TAG_variable
.dwattr $C$DW$259, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$259, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$259, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$259, DW_AT_location[DW_OP_breg13 12]
$C$DW$260 .dwtag DW_TAG_variable
.dwattr $C$DW$260, DW_AT_name("xReturn")
.dwattr $C$DW$260, DW_AT_TI_symbol_name("xReturn")
.dwattr $C$DW$260, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$260, DW_AT_location[DW_OP_breg13 16]
$C$DW$261 .dwtag DW_TAG_variable
.dwattr $C$DW$261, DW_AT_name("uxSavedInterruptStatus")
.dwattr $C$DW$261, DW_AT_TI_symbol_name("uxSavedInterruptStatus")
.dwattr $C$DW$261, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$261, DW_AT_location[DW_OP_breg13 20]
STR A2, [SP, #8] ; [DPU_V7M3_PIPE] |1059|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1059|
.dwpsn file "../OS/stream_buffer.c",line 1060,column 39,is_stmt,isa 1
;----------------------------------------------------------------------
; 1060 | StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
; 1061 | BaseType_t xReturn;
; 1062 | UBaseType_t uxSavedInterruptStatus;
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1060|
STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1060|
.dwpsn file "../OS/stream_buffer.c",line 1064,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1064 | configASSERT( pxStreamBuffer );
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1064|
CBNZ A1, ||$C$L117|| ; []
; BRANCHCC OCCURS {||$C$L117||} ; [] |1064|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |1064|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |1064|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L116||
;*
;* Loop source line : 1064
;* Loop closing brace source line : 1064
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L116||:
B ||$C$L116|| ; [DPU_V7M3_PIPE] |1064|
; BRANCH OCCURS {||$C$L116||} ; [] |1064|
;* --------------------------------------------------------------------------*
||$C$L117||:
.dwpsn file "../OS/stream_buffer.c",line 1066,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1066 | uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_IS
; | R();
;----------------------------------------------------------------------
MOVS A1, #160 ; [DPU_V7M3_PIPE] |1066|
MRS A2, BASEPRI ; [DPU_V7M3_PIPE] |1066|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |1066|
STR A2, [SP, #20] ; [DPU_V7M3_PIPE] |1066|
.dwpsn file "../OS/stream_buffer.c",line 1066,column 43,is_stmt,isa 1
dsb
isb
.dwpsn file "../OS/stream_buffer.c",line 1068,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1068 | if( ( pxStreamBuffer )->xTaskWaitingToSend != NULL )
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1068|
LDR A1, [A1, #20] ; [DPU_V7M3_PIPE] |1068|
CBZ A1, ||$C$L118|| ; []
; BRANCHCC OCCURS {||$C$L118||} ; [] |1068|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 1070,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 1070 | ( void ) xTaskNotifyFromISR( ( pxStreamBuffer )->xTaskWaitingToSend,
; 1071 | ( uint32_t ) 0
; | ,
; 1072 | eNoAction,
; 1073 | pxHigherPriori
; | tyTaskWoken );
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |1070|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1070|
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1070|
LDR A1, [A1, #20] ; [DPU_V7M3_PIPE] |1070|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |1070|
MOVS A3, #0 ; [DPU_V7M3_PIPE] |1070|
MOVS A4, #0 ; [DPU_V7M3_PIPE] |1070|
$C$DW$262 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$262, DW_AT_low_pc(0x00)
.dwattr $C$DW$262, DW_AT_name("xTaskGenericNotifyFromISR")
.dwattr $C$DW$262, DW_AT_TI_call
BL xTaskGenericNotifyFromISR ; [DPU_V7M3_PIPE] |1070|
; CALL OCCURS {xTaskGenericNotifyFromISR } ; [] |1070|
.dwpsn file "../OS/stream_buffer.c",line 1074,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 1074 | ( pxStreamBuffer )->xTaskWaitingToSend = NULL;
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1074|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |1074|
STR A2, [A1, #20] ; [DPU_V7M3_PIPE] |1074|
.dwpsn file "../OS/stream_buffer.c",line 1075,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 1075 | xReturn = pdTRUE;
;----------------------------------------------------------------------
MOVS A1, #1 ; [DPU_V7M3_PIPE] |1075|
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1075|
.dwpsn file "../OS/stream_buffer.c",line 1076,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1077 | else
;----------------------------------------------------------------------
B ||$C$L119|| ; [DPU_V7M3_PIPE] |1076|
; BRANCH OCCURS {||$C$L119||} ; [] |1076|
;* --------------------------------------------------------------------------*
||$C$L118||:
.dwpsn file "../OS/stream_buffer.c",line 1079,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 1079 | xReturn = pdFALSE;
;----------------------------------------------------------------------
MOVS A1, #0 ; [DPU_V7M3_PIPE] |1079|
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1079|
;* --------------------------------------------------------------------------*
||$C$L119||:
.dwpsn file "../OS/stream_buffer.c",line 1082,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1082 | portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |1082|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |1082|
.dwpsn file "../OS/stream_buffer.c",line 1084,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1084 | return xReturn;
;----------------------------------------------------------------------
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1084|
.dwpsn file "../OS/stream_buffer.c",line 1085,column 1,is_stmt,isa 1
ADD SP, SP, #28 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 4
$C$DW$263 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$263, DW_AT_low_pc(0x00)
.dwattr $C$DW$263, DW_AT_TI_return
POP {PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
; BRANCH OCCURS ; []
.dwattr $C$DW$254, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$254, DW_AT_TI_end_line(0x43d)
.dwattr $C$DW$254, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$254
.sect ".text"
.clink
.thumbfunc prvWriteBytesToBuffer
.thumb
$C$DW$264 .dwtag DW_TAG_subprogram
.dwattr $C$DW$264, DW_AT_name("prvWriteBytesToBuffer")
.dwattr $C$DW$264, DW_AT_low_pc(prvWriteBytesToBuffer)
.dwattr $C$DW$264, DW_AT_high_pc(0x00)
.dwattr $C$DW$264, DW_AT_TI_symbol_name("prvWriteBytesToBuffer")
.dwattr $C$DW$264, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$264, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$264, DW_AT_TI_begin_line(0x440)
.dwattr $C$DW$264, DW_AT_TI_begin_column(0x0f)
.dwattr $C$DW$264, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$264, DW_AT_decl_line(0x440)
.dwattr $C$DW$264, DW_AT_decl_column(0x0f)
.dwattr $C$DW$264, DW_AT_TI_max_frame_size(0x20)
.dwpsn file "../OS/stream_buffer.c",line 1089,column 1,is_stmt,address prvWriteBytesToBuffer,isa 1
.dwfde $C$DW$CIE, prvWriteBytesToBuffer
$C$DW$265 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$265, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$265, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$265, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$265, DW_AT_location[DW_OP_reg0]
$C$DW$266 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$266, DW_AT_name("pucData")
.dwattr $C$DW$266, DW_AT_TI_symbol_name("pucData")
.dwattr $C$DW$266, DW_AT_type(*$C$DW$T$139)
.dwattr $C$DW$266, DW_AT_location[DW_OP_reg1]
$C$DW$267 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$267, DW_AT_name("xCount")
.dwattr $C$DW$267, DW_AT_TI_symbol_name("xCount")
.dwattr $C$DW$267, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$267, DW_AT_location[DW_OP_reg2]
;----------------------------------------------------------------------
; 1088 | static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuf
; | fer, const uint8_t *pucData, size_t xCount )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: prvWriteBytesToBuffer *
;* *
;* Regs Modified : A1,A2,A3,A4,V1,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2, *
;* D2_hi,D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7, *
;* D7_hi,FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V1,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2, *
;* D2_hi,D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7, *
;* D7_hi,FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 20 Auto + 8 Save = 28 byte *
;*****************************************************************************
prvWriteBytesToBuffer:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {V1, LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
.dwcfi save_reg_to_mem, 14, -4
.dwcfi save_reg_to_mem, 4, -8
SUB SP, SP, #24 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 32
$C$DW$268 .dwtag DW_TAG_variable
.dwattr $C$DW$268, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$268, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$268, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$268, DW_AT_location[DW_OP_breg13 0]
$C$DW$269 .dwtag DW_TAG_variable
.dwattr $C$DW$269, DW_AT_name("pucData")
.dwattr $C$DW$269, DW_AT_TI_symbol_name("pucData")
.dwattr $C$DW$269, DW_AT_type(*$C$DW$T$139)
.dwattr $C$DW$269, DW_AT_location[DW_OP_breg13 4]
$C$DW$270 .dwtag DW_TAG_variable
.dwattr $C$DW$270, DW_AT_name("xCount")
.dwattr $C$DW$270, DW_AT_TI_symbol_name("xCount")
.dwattr $C$DW$270, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$270, DW_AT_location[DW_OP_breg13 8]
$C$DW$271 .dwtag DW_TAG_variable
.dwattr $C$DW$271, DW_AT_name("xNextHead")
.dwattr $C$DW$271, DW_AT_TI_symbol_name("xNextHead")
.dwattr $C$DW$271, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$271, DW_AT_location[DW_OP_breg13 12]
$C$DW$272 .dwtag DW_TAG_variable
.dwattr $C$DW$272, DW_AT_name("xFirstLength")
.dwattr $C$DW$272, DW_AT_TI_symbol_name("xFirstLength")
.dwattr $C$DW$272, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$272, DW_AT_location[DW_OP_breg13 16]
;----------------------------------------------------------------------
; 1090 | size_t xNextHead, xFirstLength;
;----------------------------------------------------------------------
STR A3, [SP, #8] ; [DPU_V7M3_PIPE] |1089|
STR A2, [SP, #4] ; [DPU_V7M3_PIPE] |1089|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1089|
.dwpsn file "../OS/stream_buffer.c",line 1092,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1092 | configASSERT( xCount > ( size_t ) 0 );
;----------------------------------------------------------------------
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |1092|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |1092|
CBZ A2, ||$C$L120|| ; []
; BRANCHCC OCCURS {||$C$L120||} ; [] |1092|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |1092|
;* --------------------------------------------------------------------------*
||$C$L120||:
CBNZ A1, ||$C$L122|| ; []
; BRANCHCC OCCURS {||$C$L122||} ; [] |1092|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |1092|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |1092|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L121||
;*
;* Loop source line : 1092
;* Loop closing brace source line : 1092
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L121||:
B ||$C$L121|| ; [DPU_V7M3_PIPE] |1092|
; BRANCH OCCURS {||$C$L121||} ; [] |1092|
;* --------------------------------------------------------------------------*
||$C$L122||:
.dwpsn file "../OS/stream_buffer.c",line 1094,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1094 | xNextHead = pxStreamBuffer->xHead;
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1094|
LDR A1, [A1, #4] ; [DPU_V7M3_PIPE] |1094|
STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1094|
.dwpsn file "../OS/stream_buffer.c",line 1099,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1099 | xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount )
; | ;
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1099|
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |1099|
LDR A3, [SP, #12] ; [DPU_V7M3_PIPE] |1099|
LDR A1, [A1, #8] ; [DPU_V7M3_PIPE] |1099|
SUBS A1, A1, A3 ; [DPU_V7M3_PIPE] |1099|
CMP A2, A1 ; [DPU_V7M3_PIPE] |1099|
BLS ||$C$L123|| ; [DPU_V7M3_PIPE] |1099|
; BRANCHCC OCCURS {||$C$L123||} ; [] |1099|
;* --------------------------------------------------------------------------*
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1099|
LDR A2, [SP, #12] ; [DPU_V7M3_PIPE] |1099|
LDR A1, [A1, #8] ; [DPU_V7M3_PIPE] |1099|
SUBS A1, A1, A2 ; [DPU_V7M3_PIPE] |1099|
B ||$C$L124|| ; [DPU_V7M3_PIPE] |1099|
; BRANCH OCCURS {||$C$L124||} ; [] |1099|
;* --------------------------------------------------------------------------*
||$C$L123||:
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |1099|
;* --------------------------------------------------------------------------*
||$C$L124||:
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1099|
.dwpsn file "../OS/stream_buffer.c",line 1102,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1102 | configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength )
; | ;
;----------------------------------------------------------------------
LDR A3, [SP, #0] ; [DPU_V7M3_PIPE] |1102|
LDR A2, [SP, #12] ; [DPU_V7M3_PIPE] |1102|
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1102|
LDR A3, [A3, #8] ; [DPU_V7M3_PIPE] |1102|
ADDS A2, A2, A1 ; [DPU_V7M3_PIPE] |1102|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |1102|
CMP A3, A2 ; [DPU_V7M3_PIPE] |1102|
BCC ||$C$L125|| ; [DPU_V7M3_PIPE] |1102|
; BRANCHCC OCCURS {||$C$L125||} ; [] |1102|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |1102|
;* --------------------------------------------------------------------------*
||$C$L125||:
CBNZ A1, ||$C$L127|| ; []
; BRANCHCC OCCURS {||$C$L127||} ; [] |1102|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |1102|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |1102|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L126||
;*
;* Loop source line : 1102
;* Loop closing brace source line : 1102
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L126||:
B ||$C$L126|| ; [DPU_V7M3_PIPE] |1102|
; BRANCH OCCURS {||$C$L126||} ; [] |1102|
;* --------------------------------------------------------------------------*
||$C$L127||:
.dwpsn file "../OS/stream_buffer.c",line 1103,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1103 | ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ]
; | ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() r
; | equires void *. */
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1103|
LDR A4, [SP, #12] ; [DPU_V7M3_PIPE] |1103|
LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |1103|
LDR A3, [SP, #16] ; [DPU_V7M3_PIPE] |1103|
LDR A1, [A1, #24] ; [DPU_V7M3_PIPE] |1103|
ADDS A1, A1, A4 ; [DPU_V7M3_PIPE] |1103|
$C$DW$273 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$273, DW_AT_low_pc(0x00)
.dwattr $C$DW$273, DW_AT_name("memcpy")
.dwattr $C$DW$273, DW_AT_TI_call
BL memcpy ; [DPU_V7M3_PIPE] |1103|
; CALL OCCURS {memcpy } ; [] |1103|
.dwpsn file "../OS/stream_buffer.c",line 1107,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1107 | if( xCount > xFirstLength )
;----------------------------------------------------------------------
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1107|
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |1107|
CMP A1, A2 ; [DPU_V7M3_PIPE] |1107|
BCS ||$C$L131|| ; [DPU_V7M3_PIPE] |1107|
; BRANCHCC OCCURS {||$C$L131||} ; [] |1107|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 1110,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1110 | configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength );
;----------------------------------------------------------------------
LDR A3, [SP, #0] ; [DPU_V7M3_PIPE] |1110|
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1110|
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |1110|
LDR A3, [A3, #8] ; [DPU_V7M3_PIPE] |1110|
SUBS A2, A2, A1 ; [DPU_V7M3_PIPE] |1110|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |1110|
CMP A3, A2 ; [DPU_V7M3_PIPE] |1110|
BCC ||$C$L128|| ; [DPU_V7M3_PIPE] |1110|
; BRANCHCC OCCURS {||$C$L128||} ; [] |1110|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |1110|
;* --------------------------------------------------------------------------*
||$C$L128||:
CBNZ A1, ||$C$L130|| ; []
; BRANCHCC OCCURS {||$C$L130||} ; [] |1110|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |1110|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |1110|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L129||
;*
;* Loop source line : 1110
;* Loop closing brace source line : 1110
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L129||:
B ||$C$L129|| ; [DPU_V7M3_PIPE] |1110|
; BRANCH OCCURS {||$C$L129||} ; [] |1110|
;* --------------------------------------------------------------------------*
||$C$L130||:
.dwpsn file "../OS/stream_buffer.c",line 1111,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1111 | ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * )
; | &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 m
; | emcpy() requires void *. */
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1111|
LDR V1, [SP, #16] ; [DPU_V7M3_PIPE] |1111|
LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |1111|
LDR A4, [SP, #16] ; [DPU_V7M3_PIPE] |1111|
LDR A3, [SP, #8] ; [DPU_V7M3_PIPE] |1111|
LDR A1, [A1, #24] ; [DPU_V7M3_PIPE] |1111|
ADDS A2, A2, V1 ; [DPU_V7M3_PIPE] |1111|
SUBS A3, A3, A4 ; [DPU_V7M3_PIPE] |1111|
$C$DW$274 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$274, DW_AT_low_pc(0x00)
.dwattr $C$DW$274, DW_AT_name("memcpy")
.dwattr $C$DW$274, DW_AT_TI_call
BL memcpy ; [DPU_V7M3_PIPE] |1111|
; CALL OCCURS {memcpy } ; [] |1111|
.dwpsn file "../OS/stream_buffer.c",line 1112,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1113 | else
; 1115 | mtCOVERAGE_TEST_MARKER();
;----------------------------------------------------------------------
;* --------------------------------------------------------------------------*
||$C$L131||:
.dwpsn file "../OS/stream_buffer.c",line 1118,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1118 | xNextHead += xCount;
;----------------------------------------------------------------------
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |1118|
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1118|
ADDS A1, A1, A2 ; [DPU_V7M3_PIPE] |1118|
STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1118|
.dwpsn file "../OS/stream_buffer.c",line 1119,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1119 | if( xNextHead >= pxStreamBuffer->xLength )
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1119|
LDR A2, [SP, #12] ; [DPU_V7M3_PIPE] |1119|
LDR A1, [A1, #8] ; [DPU_V7M3_PIPE] |1119|
CMP A1, A2 ; [DPU_V7M3_PIPE] |1119|
BHI ||$C$L132|| ; [DPU_V7M3_PIPE] |1119|
; BRANCHCC OCCURS {||$C$L132||} ; [] |1119|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 1121,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1121 | xNextHead -= pxStreamBuffer->xLength;
;----------------------------------------------------------------------
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1121|
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1121|
LDR A2, [A2, #8] ; [DPU_V7M3_PIPE] |1121|
SUBS A1, A1, A2 ; [DPU_V7M3_PIPE] |1121|
STR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1121|
.dwpsn file "../OS/stream_buffer.c",line 1122,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1123 | else
; 1125 | mtCOVERAGE_TEST_MARKER();
;----------------------------------------------------------------------
;* --------------------------------------------------------------------------*
||$C$L132||:
.dwpsn file "../OS/stream_buffer.c",line 1128,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1128 | pxStreamBuffer->xHead = xNextHead;
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1128|
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1128|
STR A1, [A2, #4] ; [DPU_V7M3_PIPE] |1128|
.dwpsn file "../OS/stream_buffer.c",line 1130,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1130 | return xCount;
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |1130|
.dwpsn file "../OS/stream_buffer.c",line 1131,column 1,is_stmt,isa 1
ADD SP, SP, #24 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
$C$DW$275 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$275, DW_AT_low_pc(0x00)
.dwattr $C$DW$275, DW_AT_TI_return
POP {V1, PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
.dwcfi restore_reg, 4
; BRANCH OCCURS ; []
.dwattr $C$DW$264, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$264, DW_AT_TI_end_line(0x46b)
.dwattr $C$DW$264, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$264
.sect ".text"
.clink
.thumbfunc prvReadBytesFromBuffer
.thumb
$C$DW$276 .dwtag DW_TAG_subprogram
.dwattr $C$DW$276, DW_AT_name("prvReadBytesFromBuffer")
.dwattr $C$DW$276, DW_AT_low_pc(prvReadBytesFromBuffer)
.dwattr $C$DW$276, DW_AT_high_pc(0x00)
.dwattr $C$DW$276, DW_AT_TI_symbol_name("prvReadBytesFromBuffer")
.dwattr $C$DW$276, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$276, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$276, DW_AT_TI_begin_line(0x46e)
.dwattr $C$DW$276, DW_AT_TI_begin_column(0x0f)
.dwattr $C$DW$276, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$276, DW_AT_decl_line(0x46e)
.dwattr $C$DW$276, DW_AT_decl_column(0x0f)
.dwattr $C$DW$276, DW_AT_TI_max_frame_size(0x28)
.dwpsn file "../OS/stream_buffer.c",line 1135,column 1,is_stmt,address prvReadBytesFromBuffer,isa 1
.dwfde $C$DW$CIE, prvReadBytesFromBuffer
$C$DW$277 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$277, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$277, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$277, DW_AT_type(*$C$DW$T$105)
.dwattr $C$DW$277, DW_AT_location[DW_OP_reg0]
$C$DW$278 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$278, DW_AT_name("pucData")
.dwattr $C$DW$278, DW_AT_TI_symbol_name("pucData")
.dwattr $C$DW$278, DW_AT_type(*$C$DW$T$30)
.dwattr $C$DW$278, DW_AT_location[DW_OP_reg1]
$C$DW$279 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$279, DW_AT_name("xMaxCount")
.dwattr $C$DW$279, DW_AT_TI_symbol_name("xMaxCount")
.dwattr $C$DW$279, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$279, DW_AT_location[DW_OP_reg2]
$C$DW$280 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$280, DW_AT_name("xBytesAvailable")
.dwattr $C$DW$280, DW_AT_TI_symbol_name("xBytesAvailable")
.dwattr $C$DW$280, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$280, DW_AT_location[DW_OP_reg3]
;----------------------------------------------------------------------
; 1134 | static size_t prvReadBytesFromBuffer( StreamBuffer_t *pxStreamBuffer, u
; | int8_t *pucData, size_t xMaxCount, size_t xBytesAvailable )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: prvReadBytesFromBuffer *
;* *
;* Regs Modified : A1,A2,A3,A4,V1,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2, *
;* D2_hi,D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7, *
;* D7_hi,FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V1,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2, *
;* D2_hi,D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7, *
;* D7_hi,FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 28 Auto + 8 Save = 36 byte *
;*****************************************************************************
prvReadBytesFromBuffer:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {V1, LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
.dwcfi save_reg_to_mem, 14, -4
.dwcfi save_reg_to_mem, 4, -8
SUB SP, SP, #32 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 40
$C$DW$281 .dwtag DW_TAG_variable
.dwattr $C$DW$281, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$281, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$281, DW_AT_type(*$C$DW$T$105)
.dwattr $C$DW$281, DW_AT_location[DW_OP_breg13 0]
$C$DW$282 .dwtag DW_TAG_variable
.dwattr $C$DW$282, DW_AT_name("pucData")
.dwattr $C$DW$282, DW_AT_TI_symbol_name("pucData")
.dwattr $C$DW$282, DW_AT_type(*$C$DW$T$30)
.dwattr $C$DW$282, DW_AT_location[DW_OP_breg13 4]
$C$DW$283 .dwtag DW_TAG_variable
.dwattr $C$DW$283, DW_AT_name("xMaxCount")
.dwattr $C$DW$283, DW_AT_TI_symbol_name("xMaxCount")
.dwattr $C$DW$283, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$283, DW_AT_location[DW_OP_breg13 8]
$C$DW$284 .dwtag DW_TAG_variable
.dwattr $C$DW$284, DW_AT_name("xBytesAvailable")
.dwattr $C$DW$284, DW_AT_TI_symbol_name("xBytesAvailable")
.dwattr $C$DW$284, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$284, DW_AT_location[DW_OP_breg13 12]
$C$DW$285 .dwtag DW_TAG_variable
.dwattr $C$DW$285, DW_AT_name("xCount")
.dwattr $C$DW$285, DW_AT_TI_symbol_name("xCount")
.dwattr $C$DW$285, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$285, DW_AT_location[DW_OP_breg13 16]
$C$DW$286 .dwtag DW_TAG_variable
.dwattr $C$DW$286, DW_AT_name("xFirstLength")
.dwattr $C$DW$286, DW_AT_TI_symbol_name("xFirstLength")
.dwattr $C$DW$286, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$286, DW_AT_location[DW_OP_breg13 20]
$C$DW$287 .dwtag DW_TAG_variable
.dwattr $C$DW$287, DW_AT_name("xNextTail")
.dwattr $C$DW$287, DW_AT_TI_symbol_name("xNextTail")
.dwattr $C$DW$287, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$287, DW_AT_location[DW_OP_breg13 24]
;----------------------------------------------------------------------
; 1136 | size_t xCount, xFirstLength, xNextTail;
;----------------------------------------------------------------------
STR A4, [SP, #12] ; [DPU_V7M3_PIPE] |1135|
STR A3, [SP, #8] ; [DPU_V7M3_PIPE] |1135|
STR A2, [SP, #4] ; [DPU_V7M3_PIPE] |1135|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1135|
.dwpsn file "../OS/stream_buffer.c",line 1139,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1139 | xCount = configMIN( xBytesAvailable, xMaxCount );
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |1139|
LDR A2, [SP, #12] ; [DPU_V7M3_PIPE] |1139|
CMP A1, A2 ; [DPU_V7M3_PIPE] |1139|
BLS ||$C$L133|| ; [DPU_V7M3_PIPE] |1139|
; BRANCHCC OCCURS {||$C$L133||} ; [] |1139|
;* --------------------------------------------------------------------------*
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1139|
B ||$C$L134|| ; [DPU_V7M3_PIPE] |1139|
; BRANCH OCCURS {||$C$L134||} ; [] |1139|
;* --------------------------------------------------------------------------*
||$C$L133||:
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |1139|
;* --------------------------------------------------------------------------*
||$C$L134||:
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1139|
.dwpsn file "../OS/stream_buffer.c",line 1141,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1141 | if( xCount > ( size_t ) 0 )
;----------------------------------------------------------------------
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1141|
CMP A1, #0 ; [DPU_V7M3_PIPE] |1141|
BEQ ||$C$L148|| ; [DPU_V7M3_PIPE] |1141|
; BRANCHCC OCCURS {||$C$L148||} ; [] |1141|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 1143,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1143 | xNextTail = pxStreamBuffer->xTail;
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1143|
LDR A1, [A1, #0] ; [DPU_V7M3_PIPE] |1143|
STR A1, [SP, #24] ; [DPU_V7M3_PIPE] |1143|
.dwpsn file "../OS/stream_buffer.c",line 1148,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1148 | xFirstLength = configMIN( pxStreamBuffer->xLength - xNextTail, xCount )
; | ;
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1148|
LDR A2, [SP, #16] ; [DPU_V7M3_PIPE] |1148|
LDR A3, [SP, #24] ; [DPU_V7M3_PIPE] |1148|
LDR A1, [A1, #8] ; [DPU_V7M3_PIPE] |1148|
SUBS A1, A1, A3 ; [DPU_V7M3_PIPE] |1148|
CMP A2, A1 ; [DPU_V7M3_PIPE] |1148|
BLS ||$C$L135|| ; [DPU_V7M3_PIPE] |1148|
; BRANCHCC OCCURS {||$C$L135||} ; [] |1148|
;* --------------------------------------------------------------------------*
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1148|
LDR A2, [SP, #24] ; [DPU_V7M3_PIPE] |1148|
LDR A1, [A1, #8] ; [DPU_V7M3_PIPE] |1148|
SUBS A1, A1, A2 ; [DPU_V7M3_PIPE] |1148|
B ||$C$L136|| ; [DPU_V7M3_PIPE] |1148|
; BRANCH OCCURS {||$C$L136||} ; [] |1148|
;* --------------------------------------------------------------------------*
||$C$L135||:
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1148|
;* --------------------------------------------------------------------------*
||$C$L136||:
STR A1, [SP, #20] ; [DPU_V7M3_PIPE] |1148|
.dwpsn file "../OS/stream_buffer.c",line 1152,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1152 | configASSERT( xFirstLength <= xMaxCount );
;----------------------------------------------------------------------
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |1152|
LDR A3, [SP, #20] ; [DPU_V7M3_PIPE] |1152|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |1152|
CMP A2, A3 ; [DPU_V7M3_PIPE] |1152|
BCC ||$C$L137|| ; [DPU_V7M3_PIPE] |1152|
; BRANCHCC OCCURS {||$C$L137||} ; [] |1152|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |1152|
;* --------------------------------------------------------------------------*
||$C$L137||:
CBNZ A1, ||$C$L139|| ; []
; BRANCHCC OCCURS {||$C$L139||} ; [] |1152|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |1152|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |1152|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L138||
;*
;* Loop source line : 1152
;* Loop closing brace source line : 1152
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L138||:
B ||$C$L138|| ; [DPU_V7M3_PIPE] |1152|
; BRANCH OCCURS {||$C$L138||} ; [] |1152|
;* --------------------------------------------------------------------------*
||$C$L139||:
.dwpsn file "../OS/stream_buffer.c",line 1153,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1153 | configASSERT( ( xNextTail + xFirstLength ) <= pxStreamBuffer->xLength )
; | ;
;----------------------------------------------------------------------
LDR A3, [SP, #0] ; [DPU_V7M3_PIPE] |1153|
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |1153|
LDR A2, [SP, #24] ; [DPU_V7M3_PIPE] |1153|
LDR A3, [A3, #8] ; [DPU_V7M3_PIPE] |1153|
ADDS A2, A2, A1 ; [DPU_V7M3_PIPE] |1153|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |1153|
CMP A3, A2 ; [DPU_V7M3_PIPE] |1153|
BCC ||$C$L140|| ; [DPU_V7M3_PIPE] |1153|
; BRANCHCC OCCURS {||$C$L140||} ; [] |1153|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |1153|
;* --------------------------------------------------------------------------*
||$C$L140||:
CBNZ A1, ||$C$L142|| ; []
; BRANCHCC OCCURS {||$C$L142||} ; [] |1153|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |1153|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |1153|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L141||
;*
;* Loop source line : 1153
;* Loop closing brace source line : 1153
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L141||:
B ||$C$L141|| ; [DPU_V7M3_PIPE] |1153|
; BRANCH OCCURS {||$C$L141||} ; [] |1153|
;* --------------------------------------------------------------------------*
||$C$L142||:
.dwpsn file "../OS/stream_buffer.c",line 1154,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1154 | ( void ) memcpy( ( void * ) pucData, ( const void * ) &( pxStreamBuffer
; | ->pucBuffer[ xNextTail ] ), xFirstLength ); /*lint !e9087 memcpy() requ
; | ires void *. */
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1154|
LDR A4, [SP, #24] ; [DPU_V7M3_PIPE] |1154|
LDR A2, [A1, #24] ; [DPU_V7M3_PIPE] |1154|
LDR A3, [SP, #20] ; [DPU_V7M3_PIPE] |1154|
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1154|
ADDS A2, A2, A4 ; [DPU_V7M3_PIPE] |1154|
$C$DW$288 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$288, DW_AT_low_pc(0x00)
.dwattr $C$DW$288, DW_AT_name("memcpy")
.dwattr $C$DW$288, DW_AT_TI_call
BL memcpy ; [DPU_V7M3_PIPE] |1154|
; CALL OCCURS {memcpy } ; [] |1154|
.dwpsn file "../OS/stream_buffer.c",line 1158,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1158 | if( xCount > xFirstLength )
;----------------------------------------------------------------------
LDR A1, [SP, #20] ; [DPU_V7M3_PIPE] |1158|
LDR A2, [SP, #16] ; [DPU_V7M3_PIPE] |1158|
CMP A1, A2 ; [DPU_V7M3_PIPE] |1158|
BCS ||$C$L146|| ; [DPU_V7M3_PIPE] |1158|
; BRANCHCC OCCURS {||$C$L146||} ; [] |1158|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 1161,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 1161 | configASSERT( xCount <= xMaxCount );
;----------------------------------------------------------------------
LDR A2, [SP, #8] ; [DPU_V7M3_PIPE] |1161|
LDR A3, [SP, #16] ; [DPU_V7M3_PIPE] |1161|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |1161|
CMP A2, A3 ; [DPU_V7M3_PIPE] |1161|
BCC ||$C$L143|| ; [DPU_V7M3_PIPE] |1161|
; BRANCHCC OCCURS {||$C$L143||} ; [] |1161|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |1161|
;* --------------------------------------------------------------------------*
||$C$L143||:
CBNZ A1, ||$C$L145|| ; []
; BRANCHCC OCCURS {||$C$L145||} ; [] |1161|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |1161|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |1161|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L144||
;*
;* Loop source line : 1161
;* Loop closing brace source line : 1161
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L144||:
B ||$C$L144|| ; [DPU_V7M3_PIPE] |1161|
; BRANCH OCCURS {||$C$L144||} ; [] |1161|
;* --------------------------------------------------------------------------*
||$C$L145||:
.dwpsn file "../OS/stream_buffer.c",line 1162,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 1162 | ( void ) memcpy( ( void * ) &( pucData[ xFirstLength ] ), ( void * ) (
; | pxStreamBuffer->pucBuffer ), xCount - xFirstLength ); /*lint !e9087 mem
; | cpy() requires void *. */
;----------------------------------------------------------------------
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1162|
LDR V1, [SP, #20] ; [DPU_V7M3_PIPE] |1162|
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1162|
LDR A4, [SP, #20] ; [DPU_V7M3_PIPE] |1162|
LDR A3, [SP, #16] ; [DPU_V7M3_PIPE] |1162|
LDR A2, [A2, #24] ; [DPU_V7M3_PIPE] |1162|
ADDS A1, A1, V1 ; [DPU_V7M3_PIPE] |1162|
SUBS A3, A3, A4 ; [DPU_V7M3_PIPE] |1162|
$C$DW$289 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$289, DW_AT_low_pc(0x00)
.dwattr $C$DW$289, DW_AT_name("memcpy")
.dwattr $C$DW$289, DW_AT_TI_call
BL memcpy ; [DPU_V7M3_PIPE] |1162|
; CALL OCCURS {memcpy } ; [] |1162|
.dwpsn file "../OS/stream_buffer.c",line 1163,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1164 | else
; 1166 | mtCOVERAGE_TEST_MARKER();
;----------------------------------------------------------------------
;* --------------------------------------------------------------------------*
||$C$L146||:
.dwpsn file "../OS/stream_buffer.c",line 1171,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1171 | xNextTail += xCount;
;----------------------------------------------------------------------
LDR A2, [SP, #16] ; [DPU_V7M3_PIPE] |1171|
LDR A1, [SP, #24] ; [DPU_V7M3_PIPE] |1171|
ADDS A1, A1, A2 ; [DPU_V7M3_PIPE] |1171|
STR A1, [SP, #24] ; [DPU_V7M3_PIPE] |1171|
.dwpsn file "../OS/stream_buffer.c",line 1173,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1173 | if( xNextTail >= pxStreamBuffer->xLength )
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1173|
LDR A2, [SP, #24] ; [DPU_V7M3_PIPE] |1173|
LDR A1, [A1, #8] ; [DPU_V7M3_PIPE] |1173|
CMP A1, A2 ; [DPU_V7M3_PIPE] |1173|
BHI ||$C$L147|| ; [DPU_V7M3_PIPE] |1173|
; BRANCHCC OCCURS {||$C$L147||} ; [] |1173|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 1175,column 4,is_stmt,isa 1
;----------------------------------------------------------------------
; 1175 | xNextTail -= pxStreamBuffer->xLength;
;----------------------------------------------------------------------
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1175|
LDR A1, [SP, #24] ; [DPU_V7M3_PIPE] |1175|
LDR A2, [A2, #8] ; [DPU_V7M3_PIPE] |1175|
SUBS A1, A1, A2 ; [DPU_V7M3_PIPE] |1175|
STR A1, [SP, #24] ; [DPU_V7M3_PIPE] |1175|
;* --------------------------------------------------------------------------*
||$C$L147||:
.dwpsn file "../OS/stream_buffer.c",line 1178,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1178 | pxStreamBuffer->xTail = xNextTail;
;----------------------------------------------------------------------
LDR A1, [SP, #24] ; [DPU_V7M3_PIPE] |1178|
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1178|
STR A1, [A2, #0] ; [DPU_V7M3_PIPE] |1178|
.dwpsn file "../OS/stream_buffer.c",line 1179,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1180 | else
; 1182 | mtCOVERAGE_TEST_MARKER();
;----------------------------------------------------------------------
;* --------------------------------------------------------------------------*
||$C$L148||:
.dwpsn file "../OS/stream_buffer.c",line 1185,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1185 | return xCount;
;----------------------------------------------------------------------
LDR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1185|
.dwpsn file "../OS/stream_buffer.c",line 1186,column 1,is_stmt,isa 1
ADD SP, SP, #32 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
$C$DW$290 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$290, DW_AT_low_pc(0x00)
.dwattr $C$DW$290, DW_AT_TI_return
POP {V1, PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
.dwcfi restore_reg, 4
; BRANCH OCCURS ; []
.dwattr $C$DW$276, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$276, DW_AT_TI_end_line(0x4a2)
.dwattr $C$DW$276, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$276
.sect ".text"
.clink
.thumbfunc prvBytesInBuffer
.thumb
$C$DW$291 .dwtag DW_TAG_subprogram
.dwattr $C$DW$291, DW_AT_name("prvBytesInBuffer")
.dwattr $C$DW$291, DW_AT_low_pc(prvBytesInBuffer)
.dwattr $C$DW$291, DW_AT_high_pc(0x00)
.dwattr $C$DW$291, DW_AT_TI_symbol_name("prvBytesInBuffer")
.dwattr $C$DW$291, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$291, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$291, DW_AT_TI_begin_line(0x4a5)
.dwattr $C$DW$291, DW_AT_TI_begin_column(0x0f)
.dwattr $C$DW$291, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$291, DW_AT_decl_line(0x4a5)
.dwattr $C$DW$291, DW_AT_decl_column(0x0f)
.dwattr $C$DW$291, DW_AT_TI_max_frame_size(0x08)
.dwpsn file "../OS/stream_buffer.c",line 1190,column 1,is_stmt,address prvBytesInBuffer,isa 1
.dwfde $C$DW$CIE, prvBytesInBuffer
$C$DW$292 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$292, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$292, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$292, DW_AT_type(*$C$DW$T$104)
.dwattr $C$DW$292, DW_AT_location[DW_OP_reg0]
;----------------------------------------------------------------------
; 1189 | static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBu
; | ffer )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: prvBytesInBuffer *
;* *
;* Regs Modified : A1,A2,SP,SR *
;* Regs Used : A1,A2,SP,LR,SR *
;* Local Frame Size : 0 Args + 8 Auto + 0 Save = 8 byte *
;*****************************************************************************
prvBytesInBuffer:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
SUB SP, SP, #8 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
$C$DW$293 .dwtag DW_TAG_variable
.dwattr $C$DW$293, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$293, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$293, DW_AT_type(*$C$DW$T$104)
.dwattr $C$DW$293, DW_AT_location[DW_OP_breg13 0]
$C$DW$294 .dwtag DW_TAG_variable
.dwattr $C$DW$294, DW_AT_name("xCount")
.dwattr $C$DW$294, DW_AT_TI_symbol_name("xCount")
.dwattr $C$DW$294, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$294, DW_AT_location[DW_OP_breg13 4]
;----------------------------------------------------------------------
; 1192 | size_t xCount;
;----------------------------------------------------------------------
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1190|
.dwpsn file "../OS/stream_buffer.c",line 1194,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1194 | xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead;
;----------------------------------------------------------------------
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1194|
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1194|
LDR A2, [A2, #4] ; [DPU_V7M3_PIPE] |1194|
LDR A1, [A1, #8] ; [DPU_V7M3_PIPE] |1194|
ADDS A1, A1, A2 ; [DPU_V7M3_PIPE] |1194|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1194|
.dwpsn file "../OS/stream_buffer.c",line 1195,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1195 | xCount -= pxStreamBuffer->xTail;
;----------------------------------------------------------------------
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1195|
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1195|
LDR A2, [A2, #0] ; [DPU_V7M3_PIPE] |1195|
SUBS A1, A1, A2 ; [DPU_V7M3_PIPE] |1195|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1195|
.dwpsn file "../OS/stream_buffer.c",line 1196,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1196 | if ( xCount >= pxStreamBuffer->xLength )
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1196|
LDR A2, [SP, #4] ; [DPU_V7M3_PIPE] |1196|
LDR A1, [A1, #8] ; [DPU_V7M3_PIPE] |1196|
CMP A1, A2 ; [DPU_V7M3_PIPE] |1196|
BHI ||$C$L149|| ; [DPU_V7M3_PIPE] |1196|
; BRANCHCC OCCURS {||$C$L149||} ; [] |1196|
;* --------------------------------------------------------------------------*
.dwpsn file "../OS/stream_buffer.c",line 1198,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1198 | xCount -= pxStreamBuffer->xLength;
;----------------------------------------------------------------------
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1198|
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1198|
LDR A2, [A2, #8] ; [DPU_V7M3_PIPE] |1198|
SUBS A1, A1, A2 ; [DPU_V7M3_PIPE] |1198|
STR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1198|
.dwpsn file "../OS/stream_buffer.c",line 1199,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1200 | else
; 1202 | mtCOVERAGE_TEST_MARKER();
;----------------------------------------------------------------------
;* --------------------------------------------------------------------------*
||$C$L149||:
.dwpsn file "../OS/stream_buffer.c",line 1205,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1205 | return xCount;
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1205|
.dwpsn file "../OS/stream_buffer.c",line 1206,column 1,is_stmt,isa 1
ADD SP, SP, #8 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
$C$DW$295 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$295, DW_AT_low_pc(0x00)
.dwattr $C$DW$295, DW_AT_TI_return
BX LR ; [DPU_V7M3_PIPE]
; BRANCH OCCURS ; []
.dwattr $C$DW$291, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$291, DW_AT_TI_end_line(0x4b6)
.dwattr $C$DW$291, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$291
.sect ".text"
.clink
.thumbfunc prvInitialiseNewStreamBuffer
.thumb
$C$DW$296 .dwtag DW_TAG_subprogram
.dwattr $C$DW$296, DW_AT_name("prvInitialiseNewStreamBuffer")
.dwattr $C$DW$296, DW_AT_low_pc(prvInitialiseNewStreamBuffer)
.dwattr $C$DW$296, DW_AT_high_pc(0x00)
.dwattr $C$DW$296, DW_AT_TI_symbol_name("prvInitialiseNewStreamBuffer")
.dwattr $C$DW$296, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$296, DW_AT_TI_begin_line(0x4b9)
.dwattr $C$DW$296, DW_AT_TI_begin_column(0x0d)
.dwattr $C$DW$296, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$296, DW_AT_decl_line(0x4b9)
.dwattr $C$DW$296, DW_AT_decl_column(0x0d)
.dwattr $C$DW$296, DW_AT_TI_max_frame_size(0x20)
.dwpsn file "../OS/stream_buffer.c",line 1214,column 1,is_stmt,address prvInitialiseNewStreamBuffer,isa 1
.dwfde $C$DW$CIE, prvInitialiseNewStreamBuffer
$C$DW$297 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$297, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$297, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$297, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$297, DW_AT_location[DW_OP_reg0]
$C$DW$298 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$298, DW_AT_name("pucBuffer")
.dwattr $C$DW$298, DW_AT_TI_symbol_name("pucBuffer")
.dwattr $C$DW$298, DW_AT_type(*$C$DW$T$109)
.dwattr $C$DW$298, DW_AT_location[DW_OP_reg1]
$C$DW$299 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$299, DW_AT_name("xBufferSizeBytes")
.dwattr $C$DW$299, DW_AT_TI_symbol_name("xBufferSizeBytes")
.dwattr $C$DW$299, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$299, DW_AT_location[DW_OP_reg2]
$C$DW$300 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$300, DW_AT_name("xTriggerLevelBytes")
.dwattr $C$DW$300, DW_AT_TI_symbol_name("xTriggerLevelBytes")
.dwattr $C$DW$300, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$300, DW_AT_location[DW_OP_reg3]
$C$DW$301 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$301, DW_AT_name("ucFlags")
.dwattr $C$DW$301, DW_AT_TI_symbol_name("ucFlags")
.dwattr $C$DW$301, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$301, DW_AT_location[DW_OP_breg13 32]
;----------------------------------------------------------------------
; 1209 | static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStre
; | amBuffer,
; 1210 | uint8_t * const pucBuffer,
; 1211 | size_t xBufferSizeBytes,
; 1212 | size_t xTriggerLevelBytes,
; 1213 | uint8_t ucFlags )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: prvInitialiseNewStreamBuffer *
;* *
;* Regs Modified : A1,A2,A3,A4,V4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2, *
;* D2_hi,D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7, *
;* D7_hi,FPEXC,FPSCR *
;* Regs Used : A1,A2,A3,A4,V4,V9,SP,LR,SR,D0,D0_hi,D1,D1_hi,D2, *
;* D2_hi,D3,D3_hi,D4,D4_hi,D5,D5_hi,D6,D6_hi,D7, *
;* D7_hi,FPEXC,FPSCR *
;* Local Frame Size : 0 Args + 20 Auto + 8 Save = 28 byte *
;*****************************************************************************
prvInitialiseNewStreamBuffer:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
PUSH {V4, LR} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
.dwcfi save_reg_to_mem, 14, -4
.dwcfi save_reg_to_mem, 7, -8
ADD V4, SP, #8 ; [DPU_V7M3_PIPE]
SUB SP, SP, #24 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 32
$C$DW$302 .dwtag DW_TAG_variable
.dwattr $C$DW$302, DW_AT_name("pxStreamBuffer")
.dwattr $C$DW$302, DW_AT_TI_symbol_name("pxStreamBuffer")
.dwattr $C$DW$302, DW_AT_type(*$C$DW$T$106)
.dwattr $C$DW$302, DW_AT_location[DW_OP_breg13 0]
$C$DW$303 .dwtag DW_TAG_variable
.dwattr $C$DW$303, DW_AT_name("pucBuffer")
.dwattr $C$DW$303, DW_AT_TI_symbol_name("pucBuffer")
.dwattr $C$DW$303, DW_AT_type(*$C$DW$T$109)
.dwattr $C$DW$303, DW_AT_location[DW_OP_breg13 4]
$C$DW$304 .dwtag DW_TAG_variable
.dwattr $C$DW$304, DW_AT_name("xBufferSizeBytes")
.dwattr $C$DW$304, DW_AT_TI_symbol_name("xBufferSizeBytes")
.dwattr $C$DW$304, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$304, DW_AT_location[DW_OP_breg13 8]
$C$DW$305 .dwtag DW_TAG_variable
.dwattr $C$DW$305, DW_AT_name("xTriggerLevelBytes")
.dwattr $C$DW$305, DW_AT_TI_symbol_name("xTriggerLevelBytes")
.dwattr $C$DW$305, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$305, DW_AT_location[DW_OP_breg13 12]
;----------------------------------------------------------------------
; 1218 | #if( configASSERT_DEFINED == 1 )
;----------------------------------------------------------------------
STR A4, [SP, #12] ; [DPU_V7M3_PIPE] |1214|
STR A3, [SP, #8] ; [DPU_V7M3_PIPE] |1214|
STR A2, [SP, #4] ; [DPU_V7M3_PIPE] |1214|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1214|
$C$DW$306 .dwtag DW_TAG_lexical_block
.dwattr $C$DW$306, DW_AT_low_pc(0x00)
.dwattr $C$DW$306, DW_AT_high_pc(0x00)
$C$DW$307 .dwtag DW_TAG_variable
.dwattr $C$DW$307, DW_AT_name("xWriteValue")
.dwattr $C$DW$307, DW_AT_TI_symbol_name("xWriteValue")
.dwattr $C$DW$307, DW_AT_type(*$C$DW$T$235)
.dwattr $C$DW$307, DW_AT_location[DW_OP_breg13 16]
.dwpsn file "../OS/stream_buffer.c",line 1223,column 32,is_stmt,isa 1
;----------------------------------------------------------------------
; 1223 | const BaseType_t xWriteValue = 0x55;
;----------------------------------------------------------------------
MOVS A1, #85 ; [DPU_V7M3_PIPE] |1223|
STR A1, [SP, #16] ; [DPU_V7M3_PIPE] |1223|
.dwpsn file "../OS/stream_buffer.c",line 1224,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1224 | configASSERT( memset( pucBuffer, ( int ) xWriteValue, xBufferSizeBytes
; | ) == pucBuffer );
; 1226 | #endif
;----------------------------------------------------------------------
LDR A3, [SP, #8] ; [DPU_V7M3_PIPE] |1224|
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1224|
MOVS A2, #85 ; [DPU_V7M3_PIPE] |1224|
$C$DW$308 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$308, DW_AT_low_pc(0x00)
.dwattr $C$DW$308, DW_AT_name("memset")
.dwattr $C$DW$308, DW_AT_TI_call
BL memset ; [DPU_V7M3_PIPE] |1224|
; CALL OCCURS {memset } ; [] |1224|
LDR A3, [SP, #4] ; [DPU_V7M3_PIPE] |1224|
MOV A2, A1 ; [DPU_V7M3_PIPE] |1224|
MOVS A1, #0 ; [DPU_V7M3_PIPE] |1224|
CMP A3, A2 ; [DPU_V7M3_PIPE] |1224|
BNE ||$C$L150|| ; [DPU_V7M3_PIPE] |1224|
; BRANCHCC OCCURS {||$C$L150||} ; [] |1224|
;* --------------------------------------------------------------------------*
MOVS A1, #1 ; [DPU_V7M3_PIPE] |1224|
;* --------------------------------------------------------------------------*
||$C$L150||:
CBNZ A1, ||$C$L152|| ; []
; BRANCHCC OCCURS {||$C$L152||} ; [] |1224|
;* --------------------------------------------------------------------------*
MOVS A1, #160 ; [DPU_V7M3_PIPE] |1224|
MSR BASEPRI, A1 ; [DPU_V7M3_PIPE] |1224|
dsb
isb
;* --------------------------------------------------------------------------*
;* BEGIN LOOP ||$C$L151||
;*
;* Loop source line : 1224
;* Loop closing brace source line : 1224
;* Known Minimum Trip Count : 1
;* Known Maximum Trip Count : 4294967295
;* Known Max Trip Count Factor : 1
;* --------------------------------------------------------------------------*
||$C$L151||:
B ||$C$L151|| ; [DPU_V7M3_PIPE] |1224|
; BRANCH OCCURS {||$C$L151||} ; [] |1224|
;* --------------------------------------------------------------------------*
||$C$L152||:
.dwendtag $C$DW$306
.dwpsn file "../OS/stream_buffer.c",line 1228,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1228 | ( void ) memset( ( void * ) pxStreamBuffer, 0x00, sizeof( StreamBuffer_
; | t ) ); /*lint !e9087 memset() requires void *. */
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1228|
MOVS A2, #0 ; [DPU_V7M3_PIPE] |1228|
MOVS A3, #36 ; [DPU_V7M3_PIPE] |1228|
$C$DW$309 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$309, DW_AT_low_pc(0x00)
.dwattr $C$DW$309, DW_AT_name("memset")
.dwattr $C$DW$309, DW_AT_TI_call
BL memset ; [DPU_V7M3_PIPE] |1228|
; CALL OCCURS {memset } ; [] |1228|
.dwpsn file "../OS/stream_buffer.c",line 1229,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1229 | pxStreamBuffer->pucBuffer = pucBuffer;
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1229|
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1229|
STR A1, [A2, #24] ; [DPU_V7M3_PIPE] |1229|
.dwpsn file "../OS/stream_buffer.c",line 1230,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1230 | pxStreamBuffer->xLength = xBufferSizeBytes;
;----------------------------------------------------------------------
LDR A1, [SP, #8] ; [DPU_V7M3_PIPE] |1230|
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1230|
STR A1, [A2, #8] ; [DPU_V7M3_PIPE] |1230|
.dwpsn file "../OS/stream_buffer.c",line 1231,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1231 | pxStreamBuffer->xTriggerLevelBytes = xTriggerLevelBytes;
;----------------------------------------------------------------------
LDR A1, [SP, #12] ; [DPU_V7M3_PIPE] |1231|
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1231|
STR A1, [A2, #12] ; [DPU_V7M3_PIPE] |1231|
.dwpsn file "../OS/stream_buffer.c",line 1232,column 2,is_stmt,isa 1
;----------------------------------------------------------------------
; 1232 | pxStreamBuffer->ucFlags = ucFlags;
;----------------------------------------------------------------------
LDRB A1, [V4, #0] ; [DPU_V7M3_PIPE] |1232|
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1232|
STRB A1, [A2, #28] ; [DPU_V7M3_PIPE] |1232|
.dwpsn file "../OS/stream_buffer.c",line 1233,column 1,is_stmt,isa 1
ADD SP, SP, #24 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
$C$DW$310 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$310, DW_AT_low_pc(0x00)
.dwattr $C$DW$310, DW_AT_TI_return
POP {V4, PC} ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
.dwcfi restore_reg, 7
; BRANCH OCCURS ; []
.dwattr $C$DW$296, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$296, DW_AT_TI_end_line(0x4d1)
.dwattr $C$DW$296, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$296
.sect ".text"
.clink
.thumbfunc uxStreamBufferGetStreamBufferNumber
.thumb
.global uxStreamBufferGetStreamBufferNumber
$C$DW$311 .dwtag DW_TAG_subprogram
.dwattr $C$DW$311, DW_AT_name("uxStreamBufferGetStreamBufferNumber")
.dwattr $C$DW$311, DW_AT_low_pc(uxStreamBufferGetStreamBufferNumber)
.dwattr $C$DW$311, DW_AT_high_pc(0x00)
.dwattr $C$DW$311, DW_AT_TI_symbol_name("uxStreamBufferGetStreamBufferNumber")
.dwattr $C$DW$311, DW_AT_external
.dwattr $C$DW$311, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$311, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$311, DW_AT_TI_begin_line(0x4d5)
.dwattr $C$DW$311, DW_AT_TI_begin_column(0x0e)
.dwattr $C$DW$311, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$311, DW_AT_decl_line(0x4d5)
.dwattr $C$DW$311, DW_AT_decl_column(0x0e)
.dwattr $C$DW$311, DW_AT_TI_max_frame_size(0x08)
.dwpsn file "../OS/stream_buffer.c",line 1238,column 2,is_stmt,address uxStreamBufferGetStreamBufferNumber,isa 1
.dwfde $C$DW$CIE, uxStreamBufferGetStreamBufferNumber
$C$DW$312 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$312, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$312, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$312, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$312, DW_AT_location[DW_OP_reg0]
;----------------------------------------------------------------------
; 1237 | UBaseType_t uxStreamBufferGetStreamBufferNumber( StreamBufferHandle_t x
; | StreamBuffer )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: uxStreamBufferGetStreamBufferNumber *
;* *
;* Regs Modified : A1,SP *
;* Regs Used : A1,SP,LR *
;* Local Frame Size : 0 Args + 4 Auto + 0 Save = 4 byte *
;*****************************************************************************
uxStreamBufferGetStreamBufferNumber:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
SUB SP, SP, #8 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
$C$DW$313 .dwtag DW_TAG_variable
.dwattr $C$DW$313, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$313, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$313, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$313, DW_AT_location[DW_OP_breg13 0]
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1238|
.dwpsn file "../OS/stream_buffer.c",line 1239,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1239 | return xStreamBuffer->uxStreamBufferNumber;
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1239|
LDR A1, [A1, #32] ; [DPU_V7M3_PIPE] |1239|
.dwpsn file "../OS/stream_buffer.c",line 1240,column 2,is_stmt,isa 1
ADD SP, SP, #8 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
$C$DW$314 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$314, DW_AT_low_pc(0x00)
.dwattr $C$DW$314, DW_AT_TI_return
BX LR ; [DPU_V7M3_PIPE]
; BRANCH OCCURS ; []
.dwattr $C$DW$311, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$311, DW_AT_TI_end_line(0x4d8)
.dwattr $C$DW$311, DW_AT_TI_end_column(0x02)
.dwendentry
.dwendtag $C$DW$311
.sect ".text"
.clink
.thumbfunc vStreamBufferSetStreamBufferNumber
.thumb
.global vStreamBufferSetStreamBufferNumber
$C$DW$315 .dwtag DW_TAG_subprogram
.dwattr $C$DW$315, DW_AT_name("vStreamBufferSetStreamBufferNumber")
.dwattr $C$DW$315, DW_AT_low_pc(vStreamBufferSetStreamBufferNumber)
.dwattr $C$DW$315, DW_AT_high_pc(0x00)
.dwattr $C$DW$315, DW_AT_TI_symbol_name("vStreamBufferSetStreamBufferNumber")
.dwattr $C$DW$315, DW_AT_external
.dwattr $C$DW$315, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$315, DW_AT_TI_begin_line(0x4df)
.dwattr $C$DW$315, DW_AT_TI_begin_column(0x07)
.dwattr $C$DW$315, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$315, DW_AT_decl_line(0x4df)
.dwattr $C$DW$315, DW_AT_decl_column(0x07)
.dwattr $C$DW$315, DW_AT_TI_max_frame_size(0x08)
.dwpsn file "../OS/stream_buffer.c",line 1248,column 2,is_stmt,address vStreamBufferSetStreamBufferNumber,isa 1
.dwfde $C$DW$CIE, vStreamBufferSetStreamBufferNumber
$C$DW$316 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$316, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$316, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$316, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$316, DW_AT_location[DW_OP_reg0]
$C$DW$317 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$317, DW_AT_name("uxStreamBufferNumber")
.dwattr $C$DW$317, DW_AT_TI_symbol_name("uxStreamBufferNumber")
.dwattr $C$DW$317, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$317, DW_AT_location[DW_OP_reg1]
;----------------------------------------------------------------------
; 1247 | void vStreamBufferSetStreamBufferNumber( StreamBufferHandle_t xStreamBu
; | ffer, UBaseType_t uxStreamBufferNumber )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: vStreamBufferSetStreamBufferNumber *
;* *
;* Regs Modified : A1,A2,SP *
;* Regs Used : A1,A2,SP,LR *
;* Local Frame Size : 0 Args + 8 Auto + 0 Save = 8 byte *
;*****************************************************************************
vStreamBufferSetStreamBufferNumber:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
SUB SP, SP, #8 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
$C$DW$318 .dwtag DW_TAG_variable
.dwattr $C$DW$318, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$318, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$318, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$318, DW_AT_location[DW_OP_breg13 0]
$C$DW$319 .dwtag DW_TAG_variable
.dwattr $C$DW$319, DW_AT_name("uxStreamBufferNumber")
.dwattr $C$DW$319, DW_AT_TI_symbol_name("uxStreamBufferNumber")
.dwattr $C$DW$319, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$319, DW_AT_location[DW_OP_breg13 4]
STR A2, [SP, #4] ; [DPU_V7M3_PIPE] |1248|
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1248|
.dwpsn file "../OS/stream_buffer.c",line 1249,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1249 | xStreamBuffer->uxStreamBufferNumber = uxStreamBufferNumber;
;----------------------------------------------------------------------
LDR A1, [SP, #4] ; [DPU_V7M3_PIPE] |1249|
LDR A2, [SP, #0] ; [DPU_V7M3_PIPE] |1249|
STR A1, [A2, #32] ; [DPU_V7M3_PIPE] |1249|
.dwpsn file "../OS/stream_buffer.c",line 1250,column 2,is_stmt,isa 1
ADD SP, SP, #8 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
$C$DW$320 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$320, DW_AT_low_pc(0x00)
.dwattr $C$DW$320, DW_AT_TI_return
BX LR ; [DPU_V7M3_PIPE]
; BRANCH OCCURS ; []
.dwattr $C$DW$315, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$315, DW_AT_TI_end_line(0x4e2)
.dwattr $C$DW$315, DW_AT_TI_end_column(0x02)
.dwendentry
.dwendtag $C$DW$315
.sect ".text"
.clink
.thumbfunc ucStreamBufferGetStreamBufferType
.thumb
.global ucStreamBufferGetStreamBufferType
$C$DW$321 .dwtag DW_TAG_subprogram
.dwattr $C$DW$321, DW_AT_name("ucStreamBufferGetStreamBufferType")
.dwattr $C$DW$321, DW_AT_low_pc(ucStreamBufferGetStreamBufferType)
.dwattr $C$DW$321, DW_AT_high_pc(0x00)
.dwattr $C$DW$321, DW_AT_TI_symbol_name("ucStreamBufferGetStreamBufferType")
.dwattr $C$DW$321, DW_AT_external
.dwattr $C$DW$321, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$321, DW_AT_TI_begin_file("../OS/stream_buffer.c")
.dwattr $C$DW$321, DW_AT_TI_begin_line(0x4e9)
.dwattr $C$DW$321, DW_AT_TI_begin_column(0x0a)
.dwattr $C$DW$321, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$321, DW_AT_decl_line(0x4e9)
.dwattr $C$DW$321, DW_AT_decl_column(0x0a)
.dwattr $C$DW$321, DW_AT_TI_max_frame_size(0x08)
.dwpsn file "../OS/stream_buffer.c",line 1258,column 2,is_stmt,address ucStreamBufferGetStreamBufferType,isa 1
.dwfde $C$DW$CIE, ucStreamBufferGetStreamBufferType
$C$DW$322 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$322, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$322, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$322, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$322, DW_AT_location[DW_OP_reg0]
;----------------------------------------------------------------------
; 1257 | uint8_t ucStreamBufferGetStreamBufferType( StreamBufferHandle_t xStream
; | Buffer )
;----------------------------------------------------------------------
;*****************************************************************************
;* FUNCTION NAME: ucStreamBufferGetStreamBufferType *
;* *
;* Regs Modified : A1,SP *
;* Regs Used : A1,SP,LR *
;* Local Frame Size : 0 Args + 4 Auto + 0 Save = 4 byte *
;*****************************************************************************
ucStreamBufferGetStreamBufferType:
;* --------------------------------------------------------------------------*
.dwcfi cfa_offset, 0
SUB SP, SP, #8 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 8
$C$DW$323 .dwtag DW_TAG_variable
.dwattr $C$DW$323, DW_AT_name("xStreamBuffer")
.dwattr $C$DW$323, DW_AT_TI_symbol_name("xStreamBuffer")
.dwattr $C$DW$323, DW_AT_type(*$C$DW$T$108)
.dwattr $C$DW$323, DW_AT_location[DW_OP_breg13 0]
STR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1258|
.dwpsn file "../OS/stream_buffer.c",line 1259,column 3,is_stmt,isa 1
;----------------------------------------------------------------------
; 1259 | return ( xStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER );
;----------------------------------------------------------------------
LDR A1, [SP, #0] ; [DPU_V7M3_PIPE] |1259|
LDRB A1, [A1, #28] ; [DPU_V7M3_PIPE] |1259|
AND A1, A1, #1 ; [DPU_V7M3_PIPE] |1259|
.dwpsn file "../OS/stream_buffer.c",line 1260,column 2,is_stmt,isa 1
ADD SP, SP, #8 ; [DPU_V7M3_PIPE]
.dwcfi cfa_offset, 0
$C$DW$324 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$324, DW_AT_low_pc(0x00)
.dwattr $C$DW$324, DW_AT_TI_return
BX LR ; [DPU_V7M3_PIPE]
; BRANCH OCCURS ; []
.dwattr $C$DW$321, DW_AT_TI_end_file("../OS/stream_buffer.c")
.dwattr $C$DW$321, DW_AT_TI_end_line(0x4ec)
.dwattr $C$DW$321, DW_AT_TI_end_column(0x02)
.dwendentry
.dwendtag $C$DW$321
;*****************************************************************************
;* UNDEFINED EXTERNAL REFERENCES *
;*****************************************************************************
.global memset
.global vPortEnterCritical
.global vPortExitCritical
.global vTaskSetTimeOutState
.global xTaskNotifyStateClear
.global xTaskGetCurrentTaskHandle
.global xTaskNotifyWait
.global xTaskCheckForTimeOut
.global vTaskSuspendAll
.global xTaskGenericNotify
.global xTaskResumeAll
.global xTaskGenericNotifyFromISR
.global memcpy
;******************************************************************************
;* BUILD ATTRIBUTES *
;******************************************************************************
.battr "aeabi", Tag_File, 1, Tag_ABI_PCS_wchar_t(2)
.battr "aeabi", Tag_File, 1, Tag_ABI_FP_rounding(0)
.battr "aeabi", Tag_File, 1, Tag_ABI_FP_denormal(0)
.battr "aeabi", Tag_File, 1, Tag_ABI_FP_exceptions(0)
.battr "aeabi", Tag_File, 1, Tag_ABI_FP_number_model(1)
.battr "aeabi", Tag_File, 1, Tag_ABI_enum_size(1)
.battr "aeabi", Tag_File, 1, Tag_ABI_optimization_goals(5)
.battr "aeabi", Tag_File, 1, Tag_ABI_FP_optimization_goals(0)
.battr "TI", Tag_File, 1, Tag_Bitfield_layout(2)
.battr "aeabi", Tag_File, 1, Tag_ABI_VFP_args(3)
.battr "TI", Tag_File, 1, Tag_FP_interface(1)
;******************************************************************************
;* TYPE INFORMATION *
;******************************************************************************
$C$DW$T$87 .dwtag DW_TAG_enumeration_type
.dwattr $C$DW$T$87, DW_AT_byte_size(0x01)
$C$DW$325 .dwtag DW_TAG_enumerator
.dwattr $C$DW$325, DW_AT_name("eRunning")
.dwattr $C$DW$325, DW_AT_const_value(0x00)
.dwattr $C$DW$325, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$325, DW_AT_decl_line(0x49)
.dwattr $C$DW$325, DW_AT_decl_column(0x02)
$C$DW$326 .dwtag DW_TAG_enumerator
.dwattr $C$DW$326, DW_AT_name("eReady")
.dwattr $C$DW$326, DW_AT_const_value(0x01)
.dwattr $C$DW$326, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$326, DW_AT_decl_line(0x4a)
.dwattr $C$DW$326, DW_AT_decl_column(0x02)
$C$DW$327 .dwtag DW_TAG_enumerator
.dwattr $C$DW$327, DW_AT_name("eBlocked")
.dwattr $C$DW$327, DW_AT_const_value(0x02)
.dwattr $C$DW$327, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$327, DW_AT_decl_line(0x4b)
.dwattr $C$DW$327, DW_AT_decl_column(0x02)
$C$DW$328 .dwtag DW_TAG_enumerator
.dwattr $C$DW$328, DW_AT_name("eSuspended")
.dwattr $C$DW$328, DW_AT_const_value(0x03)
.dwattr $C$DW$328, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$328, DW_AT_decl_line(0x4c)
.dwattr $C$DW$328, DW_AT_decl_column(0x02)
$C$DW$329 .dwtag DW_TAG_enumerator
.dwattr $C$DW$329, DW_AT_name("eDeleted")
.dwattr $C$DW$329, DW_AT_const_value(0x04)
.dwattr $C$DW$329, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$329, DW_AT_decl_line(0x4d)
.dwattr $C$DW$329, DW_AT_decl_column(0x02)
$C$DW$330 .dwtag DW_TAG_enumerator
.dwattr $C$DW$330, DW_AT_name("eInvalid")
.dwattr $C$DW$330, DW_AT_const_value(0x05)
.dwattr $C$DW$330, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$330, DW_AT_decl_line(0x4e)
.dwattr $C$DW$330, DW_AT_decl_column(0x02)
.dwattr $C$DW$T$87, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$87, DW_AT_decl_line(0x48)
.dwattr $C$DW$T$87, DW_AT_decl_column(0x01)
.dwendtag $C$DW$T$87
$C$DW$T$88 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$88, DW_AT_name("eTaskState")
.dwattr $C$DW$T$88, DW_AT_type(*$C$DW$T$87)
.dwattr $C$DW$T$88, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$88, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$88, DW_AT_decl_line(0x4f)
.dwattr $C$DW$T$88, DW_AT_decl_column(0x03)
$C$DW$T$92 .dwtag DW_TAG_enumeration_type
.dwattr $C$DW$T$92, DW_AT_byte_size(0x01)
$C$DW$331 .dwtag DW_TAG_enumerator
.dwattr $C$DW$331, DW_AT_name("eNoAction")
.dwattr $C$DW$331, DW_AT_const_value(0x00)
.dwattr $C$DW$331, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$331, DW_AT_decl_line(0x54)
.dwattr $C$DW$331, DW_AT_decl_column(0x02)
$C$DW$332 .dwtag DW_TAG_enumerator
.dwattr $C$DW$332, DW_AT_name("eSetBits")
.dwattr $C$DW$332, DW_AT_const_value(0x01)
.dwattr $C$DW$332, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$332, DW_AT_decl_line(0x55)
.dwattr $C$DW$332, DW_AT_decl_column(0x02)
$C$DW$333 .dwtag DW_TAG_enumerator
.dwattr $C$DW$333, DW_AT_name("eIncrement")
.dwattr $C$DW$333, DW_AT_const_value(0x02)
.dwattr $C$DW$333, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$333, DW_AT_decl_line(0x56)
.dwattr $C$DW$333, DW_AT_decl_column(0x02)
$C$DW$334 .dwtag DW_TAG_enumerator
.dwattr $C$DW$334, DW_AT_name("eSetValueWithOverwrite")
.dwattr $C$DW$334, DW_AT_const_value(0x03)
.dwattr $C$DW$334, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$334, DW_AT_decl_line(0x57)
.dwattr $C$DW$334, DW_AT_decl_column(0x02)
$C$DW$335 .dwtag DW_TAG_enumerator
.dwattr $C$DW$335, DW_AT_name("eSetValueWithoutOverwrite")
.dwattr $C$DW$335, DW_AT_const_value(0x04)
.dwattr $C$DW$335, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$335, DW_AT_decl_line(0x58)
.dwattr $C$DW$335, DW_AT_decl_column(0x02)
.dwattr $C$DW$T$92, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$92, DW_AT_decl_line(0x53)
.dwattr $C$DW$T$92, DW_AT_decl_column(0x01)
.dwendtag $C$DW$T$92
$C$DW$T$93 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$93, DW_AT_name("eNotifyAction")
.dwattr $C$DW$T$93, DW_AT_type(*$C$DW$T$92)
.dwattr $C$DW$T$93, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$93, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$93, DW_AT_decl_line(0x59)
.dwattr $C$DW$T$93, DW_AT_decl_column(0x03)
$C$DW$T$94 .dwtag DW_TAG_enumeration_type
.dwattr $C$DW$T$94, DW_AT_byte_size(0x01)
$C$DW$336 .dwtag DW_TAG_enumerator
.dwattr $C$DW$336, DW_AT_name("eAbortSleep")
.dwattr $C$DW$336, DW_AT_const_value(0x00)
.dwattr $C$DW$336, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$336, DW_AT_decl_line(0x91)
.dwattr $C$DW$336, DW_AT_decl_column(0x02)
$C$DW$337 .dwtag DW_TAG_enumerator
.dwattr $C$DW$337, DW_AT_name("eStandardSleep")
.dwattr $C$DW$337, DW_AT_const_value(0x01)
.dwattr $C$DW$337, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$337, DW_AT_decl_line(0x92)
.dwattr $C$DW$337, DW_AT_decl_column(0x02)
$C$DW$338 .dwtag DW_TAG_enumerator
.dwattr $C$DW$338, DW_AT_name("eNoTasksWaitingTimeout")
.dwattr $C$DW$338, DW_AT_const_value(0x02)
.dwattr $C$DW$338, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$338, DW_AT_decl_line(0x93)
.dwattr $C$DW$338, DW_AT_decl_column(0x02)
.dwattr $C$DW$T$94, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$94, DW_AT_decl_line(0x90)
.dwattr $C$DW$T$94, DW_AT_decl_column(0x01)
.dwendtag $C$DW$T$94
$C$DW$T$95 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$95, DW_AT_name("eSleepModeStatus")
.dwattr $C$DW$T$95, DW_AT_type(*$C$DW$T$94)
.dwattr $C$DW$T$95, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$95, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$95, DW_AT_decl_line(0x94)
.dwattr $C$DW$T$95, DW_AT_decl_column(0x03)
$C$DW$T$22 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$22, DW_AT_byte_size(0x10)
$C$DW$339 .dwtag DW_TAG_member
.dwattr $C$DW$339, DW_AT_type(*$C$DW$T$14)
.dwattr $C$DW$339, DW_AT_name("__max_align1")
.dwattr $C$DW$339, DW_AT_TI_symbol_name("__max_align1")
.dwattr $C$DW$339, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$339, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$339, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$339, DW_AT_decl_line(0x70)
.dwattr $C$DW$339, DW_AT_decl_column(0x0c)
$C$DW$340 .dwtag DW_TAG_member
.dwattr $C$DW$340, DW_AT_type(*$C$DW$T$18)
.dwattr $C$DW$340, DW_AT_name("__max_align2")
.dwattr $C$DW$340, DW_AT_TI_symbol_name("__max_align2")
.dwattr $C$DW$340, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$340, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$340, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$340, DW_AT_decl_line(0x71)
.dwattr $C$DW$340, DW_AT_decl_column(0x0e)
.dwattr $C$DW$T$22, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$22, DW_AT_decl_line(0x6f)
.dwattr $C$DW$T$22, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$22
$C$DW$T$96 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$96, DW_AT_name("__max_align_t")
.dwattr $C$DW$T$96, DW_AT_type(*$C$DW$T$22)
.dwattr $C$DW$T$96, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$96, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$96, DW_AT_decl_line(0x72)
.dwattr $C$DW$T$96, DW_AT_decl_column(0x03)
$C$DW$T$23 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$23, DW_AT_byte_size(0x08)
$C$DW$341 .dwtag DW_TAG_member
.dwattr $C$DW$341, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$341, DW_AT_name("quot")
.dwattr $C$DW$341, DW_AT_TI_symbol_name("quot")
.dwattr $C$DW$341, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$341, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$341, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$341, DW_AT_decl_line(0x49)
.dwattr $C$DW$341, DW_AT_decl_column(0x16)
$C$DW$342 .dwtag DW_TAG_member
.dwattr $C$DW$342, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$342, DW_AT_name("rem")
.dwattr $C$DW$342, DW_AT_TI_symbol_name("rem")
.dwattr $C$DW$342, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$342, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$342, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$342, DW_AT_decl_line(0x49)
.dwattr $C$DW$342, DW_AT_decl_column(0x1c)
.dwattr $C$DW$T$23, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$23, DW_AT_decl_line(0x49)
.dwattr $C$DW$T$23, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$23
$C$DW$T$97 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$97, DW_AT_name("div_t")
.dwattr $C$DW$T$97, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$T$97, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$97, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$97, DW_AT_decl_line(0x49)
.dwattr $C$DW$T$97, DW_AT_decl_column(0x23)
$C$DW$T$24 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$24, DW_AT_byte_size(0x08)
$C$DW$343 .dwtag DW_TAG_member
.dwattr $C$DW$343, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$343, DW_AT_name("quot")
.dwattr $C$DW$343, DW_AT_TI_symbol_name("quot")
.dwattr $C$DW$343, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$343, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$343, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$343, DW_AT_decl_line(0x4e)
.dwattr $C$DW$343, DW_AT_decl_column(0x16)
$C$DW$344 .dwtag DW_TAG_member
.dwattr $C$DW$344, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$344, DW_AT_name("rem")
.dwattr $C$DW$344, DW_AT_TI_symbol_name("rem")
.dwattr $C$DW$344, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$344, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$344, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$344, DW_AT_decl_line(0x4e)
.dwattr $C$DW$344, DW_AT_decl_column(0x1c)
.dwattr $C$DW$T$24, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$24, DW_AT_decl_line(0x4e)
.dwattr $C$DW$T$24, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$24
$C$DW$T$98 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$98, DW_AT_name("ldiv_t")
.dwattr $C$DW$T$98, DW_AT_type(*$C$DW$T$24)
.dwattr $C$DW$T$98, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$98, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$98, DW_AT_decl_line(0x4e)
.dwattr $C$DW$T$98, DW_AT_decl_column(0x23)
$C$DW$T$25 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$25, DW_AT_byte_size(0x10)
$C$DW$345 .dwtag DW_TAG_member
.dwattr $C$DW$345, DW_AT_type(*$C$DW$T$14)
.dwattr $C$DW$345, DW_AT_name("quot")
.dwattr $C$DW$345, DW_AT_TI_symbol_name("quot")
.dwattr $C$DW$345, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$345, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$345, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$345, DW_AT_decl_line(0x56)
.dwattr $C$DW$345, DW_AT_decl_column(0x1c)
$C$DW$346 .dwtag DW_TAG_member
.dwattr $C$DW$346, DW_AT_type(*$C$DW$T$14)
.dwattr $C$DW$346, DW_AT_name("rem")
.dwattr $C$DW$346, DW_AT_TI_symbol_name("rem")
.dwattr $C$DW$346, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$346, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$346, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$346, DW_AT_decl_line(0x56)
.dwattr $C$DW$346, DW_AT_decl_column(0x22)
.dwattr $C$DW$T$25, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$25, DW_AT_decl_line(0x56)
.dwattr $C$DW$T$25, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$25
$C$DW$T$99 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$99, DW_AT_name("lldiv_t")
.dwattr $C$DW$T$99, DW_AT_type(*$C$DW$T$25)
.dwattr $C$DW$T$99, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$99, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$99, DW_AT_decl_line(0x56)
.dwattr $C$DW$T$99, DW_AT_decl_column(0x29)
$C$DW$T$27 .dwtag DW_TAG_union_type
.dwattr $C$DW$T$27, DW_AT_byte_size(0x04)
$C$DW$347 .dwtag DW_TAG_member
.dwattr $C$DW$347, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$347, DW_AT_name("pvDummy2")
.dwattr $C$DW$347, DW_AT_TI_symbol_name("pvDummy2")
.dwattr $C$DW$347, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$347, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$347, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$347, DW_AT_decl_line(0x42d)
.dwattr $C$DW$347, DW_AT_decl_column(0x09)
$C$DW$348 .dwtag DW_TAG_member
.dwattr $C$DW$348, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$348, DW_AT_name("uxDummy2")
.dwattr $C$DW$348, DW_AT_TI_symbol_name("uxDummy2")
.dwattr $C$DW$348, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$348, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$348, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$348, DW_AT_decl_line(0x42e)
.dwattr $C$DW$348, DW_AT_decl_column(0x0f)
.dwattr $C$DW$T$27, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$27, DW_AT_decl_line(0x42c)
.dwattr $C$DW$T$27, DW_AT_decl_column(0x02)
.dwendtag $C$DW$T$27
$C$DW$T$32 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$32, DW_AT_name("HeapRegion")
.dwattr $C$DW$T$32, DW_AT_byte_size(0x08)
$C$DW$349 .dwtag DW_TAG_member
.dwattr $C$DW$349, DW_AT_type(*$C$DW$T$30)
.dwattr $C$DW$349, DW_AT_name("pucStartAddress")
.dwattr $C$DW$349, DW_AT_TI_symbol_name("pucStartAddress")
.dwattr $C$DW$349, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$349, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$349, DW_AT_decl_file("../OS/portable.h")
.dwattr $C$DW$349, DW_AT_decl_line(0x6e)
.dwattr $C$DW$349, DW_AT_decl_column(0x0b)
$C$DW$350 .dwtag DW_TAG_member
.dwattr $C$DW$350, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$350, DW_AT_name("xSizeInBytes")
.dwattr $C$DW$350, DW_AT_TI_symbol_name("xSizeInBytes")
.dwattr $C$DW$350, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$350, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$350, DW_AT_decl_file("../OS/portable.h")
.dwattr $C$DW$350, DW_AT_decl_line(0x6f)
.dwattr $C$DW$350, DW_AT_decl_column(0x09)
.dwattr $C$DW$T$32, DW_AT_decl_file("../OS/portable.h")
.dwattr $C$DW$T$32, DW_AT_decl_line(0x6c)
.dwattr $C$DW$T$32, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$32
$C$DW$T$100 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$100, DW_AT_name("HeapRegion_t")
.dwattr $C$DW$T$100, DW_AT_type(*$C$DW$T$32)
.dwattr $C$DW$T$100, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$100, DW_AT_decl_file("../OS/portable.h")
.dwattr $C$DW$T$100, DW_AT_decl_line(0x70)
.dwattr $C$DW$T$100, DW_AT_decl_column(0x03)
$C$DW$T$37 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$37, DW_AT_name("StreamBufferDef_t")
.dwattr $C$DW$T$37, DW_AT_byte_size(0x24)
$C$DW$351 .dwtag DW_TAG_member
.dwattr $C$DW$351, DW_AT_type(*$C$DW$T$33)
.dwattr $C$DW$351, DW_AT_name("xTail")
.dwattr $C$DW$351, DW_AT_TI_symbol_name("xTail")
.dwattr $C$DW$351, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$351, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$351, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$351, DW_AT_decl_line(0x8f)
.dwattr $C$DW$351, DW_AT_decl_column(0x12)
$C$DW$352 .dwtag DW_TAG_member
.dwattr $C$DW$352, DW_AT_type(*$C$DW$T$33)
.dwattr $C$DW$352, DW_AT_name("xHead")
.dwattr $C$DW$352, DW_AT_TI_symbol_name("xHead")
.dwattr $C$DW$352, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$352, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$352, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$352, DW_AT_decl_line(0x90)
.dwattr $C$DW$352, DW_AT_decl_column(0x12)
$C$DW$353 .dwtag DW_TAG_member
.dwattr $C$DW$353, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$353, DW_AT_name("xLength")
.dwattr $C$DW$353, DW_AT_TI_symbol_name("xLength")
.dwattr $C$DW$353, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$353, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$353, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$353, DW_AT_decl_line(0x91)
.dwattr $C$DW$353, DW_AT_decl_column(0x09)
$C$DW$354 .dwtag DW_TAG_member
.dwattr $C$DW$354, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$354, DW_AT_name("xTriggerLevelBytes")
.dwattr $C$DW$354, DW_AT_TI_symbol_name("xTriggerLevelBytes")
.dwattr $C$DW$354, DW_AT_data_member_location[DW_OP_plus_uconst 0xc]
.dwattr $C$DW$354, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$354, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$354, DW_AT_decl_line(0x92)
.dwattr $C$DW$354, DW_AT_decl_column(0x09)
$C$DW$355 .dwtag DW_TAG_member
.dwattr $C$DW$355, DW_AT_type(*$C$DW$T$36)
.dwattr $C$DW$355, DW_AT_name("xTaskWaitingToReceive")
.dwattr $C$DW$355, DW_AT_TI_symbol_name("xTaskWaitingToReceive")
.dwattr $C$DW$355, DW_AT_data_member_location[DW_OP_plus_uconst 0x10]
.dwattr $C$DW$355, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$355, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$355, DW_AT_decl_line(0x93)
.dwattr $C$DW$355, DW_AT_decl_column(0x18)
$C$DW$356 .dwtag DW_TAG_member
.dwattr $C$DW$356, DW_AT_type(*$C$DW$T$36)
.dwattr $C$DW$356, DW_AT_name("xTaskWaitingToSend")
.dwattr $C$DW$356, DW_AT_TI_symbol_name("xTaskWaitingToSend")
.dwattr $C$DW$356, DW_AT_data_member_location[DW_OP_plus_uconst 0x14]
.dwattr $C$DW$356, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$356, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$356, DW_AT_decl_line(0x94)
.dwattr $C$DW$356, DW_AT_decl_column(0x18)
$C$DW$357 .dwtag DW_TAG_member
.dwattr $C$DW$357, DW_AT_type(*$C$DW$T$30)
.dwattr $C$DW$357, DW_AT_name("pucBuffer")
.dwattr $C$DW$357, DW_AT_TI_symbol_name("pucBuffer")
.dwattr $C$DW$357, DW_AT_data_member_location[DW_OP_plus_uconst 0x18]
.dwattr $C$DW$357, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$357, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$357, DW_AT_decl_line(0x95)
.dwattr $C$DW$357, DW_AT_decl_column(0x0b)
$C$DW$358 .dwtag DW_TAG_member
.dwattr $C$DW$358, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$358, DW_AT_name("ucFlags")
.dwattr $C$DW$358, DW_AT_TI_symbol_name("ucFlags")
.dwattr $C$DW$358, DW_AT_data_member_location[DW_OP_plus_uconst 0x1c]
.dwattr $C$DW$358, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$358, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$358, DW_AT_decl_line(0x96)
.dwattr $C$DW$358, DW_AT_decl_column(0x0a)
$C$DW$359 .dwtag DW_TAG_member
.dwattr $C$DW$359, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$359, DW_AT_name("uxStreamBufferNumber")
.dwattr $C$DW$359, DW_AT_TI_symbol_name("uxStreamBufferNumber")
.dwattr $C$DW$359, DW_AT_data_member_location[DW_OP_plus_uconst 0x20]
.dwattr $C$DW$359, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$359, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$359, DW_AT_decl_line(0x99)
.dwattr $C$DW$359, DW_AT_decl_column(0x0f)
.dwattr $C$DW$T$37, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$T$37, DW_AT_decl_line(0x8d)
.dwattr $C$DW$T$37, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$37
$C$DW$T$101 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$101, DW_AT_name("StreamBuffer_t")
.dwattr $C$DW$T$101, DW_AT_type(*$C$DW$T$37)
.dwattr $C$DW$T$101, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$101, DW_AT_decl_file("../OS/stream_buffer.c")
.dwattr $C$DW$T$101, DW_AT_decl_line(0x9b)
.dwattr $C$DW$T$101, DW_AT_decl_column(0x03)
$C$DW$T$102 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$102, DW_AT_type(*$C$DW$T$101)
$C$DW$T$103 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$103, DW_AT_type(*$C$DW$T$102)
.dwattr $C$DW$T$103, DW_AT_address_class(0x20)
$C$DW$T$104 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$104, DW_AT_type(*$C$DW$T$103)
$C$DW$T$105 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$105, DW_AT_type(*$C$DW$T$101)
.dwattr $C$DW$T$105, DW_AT_address_class(0x20)
$C$DW$T$106 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$106, DW_AT_type(*$C$DW$T$105)
$C$DW$T$107 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$107, DW_AT_type(*$C$DW$T$37)
.dwattr $C$DW$T$107, DW_AT_address_class(0x20)
$C$DW$T$108 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$108, DW_AT_name("StreamBufferHandle_t")
.dwattr $C$DW$T$108, DW_AT_type(*$C$DW$T$107)
.dwattr $C$DW$T$108, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$108, DW_AT_decl_file("../OS/stream_buffer.h")
.dwattr $C$DW$T$108, DW_AT_decl_line(0x41)
.dwattr $C$DW$T$108, DW_AT_decl_column(0x24)
$C$DW$T$2 .dwtag DW_TAG_unspecified_type
.dwattr $C$DW$T$2, DW_AT_name("void")
$C$DW$T$3 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$3, DW_AT_type(*$C$DW$T$2)
.dwattr $C$DW$T$3, DW_AT_address_class(0x20)
$C$DW$T$56 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$56, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$T$56, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$56, DW_AT_byte_size(0x10)
$C$DW$360 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$360, DW_AT_upper_bound(0x03)
.dwendtag $C$DW$T$56
$C$DW$T$58 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$58, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$T$58, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$58, DW_AT_byte_size(0x08)
$C$DW$361 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$361, DW_AT_upper_bound(0x01)
.dwendtag $C$DW$T$58
$C$DW$T$60 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$60, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$T$60, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$60, DW_AT_byte_size(0x0c)
$C$DW$362 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$362, DW_AT_upper_bound(0x02)
.dwendtag $C$DW$T$60
$C$DW$T$72 .dwtag DW_TAG_subroutine_type
.dwattr $C$DW$T$72, DW_AT_language(DW_LANG_C)
$C$DW$363 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$363, DW_AT_type(*$C$DW$T$3)
.dwendtag $C$DW$T$72
$C$DW$T$73 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$73, DW_AT_type(*$C$DW$T$72)
.dwattr $C$DW$T$73, DW_AT_address_class(0x20)
$C$DW$T$74 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$74, DW_AT_name("TaskFunction_t")
.dwattr $C$DW$T$74, DW_AT_type(*$C$DW$T$73)
.dwattr $C$DW$T$74, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$74, DW_AT_decl_file("../OS/projdefs.h")
.dwattr $C$DW$T$74, DW_AT_decl_line(0x23)
.dwattr $C$DW$T$74, DW_AT_decl_column(0x10)
$C$DW$T$116 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$116, DW_AT_type(*$C$DW$T$2)
$C$DW$T$117 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$117, DW_AT_type(*$C$DW$T$116)
.dwattr $C$DW$T$117, DW_AT_address_class(0x20)
$C$DW$T$118 .dwtag DW_TAG_subroutine_type
.dwattr $C$DW$T$118, DW_AT_language(DW_LANG_C)
.dwendtag $C$DW$T$118
$C$DW$T$119 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$119, DW_AT_type(*$C$DW$T$118)
.dwattr $C$DW$T$119, DW_AT_address_class(0x20)
$C$DW$T$120 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$120, DW_AT_name("__TI_atexit_fn")
.dwattr $C$DW$T$120, DW_AT_type(*$C$DW$T$119)
.dwattr $C$DW$T$120, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$120, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$120, DW_AT_decl_line(0xb2)
.dwattr $C$DW$T$120, DW_AT_decl_column(0x14)
$C$DW$T$4 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$4, DW_AT_encoding(DW_ATE_boolean)
.dwattr $C$DW$T$4, DW_AT_name("bool")
.dwattr $C$DW$T$4, DW_AT_byte_size(0x01)
$C$DW$T$5 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$5, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$5, DW_AT_name("signed char")
.dwattr $C$DW$T$5, DW_AT_byte_size(0x01)
$C$DW$T$130 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$130, DW_AT_name("__int8_t")
.dwattr $C$DW$T$130, DW_AT_type(*$C$DW$T$5)
.dwattr $C$DW$T$130, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$130, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$130, DW_AT_decl_line(0x39)
.dwattr $C$DW$T$130, DW_AT_decl_column(0x16)
$C$DW$T$131 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$131, DW_AT_name("__int_least8_t")
.dwattr $C$DW$T$131, DW_AT_type(*$C$DW$T$130)
.dwattr $C$DW$T$131, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$131, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$131, DW_AT_decl_line(0x58)
.dwattr $C$DW$T$131, DW_AT_decl_column(0x12)
$C$DW$T$132 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$132, DW_AT_name("int_least8_t")
.dwattr $C$DW$T$132, DW_AT_type(*$C$DW$T$131)
.dwattr $C$DW$T$132, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$132, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$132, DW_AT_decl_line(0x28)
.dwattr $C$DW$T$132, DW_AT_decl_column(0x19)
$C$DW$T$133 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$133, DW_AT_name("int8_t")
.dwattr $C$DW$T$133, DW_AT_type(*$C$DW$T$130)
.dwattr $C$DW$T$133, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$133, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$133, DW_AT_decl_line(0x24)
.dwattr $C$DW$T$133, DW_AT_decl_column(0x13)
$C$DW$T$6 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$6, DW_AT_encoding(DW_ATE_unsigned_char)
.dwattr $C$DW$T$6, DW_AT_name("unsigned char")
.dwattr $C$DW$T$6, DW_AT_byte_size(0x01)
$C$DW$T$28 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$28, DW_AT_name("__uint8_t")
.dwattr $C$DW$T$28, DW_AT_type(*$C$DW$T$6)
.dwattr $C$DW$T$28, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$28, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$28, DW_AT_decl_line(0x3a)
.dwattr $C$DW$T$28, DW_AT_decl_column(0x18)
$C$DW$T$134 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$134, DW_AT_name("__sa_family_t")
.dwattr $C$DW$T$134, DW_AT_type(*$C$DW$T$28)
.dwattr $C$DW$T$134, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$134, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$134, DW_AT_decl_line(0x43)
.dwattr $C$DW$T$134, DW_AT_decl_column(0x13)
$C$DW$T$135 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$135, DW_AT_name("__uint_least8_t")
.dwattr $C$DW$T$135, DW_AT_type(*$C$DW$T$28)
.dwattr $C$DW$T$135, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$135, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$135, DW_AT_decl_line(0x6d)
.dwattr $C$DW$T$135, DW_AT_decl_column(0x13)
$C$DW$T$136 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$136, DW_AT_name("uint_least8_t")
.dwattr $C$DW$T$136, DW_AT_type(*$C$DW$T$135)
.dwattr $C$DW$T$136, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$136, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$136, DW_AT_decl_line(0x2d)
.dwattr $C$DW$T$136, DW_AT_decl_column(0x1a)
$C$DW$T$29 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$29, DW_AT_name("uint8_t")
.dwattr $C$DW$T$29, DW_AT_type(*$C$DW$T$28)
.dwattr $C$DW$T$29, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$29, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$29, DW_AT_decl_line(0x38)
.dwattr $C$DW$T$29, DW_AT_decl_column(0x14)
$C$DW$T$30 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$30, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$T$30, DW_AT_address_class(0x20)
$C$DW$T$109 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$109, DW_AT_type(*$C$DW$T$30)
$C$DW$T$63 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$63, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$T$63, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$63, DW_AT_byte_size(0x02)
$C$DW$364 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$364, DW_AT_upper_bound(0x01)
.dwendtag $C$DW$T$63
$C$DW$T$69 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$69, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$T$69, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$69, DW_AT_byte_size(0x0c)
$C$DW$365 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$365, DW_AT_upper_bound(0x0b)
.dwendtag $C$DW$T$69
$C$DW$T$138 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$138, DW_AT_type(*$C$DW$T$29)
$C$DW$T$139 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$139, DW_AT_type(*$C$DW$T$138)
.dwattr $C$DW$T$139, DW_AT_address_class(0x20)
$C$DW$T$7 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$7, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$7, DW_AT_name("wchar_t")
.dwattr $C$DW$T$7, DW_AT_byte_size(0x02)
$C$DW$T$8 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$8, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$8, DW_AT_name("short")
.dwattr $C$DW$T$8, DW_AT_byte_size(0x02)
$C$DW$T$140 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$140, DW_AT_name("__int16_t")
.dwattr $C$DW$T$140, DW_AT_type(*$C$DW$T$8)
.dwattr $C$DW$T$140, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$140, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$140, DW_AT_decl_line(0x3b)
.dwattr $C$DW$T$140, DW_AT_decl_column(0x11)
$C$DW$T$141 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$141, DW_AT_name("__int_least16_t")
.dwattr $C$DW$T$141, DW_AT_type(*$C$DW$T$140)
.dwattr $C$DW$T$141, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$141, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$141, DW_AT_decl_line(0x59)
.dwattr $C$DW$T$141, DW_AT_decl_column(0x13)
$C$DW$T$142 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$142, DW_AT_name("int_least16_t")
.dwattr $C$DW$T$142, DW_AT_type(*$C$DW$T$141)
.dwattr $C$DW$T$142, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$142, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$142, DW_AT_decl_line(0x29)
.dwattr $C$DW$T$142, DW_AT_decl_column(0x1a)
$C$DW$T$143 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$143, DW_AT_name("int16_t")
.dwattr $C$DW$T$143, DW_AT_type(*$C$DW$T$140)
.dwattr $C$DW$T$143, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$143, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$143, DW_AT_decl_line(0x29)
.dwattr $C$DW$T$143, DW_AT_decl_column(0x14)
$C$DW$T$9 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$9, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$9, DW_AT_name("unsigned short")
.dwattr $C$DW$T$9, DW_AT_byte_size(0x02)
$C$DW$T$144 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$144, DW_AT_name("___wchar_t")
.dwattr $C$DW$T$144, DW_AT_type(*$C$DW$T$9)
.dwattr $C$DW$T$144, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$144, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$144, DW_AT_decl_line(0x76)
.dwattr $C$DW$T$144, DW_AT_decl_column(0x1a)
$C$DW$T$80 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$80, DW_AT_name("__uint16_t")
.dwattr $C$DW$T$80, DW_AT_type(*$C$DW$T$9)
.dwattr $C$DW$T$80, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$80, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$80, DW_AT_decl_line(0x3c)
.dwattr $C$DW$T$80, DW_AT_decl_column(0x19)
$C$DW$T$145 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$145, DW_AT_name("__mode_t")
.dwattr $C$DW$T$145, DW_AT_type(*$C$DW$T$80)
.dwattr $C$DW$T$145, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$145, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$145, DW_AT_decl_line(0x39)
.dwattr $C$DW$T$145, DW_AT_decl_column(0x14)
$C$DW$T$146 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$146, DW_AT_name("__uint_least16_t")
.dwattr $C$DW$T$146, DW_AT_type(*$C$DW$T$80)
.dwattr $C$DW$T$146, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$146, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$146, DW_AT_decl_line(0x6e)
.dwattr $C$DW$T$146, DW_AT_decl_column(0x14)
$C$DW$T$147 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$147, DW_AT_name("__char16_t")
.dwattr $C$DW$T$147, DW_AT_type(*$C$DW$T$146)
.dwattr $C$DW$T$147, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$147, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$147, DW_AT_decl_line(0x66)
.dwattr $C$DW$T$147, DW_AT_decl_column(0x1a)
$C$DW$T$148 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$148, DW_AT_name("uint_least16_t")
.dwattr $C$DW$T$148, DW_AT_type(*$C$DW$T$146)
.dwattr $C$DW$T$148, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$148, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$148, DW_AT_decl_line(0x2e)
.dwattr $C$DW$T$148, DW_AT_decl_column(0x1a)
$C$DW$T$81 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$81, DW_AT_name("uint16_t")
.dwattr $C$DW$T$81, DW_AT_type(*$C$DW$T$80)
.dwattr $C$DW$T$81, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$81, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$81, DW_AT_decl_line(0x3d)
.dwattr $C$DW$T$81, DW_AT_decl_column(0x15)
$C$DW$T$149 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$149, DW_AT_name("wchar_t")
.dwattr $C$DW$T$149, DW_AT_type(*$C$DW$T$9)
.dwattr $C$DW$T$149, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$149, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stddef.h")
.dwattr $C$DW$T$149, DW_AT_decl_line(0x41)
.dwattr $C$DW$T$149, DW_AT_decl_column(0x1a)
$C$DW$T$10 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$10, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$10, DW_AT_name("int")
.dwattr $C$DW$T$10, DW_AT_byte_size(0x04)
$C$DW$T$150 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$150, DW_AT_name("_Mbstatet")
.dwattr $C$DW$T$150, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$150, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$150, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$150, DW_AT_decl_line(0x84)
.dwattr $C$DW$T$150, DW_AT_decl_column(0x0d)
$C$DW$T$151 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$151, DW_AT_name("__mbstate_t")
.dwattr $C$DW$T$151, DW_AT_type(*$C$DW$T$150)
.dwattr $C$DW$T$151, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$151, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$151, DW_AT_decl_line(0x87)
.dwattr $C$DW$T$151, DW_AT_decl_column(0x13)
$C$DW$T$152 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$152, DW_AT_name("__accmode_t")
.dwattr $C$DW$T$152, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$152, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$152, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$152, DW_AT_decl_line(0x3a)
.dwattr $C$DW$T$152, DW_AT_decl_column(0x0e)
$C$DW$T$153 .dwtag DW_TAG_subroutine_type
.dwattr $C$DW$T$153, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$153, DW_AT_language(DW_LANG_C)
$C$DW$366 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$366, DW_AT_type(*$C$DW$T$117)
$C$DW$367 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$367, DW_AT_type(*$C$DW$T$117)
.dwendtag $C$DW$T$153
$C$DW$T$154 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$154, DW_AT_type(*$C$DW$T$153)
.dwattr $C$DW$T$154, DW_AT_address_class(0x20)
$C$DW$T$155 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$155, DW_AT_name("__TI_compar_fn")
.dwattr $C$DW$T$155, DW_AT_type(*$C$DW$T$154)
.dwattr $C$DW$T$155, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$155, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h")
.dwattr $C$DW$T$155, DW_AT_decl_line(0xb5)
.dwattr $C$DW$T$155, DW_AT_decl_column(0x13)
$C$DW$T$156 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$156, DW_AT_name("__cpulevel_t")
.dwattr $C$DW$T$156, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$156, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$156, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$156, DW_AT_decl_line(0x4b)
.dwattr $C$DW$T$156, DW_AT_decl_column(0x0e)
$C$DW$T$157 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$157, DW_AT_name("__cpusetid_t")
.dwattr $C$DW$T$157, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$157, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$157, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$157, DW_AT_decl_line(0x4c)
.dwattr $C$DW$T$157, DW_AT_decl_column(0x0e)
$C$DW$T$158 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$158, DW_AT_name("__cpuwhich_t")
.dwattr $C$DW$T$158, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$158, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$158, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$158, DW_AT_decl_line(0x4a)
.dwattr $C$DW$T$158, DW_AT_decl_column(0x0e)
$C$DW$T$159 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$159, DW_AT_name("__ct_rune_t")
.dwattr $C$DW$T$159, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$159, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$159, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$159, DW_AT_decl_line(0x60)
.dwattr $C$DW$T$159, DW_AT_decl_column(0x0e)
$C$DW$T$160 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$160, DW_AT_name("__rune_t")
.dwattr $C$DW$T$160, DW_AT_type(*$C$DW$T$159)
.dwattr $C$DW$T$160, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$160, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$160, DW_AT_decl_line(0x61)
.dwattr $C$DW$T$160, DW_AT_decl_column(0x15)
$C$DW$T$161 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$161, DW_AT_name("__wint_t")
.dwattr $C$DW$T$161, DW_AT_type(*$C$DW$T$159)
.dwattr $C$DW$T$161, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$161, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$161, DW_AT_decl_line(0x62)
.dwattr $C$DW$T$161, DW_AT_decl_column(0x15)
$C$DW$T$162 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$162, DW_AT_name("__int32_t")
.dwattr $C$DW$T$162, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$162, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$162, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$162, DW_AT_decl_line(0x3d)
.dwattr $C$DW$T$162, DW_AT_decl_column(0x0f)
$C$DW$T$163 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$163, DW_AT_name("__blksize_t")
.dwattr $C$DW$T$163, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$163, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$163, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$163, DW_AT_decl_line(0x2e)
.dwattr $C$DW$T$163, DW_AT_decl_column(0x13)
$C$DW$T$164 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$164, DW_AT_name("__clockid_t")
.dwattr $C$DW$T$164, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$164, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$164, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$164, DW_AT_decl_line(0x30)
.dwattr $C$DW$T$164, DW_AT_decl_column(0x13)
$C$DW$T$165 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$165, DW_AT_name("__critical_t")
.dwattr $C$DW$T$165, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$165, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$165, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$165, DW_AT_decl_line(0x4e)
.dwattr $C$DW$T$165, DW_AT_decl_column(0x13)
$C$DW$T$166 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$166, DW_AT_name("__int_fast16_t")
.dwattr $C$DW$T$166, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$166, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$166, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$166, DW_AT_decl_line(0x55)
.dwattr $C$DW$T$166, DW_AT_decl_column(0x13)
$C$DW$T$167 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$167, DW_AT_name("int_fast16_t")
.dwattr $C$DW$T$167, DW_AT_type(*$C$DW$T$166)
.dwattr $C$DW$T$167, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$167, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$167, DW_AT_decl_line(0x33)
.dwattr $C$DW$T$167, DW_AT_decl_column(0x19)
$C$DW$T$168 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$168, DW_AT_name("__int_fast32_t")
.dwattr $C$DW$T$168, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$168, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$168, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$168, DW_AT_decl_line(0x56)
.dwattr $C$DW$T$168, DW_AT_decl_column(0x13)
$C$DW$T$169 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$169, DW_AT_name("int_fast32_t")
.dwattr $C$DW$T$169, DW_AT_type(*$C$DW$T$168)
.dwattr $C$DW$T$169, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$169, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$169, DW_AT_decl_line(0x34)
.dwattr $C$DW$T$169, DW_AT_decl_column(0x19)
$C$DW$T$170 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$170, DW_AT_name("__int_fast8_t")
.dwattr $C$DW$T$170, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$170, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$170, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$170, DW_AT_decl_line(0x54)
.dwattr $C$DW$T$170, DW_AT_decl_column(0x13)
$C$DW$T$171 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$171, DW_AT_name("int_fast8_t")
.dwattr $C$DW$T$171, DW_AT_type(*$C$DW$T$170)
.dwattr $C$DW$T$171, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$171, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$171, DW_AT_decl_line(0x32)
.dwattr $C$DW$T$171, DW_AT_decl_column(0x18)
$C$DW$T$172 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$172, DW_AT_name("__int_least32_t")
.dwattr $C$DW$T$172, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$172, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$172, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$172, DW_AT_decl_line(0x5a)
.dwattr $C$DW$T$172, DW_AT_decl_column(0x13)
$C$DW$T$173 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$173, DW_AT_name("int_least32_t")
.dwattr $C$DW$T$173, DW_AT_type(*$C$DW$T$172)
.dwattr $C$DW$T$173, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$173, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$173, DW_AT_decl_line(0x2a)
.dwattr $C$DW$T$173, DW_AT_decl_column(0x1a)
$C$DW$T$174 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$174, DW_AT_name("__intfptr_t")
.dwattr $C$DW$T$174, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$174, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$174, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$174, DW_AT_decl_line(0x51)
.dwattr $C$DW$T$174, DW_AT_decl_column(0x13)
$C$DW$T$175 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$175, DW_AT_name("__intptr_t")
.dwattr $C$DW$T$175, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$175, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$175, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$175, DW_AT_decl_line(0x53)
.dwattr $C$DW$T$175, DW_AT_decl_column(0x13)
$C$DW$T$176 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$176, DW_AT_name("intptr_t")
.dwattr $C$DW$T$176, DW_AT_type(*$C$DW$T$175)
.dwattr $C$DW$T$176, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$176, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$176, DW_AT_decl_line(0x4c)
.dwattr $C$DW$T$176, DW_AT_decl_column(0x15)
$C$DW$T$177 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$177, DW_AT_name("__lwpid_t")
.dwattr $C$DW$T$177, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$177, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$177, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$177, DW_AT_decl_line(0x38)
.dwattr $C$DW$T$177, DW_AT_decl_column(0x13)
$C$DW$T$178 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$178, DW_AT_name("__pid_t")
.dwattr $C$DW$T$178, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$178, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$178, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$178, DW_AT_decl_line(0x3f)
.dwattr $C$DW$T$178, DW_AT_decl_column(0x13)
$C$DW$T$179 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$179, DW_AT_name("__ptrdiff_t")
.dwattr $C$DW$T$179, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$179, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$179, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$179, DW_AT_decl_line(0x5c)
.dwattr $C$DW$T$179, DW_AT_decl_column(0x13)
$C$DW$T$180 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$180, DW_AT_name("__register_t")
.dwattr $C$DW$T$180, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$180, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$180, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$180, DW_AT_decl_line(0x5d)
.dwattr $C$DW$T$180, DW_AT_decl_column(0x13)
$C$DW$T$181 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$181, DW_AT_name("__segsz_t")
.dwattr $C$DW$T$181, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$181, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$181, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$181, DW_AT_decl_line(0x5e)
.dwattr $C$DW$T$181, DW_AT_decl_column(0x13)
$C$DW$T$182 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$182, DW_AT_name("__ssize_t")
.dwattr $C$DW$T$182, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$182, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$182, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$182, DW_AT_decl_line(0x60)
.dwattr $C$DW$T$182, DW_AT_decl_column(0x13)
$C$DW$T$183 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$183, DW_AT_name("int32_t")
.dwattr $C$DW$T$183, DW_AT_type(*$C$DW$T$162)
.dwattr $C$DW$T$183, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$183, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$183, DW_AT_decl_line(0x2e)
.dwattr $C$DW$T$183, DW_AT_decl_column(0x14)
$C$DW$T$184 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$184, DW_AT_name("__nl_item")
.dwattr $C$DW$T$184, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$184, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$184, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$184, DW_AT_decl_line(0x3b)
.dwattr $C$DW$T$184, DW_AT_decl_column(0x0e)
$C$DW$T$185 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$185, DW_AT_name("ptrdiff_t")
.dwattr $C$DW$T$185, DW_AT_type(*$C$DW$T$10)
.dwattr $C$DW$T$185, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$185, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stddef.h")
.dwattr $C$DW$T$185, DW_AT_decl_line(0x36)
.dwattr $C$DW$T$185, DW_AT_decl_column(0x1c)
$C$DW$T$11 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$11, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$11, DW_AT_name("unsigned int")
.dwattr $C$DW$T$11, DW_AT_byte_size(0x04)
$C$DW$T$44 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$44, DW_AT_name("__uint32_t")
.dwattr $C$DW$T$44, DW_AT_type(*$C$DW$T$11)
.dwattr $C$DW$T$44, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$44, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$44, DW_AT_decl_line(0x3e)
.dwattr $C$DW$T$44, DW_AT_decl_column(0x17)
$C$DW$T$186 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$186, DW_AT_name("__clock_t")
.dwattr $C$DW$T$186, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$186, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$186, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$186, DW_AT_decl_line(0x4d)
.dwattr $C$DW$T$186, DW_AT_decl_column(0x14)
$C$DW$T$187 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$187, DW_AT_name("__fflags_t")
.dwattr $C$DW$T$187, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$187, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$187, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$187, DW_AT_decl_line(0x31)
.dwattr $C$DW$T$187, DW_AT_decl_column(0x14)
$C$DW$T$188 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$188, DW_AT_name("__fixpt_t")
.dwattr $C$DW$T$188, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$188, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$188, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$188, DW_AT_decl_line(0x76)
.dwattr $C$DW$T$188, DW_AT_decl_column(0x14)
$C$DW$T$189 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$189, DW_AT_name("__gid_t")
.dwattr $C$DW$T$189, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$189, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$189, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$189, DW_AT_decl_line(0x34)
.dwattr $C$DW$T$189, DW_AT_decl_column(0x14)
$C$DW$T$190 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$190, DW_AT_name("__size_t")
.dwattr $C$DW$T$190, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$190, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$190, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$190, DW_AT_decl_line(0x5f)
.dwattr $C$DW$T$190, DW_AT_decl_column(0x14)
$C$DW$T$191 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$191, DW_AT_name("__socklen_t")
.dwattr $C$DW$T$191, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$191, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$191, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$191, DW_AT_decl_line(0x44)
.dwattr $C$DW$T$191, DW_AT_decl_column(0x14)
$C$DW$T$192 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$192, DW_AT_name("__time_t")
.dwattr $C$DW$T$192, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$192, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$192, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$192, DW_AT_decl_line(0x64)
.dwattr $C$DW$T$192, DW_AT_decl_column(0x19)
$C$DW$T$193 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$193, DW_AT_name("__u_register_t")
.dwattr $C$DW$T$193, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$193, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$193, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$193, DW_AT_decl_line(0x71)
.dwattr $C$DW$T$193, DW_AT_decl_column(0x14)
$C$DW$T$194 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$194, DW_AT_name("__uid_t")
.dwattr $C$DW$T$194, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$194, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$194, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$194, DW_AT_decl_line(0x48)
.dwattr $C$DW$T$194, DW_AT_decl_column(0x14)
$C$DW$T$195 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$195, DW_AT_name("__uint_fast16_t")
.dwattr $C$DW$T$195, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$195, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$195, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$195, DW_AT_decl_line(0x6a)
.dwattr $C$DW$T$195, DW_AT_decl_column(0x14)
$C$DW$T$196 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$196, DW_AT_name("uint_fast16_t")
.dwattr $C$DW$T$196, DW_AT_type(*$C$DW$T$195)
.dwattr $C$DW$T$196, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$196, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$196, DW_AT_decl_line(0x38)
.dwattr $C$DW$T$196, DW_AT_decl_column(0x1a)
$C$DW$T$197 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$197, DW_AT_name("__uint_fast32_t")
.dwattr $C$DW$T$197, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$197, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$197, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$197, DW_AT_decl_line(0x6b)
.dwattr $C$DW$T$197, DW_AT_decl_column(0x14)
$C$DW$T$198 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$198, DW_AT_name("uint_fast32_t")
.dwattr $C$DW$T$198, DW_AT_type(*$C$DW$T$197)
.dwattr $C$DW$T$198, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$198, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$198, DW_AT_decl_line(0x39)
.dwattr $C$DW$T$198, DW_AT_decl_column(0x1a)
$C$DW$T$199 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$199, DW_AT_name("__uint_fast8_t")
.dwattr $C$DW$T$199, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$199, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$199, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$199, DW_AT_decl_line(0x69)
.dwattr $C$DW$T$199, DW_AT_decl_column(0x14)
$C$DW$T$200 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$200, DW_AT_name("uint_fast8_t")
.dwattr $C$DW$T$200, DW_AT_type(*$C$DW$T$199)
.dwattr $C$DW$T$200, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$200, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$200, DW_AT_decl_line(0x37)
.dwattr $C$DW$T$200, DW_AT_decl_column(0x19)
$C$DW$T$201 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$201, DW_AT_name("__uint_least32_t")
.dwattr $C$DW$T$201, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$201, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$201, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$201, DW_AT_decl_line(0x6f)
.dwattr $C$DW$T$201, DW_AT_decl_column(0x14)
$C$DW$T$202 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$202, DW_AT_name("__char32_t")
.dwattr $C$DW$T$202, DW_AT_type(*$C$DW$T$201)
.dwattr $C$DW$T$202, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$202, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$202, DW_AT_decl_line(0x67)
.dwattr $C$DW$T$202, DW_AT_decl_column(0x1a)
$C$DW$T$203 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$203, DW_AT_name("uint_least32_t")
.dwattr $C$DW$T$203, DW_AT_type(*$C$DW$T$201)
.dwattr $C$DW$T$203, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$203, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$203, DW_AT_decl_line(0x2f)
.dwattr $C$DW$T$203, DW_AT_decl_column(0x1a)
$C$DW$T$204 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$204, DW_AT_name("__uintfptr_t")
.dwattr $C$DW$T$204, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$204, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$204, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$204, DW_AT_decl_line(0x66)
.dwattr $C$DW$T$204, DW_AT_decl_column(0x14)
$C$DW$T$205 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$205, DW_AT_name("__uintptr_t")
.dwattr $C$DW$T$205, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$205, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$205, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$205, DW_AT_decl_line(0x68)
.dwattr $C$DW$T$205, DW_AT_decl_column(0x14)
$C$DW$T$206 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$206, DW_AT_name("uintptr_t")
.dwattr $C$DW$T$206, DW_AT_type(*$C$DW$T$205)
.dwattr $C$DW$T$206, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$206, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$206, DW_AT_decl_line(0x50)
.dwattr $C$DW$T$206, DW_AT_decl_column(0x16)
$C$DW$T$207 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$207, DW_AT_name("__vm_offset_t")
.dwattr $C$DW$T$207, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$207, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$207, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$207, DW_AT_decl_line(0x72)
.dwattr $C$DW$T$207, DW_AT_decl_column(0x14)
$C$DW$T$208 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$208, DW_AT_name("__vm_paddr_t")
.dwattr $C$DW$T$208, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$208, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$208, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$208, DW_AT_decl_line(0x73)
.dwattr $C$DW$T$208, DW_AT_decl_column(0x14)
$C$DW$T$209 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$209, DW_AT_name("__vm_size_t")
.dwattr $C$DW$T$209, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$209, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$209, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$209, DW_AT_decl_line(0x74)
.dwattr $C$DW$T$209, DW_AT_decl_column(0x14)
$C$DW$T$45 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$45, DW_AT_name("uint32_t")
.dwattr $C$DW$T$45, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$45, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$45, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$45, DW_AT_decl_line(0x42)
.dwattr $C$DW$T$45, DW_AT_decl_column(0x15)
$C$DW$T$82 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$82, DW_AT_name("StackType_t")
.dwattr $C$DW$T$82, DW_AT_type(*$C$DW$T$45)
.dwattr $C$DW$T$82, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$82, DW_AT_decl_file("../OS/portmacro.h")
.dwattr $C$DW$T$82, DW_AT_decl_line(0x37)
.dwattr $C$DW$T$82, DW_AT_decl_column(0x18)
$C$DW$T$83 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$83, DW_AT_type(*$C$DW$T$82)
.dwattr $C$DW$T$83, DW_AT_address_class(0x20)
$C$DW$T$46 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$46, DW_AT_name("TickType_t")
.dwattr $C$DW$T$46, DW_AT_type(*$C$DW$T$45)
.dwattr $C$DW$T$46, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$46, DW_AT_decl_file("../OS/portmacro.h")
.dwattr $C$DW$T$46, DW_AT_decl_line(0x3f)
.dwattr $C$DW$T$46, DW_AT_decl_column(0x13)
$C$DW$T$210 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$210, DW_AT_type(*$C$DW$T$46)
.dwattr $C$DW$T$210, DW_AT_address_class(0x20)
$C$DW$T$211 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$211, DW_AT_type(*$C$DW$T$210)
$C$DW$T$212 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$212, DW_AT_type(*$C$DW$T$45)
.dwattr $C$DW$T$212, DW_AT_address_class(0x20)
$C$DW$T$213 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$213, DW_AT_name("__useconds_t")
.dwattr $C$DW$T$213, DW_AT_type(*$C$DW$T$11)
.dwattr $C$DW$T$213, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$213, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$213, DW_AT_decl_line(0x49)
.dwattr $C$DW$T$213, DW_AT_decl_column(0x16)
$C$DW$T$31 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$31, DW_AT_name("size_t")
.dwattr $C$DW$T$31, DW_AT_type(*$C$DW$T$11)
.dwattr $C$DW$T$31, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$31, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/string.h")
.dwattr $C$DW$T$31, DW_AT_decl_line(0x3f)
.dwattr $C$DW$T$31, DW_AT_decl_column(0x19)
$C$DW$T$65 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$65, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$T$65, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$65, DW_AT_byte_size(0x10)
$C$DW$368 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$368, DW_AT_upper_bound(0x03)
.dwendtag $C$DW$T$65
$C$DW$T$33 .dwtag DW_TAG_volatile_type
.dwattr $C$DW$T$33, DW_AT_type(*$C$DW$T$31)
$C$DW$T$12 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$12, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$12, DW_AT_name("long")
.dwattr $C$DW$T$12, DW_AT_byte_size(0x04)
$C$DW$T$90 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$90, DW_AT_name("BaseType_t")
.dwattr $C$DW$T$90, DW_AT_type(*$C$DW$T$12)
.dwattr $C$DW$T$90, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$90, DW_AT_decl_file("../OS/portmacro.h")
.dwattr $C$DW$T$90, DW_AT_decl_line(0x38)
.dwattr $C$DW$T$90, DW_AT_decl_column(0x0e)
$C$DW$T$235 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$235, DW_AT_type(*$C$DW$T$90)
$C$DW$T$217 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$217, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$T$217, DW_AT_address_class(0x20)
$C$DW$T$218 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$218, DW_AT_type(*$C$DW$T$217)
$C$DW$T$251 .dwtag DW_TAG_subroutine_type
.dwattr $C$DW$T$251, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$T$251, DW_AT_language(DW_LANG_C)
$C$DW$369 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$369, DW_AT_type(*$C$DW$T$3)
.dwendtag $C$DW$T$251
$C$DW$T$252 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$252, DW_AT_type(*$C$DW$T$251)
.dwattr $C$DW$T$252, DW_AT_address_class(0x20)
$C$DW$T$253 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$253, DW_AT_name("TaskHookFunction_t")
.dwattr $C$DW$T$253, DW_AT_type(*$C$DW$T$252)
.dwattr $C$DW$T$253, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$253, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$253, DW_AT_decl_line(0x44)
.dwattr $C$DW$T$253, DW_AT_decl_column(0x16)
$C$DW$T$254 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$254, DW_AT_name("__key_t")
.dwattr $C$DW$T$254, DW_AT_type(*$C$DW$T$12)
.dwattr $C$DW$T$254, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$254, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$254, DW_AT_decl_line(0x37)
.dwattr $C$DW$T$254, DW_AT_decl_column(0x0f)
$C$DW$T$255 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$255, DW_AT_name("__suseconds_t")
.dwattr $C$DW$T$255, DW_AT_type(*$C$DW$T$12)
.dwattr $C$DW$T$255, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$255, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$255, DW_AT_decl_line(0x45)
.dwattr $C$DW$T$255, DW_AT_decl_column(0x0f)
$C$DW$T$13 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$13, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$13, DW_AT_name("unsigned long")
.dwattr $C$DW$T$13, DW_AT_byte_size(0x04)
$C$DW$T$26 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$26, DW_AT_name("UBaseType_t")
.dwattr $C$DW$T$26, DW_AT_type(*$C$DW$T$13)
.dwattr $C$DW$T$26, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$26, DW_AT_decl_file("../OS/portmacro.h")
.dwattr $C$DW$T$26, DW_AT_decl_line(0x39)
.dwattr $C$DW$T$26, DW_AT_decl_column(0x17)
$C$DW$T$39 .dwtag DW_TAG_volatile_type
.dwattr $C$DW$T$39, DW_AT_type(*$C$DW$T$26)
$C$DW$T$62 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$62, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$T$62, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$62, DW_AT_byte_size(0x0c)
$C$DW$370 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$370, DW_AT_upper_bound(0x02)
.dwendtag $C$DW$T$62
$C$DW$T$70 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$70, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$T$70, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$70, DW_AT_byte_size(0x08)
$C$DW$371 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$371, DW_AT_upper_bound(0x01)
.dwendtag $C$DW$T$70
$C$DW$T$14 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$14, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$14, DW_AT_name("long long")
.dwattr $C$DW$T$14, DW_AT_byte_size(0x08)
$C$DW$T$257 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$257, DW_AT_name("__int64_t")
.dwattr $C$DW$T$257, DW_AT_type(*$C$DW$T$14)
.dwattr $C$DW$T$257, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$257, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$257, DW_AT_decl_line(0x43)
.dwattr $C$DW$T$257, DW_AT_decl_column(0x14)
$C$DW$T$258 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$258, DW_AT_name("__blkcnt_t")
.dwattr $C$DW$T$258, DW_AT_type(*$C$DW$T$257)
.dwattr $C$DW$T$258, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$258, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$258, DW_AT_decl_line(0x2f)
.dwattr $C$DW$T$258, DW_AT_decl_column(0x13)
$C$DW$T$259 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$259, DW_AT_name("__id_t")
.dwattr $C$DW$T$259, DW_AT_type(*$C$DW$T$257)
.dwattr $C$DW$T$259, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$259, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$259, DW_AT_decl_line(0x35)
.dwattr $C$DW$T$259, DW_AT_decl_column(0x13)
$C$DW$T$260 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$260, DW_AT_name("__int_fast64_t")
.dwattr $C$DW$T$260, DW_AT_type(*$C$DW$T$257)
.dwattr $C$DW$T$260, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$260, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$260, DW_AT_decl_line(0x57)
.dwattr $C$DW$T$260, DW_AT_decl_column(0x13)
$C$DW$T$261 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$261, DW_AT_name("int_fast64_t")
.dwattr $C$DW$T$261, DW_AT_type(*$C$DW$T$260)
.dwattr $C$DW$T$261, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$261, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$261, DW_AT_decl_line(0x35)
.dwattr $C$DW$T$261, DW_AT_decl_column(0x19)
$C$DW$T$262 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$262, DW_AT_name("__int_least64_t")
.dwattr $C$DW$T$262, DW_AT_type(*$C$DW$T$257)
.dwattr $C$DW$T$262, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$262, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$262, DW_AT_decl_line(0x5b)
.dwattr $C$DW$T$262, DW_AT_decl_column(0x13)
$C$DW$T$263 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$263, DW_AT_name("int_least64_t")
.dwattr $C$DW$T$263, DW_AT_type(*$C$DW$T$262)
.dwattr $C$DW$T$263, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$263, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$263, DW_AT_decl_line(0x2b)
.dwattr $C$DW$T$263, DW_AT_decl_column(0x1a)
$C$DW$T$264 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$264, DW_AT_name("__intmax_t")
.dwattr $C$DW$T$264, DW_AT_type(*$C$DW$T$257)
.dwattr $C$DW$T$264, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$264, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$264, DW_AT_decl_line(0x52)
.dwattr $C$DW$T$264, DW_AT_decl_column(0x13)
$C$DW$T$265 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$265, DW_AT_name("intmax_t")
.dwattr $C$DW$T$265, DW_AT_type(*$C$DW$T$264)
.dwattr $C$DW$T$265, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$265, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$265, DW_AT_decl_line(0x54)
.dwattr $C$DW$T$265, DW_AT_decl_column(0x15)
$C$DW$T$266 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$266, DW_AT_name("__off64_t")
.dwattr $C$DW$T$266, DW_AT_type(*$C$DW$T$257)
.dwattr $C$DW$T$266, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$266, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$266, DW_AT_decl_line(0x3e)
.dwattr $C$DW$T$266, DW_AT_decl_column(0x13)
$C$DW$T$267 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$267, DW_AT_name("__off_t")
.dwattr $C$DW$T$267, DW_AT_type(*$C$DW$T$257)
.dwattr $C$DW$T$267, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$267, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$267, DW_AT_decl_line(0x3d)
.dwattr $C$DW$T$267, DW_AT_decl_column(0x13)
$C$DW$T$268 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$268, DW_AT_name("__rlim_t")
.dwattr $C$DW$T$268, DW_AT_type(*$C$DW$T$257)
.dwattr $C$DW$T$268, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$268, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$268, DW_AT_decl_line(0x40)
.dwattr $C$DW$T$268, DW_AT_decl_column(0x13)
$C$DW$T$269 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$269, DW_AT_name("int64_t")
.dwattr $C$DW$T$269, DW_AT_type(*$C$DW$T$257)
.dwattr $C$DW$T$269, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$269, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$269, DW_AT_decl_line(0x33)
.dwattr $C$DW$T$269, DW_AT_decl_column(0x14)
$C$DW$T$15 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$15, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$15, DW_AT_name("unsigned long long")
.dwattr $C$DW$T$15, DW_AT_byte_size(0x08)
$C$DW$T$270 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$270, DW_AT_name("__uint64_t")
.dwattr $C$DW$T$270, DW_AT_type(*$C$DW$T$15)
.dwattr $C$DW$T$270, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$270, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$270, DW_AT_decl_line(0x48)
.dwattr $C$DW$T$270, DW_AT_decl_column(0x1c)
$C$DW$T$271 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$271, DW_AT_name("__dev_t")
.dwattr $C$DW$T$271, DW_AT_type(*$C$DW$T$270)
.dwattr $C$DW$T$271, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$271, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$271, DW_AT_decl_line(0x74)
.dwattr $C$DW$T$271, DW_AT_decl_column(0x14)
$C$DW$T$272 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$272, DW_AT_name("__fsblkcnt_t")
.dwattr $C$DW$T$272, DW_AT_type(*$C$DW$T$270)
.dwattr $C$DW$T$272, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$272, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$272, DW_AT_decl_line(0x32)
.dwattr $C$DW$T$272, DW_AT_decl_column(0x14)
$C$DW$T$273 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$273, DW_AT_name("__fsfilcnt_t")
.dwattr $C$DW$T$273, DW_AT_type(*$C$DW$T$270)
.dwattr $C$DW$T$273, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$273, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$273, DW_AT_decl_line(0x33)
.dwattr $C$DW$T$273, DW_AT_decl_column(0x14)
$C$DW$T$274 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$274, DW_AT_name("__ino_t")
.dwattr $C$DW$T$274, DW_AT_type(*$C$DW$T$270)
.dwattr $C$DW$T$274, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$274, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$274, DW_AT_decl_line(0x36)
.dwattr $C$DW$T$274, DW_AT_decl_column(0x14)
$C$DW$T$275 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$275, DW_AT_name("__nlink_t")
.dwattr $C$DW$T$275, DW_AT_type(*$C$DW$T$270)
.dwattr $C$DW$T$275, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$275, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$275, DW_AT_decl_line(0x3c)
.dwattr $C$DW$T$275, DW_AT_decl_column(0x14)
$C$DW$T$276 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$276, DW_AT_name("__uint_fast64_t")
.dwattr $C$DW$T$276, DW_AT_type(*$C$DW$T$270)
.dwattr $C$DW$T$276, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$276, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$276, DW_AT_decl_line(0x6c)
.dwattr $C$DW$T$276, DW_AT_decl_column(0x14)
$C$DW$T$277 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$277, DW_AT_name("uint_fast64_t")
.dwattr $C$DW$T$277, DW_AT_type(*$C$DW$T$276)
.dwattr $C$DW$T$277, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$277, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$277, DW_AT_decl_line(0x3a)
.dwattr $C$DW$T$277, DW_AT_decl_column(0x1a)
$C$DW$T$278 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$278, DW_AT_name("__uint_least64_t")
.dwattr $C$DW$T$278, DW_AT_type(*$C$DW$T$270)
.dwattr $C$DW$T$278, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$278, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$278, DW_AT_decl_line(0x70)
.dwattr $C$DW$T$278, DW_AT_decl_column(0x14)
$C$DW$T$279 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$279, DW_AT_name("uint_least64_t")
.dwattr $C$DW$T$279, DW_AT_type(*$C$DW$T$278)
.dwattr $C$DW$T$279, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$279, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/stdint.h")
.dwattr $C$DW$T$279, DW_AT_decl_line(0x30)
.dwattr $C$DW$T$279, DW_AT_decl_column(0x1a)
$C$DW$T$280 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$280, DW_AT_name("__uintmax_t")
.dwattr $C$DW$T$280, DW_AT_type(*$C$DW$T$270)
.dwattr $C$DW$T$280, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$280, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$280, DW_AT_decl_line(0x67)
.dwattr $C$DW$T$280, DW_AT_decl_column(0x14)
$C$DW$T$281 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$281, DW_AT_name("__rman_res_t")
.dwattr $C$DW$T$281, DW_AT_type(*$C$DW$T$280)
.dwattr $C$DW$T$281, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$281, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$281, DW_AT_decl_line(0x8f)
.dwattr $C$DW$T$281, DW_AT_decl_column(0x19)
$C$DW$T$282 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$282, DW_AT_name("uintmax_t")
.dwattr $C$DW$T$282, DW_AT_type(*$C$DW$T$280)
.dwattr $C$DW$T$282, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$282, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$282, DW_AT_decl_line(0x58)
.dwattr $C$DW$T$282, DW_AT_decl_column(0x16)
$C$DW$T$283 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$283, DW_AT_name("uint64_t")
.dwattr $C$DW$T$283, DW_AT_type(*$C$DW$T$270)
.dwattr $C$DW$T$283, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$283, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_stdint.h")
.dwattr $C$DW$T$283, DW_AT_decl_line(0x47)
.dwattr $C$DW$T$283, DW_AT_decl_column(0x15)
$C$DW$T$16 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$16, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$16, DW_AT_name("float")
.dwattr $C$DW$T$16, DW_AT_byte_size(0x04)
$C$DW$T$284 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$284, DW_AT_name("__float_t")
.dwattr $C$DW$T$284, DW_AT_type(*$C$DW$T$16)
.dwattr $C$DW$T$284, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$284, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$284, DW_AT_decl_line(0x50)
.dwattr $C$DW$T$284, DW_AT_decl_column(0x10)
$C$DW$T$17 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$17, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$17, DW_AT_name("double")
.dwattr $C$DW$T$17, DW_AT_byte_size(0x08)
$C$DW$T$285 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$285, DW_AT_name("__double_t")
.dwattr $C$DW$T$285, DW_AT_type(*$C$DW$T$17)
.dwattr $C$DW$T$285, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$285, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$285, DW_AT_decl_line(0x4f)
.dwattr $C$DW$T$285, DW_AT_decl_column(0x11)
$C$DW$T$18 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$18, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$18, DW_AT_name("long double")
.dwattr $C$DW$T$18, DW_AT_byte_size(0x08)
$C$DW$T$286 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$286, DW_AT_name("max_align_t")
.dwattr $C$DW$T$286, DW_AT_type(*$C$DW$T$18)
.dwattr $C$DW$T$286, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$286, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stddef.h")
.dwattr $C$DW$T$286, DW_AT_decl_line(0x4f)
.dwattr $C$DW$T$286, DW_AT_decl_column(0x15)
$C$DW$T$77 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$77, DW_AT_type(*$C$DW$T$6)
$C$DW$T$78 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$78, DW_AT_type(*$C$DW$T$77)
.dwattr $C$DW$T$78, DW_AT_address_class(0x20)
$C$DW$T$79 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$79, DW_AT_type(*$C$DW$T$78)
$C$DW$T$19 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$19, DW_AT_name("__mq")
.dwattr $C$DW$T$19, DW_AT_declaration
.dwattr $C$DW$T$19, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$19, DW_AT_decl_line(0x47)
.dwattr $C$DW$T$19, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$19
$C$DW$T$287 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$287, DW_AT_type(*$C$DW$T$19)
.dwattr $C$DW$T$287, DW_AT_address_class(0x20)
$C$DW$T$288 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$288, DW_AT_name("__mqd_t")
.dwattr $C$DW$T$288, DW_AT_type(*$C$DW$T$287)
.dwattr $C$DW$T$288, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$288, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$288, DW_AT_decl_line(0x47)
.dwattr $C$DW$T$288, DW_AT_decl_column(0x16)
$C$DW$T$20 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$20, DW_AT_name("__timer")
.dwattr $C$DW$T$20, DW_AT_declaration
.dwattr $C$DW$T$20, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$20, DW_AT_decl_line(0x46)
.dwattr $C$DW$T$20, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$20
$C$DW$T$289 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$289, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$T$289, DW_AT_address_class(0x20)
$C$DW$T$290 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$290, DW_AT_name("__timer_t")
.dwattr $C$DW$T$290, DW_AT_type(*$C$DW$T$289)
.dwattr $C$DW$T$290, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$290, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/sys/_types.h")
.dwattr $C$DW$T$290, DW_AT_decl_line(0x46)
.dwattr $C$DW$T$290, DW_AT_decl_column(0x19)
$C$DW$T$38 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$38, DW_AT_name("__va_list_t")
.dwattr $C$DW$T$38, DW_AT_byte_size(0x04)
$C$DW$372 .dwtag DW_TAG_member
.dwattr $C$DW$372, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$372, DW_AT_name("__ap")
.dwattr $C$DW$372, DW_AT_TI_symbol_name("__ap")
.dwattr $C$DW$372, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$372, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$372, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$372, DW_AT_decl_line(0x88)
.dwattr $C$DW$372, DW_AT_decl_column(0x0c)
.dwattr $C$DW$T$38, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$38, DW_AT_decl_line(0x87)
.dwattr $C$DW$T$38, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$38
$C$DW$T$291 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$291, DW_AT_name("__va_list")
.dwattr $C$DW$T$291, DW_AT_type(*$C$DW$T$38)
.dwattr $C$DW$T$291, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$291, DW_AT_decl_file("/home/pola/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/machine/_types.h")
.dwattr $C$DW$T$291, DW_AT_decl_line(0x89)
.dwattr $C$DW$T$291, DW_AT_decl_column(0x03)
$C$DW$T$21 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$21, DW_AT_name("tskTaskControlBlock")
.dwattr $C$DW$T$21, DW_AT_declaration
.dwattr $C$DW$T$21, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$21, DW_AT_decl_line(0x3d)
.dwattr $C$DW$T$21, DW_AT_decl_column(0x08)
.dwendtag $C$DW$T$21
$C$DW$T$34 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$34, DW_AT_type(*$C$DW$T$21)
.dwattr $C$DW$T$34, DW_AT_address_class(0x20)
$C$DW$T$35 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$35, DW_AT_name("TaskHandle_t")
.dwattr $C$DW$T$35, DW_AT_type(*$C$DW$T$34)
.dwattr $C$DW$T$35, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$35, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$35, DW_AT_decl_line(0x3e)
.dwattr $C$DW$T$35, DW_AT_decl_column(0x25)
$C$DW$T$36 .dwtag DW_TAG_volatile_type
.dwattr $C$DW$T$36, DW_AT_type(*$C$DW$T$35)
$C$DW$T$43 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$43, DW_AT_name("xLIST")
.dwattr $C$DW$T$43, DW_AT_byte_size(0x14)
$C$DW$373 .dwtag DW_TAG_member
.dwattr $C$DW$373, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$373, DW_AT_name("uxNumberOfItems")
.dwattr $C$DW$373, DW_AT_TI_symbol_name("uxNumberOfItems")
.dwattr $C$DW$373, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$373, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$373, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$373, DW_AT_decl_line(0xa7)
.dwattr $C$DW$373, DW_AT_decl_column(0x17)
$C$DW$374 .dwtag DW_TAG_member
.dwattr $C$DW$374, DW_AT_type(*$C$DW$T$41)
.dwattr $C$DW$374, DW_AT_name("pxIndex")
.dwattr $C$DW$374, DW_AT_TI_symbol_name("pxIndex")
.dwattr $C$DW$374, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$374, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$374, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$374, DW_AT_decl_line(0xa8)
.dwattr $C$DW$374, DW_AT_decl_column(0x23)
$C$DW$375 .dwtag DW_TAG_member
.dwattr $C$DW$375, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$375, DW_AT_name("xListEnd")
.dwattr $C$DW$375, DW_AT_TI_symbol_name("xListEnd")
.dwattr $C$DW$375, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$375, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$375, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$375, DW_AT_decl_line(0xa9)
.dwattr $C$DW$375, DW_AT_decl_column(0x11)
.dwattr $C$DW$T$43, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$T$43, DW_AT_decl_line(0xa4)
.dwattr $C$DW$T$43, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$43
$C$DW$T$294 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$294, DW_AT_name("List_t")
.dwattr $C$DW$T$294, DW_AT_type(*$C$DW$T$43)
.dwattr $C$DW$T$294, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$294, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$T$294, DW_AT_decl_line(0xab)
.dwattr $C$DW$T$294, DW_AT_decl_column(0x03)
$C$DW$T$48 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$48, DW_AT_type(*$C$DW$T$43)
.dwattr $C$DW$T$48, DW_AT_address_class(0x20)
$C$DW$T$49 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$49, DW_AT_name("xLIST_ITEM")
.dwattr $C$DW$T$49, DW_AT_byte_size(0x14)
$C$DW$376 .dwtag DW_TAG_member
.dwattr $C$DW$376, DW_AT_type(*$C$DW$T$46)
.dwattr $C$DW$376, DW_AT_name("xItemValue")
.dwattr $C$DW$376, DW_AT_TI_symbol_name("xItemValue")
.dwattr $C$DW$376, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$376, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$376, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$376, DW_AT_decl_line(0x8f)
.dwattr $C$DW$376, DW_AT_decl_column(0x21)
$C$DW$377 .dwtag DW_TAG_member
.dwattr $C$DW$377, DW_AT_type(*$C$DW$T$47)
.dwattr $C$DW$377, DW_AT_name("pxNext")
.dwattr $C$DW$377, DW_AT_TI_symbol_name("pxNext")
.dwattr $C$DW$377, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$377, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$377, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$377, DW_AT_decl_line(0x90)
.dwattr $C$DW$377, DW_AT_decl_column(0x2a)
$C$DW$378 .dwtag DW_TAG_member
.dwattr $C$DW$378, DW_AT_type(*$C$DW$T$47)
.dwattr $C$DW$378, DW_AT_name("pxPrevious")
.dwattr $C$DW$378, DW_AT_TI_symbol_name("pxPrevious")
.dwattr $C$DW$378, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$378, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$378, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$378, DW_AT_decl_line(0x91)
.dwattr $C$DW$378, DW_AT_decl_column(0x2a)
$C$DW$379 .dwtag DW_TAG_member
.dwattr $C$DW$379, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$379, DW_AT_name("pvOwner")
.dwattr $C$DW$379, DW_AT_TI_symbol_name("pvOwner")
.dwattr $C$DW$379, DW_AT_data_member_location[DW_OP_plus_uconst 0xc]
.dwattr $C$DW$379, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$379, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$379, DW_AT_decl_line(0x92)
.dwattr $C$DW$379, DW_AT_decl_column(0x09)
$C$DW$380 .dwtag DW_TAG_member
.dwattr $C$DW$380, DW_AT_type(*$C$DW$T$48)
.dwattr $C$DW$380, DW_AT_name("pvContainer")
.dwattr $C$DW$380, DW_AT_TI_symbol_name("pvContainer")
.dwattr $C$DW$380, DW_AT_data_member_location[DW_OP_plus_uconst 0x10]
.dwattr $C$DW$380, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$380, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$380, DW_AT_decl_line(0x93)
.dwattr $C$DW$380, DW_AT_decl_column(0x25)
.dwattr $C$DW$T$49, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$T$49, DW_AT_decl_line(0x8c)
.dwattr $C$DW$T$49, DW_AT_decl_column(0x08)
.dwendtag $C$DW$T$49
$C$DW$T$40 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$40, DW_AT_name("ListItem_t")
.dwattr $C$DW$T$40, DW_AT_type(*$C$DW$T$49)
.dwattr $C$DW$T$40, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$40, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$T$40, DW_AT_decl_line(0x96)
.dwattr $C$DW$T$40, DW_AT_decl_column(0x1b)
$C$DW$T$41 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$41, DW_AT_type(*$C$DW$T$40)
.dwattr $C$DW$T$41, DW_AT_address_class(0x20)
$C$DW$T$47 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$47, DW_AT_type(*$C$DW$T$49)
.dwattr $C$DW$T$47, DW_AT_address_class(0x20)
$C$DW$T$50 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$50, DW_AT_name("xMEMORY_REGION")
.dwattr $C$DW$T$50, DW_AT_byte_size(0x0c)
$C$DW$381 .dwtag DW_TAG_member
.dwattr $C$DW$381, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$381, DW_AT_name("pvBaseAddress")
.dwattr $C$DW$381, DW_AT_TI_symbol_name("pvBaseAddress")
.dwattr $C$DW$381, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$381, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$381, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$381, DW_AT_decl_line(0x69)
.dwattr $C$DW$381, DW_AT_decl_column(0x08)
$C$DW$382 .dwtag DW_TAG_member
.dwattr $C$DW$382, DW_AT_type(*$C$DW$T$45)
.dwattr $C$DW$382, DW_AT_name("ulLengthInBytes")
.dwattr $C$DW$382, DW_AT_TI_symbol_name("ulLengthInBytes")
.dwattr $C$DW$382, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$382, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$382, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$382, DW_AT_decl_line(0x6a)
.dwattr $C$DW$382, DW_AT_decl_column(0x0b)
$C$DW$383 .dwtag DW_TAG_member
.dwattr $C$DW$383, DW_AT_type(*$C$DW$T$45)
.dwattr $C$DW$383, DW_AT_name("ulParameters")
.dwattr $C$DW$383, DW_AT_TI_symbol_name("ulParameters")
.dwattr $C$DW$383, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$383, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$383, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$383, DW_AT_decl_line(0x6b)
.dwattr $C$DW$383, DW_AT_decl_column(0x0b)
.dwattr $C$DW$T$50, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$50, DW_AT_decl_line(0x67)
.dwattr $C$DW$T$50, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$50
$C$DW$T$84 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$84, DW_AT_name("MemoryRegion_t")
.dwattr $C$DW$T$84, DW_AT_type(*$C$DW$T$50)
.dwattr $C$DW$T$84, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$84, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$84, DW_AT_decl_line(0x6c)
.dwattr $C$DW$T$84, DW_AT_decl_column(0x03)
$C$DW$T$85 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$85, DW_AT_type(*$C$DW$T$84)
.dwattr $C$DW$T$85, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$85, DW_AT_byte_size(0x0c)
$C$DW$384 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$384, DW_AT_upper_bound(0x00)
.dwendtag $C$DW$T$85
$C$DW$T$51 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$51, DW_AT_name("xMINI_LIST_ITEM")
.dwattr $C$DW$T$51, DW_AT_byte_size(0x0c)
$C$DW$385 .dwtag DW_TAG_member
.dwattr $C$DW$385, DW_AT_type(*$C$DW$T$46)
.dwattr $C$DW$385, DW_AT_name("xItemValue")
.dwattr $C$DW$385, DW_AT_TI_symbol_name("xItemValue")
.dwattr $C$DW$385, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$385, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$385, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$385, DW_AT_decl_line(0x9b)
.dwattr $C$DW$385, DW_AT_decl_column(0x21)
$C$DW$386 .dwtag DW_TAG_member
.dwattr $C$DW$386, DW_AT_type(*$C$DW$T$47)
.dwattr $C$DW$386, DW_AT_name("pxNext")
.dwattr $C$DW$386, DW_AT_TI_symbol_name("pxNext")
.dwattr $C$DW$386, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$386, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$386, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$386, DW_AT_decl_line(0x9c)
.dwattr $C$DW$386, DW_AT_decl_column(0x2a)
$C$DW$387 .dwtag DW_TAG_member
.dwattr $C$DW$387, DW_AT_type(*$C$DW$T$47)
.dwattr $C$DW$387, DW_AT_name("pxPrevious")
.dwattr $C$DW$387, DW_AT_TI_symbol_name("pxPrevious")
.dwattr $C$DW$387, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$387, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$387, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$387, DW_AT_decl_line(0x9d)
.dwattr $C$DW$387, DW_AT_decl_column(0x2a)
.dwattr $C$DW$T$51, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$T$51, DW_AT_decl_line(0x98)
.dwattr $C$DW$T$51, DW_AT_decl_column(0x08)
.dwendtag $C$DW$T$51
$C$DW$T$42 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$42, DW_AT_name("MiniListItem_t")
.dwattr $C$DW$T$42, DW_AT_type(*$C$DW$T$51)
.dwattr $C$DW$T$42, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$42, DW_AT_decl_file("../OS/list.h")
.dwattr $C$DW$T$42, DW_AT_decl_line(0x9f)
.dwattr $C$DW$T$42, DW_AT_decl_column(0x20)
$C$DW$T$53 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$53, DW_AT_name("xSTATIC_EVENT_GROUP")
.dwattr $C$DW$T$53, DW_AT_byte_size(0x1c)
$C$DW$388 .dwtag DW_TAG_member
.dwattr $C$DW$388, DW_AT_type(*$C$DW$T$46)
.dwattr $C$DW$388, DW_AT_name("xDummy1")
.dwattr $C$DW$388, DW_AT_TI_symbol_name("xDummy1")
.dwattr $C$DW$388, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$388, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$388, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$388, DW_AT_decl_line(0x455)
.dwattr $C$DW$388, DW_AT_decl_column(0x0d)
$C$DW$389 .dwtag DW_TAG_member
.dwattr $C$DW$389, DW_AT_type(*$C$DW$T$52)
.dwattr $C$DW$389, DW_AT_name("xDummy2")
.dwattr $C$DW$389, DW_AT_TI_symbol_name("xDummy2")
.dwattr $C$DW$389, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$389, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$389, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$389, DW_AT_decl_line(0x456)
.dwattr $C$DW$389, DW_AT_decl_column(0x0f)
$C$DW$390 .dwtag DW_TAG_member
.dwattr $C$DW$390, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$390, DW_AT_name("uxDummy3")
.dwattr $C$DW$390, DW_AT_TI_symbol_name("uxDummy3")
.dwattr $C$DW$390, DW_AT_data_member_location[DW_OP_plus_uconst 0x18]
.dwattr $C$DW$390, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$390, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$390, DW_AT_decl_line(0x459)
.dwattr $C$DW$390, DW_AT_decl_column(0x0f)
.dwattr $C$DW$T$53, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$53, DW_AT_decl_line(0x453)
.dwattr $C$DW$T$53, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$53
$C$DW$T$295 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$295, DW_AT_name("StaticEventGroup_t")
.dwattr $C$DW$T$295, DW_AT_type(*$C$DW$T$53)
.dwattr $C$DW$T$295, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$295, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$295, DW_AT_decl_line(0x460)
.dwattr $C$DW$T$295, DW_AT_decl_column(0x03)
$C$DW$T$55 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$55, DW_AT_name("xSTATIC_LIST")
.dwattr $C$DW$T$55, DW_AT_byte_size(0x14)
$C$DW$391 .dwtag DW_TAG_member
.dwattr $C$DW$391, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$391, DW_AT_name("uxDummy1")
.dwattr $C$DW$391, DW_AT_TI_symbol_name("uxDummy1")
.dwattr $C$DW$391, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$391, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$391, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$391, DW_AT_decl_line(0x3d5)
.dwattr $C$DW$391, DW_AT_decl_column(0x0e)
$C$DW$392 .dwtag DW_TAG_member
.dwattr $C$DW$392, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$392, DW_AT_name("pvDummy2")
.dwattr $C$DW$392, DW_AT_TI_symbol_name("pvDummy2")
.dwattr $C$DW$392, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$392, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$392, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$392, DW_AT_decl_line(0x3d6)
.dwattr $C$DW$392, DW_AT_decl_column(0x08)
$C$DW$393 .dwtag DW_TAG_member
.dwattr $C$DW$393, DW_AT_type(*$C$DW$T$54)
.dwattr $C$DW$393, DW_AT_name("xDummy3")
.dwattr $C$DW$393, DW_AT_TI_symbol_name("xDummy3")
.dwattr $C$DW$393, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$393, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$393, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$393, DW_AT_decl_line(0x3d7)
.dwattr $C$DW$393, DW_AT_decl_column(0x17)
.dwattr $C$DW$T$55, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$55, DW_AT_decl_line(0x3d3)
.dwattr $C$DW$T$55, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$55
$C$DW$T$52 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$52, DW_AT_name("StaticList_t")
.dwattr $C$DW$T$52, DW_AT_type(*$C$DW$T$55)
.dwattr $C$DW$T$52, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$52, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$52, DW_AT_decl_line(0x3d8)
.dwattr $C$DW$T$52, DW_AT_decl_column(0x03)
$C$DW$T$61 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$61, DW_AT_type(*$C$DW$T$52)
.dwattr $C$DW$T$61, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$61, DW_AT_byte_size(0x28)
$C$DW$394 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$394, DW_AT_upper_bound(0x01)
.dwendtag $C$DW$T$61
$C$DW$T$57 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$57, DW_AT_name("xSTATIC_LIST_ITEM")
.dwattr $C$DW$T$57, DW_AT_byte_size(0x14)
$C$DW$395 .dwtag DW_TAG_member
.dwattr $C$DW$395, DW_AT_type(*$C$DW$T$46)
.dwattr $C$DW$395, DW_AT_name("xDummy1")
.dwattr $C$DW$395, DW_AT_TI_symbol_name("xDummy1")
.dwattr $C$DW$395, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$395, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$395, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$395, DW_AT_decl_line(0x3c5)
.dwattr $C$DW$395, DW_AT_decl_column(0x0d)
$C$DW$396 .dwtag DW_TAG_member
.dwattr $C$DW$396, DW_AT_type(*$C$DW$T$56)
.dwattr $C$DW$396, DW_AT_name("pvDummy2")
.dwattr $C$DW$396, DW_AT_TI_symbol_name("pvDummy2")
.dwattr $C$DW$396, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$396, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$396, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$396, DW_AT_decl_line(0x3c6)
.dwattr $C$DW$396, DW_AT_decl_column(0x08)
.dwattr $C$DW$T$57, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$57, DW_AT_decl_line(0x3c3)
.dwattr $C$DW$T$57, DW_AT_decl_column(0x08)
.dwendtag $C$DW$T$57
$C$DW$T$67 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$67, DW_AT_name("StaticListItem_t")
.dwattr $C$DW$T$67, DW_AT_type(*$C$DW$T$57)
.dwattr $C$DW$T$67, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$67, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$67, DW_AT_decl_line(0x3c8)
.dwattr $C$DW$T$67, DW_AT_decl_column(0x22)
$C$DW$T$68 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$68, DW_AT_type(*$C$DW$T$67)
.dwattr $C$DW$T$68, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$68, DW_AT_byte_size(0x28)
$C$DW$397 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$397, DW_AT_upper_bound(0x01)
.dwendtag $C$DW$T$68
$C$DW$T$59 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$59, DW_AT_name("xSTATIC_MINI_LIST_ITEM")
.dwattr $C$DW$T$59, DW_AT_byte_size(0x0c)
$C$DW$398 .dwtag DW_TAG_member
.dwattr $C$DW$398, DW_AT_type(*$C$DW$T$46)
.dwattr $C$DW$398, DW_AT_name("xDummy1")
.dwattr $C$DW$398, DW_AT_TI_symbol_name("xDummy1")
.dwattr $C$DW$398, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$398, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$398, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$398, DW_AT_decl_line(0x3cd)
.dwattr $C$DW$398, DW_AT_decl_column(0x0d)
$C$DW$399 .dwtag DW_TAG_member
.dwattr $C$DW$399, DW_AT_type(*$C$DW$T$58)
.dwattr $C$DW$399, DW_AT_name("pvDummy2")
.dwattr $C$DW$399, DW_AT_TI_symbol_name("pvDummy2")
.dwattr $C$DW$399, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$399, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$399, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$399, DW_AT_decl_line(0x3ce)
.dwattr $C$DW$399, DW_AT_decl_column(0x08)
.dwattr $C$DW$T$59, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$59, DW_AT_decl_line(0x3cb)
.dwattr $C$DW$T$59, DW_AT_decl_column(0x08)
.dwendtag $C$DW$T$59
$C$DW$T$54 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$54, DW_AT_name("StaticMiniListItem_t")
.dwattr $C$DW$T$54, DW_AT_type(*$C$DW$T$59)
.dwattr $C$DW$T$54, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$54, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$54, DW_AT_decl_line(0x3d0)
.dwattr $C$DW$T$54, DW_AT_decl_column(0x27)
$C$DW$T$64 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$64, DW_AT_name("xSTATIC_QUEUE")
.dwattr $C$DW$T$64, DW_AT_byte_size(0x50)
$C$DW$400 .dwtag DW_TAG_member
.dwattr $C$DW$400, DW_AT_type(*$C$DW$T$60)
.dwattr $C$DW$400, DW_AT_name("pvDummy1")
.dwattr $C$DW$400, DW_AT_TI_symbol_name("pvDummy1")
.dwattr $C$DW$400, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$400, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$400, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$400, DW_AT_decl_line(0x429)
.dwattr $C$DW$400, DW_AT_decl_column(0x08)
$C$DW$401 .dwtag DW_TAG_member
.dwattr $C$DW$401, DW_AT_type(*$C$DW$T$27)
.dwattr $C$DW$401, DW_AT_name("u")
.dwattr $C$DW$401, DW_AT_TI_symbol_name("u")
.dwattr $C$DW$401, DW_AT_data_member_location[DW_OP_plus_uconst 0xc]
.dwattr $C$DW$401, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$401, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$401, DW_AT_decl_line(0x42f)
.dwattr $C$DW$401, DW_AT_decl_column(0x04)
$C$DW$402 .dwtag DW_TAG_member
.dwattr $C$DW$402, DW_AT_type(*$C$DW$T$61)
.dwattr $C$DW$402, DW_AT_name("xDummy3")
.dwattr $C$DW$402, DW_AT_TI_symbol_name("xDummy3")
.dwattr $C$DW$402, DW_AT_data_member_location[DW_OP_plus_uconst 0x10]
.dwattr $C$DW$402, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$402, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$402, DW_AT_decl_line(0x431)
.dwattr $C$DW$402, DW_AT_decl_column(0x0f)
$C$DW$403 .dwtag DW_TAG_member
.dwattr $C$DW$403, DW_AT_type(*$C$DW$T$62)
.dwattr $C$DW$403, DW_AT_name("uxDummy4")
.dwattr $C$DW$403, DW_AT_TI_symbol_name("uxDummy4")
.dwattr $C$DW$403, DW_AT_data_member_location[DW_OP_plus_uconst 0x38]
.dwattr $C$DW$403, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$403, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$403, DW_AT_decl_line(0x432)
.dwattr $C$DW$403, DW_AT_decl_column(0x0e)
$C$DW$404 .dwtag DW_TAG_member
.dwattr $C$DW$404, DW_AT_type(*$C$DW$T$63)
.dwattr $C$DW$404, DW_AT_name("ucDummy5")
.dwattr $C$DW$404, DW_AT_TI_symbol_name("ucDummy5")
.dwattr $C$DW$404, DW_AT_data_member_location[DW_OP_plus_uconst 0x44]
.dwattr $C$DW$404, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$404, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$404, DW_AT_decl_line(0x433)
.dwattr $C$DW$404, DW_AT_decl_column(0x0a)
$C$DW$405 .dwtag DW_TAG_member
.dwattr $C$DW$405, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$405, DW_AT_name("uxDummy8")
.dwattr $C$DW$405, DW_AT_TI_symbol_name("uxDummy8")
.dwattr $C$DW$405, DW_AT_data_member_location[DW_OP_plus_uconst 0x48]
.dwattr $C$DW$405, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$405, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$405, DW_AT_decl_line(0x43e)
.dwattr $C$DW$405, DW_AT_decl_column(0x0f)
$C$DW$406 .dwtag DW_TAG_member
.dwattr $C$DW$406, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$406, DW_AT_name("ucDummy9")
.dwattr $C$DW$406, DW_AT_TI_symbol_name("ucDummy9")
.dwattr $C$DW$406, DW_AT_data_member_location[DW_OP_plus_uconst 0x4c]
.dwattr $C$DW$406, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$406, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$406, DW_AT_decl_line(0x43f)
.dwattr $C$DW$406, DW_AT_decl_column(0x0b)
.dwattr $C$DW$T$64, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$64, DW_AT_decl_line(0x427)
.dwattr $C$DW$T$64, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$64
$C$DW$T$296 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$296, DW_AT_name("StaticQueue_t")
.dwattr $C$DW$T$296, DW_AT_type(*$C$DW$T$64)
.dwattr $C$DW$T$296, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$296, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$296, DW_AT_decl_line(0x442)
.dwattr $C$DW$T$296, DW_AT_decl_column(0x03)
$C$DW$T$297 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$297, DW_AT_name("StaticSemaphore_t")
.dwattr $C$DW$T$297, DW_AT_type(*$C$DW$T$296)
.dwattr $C$DW$T$297, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$297, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$297, DW_AT_decl_line(0x443)
.dwattr $C$DW$T$297, DW_AT_decl_column(0x17)
$C$DW$T$66 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$66, DW_AT_name("xSTATIC_STREAM_BUFFER")
.dwattr $C$DW$T$66, DW_AT_byte_size(0x24)
$C$DW$407 .dwtag DW_TAG_member
.dwattr $C$DW$407, DW_AT_type(*$C$DW$T$65)
.dwattr $C$DW$407, DW_AT_name("uxDummy1")
.dwattr $C$DW$407, DW_AT_TI_symbol_name("uxDummy1")
.dwattr $C$DW$407, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$407, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$407, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$407, DW_AT_decl_line(0x492)
.dwattr $C$DW$407, DW_AT_decl_column(0x09)
$C$DW$408 .dwtag DW_TAG_member
.dwattr $C$DW$408, DW_AT_type(*$C$DW$T$60)
.dwattr $C$DW$408, DW_AT_name("pvDummy2")
.dwattr $C$DW$408, DW_AT_TI_symbol_name("pvDummy2")
.dwattr $C$DW$408, DW_AT_data_member_location[DW_OP_plus_uconst 0x10]
.dwattr $C$DW$408, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$408, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$408, DW_AT_decl_line(0x493)
.dwattr $C$DW$408, DW_AT_decl_column(0x09)
$C$DW$409 .dwtag DW_TAG_member
.dwattr $C$DW$409, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$409, DW_AT_name("ucDummy3")
.dwattr $C$DW$409, DW_AT_TI_symbol_name("ucDummy3")
.dwattr $C$DW$409, DW_AT_data_member_location[DW_OP_plus_uconst 0x1c]
.dwattr $C$DW$409, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$409, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$409, DW_AT_decl_line(0x494)
.dwattr $C$DW$409, DW_AT_decl_column(0x0a)
$C$DW$410 .dwtag DW_TAG_member
.dwattr $C$DW$410, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$410, DW_AT_name("uxDummy4")
.dwattr $C$DW$410, DW_AT_TI_symbol_name("uxDummy4")
.dwattr $C$DW$410, DW_AT_data_member_location[DW_OP_plus_uconst 0x20]
.dwattr $C$DW$410, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$410, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$410, DW_AT_decl_line(0x496)
.dwattr $C$DW$410, DW_AT_decl_column(0x0f)
.dwattr $C$DW$T$66, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$66, DW_AT_decl_line(0x490)
.dwattr $C$DW$T$66, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$66
$C$DW$T$110 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$110, DW_AT_name("StaticStreamBuffer_t")
.dwattr $C$DW$T$110, DW_AT_type(*$C$DW$T$66)
.dwattr $C$DW$T$110, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$110, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$110, DW_AT_decl_line(0x498)
.dwattr $C$DW$T$110, DW_AT_decl_column(0x03)
$C$DW$T$298 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$298, DW_AT_name("StaticMessageBuffer_t")
.dwattr $C$DW$T$298, DW_AT_type(*$C$DW$T$110)
.dwattr $C$DW$T$298, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$298, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$298, DW_AT_decl_line(0x49b)
.dwattr $C$DW$T$298, DW_AT_decl_column(0x1e)
$C$DW$T$111 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$111, DW_AT_type(*$C$DW$T$110)
.dwattr $C$DW$T$111, DW_AT_address_class(0x20)
$C$DW$T$112 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$112, DW_AT_type(*$C$DW$T$111)
$C$DW$T$71 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$71, DW_AT_name("xSTATIC_TCB")
.dwattr $C$DW$T$71, DW_AT_byte_size(0x58)
$C$DW$411 .dwtag DW_TAG_member
.dwattr $C$DW$411, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$411, DW_AT_name("pxDummy1")
.dwattr $C$DW$411, DW_AT_TI_symbol_name("pxDummy1")
.dwattr $C$DW$411, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$411, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$411, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$411, DW_AT_decl_line(0x3e9)
.dwattr $C$DW$411, DW_AT_decl_column(0x0b)
$C$DW$412 .dwtag DW_TAG_member
.dwattr $C$DW$412, DW_AT_type(*$C$DW$T$68)
.dwattr $C$DW$412, DW_AT_name("xDummy3")
.dwattr $C$DW$412, DW_AT_TI_symbol_name("xDummy3")
.dwattr $C$DW$412, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$412, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$412, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$412, DW_AT_decl_line(0x3ed)
.dwattr $C$DW$412, DW_AT_decl_column(0x13)
$C$DW$413 .dwtag DW_TAG_member
.dwattr $C$DW$413, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$413, DW_AT_name("uxDummy5")
.dwattr $C$DW$413, DW_AT_TI_symbol_name("uxDummy5")
.dwattr $C$DW$413, DW_AT_data_member_location[DW_OP_plus_uconst 0x2c]
.dwattr $C$DW$413, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$413, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$413, DW_AT_decl_line(0x3ee)
.dwattr $C$DW$413, DW_AT_decl_column(0x10)
$C$DW$414 .dwtag DW_TAG_member
.dwattr $C$DW$414, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$414, DW_AT_name("pxDummy6")
.dwattr $C$DW$414, DW_AT_TI_symbol_name("pxDummy6")
.dwattr $C$DW$414, DW_AT_data_member_location[DW_OP_plus_uconst 0x30]
.dwattr $C$DW$414, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$414, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$414, DW_AT_decl_line(0x3ef)
.dwattr $C$DW$414, DW_AT_decl_column(0x0b)
$C$DW$415 .dwtag DW_TAG_member
.dwattr $C$DW$415, DW_AT_type(*$C$DW$T$69)
.dwattr $C$DW$415, DW_AT_name("ucDummy7")
.dwattr $C$DW$415, DW_AT_TI_symbol_name("ucDummy7")
.dwattr $C$DW$415, DW_AT_data_member_location[DW_OP_plus_uconst 0x34]
.dwattr $C$DW$415, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$415, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$415, DW_AT_decl_line(0x3f0)
.dwattr $C$DW$415, DW_AT_decl_column(0x0d)
$C$DW$416 .dwtag DW_TAG_member
.dwattr $C$DW$416, DW_AT_type(*$C$DW$T$70)
.dwattr $C$DW$416, DW_AT_name("uxDummy10")
.dwattr $C$DW$416, DW_AT_TI_symbol_name("uxDummy10")
.dwattr $C$DW$416, DW_AT_data_member_location[DW_OP_plus_uconst 0x40]
.dwattr $C$DW$416, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$416, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$416, DW_AT_decl_line(0x3f8)
.dwattr $C$DW$416, DW_AT_decl_column(0x10)
$C$DW$417 .dwtag DW_TAG_member
.dwattr $C$DW$417, DW_AT_type(*$C$DW$T$70)
.dwattr $C$DW$417, DW_AT_name("uxDummy12")
.dwattr $C$DW$417, DW_AT_TI_symbol_name("uxDummy12")
.dwattr $C$DW$417, DW_AT_data_member_location[DW_OP_plus_uconst 0x48]
.dwattr $C$DW$417, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$417, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$417, DW_AT_decl_line(0x3fb)
.dwattr $C$DW$417, DW_AT_decl_column(0x10)
$C$DW$418 .dwtag DW_TAG_member
.dwattr $C$DW$418, DW_AT_type(*$C$DW$T$45)
.dwattr $C$DW$418, DW_AT_name("ulDummy18")
.dwattr $C$DW$418, DW_AT_TI_symbol_name("ulDummy18")
.dwattr $C$DW$418, DW_AT_data_member_location[DW_OP_plus_uconst 0x50]
.dwattr $C$DW$418, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$418, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$418, DW_AT_decl_line(0x40a)
.dwattr $C$DW$418, DW_AT_decl_column(0x0e)
$C$DW$419 .dwtag DW_TAG_member
.dwattr $C$DW$419, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$419, DW_AT_name("ucDummy19")
.dwattr $C$DW$419, DW_AT_TI_symbol_name("ucDummy19")
.dwattr $C$DW$419, DW_AT_data_member_location[DW_OP_plus_uconst 0x54]
.dwattr $C$DW$419, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$419, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$419, DW_AT_decl_line(0x40b)
.dwattr $C$DW$419, DW_AT_decl_column(0x0d)
.dwattr $C$DW$T$71, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$71, DW_AT_decl_line(0x3e7)
.dwattr $C$DW$T$71, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$71
$C$DW$T$299 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$299, DW_AT_name("StaticTask_t")
.dwattr $C$DW$T$299, DW_AT_type(*$C$DW$T$71)
.dwattr $C$DW$T$299, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$299, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$299, DW_AT_decl_line(0x417)
.dwattr $C$DW$T$299, DW_AT_decl_column(0x03)
$C$DW$T$75 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$75, DW_AT_name("xSTATIC_TIMER")
.dwattr $C$DW$T$75, DW_AT_byte_size(0x2c)
$C$DW$420 .dwtag DW_TAG_member
.dwattr $C$DW$420, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$420, DW_AT_name("pvDummy1")
.dwattr $C$DW$420, DW_AT_TI_symbol_name("pvDummy1")
.dwattr $C$DW$420, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$420, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$420, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$420, DW_AT_decl_line(0x472)
.dwattr $C$DW$420, DW_AT_decl_column(0x0b)
$C$DW$421 .dwtag DW_TAG_member
.dwattr $C$DW$421, DW_AT_type(*$C$DW$T$67)
.dwattr $C$DW$421, DW_AT_name("xDummy2")
.dwattr $C$DW$421, DW_AT_TI_symbol_name("xDummy2")
.dwattr $C$DW$421, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$421, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$421, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$421, DW_AT_decl_line(0x473)
.dwattr $C$DW$421, DW_AT_decl_column(0x13)
$C$DW$422 .dwtag DW_TAG_member
.dwattr $C$DW$422, DW_AT_type(*$C$DW$T$46)
.dwattr $C$DW$422, DW_AT_name("xDummy3")
.dwattr $C$DW$422, DW_AT_TI_symbol_name("xDummy3")
.dwattr $C$DW$422, DW_AT_data_member_location[DW_OP_plus_uconst 0x18]
.dwattr $C$DW$422, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$422, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$422, DW_AT_decl_line(0x474)
.dwattr $C$DW$422, DW_AT_decl_column(0x0f)
$C$DW$423 .dwtag DW_TAG_member
.dwattr $C$DW$423, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$423, DW_AT_name("uxDummy4")
.dwattr $C$DW$423, DW_AT_TI_symbol_name("uxDummy4")
.dwattr $C$DW$423, DW_AT_data_member_location[DW_OP_plus_uconst 0x1c]
.dwattr $C$DW$423, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$423, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$423, DW_AT_decl_line(0x475)
.dwattr $C$DW$423, DW_AT_decl_column(0x10)
$C$DW$424 .dwtag DW_TAG_member
.dwattr $C$DW$424, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$424, DW_AT_name("pvDummy5")
.dwattr $C$DW$424, DW_AT_TI_symbol_name("pvDummy5")
.dwattr $C$DW$424, DW_AT_data_member_location[DW_OP_plus_uconst 0x20]
.dwattr $C$DW$424, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$424, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$424, DW_AT_decl_line(0x476)
.dwattr $C$DW$424, DW_AT_decl_column(0x0c)
$C$DW$425 .dwtag DW_TAG_member
.dwattr $C$DW$425, DW_AT_type(*$C$DW$T$74)
.dwattr $C$DW$425, DW_AT_name("pvDummy6")
.dwattr $C$DW$425, DW_AT_TI_symbol_name("pvDummy6")
.dwattr $C$DW$425, DW_AT_data_member_location[DW_OP_plus_uconst 0x24]
.dwattr $C$DW$425, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$425, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$425, DW_AT_decl_line(0x477)
.dwattr $C$DW$425, DW_AT_decl_column(0x12)
$C$DW$426 .dwtag DW_TAG_member
.dwattr $C$DW$426, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$426, DW_AT_name("uxDummy7")
.dwattr $C$DW$426, DW_AT_TI_symbol_name("uxDummy7")
.dwattr $C$DW$426, DW_AT_data_member_location[DW_OP_plus_uconst 0x28]
.dwattr $C$DW$426, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$426, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$426, DW_AT_decl_line(0x479)
.dwattr $C$DW$426, DW_AT_decl_column(0x10)
.dwattr $C$DW$T$75, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$75, DW_AT_decl_line(0x470)
.dwattr $C$DW$T$75, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$75
$C$DW$T$300 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$300, DW_AT_name("StaticTimer_t")
.dwattr $C$DW$T$300, DW_AT_type(*$C$DW$T$75)
.dwattr $C$DW$T$300, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$300, DW_AT_decl_file("../OS/FreeRTOS.h")
.dwattr $C$DW$T$300, DW_AT_decl_line(0x480)
.dwattr $C$DW$T$300, DW_AT_decl_column(0x03)
$C$DW$T$86 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$86, DW_AT_name("xTASK_PARAMETERS")
.dwattr $C$DW$T$86, DW_AT_byte_size(0x24)
$C$DW$427 .dwtag DW_TAG_member
.dwattr $C$DW$427, DW_AT_type(*$C$DW$T$74)
.dwattr $C$DW$427, DW_AT_name("pvTaskCode")
.dwattr $C$DW$427, DW_AT_TI_symbol_name("pvTaskCode")
.dwattr $C$DW$427, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$427, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$427, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$427, DW_AT_decl_line(0x73)
.dwattr $C$DW$427, DW_AT_decl_column(0x11)
$C$DW$428 .dwtag DW_TAG_member
.dwattr $C$DW$428, DW_AT_type(*$C$DW$T$79)
.dwattr $C$DW$428, DW_AT_name("pcName")
.dwattr $C$DW$428, DW_AT_TI_symbol_name("pcName")
.dwattr $C$DW$428, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$428, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$428, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$428, DW_AT_decl_line(0x74)
.dwattr $C$DW$428, DW_AT_decl_column(0x15)
$C$DW$429 .dwtag DW_TAG_member
.dwattr $C$DW$429, DW_AT_type(*$C$DW$T$81)
.dwattr $C$DW$429, DW_AT_name("usStackDepth")
.dwattr $C$DW$429, DW_AT_TI_symbol_name("usStackDepth")
.dwattr $C$DW$429, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$429, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$429, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$429, DW_AT_decl_line(0x75)
.dwattr $C$DW$429, DW_AT_decl_column(0x0b)
$C$DW$430 .dwtag DW_TAG_member
.dwattr $C$DW$430, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$430, DW_AT_name("pvParameters")
.dwattr $C$DW$430, DW_AT_TI_symbol_name("pvParameters")
.dwattr $C$DW$430, DW_AT_data_member_location[DW_OP_plus_uconst 0xc]
.dwattr $C$DW$430, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$430, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$430, DW_AT_decl_line(0x76)
.dwattr $C$DW$430, DW_AT_decl_column(0x08)
$C$DW$431 .dwtag DW_TAG_member
.dwattr $C$DW$431, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$431, DW_AT_name("uxPriority")
.dwattr $C$DW$431, DW_AT_TI_symbol_name("uxPriority")
.dwattr $C$DW$431, DW_AT_data_member_location[DW_OP_plus_uconst 0x10]
.dwattr $C$DW$431, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$431, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$431, DW_AT_decl_line(0x77)
.dwattr $C$DW$431, DW_AT_decl_column(0x0e)
$C$DW$432 .dwtag DW_TAG_member
.dwattr $C$DW$432, DW_AT_type(*$C$DW$T$83)
.dwattr $C$DW$432, DW_AT_name("puxStackBuffer")
.dwattr $C$DW$432, DW_AT_TI_symbol_name("puxStackBuffer")
.dwattr $C$DW$432, DW_AT_data_member_location[DW_OP_plus_uconst 0x14]
.dwattr $C$DW$432, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$432, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$432, DW_AT_decl_line(0x78)
.dwattr $C$DW$432, DW_AT_decl_column(0x0f)
$C$DW$433 .dwtag DW_TAG_member
.dwattr $C$DW$433, DW_AT_type(*$C$DW$T$85)
.dwattr $C$DW$433, DW_AT_name("xRegions")
.dwattr $C$DW$433, DW_AT_TI_symbol_name("xRegions")
.dwattr $C$DW$433, DW_AT_data_member_location[DW_OP_plus_uconst 0x18]
.dwattr $C$DW$433, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$433, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$433, DW_AT_decl_line(0x79)
.dwattr $C$DW$433, DW_AT_decl_column(0x11)
.dwattr $C$DW$T$86, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$86, DW_AT_decl_line(0x71)
.dwattr $C$DW$T$86, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$86
$C$DW$T$301 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$301, DW_AT_name("TaskParameters_t")
.dwattr $C$DW$T$301, DW_AT_type(*$C$DW$T$86)
.dwattr $C$DW$T$301, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$301, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$301, DW_AT_decl_line(0x7d)
.dwattr $C$DW$T$301, DW_AT_decl_column(0x03)
$C$DW$T$89 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$89, DW_AT_name("xTASK_STATUS")
.dwattr $C$DW$T$89, DW_AT_byte_size(0x24)
$C$DW$434 .dwtag DW_TAG_member
.dwattr $C$DW$434, DW_AT_type(*$C$DW$T$35)
.dwattr $C$DW$434, DW_AT_name("xHandle")
.dwattr $C$DW$434, DW_AT_TI_symbol_name("xHandle")
.dwattr $C$DW$434, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$434, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$434, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$434, DW_AT_decl_line(0x83)
.dwattr $C$DW$434, DW_AT_decl_column(0x0f)
$C$DW$435 .dwtag DW_TAG_member
.dwattr $C$DW$435, DW_AT_type(*$C$DW$T$78)
.dwattr $C$DW$435, DW_AT_name("pcTaskName")
.dwattr $C$DW$435, DW_AT_TI_symbol_name("pcTaskName")
.dwattr $C$DW$435, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$435, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$435, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$435, DW_AT_decl_line(0x84)
.dwattr $C$DW$435, DW_AT_decl_column(0x0e)
$C$DW$436 .dwtag DW_TAG_member
.dwattr $C$DW$436, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$436, DW_AT_name("xTaskNumber")
.dwattr $C$DW$436, DW_AT_TI_symbol_name("xTaskNumber")
.dwattr $C$DW$436, DW_AT_data_member_location[DW_OP_plus_uconst 0x8]
.dwattr $C$DW$436, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$436, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$436, DW_AT_decl_line(0x85)
.dwattr $C$DW$436, DW_AT_decl_column(0x0e)
$C$DW$437 .dwtag DW_TAG_member
.dwattr $C$DW$437, DW_AT_type(*$C$DW$T$88)
.dwattr $C$DW$437, DW_AT_name("eCurrentState")
.dwattr $C$DW$437, DW_AT_TI_symbol_name("eCurrentState")
.dwattr $C$DW$437, DW_AT_data_member_location[DW_OP_plus_uconst 0xc]
.dwattr $C$DW$437, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$437, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$437, DW_AT_decl_line(0x86)
.dwattr $C$DW$437, DW_AT_decl_column(0x0d)
$C$DW$438 .dwtag DW_TAG_member
.dwattr $C$DW$438, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$438, DW_AT_name("uxCurrentPriority")
.dwattr $C$DW$438, DW_AT_TI_symbol_name("uxCurrentPriority")
.dwattr $C$DW$438, DW_AT_data_member_location[DW_OP_plus_uconst 0x10]
.dwattr $C$DW$438, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$438, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$438, DW_AT_decl_line(0x87)
.dwattr $C$DW$438, DW_AT_decl_column(0x0e)
$C$DW$439 .dwtag DW_TAG_member
.dwattr $C$DW$439, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$439, DW_AT_name("uxBasePriority")
.dwattr $C$DW$439, DW_AT_TI_symbol_name("uxBasePriority")
.dwattr $C$DW$439, DW_AT_data_member_location[DW_OP_plus_uconst 0x14]
.dwattr $C$DW$439, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$439, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$439, DW_AT_decl_line(0x88)
.dwattr $C$DW$439, DW_AT_decl_column(0x0e)
$C$DW$440 .dwtag DW_TAG_member
.dwattr $C$DW$440, DW_AT_type(*$C$DW$T$45)
.dwattr $C$DW$440, DW_AT_name("ulRunTimeCounter")
.dwattr $C$DW$440, DW_AT_TI_symbol_name("ulRunTimeCounter")
.dwattr $C$DW$440, DW_AT_data_member_location[DW_OP_plus_uconst 0x18]
.dwattr $C$DW$440, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$440, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$440, DW_AT_decl_line(0x89)
.dwattr $C$DW$440, DW_AT_decl_column(0x0b)
$C$DW$441 .dwtag DW_TAG_member
.dwattr $C$DW$441, DW_AT_type(*$C$DW$T$83)
.dwattr $C$DW$441, DW_AT_name("pxStackBase")
.dwattr $C$DW$441, DW_AT_TI_symbol_name("pxStackBase")
.dwattr $C$DW$441, DW_AT_data_member_location[DW_OP_plus_uconst 0x1c]
.dwattr $C$DW$441, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$441, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$441, DW_AT_decl_line(0x8a)
.dwattr $C$DW$441, DW_AT_decl_column(0x0f)
$C$DW$442 .dwtag DW_TAG_member
.dwattr $C$DW$442, DW_AT_type(*$C$DW$T$81)
.dwattr $C$DW$442, DW_AT_name("usStackHighWaterMark")
.dwattr $C$DW$442, DW_AT_TI_symbol_name("usStackHighWaterMark")
.dwattr $C$DW$442, DW_AT_data_member_location[DW_OP_plus_uconst 0x20]
.dwattr $C$DW$442, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$442, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$442, DW_AT_decl_line(0x8b)
.dwattr $C$DW$442, DW_AT_decl_column(0x19)
.dwattr $C$DW$T$89, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$89, DW_AT_decl_line(0x81)
.dwattr $C$DW$T$89, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$89
$C$DW$T$302 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$302, DW_AT_name("TaskStatus_t")
.dwattr $C$DW$T$302, DW_AT_type(*$C$DW$T$89)
.dwattr $C$DW$T$302, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$302, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$302, DW_AT_decl_line(0x8c)
.dwattr $C$DW$T$302, DW_AT_decl_column(0x03)
$C$DW$T$91 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$91, DW_AT_name("xTIME_OUT")
.dwattr $C$DW$T$91, DW_AT_byte_size(0x08)
$C$DW$443 .dwtag DW_TAG_member
.dwattr $C$DW$443, DW_AT_type(*$C$DW$T$90)
.dwattr $C$DW$443, DW_AT_name("xOverflowCount")
.dwattr $C$DW$443, DW_AT_TI_symbol_name("xOverflowCount")
.dwattr $C$DW$443, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$443, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$443, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$443, DW_AT_decl_line(0x60)
.dwattr $C$DW$443, DW_AT_decl_column(0x0d)
$C$DW$444 .dwtag DW_TAG_member
.dwattr $C$DW$444, DW_AT_type(*$C$DW$T$46)
.dwattr $C$DW$444, DW_AT_name("xTimeOnEntering")
.dwattr $C$DW$444, DW_AT_TI_symbol_name("xTimeOnEntering")
.dwattr $C$DW$444, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$444, DW_AT_accessibility(DW_ACCESS_public)
.dwattr $C$DW$444, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$444, DW_AT_decl_line(0x61)
.dwattr $C$DW$444, DW_AT_decl_column(0x0d)
.dwattr $C$DW$T$91, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$91, DW_AT_decl_line(0x5e)
.dwattr $C$DW$T$91, DW_AT_decl_column(0x10)
.dwendtag $C$DW$T$91
$C$DW$T$121 .dwtag DW_TAG_typedef
.dwattr $C$DW$T$121, DW_AT_name("TimeOut_t")
.dwattr $C$DW$T$121, DW_AT_type(*$C$DW$T$91)
.dwattr $C$DW$T$121, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$121, DW_AT_decl_file("../OS/task.h")
.dwattr $C$DW$T$121, DW_AT_decl_line(0x62)
.dwattr $C$DW$T$121, DW_AT_decl_column(0x03)
$C$DW$T$122 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$122, DW_AT_type(*$C$DW$T$121)
.dwattr $C$DW$T$122, DW_AT_address_class(0x20)
$C$DW$T$123 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$123, DW_AT_type(*$C$DW$T$122)
.dwattr $C$DW$CU, DW_AT_language(DW_LANG_C)
;***************************************************************
;* DWARF CIE ENTRIES *
;***************************************************************
$C$DW$CIE .dwcie 14
.dwcfi cfa_register, 13
.dwcfi cfa_offset, 0
.dwcfi same_value, 4
.dwcfi same_value, 5
.dwcfi same_value, 6
.dwcfi same_value, 7
.dwcfi same_value, 8
.dwcfi same_value, 9
.dwcfi same_value, 10
.dwcfi same_value, 11
.dwcfi same_value, 80
.dwcfi same_value, 81
.dwcfi same_value, 82
.dwcfi same_value, 83
.dwcfi same_value, 84
.dwcfi same_value, 85
.dwcfi same_value, 86
.dwcfi same_value, 87
.dwcfi same_value, 88
.dwcfi same_value, 89
.dwcfi same_value, 90
.dwcfi same_value, 91
.dwcfi same_value, 92
.dwcfi same_value, 93
.dwcfi same_value, 94
.dwcfi same_value, 95
.dwendentry
;***************************************************************
;* DWARF REGISTER MAP *
;***************************************************************
$C$DW$445 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$445, DW_AT_name("A1")
.dwattr $C$DW$445, DW_AT_location[DW_OP_reg0]
$C$DW$446 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$446, DW_AT_name("A2")
.dwattr $C$DW$446, DW_AT_location[DW_OP_reg1]
$C$DW$447 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$447, DW_AT_name("A3")
.dwattr $C$DW$447, DW_AT_location[DW_OP_reg2]
$C$DW$448 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$448, DW_AT_name("A4")
.dwattr $C$DW$448, DW_AT_location[DW_OP_reg3]
$C$DW$449 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$449, DW_AT_name("V1")
.dwattr $C$DW$449, DW_AT_location[DW_OP_reg4]
$C$DW$450 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$450, DW_AT_name("V2")
.dwattr $C$DW$450, DW_AT_location[DW_OP_reg5]
$C$DW$451 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$451, DW_AT_name("V3")
.dwattr $C$DW$451, DW_AT_location[DW_OP_reg6]
$C$DW$452 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$452, DW_AT_name("V4")
.dwattr $C$DW$452, DW_AT_location[DW_OP_reg7]
$C$DW$453 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$453, DW_AT_name("V5")
.dwattr $C$DW$453, DW_AT_location[DW_OP_reg8]
$C$DW$454 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$454, DW_AT_name("V6")
.dwattr $C$DW$454, DW_AT_location[DW_OP_reg9]
$C$DW$455 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$455, DW_AT_name("V7")
.dwattr $C$DW$455, DW_AT_location[DW_OP_reg10]
$C$DW$456 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$456, DW_AT_name("V8")
.dwattr $C$DW$456, DW_AT_location[DW_OP_reg11]
$C$DW$457 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$457, DW_AT_name("V9")
.dwattr $C$DW$457, DW_AT_location[DW_OP_reg12]
$C$DW$458 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$458, DW_AT_name("SP")
.dwattr $C$DW$458, DW_AT_location[DW_OP_reg13]
$C$DW$459 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$459, DW_AT_name("LR")
.dwattr $C$DW$459, DW_AT_location[DW_OP_reg14]
$C$DW$460 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$460, DW_AT_name("PC")
.dwattr $C$DW$460, DW_AT_location[DW_OP_reg15]
$C$DW$461 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$461, DW_AT_name("SR")
.dwattr $C$DW$461, DW_AT_location[DW_OP_reg17]
$C$DW$462 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$462, DW_AT_name("AP")
.dwattr $C$DW$462, DW_AT_location[DW_OP_reg7]
$C$DW$463 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$463, DW_AT_name("D0")
.dwattr $C$DW$463, DW_AT_location[DW_OP_regx 0x40]
$C$DW$464 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$464, DW_AT_name("D0_hi")
.dwattr $C$DW$464, DW_AT_location[DW_OP_regx 0x41]
$C$DW$465 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$465, DW_AT_name("D1")
.dwattr $C$DW$465, DW_AT_location[DW_OP_regx 0x42]
$C$DW$466 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$466, DW_AT_name("D1_hi")
.dwattr $C$DW$466, DW_AT_location[DW_OP_regx 0x43]
$C$DW$467 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$467, DW_AT_name("D2")
.dwattr $C$DW$467, DW_AT_location[DW_OP_regx 0x44]
$C$DW$468 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$468, DW_AT_name("D2_hi")
.dwattr $C$DW$468, DW_AT_location[DW_OP_regx 0x45]
$C$DW$469 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$469, DW_AT_name("D3")
.dwattr $C$DW$469, DW_AT_location[DW_OP_regx 0x46]
$C$DW$470 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$470, DW_AT_name("D3_hi")
.dwattr $C$DW$470, DW_AT_location[DW_OP_regx 0x47]
$C$DW$471 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$471, DW_AT_name("D4")
.dwattr $C$DW$471, DW_AT_location[DW_OP_regx 0x48]
$C$DW$472 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$472, DW_AT_name("D4_hi")
.dwattr $C$DW$472, DW_AT_location[DW_OP_regx 0x49]
$C$DW$473 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$473, DW_AT_name("D5")
.dwattr $C$DW$473, DW_AT_location[DW_OP_regx 0x4a]
$C$DW$474 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$474, DW_AT_name("D5_hi")
.dwattr $C$DW$474, DW_AT_location[DW_OP_regx 0x4b]
$C$DW$475 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$475, DW_AT_name("D6")
.dwattr $C$DW$475, DW_AT_location[DW_OP_regx 0x4c]
$C$DW$476 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$476, DW_AT_name("D6_hi")
.dwattr $C$DW$476, DW_AT_location[DW_OP_regx 0x4d]
$C$DW$477 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$477, DW_AT_name("D7")
.dwattr $C$DW$477, DW_AT_location[DW_OP_regx 0x4e]
$C$DW$478 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$478, DW_AT_name("D7_hi")
.dwattr $C$DW$478, DW_AT_location[DW_OP_regx 0x4f]
$C$DW$479 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$479, DW_AT_name("D8")
.dwattr $C$DW$479, DW_AT_location[DW_OP_regx 0x50]
$C$DW$480 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$480, DW_AT_name("D8_hi")
.dwattr $C$DW$480, DW_AT_location[DW_OP_regx 0x51]
$C$DW$481 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$481, DW_AT_name("D9")
.dwattr $C$DW$481, DW_AT_location[DW_OP_regx 0x52]
$C$DW$482 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$482, DW_AT_name("D9_hi")
.dwattr $C$DW$482, DW_AT_location[DW_OP_regx 0x53]
$C$DW$483 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$483, DW_AT_name("D10")
.dwattr $C$DW$483, DW_AT_location[DW_OP_regx 0x54]
$C$DW$484 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$484, DW_AT_name("D10_hi")
.dwattr $C$DW$484, DW_AT_location[DW_OP_regx 0x55]
$C$DW$485 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$485, DW_AT_name("D11")
.dwattr $C$DW$485, DW_AT_location[DW_OP_regx 0x56]
$C$DW$486 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$486, DW_AT_name("D11_hi")
.dwattr $C$DW$486, DW_AT_location[DW_OP_regx 0x57]
$C$DW$487 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$487, DW_AT_name("D12")
.dwattr $C$DW$487, DW_AT_location[DW_OP_regx 0x58]
$C$DW$488 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$488, DW_AT_name("D12_hi")
.dwattr $C$DW$488, DW_AT_location[DW_OP_regx 0x59]
$C$DW$489 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$489, DW_AT_name("D13")
.dwattr $C$DW$489, DW_AT_location[DW_OP_regx 0x5a]
$C$DW$490 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$490, DW_AT_name("D13_hi")
.dwattr $C$DW$490, DW_AT_location[DW_OP_regx 0x5b]
$C$DW$491 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$491, DW_AT_name("D14")
.dwattr $C$DW$491, DW_AT_location[DW_OP_regx 0x5c]
$C$DW$492 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$492, DW_AT_name("D14_hi")
.dwattr $C$DW$492, DW_AT_location[DW_OP_regx 0x5d]
$C$DW$493 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$493, DW_AT_name("D15")
.dwattr $C$DW$493, DW_AT_location[DW_OP_regx 0x5e]
$C$DW$494 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$494, DW_AT_name("D15_hi")
.dwattr $C$DW$494, DW_AT_location[DW_OP_regx 0x5f]
$C$DW$495 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$495, DW_AT_name("FPEXC")
.dwattr $C$DW$495, DW_AT_location[DW_OP_reg18]
$C$DW$496 .dwtag DW_TAG_TI_assign_register
.dwattr $C$DW$496, DW_AT_name("FPSCR")
.dwattr $C$DW$496, DW_AT_location[DW_OP_reg19]
.dwendtag $C$DW$CU
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization8_pkg2.adb | best08618/asylo | 7 | 25979 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization8_pkg2.adb
package body Loop_Optimization8_Pkg2 is
function Length (Set : T) return Natural is
begin
return Set.Length;
end Length;
function Index (Set : T; Position : Natural) return Integer is
begin
return Set.Elements (Position);
end Index;
end Loop_Optimization8_Pkg2;
|
oeis/021/A021112.asm | neoneye/loda-programs | 11 | 29468 | <reponame>neoneye/loda-programs
; A021112: Decimal expansion of 1/108.
; 0,0,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9,2,5,9
sub $0,1
mul $0,20
trn $0,2
mov $2,$0
div $2,2
add $2,4
add $2,$0
bin $0,2
mod $0,$2
mod $0,10
|
src/Erased/With-K.agda | nad/equality | 3 | 3911 | ------------------------------------------------------------------------
-- Some theory of Erased, developed using the K rule and propositional
-- equality
------------------------------------------------------------------------
-- This module instantiates and reexports code from Erased.
{-# OPTIONS --with-K --safe #-}
module Erased.With-K where
open import Equality.Propositional
open import Logical-equivalence using (_⇔_)
open import Prelude
open import Bijection equality-with-J using (_↔_)
open import Embedding equality-with-J as Emb using (Is-embedding)
open import Equivalence equality-with-J as Eq
using (_≃_; Is-equivalence)
import Erased.Basics as EB
import Erased.Level-1 equality-with-J as E
open import H-level equality-with-J
open import Injection equality-with-J using (Injective)
private
variable
a b p : Level
A : Type a
------------------------------------------------------------------------
-- Code related to the module Erased
-- Given an erased proof of equality of x and y one can show that
-- [ x ] is equal to [ y ].
[]-cong : {@0 A : Type a} {@0 x y : A} →
EB.Erased (x ≡ y) → EB.[ x ] ≡ EB.[ y ]
[]-cong EB.[ refl ] = refl
-- []-cong is an equivalence.
[]-cong-equivalence :
{@0 A : Type a} {@0 x y : A} →
Is-equivalence ([]-cong {x = x} {y = y})
[]-cong-equivalence {x = x} {y = y} = _≃_.is-equivalence (Eq.↔⇒≃ (record
{ surjection = record
{ logical-equivalence = record
{ to = []-cong
; from = λ eq → EB.[ cong EB.erased eq ]
}
; right-inverse-of = λ { refl → refl }
}
; left-inverse-of = λ { EB.[ refl ] → refl }
}))
-- []-cong maps [ refl ] to refl (by definition).
[]-cong-[refl] :
{@0 A : Type a} {@0 x : A} →
[]-cong EB.[ refl {x = x} ] ≡ refl {x = EB.[ x ]}
[]-cong-[refl] = refl
-- The []-cong axioms can be instantiated.
instance-of-[]-cong-axiomatisation : E.[]-cong-axiomatisation a
instance-of-[]-cong-axiomatisation = λ where
.E.[]-cong-axiomatisation.[]-cong → []-cong
.E.[]-cong-axiomatisation.[]-cong-equivalence → []-cong-equivalence
.E.[]-cong-axiomatisation.[]-cong-[refl] → []-cong-[refl]
-- Some reexported definitions.
open import Erased equality-with-J instance-of-[]-cong-axiomatisation
public
hiding ([]-cong; []-cong-equivalence; []-cong-[refl]; Injective-[];
Π-Erased≃Π0[]; Π-Erased≃Π0)
------------------------------------------------------------------------
-- Other code
-- [_]→ is injective.
Injective-[] : {@0 A : Type a} → Injective [ A ∣_]→
Injective-[] refl = refl
-- [_]→ is an embedding.
Is-embedding-[] : {@0 A : Type a} → Is-embedding [ A ∣_]→
Is-embedding-[] _ _ =
(λ { refl → refl })
, (λ { refl → refl })
, (λ { refl → refl })
, (λ { refl → refl })
-- If Erased A is a proposition, then A is a proposition.
Is-proposition-Erased→Is-proposition :
{@0 A : Type a} →
Is-proposition (Erased A) → Is-proposition A
Is-proposition-Erased→Is-proposition prop x y =
Injective-[] (prop [ x ] [ y ])
-- A variant of the previous result.
H-level′-1-Erased→H-level′-1 :
{@0 A : Type a} →
H-level′ 1 (Erased A) → H-level′ 1 A
H-level′-1-Erased→H-level′-1 prop x y
with proj₁ (prop [ x ] [ y ])
... | refl = refl , λ { refl → refl }
-- Equality is always very stable.
Very-stable-≡-trivial : Very-stable-≡ A
Very-stable-≡-trivial =
_⇔_.from (Very-stable-≡↔Is-embedding-[] _)
Is-embedding-[]
-- The following four results are inspired by a result in
-- Mishra-Linger's PhD thesis (see Section 5.4.1).
-- There is a bijection between (x : Erased A) → P x and
-- (@0 x : A) → P [ x ].
Π-Erased↔Π0[] :
{@0 A : Type a} {@0 P : Erased A → Type p} →
((x : Erased A) → P x) ↔ ((@0 x : A) → P [ x ])
Π-Erased↔Π0[] = record
{ surjection = record
{ logical-equivalence = Π-Erased⇔Π0
; right-inverse-of = λ _ → refl
}
; left-inverse-of = λ _ → refl
}
-- There is an equivalence between (x : Erased A) → P x and
-- (@0 x : A) → P [ x ].
--
-- This is not proved by converting Π-Erased↔Π0[] to an equivalence,
-- because the type arguments of the conversion function in
-- Equivalence are not erased, and P can only be used in erased
-- contexts.
--
-- This is a strengthening of E.Π-Erased≃Π0[].
Π-Erased≃Π0[] :
{@0 A : Type a} {@0 P : Erased A → Type p} →
((x : Erased A) → P x) ≃ ((@0 x : A) → P [ x ])
Π-Erased≃Π0[] = record
{ to = λ f x → f [ x ]
; is-equivalence =
(λ f ([ x ]) → f x)
, (λ _ → refl)
, (λ _ → refl)
, (λ _ → refl)
}
-- There is a bijection between (x : Erased A) → P (erased x) and
-- (@0 x : A) → P x.
Π-Erased↔Π0 :
{@0 A : Type a} {@0 P : A → Type p} →
((x : Erased A) → P (erased x)) ↔ ((@0 x : A) → P x)
Π-Erased↔Π0 = Π-Erased↔Π0[]
-- There is an equivalence between (x : Erased A) → P (erased x) and
-- (@0 x : A) → P x.
--
-- This is a strengthening of E.Π-Erased≃Π0.
Π-Erased≃Π0 :
{@0 A : Type a} {@0 P : A → Type p} →
((x : Erased A) → P (erased x)) ≃ ((@0 x : A) → P x)
Π-Erased≃Π0 = Π-Erased≃Π0[]
private
-- As an aside it is possible to prove the four previous results
-- without relying on eta-equality for Erased. However, the code
-- makes use of extensionality, and it also makes use of
-- eta-equality for Π. (The use of η-equality for Π could perhaps be
-- avoided, but Agda does not, at the time of writing, provide a
-- simple way to turn off this kind of η-equality.)
data Erased-no-η (@0 A : Type a) : Type a where
[_] : @0 A → Erased-no-η A
@0 erased-no-η : Erased-no-η A → A
erased-no-η [ x ] = x
-- Some lemmas.
Π-Erased-no-η→Π0[] :
{@0 A : Type a} {@0 P : Erased-no-η A → Type p} →
((x : Erased-no-η A) → P x) → (@0 x : A) → P [ x ]
Π-Erased-no-η→Π0[] f x = f [ x ]
Π0[]→Π-Erased-no-η :
{@0 A : Type a} (@0 P : Erased-no-η A → Type p) →
((@0 x : A) → P [ x ]) → (x : Erased-no-η A) → P x
Π0[]→Π-Erased-no-η _ f [ x ] = f x
Π0[]→Π-Erased-no-η-Π-Erased-no-η→Π0[] :
{@0 A : Type a} {@0 P : Erased-no-η A → Type p}
(f : (x : Erased-no-η A) → P x) (x : Erased-no-η A) →
Π0[]→Π-Erased-no-η P (Π-Erased-no-η→Π0[] f) x ≡ f x
Π0[]→Π-Erased-no-η-Π-Erased-no-η→Π0[] f [ x ] = refl
-- There is a bijection between (x : Erased-no-η A) → P x and
-- (@0 x : A) → P [ x ] (assuming extensionality).
Π-Erased-no-η↔Π0[] :
{@0 A : Type a} {@0 P : Erased-no-η A → Type p} →
Extensionality′ (Erased-no-η A) P →
((x : Erased-no-η A) → P x) ↔ ((@0 x : A) → P [ x ])
Π-Erased-no-η↔Π0[] {P = P} ext = record
{ surjection = record
{ logical-equivalence = record
{ to = Π-Erased-no-η→Π0[]
; from = Π0[]→Π-Erased-no-η _
}
; right-inverse-of = λ _ → refl
}
; left-inverse-of = λ f →
ext (Π0[]→Π-Erased-no-η-Π-Erased-no-η→Π0[] f)
}
-- There is an equivalence between (x : Erased-no-η A) → P x and
-- (@0 x : A) → P [ x ] (assuming extensionality).
--
-- This is not proved by converting Π-Erased-no-η↔Π0[] to an
-- equivalence, because the type arguments of the conversion
-- function in Equivalence are not erased, and A and P can only be
-- used in erased contexts.
Π-Erased-no-η≃Π0[] :
{@0 A : Type a} {@0 P : Erased-no-η A → Type p} →
Extensionality′ (Erased-no-η A) P →
((x : Erased-no-η A) → P x) ≃ ((@0 x : A) → P [ x ])
Π-Erased-no-η≃Π0[] {A = A} {P = P} ext = record
{ to = λ f x → f [ x ]
; is-equivalence =
Π0[]→Π-Erased-no-η _
, (λ _ → refl)
, (λ f → ext (Π0[]→Π-Erased-no-η-Π-Erased-no-η→Π0[] f))
, (λ _ → uip _ _)
}
where
uip : {@0 B : Type b} {@0 x y : B} (@0 p q : x ≡ y) → p ≡ q
uip refl refl = refl
-- There is a bijection between
-- (x : Erased-no-η A) → P (erased-no-η x) and (@0 x : A) → P x
-- (assuming extensionality).
Π-Erased-no-η↔Π0 :
{@0 A : Type a} {@0 P : A → Type p} →
Extensionality′ (Erased-no-η A) (P ∘ erased-no-η) →
((x : Erased-no-η A) → P (erased-no-η x)) ↔ ((@0 x : A) → P x)
Π-Erased-no-η↔Π0 = Π-Erased-no-η↔Π0[]
-- There is an equivalence between
-- (x : Erased-no-η A) → P (erased-no-η x) and (@0 x : A) → P x
-- (assuming extensionality).
Π-Erased-no-η≃Π0 :
{@0 A : Type a} {@0 P : A → Type p} →
Extensionality′ (Erased-no-η A) (P ∘ erased-no-η) →
((x : Erased-no-η A) → P (erased-no-η x)) ≃ ((@0 x : A) → P x)
Π-Erased-no-η≃Π0 = Π-Erased-no-η≃Π0[]
|
12:6/main.asm | stevenyu113228/NTUST_asm_homework | 0 | 99886 | include main.h
.MODEL SMALL
.DATA
column_init dw 300
row_init dw 200
color db 06h
.STACK 100H
.code
MAIN PROC
mov ax,@DATA
mov ds,ax
draw_mode ; into draw mode
bg_color 03h ; set bg color = 03h 青綠色
; ==========MAIN LOOP========
WWW:
triangle column_init,row_init,color
get_char
cmp al,1bh ;是否為ESC鍵
je EXIT
cmp al,'8' ; up row - 4
je UP
cmp al,'2' ; down row + 4
je DOWN
cmp al,'4' ; left col - 4
je LEFT
cmp al,'6' ; right col + 4
je RIGHT
cmp al,'5' ; change color
je CHGCOLOR
jmp WWW
; ==========MAIN LOOP========
; --------------------KEY_START--------------------
; ----------UP_START-----------
UP:
triangle column_init,row_init,03h ;clear screen
mov ax,row_init
sub ax,4
cmp ax,0
jl UP_OUT_OF_RANGE ; signed <
jmp UP_SUBMIT
UP_OUT_OF_RANGE:
mov ax,0
UP_SUBMIT:
mov row_init,ax
jmp WWW
; ----------UP_STOP-----------
; ----------DOWN_START-----------
DOWN:
triangle column_init,row_init,03h ;clear screen
mov ax,row_init
add ax,4
cmp ax,440
ja DOWN_OUT_OF_RANGE
jmp DOWN_SUBMIT
DOWN_OUT_OF_RANGE:
mov ax,440
DOWN_SUBMIT:
mov row_init,ax
jmp WWW
; ----------DOWN_STOP-----------
; ----------LEFT_START-----------
LEFT:
triangle column_init,row_init,03h ;clear screen
mov ax,column_init
sub ax,4
cmp ax,0
jl LEFT_OUT_OF_RANGE ; signed <
jmp LEFT_SUBMIT
LEFT_OUT_OF_RANGE:
mov ax,0
LEFT_SUBMIT:
mov column_init,ax
jmp WWW
; ----------LEFT_STOP-----------
; ----------RIGHT_START-----------
RIGHT:
triangle column_init,row_init,03h ;clear screen
mov ax,column_init
add ax,4
cmp ax,600
ja RIGHT_OUT_OF_RANGE
jmp RIGHT_SUBMIT
RIGHT_OUT_OF_RANGE:
mov ax,600
RIGHT_SUBMIT:
mov column_init,ax
jmp WWW
; ----------RIGHT_STOP-----------
; ----------CHANGE_COLOR_START-----------
CHGCOLOR:
triangle column_init,row_init,03h ;clear screen
mov ah,color
cmp ah,15
je COLOR_OUT_OF_RANGE
inc ah
jmp COLOR_SUBMIT
COLOR_OUT_OF_RANGE:
mov ah,0
COLOR_SUBMIT:
mov color,ah
jmp WWW
; ----------CHANGE_COLOR_STOP-----------
; --------------------KEY_STOP--------------------
; ----------END_PROGRAM-----------
EXIT:
text_mode
mov ax,4c00h
int 21h
MAIN ENDP
END MAIN |
compiler/out/production/src/com/company/Mx.g4 | TimerChen/MxCompiler | 2 | 3022 | //Define a grammar called Hello
grammar Mx;
import Mx_Lex;
expr
:
;
oneExpr
: Const
| Identifer
;
unaryExpr
: oneExpr
| '++' oneExpr
| '--' oneExpr
| oneExpr '++'
| oneExpr '--'
;
stat
: exprStat
| ifstat
| forstat
;
exprStat
: expr? ';'
;
assignOpt
: '='
;
ifstat
:
;
forstat
:
;
|
libsrc/_DEVELOPMENT/libgen/c/sccz80/basename_ext.asm | Frodevan/z88dk | 640 | 18467 | ; char *basename_ext(char *path)
SECTION code_string
PUBLIC basename_ext
EXTERN asm_basename_ext
defc basename_ext = asm_basename_ext
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _basename_ext
defc _basename_ext = basename_ext
ENDIF
|
Cubical/Data/Queue/Untruncated2ListInvariant.agda | dan-iel-lee/cubical | 0 | 13539 | <reponame>dan-iel-lee/cubical<filename>Cubical/Data/Queue/Untruncated2ListInvariant.agda
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Data.Queue.Untruncated2ListInvariant where
open import Cubical.Foundations.Everything
open import Cubical.Data.Empty as ⊥
open import Cubical.Data.List
open import Cubical.Data.Maybe
open import Cubical.Data.Prod
module Untruncated2ListInvariant {ℓ} (A : Type ℓ) where
-- Invariant
Inv : List A → List A → Type ℓ
Inv xs ys = ys ≡ [] → xs ≡ []
isPropInv : (xs ys : List A) → isProp (Inv xs ys)
isPropInv xs ys = isPropΠ λ _ → isPropXs≡[]
Inv-ys≡ys' : {xs ys ys' : List A} → (p : ys ≡ ys') →
(invL : Inv xs ys) → (invR : Inv xs ys') → PathP (λ i → Inv xs (p i)) invL invR
Inv-ys≡ys' {xs = xs} p invL invR = isProp→PathP (λ i → isPropInv xs (p i)) invL invR
inv-xs-∷ : {xs ys : List A} {y : A} → Inv xs (y ∷ ys)
inv-xs-∷ contra = ⊥.rec (¬cons≡nil contra)
inv-xs-∷ʳ : {xs ys : List A} → {y : A} → Inv xs (ys ∷ʳ y)
inv-xs-∷ʳ contra = ⊥.rec (¬snoc≡nil contra)
inv-[]-ys : {ys : List A} → Inv [] ys
inv-[]-ys ys = refl
inv-invalid : {xs : List A} {x : A} → Inv (xs ∷ʳ x) [] → ⊥
inv-invalid inv = ¬snoc≡nil (inv refl)
-- Queue
data Q : Type ℓ where
Q⟨_,_!_⟩ : (xs ys : List A) → (inv : Inv xs ys) → Q
tilt : ∀ xs ys z l r → Q⟨ xs ++ [ z ] , ys ! l ⟩ ≡ Q⟨ xs , ys ++ [ z ] ! r ⟩
Q-ys≡ys' : ∀ xs {ys ys' : List A} l r → (p : ys ≡ ys') → Q⟨ xs , ys ! l ⟩ ≡ Q⟨ xs , ys' ! r ⟩
Q-ys≡ys' xs l r p i = Q⟨ xs , p i ! Inv-ys≡ys' p l r i ⟩
flush-xs : ∀ xs ys l r → Q⟨ xs , ys ! l ⟩ ≡ Q⟨ [] , ys ++ rev xs ! r ⟩
flush-xs xs ys l r = helper xs ys l r (snocView xs)
where
helper : ∀ xs ys l r → SnocView xs → Q⟨ xs , ys ! l ⟩ ≡ Q⟨ [] , ys ++ rev xs ! r ⟩
helper .[] ys l r nil i = Q⟨ [] , ++-unit-r ys (~ i) ! Inv-ys≡ys' (++-unit-r ys ⁻¹) l r i ⟩
helper .(xs ∷ʳ x) ys l r (snoc x xs s) = move-x ∙ IH ∙ Q-ys≡ys' [] inv-[]-ys r lemma
where
move-x : Q⟨ xs ∷ʳ x , ys ! l ⟩ ≡ Q⟨ xs , ys ∷ʳ x ! inv-xs-∷ʳ ⟩
move-x = tilt xs ys x l inv-xs-∷ʳ
IH : Q⟨ xs , ys ∷ʳ x ! inv-xs-∷ʳ ⟩ ≡ Q⟨ [] , (ys ∷ʳ x) ++ rev xs ! inv-[]-ys ⟩
IH = helper xs (ys ∷ʳ x) inv-xs-∷ʳ inv-[]-ys s
lemma : (ys ∷ʳ x) ++ rev xs ≡ ys ++ rev (xs ∷ʳ x)
lemma = ++-assoc ys (x ∷ []) (rev xs) ∙ cong (ys ++_) (cons≡rev-snoc x xs)
emp : Q
emp = Q⟨ [] , [] ! inv-[]-ys ⟩
enq : A → Q → Q
enq a Q⟨ xs , [] ! inv ⟩ = Q⟨ xs , a ∷ [] ! inv-xs-∷ ⟩
enq a Q⟨ xs , y ∷ ys ! inv ⟩ = Q⟨ a ∷ xs , y ∷ ys ! inv-xs-∷ ⟩
enq a (tilt xs [] z l r i) = proof i
where
proof : Q⟨ xs ++ z ∷ [] , a ∷ [] ! inv-xs-∷ ⟩ ≡ Q⟨ a ∷ xs , z ∷ [] ! inv-xs-∷ ⟩
proof = ⊥.rec (inv-invalid l)
enq a (tilt xs (y ∷ ys) z l r i) = tilt (a ∷ xs) (y ∷ ys) z inv-xs-∷ inv-xs-∷ i
deq : Q → Maybe (Q × A)
deq Q⟨ xs , [] ! inv ⟩ = nothing
deq Q⟨ xs , y ∷ [] ! inv ⟩ = just (Q⟨ [] , rev xs ! inv-[]-ys ⟩ , y)
deq Q⟨ xs , y₁ ∷ y₂ ∷ ys ! inv ⟩ = just (Q⟨ xs , y₂ ∷ ys ! inv-xs-∷ ⟩ , y₁)
deq (tilt xs [] z l r i) = proof i
where
proof : nothing ≡ just (Q⟨ [] , rev xs ! inv-[]-ys ⟩ , z)
proof = ⊥.rec (inv-invalid l)
deq (tilt xs (y ∷ []) z l r i) = just (proof i , y)
where
proof : Q⟨ [] , rev (xs ∷ʳ z) ! inv-[]-ys ⟩ ≡ Q⟨ xs , z ∷ [] ! inv-xs-∷ ⟩
proof = Q-ys≡ys' [] inv-[]-ys inv-xs-∷ (cons≡rev-snoc z xs ⁻¹) ∙ flush-xs xs (z ∷ []) inv-xs-∷ inv-xs-∷ ⁻¹
deq (tilt xs (y₁ ∷ y₂ ∷ ys) z l r i) = just ((tilt xs (y₂ ∷ ys) z inv-xs-∷ inv-xs-∷ i) , y₁)
|
audio/music/johtowildbattlenight.asm | AtmaBuster/pokecrystal16-493-plus | 1 | 162558 | Music_JohtoWildBattleNight:
channel_count 3
channel 1, Music_JohtoWildBattleNight_Ch1
channel 2, Music_JohtoWildBattleNight_Ch2
channel 3, Music_JohtoWildBattleNight_Ch3
Music_JohtoWildBattleNight_Ch1_sub_0:
octave 5
note E_, 2
octave 4
note A_, 2
note B_, 2
note E_, 2
note G_, 2
note D_, 2
note E_, 2
note C_, 2
note D_, 2
octave 3
note B_, 2
octave 4
note C_, 2
octave 3
note A_, 2
note B_, 2
note G_, 2
sound_ret
Music_JohtoWildBattleNight_Ch1_sub_1:
note A_, 6
note F#, 4
note D_, 2
note A_, 2
octave 4
note D_, 2
octave 3
note D_, 2
note G_, 2
note A_, 2
note G_, 2
note D_, 2
note F#, 2
note A_, 2
sound_ret
Music_JohtoWildBattleNight_Ch1_sub_2:
octave 3
note E_, 10
note C_, 2
note G_, 2
octave 4
note C_, 2
octave 3
note C_, 2
note F_, 2
note G_, 2
note F_, 2
note C_, 2
note E_, 2
note G_, 2
sound_ret
Music_JohtoWildBattleNight_Ch1::
tempo 104
volume 7, 7
duty_cycle 3
vibrato 18, 1, 5
note_type 12, 11, 2
pitch_offset 1
octave 4
note C_, 1
octave 3
note B_, 1
note A#, 1
note A_, 1
note A#, 1
note A_, 1
note G#, 1
note G_, 1
note G#, 1
note G_, 1
note F#, 1
note F_, 1
note F#, 1
note F_, 1
note E_, 1
note D#, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note D_, 1
note C#, 1
note C_, 1
octave 2
note B_, 1
octave 3
note C_, 1
octave 2
note B_, 1
note A#, 1
note A_, 1
note A#, 1
note A_, 1
note G#, 1
note G_, 1
note G_, 6
octave 3
note C_, 6
note C#, 6
rest 6
octave 2
volume_envelope 11, 5
note G_, 8
volume_envelope 11, 2
note G#, 6
octave 3
note C#, 6
note D#, 6
rest 6
octave 2
volume_envelope 11, 5
note G#, 8
volume_envelope 11, 2
octave 3
note G_, 6
octave 4
note C_, 6
note C#, 6
rest 6
octave 3
volume_envelope 11, 5
note G_, 8
volume_envelope 11, 2
note G#, 6
octave 4
note C#, 6
note D#, 6
rest 6
volume_envelope 6, -7
note G#, 8
.loop
volume_envelope 11, 6
sound_call Music_JohtoWildBattleNight_Ch1_sub_2
octave 4
note C_, 2
note C#, 4
octave 3
note C#, 8
note D#, 8
note F_, 4
note G#, 8
sound_call Music_JohtoWildBattleNight_Ch1_sub_2
note A_, 2
note F_, 4
note F_, 8
note D#, 8
note C#, 4
note F_, 4
note G_, 4
sound_call Music_JohtoWildBattleNight_Ch1_sub_1
octave 4
note D_, 2
note D#, 4
octave 3
note D#, 8
note F_, 8
note G_, 8
note A#, 4
sound_call Music_JohtoWildBattleNight_Ch1_sub_1
note B_, 2
note G_, 2
note A_, 2
octave 4
note D#, 2
note G_, 4
note F_, 2
note D#, 2
note D_, 2
note D#, 4
note D#, 4
note G_, 4
octave 3
note A#, 4
note G_, 10
note G_, 2
note F_, 2
note D#, 2
octave 2
note A#, 6
note G_, 10
octave 3
note C#, 8
note F_, 8
note G#, 8
note G_, 8
note G_, 2
note F_, 2
note D#, 2
note F_, 2
note G_, 8
note D#, 2
note C#, 2
note C_, 2
note C#, 2
note D#, 8
note G_, 2
note F_, 2
note D#, 2
note F_, 2
note G_, 4
octave 4
note D#, 2
note F_, 2
note G_, 2
note F_, 2
note D#, 2
note F_, 2
note G_, 8
volume_envelope 11, 7
note F_, 16
note F#, 16
volume_envelope 11, 0
note G_, 16
volume_envelope 11, 7
note G_, 16
rest 6
volume_envelope 11, 6
octave 3
note C_, 6
octave 2
note A#, 4
note G#, 16
rest 6
octave 3
note C_, 6
octave 2
note A#, 4
octave 3
note C#, 16
volume_envelope 11, 2
sound_call Music_JohtoWildBattleNight_Ch1_sub_0
note A_, 2
note F_, 2
sound_call Music_JohtoWildBattleNight_Ch1_sub_0
volume_envelope 11, 6
octave 4
note D#, 4
note E_, 10
note E_, 2
note D_, 2
note C_, 2
octave 3
note G_, 6
note C_, 10
octave 4
note F_, 10
note F_, 2
note D#, 2
note C#, 2
octave 3
note G#, 6
note C#, 10
octave 4
note F#, 10
note F#, 2
note E_, 2
note D_, 2
octave 3
note A_, 6
note D_, 10
rest 16
volume_envelope 6, -7
note A_, 16
sound_loop 0, .loop
Music_JohtoWildBattleNight_Ch2_sub_0:
octave 4
note G_, 1
octave 5
note C_, 2
note C_, 1
octave 4
note G_, 1
octave 5
note C_, 2
sound_ret
Music_JohtoWildBattleNight_Ch2_sub_1:
note C_, 6
note G_, 6
note F_, 6
rest 6
volume_envelope 12, 5
note C_, 8
volume_envelope 12, 2
note C#, 6
note G#, 6
note G_, 6
rest 6
sound_ret
Music_JohtoWildBattleNight_Ch2_sub_2:
note D_, 10
octave 3
note A_, 2
octave 4
note D_, 2
note A_, 2
note G_, 2
note F#, 2
note E_, 2
note D_, 2
note G_, 2
note F#, 2
sound_ret
Music_JohtoWildBattleNight_Ch2_sub_3:
note C_, 10
octave 3
note G_, 2
octave 4
note C_, 2
note G_, 2
note F_, 2
note E_, 2
note D_, 2
note C_, 2
note F_, 2
note E_, 2
sound_ret
Music_JohtoWildBattleNight_Ch2_sub_4:
note A#, 2
note G#, 2
note G_, 2
note G#, 2
volume_envelope 12, 0
note A#, 8
volume_envelope 12, 6
note A#, 16
sound_ret
Music_JohtoWildBattleNight_Ch2::
duty_cycle 3
vibrato 8, 3, 6
note_type 12, 12, 2
octave 5
note C_, 1
sound_call Music_JohtoWildBattleNight_Ch2_sub_0
note C_, 1
sound_call Music_JohtoWildBattleNight_Ch2_sub_0
note C_, 1
sound_call Music_JohtoWildBattleNight_Ch2_sub_0
note C_, 1
sound_call Music_JohtoWildBattleNight_Ch2_sub_0
duty_cycle 2
octave 3
sound_call Music_JohtoWildBattleNight_Ch2_sub_1
volume_envelope 12, 5
note C#, 8
volume_envelope 12, 2
octave 4
sound_call Music_JohtoWildBattleNight_Ch2_sub_1
octave 5
volume_envelope 6, -7
note C#, 8
octave 4
.loop
volume_envelope 12, 6
sound_call Music_JohtoWildBattleNight_Ch2_sub_3
note F_, 2
note G_, 2
volume_envelope 12, 0
note G#, 16
volume_envelope 12, 7
note G#, 16
sound_call Music_JohtoWildBattleNight_Ch2_sub_3
note D_, 2
note C_, 2
octave 3
volume_envelope 12, 0
note A#, 16
volume_envelope 12, 7
note A#, 12
octave 4
note C#, 4
sound_call Music_JohtoWildBattleNight_Ch2_sub_2
note G_, 2
note A_, 2
volume_envelope 12, 0
note A#, 16
volume_envelope 12, 7
note A#, 16
volume_envelope 12, 7
sound_call Music_JohtoWildBattleNight_Ch2_sub_2
note E_, 2
note D_, 2
volume_envelope 12, 0
note C_, 16
volume_envelope 12, 5
note C_, 12
volume_envelope 12, 6
note D#, 4
octave 3
note A#, 10
note A#, 2
note G#, 2
note G_, 2
note D#, 6
octave 2
note A#, 10
octave 3
note F_, 8
note G#, 8
octave 4
note C#, 8
note C_, 8
octave 3
sound_call Music_JohtoWildBattleNight_Ch2_sub_4
sound_call Music_JohtoWildBattleNight_Ch2_sub_4
octave 4
volume_envelope 12, 7
note G#, 16
note A_, 16
volume_envelope 12, 0
note A#, 16
volume_envelope 12, 7
note A#, 16
volume_envelope 12, 6
octave 3
note C_, 6
note G_, 6
note F_, 4
note C#, 16
note C_, 6
note G_, 6
note F_, 4
note G#, 16
note E_, 6
note B_, 6
note A_, 4
note F_, 16
note E_, 6
note B_, 6
note A_, 4
octave 4
note C_, 12
note F#, 4
note G_, 10
note G_, 2
note F_, 2
note E_, 2
note C_, 6
octave 3
note G_, 10
octave 4
note G#, 10
note G#, 2
note F#, 2
note F_, 2
note C#, 6
octave 3
note G#, 10
octave 4
note A_, 10
note A_, 2
note G_, 2
note F#, 2
note D_, 6
octave 3
note A_, 10
rest 16
octave 4
volume_envelope 6, -7
note D_, 16
sound_loop 0, .loop
Music_JohtoWildBattleNight_Ch3_sub_0:
note C_, 2
octave 2
note G_, 2
octave 3
note C_, 2
note G_, 4
note G_, 2
note C_, 2
note G_, 2
note C_, 2
octave 2
note G_, 2
octave 3
note C_, 2
note F_, 4
note G_, 2
note G_, 2
note F_, 2
note C#, 2
note G#, 2
sound_ret
Music_JohtoWildBattleNight_Ch3_sub_1:
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 4
note G_, 2
note F_, 2
note D#, 2
note G_, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 4
note G#, 2
note G_, 2
note F_, 2
note G#, 2
sound_ret
Music_JohtoWildBattleNight_Ch3_sub_2:
note D_, 2
octave 2
note A_, 2
octave 3
note D_, 2
note A_, 4
note A_, 2
note D_, 2
note A_, 2
note D_, 2
octave 2
note A_, 2
octave 3
note D_, 2
note G_, 4
note A_, 2
note A_, 2
note G_, 2
note D#, 2
note A#, 2
octave 4
sound_ret
Music_JohtoWildBattleNight_Ch3_sub_3:
note A#, 2
note D#, 2
note A#, 2
note D#, 2
note A#, 2
note D#, 2
note A#, 2
sound_ret
Music_JohtoWildBattleNight_Ch3_sub_4:
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note G#, 2
note C#, 2
note C#, 2
note G#, 2
sound_ret
Music_JohtoWildBattleNight_Ch3_sub_5:
note D_, 2
note A_, 2
note D_, 2
note A_, 2
note A_, 2
note D_, 2
note A_, 2
note D_, 2
note D#, 2
note A#, 2
note D#, 2
note A#, 2
note A#, 2
note D#, 2
note D#, 2
note A#, 2
sound_ret
Music_JohtoWildBattleNight_Ch3_sub_6:
octave 3
note D_, 2
note A_, 2
octave 4
note F#, 2
note D_, 4
octave 3
note A_, 2
note F#, 2
note A_, 2
note D_, 2
note A_, 2
octave 4
note D_, 2
octave 3
note A_, 2
sound_ret
Music_JohtoWildBattleNight_Ch3_sub_7:
note D#, 4
octave 3
note A#, 2
note G_, 2
note A#, 2
note D#, 2
note A#, 2
octave 4
note G_, 2
sound_ret
Music_JohtoWildBattleNight_Ch3_sub_8:
note A#, 2
note D#, 2
note A#, 2
octave 4
note D#, 2
octave 3
sound_ret
Music_JohtoWildBattleNight_Ch3_sub_9:
note G#, 2
note F_, 2
note G#, 2
note C#, 2
note G#, 2
octave 4
note C#, 2
octave 3
note G#, 2
sound_ret
Music_JohtoWildBattleNight_Ch3::
note_type 12, 1, 1
octave 3
note D_, 1
rest 1
note D#, 1
note E_, 1
note D#, 1
rest 1
note E_, 1
note F_, 1
note E_, 1
rest 1
note F_, 1
note F#, 1
note F_, 1
rest 1
note F#, 1
note G_, 1
note F#, 1
rest 1
note G_, 1
note G#, 1
note G_, 1
rest 1
note G#, 1
note A_, 1
note G#, 1
rest 1
note D#, 2
note D_, 2
note C#, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_1
sound_call Music_JohtoWildBattleNight_Ch3_sub_1
.loop
sound_call Music_JohtoWildBattleNight_Ch3_sub_0
octave 4
note G#, 2
note C#, 4
octave 3
note G#, 2
note F_, 2
note G#, 2
note C#, 2
note G#, 2
octave 4
note F_, 2
note C#, 4
octave 3
note G#, 2
note F_, 2
note G#, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_0
octave 2
note G#, 2
octave 3
note C#, 4
sound_call Music_JohtoWildBattleNight_Ch3_sub_9
note G#, 2
octave 4
note C#, 2
octave 3
note C#, 2
note G#, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_2
note A#, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_7
note D#, 4
octave 3
note A#, 2
note G_, 2
note A#, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_2
note G_, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_7
octave 3
note A#, 2
note D#, 2
note G_, 2
note A#, 2
octave 4
note D#, 2
octave 3
note D#, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_3
octave 2
note A#, 2
octave 3
note D#, 2
octave 2
note A#, 2
octave 3
note D#, 2
octave 2
note A#, 2
octave 3
note D#, 2
octave 2
note A#, 2
octave 3
note D#, 2
note G#, 2
note C#, 2
octave 4
note C#, 4
octave 3
note G#, 2
note C#, 2
octave 4
note F_, 4
octave 3
note G#, 2
note C#, 2
octave 4
note F_, 2
octave 3
note G#, 2
octave 4
note C#, 2
note C_, 2
octave 3
note A#, 2
note G#, 2
note D#, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_3
note D#, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_3
note D#, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_3
note D#, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_3
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C_, 2
note G_, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
note C#, 2
note G#, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_8
sound_call Music_JohtoWildBattleNight_Ch3_sub_8
sound_call Music_JohtoWildBattleNight_Ch3_sub_8
note A#, 2
octave 2
note B_, 2
note A_, 2
note B_, 2
octave 3
sound_call Music_JohtoWildBattleNight_Ch3_sub_4
sound_call Music_JohtoWildBattleNight_Ch3_sub_4
sound_call Music_JohtoWildBattleNight_Ch3_sub_5
sound_call Music_JohtoWildBattleNight_Ch3_sub_5
sound_call Music_JohtoWildBattleNight_Ch3_sub_0
octave 4
note F_, 2
note C#, 4
octave 3
sound_call Music_JohtoWildBattleNight_Ch3_sub_9
note C#, 2
note F_, 2
note G#, 2
octave 4
note C#, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_6
note D_, 2
note F#, 2
note A_, 2
octave 4
note D_, 2
sound_call Music_JohtoWildBattleNight_Ch3_sub_6
octave 4
note D_, 2
octave 3
note G_, 2
note A_, 2
note G_, 2
sound_loop 0, .loop |
include/sf-window-window.ads | Fabien-Chouteau/ASFML | 0 | 9613 | <reponame>Fabien-Chouteau/ASFML
--//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2018 <NAME> (<EMAIL>)
-- This software is provided 'as-is', without any express or implied warranty.
-- In no event will the authors be held liable for any damages arising from the use of this software.
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it freely,
-- subject to the following restrictions:
-- 1. The origin of this software must not be misrepresented;
-- you must not claim that you wrote the original software.
-- If you use this software in a product, an acknowledgment
-- in the product documentation would be appreciated but is not required.
-- 2. Altered source versions must be plainly marked as such,
-- and must not be misrepresented as being the original software.
-- 3. This notice may not be removed or altered from any source distribution.
--//////////////////////////////////////////////////////////
with Sf.Window.Event;
with Sf.Window.VideoMode;
with Sf.Window.WindowHandle;
with Sf.System.Vector2;
package Sf.Window.Window is
--//////////////////////////////////////////////////////////
--/ @brief Enumeration of window creation styles
--/
--//////////////////////////////////////////////////////////
--/< No border / title bar (this flag and all others are mutually exclusive)
--/< Title bar + fixed border
--/< Titlebar + resizable border + maximize button
--/< Titlebar + close button
--/< Fullscreen mode (this flag and all others are mutually exclusive)
--/< Default window style
type sfWindowStyle is new sfUint32;
sfNone : constant sfWindowStyle := 0;
sfTitlebar : constant sfWindowStyle := 1;
sfResize : constant sfWindowStyle := 2;
sfClose : constant sfWindowStyle := 4;
sfFullscreen : constant sfWindowStyle := 8;
sfDefaultStyle : constant sfWindowStyle := 7;
--//////////////////////////////////////////////////////////
--/ @brief Enumeration of the context attribute flags
--/
--//////////////////////////////////////////////////////////
--/< Non-debug, compatibility context (this and the core attribute are mutually exclusive)
--/< Core attribute
--/< Debug attribute
type sfContextAttribute is new sfUint32;
sfContextDefault : constant sfContextAttribute := 0;
sfContextCore : constant sfContextAttribute := 1;
sfContextDebug : constant sfContextAttribute := 4;
--//////////////////////////////////////////////////////////
--/ @brief Structure defining the window's creation settings
--/
--//////////////////////////////////////////////////////////
--/< Bits of the depth buffer
--/< Bits of the stencil buffer
--/< Level of antialiasing
--/< Major number of the context version to create
--/< Minor number of the context version to create
--/< The attribute flags to create the context with
--/< Whether the context framebuffer is sRGB capable
type sfContextSettings is record
depthBits : aliased sfUint32;
stencilBits : aliased sfUint32;
antialiasingLevel : aliased sfUint32;
majorVersion : aliased sfUint32;
minorVersion : aliased sfUint32;
attributeFlags : aliased sfUint32;
sRgbCapable : aliased sfBool;
end record;
sfDefaultContextSettings : constant sfContextSettings;
--//////////////////////////////////////////////////////////
--/ @brief Construct a new window
--/
--/ This function creates the window with the size and pixel
--/ depth defined in @a mode. An optional style can be passed to
--/ customize the look and behaviour of the window (borders,
--/ title bar, resizable, closable, ...). If @a style contains
--/ sfFullscreen, then @a mode must be a valid video mode.
--/
--/ The fourth parameter is a pointer to a structure specifying
--/ advanced OpenGL context settings such as antialiasing,
--/ depth-buffer bits, etc.
--/
--/ @param mode Video mode to use (defines the width, height and depth of the rendering area of the window)
--/ @param title Title of the window
--/ @param style Window style
--/ @param settings Additional settings for the underlying OpenGL context
--/
--/ @return A new sfWindow object
--/
--//////////////////////////////////////////////////////////
function create
(mode : Sf.Window.VideoMode.sfVideoMode;
title : String;
style : sfWindowStyle := sfResize or sfClose;
settings : sfContextSettings := sfDefaultContextSettings)
return sfWindow_Ptr;
--//////////////////////////////////////////////////////////
--/ @brief Construct a new window (with a UTF-32 title)
--/
--/ This function creates the window with the size and pixel
--/ depth defined in @a mode. An optional style can be passed to
--/ customize the look and behaviour of the window (borders,
--/ title bar, resizable, closable, ...). If @a style contains
--/ sfFullscreen, then @a mode must be a valid video mode.
--/
--/ The fourth parameter is a pointer to a structure specifying
--/ advanced OpenGL context settings such as antialiasing,
--/ depth-buffer bits, etc.
--/
--/ @param mode Video mode to use (defines the width, height and depth of the rendering area of the window)
--/ @param title Title of the window (UTF-32)
--/ @param style Window style
--/ @param settings Additional settings for the underlying OpenGL context
--/
--/ @return A new sfWindow object
--/
--//////////////////////////////////////////////////////////
function createUnicode
(mode : Sf.Window.VideoMode.sfVideoMode;
title : access sfUint32;
style : sfUint32;
settings : access constant sfContextSettings) return sfWindow_Ptr;
--//////////////////////////////////////////////////////////
--/ @brief Construct a window from an existing control
--/
--/ Use this constructor if you want to create an OpenGL
--/ rendering area into an already existing control.
--/
--/ The second parameter is a pointer to a structure specifying
--/ advanced OpenGL context settings such as antialiasing,
--/ depth-buffer bits, etc.
--/
--/ @param handle Platform-specific handle of the control
--/ @param settings Additional settings for the underlying OpenGL context
--/
--/ @return A new sfWindow object
--/
--//////////////////////////////////////////////////////////
function createFromHandle (handle : Sf.Window.WindowHandle.sfWindowHandle; settings : access constant sfContextSettings) return sfWindow_Ptr;
--//////////////////////////////////////////////////////////
--/ @brief Destroy a window
--/
--/ @param window Window to destroy
--/
--//////////////////////////////////////////////////////////
procedure destroy (window : sfWindow_Ptr);
--//////////////////////////////////////////////////////////
--/ @brief Close a window and destroy all the attached resources
--/
--/ After calling this function, the sfWindow object remains
--/ valid, you must call sfWindow_destroy to actually delete it.
--/ All other functions such as sfWindow_pollEvent or sfWindow_display
--/ will still work (i.e. you don't have to test sfWindow_isOpen
--/ every time), and will have no effect on closed windows.
--/
--/ @param window Window object
--/
--//////////////////////////////////////////////////////////
procedure close (window : sfWindow_Ptr);
--//////////////////////////////////////////////////////////
--/ @brief Tell whether or not a window is opened
--/
--/ This function returns whether or not the window exists.
--/ Note that a hidden window (sfWindow_setVisible(sfFalse)) will return
--/ sfTrue.
--/
--/ @param window Window object
--/
--/ @return sfTrue if the window is opened, sfFalse if it has been closed
--/
--//////////////////////////////////////////////////////////
function isOpen (window : sfWindow_Ptr) return sfBool;
--//////////////////////////////////////////////////////////
--/ @brief Get the settings of the OpenGL context of a window
--/
--/ Note that these settings may be different from what was
--/ passed to the sfWindow_create function,
--/ if one or more settings were not supported. In this case,
--/ SFML chose the closest match.
--/
--/ @param window Window object
--/
--/ @return Structure containing the OpenGL context settings
--/
--//////////////////////////////////////////////////////////
function getSettings (window : sfWindow_Ptr) return sfContextSettings;
--//////////////////////////////////////////////////////////
--/ @brief Pop the event on top of event queue, if any, and return it
--/
--/ This function is not blocking: if there's no pending event then
--/ it will return false and leave @a event unmodified.
--/ Note that more than one event may be present in the event queue,
--/ thus you should always call this function in a loop
--/ to make sure that you process every pending event.
--/
--/ @param window Window object
--/ @param event Event to be returned
--/
--/ @return sfTrue if an event was returned, or sfFalse if the event queue was empty
--/
--//////////////////////////////////////////////////////////
function pollEvent (window : sfWindow_Ptr;
event : access Sf.Window.Event.sfEvent) return sfBool;
--//////////////////////////////////////////////////////////
--/ @brief Wait for an event and return it
--/
--/ This function is blocking: if there's no pending event then
--/ it will wait until an event is received.
--/ After this function returns (and no error occured),
--/ the @a event object is always valid and filled properly.
--/ This function is typically used when you have a thread that
--/ is dedicated to events handling: you want to make this thread
--/ sleep as long as no new event is received.
--/
--/ @param window Window object
--/ @param event Event to be returned
--/
--/ @return sfFalse if any error occured
--/
--//////////////////////////////////////////////////////////
function waitEvent (window : sfWindow_Ptr;
event : access Sf.Window.Event.sfEvent) return sfBool;
--//////////////////////////////////////////////////////////
--/ @brief Get the position of a window
--/
--/ @param window Window object
--/
--/ @return Position in pixels
--/
--//////////////////////////////////////////////////////////
function getPosition (window : sfWindow_Ptr) return Sf.System.Vector2.sfVector2i;
--//////////////////////////////////////////////////////////
--/ @brief Change the position of a window on screen
--/
--/ This function only works for top-level windows
--/ (i.e. it will be ignored for windows created from
--/ the handle of a child window/control).
--/
--/ @param window Window object
--/ @param position New position of the window, in pixels
--/
--//////////////////////////////////////////////////////////
procedure setPosition (window : sfWindow_Ptr;
position : Sf.System.Vector2.sfVector2i);
--//////////////////////////////////////////////////////////
--/ @brief Get the size of the rendering region of a window
--/
--/ The size doesn't include the titlebar and borders
--/ of the window.
--/
--/ @param window Window object
--/
--/ @return Size in pixels
--/
--//////////////////////////////////////////////////////////
function getSize (window : sfWindow_Ptr) return Sf.System.Vector2.sfVector2u;
--//////////////////////////////////////////////////////////
--/ @brief Change the size of the rendering region of a window
--/
--/ @param window Window object
--/ @param size New size, in pixels
--/
--//////////////////////////////////////////////////////////
procedure setSize (window : sfWindow_Ptr;
size : Sf.System.Vector2.sfVector2u);
--//////////////////////////////////////////////////////////
--/ @brief Change the title of a window
--/
--/ @param window Window object
--/ @param title New title
--/
--//////////////////////////////////////////////////////////
procedure setTitle (window : sfWindow_Ptr; title : String);
--//////////////////////////////////////////////////////////
--/ @brief Change the title of a window (with a UTF-32 string)
--/
--/ @param window Window object
--/ @param title New title
--/
--//////////////////////////////////////////////////////////
procedure setUnicodeTitle (window : sfWindow_Ptr;
title : access sfUint32);
--//////////////////////////////////////////////////////////
--/ @brief Change a window's icon
--/
--/ @a pixels must be an array of @a width x @a height pixels
--/ in 32-bits RGBA format.
--/
--/ @param window Window object
--/ @param width Icon's width, in pixels
--/ @param height Icon's height, in pixels
--/ @param pixels Pointer to the array of pixels in memory
--/
--//////////////////////////////////////////////////////////
procedure setIcon
(window : sfWindow_Ptr;
width : sfUint32;
height : sfUint32;
pixels : access sfUint8);
--//////////////////////////////////////////////////////////
--/ @brief Show or hide a window
--/
--/ @param window Window object
--/ @param visible sfTrue to show the window, sfFalse to hide it
--/
--//////////////////////////////////////////////////////////
procedure setVisible (window : sfWindow_Ptr; visible : sfBool);
--//////////////////////////////////////////////////////////
--/ @brief Enable or disable vertical synchronization
--/
--/ Activating vertical synchronization will limit the number
--/ of frames displayed to the refresh rate of the monitor.
--/ This can avoid some visual artifacts, and limit the framerate
--/ to a good value (but not constant across different computers).
--/
--/ @param window Window object
--/ @param enabled sfTrue to enable v-sync, sfFalse to deactivate
--/
--//////////////////////////////////////////////////////////
procedure setVerticalSyncEnabled (window : sfWindow_Ptr;
enabled : sfBool);
--//////////////////////////////////////////////////////////
--/ @brief Show or hide the mouse cursor
--/
--/ @param window Window object
--/ @param visible sfTrue to show, sfFalse to hide
--/
--//////////////////////////////////////////////////////////
procedure setMouseCursorVisible (window : sfWindow_Ptr;
visible : sfBool);
--//////////////////////////////////////////////////////////
--/ @brief Grab or release the mouse cursor
--/
--/ If set, grabs the mouse cursor inside this window's client
--/ area so it may no longer be moved outside its bounds.
--/ Note that grabbing is only active while the window has
--/ focus and calling this function for fullscreen windows
--/ won't have any effect (fullscreen windows always grab the
--/ cursor).
--/
--/ @param grabbed sfTrue to enable, sfFalse to disable
--/
--//////////////////////////////////////////////////////////
procedure setMouseCursorGrabbed (window : sfWindow_Ptr;
grabbed : sfBool);
--//////////////////////////////////////////////////////////
--/ @brief Set the displayed cursor to a native system cursor
--/
--/ Upon window creation, the arrow cursor is used by default.
--/
--/ @warning The cursor must not be destroyed while in use by
--/ the window.
--/
--/ @warning Features related to Cursor are not supported on
--/ iOS and Android.
--/
--/ @param window Window object
--/ @param cursor Native system cursor type to display
--/
--/ @see sfCursor_createFromSystem
--/ @see sfCursor_createFromPixels
--/
--//////////////////////////////////////////////////////////
procedure setMouseCursor (window : sfWindow_Ptr; cursor : sfCursor_Ptr);
--//////////////////////////////////////////////////////////
--/ @brief Enable or disable automatic key-repeat
--/
--/ If key repeat is enabled, you will receive repeated
--/ KeyPress events while keeping a key pressed. If it is disabled,
--/ you will only get a single event when the key is pressed.
--/
--/ Key repeat is enabled by default.
--/
--/ @param window Window object
--/ @param enabled sfTrue to enable, sfFalse to disable
--/
--//////////////////////////////////////////////////////////
procedure setKeyRepeatEnabled (window : sfWindow_Ptr;
enabled : sfBool);
--//////////////////////////////////////////////////////////
--/ @brief Limit the framerate to a maximum fixed frequency
--/
--/ If a limit is set, the window will use a small delay after
--/ each call to sfWindow_display to ensure that the current frame
--/ lasted long enough to match the framerate limit.
--/
--/ @param window Window object
--/ @param limit Framerate limit, in frames per seconds (use 0 to disable limit)
--/
--//////////////////////////////////////////////////////////
procedure setFramerateLimit (window : sfWindow_Ptr;
limit : sfUint32);
--//////////////////////////////////////////////////////////
--/ @brief Change the joystick threshold
--/
--/ The joystick threshold is the value below which
--/ no JoyMoved event will be generated.
--/
--/ @param window Window object
--/ @param threshold New threshold, in the range [0, 100]
--/
--//////////////////////////////////////////////////////////
procedure setJoystickThreshold (window : sfWindow_Ptr;
threshold : Float);
--//////////////////////////////////////////////////////////
--/ @brief Activate or deactivate a window as the current target
--/ for OpenGL rendering
--/
--/ A window is active only on the current thread, if you want to
--/ make it active on another thread you have to deactivate it
--/ on the previous thread first if it was active.
--/ Only one window can be active on a thread at a time, thus
--/ the window previously active (if any) automatically gets deactivated.
--/ This is not to be confused with sfWindow_requestFocus().
--/
--/ @param window Window object
--/ @param active sfTrue to activate, sfFalse to deactivate
--/
--/ @return sfTrue if operation was successful, sfFalse otherwise
--/
--//////////////////////////////////////////////////////////
function setActive (window : sfWindow_Ptr;
active : sfBool) return sfBool;
--/////////////////////////////////////////////////////////
--/ @brief Request the current window to be made the active
--/ foreground window
--/
--/ At any given time, only one window may have the input focus
--/ to receive input events such as keystrokes or mouse events.
--/ If a window requests focus, it only hints to the operating
--/ system, that it would like to be focused. The operating system
--/ is free to deny the request.
--/ This is not to be confused with sfWindow_setActive().
--/
--/////////////////////////////////////////////////////////
procedure requestFocus (window : sfWindow_Ptr);
--//////////////////////////////////////////////////////////
--/ @brief Check whether the window has the input focus
--/
--/ At any given time, only one window may have the input focus
--/ to receive input events such as keystrokes or most mouse
--/ events.
--/
--/ @return True if window has focus, false otherwise
--/
--//////////////////////////////////////////////////////////
function hasFocus (window : sfWindow_Ptr) return sfBool;
--//////////////////////////////////////////////////////////
--/ @brief Display on screen what has been rendered to the
--/ window so far
--/
--/ This function is typically called after all OpenGL rendering
--/ has been done for the current frame, in order to show
--/ it on screen.
--/
--/ @param window Window object
--/
--//////////////////////////////////////////////////////////
procedure display (window : sfWindow_Ptr);
--//////////////////////////////////////////////////////////
--/ @brief Get the OS-specific handle of the window
--/
--/ The type of the returned handle is sfWindowHandle,
--/ which is a typedef to the handle type defined by the OS.
--/ You shouldn't need to use this function, unless you have
--/ very specific stuff to implement that SFML doesn't support,
--/ or implement a temporary workaround until a bug is fixed.
--/
--/ @param window Window object
--/
--/ @return System handle of the window
--/
--//////////////////////////////////////////////////////////
function getSystemHandle
(window : sfWindow_Ptr)
return Sf.Window.WindowHandle.sfWindowHandle;
private
pragma Convention (C, sfContextSettings);
sfDefaultContextSettings : constant sfContextSettings :=
(depthBits => 0,
stencilBits => 0,
antialiasingLevel => 0,
majorVersion => 1,
minorVersion => 0,
attributeFlags => 0,
sRgbCapable => sfFalse);
pragma Import (C, createUnicode, "sfWindow_createUnicode");
pragma Import (C, createFromHandle, "sfWindow_createFromHandle");
pragma Import (C, destroy, "sfWindow_destroy");
pragma Import (C, close, "sfWindow_close");
pragma Import (C, isOpen, "sfWindow_isOpen");
pragma Import (C, getSettings, "sfWindow_getSettings");
pragma Import (C, pollEvent, "sfWindow_pollEvent");
pragma Import (C, waitEvent, "sfWindow_waitEvent");
pragma Import (C, getPosition, "sfWindow_getPosition");
pragma Import (C, setPosition, "sfWindow_setPosition");
pragma Import (C, getSize, "sfWindow_getSize");
pragma Import (C, setSize, "sfWindow_setSize");
pragma Import (C, setUnicodeTitle, "sfWindow_setUnicodeTitle");
pragma Import (C, setIcon, "sfWindow_setIcon");
pragma Import (C, setVisible, "sfWindow_setVisible");
pragma Import (C, setVerticalSyncEnabled, "sfWindow_setVerticalSyncEnabled");
pragma Import (C, setMouseCursorVisible, "sfWindow_setMouseCursorVisible");
pragma Import (C, setMouseCursorGrabbed, "sfWindow_setMouseCursorGrabbed");
pragma Import (C, setMouseCursor, "sfWindow_setMouseCursor");
pragma Import (C, setKeyRepeatEnabled, "sfWindow_setKeyRepeatEnabled");
pragma Import (C, setFramerateLimit, "sfWindow_setFramerateLimit");
pragma Import (C, setJoystickThreshold, "sfWindow_setJoystickThreshold");
pragma Import (C, setActive, "sfWindow_setActive");
pragma Import (C, requestFocus, "sfWindow_requestFocus");
pragma Import (C, hasFocus, "sfWindow_hasFocus");
pragma Import (C, display, "sfWindow_display");
pragma Import (C, getSystemHandle, "sfWindow_getSystemHandle");
end Sf.Window.Window;
|
awa/plugins/awa-storages/src/awa-storages-beans.adb | fuzzysloth/ada-awa | 0 | 6608 | -----------------------------------------------------------------------
-- awa-storages-beans -- Storage Ada Beans
-- Copyright (C) 2012, 2013, 2016 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Containers;
with ADO.Utils;
with ADO.Queries;
with ADO.Sessions;
with ADO.Objects;
with ADO.Sessions.Entities;
with AWA.Helpers.Requests;
with AWA.Workspaces.Models;
with AWA.Services.Contexts;
with AWA.Storages.Services;
package body AWA.Storages.Beans is
-- ------------------------------
-- Get the value identified by the name.
-- ------------------------------
overriding
function Get_Value (From : in Upload_Bean;
Name : in String) return Util.Beans.Objects.Object is
begin
if Name = "folderId" then
return ADO.Utils.To_Object (From.Folder_Id);
elsif From.Is_Null then
return Util.Beans.Objects.Null_Object;
else
return AWA.Storages.Models.Storage_Ref (From).Get_Value (Name);
end if;
end Get_Value;
-- ------------------------------
-- Set the value identified by the name.
-- ------------------------------
overriding
procedure Set_Value (From : in out Upload_Bean;
Name : in String;
Value : in Util.Beans.Objects.Object) is
Manager : constant Services.Storage_Service_Access := From.Module.Get_Storage_Manager;
Folder : Models.Storage_Folder_Ref;
Found : Boolean;
begin
if Name = "folderId" then
From.Folder_Id := ADO.Utils.To_Identifier (Value);
Manager.Load_Folder (Folder, From.Folder_Id);
From.Set_Folder (Folder);
elsif Name = "id" and then not Util.Beans.Objects.Is_Empty (Value) then
Manager.Load_Storage (From, ADO.Utils.To_Identifier (Value));
elsif Name = "name" then
Folder := Models.Storage_Folder_Ref (From.Get_Folder);
Manager.Load_Storage (From, From.Folder_Id, Util.Beans.Objects.To_String (Value), Found);
if not Found then
From.Set_Name (Util.Beans.Objects.To_String (Value));
end if;
From.Set_Folder (Folder);
end if;
end Set_Value;
-- ------------------------------
-- Save the uploaded file in the storage service.
-- ------------------------------
procedure Save_Part (Bean : in out Upload_Bean;
Part : in ASF.Parts.Part'Class) is
Manager : constant Services.Storage_Service_Access := Bean.Module.Get_Storage_Manager;
Name : constant String := Bean.Get_Name;
begin
if Name'Length = 0 then
Bean.Set_Name (Part.Get_Name);
end if;
Bean.Set_Mime_Type (Part.Get_Content_Type);
Bean.Set_File_Size (Part.Get_Size);
Manager.Save (Bean, Part, AWA.Storages.Models.DATABASE);
end Save_Part;
-- ------------------------------
-- Upload the file.
-- ------------------------------
procedure Upload (Bean : in out Upload_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is
pragma Unreferenced (Bean);
begin
Outcome := Ada.Strings.Unbounded.To_Unbounded_String ("success");
end Upload;
-- ------------------------------
-- Delete the file.
-- ------------------------------
procedure Delete (Bean : in out Upload_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is
Manager : constant Services.Storage_Service_Access := Bean.Module.Get_Storage_Manager;
begin
Manager.Delete (Bean);
Outcome := Ada.Strings.Unbounded.To_Unbounded_String ("success");
end Delete;
-- ------------------------------
-- Publish the file.
-- ------------------------------
overriding
procedure Publish (Bean : in out Upload_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is
Manager : constant Services.Storage_Service_Access := Bean.Module.Get_Storage_Manager;
Id : constant ADO.Identifier := Helpers.Requests.Get_Parameter ("id");
Value : constant Util.Beans.Objects.Object := Helpers.Requests.Get_Parameter ("status");
begin
Manager.Publish (Id, Util.Beans.Objects.To_Boolean (Value), Bean);
Outcome := Ada.Strings.Unbounded.To_Unbounded_String ("success");
end Publish;
-- ------------------------------
-- Create the Upload_Bean bean instance.
-- ------------------------------
function Create_Upload_Bean (Module : in AWA.Storages.Modules.Storage_Module_Access)
return Util.Beans.Basic.Readonly_Bean_Access is
Result : constant Upload_Bean_Access := new Upload_Bean;
begin
Result.Module := Module;
return Result.all'Access;
end Create_Upload_Bean;
-- ------------------------------
-- Get the value identified by the name.
-- ------------------------------
overriding
function Get_Value (From : in Folder_Bean;
Name : in String) return Util.Beans.Objects.Object is
begin
if ADO.Objects.Is_Null (From) then
return Util.Beans.Objects.Null_Object;
else
return AWA.Storages.Models.Storage_Folder_Ref (From).Get_Value (Name);
end if;
end Get_Value;
-- ------------------------------
-- Set the value identified by the name.
-- ------------------------------
overriding
procedure Set_Value (From : in out Folder_Bean;
Name : in String;
Value : in Util.Beans.Objects.Object) is
begin
if Name = "name" then
From.Set_Name (Util.Beans.Objects.To_String (Value));
end if;
end Set_Value;
-- ------------------------------
-- Create or save the folder.
-- ------------------------------
procedure Save (Bean : in out Folder_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is
Manager : constant Services.Storage_Service_Access := Bean.Module.Get_Storage_Manager;
begin
Manager.Save_Folder (Bean);
Outcome := Ada.Strings.Unbounded.To_Unbounded_String ("success");
end Save;
-- ------------------------------
-- Load the folder instance.
-- ------------------------------
procedure Load_Folder (Storage : in Storage_List_Bean) is
use AWA.Storages.Models;
use AWA.Services;
use type Ada.Containers.Count_Type;
Manager : constant Services.Storage_Service_Access := Storage.Module.Get_Storage_Manager;
begin
Load_Folders (Storage);
if Storage.Folder_List.List.Length > 0 then
Manager.Load_Folder (Storage.Folder_Bean.all,
Storage.Folder_List.List.Element (0).Id);
end if;
Storage.Flags (INIT_FOLDER) := True;
end Load_Folder;
-- ------------------------------
-- Load the list of folders.
-- ------------------------------
procedure Load_Folders (Storage : in Storage_List_Bean) is
use AWA.Storages.Models;
use AWA.Services;
use type ADO.Identifier;
Ctx : constant Contexts.Service_Context_Access := AWA.Services.Contexts.Current;
User : constant ADO.Identifier := Ctx.Get_User_Identifier;
Session : ADO.Sessions.Session := Storage.Module.Get_Session;
Query : ADO.Queries.Context;
begin
Query.Set_Query (AWA.Storages.Models.Query_Storage_Folder_List);
Query.Bind_Param ("user_id", User);
ADO.Sessions.Entities.Bind_Param (Query, "table",
AWA.Workspaces.Models.WORKSPACE_TABLE, Session);
AWA.Storages.Models.List (Storage.Folder_List_Bean.all, Session, Query);
Storage.Flags (INIT_FOLDER_LIST) := True;
end Load_Folders;
-- ------------------------------
-- Load the list of files associated with the current folder.
-- ------------------------------
procedure Load_Files (Storage : in Storage_List_Bean) is
use AWA.Storages.Models;
use AWA.Services;
Ctx : constant Contexts.Service_Context_Access := AWA.Services.Contexts.Current;
User : constant ADO.Identifier := Ctx.Get_User_Identifier;
Session : ADO.Sessions.Session := Storage.Module.Get_Session;
Query : ADO.Queries.Context;
begin
if not Storage.Init_Flags (INIT_FOLDER) then
Load_Folder (Storage);
end if;
Query.Set_Query (AWA.Storages.Models.Query_Storage_List);
Query.Bind_Param ("user_id", User);
ADO.Sessions.Entities.Bind_Param (Query, "table",
AWA.Workspaces.Models.WORKSPACE_TABLE, Session);
if Storage.Folder_Bean.Is_Null then
Query.Bind_Null_Param ("folder_id");
else
Query.Bind_Param ("folder_id", Storage.Folder_Bean.Get_Id);
end if;
AWA.Storages.Models.List (Storage.Files_List_Bean.all, Session, Query);
Storage.Flags (INIT_FILE_LIST) := True;
end Load_Files;
-- ------------------------------
-- Set the value identified by the name.
-- ------------------------------
overriding
procedure Set_Value (From : in out Storage_List_Bean;
Name : in String;
Value : in Util.Beans.Objects.Object) is
Manager : constant Services.Storage_Service_Access := From.Module.Get_Storage_Manager;
begin
if Name = "folderId" and not Util.Beans.Objects.Is_Empty (Value) then
Manager.Load_Folder (From.Folder, ADO.Identifier (Util.Beans.Objects.To_Integer (Value)));
From.Flags (INIT_FOLDER) := True;
end if;
end Set_Value;
overriding
function Get_Value (List : in Storage_List_Bean;
Name : in String) return Util.Beans.Objects.Object is
begin
if Name = "files" then
if not List.Init_Flags (INIT_FILE_LIST) then
Load_Files (List);
end if;
return Util.Beans.Objects.To_Object (Value => List.Files_List_Bean,
Storage => Util.Beans.Objects.STATIC);
elsif Name = "folders" then
if not List.Init_Flags (INIT_FOLDER_LIST) then
Load_Folders (List);
end if;
return Util.Beans.Objects.To_Object (Value => List.Folder_List_Bean,
Storage => Util.Beans.Objects.STATIC);
elsif Name = "folder" then
if not List.Init_Flags (INIT_FOLDER) then
Load_Folder (List);
end if;
if List.Folder_Bean.Is_Null then
return Util.Beans.Objects.Null_Object;
end if;
return Util.Beans.Objects.To_Object (Value => List.Folder_Bean,
Storage => Util.Beans.Objects.STATIC);
else
return Util.Beans.Objects.Null_Object;
end if;
end Get_Value;
-- ------------------------------
-- Load the files and folder information.
-- ------------------------------
overriding
procedure Load (List : in out Storage_List_Bean;
Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is
pragma Unreferenced (Outcome);
begin
Storage_List_Bean'Class (List).Load_Folders;
Storage_List_Bean'Class (List).Load_Files;
end Load;
-- ------------------------------
-- Create the Folder_List_Bean bean instance.
-- ------------------------------
function Create_Folder_List_Bean (Module : in AWA.Storages.Modules.Storage_Module_Access)
return Util.Beans.Basic.Readonly_Bean_Access is
use AWA.Storages.Models;
use AWA.Services;
use type ADO.Identifier;
Ctx : constant Contexts.Service_Context_Access := AWA.Services.Contexts.Current;
User : constant ADO.Identifier := Ctx.Get_User_Identifier;
Object : constant Folder_Info_List_Bean_Access := new Folder_Info_List_Bean;
Session : ADO.Sessions.Session := Module.Get_Session;
Query : ADO.Queries.Context;
begin
Query.Set_Query (AWA.Storages.Models.Query_Storage_Folder_List);
Query.Bind_Param ("user_id", User);
ADO.Sessions.Entities.Bind_Param (Query, "table",
AWA.Workspaces.Models.WORKSPACE_TABLE, Session);
AWA.Storages.Models.List (Object.all, Session, Query);
return Object.all'Access;
end Create_Folder_List_Bean;
-- ------------------------------
-- Create the Storage_List_Bean bean instance.
-- ------------------------------
function Create_Storage_List_Bean (Module : in AWA.Storages.Modules.Storage_Module_Access)
return Util.Beans.Basic.Readonly_Bean_Access is
Object : constant Storage_List_Bean_Access := new Storage_List_Bean;
begin
Object.Module := Module;
Object.Folder_Bean := Object.Folder'Access;
Object.Folder_List_Bean := Object.Folder_List'Access;
Object.Files_List_Bean := Object.Files_List'Access;
Object.Flags := Object.Init_Flags'Access;
return Object.all'Access;
end Create_Storage_List_Bean;
end AWA.Storages.Beans;
|
3-mid/impact/source/3d/collision/broadphase/impact-d3-collision-algorithm.adb | charlie5/lace | 20 | 1826 |
package body impact.d3.collision.Algorithm
is
function to_AlgorithmConstructionInfo (dispatcher : access impact.d3.Dispatcher.item'Class; temp : in Integer) return AlgorithmConstructionInfo
is
pragma Unreferenced (temp);
Self : AlgorithmConstructionInfo;
begin
Self.m_dispatcher1 := dispatcher;
return Self;
end to_AlgorithmConstructionInfo;
procedure define (Self : in out Item; ci : in AlgorithmConstructionInfo)
is
begin
Self.m_dispatcher := ci.m_dispatcher1;
end define;
procedure destruct (Self : in out Item)
is
begin
null;
end destruct;
procedure set_m_dispatcher (Self : in out Item; To : access impact.d3.Dispatcher.item'Class)
is
begin
Self.m_dispatcher := To;
end set_m_dispatcher;
function get_m_dispatcher (Self : in Item) return access impact.d3.Dispatcher.item'Class
is
begin
return Self.m_dispatcher;
end get_m_dispatcher;
end impact.d3.collision.Algorithm;
|
Build/Interpreters/Ozmoo/asm/vmem.asm | polluks/Puddle-BuildTools | 38 | 97168 | <reponame>polluks/Puddle-BuildTools<gh_stars>10-100
dynmem_size !byte 0, 0
vmem_cache_cnt !byte 0 ; current execution cache
vmem_cache_page_index !fill cache_pages + 1, 0
!ifdef TARGET_C128 {
vmem_cache_bank_index !fill cache_pages + 1, 0
}
!ifdef TARGET_PLUS4 {
SKIP_VMEM_BUFFERS = 1
} else {
!ifdef SKIP_BUFFER {
SKIP_VMEM_BUFFERS = 1
}
}
!ifndef SKIP_VMEM_BUFFERS {
get_free_vmem_buffer
; Protect buffer which z_pc points to
lda vmem_cache_cnt
tax
clc
adc #>vmem_cache_start
cmp z_pc_mempointer + 1
bne +
jsr inc_vmem_cache_cnt
txa
clc
adc #>vmem_cache_start ; start of cache
+ cmp mempointer + 1
bne +
; mempointer points to this page. Store $ff in zp_pc_h so mempointer won't be used
pha
lda #$ff
sta zp_pc_h
pla
+ stx vmem_cache_cnt
rts
inc_vmem_cache_cnt
ldx vmem_cache_cnt
inx
cpx #vmem_cache_count
bcc +
ldx #0
+ stx vmem_cache_cnt
rts
}
!ifndef VMEM {
; Non-virtual memory
read_byte_at_z_address
; Subroutine: Read the contents of a byte address in the Z-machine
; a,x,y (high, mid, low) contains address.
; Returns: value in a
; same page as before?
cpx zp_pc_l
bne .read_new_byte
; same 256 byte segment, just return
!ifdef SKIP_BUFFER {
txa
clc
adc #>story_start
cmp #first_banked_memory_page
bcs .read_under_rom
}
.return_result
+before_dynmem_read
lda (mempointer),y
+after_dynmem_read
rts
.read_new_byte
!ifndef TARGET_PLUS4 {
sty mempointer_y
}
txa
sta zp_pc_l
clc
adc #>story_start
sta mempointer + 1
!ifdef TARGET_PLUS4 {
bne .return_result ; Always branch
} else {
cmp #first_banked_memory_page
bcc .return_result
; Memory under IO / ROM
!ifdef SKIP_BUFFER {
.read_under_rom
+disable_interrupts
+set_memory_all_ram_unsafe
lda (mempointer),y
+set_memory_no_basic
+enable_interrupts
rts
} else {
; Check if this page is in cache
ldx #vmem_cache_count - 1
- cmp vmem_cache_page_index,x
bne +
txa
clc
adc #>vmem_cache_start
sta mempointer + 1
bne .return_result ; Always branch
+ dex
bpl -
; The requested page was not found in the cache
; copy vmem to vmem_cache (banking as needed)
pha
jsr get_free_vmem_buffer
sta mempointer + 1
sta vmem_temp
ldx vmem_cache_cnt
pla
sta vmem_cache_page_index,x
pha
ldy vmem_temp
pla
jsr copy_page
; set next cache to use when needed
jsr inc_vmem_cache_cnt
ldy mempointer_y
jmp .return_result
} ; Not SKIP_VMEM_BUFFERS
} ; Not TARGET_PLUS4
} else {
; virtual memory
; virtual memory address space
; Z1-Z3: 128 kB (0 - $1ffff)
; Z4-Z5: 256 kB (0 - $3ffff)
; Z6-Z8: 512 kB (0 - $7ffff)
;
; map structure: one entry for each block (512 bytes) of available virtual memory
; each map entry is:
; 1 byte: ZMachine offset high byte (1-3 lowest bits used for ZMachine offset, the rest used to store ticks since block was last used)
; 1 byte: ZMachine offset low byte
;
; needs 102*2=204 bytes for $3400-$FFFF
; will store in datasette_buffer
;
vmem_blocksize = 512
vmem_indiv_block_mask = >(vmem_blocksize - 1)
vmem_block_pagecount = vmem_blocksize / 256
vmap_max_size = (vmap_buffer_end - vmap_buffer_start) / 2
; If we go past this limit we get in trouble, since we overflow the memory area we can use.
; vmap_max_entries !byte 0 ; Moved to ZP
; vmap_used_entries !byte 0 ; Moved to ZP
vmap_blocks_preloaded !byte 0
vmap_z_l = vmap_buffer_start
vmap_z_h = vmap_z_l + vmap_max_size
vmap_first_ram_page !byte 0
vmap_index !byte 0 ; current vmap index matching the z pointer
vmem_offset_in_block !byte 0 ; 256 byte offset in 512 byte block (0-1)
; vmem_temp !byte 0
vmap_temp !byte 0,0,0
vmap_c64_offset !byte 0
!ifdef TARGET_C128 {
vmap_c64_offset_bank !byte 0
first_vmap_entry_in_bank_1 !byte 0
vmap_first_ram_page_in_bank_1 !byte 0
vmem_bank_temp !byte 0
}
vmem_tick !byte $e0
vmem_oldest_age !byte 0
vmem_oldest_index !byte 0
!ifdef Z8 {
vmem_tick_increment = 4
vmem_highbyte_mask = $03
} else {
!ifdef Z3 {
vmem_tick_increment = 1
vmem_highbyte_mask = $00
} else {
vmem_tick_increment = 2
vmem_highbyte_mask = $01
}
}
!ifdef COUNT_SWAPS {
vmem_swap_count !byte 0,0
}
!ifdef DEBUG {
!ifdef PREOPT {
print_optimized_vm_map
stx zp_temp ; Nonzero means premature exit
jsr printchar_flush
ldx #$ff
jsr erase_window
lda #0
sta streams_output_selected + 2
sta is_buffered_window
jsr print_following_string
!pet 13,"$po$:",0
ldx #0
- lda vmap_z_h,x
jsr print_byte_as_hex
lda vmap_z_l,x
jsr print_byte_as_hex
jsr colon
inx
cpx vmap_used_entries
bcc -
lda zp_temp
bne +++
; Print block that was just to be read
lda zp_pc_h
jsr print_byte_as_hex
lda zp_pc_l
jsr print_byte_as_hex
jsr colon
+++
jsr print_following_string
!pet "$$$$",0
jsr kernal_readchar ; read keyboard
jmp kernal_reset ; reset
}
!ifdef TRACE_VM {
print_vm_map
!zone {
; print caches
jsr space
lda #66
jsr streams_print_output
jsr space
lda vmem_cache_cnt
jsr printa
jsr space
jsr dollar
lda vmem_cache_page_index
jsr print_byte_as_hex
jsr space
jsr dollar
lda vmem_cache_page_index + 1
jsr print_byte_as_hex
jsr space
jsr dollar
lda vmem_cache_page_index + 2
jsr print_byte_as_hex
jsr space
jsr dollar
lda vmem_cache_page_index + 3
jsr print_byte_as_hex
jsr newline
ldy #0
- ; print
cpy #10
bcs +
jsr space ; alignment when <10
+ jsr printy
jsr space
lda vmap_z_h,y ; zmachine mem offset ($0 -
and #%11100000
jsr print_byte_as_hex
jsr space
jsr dollar
lda vmap_z_h,y ; zmachine mem offset ($0 -
and #%00011111
jsr printa
lda vmap_z_l,y ; zmachine mem offset ($0 -
jsr print_byte_as_hex
lda #0 ; add 00
jsr print_byte_as_hex
jsr space
tya
asl
adc vmap_first_ram_page
jsr print_byte_as_hex
lda #$30
jsr streams_print_output
lda #$30
jsr streams_print_output
jsr newline
.next_entry
iny
cpy vmap_used_entries
bcc -
rts
}
}
}
load_blocks_from_index
; vmap_index = index to load
; side effects: a,y,x,status destroyed
!ifdef TRACE_FLOPPY {
jsr dollar
jsr dollar
lda vmap_index
jsr print_byte_as_hex
jsr comma
tax
lda vmap_z_h,x
jsr print_byte_as_hex
lda vmap_z_l,x
jsr print_byte_as_hex
}
lda vmap_index
tax
!ifdef TARGET_C128 {
ldy #0
sty vmem_bank_temp
cmp first_vmap_entry_in_bank_1
bcc .in_bank_0
sbc first_vmap_entry_in_bank_1 ; Carry is already set
asl
adc vmap_first_ram_page_in_bank_1 ; Carry is already clear
tay ; This value need to be in y when we jump to load_blocks_from_index_using_cache
inc vmem_bank_temp
bne load_blocks_from_index_using_cache ; Always branch
.in_bank_0
}
asl
; Carry is already clear
adc vmap_first_ram_page
!ifdef TRACE_FLOPPY {
jsr comma
jsr print_byte_as_hex
}
sta readblocks_mempos + 1
!ifndef TARGET_PLUS4 {
tay ; This value need to be in y if we jump to load_blocks_from_index_using_cache
cmp #first_banked_memory_page
bcs load_blocks_from_index_using_cache
}
lda #vmem_block_pagecount ; number of blocks
sta readblocks_numblocks
lda vmap_z_l,x ; start block
asl
sta readblocks_currentblock
!if vmem_highbyte_mask > 0 {
lda vmap_z_h,x ; start block
and #vmem_highbyte_mask
} else {
lda #0
}
rol
sta readblocks_currentblock + 1
jsr readblocks
!ifdef TRACE_VM {
jsr print_following_string
!pet "load_blocks (normal) ",0
jsr print_vm_map
}
rts
!ifndef TARGET_PLUS4 {
load_blocks_from_index_using_cache
; vmap_index = index to load
; vmem_cache_cnt = which 256 byte cache use as transfer buffer
; y = first c64 memory page where it should be loaded
; For C128: vmem_bank_temp = RAM bank in which page y resides
; side effects: a,y,x,status destroyed
; initialise block copy function (see below)
jsr get_free_vmem_buffer
sta vmem_temp
sty vmem_temp + 1
ldx #0 ; Start with page 0 in this 512-byte block
; read next into vmem_cache
- lda vmem_temp ; start of cache
sta readblocks_mempos + 1
txa
pha
sta vmap_temp
ldx vmap_index
lda vmap_z_l,x ; start block
asl
ora vmap_temp
sta readblocks_currentblock
!if vmem_highbyte_mask > 0 {
lda vmap_z_h,x ; start block
and #vmem_highbyte_mask
} else {
lda #0
}
rol
sta readblocks_currentblock + 1
jsr readblock
; copy vmem_cache to block (banking as needed)
lda vmem_temp
ldy vmem_temp + 1
!ifdef TARGET_C128 {
ldx vmem_bank_temp
jsr copy_page_c128
} else {
jsr copy_page
}
inc vmem_temp + 1
pla
tax
inx
cpx #vmem_block_pagecount ; read 2 blocks (512 bytes) in total
bcc -
ldx vmem_temp + 1
dex
txa
ldx vmem_cache_cnt
sta vmem_cache_page_index,x
!ifdef TARGET_C128 {
lda vmem_bank_temp
sta vmem_cache_bank_index,x
}
rts
}
read_byte_at_z_address
; Subroutine: Read the contents of a byte address in the Z-machine
; a,x,y (high, mid, low) contains address.
; Returns: value in a
!ifdef TARGET_C128 {
; TODO: For C128, we do the dynmem check both here and 40 lines down. Make it better!
cmp #0
bne .not_dynmem
cpx nonstored_pages
bcs .not_dynmem
; This is in dynmem, so we always read from bank 1
txa
clc
adc #>story_start_bank_1
sta vmem_temp + 1
lda #0
sta vmem_temp
lda #vmem_temp
sta $02aa
ldx #$7f
jmp $02a2
.not_dynmem
}
; same page as before?
cpx zp_pc_l
bne .read_new_byte
cmp zp_pc_h
bne .read_new_byte
; same 256 byte segment, just return
.read_and_return_value
+before_dynmem_read
lda (mempointer),y
+after_dynmem_read
rts
.read_new_byte
sta zp_pc_h
stx zp_pc_l
!ifndef TARGET_C128 {
cmp #0
bne .non_dynmem
cpx nonstored_pages
bcs .non_dynmem
; Dynmem access
txa
adc #>story_start
sta mempointer + 1
bne .read_and_return_value ; Always branch
}
.non_dynmem
sty mempointer_y
lsr
sta vmem_temp + 1
lda #0
sta vmap_quick_index_match
txa
and #vmem_indiv_block_mask ; keep index into kB chunk
sta vmem_offset_in_block
txa
ror
sta vmem_temp
; Check quick index first
ldx #vmap_quick_index_length - 1
- ldy vmap_quick_index,x
cmp vmap_z_l,y ; zmachine mem offset ($0 -
beq .quick_index_candidate
-- dex
bpl -
bmi .no_quick_index_match ; Always branch
.quick_index_candidate
!if vmem_highbyte_mask > 0 {
lda vmap_z_h,y
and #vmem_highbyte_mask
cmp vmem_temp + 1
beq .quick_index_match
lda vmem_temp
jmp --
}
.quick_index_match
inc vmap_quick_index_match
sty vmap_index
jmp .index_found
.no_quick_index_match
lda vmem_temp
; is there a block with this address in map?
ldx vmap_used_entries
- ; compare with low byte
; TODO: It would be helpful to ensure vmap_z_l - 1 is near the start of
; a page, so the following frequently executed instruction doesn't
; incur too many extra page-crossing cycles.
cmp vmap_z_l - 1,x ; zmachine mem offset ($0 -
beq +
.check_next_block
dex
bne -
beq .no_such_block ; Always branch
; is the highbyte correct?
+
!if vmem_highbyte_mask > 0 {
lda vmap_z_h - 1,x
and #vmem_highbyte_mask
cmp vmem_temp + 1
beq .correct_vmap_index_found
lda vmem_temp
jmp .check_next_block
}
.correct_vmap_index_found
; vm index for this block found
dex
stx vmap_index
ldy vmap_quick_index_match
bne ++ ; This is already in the quick index, don't store it again
txa
ldx vmap_next_quick_index
sta vmap_quick_index,x
inx
cpx #vmap_quick_index_length
bcc +
ldx #0
+ stx vmap_next_quick_index
++ jmp .index_found
; no index found, add last
.no_such_block
; Load 512 byte block into RAM
!if SUPPORT_REU = 1 {
; First, check if this is initial REU loading
ldx use_reu
cpx #$80
bne .not_initial_reu_loading
ldx #0
lda vmap_z_l ; ,x is not needed here, since x is always 0
asl
cmp z_pc + 1
bne .block_chosen
inx ; Set x to 1
bne .block_chosen ; Always branch
}
.not_initial_reu_loading
ldx vmap_used_entries
cpx vmap_max_entries
bcc .block_chosen
!ifdef DEBUG {
!ifdef PREOPT {
ldx #0
jmp print_optimized_vm_map
}
}
; Find the best block to replace
; Create a copy of the block z_pc points to, shifted one step to the right,
; to be comparable to vmap entries
lda z_pc
lsr
sta vmap_temp + 1
lda z_pc + 1
ror
sta vmap_temp + 2
; Store very recent oldest_age so the first valid index in the following
; loop will be picked as the first candidate.
lda #$ff
!ifdef DEBUG {
sta vmem_oldest_index
}
sta vmem_oldest_age
; Check all indexes to find something older
ldx vmap_used_entries
dex
- lda vmap_z_h,x
cmp vmem_oldest_age
bcs +
; Found older
; Skip if z_pc points here; it could be in either page of the block.
ldy vmap_z_l,x
cpy vmap_temp + 2
!if vmem_highbyte_mask > 0 {
bne ++
tay
and #vmem_highbyte_mask
cmp vmap_temp + 1
beq +
tya
} else {
beq +
}
++ sta vmem_oldest_age
stx vmem_oldest_index
+ dex
cpx #$ff
bne -
; Load chosen index
ldx vmem_oldest_index
.block_chosen
!ifdef COUNT_SWAPS {
inc vmem_swap_count + 1
bne ++
inc vmem_swap_count
++
}
cpx vmap_used_entries
bcc +
; This block was unoccupied
inc vmap_used_entries
+
txa
!ifdef TARGET_C128 {
; TODO: C128: Check if x is >= vmap_first_ram_page_in_bank_1
cmp first_vmap_entry_in_bank_1
bcc + ; Not in bank 1
ldy #1
sty vmap_c64_offset_bank
sbc first_vmap_entry_in_bank_1 ; Carry already set
clc
asl ; Multiply by 2 to count in 256-byte pages rather than 512-byte vmem blocks
adc vmap_first_ram_page_in_bank_1
bne ++ ; Always branch
+
ldy #0
sty vmap_c64_offset_bank
}
asl
; Carry is already clear
adc vmap_first_ram_page
++ sta vmap_c64_offset
!ifdef DEBUG {
lda vmem_oldest_index
cmp #$ff
bne +
lda #ERROR_NO_VMEM_INDEX
jsr fatalerror
+
}
; We have now decided on a map position where we will store the requested block. Position is held in x.
!ifdef DEBUG {
!ifdef PRINT_SWAPS {
lda streams_output_selected + 2
beq +
lda #20
jsr s_printchar
lda #64
jsr s_printchar
lda #20
jsr s_printchar
jmp ++
+ jsr space
jsr dollar
txa
jsr print_byte_as_hex
jsr colon
lda vmap_c64_offset
jsr dollar
jsr print_byte_as_hex
jsr colon
cpx vmap_used_entries
bcs .printswaps_part_2
lda vmap_z_h,x
and #$7
jsr dollar
jsr print_byte_as_hex
lda vmap_z_l,x
jsr print_byte_as_hex
.printswaps_part_2
jsr arrow
jsr dollar
lda zp_pc_h
jsr print_byte_as_hex
lda zp_pc_l
jsr print_byte_as_hex
jsr space
++
}
}
!ifndef TARGET_PLUS4 {
; Forget any cache pages belonging to the old block at this position.
lda vmap_c64_offset
cmp #first_banked_memory_page
bcc .cant_be_in_cache
ldy #vmem_cache_count - 1
- lda vmem_cache_page_index,y
and #(255 - vmem_indiv_block_mask)
cmp vmap_c64_offset
bne +
!ifdef TARGET_C128 {
lda vmem_cache_bank_index,y
cmp vmap_c64_offset_bank
bne +
}
lda #0
sta vmem_cache_page_index,y
+ dey
bpl -
.cant_be_in_cache
} ; not TARGET_PLUS4
; Update tick
lda vmem_tick
clc
adc #vmem_tick_increment
bcc +
; Tick counter has passed max value. Decrease tick value for all pages. Set tick counter back.
txa
pha
ldx vmap_used_entries
dex
- lda vmap_z_h,x
sec
sbc #$80
bpl ++
and #vmem_highbyte_mask
++ sta vmap_z_h,x
dex
bpl -
pla
tax
lda #$80
+ sta vmem_tick
; Store address of 512 byte block to load, then load it
lda zp_pc_h
lsr
sta vmap_z_h,x
lda zp_pc_l
ror
sta vmap_z_l,x
stx vmap_index
jsr load_blocks_from_index
.index_found
; index found
; Update tick for last access
ldx vmap_index
!if vmem_highbyte_mask > 0 {
lda vmap_z_h,x
and #vmem_highbyte_mask
ora vmem_tick
} else {
lda vmem_tick
}
sta vmap_z_h,x
txa
!ifdef TARGET_C128 {
cmp first_vmap_entry_in_bank_1
bcc .not_in_bank_1
ldy #1
sty vmap_c64_offset_bank
sbc first_vmap_entry_in_bank_1 ; Carry already set
asl ; Multiply by 2 to count in 256-byte pages rather than 512-byte vmem blocks
adc vmap_first_ram_page_in_bank_1 ; Carry already clear
bne .store_offset ; Always branch
.not_in_bank_1
ldy #0
sty vmap_c64_offset_bank
}
asl
; Carry is already clear
adc vmap_first_ram_page
.store_offset
sta vmap_c64_offset
!ifndef TARGET_PLUS4 {
!ifdef TARGET_C128 {
; Bank is in y at this point
cpy #0
bne .swappable_memory
}
cmp #first_banked_memory_page
bcc .unswappable
.swappable_memory
; this is swappable memory
; update vmem_cache if needed
clc
adc vmem_offset_in_block
; Check if this page is in cache
ldx #vmem_cache_count - 1
tay
- tya
cmp vmem_cache_page_index,x
!ifdef TARGET_C128 {
bne .not_a_match
lda vmap_c64_offset_bank
cmp vmem_cache_bank_index,x
bne .not_a_match
beq.cache_updated
.not_a_match
} else {
beq .cache_updated
}
dex
bpl -
; The requested page was not found in the cache
; copy vmem to vmem_cache (banking as needed)
sty vmem_temp
jsr get_free_vmem_buffer
tay
!ifdef TARGET_C128 {
lda vmap_c64_offset_bank
sta vmem_cache_bank_index,x
}
lda vmem_temp
sta vmem_cache_page_index,x
!ifdef TARGET_C128 {
stx vmem_temp + 1
ldx vmap_c64_offset_bank
jsr copy_page_c128
ldx vmem_temp + 1
} else {
jsr copy_page
}
lda vmem_cache_cnt
jsr inc_vmem_cache_cnt
tax
.cache_updated
; x is now vmem_cache (0-3) where current z_pc is
txa
clc
adc #>vmem_cache_start
sta mempointer + 1
ldx vmap_index
bne .return_result ; always true
.unswappable
} ; not TARGET_PLUS4
; update memory pointer
lda vmem_offset_in_block
clc
adc vmap_c64_offset
sta mempointer + 1
.return_result
ldy mempointer_y
+before_dynmem_read
lda (mempointer),y
+after_dynmem_read
rts
}
|
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c54a04a.ada | best08618/asylo | 7 | 19211 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c54a04a.ada
-- C54A04A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- CHECK THAT PRIVATE (DISCRETE) TYPES MAY BE USED IN CASE EXPRESSIONS
-- WITHIN THE DEFINING PACKAGE.
-- DAT 1/29/81
WITH REPORT;
PROCEDURE C54A04A IS
USE REPORT;
PACKAGE P IS
TYPE T IS PRIVATE;
TYPE LT IS LIMITED PRIVATE;
PRIVATE
TYPE T IS ('Z', X);
TYPE LT IS NEW INTEGER RANGE 0 .. 1;
END P;
VT : P.T;
VLT : P.LT;
PACKAGE BODY P IS
BEGIN
TEST ("C54A04A", "PRIVATE DISCRETE TYPES MAY APPEAR IN " &
"CASE EXPRESSIONS IN PACKAGE BODY");
VT := 'Z';
VLT := LT (IDENT_INT (1));
CASE VT IS
WHEN X => FAILED ("WRONG CASE 1");
WHEN 'Z' => NULL; -- OK
END CASE;
CASE VLT IS
WHEN 1 => NULL; -- OK
WHEN 0 => FAILED ("WRONG CASE 2");
END CASE;
END P;
BEGIN
-- TEST CALLED FROM PACKAGE BODY, ALREADY ELABORATED.
RESULT;
END C54A04A;
|
dv3/qpc/fd/init.asm | olifink/smsqe | 0 | 5197 | <gh_stars>0
; DV3 QPC Floppy Disk Initialisation V3.00 1992 <NAME>
section dv3
xdef fd_init
xref.l fd_vers
xref.s fd.rev
xref dv3_link
xref gu_achpp
xref gu_rchp
include 'dev8_dv3_keys'
include 'dev8_dv3_fd_keys'
include 'dev8_dv3_mac'
include 'dev8_mac_basic'
include 'dev8_mac_proc'
include 'dev8_mac_assert'
include 'dev8_keys_qlv'
;+++
; DV3 QPC floppy disk initialisation
;
; a3 smashed
;---
fd_init
lea fd_proctab,a1
move.w sb.inipr,a2
jsr (a2) ; link in procedures
lea fd_table,a3
jsr dv3_link ; link in fd driver
moveq #0,d0
rts
fd_table
link_table FLP, fd.rev, fdl_end2, ddf_dtop
buffered
track
sectl 512
mtype ddl.flp
density ddf.sd,ddf.dd,ddf.hd
poll fd_poll
check fd_check
direct fd_direct
rsect fd_rdirect
wsect fd_wdirect
slbfill fd_slbfill
slbupd fd_slbupd
dflush fd_dflush
fflush fd_fflush
mformat fd_mformat
status fd_fstatus
done fd_done
thing fd_tname,fd_thing
; assert fdl_drvs,fdl_actm-1,fdl_rnup-2,fdl_apnd-3
; preset_b fdl_drvs, $ff,0,fdl.rnup,fdl.apnd
assert fdl_drvs,fdl_actm-1,fdl_rnup-2,fdl_apnd-3
preset_b fdl_drvs, $ff,0,fdl.rnup,fdl.apmc
assert fdl_maxd,fdl_offd-1,fdl_maxt-2,fdl_defd-4
preset_b fdl_maxd, 2, 0, 0, fdl.maxt, $ff, 0
preset_b fdl_mxdns,ddf.hd ; no higher than HD
link_end fdl_buff
section exten
proc_thg {FLP Control}
fun_thg {FLP Control}
flp_use proc {USE }
flp_drive proc {DRIV}
flp_sec proc {SEC }
flp_start proc {STRT}
flp_track proc {TRAK}
flp_density proc {DENS}
flp_step proc {STEP}
;flp_drive$ fun {DRV$},260 ; Macro does MOVEQ, i.e. val gets -ve!
flp_drive$ move.l #260,d7
bsr.s fun_thg
dc.l 'DRV$'
fd_proctab
proc_stt
proc_ref FLP_USE
proc_ref FLP_DRIVE
proc_ref FLP_SEC
proc_ref FLP_START
proc_ref FLP_TRACK
proc_ref FLP_DENSITY
proc_ref FLP_STEP
proc_end
proc_stt
proc_ref FLP_DRIVE$
proc_end
end
|
Mid-Term/Solution/1.asm | afra-tech/CSE331L-Section-1-Fall20-NSU | 0 | 94269 |
.MODEL SMALL
.STACK 100H
.DATA
MSG1 DB 13, 10, "ENTER A NUMBER: $"
MSG2 DB 13, 10, "SMALLEST: $"
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
LEA DX, MSG1
MOV AH, 9
INT 21H
MOV AH, 1
INT 21H
MOV BL, AL
LEA DX, MSG1
MOV AH, 9
INT 21H
MOV AH, 1
INT 21H
ADD BL, AL
LEA DX, MSG2
MOV AH, 9
INT 21H
MOV DL, BL
MOV AH, 2
INT 21H
MOV AH, 4CH
INT 21H
MAIN ENDP
END MAIN
|
grep.asm | RodrigoVgt/xv6-lottery-schedule | 0 | 25892 | <filename>grep.asm<gh_stars>0
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <grep>:
char buf[1024];
int match(char*, char*);
void
grep(char *pattern, int fd)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 18 sub $0x18,%esp
int n, m;
char *p, *q;
m = 0;
6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){
d: e9 b6 00 00 00 jmp c8 <grep+0xc8>
m += n;
12: 8b 45 ec mov -0x14(%ebp),%eax
15: 01 45 f4 add %eax,-0xc(%ebp)
buf[m] = '\0';
18: 8b 45 f4 mov -0xc(%ebp),%eax
1b: 05 00 0e 00 00 add $0xe00,%eax
20: c6 00 00 movb $0x0,(%eax)
p = buf;
23: c7 45 f0 00 0e 00 00 movl $0xe00,-0x10(%ebp)
while((q = strchr(p, '\n')) != 0){
2a: eb 4a jmp 76 <grep+0x76>
*q = 0;
2c: 8b 45 e8 mov -0x18(%ebp),%eax
2f: c6 00 00 movb $0x0,(%eax)
if(match(pattern, p)){
32: 83 ec 08 sub $0x8,%esp
35: ff 75 f0 pushl -0x10(%ebp)
38: ff 75 08 pushl 0x8(%ebp)
3b: e8 9a 01 00 00 call 1da <match>
40: 83 c4 10 add $0x10,%esp
43: 85 c0 test %eax,%eax
45: 74 26 je 6d <grep+0x6d>
*q = '\n';
47: 8b 45 e8 mov -0x18(%ebp),%eax
4a: c6 00 0a movb $0xa,(%eax)
write(1, p, q+1 - p);
4d: 8b 45 e8 mov -0x18(%ebp),%eax
50: 83 c0 01 add $0x1,%eax
53: 89 c2 mov %eax,%edx
55: 8b 45 f0 mov -0x10(%ebp),%eax
58: 29 c2 sub %eax,%edx
5a: 89 d0 mov %edx,%eax
5c: 83 ec 04 sub $0x4,%esp
5f: 50 push %eax
60: ff 75 f0 pushl -0x10(%ebp)
63: 6a 01 push $0x1
65: e8 43 05 00 00 call 5ad <write>
6a: 83 c4 10 add $0x10,%esp
}
p = q+1;
6d: 8b 45 e8 mov -0x18(%ebp),%eax
70: 83 c0 01 add $0x1,%eax
73: 89 45 f0 mov %eax,-0x10(%ebp)
m = 0;
while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){
m += n;
buf[m] = '\0';
p = buf;
while((q = strchr(p, '\n')) != 0){
76: 83 ec 08 sub $0x8,%esp
79: 6a 0a push $0xa
7b: ff 75 f0 pushl -0x10(%ebp)
7e: e8 89 03 00 00 call 40c <strchr>
83: 83 c4 10 add $0x10,%esp
86: 89 45 e8 mov %eax,-0x18(%ebp)
89: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
8d: 75 9d jne 2c <grep+0x2c>
*q = '\n';
write(1, p, q+1 - p);
}
p = q+1;
}
if(p == buf)
8f: 81 7d f0 00 0e 00 00 cmpl $0xe00,-0x10(%ebp)
96: 75 07 jne 9f <grep+0x9f>
m = 0;
98: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
if(m > 0){
9f: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
a3: 7e 23 jle c8 <grep+0xc8>
m -= p - buf;
a5: 8b 45 f0 mov -0x10(%ebp),%eax
a8: ba 00 0e 00 00 mov $0xe00,%edx
ad: 29 d0 sub %edx,%eax
af: 29 45 f4 sub %eax,-0xc(%ebp)
memmove(buf, p, m);
b2: 83 ec 04 sub $0x4,%esp
b5: ff 75 f4 pushl -0xc(%ebp)
b8: ff 75 f0 pushl -0x10(%ebp)
bb: 68 00 0e 00 00 push $0xe00
c0: e8 83 04 00 00 call 548 <memmove>
c5: 83 c4 10 add $0x10,%esp
{
int n, m;
char *p, *q;
m = 0;
while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){
c8: 8b 45 f4 mov -0xc(%ebp),%eax
cb: ba ff 03 00 00 mov $0x3ff,%edx
d0: 29 c2 sub %eax,%edx
d2: 89 d0 mov %edx,%eax
d4: 89 c2 mov %eax,%edx
d6: 8b 45 f4 mov -0xc(%ebp),%eax
d9: 05 00 0e 00 00 add $0xe00,%eax
de: 83 ec 04 sub $0x4,%esp
e1: 52 push %edx
e2: 50 push %eax
e3: ff 75 0c pushl 0xc(%ebp)
e6: e8 ba 04 00 00 call 5a5 <read>
eb: 83 c4 10 add $0x10,%esp
ee: 89 45 ec mov %eax,-0x14(%ebp)
f1: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
f5: 0f 8f 17 ff ff ff jg 12 <grep+0x12>
if(m > 0){
m -= p - buf;
memmove(buf, p, m);
}
}
}
fb: 90 nop
fc: c9 leave
fd: c3 ret
000000fe <main>:
int
main(int argc, char *argv[])
{
fe: 8d 4c 24 04 lea 0x4(%esp),%ecx
102: 83 e4 f0 and $0xfffffff0,%esp
105: ff 71 fc pushl -0x4(%ecx)
108: 55 push %ebp
109: 89 e5 mov %esp,%ebp
10b: 53 push %ebx
10c: 51 push %ecx
10d: 83 ec 10 sub $0x10,%esp
110: 89 cb mov %ecx,%ebx
int fd, i;
char *pattern;
if(argc <= 1){
112: 83 3b 01 cmpl $0x1,(%ebx)
115: 7f 17 jg 12e <main+0x30>
printf(2, "usage: grep pattern [file ...]\n");
117: 83 ec 08 sub $0x8,%esp
11a: 68 bc 0a 00 00 push $0xabc
11f: 6a 02 push $0x2
121: e8 de 05 00 00 call 704 <printf>
126: 83 c4 10 add $0x10,%esp
exit();
129: e8 5f 04 00 00 call 58d <exit>
}
pattern = argv[1];
12e: 8b 43 04 mov 0x4(%ebx),%eax
131: 8b 40 04 mov 0x4(%eax),%eax
134: 89 45 f0 mov %eax,-0x10(%ebp)
if(argc <= 2){
137: 83 3b 02 cmpl $0x2,(%ebx)
13a: 7f 15 jg 151 <main+0x53>
grep(pattern, 0);
13c: 83 ec 08 sub $0x8,%esp
13f: 6a 00 push $0x0
141: ff 75 f0 pushl -0x10(%ebp)
144: e8 b7 fe ff ff call 0 <grep>
149: 83 c4 10 add $0x10,%esp
exit();
14c: e8 3c 04 00 00 call 58d <exit>
}
for(i = 2; i < argc; i++){
151: c7 45 f4 02 00 00 00 movl $0x2,-0xc(%ebp)
158: eb 74 jmp 1ce <main+0xd0>
if((fd = open(argv[i], 0)) < 0){
15a: 8b 45 f4 mov -0xc(%ebp),%eax
15d: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
164: 8b 43 04 mov 0x4(%ebx),%eax
167: 01 d0 add %edx,%eax
169: 8b 00 mov (%eax),%eax
16b: 83 ec 08 sub $0x8,%esp
16e: 6a 00 push $0x0
170: 50 push %eax
171: e8 57 04 00 00 call 5cd <open>
176: 83 c4 10 add $0x10,%esp
179: 89 45 ec mov %eax,-0x14(%ebp)
17c: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
180: 79 29 jns 1ab <main+0xad>
printf(1, "grep: cannot open %s\n", argv[i]);
182: 8b 45 f4 mov -0xc(%ebp),%eax
185: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
18c: 8b 43 04 mov 0x4(%ebx),%eax
18f: 01 d0 add %edx,%eax
191: 8b 00 mov (%eax),%eax
193: 83 ec 04 sub $0x4,%esp
196: 50 push %eax
197: 68 dc 0a 00 00 push $0xadc
19c: 6a 01 push $0x1
19e: e8 61 05 00 00 call 704 <printf>
1a3: 83 c4 10 add $0x10,%esp
exit();
1a6: e8 e2 03 00 00 call 58d <exit>
}
grep(pattern, fd);
1ab: 83 ec 08 sub $0x8,%esp
1ae: ff 75 ec pushl -0x14(%ebp)
1b1: ff 75 f0 pushl -0x10(%ebp)
1b4: e8 47 fe ff ff call 0 <grep>
1b9: 83 c4 10 add $0x10,%esp
close(fd);
1bc: 83 ec 0c sub $0xc,%esp
1bf: ff 75 ec pushl -0x14(%ebp)
1c2: e8 ee 03 00 00 call 5b5 <close>
1c7: 83 c4 10 add $0x10,%esp
if(argc <= 2){
grep(pattern, 0);
exit();
}
for(i = 2; i < argc; i++){
1ca: 83 45 f4 01 addl $0x1,-0xc(%ebp)
1ce: 8b 45 f4 mov -0xc(%ebp),%eax
1d1: 3b 03 cmp (%ebx),%eax
1d3: 7c 85 jl 15a <main+0x5c>
exit();
}
grep(pattern, fd);
close(fd);
}
exit();
1d5: e8 b3 03 00 00 call 58d <exit>
000001da <match>:
int matchhere(char*, char*);
int matchstar(int, char*, char*);
int
match(char *re, char *text)
{
1da: 55 push %ebp
1db: 89 e5 mov %esp,%ebp
1dd: 83 ec 08 sub $0x8,%esp
if(re[0] == '^')
1e0: 8b 45 08 mov 0x8(%ebp),%eax
1e3: 0f b6 00 movzbl (%eax),%eax
1e6: 3c 5e cmp $0x5e,%al
1e8: 75 17 jne 201 <match+0x27>
return matchhere(re+1, text);
1ea: 8b 45 08 mov 0x8(%ebp),%eax
1ed: 83 c0 01 add $0x1,%eax
1f0: 83 ec 08 sub $0x8,%esp
1f3: ff 75 0c pushl 0xc(%ebp)
1f6: 50 push %eax
1f7: e8 38 00 00 00 call 234 <matchhere>
1fc: 83 c4 10 add $0x10,%esp
1ff: eb 31 jmp 232 <match+0x58>
do{ // must look at empty string
if(matchhere(re, text))
201: 83 ec 08 sub $0x8,%esp
204: ff 75 0c pushl 0xc(%ebp)
207: ff 75 08 pushl 0x8(%ebp)
20a: e8 25 00 00 00 call 234 <matchhere>
20f: 83 c4 10 add $0x10,%esp
212: 85 c0 test %eax,%eax
214: 74 07 je 21d <match+0x43>
return 1;
216: b8 01 00 00 00 mov $0x1,%eax
21b: eb 15 jmp 232 <match+0x58>
}while(*text++ != '\0');
21d: 8b 45 0c mov 0xc(%ebp),%eax
220: 8d 50 01 lea 0x1(%eax),%edx
223: 89 55 0c mov %edx,0xc(%ebp)
226: 0f b6 00 movzbl (%eax),%eax
229: 84 c0 test %al,%al
22b: 75 d4 jne 201 <match+0x27>
return 0;
22d: b8 00 00 00 00 mov $0x0,%eax
}
232: c9 leave
233: c3 ret
00000234 <matchhere>:
// matchhere: search for re at beginning of text
int matchhere(char *re, char *text)
{
234: 55 push %ebp
235: 89 e5 mov %esp,%ebp
237: 83 ec 08 sub $0x8,%esp
if(re[0] == '\0')
23a: 8b 45 08 mov 0x8(%ebp),%eax
23d: 0f b6 00 movzbl (%eax),%eax
240: 84 c0 test %al,%al
242: 75 0a jne 24e <matchhere+0x1a>
return 1;
244: b8 01 00 00 00 mov $0x1,%eax
249: e9 99 00 00 00 jmp 2e7 <matchhere+0xb3>
if(re[1] == '*')
24e: 8b 45 08 mov 0x8(%ebp),%eax
251: 83 c0 01 add $0x1,%eax
254: 0f b6 00 movzbl (%eax),%eax
257: 3c 2a cmp $0x2a,%al
259: 75 21 jne 27c <matchhere+0x48>
return matchstar(re[0], re+2, text);
25b: 8b 45 08 mov 0x8(%ebp),%eax
25e: 8d 50 02 lea 0x2(%eax),%edx
261: 8b 45 08 mov 0x8(%ebp),%eax
264: 0f b6 00 movzbl (%eax),%eax
267: 0f be c0 movsbl %al,%eax
26a: 83 ec 04 sub $0x4,%esp
26d: ff 75 0c pushl 0xc(%ebp)
270: 52 push %edx
271: 50 push %eax
272: e8 72 00 00 00 call 2e9 <matchstar>
277: 83 c4 10 add $0x10,%esp
27a: eb 6b jmp 2e7 <matchhere+0xb3>
if(re[0] == '$' && re[1] == '\0')
27c: 8b 45 08 mov 0x8(%ebp),%eax
27f: 0f b6 00 movzbl (%eax),%eax
282: 3c 24 cmp $0x24,%al
284: 75 1d jne 2a3 <matchhere+0x6f>
286: 8b 45 08 mov 0x8(%ebp),%eax
289: 83 c0 01 add $0x1,%eax
28c: 0f b6 00 movzbl (%eax),%eax
28f: 84 c0 test %al,%al
291: 75 10 jne 2a3 <matchhere+0x6f>
return *text == '\0';
293: 8b 45 0c mov 0xc(%ebp),%eax
296: 0f b6 00 movzbl (%eax),%eax
299: 84 c0 test %al,%al
29b: 0f 94 c0 sete %al
29e: 0f b6 c0 movzbl %al,%eax
2a1: eb 44 jmp 2e7 <matchhere+0xb3>
if(*text!='\0' && (re[0]=='.' || re[0]==*text))
2a3: 8b 45 0c mov 0xc(%ebp),%eax
2a6: 0f b6 00 movzbl (%eax),%eax
2a9: 84 c0 test %al,%al
2ab: 74 35 je 2e2 <matchhere+0xae>
2ad: 8b 45 08 mov 0x8(%ebp),%eax
2b0: 0f b6 00 movzbl (%eax),%eax
2b3: 3c 2e cmp $0x2e,%al
2b5: 74 10 je 2c7 <matchhere+0x93>
2b7: 8b 45 08 mov 0x8(%ebp),%eax
2ba: 0f b6 10 movzbl (%eax),%edx
2bd: 8b 45 0c mov 0xc(%ebp),%eax
2c0: 0f b6 00 movzbl (%eax),%eax
2c3: 38 c2 cmp %al,%dl
2c5: 75 1b jne 2e2 <matchhere+0xae>
return matchhere(re+1, text+1);
2c7: 8b 45 0c mov 0xc(%ebp),%eax
2ca: 8d 50 01 lea 0x1(%eax),%edx
2cd: 8b 45 08 mov 0x8(%ebp),%eax
2d0: 83 c0 01 add $0x1,%eax
2d3: 83 ec 08 sub $0x8,%esp
2d6: 52 push %edx
2d7: 50 push %eax
2d8: e8 57 ff ff ff call 234 <matchhere>
2dd: 83 c4 10 add $0x10,%esp
2e0: eb 05 jmp 2e7 <matchhere+0xb3>
return 0;
2e2: b8 00 00 00 00 mov $0x0,%eax
}
2e7: c9 leave
2e8: c3 ret
000002e9 <matchstar>:
// matchstar: search for c*re at beginning of text
int matchstar(int c, char *re, char *text)
{
2e9: 55 push %ebp
2ea: 89 e5 mov %esp,%ebp
2ec: 83 ec 08 sub $0x8,%esp
do{ // a * matches zero or more instances
if(matchhere(re, text))
2ef: 83 ec 08 sub $0x8,%esp
2f2: ff 75 10 pushl 0x10(%ebp)
2f5: ff 75 0c pushl 0xc(%ebp)
2f8: e8 37 ff ff ff call 234 <matchhere>
2fd: 83 c4 10 add $0x10,%esp
300: 85 c0 test %eax,%eax
302: 74 07 je 30b <matchstar+0x22>
return 1;
304: b8 01 00 00 00 mov $0x1,%eax
309: eb 29 jmp 334 <matchstar+0x4b>
}while(*text!='\0' && (*text++==c || c=='.'));
30b: 8b 45 10 mov 0x10(%ebp),%eax
30e: 0f b6 00 movzbl (%eax),%eax
311: 84 c0 test %al,%al
313: 74 1a je 32f <matchstar+0x46>
315: 8b 45 10 mov 0x10(%ebp),%eax
318: 8d 50 01 lea 0x1(%eax),%edx
31b: 89 55 10 mov %edx,0x10(%ebp)
31e: 0f b6 00 movzbl (%eax),%eax
321: 0f be c0 movsbl %al,%eax
324: 3b 45 08 cmp 0x8(%ebp),%eax
327: 74 c6 je 2ef <matchstar+0x6>
329: 83 7d 08 2e cmpl $0x2e,0x8(%ebp)
32d: 74 c0 je 2ef <matchstar+0x6>
return 0;
32f: b8 00 00 00 00 mov $0x0,%eax
}
334: c9 leave
335: c3 ret
00000336 <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
336: 55 push %ebp
337: 89 e5 mov %esp,%ebp
339: 57 push %edi
33a: 53 push %ebx
asm volatile("cld; rep stosb" :
33b: 8b 4d 08 mov 0x8(%ebp),%ecx
33e: 8b 55 10 mov 0x10(%ebp),%edx
341: 8b 45 0c mov 0xc(%ebp),%eax
344: 89 cb mov %ecx,%ebx
346: 89 df mov %ebx,%edi
348: 89 d1 mov %edx,%ecx
34a: fc cld
34b: f3 aa rep stos %al,%es:(%edi)
34d: 89 ca mov %ecx,%edx
34f: 89 fb mov %edi,%ebx
351: 89 5d 08 mov %ebx,0x8(%ebp)
354: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
357: 90 nop
358: 5b pop %ebx
359: 5f pop %edi
35a: 5d pop %ebp
35b: c3 ret
0000035c <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
35c: 55 push %ebp
35d: 89 e5 mov %esp,%ebp
35f: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
362: 8b 45 08 mov 0x8(%ebp),%eax
365: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
368: 90 nop
369: 8b 45 08 mov 0x8(%ebp),%eax
36c: 8d 50 01 lea 0x1(%eax),%edx
36f: 89 55 08 mov %edx,0x8(%ebp)
372: 8b 55 0c mov 0xc(%ebp),%edx
375: 8d 4a 01 lea 0x1(%edx),%ecx
378: 89 4d 0c mov %ecx,0xc(%ebp)
37b: 0f b6 12 movzbl (%edx),%edx
37e: 88 10 mov %dl,(%eax)
380: 0f b6 00 movzbl (%eax),%eax
383: 84 c0 test %al,%al
385: 75 e2 jne 369 <strcpy+0xd>
;
return os;
387: 8b 45 fc mov -0x4(%ebp),%eax
}
38a: c9 leave
38b: c3 ret
0000038c <strcmp>:
int
strcmp(const char *p, const char *q)
{
38c: 55 push %ebp
38d: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
38f: eb 08 jmp 399 <strcmp+0xd>
p++, q++;
391: 83 45 08 01 addl $0x1,0x8(%ebp)
395: 83 45 0c 01 addl $0x1,0xc(%ebp)
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
399: 8b 45 08 mov 0x8(%ebp),%eax
39c: 0f b6 00 movzbl (%eax),%eax
39f: 84 c0 test %al,%al
3a1: 74 10 je 3b3 <strcmp+0x27>
3a3: 8b 45 08 mov 0x8(%ebp),%eax
3a6: 0f b6 10 movzbl (%eax),%edx
3a9: 8b 45 0c mov 0xc(%ebp),%eax
3ac: 0f b6 00 movzbl (%eax),%eax
3af: 38 c2 cmp %al,%dl
3b1: 74 de je 391 <strcmp+0x5>
p++, q++;
return (uchar)*p - (uchar)*q;
3b3: 8b 45 08 mov 0x8(%ebp),%eax
3b6: 0f b6 00 movzbl (%eax),%eax
3b9: 0f b6 d0 movzbl %al,%edx
3bc: 8b 45 0c mov 0xc(%ebp),%eax
3bf: 0f b6 00 movzbl (%eax),%eax
3c2: 0f b6 c0 movzbl %al,%eax
3c5: 29 c2 sub %eax,%edx
3c7: 89 d0 mov %edx,%eax
}
3c9: 5d pop %ebp
3ca: c3 ret
000003cb <strlen>:
uint
strlen(char *s)
{
3cb: 55 push %ebp
3cc: 89 e5 mov %esp,%ebp
3ce: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
3d1: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
3d8: eb 04 jmp 3de <strlen+0x13>
3da: 83 45 fc 01 addl $0x1,-0x4(%ebp)
3de: 8b 55 fc mov -0x4(%ebp),%edx
3e1: 8b 45 08 mov 0x8(%ebp),%eax
3e4: 01 d0 add %edx,%eax
3e6: 0f b6 00 movzbl (%eax),%eax
3e9: 84 c0 test %al,%al
3eb: 75 ed jne 3da <strlen+0xf>
;
return n;
3ed: 8b 45 fc mov -0x4(%ebp),%eax
}
3f0: c9 leave
3f1: c3 ret
000003f2 <memset>:
void*
memset(void *dst, int c, uint n)
{
3f2: 55 push %ebp
3f3: 89 e5 mov %esp,%ebp
stosb(dst, c, n);
3f5: 8b 45 10 mov 0x10(%ebp),%eax
3f8: 50 push %eax
3f9: ff 75 0c pushl 0xc(%ebp)
3fc: ff 75 08 pushl 0x8(%ebp)
3ff: e8 32 ff ff ff call 336 <stosb>
404: 83 c4 0c add $0xc,%esp
return dst;
407: 8b 45 08 mov 0x8(%ebp),%eax
}
40a: c9 leave
40b: c3 ret
0000040c <strchr>:
char*
strchr(const char *s, char c)
{
40c: 55 push %ebp
40d: 89 e5 mov %esp,%ebp
40f: 83 ec 04 sub $0x4,%esp
412: 8b 45 0c mov 0xc(%ebp),%eax
415: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
418: eb 14 jmp 42e <strchr+0x22>
if(*s == c)
41a: 8b 45 08 mov 0x8(%ebp),%eax
41d: 0f b6 00 movzbl (%eax),%eax
420: 3a 45 fc cmp -0x4(%ebp),%al
423: 75 05 jne 42a <strchr+0x1e>
return (char*)s;
425: 8b 45 08 mov 0x8(%ebp),%eax
428: eb 13 jmp 43d <strchr+0x31>
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
42a: 83 45 08 01 addl $0x1,0x8(%ebp)
42e: 8b 45 08 mov 0x8(%ebp),%eax
431: 0f b6 00 movzbl (%eax),%eax
434: 84 c0 test %al,%al
436: 75 e2 jne 41a <strchr+0xe>
if(*s == c)
return (char*)s;
return 0;
438: b8 00 00 00 00 mov $0x0,%eax
}
43d: c9 leave
43e: c3 ret
0000043f <gets>:
char*
gets(char *buf, int max)
{
43f: 55 push %ebp
440: 89 e5 mov %esp,%ebp
442: 83 ec 18 sub $0x18,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
445: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
44c: eb 42 jmp 490 <gets+0x51>
cc = read(0, &c, 1);
44e: 83 ec 04 sub $0x4,%esp
451: 6a 01 push $0x1
453: 8d 45 ef lea -0x11(%ebp),%eax
456: 50 push %eax
457: 6a 00 push $0x0
459: e8 47 01 00 00 call 5a5 <read>
45e: 83 c4 10 add $0x10,%esp
461: 89 45 f0 mov %eax,-0x10(%ebp)
if(cc < 1)
464: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
468: 7e 33 jle 49d <gets+0x5e>
break;
buf[i++] = c;
46a: 8b 45 f4 mov -0xc(%ebp),%eax
46d: 8d 50 01 lea 0x1(%eax),%edx
470: 89 55 f4 mov %edx,-0xc(%ebp)
473: 89 c2 mov %eax,%edx
475: 8b 45 08 mov 0x8(%ebp),%eax
478: 01 c2 add %eax,%edx
47a: 0f b6 45 ef movzbl -0x11(%ebp),%eax
47e: 88 02 mov %al,(%edx)
if(c == '\n' || c == '\r')
480: 0f b6 45 ef movzbl -0x11(%ebp),%eax
484: 3c 0a cmp $0xa,%al
486: 74 16 je 49e <gets+0x5f>
488: 0f b6 45 ef movzbl -0x11(%ebp),%eax
48c: 3c 0d cmp $0xd,%al
48e: 74 0e je 49e <gets+0x5f>
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
490: 8b 45 f4 mov -0xc(%ebp),%eax
493: 83 c0 01 add $0x1,%eax
496: 3b 45 0c cmp 0xc(%ebp),%eax
499: 7c b3 jl 44e <gets+0xf>
49b: eb 01 jmp 49e <gets+0x5f>
cc = read(0, &c, 1);
if(cc < 1)
break;
49d: 90 nop
buf[i++] = c;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
49e: 8b 55 f4 mov -0xc(%ebp),%edx
4a1: 8b 45 08 mov 0x8(%ebp),%eax
4a4: 01 d0 add %edx,%eax
4a6: c6 00 00 movb $0x0,(%eax)
return buf;
4a9: 8b 45 08 mov 0x8(%ebp),%eax
}
4ac: c9 leave
4ad: c3 ret
000004ae <stat>:
int
stat(char *n, struct stat *st)
{
4ae: 55 push %ebp
4af: 89 e5 mov %esp,%ebp
4b1: 83 ec 18 sub $0x18,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
4b4: 83 ec 08 sub $0x8,%esp
4b7: 6a 00 push $0x0
4b9: ff 75 08 pushl 0x8(%ebp)
4bc: e8 0c 01 00 00 call 5cd <open>
4c1: 83 c4 10 add $0x10,%esp
4c4: 89 45 f4 mov %eax,-0xc(%ebp)
if(fd < 0)
4c7: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
4cb: 79 07 jns 4d4 <stat+0x26>
return -1;
4cd: b8 ff ff ff ff mov $0xffffffff,%eax
4d2: eb 25 jmp 4f9 <stat+0x4b>
r = fstat(fd, st);
4d4: 83 ec 08 sub $0x8,%esp
4d7: ff 75 0c pushl 0xc(%ebp)
4da: ff 75 f4 pushl -0xc(%ebp)
4dd: e8 03 01 00 00 call 5e5 <fstat>
4e2: 83 c4 10 add $0x10,%esp
4e5: 89 45 f0 mov %eax,-0x10(%ebp)
close(fd);
4e8: 83 ec 0c sub $0xc,%esp
4eb: ff 75 f4 pushl -0xc(%ebp)
4ee: e8 c2 00 00 00 call 5b5 <close>
4f3: 83 c4 10 add $0x10,%esp
return r;
4f6: 8b 45 f0 mov -0x10(%ebp),%eax
}
4f9: c9 leave
4fa: c3 ret
000004fb <atoi>:
int
atoi(const char *s)
{
4fb: 55 push %ebp
4fc: 89 e5 mov %esp,%ebp
4fe: 83 ec 10 sub $0x10,%esp
int n;
n = 0;
501: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while('0' <= *s && *s <= '9')
508: eb 25 jmp 52f <atoi+0x34>
n = n*10 + *s++ - '0';
50a: 8b 55 fc mov -0x4(%ebp),%edx
50d: 89 d0 mov %edx,%eax
50f: c1 e0 02 shl $0x2,%eax
512: 01 d0 add %edx,%eax
514: 01 c0 add %eax,%eax
516: 89 c1 mov %eax,%ecx
518: 8b 45 08 mov 0x8(%ebp),%eax
51b: 8d 50 01 lea 0x1(%eax),%edx
51e: 89 55 08 mov %edx,0x8(%ebp)
521: 0f b6 00 movzbl (%eax),%eax
524: 0f be c0 movsbl %al,%eax
527: 01 c8 add %ecx,%eax
529: 83 e8 30 sub $0x30,%eax
52c: 89 45 fc mov %eax,-0x4(%ebp)
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
52f: 8b 45 08 mov 0x8(%ebp),%eax
532: 0f b6 00 movzbl (%eax),%eax
535: 3c 2f cmp $0x2f,%al
537: 7e 0a jle 543 <atoi+0x48>
539: 8b 45 08 mov 0x8(%ebp),%eax
53c: 0f b6 00 movzbl (%eax),%eax
53f: 3c 39 cmp $0x39,%al
541: 7e c7 jle 50a <atoi+0xf>
n = n*10 + *s++ - '0';
return n;
543: 8b 45 fc mov -0x4(%ebp),%eax
}
546: c9 leave
547: c3 ret
00000548 <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
548: 55 push %ebp
549: 89 e5 mov %esp,%ebp
54b: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
54e: 8b 45 08 mov 0x8(%ebp),%eax
551: 89 45 fc mov %eax,-0x4(%ebp)
src = vsrc;
554: 8b 45 0c mov 0xc(%ebp),%eax
557: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0)
55a: eb 17 jmp 573 <memmove+0x2b>
*dst++ = *src++;
55c: 8b 45 fc mov -0x4(%ebp),%eax
55f: 8d 50 01 lea 0x1(%eax),%edx
562: 89 55 fc mov %edx,-0x4(%ebp)
565: 8b 55 f8 mov -0x8(%ebp),%edx
568: 8d 4a 01 lea 0x1(%edx),%ecx
56b: 89 4d f8 mov %ecx,-0x8(%ebp)
56e: 0f b6 12 movzbl (%edx),%edx
571: 88 10 mov %dl,(%eax)
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
573: 8b 45 10 mov 0x10(%ebp),%eax
576: 8d 50 ff lea -0x1(%eax),%edx
579: 89 55 10 mov %edx,0x10(%ebp)
57c: 85 c0 test %eax,%eax
57e: 7f dc jg 55c <memmove+0x14>
*dst++ = *src++;
return vdst;
580: 8b 45 08 mov 0x8(%ebp),%eax
}
583: c9 leave
584: c3 ret
00000585 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
585: b8 01 00 00 00 mov $0x1,%eax
58a: cd 40 int $0x40
58c: c3 ret
0000058d <exit>:
SYSCALL(exit)
58d: b8 02 00 00 00 mov $0x2,%eax
592: cd 40 int $0x40
594: c3 ret
00000595 <wait>:
SYSCALL(wait)
595: b8 03 00 00 00 mov $0x3,%eax
59a: cd 40 int $0x40
59c: c3 ret
0000059d <pipe>:
SYSCALL(pipe)
59d: b8 04 00 00 00 mov $0x4,%eax
5a2: cd 40 int $0x40
5a4: c3 ret
000005a5 <read>:
SYSCALL(read)
5a5: b8 05 00 00 00 mov $0x5,%eax
5aa: cd 40 int $0x40
5ac: c3 ret
000005ad <write>:
SYSCALL(write)
5ad: b8 10 00 00 00 mov $0x10,%eax
5b2: cd 40 int $0x40
5b4: c3 ret
000005b5 <close>:
SYSCALL(close)
5b5: b8 15 00 00 00 mov $0x15,%eax
5ba: cd 40 int $0x40
5bc: c3 ret
000005bd <kill>:
SYSCALL(kill)
5bd: b8 06 00 00 00 mov $0x6,%eax
5c2: cd 40 int $0x40
5c4: c3 ret
000005c5 <exec>:
SYSCALL(exec)
5c5: b8 07 00 00 00 mov $0x7,%eax
5ca: cd 40 int $0x40
5cc: c3 ret
000005cd <open>:
SYSCALL(open)
5cd: b8 0f 00 00 00 mov $0xf,%eax
5d2: cd 40 int $0x40
5d4: c3 ret
000005d5 <mknod>:
SYSCALL(mknod)
5d5: b8 11 00 00 00 mov $0x11,%eax
5da: cd 40 int $0x40
5dc: c3 ret
000005dd <unlink>:
SYSCALL(unlink)
5dd: b8 12 00 00 00 mov $0x12,%eax
5e2: cd 40 int $0x40
5e4: c3 ret
000005e5 <fstat>:
SYSCALL(fstat)
5e5: b8 08 00 00 00 mov $0x8,%eax
5ea: cd 40 int $0x40
5ec: c3 ret
000005ed <link>:
SYSCALL(link)
5ed: b8 13 00 00 00 mov $0x13,%eax
5f2: cd 40 int $0x40
5f4: c3 ret
000005f5 <mkdir>:
SYSCALL(mkdir)
5f5: b8 14 00 00 00 mov $0x14,%eax
5fa: cd 40 int $0x40
5fc: c3 ret
000005fd <chdir>:
SYSCALL(chdir)
5fd: b8 09 00 00 00 mov $0x9,%eax
602: cd 40 int $0x40
604: c3 ret
00000605 <dup>:
SYSCALL(dup)
605: b8 0a 00 00 00 mov $0xa,%eax
60a: cd 40 int $0x40
60c: c3 ret
0000060d <getpid>:
SYSCALL(getpid)
60d: b8 0b 00 00 00 mov $0xb,%eax
612: cd 40 int $0x40
614: c3 ret
00000615 <sbrk>:
SYSCALL(sbrk)
615: b8 0c 00 00 00 mov $0xc,%eax
61a: cd 40 int $0x40
61c: c3 ret
0000061d <sleep>:
SYSCALL(sleep)
61d: b8 0d 00 00 00 mov $0xd,%eax
622: cd 40 int $0x40
624: c3 ret
00000625 <uptime>:
SYSCALL(uptime)
625: b8 0e 00 00 00 mov $0xe,%eax
62a: cd 40 int $0x40
62c: c3 ret
0000062d <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
62d: 55 push %ebp
62e: 89 e5 mov %esp,%ebp
630: 83 ec 18 sub $0x18,%esp
633: 8b 45 0c mov 0xc(%ebp),%eax
636: 88 45 f4 mov %al,-0xc(%ebp)
write(fd, &c, 1);
639: 83 ec 04 sub $0x4,%esp
63c: 6a 01 push $0x1
63e: 8d 45 f4 lea -0xc(%ebp),%eax
641: 50 push %eax
642: ff 75 08 pushl 0x8(%ebp)
645: e8 63 ff ff ff call 5ad <write>
64a: 83 c4 10 add $0x10,%esp
}
64d: 90 nop
64e: c9 leave
64f: c3 ret
00000650 <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
650: 55 push %ebp
651: 89 e5 mov %esp,%ebp
653: 53 push %ebx
654: 83 ec 24 sub $0x24,%esp
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
657: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
if(sgn && xx < 0){
65e: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
662: 74 17 je 67b <printint+0x2b>
664: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
668: 79 11 jns 67b <printint+0x2b>
neg = 1;
66a: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
x = -xx;
671: 8b 45 0c mov 0xc(%ebp),%eax
674: f7 d8 neg %eax
676: 89 45 ec mov %eax,-0x14(%ebp)
679: eb 06 jmp 681 <printint+0x31>
} else {
x = xx;
67b: 8b 45 0c mov 0xc(%ebp),%eax
67e: 89 45 ec mov %eax,-0x14(%ebp)
}
i = 0;
681: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
do{
buf[i++] = digits[x % base];
688: 8b 4d f4 mov -0xc(%ebp),%ecx
68b: 8d 41 01 lea 0x1(%ecx),%eax
68e: 89 45 f4 mov %eax,-0xc(%ebp)
691: 8b 5d 10 mov 0x10(%ebp),%ebx
694: 8b 45 ec mov -0x14(%ebp),%eax
697: ba 00 00 00 00 mov $0x0,%edx
69c: f7 f3 div %ebx
69e: 89 d0 mov %edx,%eax
6a0: 0f b6 80 c8 0d 00 00 movzbl 0xdc8(%eax),%eax
6a7: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1)
}while((x /= base) != 0);
6ab: 8b 5d 10 mov 0x10(%ebp),%ebx
6ae: 8b 45 ec mov -0x14(%ebp),%eax
6b1: ba 00 00 00 00 mov $0x0,%edx
6b6: f7 f3 div %ebx
6b8: 89 45 ec mov %eax,-0x14(%ebp)
6bb: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
6bf: 75 c7 jne 688 <printint+0x38>
if(neg)
6c1: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
6c5: 74 2d je 6f4 <printint+0xa4>
buf[i++] = '-';
6c7: 8b 45 f4 mov -0xc(%ebp),%eax
6ca: 8d 50 01 lea 0x1(%eax),%edx
6cd: 89 55 f4 mov %edx,-0xc(%ebp)
6d0: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1)
while(--i >= 0)
6d5: eb 1d jmp 6f4 <printint+0xa4>
putc(fd, buf[i]);
6d7: 8d 55 dc lea -0x24(%ebp),%edx
6da: 8b 45 f4 mov -0xc(%ebp),%eax
6dd: 01 d0 add %edx,%eax
6df: 0f b6 00 movzbl (%eax),%eax
6e2: 0f be c0 movsbl %al,%eax
6e5: 83 ec 08 sub $0x8,%esp
6e8: 50 push %eax
6e9: ff 75 08 pushl 0x8(%ebp)
6ec: e8 3c ff ff ff call 62d <putc>
6f1: 83 c4 10 add $0x10,%esp
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
6f4: 83 6d f4 01 subl $0x1,-0xc(%ebp)
6f8: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
6fc: 79 d9 jns 6d7 <printint+0x87>
putc(fd, buf[i]);
}
6fe: 90 nop
6ff: 8b 5d fc mov -0x4(%ebp),%ebx
702: c9 leave
703: c3 ret
00000704 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
704: 55 push %ebp
705: 89 e5 mov %esp,%ebp
707: 83 ec 28 sub $0x28,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
70a: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
ap = (uint*)(void*)&fmt + 1;
711: 8d 45 0c lea 0xc(%ebp),%eax
714: 83 c0 04 add $0x4,%eax
717: 89 45 e8 mov %eax,-0x18(%ebp)
for(i = 0; fmt[i]; i++){
71a: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
721: e9 59 01 00 00 jmp 87f <printf+0x17b>
c = fmt[i] & 0xff;
726: 8b 55 0c mov 0xc(%ebp),%edx
729: 8b 45 f0 mov -0x10(%ebp),%eax
72c: 01 d0 add %edx,%eax
72e: 0f b6 00 movzbl (%eax),%eax
731: 0f be c0 movsbl %al,%eax
734: 25 ff 00 00 00 and $0xff,%eax
739: 89 45 e4 mov %eax,-0x1c(%ebp)
if(state == 0){
73c: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
740: 75 2c jne 76e <printf+0x6a>
if(c == '%'){
742: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
746: 75 0c jne 754 <printf+0x50>
state = '%';
748: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp)
74f: e9 27 01 00 00 jmp 87b <printf+0x177>
} else {
putc(fd, c);
754: 8b 45 e4 mov -0x1c(%ebp),%eax
757: 0f be c0 movsbl %al,%eax
75a: 83 ec 08 sub $0x8,%esp
75d: 50 push %eax
75e: ff 75 08 pushl 0x8(%ebp)
761: e8 c7 fe ff ff call 62d <putc>
766: 83 c4 10 add $0x10,%esp
769: e9 0d 01 00 00 jmp 87b <printf+0x177>
}
} else if(state == '%'){
76e: 83 7d ec 25 cmpl $0x25,-0x14(%ebp)
772: 0f 85 03 01 00 00 jne 87b <printf+0x177>
if(c == 'd'){
778: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp)
77c: 75 1e jne 79c <printf+0x98>
printint(fd, *ap, 10, 1);
77e: 8b 45 e8 mov -0x18(%ebp),%eax
781: 8b 00 mov (%eax),%eax
783: 6a 01 push $0x1
785: 6a 0a push $0xa
787: 50 push %eax
788: ff 75 08 pushl 0x8(%ebp)
78b: e8 c0 fe ff ff call 650 <printint>
790: 83 c4 10 add $0x10,%esp
ap++;
793: 83 45 e8 04 addl $0x4,-0x18(%ebp)
797: e9 d8 00 00 00 jmp 874 <printf+0x170>
} else if(c == 'x' || c == 'p'){
79c: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp)
7a0: 74 06 je 7a8 <printf+0xa4>
7a2: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp)
7a6: 75 1e jne 7c6 <printf+0xc2>
printint(fd, *ap, 16, 0);
7a8: 8b 45 e8 mov -0x18(%ebp),%eax
7ab: 8b 00 mov (%eax),%eax
7ad: 6a 00 push $0x0
7af: 6a 10 push $0x10
7b1: 50 push %eax
7b2: ff 75 08 pushl 0x8(%ebp)
7b5: e8 96 fe ff ff call 650 <printint>
7ba: 83 c4 10 add $0x10,%esp
ap++;
7bd: 83 45 e8 04 addl $0x4,-0x18(%ebp)
7c1: e9 ae 00 00 00 jmp 874 <printf+0x170>
} else if(c == 's'){
7c6: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp)
7ca: 75 43 jne 80f <printf+0x10b>
s = (char*)*ap;
7cc: 8b 45 e8 mov -0x18(%ebp),%eax
7cf: 8b 00 mov (%eax),%eax
7d1: 89 45 f4 mov %eax,-0xc(%ebp)
ap++;
7d4: 83 45 e8 04 addl $0x4,-0x18(%ebp)
if(s == 0)
7d8: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
7dc: 75 25 jne 803 <printf+0xff>
s = "(null)";
7de: c7 45 f4 f2 0a 00 00 movl $0xaf2,-0xc(%ebp)
while(*s != 0){
7e5: eb 1c jmp 803 <printf+0xff>
putc(fd, *s);
7e7: 8b 45 f4 mov -0xc(%ebp),%eax
7ea: 0f b6 00 movzbl (%eax),%eax
7ed: 0f be c0 movsbl %al,%eax
7f0: 83 ec 08 sub $0x8,%esp
7f3: 50 push %eax
7f4: ff 75 08 pushl 0x8(%ebp)
7f7: e8 31 fe ff ff call 62d <putc>
7fc: 83 c4 10 add $0x10,%esp
s++;
7ff: 83 45 f4 01 addl $0x1,-0xc(%ebp)
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
803: 8b 45 f4 mov -0xc(%ebp),%eax
806: 0f b6 00 movzbl (%eax),%eax
809: 84 c0 test %al,%al
80b: 75 da jne 7e7 <printf+0xe3>
80d: eb 65 jmp 874 <printf+0x170>
putc(fd, *s);
s++;
}
} else if(c == 'c'){
80f: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp)
813: 75 1d jne 832 <printf+0x12e>
putc(fd, *ap);
815: 8b 45 e8 mov -0x18(%ebp),%eax
818: 8b 00 mov (%eax),%eax
81a: 0f be c0 movsbl %al,%eax
81d: 83 ec 08 sub $0x8,%esp
820: 50 push %eax
821: ff 75 08 pushl 0x8(%ebp)
824: e8 04 fe ff ff call 62d <putc>
829: 83 c4 10 add $0x10,%esp
ap++;
82c: 83 45 e8 04 addl $0x4,-0x18(%ebp)
830: eb 42 jmp 874 <printf+0x170>
} else if(c == '%'){
832: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
836: 75 17 jne 84f <printf+0x14b>
putc(fd, c);
838: 8b 45 e4 mov -0x1c(%ebp),%eax
83b: 0f be c0 movsbl %al,%eax
83e: 83 ec 08 sub $0x8,%esp
841: 50 push %eax
842: ff 75 08 pushl 0x8(%ebp)
845: e8 e3 fd ff ff call 62d <putc>
84a: 83 c4 10 add $0x10,%esp
84d: eb 25 jmp 874 <printf+0x170>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
84f: 83 ec 08 sub $0x8,%esp
852: 6a 25 push $0x25
854: ff 75 08 pushl 0x8(%ebp)
857: e8 d1 fd ff ff call 62d <putc>
85c: 83 c4 10 add $0x10,%esp
putc(fd, c);
85f: 8b 45 e4 mov -0x1c(%ebp),%eax
862: 0f be c0 movsbl %al,%eax
865: 83 ec 08 sub $0x8,%esp
868: 50 push %eax
869: ff 75 08 pushl 0x8(%ebp)
86c: e8 bc fd ff ff call 62d <putc>
871: 83 c4 10 add $0x10,%esp
}
state = 0;
874: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
87b: 83 45 f0 01 addl $0x1,-0x10(%ebp)
87f: 8b 55 0c mov 0xc(%ebp),%edx
882: 8b 45 f0 mov -0x10(%ebp),%eax
885: 01 d0 add %edx,%eax
887: 0f b6 00 movzbl (%eax),%eax
88a: 84 c0 test %al,%al
88c: 0f 85 94 fe ff ff jne 726 <printf+0x22>
putc(fd, c);
}
state = 0;
}
}
}
892: 90 nop
893: c9 leave
894: c3 ret
00000895 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
895: 55 push %ebp
896: 89 e5 mov %esp,%ebp
898: 83 ec 10 sub $0x10,%esp
Header *bp, *p;
bp = (Header*)ap - 1;
89b: 8b 45 08 mov 0x8(%ebp),%eax
89e: 83 e8 08 sub $0x8,%eax
8a1: 89 45 f8 mov %eax,-0x8(%ebp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
8a4: a1 e8 0d 00 00 mov 0xde8,%eax
8a9: 89 45 fc mov %eax,-0x4(%ebp)
8ac: eb 24 jmp 8d2 <free+0x3d>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
8ae: 8b 45 fc mov -0x4(%ebp),%eax
8b1: 8b 00 mov (%eax),%eax
8b3: 3b 45 fc cmp -0x4(%ebp),%eax
8b6: 77 12 ja 8ca <free+0x35>
8b8: 8b 45 f8 mov -0x8(%ebp),%eax
8bb: 3b 45 fc cmp -0x4(%ebp),%eax
8be: 77 24 ja 8e4 <free+0x4f>
8c0: 8b 45 fc mov -0x4(%ebp),%eax
8c3: 8b 00 mov (%eax),%eax
8c5: 3b 45 f8 cmp -0x8(%ebp),%eax
8c8: 77 1a ja 8e4 <free+0x4f>
free(void *ap)
{
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
8ca: 8b 45 fc mov -0x4(%ebp),%eax
8cd: 8b 00 mov (%eax),%eax
8cf: 89 45 fc mov %eax,-0x4(%ebp)
8d2: 8b 45 f8 mov -0x8(%ebp),%eax
8d5: 3b 45 fc cmp -0x4(%ebp),%eax
8d8: 76 d4 jbe 8ae <free+0x19>
8da: 8b 45 fc mov -0x4(%ebp),%eax
8dd: 8b 00 mov (%eax),%eax
8df: 3b 45 f8 cmp -0x8(%ebp),%eax
8e2: 76 ca jbe 8ae <free+0x19>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
8e4: 8b 45 f8 mov -0x8(%ebp),%eax
8e7: 8b 40 04 mov 0x4(%eax),%eax
8ea: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
8f1: 8b 45 f8 mov -0x8(%ebp),%eax
8f4: 01 c2 add %eax,%edx
8f6: 8b 45 fc mov -0x4(%ebp),%eax
8f9: 8b 00 mov (%eax),%eax
8fb: 39 c2 cmp %eax,%edx
8fd: 75 24 jne 923 <free+0x8e>
bp->s.size += p->s.ptr->s.size;
8ff: 8b 45 f8 mov -0x8(%ebp),%eax
902: 8b 50 04 mov 0x4(%eax),%edx
905: 8b 45 fc mov -0x4(%ebp),%eax
908: 8b 00 mov (%eax),%eax
90a: 8b 40 04 mov 0x4(%eax),%eax
90d: 01 c2 add %eax,%edx
90f: 8b 45 f8 mov -0x8(%ebp),%eax
912: 89 50 04 mov %edx,0x4(%eax)
bp->s.ptr = p->s.ptr->s.ptr;
915: 8b 45 fc mov -0x4(%ebp),%eax
918: 8b 00 mov (%eax),%eax
91a: 8b 10 mov (%eax),%edx
91c: 8b 45 f8 mov -0x8(%ebp),%eax
91f: 89 10 mov %edx,(%eax)
921: eb 0a jmp 92d <free+0x98>
} else
bp->s.ptr = p->s.ptr;
923: 8b 45 fc mov -0x4(%ebp),%eax
926: 8b 10 mov (%eax),%edx
928: 8b 45 f8 mov -0x8(%ebp),%eax
92b: 89 10 mov %edx,(%eax)
if(p + p->s.size == bp){
92d: 8b 45 fc mov -0x4(%ebp),%eax
930: 8b 40 04 mov 0x4(%eax),%eax
933: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
93a: 8b 45 fc mov -0x4(%ebp),%eax
93d: 01 d0 add %edx,%eax
93f: 3b 45 f8 cmp -0x8(%ebp),%eax
942: 75 20 jne 964 <free+0xcf>
p->s.size += bp->s.size;
944: 8b 45 fc mov -0x4(%ebp),%eax
947: 8b 50 04 mov 0x4(%eax),%edx
94a: 8b 45 f8 mov -0x8(%ebp),%eax
94d: 8b 40 04 mov 0x4(%eax),%eax
950: 01 c2 add %eax,%edx
952: 8b 45 fc mov -0x4(%ebp),%eax
955: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
958: 8b 45 f8 mov -0x8(%ebp),%eax
95b: 8b 10 mov (%eax),%edx
95d: 8b 45 fc mov -0x4(%ebp),%eax
960: 89 10 mov %edx,(%eax)
962: eb 08 jmp 96c <free+0xd7>
} else
p->s.ptr = bp;
964: 8b 45 fc mov -0x4(%ebp),%eax
967: 8b 55 f8 mov -0x8(%ebp),%edx
96a: 89 10 mov %edx,(%eax)
freep = p;
96c: 8b 45 fc mov -0x4(%ebp),%eax
96f: a3 e8 0d 00 00 mov %eax,0xde8
}
974: 90 nop
975: c9 leave
976: c3 ret
00000977 <morecore>:
static Header*
morecore(uint nu)
{
977: 55 push %ebp
978: 89 e5 mov %esp,%ebp
97a: 83 ec 18 sub $0x18,%esp
char *p;
Header *hp;
if(nu < 4096)
97d: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp)
984: 77 07 ja 98d <morecore+0x16>
nu = 4096;
986: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp)
p = sbrk(nu * sizeof(Header));
98d: 8b 45 08 mov 0x8(%ebp),%eax
990: c1 e0 03 shl $0x3,%eax
993: 83 ec 0c sub $0xc,%esp
996: 50 push %eax
997: e8 79 fc ff ff call 615 <sbrk>
99c: 83 c4 10 add $0x10,%esp
99f: 89 45 f4 mov %eax,-0xc(%ebp)
if(p == (char*)-1)
9a2: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp)
9a6: 75 07 jne 9af <morecore+0x38>
return 0;
9a8: b8 00 00 00 00 mov $0x0,%eax
9ad: eb 26 jmp 9d5 <morecore+0x5e>
hp = (Header*)p;
9af: 8b 45 f4 mov -0xc(%ebp),%eax
9b2: 89 45 f0 mov %eax,-0x10(%ebp)
hp->s.size = nu;
9b5: 8b 45 f0 mov -0x10(%ebp),%eax
9b8: 8b 55 08 mov 0x8(%ebp),%edx
9bb: 89 50 04 mov %edx,0x4(%eax)
free((void*)(hp + 1));
9be: 8b 45 f0 mov -0x10(%ebp),%eax
9c1: 83 c0 08 add $0x8,%eax
9c4: 83 ec 0c sub $0xc,%esp
9c7: 50 push %eax
9c8: e8 c8 fe ff ff call 895 <free>
9cd: 83 c4 10 add $0x10,%esp
return freep;
9d0: a1 e8 0d 00 00 mov 0xde8,%eax
}
9d5: c9 leave
9d6: c3 ret
000009d7 <malloc>:
void*
malloc(uint nbytes)
{
9d7: 55 push %ebp
9d8: 89 e5 mov %esp,%ebp
9da: 83 ec 18 sub $0x18,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
9dd: 8b 45 08 mov 0x8(%ebp),%eax
9e0: 83 c0 07 add $0x7,%eax
9e3: c1 e8 03 shr $0x3,%eax
9e6: 83 c0 01 add $0x1,%eax
9e9: 89 45 ec mov %eax,-0x14(%ebp)
if((prevp = freep) == 0){
9ec: a1 e8 0d 00 00 mov 0xde8,%eax
9f1: 89 45 f0 mov %eax,-0x10(%ebp)
9f4: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
9f8: 75 23 jne a1d <malloc+0x46>
base.s.ptr = freep = prevp = &base;
9fa: c7 45 f0 e0 0d 00 00 movl $0xde0,-0x10(%ebp)
a01: 8b 45 f0 mov -0x10(%ebp),%eax
a04: a3 e8 0d 00 00 mov %eax,0xde8
a09: a1 e8 0d 00 00 mov 0xde8,%eax
a0e: a3 e0 0d 00 00 mov %eax,0xde0
base.s.size = 0;
a13: c7 05 e4 0d 00 00 00 movl $0x0,0xde4
a1a: 00 00 00
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
a1d: 8b 45 f0 mov -0x10(%ebp),%eax
a20: 8b 00 mov (%eax),%eax
a22: 89 45 f4 mov %eax,-0xc(%ebp)
if(p->s.size >= nunits){
a25: 8b 45 f4 mov -0xc(%ebp),%eax
a28: 8b 40 04 mov 0x4(%eax),%eax
a2b: 3b 45 ec cmp -0x14(%ebp),%eax
a2e: 72 4d jb a7d <malloc+0xa6>
if(p->s.size == nunits)
a30: 8b 45 f4 mov -0xc(%ebp),%eax
a33: 8b 40 04 mov 0x4(%eax),%eax
a36: 3b 45 ec cmp -0x14(%ebp),%eax
a39: 75 0c jne a47 <malloc+0x70>
prevp->s.ptr = p->s.ptr;
a3b: 8b 45 f4 mov -0xc(%ebp),%eax
a3e: 8b 10 mov (%eax),%edx
a40: 8b 45 f0 mov -0x10(%ebp),%eax
a43: 89 10 mov %edx,(%eax)
a45: eb 26 jmp a6d <malloc+0x96>
else {
p->s.size -= nunits;
a47: 8b 45 f4 mov -0xc(%ebp),%eax
a4a: 8b 40 04 mov 0x4(%eax),%eax
a4d: 2b 45 ec sub -0x14(%ebp),%eax
a50: 89 c2 mov %eax,%edx
a52: 8b 45 f4 mov -0xc(%ebp),%eax
a55: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
a58: 8b 45 f4 mov -0xc(%ebp),%eax
a5b: 8b 40 04 mov 0x4(%eax),%eax
a5e: c1 e0 03 shl $0x3,%eax
a61: 01 45 f4 add %eax,-0xc(%ebp)
p->s.size = nunits;
a64: 8b 45 f4 mov -0xc(%ebp),%eax
a67: 8b 55 ec mov -0x14(%ebp),%edx
a6a: 89 50 04 mov %edx,0x4(%eax)
}
freep = prevp;
a6d: 8b 45 f0 mov -0x10(%ebp),%eax
a70: a3 e8 0d 00 00 mov %eax,0xde8
return (void*)(p + 1);
a75: 8b 45 f4 mov -0xc(%ebp),%eax
a78: 83 c0 08 add $0x8,%eax
a7b: eb 3b jmp ab8 <malloc+0xe1>
}
if(p == freep)
a7d: a1 e8 0d 00 00 mov 0xde8,%eax
a82: 39 45 f4 cmp %eax,-0xc(%ebp)
a85: 75 1e jne aa5 <malloc+0xce>
if((p = morecore(nunits)) == 0)
a87: 83 ec 0c sub $0xc,%esp
a8a: ff 75 ec pushl -0x14(%ebp)
a8d: e8 e5 fe ff ff call 977 <morecore>
a92: 83 c4 10 add $0x10,%esp
a95: 89 45 f4 mov %eax,-0xc(%ebp)
a98: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
a9c: 75 07 jne aa5 <malloc+0xce>
return 0;
a9e: b8 00 00 00 00 mov $0x0,%eax
aa3: eb 13 jmp ab8 <malloc+0xe1>
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
aa5: 8b 45 f4 mov -0xc(%ebp),%eax
aa8: 89 45 f0 mov %eax,-0x10(%ebp)
aab: 8b 45 f4 mov -0xc(%ebp),%eax
aae: 8b 00 mov (%eax),%eax
ab0: 89 45 f4 mov %eax,-0xc(%ebp)
return (void*)(p + 1);
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
ab3: e9 6d ff ff ff jmp a25 <malloc+0x4e>
}
ab8: c9 leave
ab9: c3 ret
|
programs/oeis/290/A290890.asm | karttu/loda | 0 | 105282 | <gh_stars>0
; A290890: p-INVERT of the positive integers, where p(S) = 1 - S^2.
; 0,1,4,11,28,72,188,493,1292,3383,8856,23184,60696,158905,416020,1089155,2851444,7465176,19544084,51167077,133957148,350704367,918155952,2403763488,6293134512,16475640049,43133785636,112925716859,295643364940,774004377960,2026369768940,5305104928861,13888945017644,36361730124071,95196245354568,249227005939632,652484772464328,1708227311453353,4472197161895732
lpb $0,1
sub $0,1
add $2,1
add $3,$1
add $4,$2
add $1,$4
add $2,$3
lpe
|
project-templates/antlr4/AntlrGrammarNameLexer.g4 | doggy8088/Duotify.Templates.DotNetNew | 2 | 7578 | lexer grammar AntlrGrammarNameLexer;
// Keywords
ANY: A N Y ;
BLOB: B L O B ;
BOOLEAN: B O O L E A N ;
BYTE: B Y T E ;
CHARACTER: C H A R A C T E R ;
CHAR: C H A R ;
CONSTANT: C O N S T A N T ;
DATE_TYPE: D A T E ;
DATETIME: D A T E T I M E ;
DECIMAL: D E C I M A L ;
DEC: D E C ;
DOUBLE: D O U B L E ;
INTEGER: I N T E G E R ;
INT: I N T ;
LONG: L O N G ;
LONGLONG: L O N G L O N G ;
REAL: R E A L ;
STRING: S T R I N G ;
TIME_TYPE: T I M E ;
UNSIGNEDINTEGER: U N S I G N E D I N T E G E R ;
UINT: U I N T ;
UNSIGNEDLONG: U N S I G N E D L O N G ;
ULONG: U L O N G ;
WINDOW: W I N D O W ;
// FUNCTION_OBJECT: F U N C T I O N '_' O B J E C T ;
TRUE: T R U E ;
FALSE: F A L S E ;
GLOBAL: G L O B A L ;
SHARED: S H A R E D ;
END: E N D ;
INDIRECT : I N D I R E C T ;
VARIABLES: V A R I A B L E S ;
FORWARD: F O R W A R D ;
PUBLIC: P U B L I C ;
PRIVATE: P R I V A T E ;
FUNCTION: F U N C T I O N ;
SUBROUTINE: S U B R O U T I N E ;
READONLY: R E A D O N L Y ;
PROTOTYPES: P R O T O T Y P E S ;
TYPE: T Y P E ;
ON: O N ;
TO: T O ;
FROM: F R O M ;
REF: R E F ;
NULL_: N U L L ;
UPDATE: U P D A T E ;
CASE: C A S E ;
STATIC: S T A T I C ;
DYNAMIC: D Y N A M I C ;
WITHIN: W I T H I N ;
PRIVATEWRITE: P R I V A T E W R I T E ;
PROTECTED: P R O T E C T E D ;
PRIVATEREAD: P R I V A T E R E A D ;
PROTECTEDREAD: P R O T E C T E D R E A D ;
PROTECTEDWRITE: P R O T E C T E D W R I T E ;
LOCAL: L O C A L ;
EVENT: E V E N T ;
OPEN: O P E N ;
DECLARE: D E C L A R E ;
FETCH: F E T C H ;
DO: D O ;
WHILE: W H I L E ;
GOTO: G O T O ;
ELSE: E L S E ;
IF: I F ;
THEN: T H E N ;
ELSEIF: E L S E I F ;
TRY: T R Y ;
EXIT: E X I T ;
CHOOSE: C H O O S E ;
IS: I S ;
CONTINUE: C O N T I N U E ;
FOR: F O R ;
CLOSE: C L O S E ;
NEXT: N E X T ;
LOOP: L O O P ;
UNTIL: U N T I L ;
STEP: S T E P ;
CATCH: C A T C H ;
FINALLY: F I N A L L Y ;
THROW: T H R O W ;
RELEASE: R E L E A S E ;
CREATE: C R E A T E ;
DESTROY: D E S T R O Y ;
CONNECT: C O N N E C T ;
DISCONNECT: D I S C O N N E C T ;
COMMIT: C O M M I T ;
ROLLBACK: R O L L B A C K ;
USING: U S I N G ;
POST: P O S T ;
TRIGGER: T R I G G E R ;
SELECT: S E L E C T ;
DELETE: D E L E T E ;
INSERT: I N S E R T ;
INTO: I N T O ;
UPDATEBLOB: U P D A T E B L O B ;
EXECUTE: E X E C U T E ;
DESCRIBE: D E S C R I B E ;
RETURN: R E T U R N ;
OR: O R ;
AND: A N D ;
NOT: N O T ;
CALL: C A L L ;
HALT: H A L T ;
SUPER: S U P E R ;
LIBRARY: L I B R A R Y ;
SYSTEM: S Y S T E M ;
RPCFUNC: R P C F U N C ;
ALIAS: A L I A S ;
THROWS: T H R O W S ;
NONVISUALOBJECT: N O N V I S U A L O B J E C T ;
AUTOINSTANTIATE: A U T O I N S T A N T I A T E ;
DESCRIPTOR: D E S C R I P T O R ;
THIS: T H I S ;
// Operators
EQ: '=';
GT: '>';
GTE: '>=';
LT: '<';
LTE: '<=';
GTLT: '<>';
PLUS: '+';
PLUSPLUS: '++';
MINUS: '-';
PLUSEQ: '+=';
MINUSEQ: '-=';
COLONCOLON: '::';
MULT: '*';
DIV: '/';
MULTEQ: '*=';
DIVEQ: '/=';
CARAT: '^';
LCURLY: '{';
RCURLY: '}';
LBRACE: '[';
RBRACE: ']';
BRACES: '[]';
TICK: '`';
DQUOTED_STRING: '"' ( ('~' '"') | ~'"' )* '"' ;
QUOTED_STRING: '\'' (~'\'')* '\'';
SQLSTMT: (SQLBEGIN (~';')+ SQLEND) | (ROLLBACK | COMMIT | DISCONNECT) WS* SQLEND ;
COMMA: ',';
SEMI: ';';
LPAREN: '(';
RPAREN: ')';
COLON: ':';
DQUOTE: '"';
TQ: '???';
DOUBLE_PIPE: '||';
DOTDOTDOT: '...';
// Literals
NUMBER: (NUM '.' NUM | '.' NUM | NUM) ('E' ('+' | '-')? NUM)? ('D' | 'F')?;
DOT: '.';
DATE: DIGIT DIGIT DIGIT DIGIT '-' DIGIT DIGIT '-' DIGIT DIGIT;
TIME: DIGIT DIGIT ':' DIGIT DIGIT ':' DIGIT DIGIT (':' DIGIT DIGIT DIGIT DIGIT DIGIT DIGIT)?;
BINDPAR: ':' ID_PARTS;
EXPORT_HEADER: '$' 'PBExportHeader' '$' (LETTER | DIGIT | '.' | ' ' | '_' | ',')+ ;
EXPORT_COMMENTS: '$' 'PBExportComments' '$' ~ [\r\n]* ;
ENUM: ID_PARTS '!';
ID: ID_PARTS;
// Hidden
LINE_CONTINUATION: '&' WS* [\r\n] -> channel(HIDDEN);
SL_COMMENT: '//' ~ [\r\n]* -> channel(HIDDEN);
ML_COMMENT: '/*' .*? '*/' -> channel(HIDDEN);
WS: [ \t\r\n]+ -> channel(HIDDEN);
// Fragments
fragment ID_PARTS
: LETTER (LETTER | DIGIT | '-' | '$' | '#' | '%' | '_')*
;
fragment NUM
: DIGIT+
;
fragment DIGIT
: '0' .. '9'
;
fragment LETTER_ASCII
: 'A' .. 'Z'
| 'a' .. 'z'
;
fragment LETTER
: [\p{L}]
;
fragment A : [aA]; // match either an 'a' or 'A'
fragment B : [bB];
fragment C : [cC];
fragment D : [dD];
fragment E : [eE];
fragment F : [fF];
fragment G : [gG];
fragment H : [hH];
fragment I : [iI];
fragment J : [jJ];
fragment K : [kK];
fragment L : [lL];
fragment M : [mM];
fragment N : [nN];
fragment O : [oO];
fragment P : [pP];
fragment Q : [qQ];
fragment R : [rR];
fragment S : [sS];
fragment T : [tT];
fragment U : [uU];
fragment V : [vV];
fragment W : [wW];
fragment X : [xX];
fragment Y : [yY];
fragment Z : [zZ];
fragment SQLBEGIN : (INSERT | UPDATE | UPDATEBLOB | DELETE | SELECT | DECLARE | OPEN | CLOSE | EXECUTE | FETCH | ((CONNECT | DISCONNECT | COMMIT | ROLLBACK) WS+)? USING) WS+ (LETTER | (LPAREN LETTER) | QUOTED_STRING | NUM) ;
fragment SQLEND : ';' ;
|
programs/oeis/263/A263622.asm | neoneye/loda | 22 | 246533 | ; A263622: a(n) = (3^(n+1)-2^(n+2)+2*n+1)/4.
; 0,1,4,14,47,153,486,1516,4669,14255,43268,130818,394491,1187557,3570850,10728920,32219513,96724059,290303232,871171822,2614039735,7843167761,23531600414,70598995524,211805375157,635432902663,1906332262396,5719063896026,17157325905779,51472246152765,154417275329178,463252899729328,1389760846671601,4169286834982067,12507869094880760,37523624464511430,112570907753272623,337712791979294569,1013138513376837142,3039415815008418332,9118247994781068845,27354745083854834271,82064237450587758324,246192716749809786034,738578159045522380267,2215734494728753185173,6647203519370631644306,19941610628480639110536,59824832026179405686889,179474496360013193771275,538423489642989534735088,1615270470054868511047838,4845811412416405346828711,14537434241752815667856577,43612302734265646258310670,130836908220811337284413940,392510724698462808872205733,1177532174167446020654545079,3532596522646453250039491052,10597789568227590126270184842,31793368705259231131113977955,95380106116930614897948780781,286140318353097687703060036234,858420955063904749127607496544,2575262865200937619419677265377,7725788595621259602332741347683,23177365786900672295145643146216,69532097360775803861731767645046,208596292082474985537784979347999,625788876247720104518534290869785,1877366628743750609365961578260998,5632099886232432419718602146086348,16896299658699658442397241260865821,50688898976103697693674593427811087,152066696928320537813989519573860580,456200090784980502907900037302436450
seq $0,36550 ; a(n) = T(0,n) + T(1,n-1) + ... + T(n,0), array T given by A048471.
div $0,2
|
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/___uchar2fs.asm | Frodevan/z88dk | 640 | 23831 |
SECTION code_fp_math32
PUBLIC ___uchar2fs
EXTERN cm32_sdcc___uchar2fs
defc ___uchar2fs = cm32_sdcc___uchar2fs
|
programs/oeis/023/A023807.asm | neoneye/loda | 22 | 163330 | <reponame>neoneye/loda<gh_stars>10-100
; A023807: Xenodromes: all digits in base 13 are different.
; 0,1,2,3,4,5,6,7,8,9,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,45,46,47,48,49,50,51,52,53,54,55,57,58,59,60,61,62,63,64,65,66,67,68,69,71,72,73
mov $1,$0
sub $1,1
div $1,13
add $0,$1
|
src/Fragment/Algebra/Homomorphism.agda | yallop/agda-fragment | 18 | 5473 | <reponame>yallop/agda-fragment
{-# OPTIONS --without-K --exact-split --safe #-}
open import Fragment.Algebra.Signature
module Fragment.Algebra.Homomorphism (Σ : Signature) where
open import Fragment.Algebra.Homomorphism.Base Σ public
open import Fragment.Algebra.Homomorphism.Definitions Σ public
open import Fragment.Algebra.Homomorphism.Properties Σ public
open import Fragment.Algebra.Homomorphism.Setoid Σ public
open import Fragment.Algebra.Homomorphism.Equivalence Σ public
|
test/command_error/test_command_error.adb | charlie5/aShell | 11 | 17739 | <reponame>charlie5/aShell
with
Shell.Commands,
Ada.Text_IO;
procedure Test_Command_Error
is
use Ada.Text_IO;
begin
Put_Line ("Begin 'Command_Error' test.");
New_Line (2);
declare
use Shell,
Shell.Commands,
Shell.Commands.Forge;
The_Command : Command := To_Command ("ls /non_existent_file");
begin
Run (The_Command);
if Failed (The_Command)
then
Put_Line ("Failed on command '" & The_Command.Name & "' as expected.");
end if;
end;
New_Line (2);
declare
use Shell,
Shell.Commands,
Shell.Commands.Forge;
The_Command : Command := To_Command ("ls /non_existent_file");
begin
Run (The_Command, Raise_Error => True);
exception
when Command_Error =>
Put_Line ("Command failed and raised an exception, as expected.");
Put_Line ("Failed command was '" & The_Command.Name & "'.");
end;
New_Line (2);
Put_Line ("End 'Command_Error' test.");
end Test_Command_Error;
|
programs/oeis/084/A084964.asm | neoneye/loda | 22 | 10236 | <filename>programs/oeis/084/A084964.asm<gh_stars>10-100
; A084964: Follow n+2 by n. Also solution of a(n+2)=a(n)+1, a(0)=2, a(1)=0.
; 2,0,3,1,4,2,5,3,6,4,7,5,8,6,9,7,10,8,11,9,12,10,13,11,14,12,15,13,16,14,17,15,18,16,19,17,20,18,21,19,22,20,23,21,24,22,25,23,26,24,27,25,28,26,29,27,30,28,31,29,32,30,33,31,34,32,35,33,36,34,37,35,38,36,39
mov $1,$0
mod $0,2
gcd $0,6
add $0,$1
sub $0,2
div $0,2
|
sources/ippcp/asm_intel64/pcpsha1m7as.asm | ymarkovitch/ipp-crypto | 0 | 24137 | ;===============================================================================
; Copyright 2015-2019 Intel Corporation
; All Rights Reserved.
;
; If this software was obtained under the Intel Simplified Software License,
; the following terms apply:
;
; The source code, information and material ("Material") contained herein is
; owned by Intel Corporation or its suppliers or licensors, and title to such
; Material remains with Intel Corporation or its suppliers or licensors. The
; Material contains proprietary information of Intel or its suppliers and
; licensors. The Material is protected by worldwide copyright laws and treaty
; provisions. No part of the Material may be used, copied, reproduced,
; modified, published, uploaded, posted, transmitted, distributed or disclosed
; in any way without Intel's prior express written permission. No license under
; any patent, copyright or other intellectual property rights in the Material
; is granted to or conferred upon you, either expressly, by implication,
; inducement, estoppel or otherwise. Any license under such intellectual
; property rights must be express and approved by Intel in writing.
;
; Unless otherwise agreed by Intel in writing, you may not remove or alter this
; notice or any other notice embedded in Materials by Intel or Intel's
; suppliers or licensors in any way.
;
;
; If this software was obtained under the Apache License, Version 2.0 (the
; "License"), the following terms apply:
;
; You may not use this file except in compliance with the License. You may
; obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
;
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;
; See the License for the specific language governing permissions and
; limitations under the License.
;===============================================================================
;
;
; Purpose: Cryptography Primitive.
; Message block processing according to SHA1
;
; Content:
; UpdateSHA1
;
;
include asmdefs.inc
include ia_32e.inc
include pcpvariant.inc
IF (_ENABLE_ALG_SHA1_)
IF (_SHA_NI_ENABLING_ EQ _FEATURE_OFF_) OR (_SHA_NI_ENABLING_ EQ _FEATURE_TICKTOCK_)
IF (_IPP32E GE _IPP32E_M7) AND (_IPP32E LT _IPP32E_U8 )
;;
;; Magic functions defined in FIPS 180-1
;;
MAGIC_F0 MACRO regF:REQ,regB:REQ,regC:REQ,regD:REQ,regT ;; ((D ^ (B & (C ^ D)))
mov regF,regC
xor regF,regD
and regF,regB
xor regF,regD
ENDM
MAGIC_F1 MACRO regF:REQ,regB:REQ,regC:REQ,regD:REQ,regT ;; (B ^ C ^ D)
mov regF,regD
xor regF,regC
xor regF,regB
ENDM
MAGIC_F2 MACRO regF:REQ,regB:REQ,regC:REQ,regD:REQ,regT:REQ ;; ((B & C) | (B & D) | (C & D))
mov regF,regB
mov regT,regB
or regF,regC
and regT,regC
and regF,regD
or regF,regT
ENDM
MAGIC_F3 MACRO regF:REQ,regB:REQ,regC:REQ,regD:REQ,regT
MAGIC_F1 regF,regB,regC,regD,regT
ENDM
;;
;; single SHA1 step
;;
;; Ipp32u tmp = ROL(A,5) + MAGIC_Fi(B,C,D) + E + W[t] + CNT[i];
;; E = D;
;; D = C;
;; C = ROL(B,30);
;; B = A;
;; A = tmp;
;;
SHA1_STEP MACRO regA:REQ,regB:REQ,regC:REQ,regD:REQ,regE:REQ, regT:REQ,regF:REQ, memW:REQ, immCNT:REQ, MAGIC:REQ
add regE,immCNT
add regE,[memW]
mov regT,regA
rol regT,5
add regE,regT
MAGIC regF,regB,regC,regD,regT ;; FUN = MAGIC_Fi(B,C,D)
rol regB,30
add regE,regF
ENDM
SHA1_RND0 MACRO regA:REQ,regB:REQ,regC:REQ,regD:REQ,regE:REQ, regT:REQ,regF:REQ, nr:REQ
immCNT = 05A827999h
mov r13d,immCNT
MAGIC_F0 regF,regB,regC,regD ;; FUN = MAGIC_Fi(B,C,D)
ror regB,(32-30)
mov regT,regA
rol regT,5
add regE,[rsp+(((nr) and 0Fh)*4)]
; lea regE,[regE+regF+immCNT] ; substituted with 2 adds because of gnu as bug
add r13d, regF
add regE, r13d
add regE,regT
ENDM
SHA1_RND1 MACRO regA:REQ,regB:REQ,regC:REQ,regD:REQ,regE:REQ, regT:REQ,regF:REQ, nr:REQ
immCNT = 06ED9EBA1h
mov r13d,immCNT
MAGIC_F1 regF,regB,regC,regD ;; FUN = MAGIC_Fi(B,C,D)
ror regB,(32-30)
mov regT,regA
rol regT,5
add regE,[rsp+(((nr) and 0Fh)*4)]
; lea regE,[regE+regF+immCNT] ; substituted with 2 adds because of gnu as bug
add r13d, regF
add regE, r13d
add regE,regT
ENDM
SHA1_RND2 MACRO regA:REQ,regB:REQ,regC:REQ,regD:REQ,regE:REQ, regT:REQ,regF:REQ, nr:REQ
IFNDEF _VXWORKS
immCNT = 08F1BBCDCh
ELSE
immCNT = -1894007588
ENDIF
mov r13d,immCNT
MAGIC_F2 regF,regB,regC,regD,regT ;; FUN = MAGIC_Fi(B,C,D)
ror regB,(32-30)
mov regT,regA
rol regT,5
add regE,[rsp+(((nr) and 0Fh)*4)]
; lea regE,[regE+regF+immCNT] ; substituted with 2 adds because of gnu as bug
add r13d, regF
add regE, r13d
add regE,regT
ENDM
SHA1_RND3 MACRO regA:REQ,regB:REQ,regC:REQ,regD:REQ,regE:REQ, regT:REQ,regF:REQ, nr:REQ
IFNDEF _VXWORKS
immCNT = 0CA62C1D6h
ELSE
immCNT = -899497514
ENDIF
mov r13d,immCNT
MAGIC_F3 regF,regB,regC,regD ;; FUN = MAGIC_Fi(B,C,D)
ror regB,(32-30)
mov regT,regA
rol regT,5
add regE,[rsp+(((nr) and 0Fh)*4)]
; lea regE,[regE+regF+immCNT] ; substituted with 2 adds because of gnu as bug
add r13d, regF
add regE, r13d
add regE,regT
ENDM
;;
;; ENDIANNESS
;;
ENDIANNESS MACRO dst:REQ,src:REQ
IFDIF <dst>,<src>
mov dst,src
ENDIF
bswap dst
ENDM
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Following Macros are especially for new implementation of SHA1
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
UPDATE MACRO nr:REQ,regU:REQ,regT
ifb <regT>
mov regU,[rsp+((nr-16) and 0Fh)*4]
xor regU,[rsp+((nr-14) and 0Fh)*4]
xor regU,[rsp+((nr-8) and 0Fh)*4]
xor regU,[rsp+((nr-3) and 0Fh)*4]
else
mov regU,[rsp+((nr-16) and 0Fh)*4]
mov regT,[rsp+((nr-14) and 0Fh)*4]
xor regU,regT
mov regT,[rsp+((nr-8) and 0Fh)*4]
xor regU,regT
mov regT,[rsp+((nr-3) and 0Fh)*4]
xor regU,regT
endif
rol regU,1
mov [rsp+(nr and 0Fh)*4],regU
ENDM
IPPCODE SEGMENT 'CODE' ALIGN (IPP_ALIGN_FACTOR)
;*****************************************************************************************
;* Purpose: Update internal digest according to message block
;*
;* void UpdateSHA1(DigestSHA1 digest, const Ipp32u* mblk, int mlen, const void* pParam)
;*
;*****************************************************************************************
;;
;; Lib = M7
;;
;; Caller = ippsSHA1Update
;; Caller = ippsSHA1Final
;; Caller = ippsSHA1MessageDigest
;;
;; Caller = ippsHMACSHA1Update
;; Caller = ippsHMACSHA1Final
;; Caller = ippsHMACSHA1MessageDigest
;;
ALIGN IPP_ALIGN_FACTOR
IPPASM UpdateSHA1 PROC PUBLIC FRAME
USES_GPR rbx,rsi,rdi,r8,r9,r10,r11,r12,r13
LOCAL_FRAME = 16*4
USES_XMM
COMP_ABI 4
MBS_SHA1 equ (64)
movsxd rdx, edx
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; process next data block
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
sha1_block_loop:
;;
;; init A, B, C, D, E by the internal digest
;;
mov r8d, [rdi+0*4] ; r8d = digest[0] (A)
mov r9d, [rdi+1*4] ; r9d = digest[1] (B)
mov r10d,[rdi+2*4] ; r10d= digest[2] (C)
mov r11d,[rdi+3*4] ; r11d= digest[3] (D)
mov r12d,[rdi+4*4] ; r12d= digest[4] (E)
;;
;; initialize the first 16 words in the array W (remember about endian)
;;
xor rcx,rcx
loop1:
mov eax,[rsi+rcx*4+0*4]
ENDIANNESS eax,eax
mov [rsp+rcx*4+0*4],eax
mov ebx,[rsi+rcx*4+1*4]
ENDIANNESS ebx,ebx
mov [rsp+rcx*4+1*4],ebx
add rcx,2
cmp rcx,16
jl loop1
;;
;; perform 0-79 steps
;;
;; A, B, C, D, E, TMP,FUN, round
;; -----------------------------------
SHA1_RND0 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 0
UPDATE 16, eax
SHA1_RND0 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 1
UPDATE 17, eax
SHA1_RND0 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 2
UPDATE 18, eax
SHA1_RND0 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 3
UPDATE 19, eax
SHA1_RND0 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 4
UPDATE 20, eax
SHA1_RND0 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 5
UPDATE 21, eax
SHA1_RND0 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 6
UPDATE 22, eax
SHA1_RND0 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 7
UPDATE 23, eax
SHA1_RND0 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 8
UPDATE 24, eax
SHA1_RND0 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 9
UPDATE 25, eax
SHA1_RND0 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 10
UPDATE 26, eax
SHA1_RND0 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 11
UPDATE 27, eax
SHA1_RND0 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 12
UPDATE 28, eax
SHA1_RND0 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 13
UPDATE 29, eax
SHA1_RND0 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 14
UPDATE 30, eax
SHA1_RND0 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 15
UPDATE 31, eax
SHA1_RND0 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 16
UPDATE 32, eax
SHA1_RND0 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 17
UPDATE 33, eax
SHA1_RND0 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 18
UPDATE 34, eax
SHA1_RND0 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 19
UPDATE 35, eax
SHA1_RND1 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 20
UPDATE 36, eax
SHA1_RND1 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 21
UPDATE 37, eax
SHA1_RND1 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 22
UPDATE 38, eax
SHA1_RND1 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 23
UPDATE 39, eax
SHA1_RND1 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 24
UPDATE 40, eax
SHA1_RND1 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 25
UPDATE 41, eax
SHA1_RND1 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 26
UPDATE 42, eax
SHA1_RND1 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 27
UPDATE 43, eax
SHA1_RND1 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 28
UPDATE 44, eax
SHA1_RND1 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 29
UPDATE 45, eax
SHA1_RND1 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 30
UPDATE 46, eax
SHA1_RND1 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 31
UPDATE 47, eax
SHA1_RND1 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 32
UPDATE 48, eax
SHA1_RND1 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 33
UPDATE 49, eax
SHA1_RND1 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 34
UPDATE 50, eax
SHA1_RND1 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 35
UPDATE 51, eax
SHA1_RND1 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 36
UPDATE 52, eax
SHA1_RND1 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 37
UPDATE 53, eax
SHA1_RND1 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 38
UPDATE 54, eax
SHA1_RND1 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 39
UPDATE 55, eax
SHA1_RND2 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 40
UPDATE 56, eax
SHA1_RND2 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 41
UPDATE 57, eax
SHA1_RND2 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 42
UPDATE 58, eax
SHA1_RND2 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 43
UPDATE 59, eax
SHA1_RND2 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 44
UPDATE 60, eax
SHA1_RND2 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 45
UPDATE 61, eax
SHA1_RND2 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 46
UPDATE 62, eax
SHA1_RND2 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 47
UPDATE 63, eax
SHA1_RND2 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 48
UPDATE 64, eax
SHA1_RND2 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 49
UPDATE 65, eax
SHA1_RND2 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 50
UPDATE 66, eax
SHA1_RND2 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 51
UPDATE 67, eax
SHA1_RND2 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 52
UPDATE 68, eax
SHA1_RND2 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 53
UPDATE 69, eax
SHA1_RND2 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 54
UPDATE 70, eax
SHA1_RND2 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 55
UPDATE 71, eax
SHA1_RND2 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 56
UPDATE 72, eax
SHA1_RND2 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 57
UPDATE 73, eax
SHA1_RND2 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 58
UPDATE 74, eax
SHA1_RND2 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 59
UPDATE 75, eax
SHA1_RND3 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 60
UPDATE 76, eax
SHA1_RND3 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 61
UPDATE 77, eax
SHA1_RND3 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 62
UPDATE 78, eax
SHA1_RND3 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 63
UPDATE 79, eax
SHA1_RND3 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 64
SHA1_RND3 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 65
SHA1_RND3 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 66
SHA1_RND3 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 67
SHA1_RND3 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 68
SHA1_RND3 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 69
SHA1_RND3 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 70
SHA1_RND3 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 71
SHA1_RND3 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 72
SHA1_RND3 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 73
SHA1_RND3 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 74
SHA1_RND3 r8d,r9d,r10d,r11d,r12d, ecx,ebx, 75
SHA1_RND3 r12d,r8d,r9d,r10d,r11d, ecx,ebx, 76
SHA1_RND3 r11d,r12d,r8d,r9d,r10d, ecx,ebx, 77
SHA1_RND3 r10d,r11d,r12d,r8d,r9d, ecx,ebx, 78
SHA1_RND3 r9d,r10d,r11d,r12d,r8d, ecx,ebx, 79
;;
;; update digest
;;
add [rdi+0*4],r8d ; advance digest
add [rdi+1*4],r9d
add [rdi+2*4],r10d
add [rdi+3*4],r11d
add [rdi+4*4],r12d
add rsi, MBS_SHA1
sub rdx, MBS_SHA1
jg sha1_block_loop
REST_XMM
REST_GPR
ret
IPPASM UpdateSHA1 ENDP
ENDIF ;; (_IPP32E GE _IPP32E_M7) AND (_IPP32E LT _IPP32E_U8 )
ENDIF ;; _FEATURE_OFF_ / _FEATURE_TICKTOCK_
ENDIF ;; _ENABLE_ALG_SHA1_
END
|
test/pa_minlat/src/pa_minlat_callbacks.ads | ficorax/PortAudioAda | 2 | 4613 | <reponame>ficorax/PortAudioAda<gh_stars>1-10
with Interfaces.C;
with System;
with PortAudioAda; use PortAudioAda;
package Pa_MinLat_Callbacks is
-----------------------------------------------------------------------------
-- Very simple synthesis routine to generate two sine waves.
function paMinLatCallback
(inputBuffer : System.Address;
outputBuffer : System.Address;
framesPerBuffer : IC.unsigned_long;
timeInfo : access PA_Stream_Callback_Time_Info;
statusFlags : PA_Stream_Callback_Flags;
userData : System.Address)
return PA_Stream_Callback_Result;
pragma Export (C, paMinLatCallback);
end Pa_MinLat_Callbacks;
|
programs/oeis/123/A123567.asm | neoneye/loda | 22 | 245501 | <reponame>neoneye/loda<filename>programs/oeis/123/A123567.asm<gh_stars>10-100
; A123567: Recursive sum of 2*Omega(n), where Omega(n) is the sequence A001222.
; 3,5,7,11,13,17,19,25,29,33,35,41,43,47,51,59,61,67,69,75,79,83,85,93,97,101,107,113,115,121,123,133,137,141,145,153,155,159,163,171,173,179,181,187,193,197,199,209,213,219,223,229,231,239,243,251,255,259,261,269,271,275,281,293,297,303,305,311,315,321,323,333,335,339,345,351,355,361,363,373,381,385,387,395,399,403,407,415,417,425,429,435,439,443,447,459,461,467,473,481
lpb $0
mov $2,$0
sub $0,1
seq $2,86436 ; Maximum number of parts possible in a factorization of n; a(1) = 1, and for n > 1, a(n) = A001222(n) = bigomega(n).
add $1,$2
lpe
mul $1,2
add $1,3
mov $0,$1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.