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
Engine Hacks/FE8-Item Range Fix/Range Write.asm
sme23/Christmas2
3
14694
.thumb .org 0x0 @r0 = char data pointer, r1 = item id push {r4-r7,r14} mov r7,r8 push {r7} mov r7,r0 mov r6,#0xFF and r6,r1 @item id mov r8,r6 lsl r1,r6,#0x3 add r1,r1,r6 lsl r1,r1,#0x2 ldr r6,Item_Table add r1,r1,r6 ldrb r6,[r1,#0x19] @range byte mov r4,#0x10 ldsb r4,[r0,r4] @x coord mov r5,#0x11 ldsb r5,[r0,r5] @y coord ldr r1,Pointer1 str r0,[r1] ldr r0,Pointer2 @points to beginning of table of row pointers for range map ldr r0,[r0] mov r1,#0x0 ldr r3,Function1 bl goto_r3 @zeroes out the range map mov r0,r4 mov r1,r5 ldr r3,Function2 bl goto_r3 @stores coordinates at 204DCF4 and 0x00000000 at 203DFF8 mov r3,#0x1 mov r0,r6 mov r1,r7 bl Get_Range_Nibble @returns max range nibble mov r2,r0 mov r0,r4 mov r1,r5 push {r4} ldr r4,Function4 bl goto_r4 @fills in the range map pop {r4} mov r3,#0x1 neg r3,r3 mov r0,r6 bl Get_Range_Nibble @returns min range nibble mov r2,r0 mov r0,r4 mov r1,r5 push {r4} ldr r4,Function4 bl goto_r4 @clears the range map of unreacheable tiles pop {r4} mov r0,r8 pop {r7} mov r8,r7 pop {r4-r7} pop {r1} bx r1 Get_Range_Nibble: push {r14} cmp r3,#0x1 beq MaxNibble cmp r0,#0xFF beq ReturnZero lsr r0,r0,#0x4 sub r0,#0x1 b GoBack ReturnZero: mov r0,#0x0 b GoBack MaxNibble: cmp r0,#0xFF beq GoBack mov r2,#0xF and r0,r2 cmp r0,#0x0 bne GoBack mov r0,r1 ldr r3,Function3 bl goto_r3 @given char data, returns mag/2 range mov r3,#0x1 GoBack: pop {r1} bx r1 goto_r3: bx r3 goto_r4: bx r4 .align Pointer1: .long 0x02033F3C Pointer2: .long 0x0202E4E4 Function1: .long 0x080197E4+1 Function2: .long 0x0804F8A4+1 Function3: .long 0x08018A1C+1 Function4: .long 0x0801AABC+1 Item_Table:
programs/oeis/188/A188218.asm
jmorken/loda
1
28171
<reponame>jmorken/loda ; A188218: Positions of 1 in A188192; complement of A188217. ; 1,2,5,6,7,9,10,11,13,14,15,17,18,19,22,23,24,26,27,28,30,31,32,34,35,36,39,40,41,43,44,45,47,48,49,51,52,53,56,57,58,60,61,62,64,65,66,68,69,70,73,74,75,77,78,79,81,82,83,85,86,87,89,90,91,94,95,96,98,99,100,102,103,104,106,107,108,111,112,113,115,116,117,119,120,121,123,124 lpb $0 sub $0,2 mov $2,$0 cal $2,188262 ; Positions of 1 in A188260; complement of A188261. mov $0,1 add $2,1 add $1,$2 lpe add $1,$0 add $1,1
daikon-tql/daikon-tql-core/src/main/antlr4/TqlParser.g4
Zomzog/daikon
0
7038
<reponame>Zomzog/daikon<filename>daikon-tql/daikon-tql-core/src/main/antlr4/TqlParser.g4<gh_stars>0 /* Parser grammar for Tql filters parsing.*/ parser grammar TqlParser; options { tokenVocab=TqlLexer; } /** * Syntax **/ allFields : ALL_FIELDS; comparisonOperator : EQ | LT | GT | NEQ | LET | GET; booleanValue : TRUE | FALSE; booleanComparison : (FIELD | allFields | ~INT | ~DECIMAL) EQ booleanValue | (FIELD | allFields | ~INT | ~DECIMAL) NEQ booleanValue; literalValue : QUOTED_VALUE | INT | DECIMAL; fieldReference : (FIELD_REFERENCE | allFields) LPAREN FIELD RPAREN; literalComparison : (FIELD | allFields | ~INT | ~DECIMAL) comparisonOperator literalValue; fieldComparison : (FIELD | allFields | ~INT | ~DECIMAL) comparisonOperator fieldReference; fieldIsEmpty : (FIELD | allFields | ~INT | ~DECIMAL) IS EMPTY; fieldIsValid : (FIELD | allFields | ~INT | ~DECIMAL) IS VALID; fieldIsInvalid : (FIELD | allFields | ~INT | ~DECIMAL) IS INVALID; fieldContains : (FIELD | allFields | ~INT | ~DECIMAL) CONTAINS QUOTED_VALUE; fieldContainsIgnoreCase : (FIELD | allFields | ~INT | ~DECIMAL) CONTAINS_IGNORE_CASE QUOTED_VALUE; fieldMatchesRegexp : (FIELD | allFields | ~INT | ~DECIMAL) MATCHES QUOTED_VALUE; fieldCompliesPattern : (FIELD | allFields | ~INT | ~DECIMAL) COMPLIES QUOTED_VALUE; fieldBetween : (FIELD | allFields | ~INT | ~DECIMAL) BETWEEN (LBRACK | RBRACK) literalValue COMMA literalValue (LBRACK | RBRACK); fieldIn : (FIELD | allFields | ~INT | ~DECIMAL) IN LBRACK (literalValue | booleanValue) (COMMA (literalValue | booleanValue))* RBRACK; notExpression : NOT LPAREN expression RPAREN; expression : orExpression; orExpression : andExpression (OR andExpression)*; andExpression : atom (AND atom)*; atom : booleanComparison | literalComparison | fieldComparison | fieldIsEmpty | fieldIsValid | fieldIsInvalid | fieldContains | fieldContainsIgnoreCase | fieldMatchesRegexp | fieldCompliesPattern | fieldBetween | fieldIn | notExpression | LPAREN expression RPAREN ;
src/LibraBFT/Concrete/System.agda
LaudateCorpus1/bft-consensus-agda
0
7739
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9. Copyright (c) 2020, 2021, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl -} open import LibraBFT.Base.Types open import LibraBFT.Concrete.System.Parameters open import LibraBFT.ImplShared.Base.Types open import LibraBFT.ImplShared.Consensus.Types open import LibraBFT.ImplShared.Consensus.Types.EpochDep open import LibraBFT.ImplShared.Util.Crypto open import Optics.All open import Util.Hash open import Util.KVMap open import Util.Lemmas open import Util.PKCS open import Util.Prelude open import LibraBFT.Abstract.Types.EpochConfig UID NodeId open EpochConfig -- This module defines an abstract system state (represented by a value of type -- 'IntermediateSystemState') for a given concrete state. The culminaton of this -- module is the 'intSystemState' "function" at the bottom, which is probably the -- best place to start understanding this. Longer term, we will also need -- higher-level, cross-epoch properties. open import Yasm.Base open import Yasm.System ℓ-RoundManager ℓ-VSFP ConcSysParms module LibraBFT.Concrete.System where module PerEpoch (𝓔 : EpochConfig) where open WithEC open import LibraBFT.Abstract.Abstract UID _≟UID_ NodeId 𝓔 (ConcreteVoteEvidence 𝓔) as Abs hiding (qcVotes; Vote) open import LibraBFT.Concrete.Intermediate 𝓔 (ConcreteVoteEvidence 𝓔) open import LibraBFT.Concrete.Records as LCR open LCR.WithEC 𝓔 module PerState (st : SystemState) where -- * Auxiliary definitions; -- Here we capture the idea that there exists a vote message that -- witnesses the existence of a given Abs.Vote record ∃VoteMsgFor (v : Abs.Vote) : Set where constructor mk∃VoteMsgFor field -- A message that was actually sent nm : NetworkMsg cv : Vote cv∈nm : cv ⊂Msg nm -- And contained a valid vote that, once abstracted, yeilds v. vmsgMember : EpochConfig.Member 𝓔 vmsgSigned : WithVerSig (getPubKey 𝓔 vmsgMember) cv vmsg≈v : α-ValidVote 𝓔 cv vmsgMember ≡ v vmsgEpoch : cv ^∙ vEpoch ≡ epoch 𝓔 open ∃VoteMsgFor public record ∃VoteMsgSentFor (sm : SentMessages)(v : Abs.Vote) : Set where constructor mk∃VoteMsgSentFor field vmFor : ∃VoteMsgFor v vmSender : NodeId nmSentByAuth : (vmSender , (nm vmFor)) ∈ sm open ∃VoteMsgSentFor public ∈QC⇒sent : ∀{st : SystemState} {q α} → Abs.Q q α-Sent (msgPool st) → Meta-Honest-Member α → (vα : α Abs.∈QC q) → ∃VoteMsgSentFor (msgPool st) (Abs.∈QC-Vote q vα) ∈QC⇒sent vsent@(ws {sender} {nm} e≡ nm∈st (qc∈NM {cqc} .{nm} valid cqc∈nm)) ha va with All-reduce⁻ {vdq = Any-lookup va} (α-Vote cqc valid) All-self (Any-lookup-correctP va) ...| as , as∈cqc , α≡ with α-Vote-evidence cqc valid as∈cqc | inspect (α-Vote-evidence cqc valid) as∈cqc ...| ev | [ refl ] with vote∈qc {vs = as} as∈cqc refl cqc∈nm ...| v∈nm = mk∃VoteMsgSentFor (mk∃VoteMsgFor nm (_cveVote ev) v∈nm (_ivvMember (_cveIsValidVote ev)) (_ivvSigned (_cveIsValidVote ev)) (sym α≡) (_ivvEpoch (_cveIsValidVote ev))) sender nm∈st -- Finally, we can define the abstract system state corresponding to the concrete state st intSystemState : IntermediateSystemState ℓ0 intSystemState = record { InSys = λ { r → r α-Sent (msgPool st) } ; HasBeenSent = λ { v → ∃VoteMsgSentFor (msgPool st) v } ; ∈QC⇒HasBeenSent = ∈QC⇒sent {st = st} } module InSys (siah : SystemInitAndHandlers ℓ-RoundManager ConcSysParms) where open WithInitAndHandlers siah open All-InSys-props stable : ∀ {st0 st1 : SystemState} → Step st0 st1 → {r : Abs.Record} → IntermediateSystemState.InSys (PerState.intSystemState st0) r → IntermediateSystemState.InSys (PerState.intSystemState st1) r stable theStep (_α-Sent_.ws refl x₁ x₂) = _α-Sent_.ws refl (msgs-stable theStep x₁) x₂ ais-stable : ∀ {st0 st1 : SystemState} → Step st0 st1 → {o r : Abs.Record} → (rc : RecordChainFrom o r) → All-InSys (IntermediateSystemState.InSys (PerState.intSystemState st0)) rc → All-InSys (IntermediateSystemState.InSys (PerState.intSystemState st1)) rc ais-stable theStep rc ais = λ x → stable theStep (ais x)
Transynther/x86/_processed/AVXALIGN/_st_zr_sm_/i7-7700_9_0x48.log_17342_2327.asm
ljhsiun2/medusa
9
5817
<filename>Transynther/x86/_processed/AVXALIGN/_st_zr_sm_/i7-7700_9_0x48.log_17342_2327.asm .global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x12a5a, %rsi lea addresses_WC_ht+0xa9ea, %rdi nop nop and %rbx, %rbx mov $27, %rcx rep movsq nop nop add %rsi, %rsi lea addresses_WT_ht+0xdbda, %r15 clflush (%r15) nop nop nop nop nop sub %r12, %r12 and $0xffffffffffffffc0, %r15 movaps (%r15), %xmm2 vpextrq $1, %xmm2, %rdx nop nop nop nop and %rdi, %rdi lea addresses_WC_ht+0x621a, %rsi lea addresses_normal_ht+0x1dc8a, %rdi nop nop nop nop dec %r8 mov $90, %rcx rep movsb and %rsi, %rsi lea addresses_WT_ht+0x190da, %r8 nop sub $59756, %rdx movb (%r8), %cl nop nop inc %rsi lea addresses_WT_ht+0x1e1da, %rbx nop nop nop nop nop and $44475, %rdi movw $0x6162, (%rbx) nop nop nop nop nop sub %rcx, %rcx lea addresses_D_ht+0xc9ce, %rdx nop add $35041, %rbx movl $0x61626364, (%rdx) add $792, %rbx lea addresses_WC_ht+0x1dda, %rsi lea addresses_WT_ht+0xc7ae, %rdi nop cmp $56256, %r8 mov $4, %rcx rep movsb xor $65412, %r8 lea addresses_WT_ht+0x1e4ea, %rdx nop nop sub $44027, %rdi movl $0x61626364, (%rdx) add $37549, %rcx lea addresses_WC_ht+0x1c182, %rcx clflush (%rcx) nop add %r12, %r12 mov (%rcx), %r8d nop nop cmp $51073, %rdx lea addresses_D_ht+0x19d7a, %rbx nop nop and %r12, %r12 movb $0x61, (%rbx) nop cmp $13671, %r12 lea addresses_WC_ht+0x31da, %rcx sub $24592, %rdx movups (%rcx), %xmm5 vpextrq $0, %xmm5, %rsi nop nop nop and $53367, %rsi lea addresses_UC_ht+0x1061a, %rsi nop nop nop nop nop add %rcx, %rcx mov $0x6162636465666768, %r8 movq %r8, %xmm0 movups %xmm0, (%rsi) nop nop nop nop sub $15848, %r12 lea addresses_D_ht+0x5016, %rsi lea addresses_WT_ht+0x1bdda, %rdi nop nop nop nop lfence mov $111, %rcx rep movsw nop nop nop nop nop xor %rbx, %rbx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r8 push %rbp push %rbx push %rdx // Store mov $0xc12, %r13 nop nop nop add $43441, %rbp movw $0x5152, (%r13) nop nop nop dec %r10 // Store lea addresses_RW+0xc4da, %rdx nop add $33678, %r10 mov $0x5152535455565758, %r13 movq %r13, %xmm5 movups %xmm5, (%rdx) xor $24831, %rdx // Store lea addresses_US+0x50de, %rdx clflush (%rdx) xor %rbx, %rbx mov $0x5152535455565758, %rbp movq %rbp, (%rdx) nop nop nop nop nop xor $33517, %r13 // Store lea addresses_UC+0x18c4a, %rbp nop add %r13, %r13 mov $0x5152535455565758, %rdx movq %rdx, %xmm2 movups %xmm2, (%rbp) nop nop nop and $17058, %rbp // Store mov $0x5a9cd200000009da, %r13 clflush (%r13) nop nop nop nop nop and %r10, %r10 movb $0x51, (%r13) nop nop nop add $40865, %r8 // Store lea addresses_D+0x1c2da, %rbp nop nop nop nop nop dec %r10 movl $0x51525354, (%rbp) nop cmp %r14, %r14 // Load lea addresses_normal+0xdfda, %r8 add %r10, %r10 movups (%r8), %xmm1 vpextrq $1, %xmm1, %rdx // Exception!!! nop mov (0), %r13 nop nop nop add $20677, %rbx // Store mov $0x67278700000005da, %r8 nop nop cmp %r10, %r10 movl $0x51525354, (%r8) nop nop nop nop cmp $52657, %rbx // Store lea addresses_normal+0x14b8a, %rbx nop nop nop nop inc %r10 mov $0x5152535455565758, %rbp movq %rbp, %xmm5 vmovups %ymm5, (%rbx) nop nop inc %r13 // Faulty Load mov $0x5a9cd200000009da, %r14 nop nop nop nop nop add $52585, %rdx mov (%r14), %ebx lea oracles, %r10 and $0xff, %rbx shlq $12, %rbx mov (%r10,%rbx,1), %rbx pop %rdx pop %rbx pop %rbp pop %r8 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 3, 'size': 2, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 8, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 4, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': True, 'congruent': 9, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': True, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'00': 287, '51': 17055} 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 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 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 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 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 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 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 00 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 00 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 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 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 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 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 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 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 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 00 51 51 51 */
agda/BBHeap/Insert.agda
bgbianchi/sorting
6
11075
open import Relation.Binary.Core module BBHeap.Insert {A : Set} (_≤_ : A → A → Set) (tot≤ : Total _≤_) (trans≤ : Transitive _≤_) where open import BBHeap _≤_ open import BBHeap.Properties _≤_ open import BBHeap.Subtyping.Properties _≤_ trans≤ open import Bound.Lower A open import Bound.Lower.Order _≤_ open import Bound.Lower.Order.Properties _≤_ trans≤ open import Data.Sum renaming (_⊎_ to _∨_) open import Order.Total _≤_ tot≤ mutual insert : {b : Bound}{x : A} → LeB b (val x) → BBHeap b → BBHeap b insert b≤x leaf = left b≤x lf⋘ insert {x = x} b≤x (left {x = y} b≤y l⋘r) with tot≤ x y ... | inj₁ x≤y with lemma-insert⋘ (lexy refl≤) l⋘r ... | inj₁ lᵢ⋘r = left b≤x (subtyping⋘ (lexy x≤y) (lexy x≤y) lᵢ⋘r) ... | inj₂ lᵢ⋗r = right b≤x (subtyping⋙ (lexy x≤y) (lexy x≤y) (lemma⋗ lᵢ⋗r)) insert {x = x} b≤x (left {x = y} b≤y l⋘r) | inj₂ y≤x with lemma-insert⋘ (lexy y≤x) l⋘r ... | inj₁ lᵢ⋘r = left b≤y lᵢ⋘r ... | inj₂ lᵢ⋗r = right b≤y (lemma⋗ lᵢ⋗r) insert {x = x} b≤x (right {x = y} b≤y l⋙r) with tot≤ x y ... | inj₁ x≤y with lemma-insert⋙ (lexy refl≤) l⋙r ... | inj₁ l⋙rᵢ = right b≤x (subtyping⋙ (lexy x≤y) (lexy x≤y) l⋙rᵢ) ... | inj₂ l≃rᵢ = left b≤x (subtyping⋘ (lexy x≤y) (lexy x≤y) (lemma≃ l≃rᵢ)) insert {x = x} b≤x (right {x = y} b≤y l⋙r) | inj₂ y≤x with lemma-insert⋙ (lexy y≤x) l⋙r ... | inj₁ l⋙rᵢ = right b≤y l⋙rᵢ ... | inj₂ l≃rᵢ = left b≤y (lemma≃ l≃rᵢ) lemma-insert⋘ : {b b' : Bound}{x : A}{h : BBHeap b}{h' : BBHeap b'} → (b≤x : LeB b (val x)) → h ⋘ h' → insert b≤x h ⋘ h' ∨ insert b≤x h ⋗ h' lemma-insert⋘ b≤x lf⋘ = inj₂ (⋗lf b≤x) lemma-insert⋘ {x = x} b≤x (ll⋘ {x = y} b≤y b'≤y' l⋘r l'⋘r' l'≃r' r≃l') with tot≤ x y ... | inj₁ x≤y with lemma-insert⋘ (lexy refl≤) l⋘r ... | inj₁ lᵢ⋘r = inj₁ (ll⋘ b≤x b'≤y' (subtyping⋘ (lexy x≤y) (lexy x≤y) lᵢ⋘r) l'⋘r' l'≃r' (subtyping≃l (lexy x≤y) r≃l')) ... | inj₂ lᵢ⋗r = inj₁ (lr⋘ b≤x b'≤y' (subtyping⋙ (lexy x≤y) (lexy x≤y) (lemma⋗ lᵢ⋗r)) l'⋘r' l'≃r' (subtyping⋗l (lexy x≤y) (lemma⋗≃ lᵢ⋗r r≃l'))) lemma-insert⋘ {x = x} b≤x (ll⋘ {x = y} b≤y b'≤y' l⋘r l'⋘r' l'≃r' r≃l') | inj₂ y≤x with lemma-insert⋘ (lexy y≤x) l⋘r ... | inj₁ lᵢ⋘r = inj₁ (ll⋘ b≤y b'≤y' lᵢ⋘r l'⋘r' l'≃r' r≃l') ... | inj₂ lᵢ⋗r = inj₁ (lr⋘ b≤y b'≤y' (lemma⋗ lᵢ⋗r) l'⋘r' l'≃r' (lemma⋗≃ lᵢ⋗r r≃l')) lemma-insert⋘ {x = x} b≤x (lr⋘ {x = y} b≤y b'≤y' l⋙r l'⋘r' l'≃r' l⋗l') with tot≤ x y ... | inj₁ x≤y with lemma-insert⋙ (lexy refl≤) l⋙r ... | inj₁ l⋙rᵢ = inj₁ (lr⋘ b≤x b'≤y' (subtyping⋙ (lexy x≤y) (lexy x≤y) l⋙rᵢ) l'⋘r' l'≃r' (subtyping⋗l (lexy x≤y) l⋗l')) ... | inj₂ l≃rᵢ = inj₂ (⋗nd b≤x b'≤y' (subtyping⋘ (lexy x≤y) (lexy x≤y) (lemma≃ l≃rᵢ)) l'⋘r' (subtyping≃ (lexy x≤y) (lexy x≤y) l≃rᵢ) l'≃r' (subtyping⋗l (lexy x≤y) l⋗l')) lemma-insert⋘ {x = x} b≤x (lr⋘ {x = y} b≤y b'≤y' l⋙r l'⋘r' l'≃r' l⋗l') | inj₂ y≤x with lemma-insert⋙ (lexy y≤x) l⋙r ... | inj₁ l⋙rᵢ = inj₁ (lr⋘ b≤y b'≤y' l⋙rᵢ l'⋘r' l'≃r' l⋗l') ... | inj₂ l≃rᵢ = inj₂ (⋗nd b≤y b'≤y' (lemma≃ l≃rᵢ) l'⋘r' l≃rᵢ l'≃r' l⋗l') lemma-insert⋙ : {b b' : Bound}{x : A}{h : BBHeap b}{h' : BBHeap b'} → (b'≤x : LeB b' (val x)) → h ⋙ h' → h ⋙ insert b'≤x h' ∨ h ≃ insert b'≤x h' lemma-insert⋙ {x = x} b'≤x (⋙lf {x = y} b≤y) = inj₂ (≃nd b≤y b'≤x lf⋘ lf⋘ ≃lf ≃lf ≃lf) lemma-insert⋙ {x = x} b'≤x (⋙rl {x' = y'} b≤y b'≤y' l⋘r l≃r l'⋘r' l⋗r') with tot≤ x y' ... | inj₁ x≤y' with lemma-insert⋘ (lexy refl≤) l'⋘r' ... | inj₁ l'ᵢ⋘r' = inj₁ (⋙rl b≤y b'≤x l⋘r l≃r (subtyping⋘ (lexy x≤y') (lexy x≤y') l'ᵢ⋘r') (subtyping⋗r (lexy x≤y') l⋗r')) ... | inj₂ l'ᵢ⋗r' = inj₁ (⋙rr b≤y b'≤x l⋘r l≃r (subtyping⋙ (lexy x≤y') (lexy x≤y') (lemma⋗ l'ᵢ⋗r')) (subtyping≃r (lexy x≤y') (lemma⋗⋗ l⋗r' l'ᵢ⋗r'))) lemma-insert⋙ {x = x} b'≤x (⋙rl {x' = y'} b≤y b'≤y' l⋘r l≃r l'⋘r' l⋗r') | inj₂ y'≤x with lemma-insert⋘ (lexy y'≤x) l'⋘r' ... | inj₁ l'ᵢ⋘r' = inj₁ (⋙rl b≤y b'≤y' l⋘r l≃r l'ᵢ⋘r' l⋗r') ... | inj₂ l'ᵢ⋗r' = inj₁ (⋙rr b≤y b'≤y' l⋘r l≃r (lemma⋗ l'ᵢ⋗r') (lemma⋗⋗ l⋗r' l'ᵢ⋗r')) lemma-insert⋙ {x = x} b'≤x (⋙rr {x' = y'} b≤y b'≤y' l⋘r l≃r l'⋙r' l≃l') with tot≤ x y' ... | inj₁ x≤y' with lemma-insert⋙ (lexy refl≤) l'⋙r' ... | inj₁ l'⋙r'ᵢ = inj₁ (⋙rr b≤y b'≤x l⋘r l≃r (subtyping⋙ (lexy x≤y') (lexy x≤y') l'⋙r'ᵢ) (subtyping≃r (lexy x≤y') l≃l')) ... | inj₂ l'≃r'ᵢ = inj₂ (≃nd b≤y b'≤x l⋘r (subtyping⋘ (lexy x≤y') (lexy x≤y') (lemma≃ l'≃r'ᵢ)) l≃r (subtyping≃ (lexy x≤y') (lexy x≤y') l'≃r'ᵢ) (subtyping≃r (lexy x≤y') l≃l')) lemma-insert⋙ {x = x} b'≤x (⋙rr {x' = y'} b≤y b'≤y' l⋘r l≃r l'⋙r' l≃l') | inj₂ y'≤x with lemma-insert⋙ (lexy y'≤x) l'⋙r' ... | inj₁ l'⋙r'ᵢ = inj₁ (⋙rr b≤y b'≤y' l⋘r l≃r l'⋙r'ᵢ l≃l') ... | inj₂ l'≃r'ᵢ = inj₂ (≃nd b≤y b'≤y' l⋘r (lemma≃ l'≃r'ᵢ) l≃r l'≃r'ᵢ l≃l')
136/ada/increment_by.adb
notdb/LC-Practice
0
19554
<reponame>notdb/LC-Practice function Increment_By (I : Integer := 0; Incr : Integer := 1) return Integer is -- ^ Default value for parameters begin return I + Incr; end Increment_By;
src/ui/combat-ui.adb
thindil/steamsky
80
12166
-- Copyright (c) 2020-2021 <NAME> <<EMAIL>> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT 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 -- along with this program. If not, see <http://www.gnu.org/licenses/>. with Ada.Characters.Handling; use Ada.Characters.Handling; with Ada.Characters.Latin_1; use Ada.Characters.Latin_1; with Ada.Strings; use Ada.Strings; with Ada.Strings.Fixed; use Ada.Strings.Fixed; with Interfaces.C.Strings; use Interfaces.C.Strings; with GNAT.Directory_Operations; use GNAT.Directory_Operations; with GNAT.String_Split; use GNAT.String_Split; with CArgv; with Tcl; use Tcl; with Tcl.Ada; use Tcl.Ada; with Tcl.Tk.Ada; use Tcl.Tk.Ada; with Tcl.Tk.Ada.Grid; with Tcl.Tk.Ada.Pack; with Tcl.Tk.Ada.Widgets; use Tcl.Tk.Ada.Widgets; with Tcl.Tk.Ada.Widgets.Canvas; use Tcl.Tk.Ada.Widgets.Canvas; with Tcl.Tk.Ada.Widgets.Menu; use Tcl.Tk.Ada.Widgets.Menu; with Tcl.Tk.Ada.Widgets.Text; use Tcl.Tk.Ada.Widgets.Text; with Tcl.Tk.Ada.Widgets.TtkButton; use Tcl.Tk.Ada.Widgets.TtkButton; with Tcl.Tk.Ada.Widgets.TtkButton.TtkCheckButton; use Tcl.Tk.Ada.Widgets.TtkButton.TtkCheckButton; with Tcl.Tk.Ada.Widgets.TtkEntry.TtkComboBox; use Tcl.Tk.Ada.Widgets.TtkEntry.TtkComboBox; with Tcl.Tk.Ada.Widgets.TtkFrame; use Tcl.Tk.Ada.Widgets.TtkFrame; with Tcl.Tk.Ada.Widgets.TtkLabel; use Tcl.Tk.Ada.Widgets.TtkLabel; with Tcl.Tk.Ada.Widgets.TtkProgressBar; use Tcl.Tk.Ada.Widgets.TtkProgressBar; with Tcl.Tk.Ada.Widgets.TtkScrollbar; use Tcl.Tk.Ada.Widgets.TtkScrollbar; with Tcl.Tk.Ada.Winfo; use Tcl.Tk.Ada.Winfo; with Tcl.Tklib.Ada.Autoscroll; use Tcl.Tklib.Ada.Autoscroll; with Tcl.Tklib.Ada.Tooltip; use Tcl.Tklib.Ada.Tooltip; with Bases; use Bases; with Config; use Config; with CoreUI; use CoreUI; with Crew; use Crew; with Dialogs; use Dialogs; with Events; use Events; with Factions; use Factions; with Items; use Items; with Maps; use Maps; with Maps.UI; use Maps.UI; with Messages; use Messages; with ShipModules; use ShipModules; with Ships.Crew; use Ships.Crew; with Ships.Movement; use Ships.Movement; with Utils.UI; use Utils.UI; package body Combat.UI is -- ****if* CUI/CUI.GetGunSpeed -- FUNCTION -- Get information about fire rate of selected gun with selected order -- PARAMETERS -- Position - Number of gun to check -- Index - Index of the gunner's order -- RESULT -- String with info about gun fire rate -- SOURCE function GetGunSpeed(Position: Natural; Index: Positive) return String is -- **** GunSpeed: Integer; Firerate: Unbounded_String; begin GunSpeed := Modules_List(Player_Ship.Modules(Guns(Position)(1)).Proto_Index).Speed; case Index is when 1 => GunSpeed := 0; when 3 => null; when others => GunSpeed := (if GunSpeed > 0 then Integer(Float'Ceiling(Float(GunSpeed) / 2.0)) else GunSpeed - 1); end case; if GunSpeed > 0 then Firerate := To_Unbounded_String ("(" & Trim(Integer'Image(GunSpeed), Both) & "/round)"); elsif GunSpeed < 0 then Firerate := To_Unbounded_String ("(1/" & Trim(Integer'Image(GunSpeed), Both) & " rounds)"); end if; return To_String(Firerate); end GetGunSpeed; -- ****if* CUI/CUI.UpdateMessages -- FUNCTION -- Update in-game messages in combat -- SOURCE procedure UpdateMessages is -- **** LoopStart: Integer := 0 - MessagesAmount; Message: Message_Data; CurrentTurnTime: Unbounded_String := To_Unbounded_String(FormatedTime); MessagesView: constant Tk_Text := Get_Widget(Main_Paned & ".controls.messages.view"); procedure ShowMessage is TagNames: constant array(1 .. 5) of Unbounded_String := (To_Unbounded_String("yellow"), To_Unbounded_String("green"), To_Unbounded_String("red"), To_Unbounded_String("blue"), To_Unbounded_String("cyan")); begin if Unbounded_Slice(Message.Message, 1, Length(CurrentTurnTime)) = CurrentTurnTime then if Message.Color = WHITE then Insert (MessagesView, "end", "{" & To_String(Message.Message) & "}"); else Insert (MessagesView, "end", "{" & To_String(Message.Message) & "} [list " & To_String(TagNames(Message_Color'Pos(Message.Color))) & "]"); end if; else Insert (MessagesView, "end", "{" & To_String(Message.Message) & "} [list gray]"); end if; end ShowMessage; begin Tcl.Tk.Ada.Widgets.configure(MessagesView, "-state normal"); Delete(MessagesView, "1.0", "end"); if LoopStart = 0 then Tcl.Tk.Ada.Widgets.configure(MessagesView, "-state disable"); return; end if; if LoopStart < -10 then LoopStart := -10; end if; Message := GetMessage(GetLastMessageIndex); if Unbounded_Slice(Message.Message, 1, Length(CurrentTurnTime)) /= CurrentTurnTime then CurrentTurnTime := Unbounded_Slice(Message.Message, 1, Length(CurrentTurnTime)); end if; if Game_Settings.Messages_Order = OLDER_FIRST then Show_Older_Messages_First_Loop : for I in LoopStart .. -1 loop Message := GetMessage(I + 1); if (GetLastMessageIndex + I + 1) >= MessagesStarts then ShowMessage; if I < -1 then Insert(MessagesView, "end", "{" & LF & "}"); end if; end if; end loop Show_Older_Messages_First_Loop; See(MessagesView, "end"); else Show_New_Messages_First_Loop : for I in reverse LoopStart .. -1 loop Message := GetMessage(I + 1); exit Show_New_Messages_First_Loop when (GetLastMessageIndex + I + 1) < MessagesStarts; ShowMessage; if I > LoopStart then Insert(MessagesView, "end", "{" & LF & "}"); end if; end loop Show_New_Messages_First_Loop; end if; Tcl.Tk.Ada.Widgets.configure(MessagesView, "-state disable"); end UpdateMessages; -- ****if* CUI/CUI.UpdateCombatUI -- FUNCTION -- Update information about combat: remove old UI and create new elements -- SOURCE procedure UpdateCombatUI is -- **** Tokens: Slice_Set; Frame: Ttk_Frame := Get_Widget(Main_Paned & ".combatframe.crew.canvas.frame"); Label: Ttk_Label; ComboBox: Ttk_ComboBox := Get_Widget(Frame & ".pilotcrew"); GunnersOrders: constant array(1 .. 6) of Unbounded_String := (To_Unbounded_String("{Don't shoot"), To_Unbounded_String("{Precise fire "), To_Unbounded_String("{Fire at will "), To_Unbounded_String("{Aim for their engine "), To_Unbounded_String("{Aim for their weapon "), To_Unbounded_String("{Aim for their hull ")); GunIndex, GunnerOrders, EnemyInfo: Unbounded_String; HaveAmmo, HasDamage: Boolean; AmmoAmount, AmmoIndex, Row, Rows: Natural := 0; ProgressBar: Ttk_ProgressBar; DamagePercent: Float; CombatCanvas: Tk_Canvas; Has_Gunner: Boolean := False; function GetCrewList(Position: Natural) return String is CrewList: Unbounded_String := To_Unbounded_String("Nobody"); begin Mark_Skills_Loop : for I in Player_Ship.Crew.First_Index .. Player_Ship.Crew.Last_Index loop if Player_Ship.Crew(I).Skills.Length > 0 then Append (CrewList, " {" & Player_Ship.Crew(I).Name & Get_Skill_Marks ((if Position = 0 then Piloting_Skill elsif Position = 1 then Engineering_Skill else Gunnery_Skill), I) & "}"); end if; end loop Mark_Skills_Loop; return To_String(CrewList); end GetCrewList; begin configure(ComboBox, "-values [list " & GetCrewList(0) & "]"); Current(ComboBox, Natural'Image(FindMember(Pilot))); ComboBox.Name := New_String(Frame & ".pilotorder"); Current(ComboBox, Integer'Image(PilotOrder - 1)); if not Factions_List(Player_Ship.Crew(1).Faction).Flags.Contains (To_Unbounded_String("sentientships")) and FindMember(Pilot) = 0 then Tcl.Tk.Ada.Grid.Grid_Remove(ComboBox); else Tcl.Tk.Ada.Grid.Grid(ComboBox); end if; ComboBox.Name := New_String(Frame & ".engineercrew"); configure(ComboBox, "-values [list " & GetCrewList(1) & "]"); Current(ComboBox, Natural'Image(FindMember(Engineer))); ComboBox.Name := New_String(Frame & ".engineerorder"); Current(ComboBox, Natural'Image(EngineerOrder - 1)); if not Factions_List(Player_Ship.Crew(1).Faction).Flags.Contains (To_Unbounded_String("sentientships")) and FindMember(Engineer) = 0 then Tcl.Tk.Ada.Grid.Grid_Remove(ComboBox); else Tcl.Tk.Ada.Grid.Grid(ComboBox); end if; Create(Tokens, Tcl.Tk.Ada.Grid.Grid_Size(Frame), " "); Rows := Positive'Value(Slice(Tokens, 2)); Delete_Widgets(3, (Rows - 1), Frame); Show_Guns_Info_Loop : for I in Guns.Iterate loop HaveAmmo := False; Has_Gunner := False; declare AmmoIndex: constant Natural := (if Player_Ship.Modules(Guns(I)(1)).M_Type = GUN then Player_Ship.Modules(Guns(I)(1)).Ammo_Index else Player_Ship.Modules(Guns(I)(1)).Harpoon_Index); begin if (AmmoIndex in Player_Ship.Cargo.First_Index .. Player_Ship.Cargo.Last_Index) and then Items_List(Player_Ship.Cargo(AmmoIndex).ProtoIndex).IType = Items_Types (Modules_List(Player_Ship.Modules(Guns(I)(1)).Proto_Index) .Value) then AmmoAmount := Player_Ship.Cargo(AmmoIndex).Amount; HaveAmmo := True; end if; end; if not HaveAmmo then AmmoAmount := 0; Find_Ammo_Loop : for J in Items_List.Iterate loop if Items_List(J).IType = Items_Types (Modules_List(Player_Ship.Modules(Guns(I)(1)).Proto_Index) .Value) then AmmoIndex := FindItem(Player_Ship.Cargo, Objects_Container.Key(J)); if AmmoIndex > 0 then AmmoAmount := AmmoAmount + Player_Ship.Cargo(AmmoIndex).Amount; end if; end if; end loop Find_Ammo_Loop; end if; GunIndex := To_Unbounded_String (Trim(Positive'Image(Guns_Container.To_Index(I)), Left)); Label := Create (Frame & ".gunlabel" & To_String(GunIndex), "-text {" & To_String(Player_Ship.Modules(Guns(I)(1)).Name) & ":" & LF & "(Ammo:" & Natural'Image(AmmoAmount) & ")}"); Tcl.Tk.Ada.Grid.Grid (Label, "-row" & Positive'Image(Guns_Container.To_Index(I) + 2) & " -padx {5 0}"); Tcl_Eval (Get_Context, "SetScrollbarBindings " & Frame & ".gunlabel" & To_String(GunIndex) & " $combatframe.crew.scrolly"); ComboBox := Create (Frame & ".guncrew" & To_String(GunIndex), "-values [list " & GetCrewList(2) & "] -width 10 -state readonly"); if Player_Ship.Modules(Guns(I)(1)).Owner(1) /= 0 then if Player_Ship.Crew(Player_Ship.Modules(Guns(I)(1)).Owner(1)) .Order = Gunner then Current (ComboBox, Positive'Image(Player_Ship.Modules(Guns(I)(1)).Owner(1))); Has_Gunner := True; else Current(ComboBox, "0"); end if; else Current(ComboBox, "0"); end if; Tcl.Tk.Ada.Grid.Grid (ComboBox, "-row" & Positive'Image(Guns_Container.To_Index(I) + 2) & " -column 1"); Bind (ComboBox, "<Return>", "{InvokeButton " & Main_Paned & ".combatframe.next}"); Bind (ComboBox, "<<ComboboxSelected>>", "{SetCombatPosition gunner " & To_String(GunIndex) & "}"); Add (ComboBox, "Select the crew member which will be the operate the gun during" & LF & "the combat. The sign + after name means that this crew member" & LF & "has gunnery skill, the sign ++ after name means that his/her" & LF & "gunnery skill is the best in the crew"); GunnerOrders := Null_Unbounded_String; Show_Gun_Orders_Loop : for J in GunnersOrders'Range loop Append (GunnerOrders, " " & GunnersOrders(J) & GetGunSpeed(Guns_Container.To_Index(I), J) & "}"); end loop Show_Gun_Orders_Loop; ComboBox := Get_Widget(Frame & ".gunorder" & To_String(GunIndex)); if Winfo_Get(ComboBox, "exists") = "0" then ComboBox := Create (Frame & ".gunorder" & To_String(GunIndex), "-values [list" & To_String(GunnerOrders) & "] -state readonly"); end if; Current(ComboBox, Natural'Image(Guns(I)(2) - 1)); if Has_Gunner then Tcl.Tk.Ada.Grid.Grid (ComboBox, "-row" & Positive'Image(Guns_Container.To_Index(I) + 2) & " -column 2 -padx {0 5}"); else Tcl.Tk.Ada.Grid.Grid_Remove(ComboBox); end if; Bind (ComboBox, "<Return>", "{InvokeButton " & Main_Paned & ".combatframe.next}"); Bind (ComboBox, "<<ComboboxSelected>>", "{SetCombatOrder " & To_String(GunIndex) & "}"); Add (ComboBox, "Select the order for the gunner. Shooting in the selected" & LF & "part of enemy ship is less precise but always hit the" & LF & "selected part."); end loop Show_Guns_Info_Loop; -- Show boarding/defending info if (HarpoonDuration > 0 or Enemy.HarpoonDuration > 0) and Proto_Ships_List(EnemyShipIndex).Crew.Length > 0 then declare Button: Ttk_Button := Create (Frame & ".boarding", "-text {Boarding party:} -command {SetCombatParty boarding}"); BoardingParty, Defenders: Unbounded_String; LabelLength: constant Positive := Positive'Value (Winfo_Get (Ttk_Label'(Get_Widget(Frame & ".engineercrew")), "reqwidth")) + Positive'Value (Winfo_Get (Ttk_Label'(Get_Widget(Frame & ".engineerorder")), "reqwidth")); begin Tcl.Tk.Ada.Grid.Grid(Button, "-padx 5"); Add (Button, "Set your boarding party. If you join it, you will be able" & LF & "to give orders them, but not your gunners or engineer."); Button := Create (Frame & ".defending", "-text {Defenders:} -command {SetCombatParty defenders}"); Tcl.Tk.Ada.Grid.Grid(Button, "-sticky we -padx 5 -pady 5"); Add(Button, "Set your ship's defenders against the enemy party."); Set_Boarding_And_Defenders_Loop : for Member of Player_Ship.Crew loop if Member.Order = Boarding then Append(BoardingParty, Member.Name & ", "); elsif Member.Order = Defend then Append(Defenders, Member.Name & ", "); end if; end loop Set_Boarding_And_Defenders_Loop; if BoardingParty /= Null_Unbounded_String then BoardingParty := Unbounded_Slice(BoardingParty, 1, Length(BoardingParty) - 2); end if; Label := Create (Frame & ".boardparty", "-text {" & To_String(BoardingParty) & "} -wraplength" & Positive'Image(LabelLength)); Tcl.Tk.Ada.Grid.Grid (Label, "-row" & Positive'Image(Natural(Guns.Length) + 3) & " -column 1 -columnspan 2 -sticky w"); Tcl_Eval (Get_Context, "SetScrollbarBindings " & Label & " $combatframe.crew.scrolly"); if Defenders /= Null_Unbounded_String then Defenders := Unbounded_Slice(Defenders, 1, Length(Defenders) - 2); end if; Label := Create (Frame & ".defenders", "-text {" & To_String(Defenders) & "} -wraplength" & Positive'Image(LabelLength)); Tcl.Tk.Ada.Grid.Grid (Label, "-row" & Positive'Image(Natural(Guns.Length) + 4) & " -column 1 -columnspan 2 -sticky w"); Tcl_Eval (Get_Context, "SetScrollbarBindings " & Label & " $combatframe.crew.scrolly"); end; end if; Tcl_Eval(Get_Context, "update"); CombatCanvas := Get_Widget(Main_Paned & ".combatframe.crew.canvas"); configure (CombatCanvas, "-scrollregion [list " & BBox(CombatCanvas, "all") & "]"); Xview_Move_To(CombatCanvas, "0.0"); Yview_Move_To(CombatCanvas, "0.0"); -- Show player ship damage info if needed Frame.Name := New_String(Main_Paned & ".combatframe.damage.canvas.frame"); Create(Tokens, Tcl.Tk.Ada.Grid.Grid_Size(Frame), " "); Rows := Natural'Value(Slice(Tokens, 2)); Delete_Widgets(0, Rows - 1, Frame); HasDamage := False; Show_Player_Ship_Damage_Loop : for Module of Player_Ship.Modules loop if Module.Durability = Module.Max_Durability then goto End_Of_Player_Ship_Damage_Loop; end if; Label := Create (Frame & ".lbl" & Trim(Natural'Image(Row), Left), "-text {" & To_String(Module.Name) & "}" & (if Module.Durability = 0 then " -font OverstrikedFont -style Gray.TLabel" else "")); Tcl.Tk.Ada.Grid.Grid (Label, "-row" & Natural'Image(Row) & " -sticky w -padx 5"); Tcl_Eval (Get_Context, "SetScrollbarBindings " & Label & " $combatframe.damage.scrolly"); DamagePercent := (Float(Module.Durability) / Float(Module.Max_Durability)); ProgressBar := Create (Frame & ".dmg" & Trim(Natural'Image(Row), Left), "-orient horizontal -length 150 -maximum 1.0 -value" & Float'Image(DamagePercent) & (if DamagePercent = 1.0 then " -style green.Horizontal.TProgressbar" elsif DamagePercent > 0.24 then " -style yellow.Horizontal.TProgressbar" else " -style Horizontal.TProgressbar")); Tcl.Tk.Ada.Grid.Grid (ProgressBar, "-row" & Natural'Image(Row) & " -column 1"); Tcl_Eval (Get_Context, "SetScrollbarBindings " & ProgressBar & " $combatframe.damage.scrolly"); Tcl.Tk.Ada.Grid.Column_Configure(Frame, ProgressBar, "-weight 1"); Tcl.Tk.Ada.Grid.Row_Configure(Frame, ProgressBar, "-weight 1"); Row := Row + 1; HasDamage := True; <<End_Of_Player_Ship_Damage_Loop>> end loop Show_Player_Ship_Damage_Loop; Tcl_Eval(Get_Context, "update"); CombatCanvas := Get_Widget(Main_Paned & ".combatframe.damage.canvas"); configure (CombatCanvas, "-scrollregion [list " & BBox(CombatCanvas, "all") & "]"); Xview_Move_To(CombatCanvas, "0.0"); Yview_Move_To(CombatCanvas, "0.0"); Frame.Name := New_String(Main_Paned & ".combatframe.damage"); if not HasDamage then Tcl.Tk.Ada.Grid.Grid_Remove(Frame); else Tcl.Tk.Ada.Grid.Grid(Frame); end if; Append (EnemyInfo, "Name: " & EnemyName & LF & "Type: " & Enemy.Ship.Name & LF & "Home: " & Sky_Bases(Enemy.Ship.Home_Base).Name & LF & "Distance: " & (if Enemy.Distance >= 15_000 then "Escaped" elsif Enemy.Distance in 10_000 .. 15_000 then "Long" elsif Enemy.Distance in 5_000 .. 10_000 then "Medium" elsif Enemy.Distance in 1_000 .. 5_000 then "Short" else "Close") & LF & "Status: "); if Enemy.Distance < 15_000 then if Enemy.Ship.Modules(1).Durability = 0 then Append(EnemyInfo, "Destroyed"); else declare EnemyStatus: Unbounded_String := To_Unbounded_String("Ok"); begin Check_Enemy_Ship_Status_Loop : for Module of Enemy.Ship.Modules loop if Module.Durability < Module.Max_Durability then EnemyStatus := To_Unbounded_String("Damaged"); exit Check_Enemy_Ship_Status_Loop; end if; end loop Check_Enemy_Ship_Status_Loop; Append(EnemyInfo, EnemyStatus); end; Check_Enemy_Status_Loop : for Module of Enemy.Ship.Modules loop if Module.Durability > 0 then case Modules_List(Module.Proto_Index).MType is when ARMOR => Append(EnemyInfo, " (armored)"); when GUN => Append(EnemyInfo, " (gun)"); when BATTERING_RAM => Append(EnemyInfo, " (battering ram)"); when HARPOON_GUN => Append(EnemyInfo, " (harpoon gun)"); when others => null; end case; end if; end loop Check_Enemy_Status_Loop; end if; else Append(EnemyInfo, "Unknown"); end if; Append(EnemyInfo, LF & "Speed: "); if Enemy.Distance < 15_000 then case Enemy.Ship.Speed is when Ships.FULL_STOP => Append(EnemyInfo, "Stopped"); when QUARTER_SPEED => Append(EnemyInfo, "Slow"); when HALF_SPEED => Append(EnemyInfo, "Medium"); when FULL_SPEED => Append(EnemyInfo, "Fast"); when others => null; end case; if Enemy.Ship.Speed /= Ships.FULL_STOP then declare SpeedDiff: constant Integer := RealSpeed(Enemy.Ship) - RealSpeed(Player_Ship); begin if SpeedDiff > 250 then Append(EnemyInfo, " (much faster)"); elsif SpeedDiff > 0 then Append(EnemyInfo, " (faster)"); elsif SpeedDiff = 0 then Append(EnemyInfo, " (equal)"); elsif SpeedDiff > -250 then Append(EnemyInfo, " (slower)"); else Append(EnemyInfo, " (much slower)"); end if; end; end if; else Append(EnemyInfo, "Unknown"); end if; if Length(Enemy.Ship.Description) > 0 then Append(EnemyInfo, LF & LF & Enemy.Ship.Description); end if; Label := Get_Widget(Main_Paned & ".combatframe.enemy.canvas.info"); configure(Label, "-text {" & To_String(EnemyInfo) & "}"); Tcl_Eval(Get_Context, "update"); CombatCanvas := Get_Widget(Main_Paned & ".combatframe.enemy.canvas"); configure (CombatCanvas, "-scrollregion [list " & BBox(CombatCanvas, "all") & "]"); Xview_Move_To(CombatCanvas, "0.0"); Yview_Move_To(CombatCanvas, "0.0"); Frame.Name := New_String(Main_Paned & ".combatframe.status.canvas.frame"); Create(Tokens, Tcl.Tk.Ada.Grid.Grid_Size(Frame), " "); Rows := Natural'Value(Slice(Tokens, 2)); Delete_Widgets(0, Rows - 1, Frame); if Enemy.Ship.Modules(1).Durability = 0 then Tcl.Tk.Ada.Grid.Grid_Remove(Frame); goto End_Of_Enemy_Modules; end if; Row := 0; Show_Enemy_Ship_Status_Loop : for I in Enemy.Ship.Modules.Iterate loop Label := Create (Frame & ".lbl" & Trim(Natural'Image(Row), Left), "-text {" & To_String (if Enemy.Distance > 1_000 then To_Unbounded_String (GetModuleType(Enemy.Ship.Modules(I).Proto_Index)) else Modules_List(Enemy.Ship.Modules(I).Proto_Index).Name) & "}" & (if Enemy.Ship.Modules(I).Durability = 0 then " -font OverstrikedFont -style Gray.TLabel" else "")); Tcl.Tk.Ada.Grid.Grid (Label, "-row" & Natural'Image(Row) & " -column 0 -sticky w -padx 5"); Tcl_Eval (Get_Context, "SetScrollbarBindings " & Label & " $combatframe.status.scrolly"); DamagePercent := ((Float(Enemy.Ship.Modules(I).Durability) / Float(Enemy.Ship.Modules(I).Max_Durability))); ProgressBar := Create (Frame & ".dmg" & Trim(Natural'Image(Row), Left), "-orient horizontal -length 150 -maximum 1.0 -value" & Float'Image(DamagePercent) & (if DamagePercent = 1.0 then " -style green.Horizontal.TProgressbar" elsif DamagePercent > 0.24 then " -style yellow.Horizontal.TProgressbar" else " -style Horizontal.TProgressbar")); Tcl.Tk.Ada.Grid.Grid (ProgressBar, "-row" & Natural'Image(Row) & " -column 1"); Tcl_Eval (Get_Context, "SetScrollbarBindings " & ProgressBar & " $combatframe.status.scrolly"); Tcl.Tk.Ada.Grid.Column_Configure(Frame, ProgressBar, "-weight 1"); Tcl.Tk.Ada.Grid.Row_Configure(Frame, ProgressBar, "-weight 1"); Row := Row + 1; end loop Show_Enemy_Ship_Status_Loop; <<End_Of_Enemy_Modules>> Tcl_Eval(Get_Context, "update"); CombatCanvas := Get_Widget(Main_Paned & ".combatframe.status.canvas"); configure (CombatCanvas, "-scrollregion [list " & BBox(CombatCanvas, "all") & "]"); Xview_Move_To(CombatCanvas, "0.0"); Yview_Move_To(CombatCanvas, "0.0"); UpdateMessages; end UpdateCombatUI; -- ****if* CUI/CUI.Set_Party_Order_Command -- FUNCTION -- Set boarding or defending order for the selected crew member -- PARAMETERS -- ClientData - Custom data send to the command. Unused -- Interp - Tcl interpreter in which command was executed. Unused -- Argc - Number of arguments passed to the command. Unused -- Argv - Values of arguments passed to the command. -- RESULT -- This function always return TCL_OK -- COMMANDS -- SetBoarding MemberIndex Order -- MemberIndex is a index of the player ship crew member which will get the -- order. Order is the order to give. Possible values are boarding or -- defend. -- SOURCE function Set_Party_Order_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with Convention => C; -- **** function Set_Party_Order_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is pragma Unreferenced(ClientData, Interp, Argc); MemberIndex: constant Positive := Positive'Value(CArgv.Arg(Argv, 1)); OrderIndex: Natural := 0; Order: constant Crew_Orders := (if CArgv.Arg(Argv, 2) = "boarding" then Boarding else Defend); begin Give_Boarding_Orders_Loop : for I in Player_Ship.Crew.Iterate loop if Player_Ship.Crew(I).Order = Boarding then OrderIndex := OrderIndex + 1; end if; if Crew_Container.To_Index(I) = MemberIndex then if Player_Ship.Crew(I).Order /= Order then GiveOrders(Player_Ship, Crew_Container.To_Index(I), Order, 0); if Order = Boarding then BoardingOrders.Append(New_Item => 0); end if; else GiveOrders(Player_Ship, Crew_Container.To_Index(I), Rest); if Order = Boarding then BoardingOrders.Delete(Index => OrderIndex); end if; OrderIndex := OrderIndex - 1; end if; exit Give_Boarding_Orders_Loop; end if; end loop Give_Boarding_Orders_Loop; UpdateCombatUI; return TCL_OK; end Set_Party_Order_Command; -- ****if* CUI/CUI.ShowCombatFrame -- FUNCTION -- Show ship to ship combat UI or boarding UI -- SOURCE procedure ShowCombatFrame(FrameName: String) is -- **** CombatFrame: constant Ttk_Frame := Get_Widget(".gameframe.paned.combatframe"); ChildFrame: Ttk_Frame := Get_Widget (Tcl.Tk.Ada.Grid.Grid_Slaves(CombatFrame, "-row 0 -column 0")); CombatChildren: constant array(1 .. 5) of Unbounded_String := (To_Unbounded_String(".crew"), To_Unbounded_String(".damage"), To_Unbounded_String(".enemy"), To_Unbounded_String(".status"), To_Unbounded_String(".next")); BoardingChildren: constant array(1 .. 3) of Unbounded_String := (To_Unbounded_String(".left"), To_Unbounded_String(".right"), To_Unbounded_String(".next")); begin if FrameName = ".combat" then if Widget_Image(ChildFrame) = CombatFrame & To_String(CombatChildren(1)) then return; end if; Hide_Boarding_UI_Loop : for BoardingChild of BoardingChildren loop ChildFrame := Get_Widget(CombatFrame & To_String(BoardingChild)); Tcl.Tk.Ada.Grid.Grid_Remove(ChildFrame); end loop Hide_Boarding_UI_Loop; Show_Combat_UI_Loop : for CombatChild of CombatChildren loop ChildFrame := Get_Widget(CombatFrame & To_String(CombatChild)); Tcl.Tk.Ada.Grid.Grid(ChildFrame); end loop Show_Combat_UI_Loop; else if Widget_Image(ChildFrame) = CombatFrame & To_String(BoardingChildren(1)) then return; end if; Hide_Combat_UI_Loop : for CombatChild of CombatChildren loop ChildFrame := Get_Widget(CombatFrame & To_String(CombatChild)); Tcl.Tk.Ada.Grid.Grid_Remove(ChildFrame); end loop Hide_Combat_UI_Loop; Show_Boarding_UI_Loop : for BoardingChild of BoardingChildren loop ChildFrame := Get_Widget(CombatFrame & To_String(BoardingChild)); Tcl.Tk.Ada.Grid.Grid(ChildFrame); end loop Show_Boarding_UI_Loop; end if; end ShowCombatFrame; -- ****if* CUI/CUI.UpdateBoardingUI -- FUNCTION -- Update information about boarding party: remove old UI and create new elements -- SOURCE procedure UpdateBoardingUI is -- **** OrdersList, OrderName: Unbounded_String; FrameName: constant String := Main_Paned & ".combatframe"; Frame: Ttk_Frame := Get_Widget(FrameName & ".right.canvas.frame"); Label: Ttk_Label; Tokens: Slice_Set; Rows: Natural := 0; ProgressBar: Ttk_ProgressBar; ComboBox: Ttk_ComboBox; OrderIndex: Positive := 1; CombatCanvas: Tk_Canvas; Button: Ttk_Button; begin Create(Tokens, Tcl.Tk.Ada.Grid.Grid_Size(Frame), " "); Rows := Natural'Value(Slice(Tokens, 2)); Delete_Widgets(1, Rows - 1, Frame); Show_Enemy_Crew_Loop : for I in Enemy.Ship.Crew.Iterate loop Append(OrdersList, "{Attack " & Enemy.Ship.Crew(I).Name & "} "); Button := Create (Frame & ".name" & Trim(Positive'Image(Crew_Container.To_Index(I)), Left), "-text {" & To_String(Enemy.Ship.Crew(I).Name) & "} -command {ShowCombatInfo enemy" & Positive'Image(Crew_Container.To_Index(I)) & "}"); Add(Button, "Show more information about the enemy's crew member."); Tcl.Tk.Ada.Grid.Grid (Button, "-row" & Positive'Image(Crew_Container.To_Index(I)) & " -padx {5 0}"); ProgressBar := Create (Frame & ".health" & Trim(Natural'Image(Crew_Container.To_Index(I)), Left), "-orient horizontal -value " & Natural'Image(Enemy.Ship.Crew(I).Health) & " -length 150" & (if Enemy.Ship.Crew(I).Health > 74 then " -style green.Horizontal.TProgressbar" elsif Enemy.Ship.Crew(I).Health > 24 then " -style yellow.Horizontal.TProgressbar" else " -style Horizontal.TProgressbar")); Add(ProgressBar, "Enemy's health"); Tcl.Tk.Ada.Grid.Grid (ProgressBar, "-column 1 -row" & Positive'Image(Crew_Container.To_Index(I)) & " -padx 5"); Tcl_Eval (Get_Context, "SetScrollbarBindings " & ProgressBar & " $combatframe.right.scrolly"); OrderName := To_Unbounded_String(Crew_Orders'Image(Enemy.Ship.Crew(I).Order)); Replace_Slice (OrderName, 2, Length(OrderName), To_Lower(Slice(OrderName, 2, Length(OrderName)))); Label := Create (Frame & ".order" & Trim(Positive'Image(Crew_Container.To_Index(I)), Left), "-text {" & To_String(OrderName) & "}"); Add(Label, "Enemy's current order."); Tcl.Tk.Ada.Grid.Grid (Label, "-column 2 -row" & Positive'Image(Crew_Container.To_Index(I)) & " -padx {0 5}"); Tcl_Eval (Get_Context, "SetScrollbarBindings " & Label & " $combatframe.right.scrolly"); end loop Show_Enemy_Crew_Loop; Tcl_Eval(Get_Context, "update"); CombatCanvas := Get_Widget(FrameName & ".right.canvas"); configure (CombatCanvas, "-scrollregion [list " & BBox(CombatCanvas, "all") & "]"); Xview_Move_To(CombatCanvas, "0.0"); Yview_Move_To(CombatCanvas, "0.0"); Append(OrdersList, " {Back to the ship}"); Frame.Name := New_String(FrameName & ".left.canvas.frame"); Create(Tokens, Tcl.Tk.Ada.Grid.Grid_Size(Frame), " "); Rows := Natural'Value(Slice(Tokens, 2)); Delete_Widgets(1, Rows - 1, Frame); Show_Boarding_Party_Loop : for I in Player_Ship.Crew.Iterate loop if Player_Ship.Crew(I).Order /= Boarding then goto End_Of_Loop; end if; Button := Create (Frame & ".name" & Trim(Positive'Image(Crew_Container.To_Index(I)), Left), "-text {" & To_String(Player_Ship.Crew(I).Name) & "} -command {ShowCombatInfo player" & Positive'Image(Crew_Container.To_Index(I)) & "}"); Add(Button, "Show more information about the crew member."); Tcl.Tk.Ada.Grid.Grid (Button, "-row" & Positive'Image(Crew_Container.To_Index(I)) & " -padx {5 0}"); ProgressBar := Create (Frame & ".health" & Trim(Natural'Image(Crew_Container.To_Index(I)), Left), "-orient horizontal -value " & Natural'Image(Player_Ship.Crew(I).Health) & " -length 150" & (if Player_Ship.Crew(I).Health > 74 then " -style green.Horizontal.TProgressbar" elsif Player_Ship.Crew(I).Health > 24 then " -style yellow.Horizontal.TProgressbar" else " -style Horizontal.TProgressbar")); Add(ProgressBar, "The crew member health."); Tcl.Tk.Ada.Grid.Grid (ProgressBar, "-column 1 -row" & Positive'Image(Crew_Container.To_Index(I)) & " -padx 5"); Tcl_Eval (Get_Context, "SetScrollbarBindings " & ProgressBar & " $combatframe.left.scrolly"); ComboBox := Create (Frame & ".order" & Trim(Positive'Image(Crew_Container.To_Index(I)), Left), "-values [list " & To_String(OrdersList) & "] -state readonly -width 15"); Current(ComboBox, Natural'Image(BoardingOrders(OrderIndex))); Bind (ComboBox, "<<ComboboxSelected>>", "{SetBoardingOrder" & Positive'Image(Crew_Container.To_Index(I)) & Positive'Image(OrderIndex) & "}"); Add(ComboBox, "The crew member current order."); Tcl.Tk.Ada.Grid.Grid (ComboBox, "-column 2 -row" & Positive'Image(Crew_Container.To_Index(I)) & " -padx {0 5}"); OrderIndex := OrderIndex + 1; <<End_Of_Loop>> end loop Show_Boarding_Party_Loop; Tcl_Eval(Get_Context, "update"); CombatCanvas := Get_Widget(FrameName & ".left.canvas"); configure (CombatCanvas, "-scrollregion [list " & BBox(CombatCanvas, "all") & "]"); Xview_Move_To(CombatCanvas, "0.0"); Yview_Move_To(CombatCanvas, "0.0"); UpdateMessages; end UpdateBoardingUI; -- ****if* CUI/CUI.Next_Turn_Command -- FUNCTION -- Execute combat orders and go to next turn -- PARAMETERS -- ClientData - Custom data send to the command. Unused -- Interp - Tcl interpreter in which command was executed. -- Argc - Number of arguments passed to the command. Unused -- Argv - Values of arguments passed to the command. Unused -- RESULT -- This function always return TCL_OK -- COMMANDS -- NextTurn -- SOURCE function Next_Turn_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with Convention => C; -- **** function Next_Turn_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is pragma Unreferenced(ClientData, Argc, Argv); CombatFrame: constant Ttk_Frame := Get_Widget(Main_Paned & ".combatframe", Interp); Frame: Ttk_Frame := Get_Widget(CombatFrame & ".crew", Interp); Next_Button: constant Ttk_Button := Get_Widget(CombatFrame & ".next", Interp); begin CombatTurn; UpdateHeader; if EndCombat then UpdateCombatUI; configure(Close_Button, "-command {ShowSkyMap}"); Tcl.Tk.Ada.Grid.Grid(Close_Button, "-row 0 -column 1"); Frame.Name := New_String(Widget_Image(CombatFrame) & ".left"); if Winfo_Get(Frame, "ismapped") = "1" then ShowCombatFrame(".combat"); end if; Frame.Name := New_String(Widget_Image(CombatFrame) & ".status"); Tcl.Tk.Ada.Grid.Grid_Remove(Frame); CreateGameMenu; Tcl.Tk.Ada.Grid.Grid_Remove(Next_Button); return TCL_OK; end if; if Player_Ship.Crew(1).Order = Boarding and Winfo_Get(Frame, "ismapped") = "1" then UpdateBoardingUI; ShowCombatFrame(".boarding"); return TCL_OK; end if; if Player_Ship.Crew(1).Order /= Boarding and Winfo_Get(Frame, "ismapped") = "0" then UpdateCombatUI; ShowCombatFrame(".combat"); return TCL_OK; end if; if Winfo_Get(Frame, "ismapped") = "1" then UpdateCombatUI; else UpdateBoardingUI; end if; return TCL_OK; end Next_Turn_Command; -- ****if* CUI/CUI.Show_Combat_UI_Command -- FUNCTION -- Show combat UI -- PARAMETERS -- ClientData - Custom data send to the command. Unused -- Interp - Tcl interpreter in which command was executed. Unused -- Argc - Number of arguments passed to the command. Unused -- Argv - Values of arguments passed to the command. Unused -- RESULT -- This function always return TCL_OK -- COMMANDS -- ShowCombatUI -- SOURCE function Show_Combat_UI_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with Convention => C; -- **** function Show_Combat_UI_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is pragma Unreferenced(ClientData, Interp, Argc, Argv); begin ShowCombatUI(False); return TCL_OK; end Show_Combat_UI_Command; -- ****if* CUI/CUI.Set_Combat_Order_Command -- FUNCTION -- Set combat order for the selected crew member -- PARAMETERS -- ClientData - Custom data send to the command. Unused -- Interp - Tcl interpreter in which command was executed. Unused -- Argc - Number of arguments passed to the command. Unused -- Argv - Values of arguments passed to the command. -- RESULT -- This function always return TCL_OK -- COMMANDS -- SetCombatOrder Position -- Position argument can be pilot, engineer or number of the gun which -- gunner will take a new combat order -- SOURCE function Set_Combat_Order_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with Convention => C; -- **** function Set_Combat_Order_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is pragma Unreferenced(ClientData, Argc); ComboBox: Ttk_ComboBox; GunIndex: Positive; FrameName: constant String := Main_Paned & ".combatframe.crew.canvas.frame"; begin ComboBox.Interp := Interp; if CArgv.Arg(Argv, 1) = "pilot" then ComboBox.Name := New_String(FrameName & ".pilotorder"); PilotOrder := Positive'Value(Current(ComboBox)) + 1; if not Factions_List(Player_Ship.Crew(1).Faction).Flags.Contains (To_Unbounded_String("sentientships")) then AddMessage ("Order for " & To_String(Player_Ship.Crew(FindMember(Pilot)).Name) & " was set on: " & Get(ComboBox), CombatMessage); else AddMessage ("Order for ship was set on: " & Get(ComboBox), CombatMessage); end if; elsif CArgv.Arg(Argv, 1) = "engineer" then ComboBox.Name := New_String(FrameName & ".engineerorder"); EngineerOrder := Positive'Value(Current(ComboBox)) + 1; if not Factions_List(Player_Ship.Crew(1).Faction).Flags.Contains (To_Unbounded_String("sentientships")) then AddMessage ("Order for " & To_String(Player_Ship.Crew(FindMember(Engineer)).Name) & " was set on: " & Get(ComboBox), CombatMessage); else AddMessage ("Order for ship was set on: " & Get(ComboBox), CombatMessage); end if; else ComboBox.Name := New_String(FrameName & ".gunorder" & CArgv.Arg(Argv, 1)); GunIndex := Positive'Value(CArgv.Arg(Argv, 1)); Guns(GunIndex)(2) := Positive'Value(Current(ComboBox)) + 1; Guns(GunIndex)(3) := (if Current(ComboBox) = "0" then 0 else Modules_List (Player_Ship.Modules(Guns(GunIndex)(1)).Proto_Index) .Speed); AddMessage ("Order for " & To_String (Player_Ship.Crew (Player_Ship.Modules(Guns(GunIndex)(1)).Owner(1)) .Name) & " was set on: " & Get(ComboBox), CombatMessage); end if; UpdateMessages; return TCL_OK; end Set_Combat_Order_Command; -- ****o* CUI/CUI.Set_Boarding_Order_Command -- FUNCTION -- Set boarding order for the selected player's ship crew member -- PARAMETERS -- ClientData - Custom data send to the command. Unused -- Interp - Tcl interpreter in which command was executed. -- Argc - Number of arguments passed to the command. Unused -- Argv - Values of arguments passed to the command. Unused -- RESULT -- This function always return TCL_OK -- COMMANDS -- SetBoardingOrder EnemyIndex -- EnemyIndex parameter is the index of the enemy in the enemy ship crew -- which will be set as target for the selected player ship crew member. -- SOURCE function Set_Boarding_Order_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with Convention => C; -- **** function Set_Boarding_Order_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is pragma Unreferenced(ClientData, Argc); Combobox: constant Ttk_ComboBox := Get_Widget (Main_Paned & ".combatframe.left.canvas.frame.order" & CArgv.Arg(Argv, 1), Interp); begin BoardingOrders(Positive'Value(CArgv.Arg(Argv, 2))) := (if Natural'Value(Current(Combobox)) + 1 > Natural(Enemy.Ship.Crew.Length) then -1 else Natural'Value(Current(Combobox)) + 1); return TCL_OK; end Set_Boarding_Order_Command; -- ****o* CUI/CUI.Set_Combat_Party_Command -- FUNCTION -- Set combat party (boarding or defenders) -- PARAMETERS -- ClientData - Custom data send to the command. Unused -- Interp - Tcl interpreter in which command was executed. -- Argc - Number of arguments passed to the command. Unused -- Argv - Values of arguments passed to the command. -- RESULT -- This function always return TCL_OK -- COMMANDS -- SetCombatParty partytype -- Partytype is a type of party to set. Possible options are boarding or -- defenders -- SOURCE function Set_Combat_Party_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with Convention => C; -- **** function Set_Combat_Party_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is pragma Unreferenced(ClientData, Argc); CrewDialog: constant Ttk_Frame := Create_Dialog (".boardingdialog", "Assign a crew members to " & (if CArgv.Arg(Argv, 1) = "boarding" then "boarding party" else "defenders"), 245); YScroll: constant Ttk_Scrollbar := Create (CrewDialog & ".yscroll", "-orient vertical -command [list " & CrewDialog & ".canvas yview]"); CrewCanvas: constant Tk_Canvas := Create (CrewDialog & ".canvas", "-yscrollcommand [list " & YScroll & " set]"); CrewFrame: constant Ttk_Frame := Create(CrewCanvas & ".frame"); CloseButton: constant Ttk_Button := Create (CrewDialog & ".button", "-text Close -command {CloseDialog " & Widget_Image(CrewDialog) & "}"); Height: Positive := 10; Width: Positive := 250; CrewButton: Ttk_CheckButton; Order: constant Crew_Orders := (if CArgv.Arg(Argv, 1) = "boarding" then Boarding else Defend); begin Tcl.Tk.Ada.Grid.Grid(CrewCanvas, "-sticky nwes -padx 5 -pady 5"); Tcl.Tk.Ada.Grid.Grid (YScroll, "-sticky ns -padx {0 5} -pady {5 0} -row 1 -column 1"); Tcl.Tk.Ada.Grid.Grid(CloseButton, "-pady {0 5} -columnspan 2"); Focus(CloseButton); Autoscroll(YScroll); Show_Player_Ship_Crew_Loop : for I in Player_Ship.Crew.Iterate loop CrewButton := Create (CrewFrame & ".crewbutton" & Trim(Positive'Image(Crew_Container.To_Index(I)), Left), "-text {" & To_String(Player_Ship.Crew(I).Name) & "} -command {SetPartyOrder" & Positive'Image(Crew_Container.To_Index(I)) & " " & CArgv.Arg(Argv, 1) & "}"); if Player_Ship.Crew(I).Order /= Order then Tcl_SetVar(Interp, Widget_Image(CrewButton), "0"); else Tcl_SetVar(Interp, Widget_Image(CrewButton), "1"); end if; Tcl.Tk.Ada.Pack.Pack(CrewButton, "-anchor w"); Height := Height + Positive'Value(Winfo_Get(CrewButton, "reqheight")); if Positive'Value(Winfo_Get(CrewButton, "reqwidth")) + 10 > Width then Width := Positive'Value(Winfo_Get(CrewButton, "reqwidth")) + 10; end if; Bind(CrewButton, "<Escape>", "{" & CloseButton & " invoke;break}"); Bind (CrewButton, "<Tab>", "{focus [GetActiveButton" & Positive'Image(Crew_Container.To_Index(I)) & "];break}"); end loop Show_Player_Ship_Crew_Loop; if Height > 500 then Height := 500; end if; Canvas_Create (CrewCanvas, "window", "0 0 -anchor nw -window " & Widget_Image(CrewFrame)); Tcl_Eval(Interp, "update"); configure (CrewCanvas, "-scrollregion [list " & BBox(CrewCanvas, "all") & "] -height" & Positive'Image(Height) & " -width" & Positive'Image(Width)); Bind(CloseButton, "<Escape>", "{" & CloseButton & " invoke;break}"); Bind(CloseButton, "<Tab>", "{focus [GetActiveButton 0];break}"); Show_Dialog(Dialog => CrewDialog, Relative_Y => 0.2); return TCL_OK; end Set_Combat_Party_Command; -- ****if* CUI/CUI.Set_Combat_Position_Command -- FUNCTION -- Set crew member position (pilot, engineer, gunner) in combat -- PARAMETERS -- ClientData - Custom data send to the command. Unused -- Interp - Tcl interpreter in which command was executed. Unused -- Argc - Number of arguments passed to the command. Unused -- Argv - Values of arguments passed to the command. -- RESULT -- This function always return TCL_OK -- COMMANDS -- SetCombatPosition position -- Position is the combat crew member position which will be set -- SOURCE function Set_Combat_Position_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with Convention => C; -- **** function Set_Combat_Position_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is pragma Unreferenced(ClientData, Argc); ComboBox: Ttk_ComboBox; GunIndex: Positive; CrewIndex: Natural; FrameName: constant String := ".gameframe.paned.combatframe.crew.canvas.frame"; begin ComboBox.Interp := Interp; if CArgv.Arg(Argv, 1) = "pilot" then ComboBox.Name := New_String(FrameName & ".pilotcrew"); CrewIndex := Natural'Value(Current(ComboBox)); if CrewIndex > 0 then GiveOrders(Player_Ship, CrewIndex, Pilot); else CrewIndex := FindMember(Pilot); if CrewIndex > 0 then GiveOrders(Player_Ship, CrewIndex, Rest); end if; end if; elsif CArgv.Arg(Argv, 1) = "engineer" then ComboBox.Name := New_String(FrameName & ".engineercrew"); CrewIndex := Natural'Value(Current(ComboBox)); if CrewIndex > 0 then GiveOrders(Player_Ship, CrewIndex, Engineer); else CrewIndex := FindMember(Engineer); if CrewIndex > 0 then GiveOrders(Player_Ship, CrewIndex, Rest); end if; end if; else ComboBox.Name := New_String(FrameName & ".guncrew" & CArgv.Arg(Argv, 2)); GunIndex := Positive'Value(CArgv.Arg(Argv, 2)); CrewIndex := Natural'Value(Current(ComboBox)); if CrewIndex > 0 then GiveOrders(Player_Ship, CrewIndex, Gunner, Guns(GunIndex)(1)); else CrewIndex := Player_Ship.Modules(Guns(GunIndex)(1)).Owner(1); if CrewIndex > 0 then GiveOrders(Player_Ship, CrewIndex, Rest); end if; end if; end if; UpdateCombatUI; return TCL_OK; end Set_Combat_Position_Command; -- ****if* CUI/CUI.Show_Combat_Info_Command -- FUNCTION -- Show information about the selected mob in combat -- PARAMETERS -- ClientData - Custom data send to the command. Unused -- Interp - Tcl interpreter in which command was executed. Unused -- Argc - Number of arguments passed to the command. Unused -- Argv - Values of arguments passed to the command. -- RESULT -- This function always return TCL_OK -- COMMANDS -- SetCombatPosition player|enemy index -- Position is the combat crew member position which will be set -- SOURCE function Show_Combat_Info_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with Convention => C; -- **** function Show_Combat_Info_Command (ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int; Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is pragma Unreferenced(ClientData, Interp, Argc); CrewIndex: constant Positive := Positive'Value(CArgv.Arg(Argv, 2)); Info: Unbounded_String; begin Info := To_Unbounded_String("Uses: "); if CArgv.Arg(Argv, 1) = "player" then Show_Player_Crew_Equipment_Loop : for Item of Player_Ship.Crew(CrewIndex).Equipment loop if Item /= 0 then Append (Info, LF & GetItemName(Player_Ship.Crew(CrewIndex).Inventory(Item))); end if; end loop Show_Player_Crew_Equipment_Loop; else Show_Enemy_Crew_Equipment_Loop : for Item of Enemy.Ship.Crew(CrewIndex).Equipment loop if Item /= 0 then Append (Info, LF & GetItemName(Enemy.Ship.Crew(CrewIndex).Inventory(Item))); end if; end loop Show_Enemy_Crew_Equipment_Loop; end if; ShowInfo(Text => To_String(Info), Title => "More info"); return TCL_OK; end Show_Combat_Info_Command; procedure ShowCombatUI(NewCombat: Boolean := True) is CombatFrame: constant Ttk_Frame := Get_Widget(Main_Paned & ".combatframe"); CombatStarted: Boolean; Button: constant Ttk_Button := Get_Widget(CombatFrame & ".next"); EnemyFrame: constant Ttk_Frame := Get_Widget(CombatFrame & ".status"); begin Tcl.Tk.Ada.Grid.Grid_Remove(Close_Button); if NewCombat then if SkyMap(Player_Ship.Sky_X, Player_Ship.Sky_Y).EventIndex > 0 and then EnemyName /= Proto_Ships_List (Events_List (SkyMap(Player_Ship.Sky_X, Player_Ship.Sky_Y).EventIndex) .ShipIndex) .Name then CombatStarted := StartCombat (Events_List (SkyMap(Player_Ship.Sky_X, Player_Ship.Sky_Y).EventIndex) .ShipIndex, False); if not CombatStarted then return; end if; end if; if Winfo_Get(CombatFrame, "exists") = "0" then Tcl_EvalFile (Get_Context, To_String(Data_Directory) & "ui" & Dir_Separator & "combat.tcl"); PilotOrder := 2; EngineerOrder := 3; Add_Command("SetPartyOrder", Set_Party_Order_Command'Access); Add_Command("NextTurn", Next_Turn_Command'Access); Add_Command("ShowCombatUI", Show_Combat_UI_Command'Access); Add_Command("SetCombatOrder", Set_Combat_Order_Command'Access); Add_Command("SetBoardingOrder", Set_Boarding_Order_Command'Access); Add_Command("SetCombatParty", Set_Combat_Party_Command'Access); Add_Command ("SetCombatPosition", Set_Combat_Position_Command'Access); Add_Command("ShowCombatInfo", Show_Combat_Info_Command'Access); else Tcl.Tk.Ada.Grid.Grid(Button); Tcl.Tk.Ada.Grid.Grid(EnemyFrame); end if; configure(Close_Button, "-command ShowCombatUI"); Back_To_Work_Loop : for Member of Player_Ship.Crew loop if Member.Order = Rest and then Member.PreviousOrder in Pilot | Engineer | Gunner then Member.Order := Member.PreviousOrder; Member.OrderTime := 15; AddMessage (To_String(Member.Name) & " back to work for combat.", OrderMessage); end if; end loop Back_To_Work_Loop; Delete(GameMenu, "1"); Delete(GameMenu, "4"); end if; UpdateCombatUI; ShowCombatFrame(".combat"); Show_Screen("combatframe"); end ShowCombatUI; end Combat.UI;
scripts/.screensaver-names.applescript
andrewp-as-is/mac-screensaver
0
1692
#!/usr/bin/osascript tell application "System Events" repeat with ss in screen savers log (name of ss as text) end repeat end tell
programs/oeis/289/A289121.asm
jmorken/loda
1
179864
<reponame>jmorken/loda<filename>programs/oeis/289/A289121.asm ; A289121: a(n) = (8 - 2*n + 11*n^2 - 6*n^3 + n^4)/4. ; 3,4,5,12,37,98,219,430,767,1272,1993,2984,4305,6022,8207,10938,14299,18380,23277,29092,35933,43914,53155,63782,75927,89728,105329,122880,142537,164462,188823,215794,245555,278292,314197,353468,396309,442930,493547,548382,607663 mov $3,$0 bin $0,2 mov $2,$0 pow $0,2 sub $0,$2 add $0,$3 mov $1,$0 add $1,3
src/main/antlr4/com/github/anilople/dog/frontend/CommonLexerRules.g4
Anilople/Dog
0
2473
/* 公共部分的词法分析 */ lexer grammar CommonLexerRules; Identifier : [a-zA-Z] ([a-zA-Z0-9] | '.' | '?')* ; // 特殊字符,按键盘顺序列举 // 里面没有 ()[]{} SpecialCharacters : ('~'|'!'|'@'|'#'|'$'|'%'|'^'|'&'|'*'|'+'|'-'|'='|'|'|'<'|'>')+ ; // 字符串 StringLiteral : '"' StringCharacters? '"' ; fragment StringCharacters : StringCharacter+ ; // 字符 fragment StringCharacter : ~["] ; // 自然数 NaturalLiteral : '+'? Digits ; // 整数 IntegerLiteral : ('+' | '-')? Digits ; // 纯数字 Digits : [0-9]+ ; // 空白符 WhiteSpace fragment WhiteSpace : [ \t\r\n]+ ; // 行注释 LineComment : '//' ~[\r\n]* ; // 块注释: BlockComment : '/*' .*? '*/' ;
binutils-2.21.1/gcc-4.5.1/gcc/config/rs6000/darwin-fpsave.asm
cberner12/xv6
51
86986
<filename>binutils-2.21.1/gcc-4.5.1/gcc/config/rs6000/darwin-fpsave.asm /* This file contains the floating-point save and restore routines. * * Copyright (C) 2004, 2009 Free Software Foundation, Inc. * * This file is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 3, or (at your option) any * later version. * * This file is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * 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/>. */ /* THE SAVE AND RESTORE ROUTINES CAN HAVE ONLY ONE GLOBALLY VISIBLE ENTRY POINT - callers have to jump to "saveFP+60" to save f29..f31, for example. For FP reg saves/restores, it takes one instruction (4 bytes) to do the operation; for Vector regs, 2 instructions are required (8 bytes.) MORAL: DO NOT MESS AROUND WITH THESE FUNCTIONS! */ #include "darwin-asm.h" .text .align 2 /* saveFP saves R0 -- assumed to be the callers LR -- to 8/16(R1). */ .private_extern saveFP saveFP: stfd f14,-144(r1) stfd f15,-136(r1) stfd f16,-128(r1) stfd f17,-120(r1) stfd f18,-112(r1) stfd f19,-104(r1) stfd f20,-96(r1) stfd f21,-88(r1) stfd f22,-80(r1) stfd f23,-72(r1) stfd f24,-64(r1) stfd f25,-56(r1) stfd f26,-48(r1) stfd f27,-40(r1) stfd f28,-32(r1) stfd f29,-24(r1) stfd f30,-16(r1) stfd f31,-8(r1) stg r0,SAVED_LR_OFFSET(r1) blr /* restFP restores the caller`s LR from 8/16(R1). Note that the code for this starts at the offset of F30 restoration, so calling this routine in an attempt to restore only F31 WILL NOT WORK (it would be a stupid thing to do, anyway.) */ .private_extern restFP restFP: lfd f14,-144(r1) lfd f15,-136(r1) lfd f16,-128(r1) lfd f17,-120(r1) lfd f18,-112(r1) lfd f19,-104(r1) lfd f20,-96(r1) lfd f21,-88(r1) lfd f22,-80(r1) lfd f23,-72(r1) lfd f24,-64(r1) lfd f25,-56(r1) lfd f26,-48(r1) lfd f27,-40(r1) lfd f28,-32(r1) lfd f29,-24(r1) /* <OFFSET OF F30 RESTORE> restore callers LR */ lg r0,SAVED_LR_OFFSET(r1) lfd f30,-16(r1) /* and prepare for return to caller */ mtlr r0 lfd f31,-8(r1) blr
data/declaration/Open2.agda
msuperdock/agda-unused
6
2690
module Open2 where data ⊤ : Set where tt : ⊤ data ⊤' (x : ⊤) : Set where tt : ⊤' x record R : Set where field x : ⊤ y : ⊤ record S : Set₁ where field x : R open R x public renaming (x to y; y to z) postulate s : S open S s using (y) postulate p : ⊤' y
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_1_394.asm
ljhsiun2/medusa
9
23253
<reponame>ljhsiun2/medusa .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_WC_ht+0x16a01, %rdx nop nop nop nop nop cmp %r10, %r10 mov (%rdx), %r13w nop nop nop nop nop add $18887, %rbx lea addresses_D_ht+0x8201, %rsi lea addresses_UC_ht+0x1ae01, %rdi nop nop nop nop nop dec %rbp mov $125, %rcx rep movsl nop nop nop nop nop sub $43419, %rsi lea addresses_D_ht+0x13c9, %rdx clflush (%rdx) cmp $29162, %rcx movb (%rdx), %r13b nop and %rdx, %rdx lea addresses_WC_ht+0x11d01, %rbx nop nop nop nop and $35594, %rcx and $0xffffffffffffffc0, %rbx vmovaps (%rbx), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %r10 nop dec %rsi lea addresses_WT_ht+0x13881, %rsi lea addresses_UC_ht+0x14fb9, %rdi clflush (%rdi) nop nop nop nop inc %r10 mov $123, %rcx rep movsb xor $47084, %rdi lea addresses_normal_ht+0xde01, %rsi lea addresses_WC_ht+0x1d01, %rdi nop nop nop inc %r13 mov $18, %rcx rep movsb nop xor %rdx, %rdx lea addresses_A_ht+0x2501, %rsi lea addresses_UC_ht+0x1404d, %rdi nop nop nop nop lfence mov $65, %rcx rep movsb nop sub $60183, %rdi lea addresses_A_ht+0xc481, %rsi lea addresses_A_ht+0xfe01, %rdi clflush (%rdi) nop nop nop nop nop inc %r13 mov $25, %rcx rep movsq nop and %r10, %r10 lea addresses_WT_ht+0x1bd01, %r13 sub %rcx, %rcx movl $0x61626364, (%r13) sub %rsi, %rsi lea addresses_A_ht+0x169, %r13 nop nop nop sub $51733, %rcx mov (%r13), %rbp nop nop nop add $33939, %r13 lea addresses_A_ht+0xd001, %rdx nop nop nop nop nop cmp %rbx, %rbx and $0xffffffffffffffc0, %rdx vmovntdqa (%rdx), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $1, %xmm6, %rdi nop nop nop nop nop dec %rbx lea addresses_UC_ht+0xcf41, %rsi lea addresses_normal_ht+0xc601, %rdi cmp %r10, %r10 mov $21, %rcx rep movsw nop nop nop nop inc %rcx lea addresses_A_ht+0x1fe9, %rbx nop and $1428, %rcx mov $0x6162636465666768, %rbp movq %rbp, %xmm4 vmovups %ymm4, (%rbx) nop dec %r13 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 %r13 push %r14 push %r15 push %r8 push %r9 push %rcx push %rdi push %rsi // Store lea addresses_normal+0x7e01, %r8 nop nop nop nop nop xor %r15, %r15 movl $0x51525354, (%r8) nop nop nop nop sub %r14, %r14 // REPMOV lea addresses_WC+0xdb01, %rsi lea addresses_RW+0x11821, %rdi nop nop nop nop nop dec %r13 mov $30, %rcx rep movsl nop nop nop nop nop xor $53882, %rdi // Faulty Load mov $0x58f9860000000601, %r15 nop nop nop cmp $25421, %r8 mov (%r15), %r13d lea oracles, %r10 and $0xff, %r13 shlq $12, %r13 mov (%r10,%r13,1), %r13 pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r15 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_RW', 'congruent': 5, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': True, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 8, 'size': 32, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 3, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': True, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}} {'00': 1} 00 */
libsrc/_DEVELOPMENT/arch/zx/bifrost2/c/sdcc/BIFROST2_start.asm
jpoikela/z88dk
640
8484
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR THE BIFROST*2 ENGINE ; ; See "bifrost2.h" for further details ; ---------------------------------------------------------------- ; void BIFROST2_start(void) SECTION code_clib SECTION code_bifrost2 PUBLIC _BIFROST2_start EXTERN asm_BIFROST2_start defc _BIFROST2_start = asm_BIFROST2_start
base/atari/xmspos.asm
zbyti/Mad-Pascal
7
179744
<reponame>zbyti/Mad-Pascal<filename>base/atari/xmspos.asm ; unit MISC: DetectMem ; by Tebe .proc @xmsAddPosition .use @xmsReadBuf add ptr3 sta ptr3 lda #$00 adc ptr3+1 sta ptr3+1 lda #$00 adc ptr3+2 sta ptr3+2 lda #$00 adc ptr3+3 sta ptr3+3 rts .endp .proc @xmsUpdatePosition .use @xmsReadBuf tya jsr @xmsAddPosition ldy #0 lda ptr3 sta (pos),y iny lda ptr3+1 sta (pos),y iny lda ptr3+2 sta (pos),y iny lda ptr3+3 sta (pos),y pla:tax rts .endp
data/jpred4/jp_batch_1613899824__mRES7kW/jp_batch_1613899824__mRES7kW.als
jonriege/predict-protein-structure
0
4789
SILENT_MODE BLOCK_FILE jp_batch_1613899824__mRES7kW.concise.blc MAX_NSEQ 587 MAX_INPUT_LEN 589 OUTPUT_FILE jp_batch_1613899824__mRES7kW.concise.ps PORTRAIT POINTSIZE 8 IDENT_WIDTH 12 X_OFFSET 2 Y_OFFSET 2 DEFINE_FONT 0 Helvetica DEFAULT DEFINE_FONT 1 Helvetica REL 0.75 DEFINE_FONT 7 Helvetica REL 0.6 DEFINE_FONT 3 Helvetica-Bold DEFAULT DEFINE_FONT 4 Times-Bold DEFAULT DEFINE_FONT 5 Helvetica-BoldOblique DEFAULT # DEFINE_COLOUR 3 1 0.62 0.67 # Turquiose DEFINE_COLOUR 4 1 1 0 # Yellow DEFINE_COLOUR 5 1 0 0 # Red DEFINE_COLOUR 7 1 0 1 # Purple DEFINE_COLOUR 8 0 0 1 # Blue DEFINE_COLOUR 9 0 1 0 # Green DEFINE_COLOUR 10 0.41 0.64 1.00 # Pale blue DEFINE_COLOUR 11 0.41 0.82 0.67 # Pale green DEFINE_COLOUR 50 0.69 0.18 0.37 # Pink (helix) DEFINE_COLOUR 51 1.00 0.89 0.00 # Gold (strand) NUMBER_INT 10 SETUP # # Highlight specific residues. # Avoid highlighting Lupas 'C' predictions by # limiting the highlighting to the alignments Scol_CHARS C 1 1 174 576 4 Ccol_CHARS H ALL 5 Ccol_CHARS P ALL 8 SURROUND_CHARS LIV ALL # # Replace known structure types with whitespace SUB_CHARS 1 577 174 586 H SPACE SUB_CHARS 1 577 174 586 E SPACE SUB_CHARS 1 577 174 586 - SPACE STRAND 2 580 7 COLOUR_TEXT_REGION 2 580 7 580 51 STRAND 14 580 19 COLOUR_TEXT_REGION 14 580 19 580 51 STRAND 34 580 37 COLOUR_TEXT_REGION 34 580 37 580 51 STRAND 41 580 46 COLOUR_TEXT_REGION 41 580 46 580 51 STRAND 53 580 57 COLOUR_TEXT_REGION 53 580 57 580 51 STRAND 75 580 80 COLOUR_TEXT_REGION 75 580 80 580 51 STRAND 89 580 94 COLOUR_TEXT_REGION 89 580 94 580 51 STRAND 102 580 106 COLOUR_TEXT_REGION 102 580 106 580 51 STRAND 121 580 126 COLOUR_TEXT_REGION 121 580 126 580 51 STRAND 130 580 135 COLOUR_TEXT_REGION 130 580 135 580 51 STRAND 142 580 147 COLOUR_TEXT_REGION 142 580 147 580 51 STRAND 164 580 169 COLOUR_TEXT_REGION 164 580 169 580 51 STRAND 2 585 7 COLOUR_TEXT_REGION 2 585 7 585 51 STRAND 15 585 19 COLOUR_TEXT_REGION 15 585 19 585 51 STRAND 32 585 37 COLOUR_TEXT_REGION 32 585 37 585 51 STRAND 41 585 46 COLOUR_TEXT_REGION 41 585 46 585 51 STRAND 54 585 57 COLOUR_TEXT_REGION 54 585 57 585 51 STRAND 75 585 80 COLOUR_TEXT_REGION 75 585 80 585 51 STRAND 89 585 94 COLOUR_TEXT_REGION 89 585 94 585 51 STRAND 102 585 106 COLOUR_TEXT_REGION 102 585 106 585 51 STRAND 121 585 126 COLOUR_TEXT_REGION 121 585 126 585 51 STRAND 130 585 135 COLOUR_TEXT_REGION 130 585 135 585 51 STRAND 143 585 147 COLOUR_TEXT_REGION 143 585 147 585 51 STRAND 164 585 169 COLOUR_TEXT_REGION 164 585 169 585 51 STRAND 2 586 7 COLOUR_TEXT_REGION 2 586 7 586 51 STRAND 12 586 19 COLOUR_TEXT_REGION 12 586 19 586 51 STRAND 34 586 37 COLOUR_TEXT_REGION 34 586 37 586 51 STRAND 42 586 46 COLOUR_TEXT_REGION 42 586 46 586 51 STRAND 52 586 58 COLOUR_TEXT_REGION 52 586 58 586 51 STRAND 75 586 79 COLOUR_TEXT_REGION 75 586 79 586 51 STRAND 88 586 94 COLOUR_TEXT_REGION 88 586 94 586 51 STRAND 102 586 106 COLOUR_TEXT_REGION 102 586 106 586 51 STRAND 121 586 126 COLOUR_TEXT_REGION 121 586 126 586 51 STRAND 131 586 135 COLOUR_TEXT_REGION 131 586 135 586 51 STRAND 142 586 146 COLOUR_TEXT_REGION 142 586 146 586 51 STRAND 164 586 169 COLOUR_TEXT_REGION 164 586 169 586 51 HELIX 113 586 115 COLOUR_TEXT_REGION 113 586 115 586 50
programs/oeis/286/A286809.asm
neoneye/loda
22
92199
<reponame>neoneye/loda<filename>programs/oeis/286/A286809.asm<gh_stars>10-100 ; A286809: Positions of 1 in A286807; complement of A286808. ; 3,4,6,7,9,11,13,14,16,18,20,22,24,26,28,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,123,125,127,129,131,133,135,137,139,141,143,145,147,149,151,153,155,157,159,161,163,165,167,169,171,173,175,177,179,181,183,185,187,189,191,193,195 add $0,2 mul $0,2 sub $0,1 mov $2,$0 lpb $2 sub $0,1 div $2,2 lpe add $0,2
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/constant_declaration.ads
ouankou/rose
488
9456
package Constant_Declaration is The_Constant : constant Integer := 1; end Constant_Declaration;
Server/server_assets_package.adb
albinjal/Ada_Project
4
16211
with Ada.Exceptions; use Ada.Exceptions; with Ada.Text_IO; use Ada.Text_IO; with Ada.Numerics.Discrete_Random; with TJa.Sockets; use TJa.Sockets; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Klient_Assets_Package; use Klient_Assets_Package; package body Server_Assets_Package is function Generate return Integer is subtype Nums is Integer range 1..6; package RN is new Ada.Numerics.Discrete_Random(Nums); Gen : RN.Generator; begin RN.Reset(Gen); return RN.Random(Gen); end; function Roll return String is S: String(1..5); begin for X in 1..5 loop S(X) := Integer'Image(Generate)(2); end loop; return S; end; procedure Connect_To_Klients(Socket1, Socket2: in out Socket_Type; Lyssnare : in out Listener_Type; Port: in Positive) is begin Initiate(Lyssnare, Port, Localhost => False); --| *** eller *** --| Initierar lyssnaren på en port (klienter bara på "localhost"). --Initiate(Lyssnare, Natural'Value(Argument(1)), Localhost => True); Put("Väntar på klienter"); --| Väntar tills en anslutning bildas, krävs att en klient kör connect Wait_For_Connection(Lyssnare, Socket1); Put_Line(Socket1, "1"); New_Line; Put("Klient 1 ansluten"); New_Line; Wait_For_Connection(Lyssnare, Socket2); Put_Line(Socket2, "2"); Put_Line(Socket1, "3"); --| Nu har en anslutning skapats och vi kan då börja en loop eller något Put_Line("Klient 2 ansluten"); end; function Read(C: in Character) return Natural is S: String(1..1); i: Natural; begin S(1) := C; i := Integer'Value(S); return i; end; procedure Yatzyloop(Socket1, Socket2: in out Socket_Type; Prot1, Prot2: in out Protocoll_Type; First: in Integer) is type Rerolls is array(1..5) of Integer; Reroll: Rerolls; TX: String(1..100); TL, I: Integer; Current_Rolls: String(1..5); temp_prot_calc: Protocoll_Type; temp_prot1, temp_prot2: Protocoll_Type; type rolls_arr_type_t is array (1..5) of Integer; temp_calc_rolls_arr: Arr; first_temp: Integer := 0; begin first_temp := First; temp_prot1 := Prot1; temp_prot2 := Prot2; -- DEBUG - REMOVE - REMOVE -- DEBUG - REMOVE - REMOVE for x in 1..15 loop Put("Socket 1 has proto var "); Put(x, 0); Put(": "); Put( temp_prot1(x) ); New_Line; end loop; New_Line; for x in 1..15 loop Put("Socket 2 has proto var "); Put(x, 0); Put(": "); Put( temp_prot2(x) ); New_Line; end loop; -- DEBUG - REMOVE - REMOVE -- DEBUG - REMOVE - REMOVE --------------------------------- Slutställ tärningar Current_Rolls := Roll(1..5); Put("Current_rolls = " & Current_Rolls); New_Line; -- DEBUG for X in 1..3 loop -- Skicka slag till spelare 1, skicka state till 2 Put(Socket1, "45"); Put(Socket1, Current_Rolls); New_Line(Socket1); Put("Sent data to SOCKET 1: 45" & Current_Rolls); New_Line; -- DEBUG Put_Line(Socket2,"50"); Put("Sent data to SOCKET 2: 50"); New_Line; -- DEBUG -- State update från 1 till 2 Put("[0]Listening to input from SOCKET 1.."); New_Line; -- DEBUG Get_Line(Socket1, TX, TL); Put("INPUT FROM SOCKET 1: "); Put(TX(1..TL)); New_Line; -- DEBUG if TX(1) = '5' then if TX(2) = '1' then Put(Socket2, "51"); Put_Line(Socket2, Current_Rolls); Put("Sent data to SOCKET 2: 51" & Current_Rolls); New_Line; -- DEBUG end if; end if; Put("[1]Listening to input from SOCKET 1.."); New_Line; -- DEBUG Get_Line(Socket1, TX, TL); Put("INPUT FROM SOCKET 1: "); Put(TX(1..TL)); New_Line; -- DEBUG if TX(1) = '6' then -- Slå om !! I := Read(TX(2)); for X in 3..7 loop Reroll(X-2) := Read(TX(X)); end loop; for X in 1..5 loop if Reroll(X) = 1 then Current_Rolls(X) := Roll(1); end if; end loop; elsif TX(1) = '7' then -- placement mode socket 1 Put(Socket2, "52"); -- Tell socket 2 that socket 1 is in placement mode Put_Line(Socket2, Current_Rolls); -- Tell socket 2 what dices socket 1 got Put("Sent data to SOCKET 2: 52" & Current_Rolls); New_Line; -- DEBUG Put("[2]Listening to input from SOCKET 1.."); New_Line; -- DEBUG -- Get placement index Get_Line(Socket1, TX, TL); Put("INPUT FROM SOCKET 1: "); Put(TX(1..TL)); New_Line; -- DEBUG -- CHECK IF PLACEMENT IS POSSIBLE Put("Is index "); Put(TX(1..TL)); Put(" possible?"); New_Line; for x in 1..15 loop temp_prot_calc(x) := 0; end loop; for x in 1..5 loop temp_calc_rolls_arr(x) := Integer'Value( Current_Rolls(x..x) ); end loop; -- FLYTTAD temp_prot_calc := Calcpoints(Prot1, temp_calc_rolls_arr); --if temp_prot_calc( Integer'Value(TX(1..TL)) ) >= 0 then Put("Placement possible! Gives "); Put( temp_prot_calc( Integer'Value(TX(1..TL)) ) , 0); Put(" points."); New_Line; -- DEBUG -- Prot1( Integer'Value ( TX(1..TL) ) ) := temp_prot_calc(Integer'Value(TX(1..TL))); -- temp_prot1( Integer'Value ( TX(1..TL) ) ) := temp_prot_calc(Integer'Value(TX(1..TL))); --temp_prot2( Integer'Value ( TX(1..TL) ) ) := temp_prot_calc(Integer'Value(TX(1..TL))); if(first_temp = 1) then first_temp := 0; temp_prot_calc := Calcpoints(Prot1, temp_calc_rolls_arr); Put("FIRST ======================= TRUE"); New_Line; -- DEBUG temp_prot1( Integer'Value ( TX(1..TL) ) ) := temp_prot_calc(Integer'Value(TX(1..TL))); -- SEND RESPONSE Put_Line(Socket1, temp_prot_calc(Integer'Value(TX(1..TL)))); -- SEND RESPONSE TO OTHER PLAYER Put(Socket2, Integer'Value(TX(1..TL)), 2); Put(Socket2, temp_prot_calc(Integer'Value(TX(1..TL)))); New_Line(Socket2); elsif(first_temp = 0)then first_temp := 1; temp_prot_calc := Calcpoints(Prot2, temp_calc_rolls_arr); Put("FIRST ======================= FALSE"); New_Line; -- DEBUG temp_prot2( Integer'Value ( TX(1..TL) ) ) := temp_prot_calc(Integer'Value(TX(1..TL))); -- SEND RESPONSE TO PLAYER Put_Line(Socket1, temp_prot_calc(Integer'Value(TX(1..TL)))); -- SEND RESPONSE TO OTHER PLAYER Put(Socket2, Integer'Value(TX(1..TL)), 2); Put(Socket2, temp_prot_calc(Integer'Value(TX(1..TL)))); New_Line(Socket2); end if; --else -- -- Not possible! -- Put("Placement not possible! Handle this plz, code not written yet"); New_Line; -- null; -- Add code to handle this here --end if; exit; -- Färdig else Put("COMPLETE, EXITING"); null; end if; end loop; --------------------------------- Slutställ tärningar -- swap players and protocolls Yatzyloop(Socket2, Socket1, temp_prot1, temp_prot2, first_temp); end; end;
programs/oeis/083/A083033.asm
neoneye/loda
22
80762
; A083033: Numbers that are congruent to {0, 2, 3, 5, 7, 9, 10} mod 12. ; 0,2,3,5,7,9,10,12,14,15,17,19,21,22,24,26,27,29,31,33,34,36,38,39,41,43,45,46,48,50,51,53,55,57,58,60,62,63,65,67,69,70,72,74,75,77,79,81,82,84,86,87,89,91,93,94,96,98,99,101,103,105,106,108,110,111,113,115,117,118,120,122,123,125,127,129,130,132,134,135,137,139,141,142,144,146,147,149,151,153,154,156,158,159,161,163,165,166,168,170 mul $0,12 add $0,3 div $0,7
src/gstreamer-rtsp-message.adb
persan/A-gst
1
24954
<filename>src/gstreamer-rtsp-message.adb pragma Ada_2012; package body GStreamer.rtsp.message is -------------- -- Get_Type -- -------------- function Get_Type (Msg : access GstRTSPMessage_Record) return GstRTSPMsgType is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "Get_Type unimplemented"); return raise Program_Error with "Unimplemented function Get_Type"; end Get_Type; ----------------- -- new_request -- ----------------- procedure new_request (msg : System.Address; method : GstRTSPMethod; uri : access GLIB.gchar) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "new_request unimplemented"); raise Program_Error with "Unimplemented procedure new_request"; end new_request; ------------------ -- init_request -- ------------------ procedure init_request (msg : access GstRTSPMessage; method : GstRTSPMethod; uri : access GLIB.gchar) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "init_request unimplemented"); raise Program_Error with "Unimplemented procedure init_request"; end init_request; ------------------- -- parse_request -- ------------------- procedure parse_request (msg : access GstRTSPMessage; method : access GstRTSPMethod; uri : System.Address; version : access GstRTSPVersion) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "parse_request unimplemented"); raise Program_Error with "Unimplemented procedure parse_request"; end parse_request; ------------------ -- new_response -- ------------------ procedure new_response (msg : System.Address; code : GstRTSPStatusCode; reason : access GLIB.gchar; request : access constant GstRTSPMessage) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "new_response unimplemented"); raise Program_Error with "Unimplemented procedure new_response"; end new_response; ------------------- -- init_response -- ------------------- procedure init_response (msg : access GstRTSPMessage_Record; code : GstRTSPStatusCode; reason : access GLIB.gchar; request : access constant GstRTSPMessage) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "init_response unimplemented"); raise Program_Error with "Unimplemented procedure init_response"; end init_response; -------------------- -- parse_response -- -------------------- procedure parse_response (msg : access GstRTSPMessage_Record; code : access GstRTSPStatusCode; reason : System.Address; version : access GstRTSPVersion) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "parse_response unimplemented"); raise Program_Error with "Unimplemented procedure parse_response"; end parse_response; -------------- -- new_data -- -------------- procedure new_data (msg : System.Address; channel : GLIB.guint8) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "new_data unimplemented"); raise Program_Error with "Unimplemented procedure new_data"; end new_data; --------------- -- init_data -- --------------- procedure init_data (msg : access GstRTSPMessage_Record; channel : GLIB.guint8) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "init_data unimplemented"); raise Program_Error with "Unimplemented procedure init_data"; end init_data; ---------------- -- parse_data -- ---------------- procedure parse_data (msg : access GstRTSPMessage_Record; channel : access GLIB.guint8) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "parse_data unimplemented"); raise Program_Error with "Unimplemented procedure parse_data"; end parse_data; ---------------- -- add_header -- ---------------- procedure add_header (msg : access GstRTSPMessage_Record; field : GstRTSPHeaderField; value : access GLIB.gchar) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "add_header unimplemented"); raise Program_Error with "Unimplemented procedure add_header"; end add_header; ----------------- -- take_header -- ----------------- procedure take_header (msg : access GstRTSPMessage_Record; field : GstRTSPHeaderField; value : access GLIB.gchar) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "take_header unimplemented"); raise Program_Error with "Unimplemented procedure take_header"; end take_header; ------------------- -- remove_header -- ------------------- procedure remove_header (msg : access GstRTSPMessage_Record; field : GstRTSPHeaderField; indx : GLIB.gint) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "remove_header unimplemented"); raise Program_Error with "Unimplemented procedure remove_header"; end remove_header; ---------------- -- get_header -- ---------------- procedure get_header (msg : access constant GstRTSPMessage_Record; field : GstRTSPHeaderField; value : System.Address; indx : GLIB.gint) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "get_header unimplemented"); raise Program_Error with "Unimplemented procedure get_header"; end get_header; -------------------- -- append_headers -- -------------------- procedure append_headers (msg : access constant GstRTSPMessage; str : access Glib.String.GString) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "append_headers unimplemented"); raise Program_Error with "Unimplemented procedure append_headers"; end append_headers; -------------- -- set_body -- -------------- procedure set_body (msg : access GstRTSPMessage_Record; data : access GLIB.guint8; size : GLIB.guint) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "set_body unimplemented"); raise Program_Error with "Unimplemented procedure set_body"; end set_body; --------------- -- take_body -- --------------- procedure take_body (msg : access GstRTSPMessage_Record; data : access GLIB.guint8; size : GLIB.guint) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "take_body unimplemented"); raise Program_Error with "Unimplemented procedure take_body"; end take_body; -------------- -- get_body -- -------------- procedure get_body (msg : access constant GstRTSPMessage_Record; data : System.Address; size : access GLIB.guint) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "get_body unimplemented"); raise Program_Error with "Unimplemented procedure get_body"; end get_body; ---------------- -- steal_body -- ---------------- procedure steal_body (msg : access GstRTSPMessage_Record; data : System.Address; size : access GLIB.guint) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "steal_body unimplemented"); raise Program_Error with "Unimplemented procedure steal_body"; end steal_body; ---------- -- dump -- ---------- procedure dump (msg : access GstRTSPMessage_Record) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "dump unimplemented"); raise Program_Error with "Unimplemented procedure dump"; end dump; ------------- -- gst_new -- ------------- procedure gst_new (msg : in out GstRTSPMessage) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "gst_new unimplemented"); raise Program_Error with "Unimplemented procedure gst_new"; end gst_new; ---------- -- init -- ---------- procedure init (msg : access GstRTSPMessage_Record) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "init unimplemented"); raise Program_Error with "Unimplemented procedure init"; end init; ----------- -- unset -- ----------- procedure unset (msg : access GstRTSPMessage_Record) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "unset unimplemented"); raise Program_Error with "Unimplemented procedure unset"; end unset; ---------- -- free -- ---------- procedure free (msg : access GstRTSPMessage_Record) is begin -- Generated stub: replace with real body! pragma Compile_Time_Warning (Standard.True, "free unimplemented"); raise Program_Error with "Unimplemented procedure free"; end free; end GStreamer.rtsp.message;
src/Implicits/Resolution/Infinite/NormalFormEquiv.agda
metaborg/ts.agda
4
11710
<reponame>metaborg/ts.agda<gh_stars>1-10 module Implicits.Resolution.Infinite.NormalFormEquiv where open import Prelude open import Implicits.Syntax open import Implicits.Resolution.Infinite.Resolution open import Implicits.Resolution.Embedding open import Implicits.Resolution.Embedding.Lemmas open import SystemF.Everything as F using () open import SystemF.NormalForm open import Data.Vec hiding ([_]) open import Relation.Binary.HeterogeneousEquality as H using () open import Data.List.Any open import Data.List.Properties open import Data.Vec.Properties as VP using () open import Extensions.Vec open import Function.Equivalence using (_⇔_; equivalence) mutual from-⇓ : ∀ {ν n t a τ} {Γ : F.Ctx ν n} → Γ ⊢ t ⇓ a → ⟦ Γ ⟧ctx← ⊢ ⟦ a ⟧tp← ↓ τ → ∃ λ i → ⟦ Γ ⟧ctx← ⊢ ⟦ lookup i Γ ⟧tp← ↓ τ from-⇓ {Γ = Γ} (nvar i) ↓τ = i , ↓τ from-⇓ (napp p x) ↓τ = from-⇓ p (i-iabs (from-⇑ x) ↓τ) from-⇓ {Γ = Γ} (ntapp {a = a} b p) ↓τ = from-⇓ p (i-tabs ⟦ b ⟧tp← (subst (λ z → ⟦ Γ ⟧ctx← ⊢ z ↓ _) (⟦a/sub⟧tp← a b) ↓τ)) from-⇑ : ∀ {ν n t a} {Γ : F.Ctx ν n} → Γ ⊢ t ⇑ a → ⟦ Γ ⟧ctx← ⊢ᵣ ⟦ a ⟧tp← from-⇑ (nbase b x) with ⟦base⟧tp← b from-⇑ (nbase b x) | τ , eq with from-⇓ x (subst (λ z → _ ⊢ z ↓ τ) (sym $ eq) (i-simp τ)) from-⇑ (nbase b x) | τ , eq | i , lookup-i↓tc = subst (λ z → _ ⊢ᵣ z) (sym $ eq) (r-simp (lookup-∈ i _) lookup-i↓tc) from-⇑ (nabs p) = r-iabs (from-⇑ p) from-⇑ (ntabs p) = r-tabs (subst (λ z → z ⊢ᵣ _) (⟦weaken⟧ctx← _) (from-⇑ p)) to-⇓ : ∀ {ν} {Δ : ICtx ν} {a τ t₁} → Δ ⊢ a ↓ τ → ⟦ Δ ⟧ctx→ ⊢ t₁ ⇓ ⟦ a ⟧tp→ → ∃ λ t₂ → ⟦ Δ ⟧ctx→ ⊢ t₂ ⇓ ⟦ simpl τ ⟧tp→ to-⇓ (i-simp a) q = , q to-⇓ (i-iabs x p) q = to-⇓ p (napp q (proj₂ $ to-⇑ x)) to-⇓ {Δ = Δ} (i-tabs {ρ = a} b p) q = to-⇓ p (subst (λ z → ⟦ Δ ⟧ctx→ ⊢ _ ⇓ z) (sym $ ⟦a/sub⟧tp→ a b) (ntapp ⟦ b ⟧tp→ q)) to-⇑ : ∀ {ν} {Δ : ICtx ν} {a} → Δ ⊢ᵣ a → ∃ λ t → ⟦ Δ ⟧ctx→ ⊢ t ⇑ ⟦ a ⟧tp→ to-⇑ {Δ = Δ} (r-simp {r = a} r r↓τ) = , nbase (⟦simpl⟧tp→ _) (proj₂ $ to-⇓ r↓τ var⇓a) where var⇓a : ⟦ Δ ⟧ctx→ ⊢ _ ⇓ ⟦ a ⟧tp→ var⇓a = let (i , eq) = ∈⟶index (VP.List-∈⇒∈ r) in let i' = (subst Fin (sym $ length-map _ Δ) i) in subst (λ z → ⟦ Δ ⟧ctx→ ⊢ (F.var i') ⇓ z) (lookup⟦⟧ Δ i eq) (nvar i') to-⇑ (r-iabs p) = , nabs (proj₂ $ to-⇑ p) to-⇑ {Δ = Δ} (r-tabs {ρ = a} p) = , ntabs (⇑-subst-n (length-weaken-Δ Δ) (H.sym $ ⟦weaken⟧ctx→ Δ) (proj₂ (to-⇑ p))) -- System F η-long-β-normal forms are isomorphic to infinite resolution derivations equivalent : ∀ {ν} (Δ : ICtx ν) r → Δ ⊢ᵣ r ⇔ (∃ λ t → ⟦ Δ ⟧ctx→ ⊢ t ⇑ ⟦ r ⟧tp→) equivalent Δ r = equivalence (λ x → to-⇑ x) (λ x → subst₂ (λ Δ' r' → Δ' ⊢ᵣ r') (ctx→← _) (tp→← r) (from-⇑ (proj₂ x))) {-} open import Function.Inverse open import Function.Equality -- from-⇑ : ∀ {ν n t a} {Γ : F.Ctx ν n} → Γ ⊢ t ⇑ a → ⟦ Γ ⟧ctx← ⊢ᵣ ⟦ a ⟧tp← from-⇑' : ∀ {ν a} {Δ : ICtx ν} → (∃ λ t → ⟦ Δ ⟧ctx→ ⊢ t ⇑ ⟦ a ⟧tp→) → Δ ⊢ᵣ a from-⇑' (_ , p) = subst₂ (λ Δ a → Δ ⊢ᵣ a) (ctx→← _) (tp→← _) (from-⇑ p) -- from-⇓' : ∀ {ν a} {Δ : ICtx ν} {τ} → (∃ λ t → ⟦ Δ ⟧ctx→ ⊢ t ⇓ ⟦ a ⟧tp→) → Δ ⊢ Δ ⊢ a ↓ τ -- from-⇓' {τ = τ} (_ , p) = subst₂ (λ Δ a → Δ ⊢ a ↓ τ) (ctx→← _) (tp→← _) (from-⇓ p) -- from-to-⇓ : ∀ {ν a} {Δ : ICtx ν} {τ} → (p : Δ ⊢ a ↓ τ) → from-⇓' (to-⇓ p) ≡ p -- from-to-⇓ p = ? from-to-⇑ : ∀ {ν a} {Δ : ICtx ν} → (p : Δ ⊢ᵣ a) → from-⇑' (to-⇑ p) ≡ p from-to-⇑ (r-simp x x₁) = {!!} from-to-⇑ (r-iabs p) = begin from-⇑' (, (nabs (proj₂ (to-⇑ p)))) ≡⟨ refl ⟩ subst₂ (λ Δ a → Δ ⊢ᵣ a) (ctx→← _) (tp→← _) (from-⇑ (nabs (proj₂ (to-⇑ p)))) ≡⟨ refl ⟩ subst₂ (λ Δ a → Δ ⊢ᵣ a) (ctx→← _) (tp→← _) (r-iabs (from-⇑ (proj₂ (to-⇑ p)))) ≡⟨ {!!} ⟩ r-iabs (subst₂ (λ Δ a → Δ ⊢ᵣ a) (ctx→← _) (tp→← _) (from-⇑ (proj₂ (to-⇑ p)))) ≡⟨ refl ⟩ r-iabs (from-⇑' (to-⇑ p)) ≡⟨ Prelude.cong r-iabs (from-to-⇑ p) ⟩ r-iabs p ∎ from-to-⇑ (r-tabs p) with from-to-⇑ p from-to-⇑ (r-tabs p) | x = {!x!} where lem : ∀ {ν a} {Δ : ICtx ν} → to-from-⇑ : ∀ {ν a} {Δ : ICtx ν} → (p : ∃ λ t → ⟦ Δ ⟧ctx→ ⊢ t ⇑ ⟦ a ⟧tp→) → to-⇑ (from-⇑' p) ≡ p to-from-⇑ p = {!!} iso' : ∀ {ν a} {Δ : ICtx ν} → (→-to-⟶ (to-⇑ {Δ = Δ} {a = a})) InverseOf (→-to-⟶ from-⇑') iso' = record { left-inverse-of = to-from-⇑; right-inverse-of = from-to-⇑ } -}
tools/akt-commands-password.ads
thierr26/ada-keystore
25
4071
<filename>tools/akt-commands-password.ads ----------------------------------------------------------------------- -- akt-commands-password -- Add/Change/Remove the wallet password -- Copyright (C) 2019 <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 AKT.Commands.Drivers; with Keystore; private package AKT.Commands.Password is type Command_Type is abstract new AKT.Commands.Drivers.Command_Type with private; overriding procedure Execute (Command : in out Command_Type; Name : in String; Args : in Argument_List'Class; Context : in out Context_Type); -- Setup the command before parsing the arguments and executing it. overriding procedure Setup (Command : in out Command_Type; Config : in out GNAT.Command_Line.Command_Line_Configuration; Context : in out Context_Type); private type Command_Type is abstract new AKT.Commands.Drivers.Command_Type with record Mode : Keystore.Mode_Type := Keystore.KEY_ADD; Counter_Range : aliased GNAT.Strings.String_Access; Password_File : aliased GNAT.Strings.String_Access; Password_Env : aliased GNAT.Strings.String_Access; Unsafe_Password : aliased GNAT.Strings.String_Access; Gpg_User : aliased GNAT.Strings.String_Access; end record; end AKT.Commands.Password;
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3104a.ada
best08618/asylo
7
5251
<gh_stars>1-10 -- CE3104A.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. --* -- OBJECTIVE: -- CHECK THAT THE CURRENT COLUMN, LINE, AND PAGE NUMBERS OF -- TEXT FILES ARE SET TO ONE AFTER A CREATE, OPEN, OR RESET. -- APPLICABILITY CRITERIA: -- THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH SUPPORT -- TEXT FILES. -- HISTORY: -- ABW 08/24/82 -- SPS 09/16/82 -- SPS 11/09/82 -- JBG 03/16/83 -- TBN 11/04/86 REVISED TEST TO OUTPUT A NON_APPLICABLE -- RESULT WHEN FILES ARE NOT SUPPORTED. -- DWC 08/13/87 CHANGED FAILED MESSAGES AND ADDED SUBTEST -- EXCEPTION. WITH REPORT; USE REPORT; WITH TEXT_IO; USE TEXT_IO; PROCEDURE CE3104A IS INCOMPLETE, SUBTEST : EXCEPTION; FILE, FT : FILE_TYPE; ONE : CONSTANT POSITIVE_COUNT := POSITIVE_COUNT(IDENT_INT(1)); CHAR : CHARACTER; BEGIN TEST ("CE3104A" , "CHECK THAT COLUMN, LINE, AND " & "PAGE NUMBERS ARE ONE AFTER A " & "CREATE, OPEN, OR RESET"); BEGIN CREATE (FILE, OUT_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("USE_ERROR RAISED; TEXT CREATE " & "WITH OUT_FILE MODE"); RAISE INCOMPLETE; WHEN NAME_ERROR => NOT_APPLICABLE ("NAME_ERROR RAISED; TEXT CREATE " & "WITH OUT_FILE MODE"); RAISE INCOMPLETE; WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED; TEXT CREATE " & "WITH OUT_FILE MODE"); RAISE INCOMPLETE; END; IF COL (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM COLUMN AFTER CREATE"); END IF; IF LINE (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM LINE AFTER CREATE"); END IF; IF PAGE (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM PAGE AFTER CREATE"); END IF; NEW_PAGE (FILE); NEW_LINE (FILE); PUT (FILE, "STRING"); CLOSE (FILE); BEGIN BEGIN OPEN (FILE, IN_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => RAISE SUBTEST; END; IF COL (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM COLUMN AFTER " & "OPEN - IN_FILE"); END IF; IF LINE (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM LINE AFTER " & "OPEN - IN_FILE"); END IF; IF PAGE (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM PAGE AFTER " & "OPEN - IN_FILE"); END IF; GET (FILE, CHAR); -- SETS PAGE, LINE, AND COL /= 1 BEGIN RESET (FILE); EXCEPTION WHEN USE_ERROR => CLOSE (FILE); RAISE SUBTEST; END; IF COL (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM COLUMN AFTER RESET"); END IF; IF LINE (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM LINE AFTER RESET"); END IF; IF PAGE (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM PAGE AFTER RESET"); END IF; GET (FILE, CHAR); -- CHANGES LINE, PAGE, COL; STILL IN_FILE BEGIN RESET (FILE,OUT_FILE); EXCEPTION WHEN USE_ERROR => CLOSE (FILE); RAISE SUBTEST; END; IF COL (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM COLUMN AFTER RESET " & "TO OUT_FILE"); END IF; IF LINE (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM LINE AFTER RESET " & "TO OUT_FILE"); END IF; IF PAGE (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM PAGE AFTER RESET " & "TO OUT_FILE"); END IF; CLOSE (FILE); EXCEPTION WHEN SUBTEST => NULL; END; BEGIN BEGIN OPEN (FILE, OUT_FILE, LEGAL_FILE_NAME); EXCEPTION WHEN USE_ERROR => RAISE SUBTEST; END; IF COL (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM COLUMN AFTER OPEN " & "TO OUT_FILE"); END IF; IF LINE (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM LINE AFTER OPEN " & "TO OUT_FILE"); END IF; IF PAGE (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM PAGE AFTER OPEN " & "TO OUT_FILE"); END IF; EXCEPTION WHEN SUBTEST => NULL; END; BEGIN BEGIN CREATE (FT, IN_FILE); EXCEPTION WHEN USE_ERROR => RAISE SUBTEST; END; IF COL (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM COLUMN AFTER CREATE " & "IN IN_FILE"); END IF; IF LINE (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM LINE AFTER CREATE " & "IN IN_FILE"); END IF; IF PAGE (FILE) /= ONE THEN FAILED ("INCORRECT RESULTS FROM PAGE AFTER CREATE " & "IN IN_FILE"); END IF; CLOSE (FT); EXCEPTION WHEN SUBTEST => NULL; END; BEGIN DELETE (FILE); EXCEPTION WHEN USE_ERROR => NULL; END; RESULT; EXCEPTION WHEN INCOMPLETE => RESULT; END CE3104A;
LibraBFT/Base/Types.agda
cwjnkins/bft-consensus-agda
0
5435
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9. Copyright (c) 2020, 2021, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl -} open import LibraBFT.Prelude open import LibraBFT.Hash open import LibraBFT.Base.PKCS open import LibraBFT.Base.Encode -- The ground types that are common across Abstract, Concrete and Impl -- and some utility types module LibraBFT.Base.Types where Epoch : Set Epoch = ℕ Round : Set Round = ℕ -- This was intended to be a simple way to flag meta-information without having it -- getting in the way. It's important to ensure that an implementation does not -- use various information, such as who is honest. However, we found this got in -- the way too much during development, so for now we get a similar effect by using -- a naming convention and enforcement via grep and eyeballs. Maybe one day... Meta : ∀{ℓ} → Set ℓ → Set ℓ Meta x = x -- An EPRound is a 'compound round'; that is, -- is a round coupled with an epoch id. As most of our -- proofs are per-epoch so far, these are not used, but -- they may be in future. EpRound : Set EpRound = Epoch × Round sucr : EpRound → EpRound sucr (e , r) = (e , suc r) epr-epoch : EpRound → Epoch epr-epoch = proj₁ epr-round : EpRound → Round epr-round = proj₂ epr₀ : EpRound epr₀ = (0 , 0) -- Compound rounds admit a total order data _<ER_ : EpRound → EpRound → Set where ince : ∀{e₀ e₁ r₀ r₁} → e₀ < e₁ → (e₀ , r₀) <ER (e₁ , r₁) incr : ∀{e r₀ r₁} → r₀ < r₁ → (e , r₀) <ER (e , r₁) <ER-irrelevant : Irrelevant _<ER_ <ER-irrelevant (ince x) (ince x₁) = cong ince (<-irrelevant x x₁) <ER-irrelevant (ince x) (incr x₁) = ⊥-elim (<-irrefl refl x) <ER-irrelevant (incr x) (ince x₁) = ⊥-elim (<-irrefl refl x₁) <ER-irrelevant (incr x) (incr x₁) = cong incr (<-irrelevant x x₁) <ER-asym : Asymmetric _<ER_ <ER-asym (ince x) (ince x₁) = <-asym x x₁ <ER-asym (ince x) (incr x₁) = <-irrefl refl x <ER-asym (incr x) (ince x₁) = <-irrefl refl x₁ <ER-asym (incr x) (incr x₁) = <-asym x x₁ <ER-trans : Transitive _<ER_ <ER-trans (ince x) (ince x₁) = ince (<-trans x x₁) <ER-trans (ince x) (incr x₁) = ince x <ER-trans (incr x) (ince x₁) = ince x₁ <ER-trans (incr x) (incr x₁) = incr (<-trans x x₁) <ER-irrefl : Irreflexive _≡_ _<ER_ <ER-irrefl refl (ince x) = <-irrefl refl x <ER-irrefl refl (incr x) = <-irrefl refl x postulate -- prove, if needed/used <ER-cmp : Trichotomous _≡_ _<ER_ {- This <ER relation is not currently used. If it turns out to be used: TODO-1: finish this proof <ER-cmp (e₀ , r₀) (e₁ , r₁) with <-cmp e₀ e₁ ...| tri≈ e₀≮e₁ refl e₁≮e₀ = {!!} {!!} {!!} ...| tri< e₀<e₁ e₀≢e₁ e₁≮e₀ = tri< (ince e₀<e₁) {!!} {!!} ...| tri> e₀≮e₁ e₀≢e₁ e₁<e₀ = {!!} -} ep≮epr₀ : ∀{ep} → ¬ (ep <ER epr₀) ep≮epr₀ (ince ()) ep≮epr₀ (incr ()) _≤ER_ : EpRound → EpRound → Set er₀ ≤ER er₁ = er₀ ≡ er₁ ⊎ er₀ <ER er₁ ≤ER⇒epoch≤ : ∀{er₀ er₁} → er₀ ≤ER er₁ → epr-epoch er₀ ≤ epr-epoch er₁ ≤ER⇒epoch≤ (inj₁ refl) = ≤-refl ≤ER⇒epoch≤ (inj₂ (ince x)) = <⇒≤ x ≤ER⇒epoch≤ (inj₂ (incr x)) = ≤-refl ≤ER⇒round≤ : ∀{er₀ er₁} → er₀ ≤ER er₁ → epr-epoch er₀ ≡ epr-epoch er₁ → epr-round er₀ ≤ epr-round er₁ ≤ER⇒round≤ (inj₁ refl) hyp1 = ≤-refl ≤ER⇒round≤ (inj₂ (ince x)) refl = ⊥-elim (<-irrefl refl x) ≤ER⇒round≤ (inj₂ (incr x)) hyp1 = <⇒≤ x ≤ER-intro : ∀{e₀ e₁ r₀ r₁} → e₀ ≤ e₁ → r₀ ≤ r₁ → (e₀ , r₀) ≤ER (e₁ , r₁) ≤ER-intro {e0} {e1} {r0} {r1} e r with e0 ≟ℕ e1 ...| no le = inj₂ (ince (≤∧≢⇒< e le)) ...| yes refl with r0 ≟ℕ r1 ...| no le = inj₂ (incr (≤∧≢⇒< r le)) ...| yes refl = inj₁ refl er≤0⇒er≡0 : ∀{er} → er ≤ER epr₀ → er ≡ epr₀ er≤0⇒er≡0 (inj₁ x) = x er≤0⇒er≡0 (inj₂ (ince ())) er≤0⇒er≡0 (inj₂ (incr ())) <⇒≤ER : ∀{er₀ er₁} → er₀ <ER er₁ → er₀ ≤ER er₁ <⇒≤ER = inj₂ ≤ER-refl : Reflexive _≤ER_ ≤ER-refl = inj₁ refl postulate -- prove, if needed/used ≤ER-trans : Transitive _≤ER_
programs/oeis/295/A295884.asm
karttu/loda
0
16939
<filename>programs/oeis/295/A295884.asm<gh_stars>0 ; A295884: Number of exponents larger than 3 in the prime factorization of n. ; 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0 cal $0,244417 ; Exponents of 6 in appearing in the 6-adic value of 1/n, n>=1 (A244416). div $0,4 mov $1,$0
platinum-experiment-data/comparison/CSOS/CSOS.als
jringert/alloy-diff
1
3707
<reponame>jringert/alloy-diff module CSOS open Declaration one sig Channel extends Class{}{ attrSet = channelID id=channelID isAbstract = No no parent } one sig channelID extends Integer{} one sig EmailChannel extends Class{}{ attrSet = emailID one parent parent in Channel isAbstract = No id=channelID } one sig emailID extends Integer{} one sig SecEmailChannel extends Class{}{ attrSet = secEmailID one parent parent in EmailChannel isAbstract = No id=channelID } one sig secEmailID extends Integer{} one sig SMSChannel extends Class{}{ attrSet = smsProvider + telNo one parent parent in Channel isAbstract = No id=channelID } one sig smsProvider extends string{} one sig telNo extends string{} one sig Principal extends Class{}{ attrSet = principalID + principalName id=principalID isAbstract = No no parent } one sig principalID extends Integer{} one sig principalName extends string{} one sig Person extends Class{}{ attrSet = role one parent parent in Principal isAbstract = No id=principalID } one sig role extends Integer{} one sig Viewer extends Class{}{ attrSet = period id=principalID one parent parent in Person isAbstract = No } one sig period extends Integer{} one sig Institution extends Class{}{ attrSet = InstitutionID one parent parent in Principal isAbstract = No id=principalID } one sig InstitutionID extends Integer{} one sig PrincipalProxy extends Association{}{ src = Principal dst = Channel src_multiplicity = ONE dst_multiplicity = MANY } one sig Role extends Class{}{ attrSet = roleID id=roleID isAbstract = No no parent } one sig roleID extends Integer{} one sig PrincipalRole extends Association{}{ src = Principal dst = Role src_multiplicity = MANY dst_multiplicity = MANY } one sig ProcessStateMachine extends Class{}{ attrSet = stateMachineID id=stateMachineID isAbstract = No no parent } one sig stateMachineID extends Integer{} one sig ProcessStateMachineState extends Class{}{ attrSet = stateID + entryActionID + exitActionID id=stateID isAbstract = No no parent } one sig stateID extends Integer{} one sig entryActionID extends Integer{} one sig exitActionID extends Integer{} one sig ProcessStateMachineAction extends Class{}{ attrSet = actionID + actionStateMachineID id=actionID isAbstract = No no parent } one sig actionID extends Integer{} one sig actionStateMachineID extends Integer{} one sig MachineStates extends Association{}{ src = ProcessStateMachine dst = ProcessStateMachineState src_multiplicity = ONE dst_multiplicity = MANY } one sig ProcessStateMachineEvent extends Class{}{ attrSet = eventID id=eventID isAbstract = No no parent } one sig eventID extends Integer{} one sig StateMachineEvents extends Association{}{ src = ProcessStateMachine dst = ProcessStateMachineEvent src_multiplicity = ONE dst_multiplicity = MANY } one sig StateMachineTransitions extends Association{}{ src = ProcessStateMachine dst = ProcessStateMachineTransition src_multiplicity = ONE dst_multiplicity = MANY } one sig ProcessStateMachineTransition extends Class{}{ attrSet = transitionID + fromStateID + toStateID id=transitionID isAbstract = No no parent } one sig transitionID extends Integer{} one sig fromStateID extends Integer{} one sig toStateID extends Integer{} one sig ProcessStateMachineExecution extends Class{}{ attrSet = processStateMachineExecutionID + processStateMachineID + currentStateID id=processStateMachineExecutionID isAbstract = No no parent } one sig processStateMachineExecutionID extends Integer{} one sig processStateMachineID extends Integer{} one sig currentStateID extends Integer{} one sig ProcessQueryResponse extends Class{}{ attrSet = processQueryResponseID one parent parent in ProcessStateMachine isAbstract = No id=stateMachineID } one sig processQueryResponseID extends Integer{} one sig ProcessQueryResponseAction extends Class{}{ attrSet = processQueryResponseActionID one parent parent in ProcessStateMachineAction isAbstract = No id=actionID } one sig processQueryResponseActionID extends Integer{} one sig ProcessQueryResponseExecution extends Class{}{ attrSet = processQueryResponseExecutionID one parent parent in ProcessStateMachineExecution isAbstract = No id=processStateMachineExecutionID } one sig processQueryResponseExecutionID extends Integer{} pred show{} run show for 59
oeis/108/A108233.asm
neoneye/loda-programs
11
25176
; A108233: Numbers n such that 11*n + 5 is prime. ; Submitted by <NAME> ; 0,6,12,16,24,28,34,36,42,52,54,58,64,72,78,82,84,94,96,106,108,112,114,118,138,142,154,156,162,166,184,196,208,216,222,232,234,244,246,252,258,262,264,268,274,276,292,306,322,328,336,342,348,352,358,384,388,394,408,418,426,436,444,448,454,456,462,468,472,486,492,498,502,514,526,528,532,534,538,546,556,558,586,588,612,616,618,624,636,652,658,664,666,682,684,688,694,702,708,736 mov $1,4 mov $2,$0 add $2,2 pow $2,2 lpb $2 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,22 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,1 lpe mov $0,$1 div $0,11
alloy4fun_models/trashltl/models/8/HSTkYTvBgqmPC9XkW.als
Kaixi26/org.alloytools.alloy
0
1876
<reponame>Kaixi26/org.alloytools.alloy open main pred idHSTkYTvBgqmPC9XkW_prop9 { all p : Protected | p not in Trash and p not in Trash' } pred __repair { idHSTkYTvBgqmPC9XkW_prop9 } check __repair { idHSTkYTvBgqmPC9XkW_prop9 <=> prop9o }
oeis/028/A028159.asm
neoneye/loda-programs
11
2923
<filename>oeis/028/A028159.asm ; A028159: Expansion of 1/((1-4x)(1-8x)(1-10x)(1-12x)). ; Submitted by <NAME> ; 1,34,740,13160,208656,3075744,43147840,584341120,7711252736,99794799104,1272281687040,16031996897280,200167551471616,2480945949220864,30569500530851840,374885865442672640 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 dif $2,26 sub $2,1 sub $0,$2 seq $0,19747 ; Expansion of 1/((1-4x)(1-10x)(1-12x)). mul $1,8 add $1,$0 lpe mov $0,$1
oeis/055/A055835.asm
neoneye/loda-programs
11
243885
; A055835: T(2n+1,n), where T is the array in A055830. ; Submitted by <NAME> ; 1,3,12,54,255,1239,6132,30744,155628,793650,4071210,20984340,108590118,563816526,2935798680,15324533448,80164934919,420151515255,2205762626010,11597513662350,61060181223195,321870918101535,1698584022537480,8972874824434560,47443688971812900,251070122282769504,1329696816547196412,7047348147626735088,37375893024642108696,198348905773967840520,1053227282974592070576,5595667782535457112288,29744337886631466822636,158185129697370055233282,841634601358424125363650,4479884005834745841010860 mov $4,$0 add $0,1 lpb $0 sub $0,1 mov $2,$1 add $2,1 bin $2,$0 mov $3,$4 bin $3,$1 add $1,1 mul $3,$2 add $4,1 add $5,$3 lpe mov $0,$5
hw2.agda
andmkent/misc-HoTT
1
4053
<gh_stars>1-10 {-# OPTIONS --without-K #-} module hw2 where open import Level using (_⊔_) open import Function using (id) open import Data.Nat using (ℕ; suc; _+_; _*_) open import Data.Empty using (⊥) open import Data.Sum using (_⊎_; inj₁; inj₂) import Level infix 4 _≡_ recℕ : ∀ {ℓ} → (C : Set ℓ) → C → (ℕ → C → C) → ℕ → C recℕ C z f 0 = z recℕ C z f (suc n) = f n (recℕ C z f n) indℕ : ∀ {ℓ} → (C : ℕ → Set ℓ) → C 0 → ((n : ℕ) → C n → C (suc n)) → (n : ℕ) → C n indℕ C z f 0 = z indℕ C z f (suc n) = f n (indℕ C z f n) ------------------------------------------------------------------------------ -- ≡ data _≡_ {ℓ} {A : Set ℓ} : (x y : A) → Set ℓ where refl : (x : A) → x ≡ x rec≡ : {A : Set} → (R : A → A → Set) {reflexiveR : {a : A} → R a a} → ({x y : A} (p : x ≡ y) → R x y) rec≡ R {reflR} (refl y) = reflR {y} ------------------------------------------------------------------------------ -- subst subst : ∀ {ℓ} {A : Set ℓ} {C : A → Set ℓ} → ({x y : A} (p : x ≡ y) → C x → C y) subst (refl x) = id ------------------------------------------------------------------------------ -- ∘ _∘_ : {A B C : Set} → (f : B → C) → (g : A → B) → A → C f ∘ g = (λ a → f (g a)) module Circle1 where private data S¹* : Set where base* : S¹* S¹ : Set S¹ = S¹* base : S¹ base = base* postulate loop : base ≡ base recS¹ : {C : Set} → (cbase : C) → (cloop : cbase ≡ cbase) → S¹ → C recS¹ cbase cloop base* = cbase -- postulate -- βrecS¹ : {C : Set} → (cbase : C) → (cloop : cbase ≡ cbase) -- → ap (recS¹ cbase cloop) loop ≡ cloop -- indS¹ : {C : S¹ → Set} -- → (cbase : C base) → (cloop : transport C look cbase ≡ cbase) -- → apd (indS¹ {C} cbase cloop) loop ≡ cloop
oeis/183/A183872.asm
neoneye/loda-programs
11
84820
; A183872: n+floor(sqrt(5n)); complement of A183873. ; Submitted by <NAME> ; 3,5,6,8,10,11,12,14,15,17,18,19,21,22,23,24,26,27,28,30,31,32,33,34,36,37,38,39,41,42,43,44,45,47,48,49,50,51,52,54,55,56,57,58,60,61,62,63,64,65,66,68,69,70,71,72,73,75,76,77,78,79,80,81,83,84,85,86,87,88,89,90,92,93,94,95,96,97,98,100,101,102,103,104,105,106,107,108,110,111,112,113,114,115,116,117,119,120,121,122 mov $1,$0 add $1,1 mul $1,5 mov $2,1 lpb $1 add $0,1 add $2,2 trn $1,$2 lpe add $0,1
src/fot/FOTC/Program/Mirror/Tree/TotalityI.agda
asr/fotc
11
4962
<reponame>asr/fotc<filename>src/fot/FOTC/Program/Mirror/Tree/TotalityI.agda ------------------------------------------------------------------------------ -- Totality properties for Tree ------------------------------------------------------------------------------ {-# OPTIONS --exact-split #-} {-# OPTIONS --no-sized-types #-} {-# OPTIONS --no-universe-polymorphism #-} {-# OPTIONS --without-K #-} module FOTC.Program.Mirror.Tree.TotalityI where open import FOTC.Base open import FOTC.Base.List open import FOTC.Data.List open import FOTC.Program.Mirror.Forest.TotalityI open import FOTC.Program.Mirror.Mirror open import FOTC.Program.Mirror.Type ------------------------------------------------------------------------------ mirror-Tree : ∀ {t} → Tree t → Tree (mirror · t) mirror-Tree = Tree-mutual-ind {A} {B} hA B[] hB where A : D → Set A t = Tree (mirror · t) B : D → Set B ts = Forest (map mirror ts) hA : ∀ d {ts} → Forest ts → B ts → A (node d ts) hA d {ts} Fts Bts = subst Tree (sym (mirror-eq d ts)) (tree d (reverse-Forest Bts)) B[] : B [] B[] = subst Forest (sym (map-[] mirror)) fnil hB : ∀ {t ts} → Tree t → A t → Forest ts → B ts → B (t ∷ ts) hB {t} {ts} Tt At Fts Bts = subst Forest (sym (map-∷ mirror t ts)) (fcons At Bts)
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-7700_9_0x48_notsx.log_21829_1835.asm
ljhsiun2/medusa
9
97823
<filename>Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-7700_9_0x48_notsx.log_21829_1835.asm .global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1e33c, %rbx nop nop nop inc %rax movl $0x61626364, (%rbx) cmp %rcx, %rcx lea addresses_A_ht+0x1b782, %rbp nop dec %rbx movw $0x6162, (%rbp) nop nop and %rbx, %rbx lea addresses_UC_ht+0xe42, %rsi lea addresses_WT_ht+0xb13a, %rdi nop nop sub $18493, %rax mov $64, %rcx rep movsw nop nop nop nop nop add %rbp, %rbp lea addresses_A_ht+0x14c42, %rdi nop nop nop add %rbx, %rbx mov $0x6162636465666768, %rbp movq %rbp, %xmm2 and $0xffffffffffffffc0, %rdi vmovaps %ymm2, (%rdi) nop nop nop nop add $56059, %rdi lea addresses_UC_ht+0xaed6, %rsi lea addresses_UC_ht+0x1cf12, %rdi cmp %r15, %r15 mov $63, %rcx rep movsb nop and $24634, %rbp lea addresses_A_ht+0x11842, %rsi lea addresses_WC_ht+0x1a82, %rdi cmp %rbx, %rbx mov $58, %rcx rep movsb inc %rcx lea addresses_WC_ht+0x9196, %rsi lea addresses_D_ht+0x3e54, %rdi nop nop sub %rbx, %rbx mov $28, %rcx rep movsw nop and %rbx, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r8 push %rbp push %rdi push %rdx // Load lea addresses_A+0xb8f6, %rdx add %r15, %r15 mov (%rdx), %r14 nop nop nop nop and %r8, %r8 // Store lea addresses_RW+0x1bf2, %r10 nop nop nop nop add %rbp, %rbp movw $0x5152, (%r10) nop nop nop nop nop dec %r10 // Load lea addresses_UC+0x16042, %r10 nop add %r15, %r15 mov (%r10), %rdx nop nop nop add $17670, %r10 // Faulty Load lea addresses_UC+0x16042, %rdi nop xor %r15, %r15 vmovaps (%rdi), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %r14 lea oracles, %r8 and $0xff, %r14 shlq $12, %r14 mov (%r8,%r14,1), %r14 pop %rdx pop %rdi pop %rbp pop %r8 pop %r15 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC', 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_A', 'congruent': 2}} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_RW', 'congruent': 1}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 32, 'type': 'addresses_UC', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 6}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}} {'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 32, 'type': 'addresses_A_ht', 'congruent': 7}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}} {'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}} {'dst': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WC_ht'}} {'48': 294, '45': 1, '00': 21534} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
test/Succeed/ImproveInertRHS.agda
alhassy/agda
3
8249
<reponame>alhassy/agda data Nat : Set where zero : Nat suc : Nat → Nat data Id (A : Set) : Set where mkId : A → Id A data Monad (M : Set → Set) : Set where postulate return : ∀ {M} {{Mon : Monad M}} {A} → A → M A _>>=_ : ∀ {M} {{Mon : Monad M}} {A B} → M A → (A → M B) → M B State : (S A : Set) → Set instance MonadState : ∀ {S} → Monad (State S) MonadId : Monad Id -- Yields -- _M Nat == State Nat Nat, -- which inert improvement solves by -- _M x := State (_S x) (_A x) -- with _S Nat == Nat -- _A Nat == Nat -- This allows instance search to pick the right instance. rz : State Nat Nat rz = return zero postulate StateT : (S : Set) (M : Set → Set) (A : Set) → Set instance MonadStateT : ∀ {S M} → Monad M → Monad (StateT S M) stateT₁ : ∀ {M} {{Mon : Monad M}} → StateT Nat M Nat stateT₁ = return zero stateT₂ : ∀ {M} {{Mon : Monad M}} → StateT Nat M Nat stateT₂ = return zero >>= λ n → return (suc n) postulate _<$_ : ∀ {A B M} {{Mon : Monad M}} → A → M B → M A record ⊤ : Set where constructor tt foo : Id ⊤ foo = _ <$ return zero
programs/oeis/076/A076455.asm
neoneye/loda
22
89033
; A076455: Sum of numbers that can be written as t*n + u*(n+1) for nonnegative integers t,u in exactly two ways. ; 5,57,246,710,1635,3255,5852,9756,15345,23045,33330,46722,63791,85155,111480,143480,181917,227601,281390,344190,416955,500687,596436,705300,828425,967005,1122282,1295546,1488135,1701435,1936880,2195952,2480181,2791145,3130470,3499830,3900947,4335591,4805580,5312780,5859105,6446517,7077026,7752690,8475615,9247955,10071912,10949736,11883725,12876225,13929630,15046382,16228971,17479935,18801860,20197380,21669177,23219981,24852570,26569770,28374455,30269547,32258016,34342880,36527205,38814105,41206742,43708326,46322115,49051415,51899580,54870012,57966161,61191525,64549650,68044130,71678607,75456771,79382360,83459160,87691005,92081777,96635406,101355870,106247195,111313455,116558772,121987316,127603305,133411005,139414730,145618842,152027751,158645915,165477840,172528080,179801237,187301961,195034950,203004950 mul $0,2 mov $2,$0 sub $2,$0 add $0,3 mov $1,$0 sub $2,$0 mul $0,$2 add $1,$2 add $1,$0 sub $0,$2 add $1,1 mul $0,$1 add $0,$1 div $0,8
Working Disassembly/Levels/DEZ/Misc Object Data/Map - Bumper Wall.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
5
100122
dc.w word_498C4-Map_DEZBumperWall word_498C4: dc.w 2 ; DATA XREF: ROM:000498C2o dc.b $E0, $B, 0, $10, $FF, $F4 dc.b 0, $B, $10, $10, $FF, $F4
alloy4fun_models/trashltl/models/8/fTkt6N7HmxKxrogEF.als
Kaixi26/org.alloytools.alloy
0
4115
<gh_stars>0 open main pred idfTkt6N7HmxKxrogEF_prop9 { always no Protected + Trash } pred __repair { idfTkt6N7HmxKxrogEF_prop9 } check __repair { idfTkt6N7HmxKxrogEF_prop9 <=> prop9o }
oeis/168/A168364.asm
neoneye/loda-programs
11
166411
<reponame>neoneye/loda-programs ; A168364: a(n) = n^5*(n^2 + 1)/2. ; 0,1,80,1215,8704,40625,143856,420175,1064960,2421009,5050000,9824111,18040320,31559905,52975664,85809375,134742016,205879265,307054800,448173919,641600000,902586321,1249755760,1705630895,2297217024,3056640625,4021845776,5237351055,6755069440,8635193729,10947150000,13770621631,17196646400,21328789185,26284392784,32195909375,39212315136,47500610545,57247408880,68660615439,81971200000,97435065041,115335012240,135982809775,159721362944,186926990625,218011810096,253426232735,293661573120 mov $1,$0 pow $0,5 pow $1,7 add $0,$1 div $0,2
out/npi.adb
Melyodas/metalang
22
12852
<reponame>Melyodas/metalang with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C; use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C; procedure npi is type stringptr is access all char_array; procedure PInt(i : in Integer) is begin String'Write (Text_Streams.Stream (Current_Output), Trim(Integer'Image(i), Left)); end; procedure SkipSpaces is C : Character; Eol : Boolean; begin loop Look_Ahead(C, Eol); exit when Eol or C /= ' '; Get(C); end loop; end; function is_number(c : in Character) return Boolean is begin return Character'Pos(c) <= Character'Pos('9') and then Character'Pos(c) >= Character'Pos('0'); end; -- --Notation polonaise inversée, ce test permet d'évaluer une expression écrite en NPI -- type a is Array (Integer range <>) of Integer; type a_PTR is access a; type b is Array (Integer range <>) of Character; type b_PTR is access b; function npi0(str : in b_PTR; len : in Integer) return Integer is stack : a_PTR; ptrStr : Integer; ptrStack : Integer; num : Integer; begin stack := new a (0..len - 1); for i in integer range 0..len - 1 loop stack(i) := 0; end loop; ptrStack := 0; ptrStr := 0; while ptrStr < len loop if str(ptrStr) = ' ' then ptrStr := ptrStr + 1; else if is_number(str(ptrStr)) then num := 0; while str(ptrStr) /= ' ' loop num := num * 10 + Character'Pos(str(ptrStr)) - Character'Pos('0'); ptrStr := ptrStr + 1; end loop; stack(ptrStack) := num; ptrStack := ptrStack + 1; else if str(ptrStr) = '+' then stack(ptrStack - 2) := stack(ptrStack - 2) + stack(ptrStack - 1); ptrStack := ptrStack - 1; ptrStr := ptrStr + 1; end if; end if; end if; end loop; return stack(0); end; tmp : Character; tab : b_PTR; result : Integer; len : Integer; begin len := 0; Get(len); SkipSpaces; tab := new b (0..len - 1); for i in integer range 0..len - 1 loop tmp := Character'Val(0); Get(tmp); tab(i) := tmp; end loop; result := npi0(tab, len); PInt(result); end;
oeis/131/A131835.asm
neoneye/loda-programs
11
103692
<reponame>neoneye/loda-programs ; A131835: Numbers starting with 1. ; Submitted by <NAME>(s1) ; 1,10,11,12,13,14,15,16,17,18,19,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188 mov $2,1 lpb $0 sub $0,$2 mul $2,10 lpe add $0,$2
alloy4fun_models/trainstlt/models/10/txb2xExEZxktdpX2G.als
Kaixi26/org.alloytools.alloy
0
2750
<filename>alloy4fun_models/trainstlt/models/10/txb2xExEZxktdpX2G.als<gh_stars>0 open main pred idtxb2xExEZxktdpX2G_prop11 { always ( all t:Train| some t.pos and historically t.pos in Entry) } pred __repair { idtxb2xExEZxktdpX2G_prop11 } check __repair { idtxb2xExEZxktdpX2G_prop11 <=> prop11o }
out/prologin_template_intmatrix.adb
FardaleM/metalang
22
21849
<reponame>FardaleM/metalang with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C; use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C; procedure prologin_template_intmatrix is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams.Stream (Current_Output), To_Ada(s.all)); end; procedure PInt(i : in Integer) is begin String'Write (Text_Streams.Stream (Current_Output), Trim(Integer'Image(i), Left)); end; procedure SkipSpaces is C : Character; Eol : Boolean; begin loop Look_Ahead(C, Eol); exit when Eol or C /= ' '; Get(C); end loop; end; type d is Array (Integer range <>) of Integer; type d_PTR is access d; type e is Array (Integer range <>) of d_PTR; type e_PTR is access e; function programme_candidat(tableau : in e_PTR; x : in Integer; y : in Integer) return Integer is out0 : Integer; begin out0 := 0; for i in integer range 0..y - 1 loop for j in integer range 0..x - 1 loop out0 := out0 + tableau(i)(j) * (i * 2 + j); end loop; end loop; return out0; end; taille_y : Integer; taille_x : Integer; tableau : e_PTR; b : d_PTR; begin Get(taille_x); SkipSpaces; Get(taille_y); SkipSpaces; tableau := new e (0..taille_y - 1); for a in integer range 0..taille_y - 1 loop b := new d (0..taille_x - 1); for c in integer range 0..taille_x - 1 loop Get(b(c)); SkipSpaces; end loop; tableau(a) := b; end loop; PInt(programme_candidat(tableau, taille_x, taille_y)); PString(new char_array'( To_C("" & Character'Val(10)))); end;
2nd Assignment - Temperature Transformation/temperature_transformation.asm
elefthvp/Computer-Architecture--MIPS--Assignments
0
161327
.data 0x10008000 .word 5,9,32 string1: .asciiz "Select temperature c or f \n" string2: .asciiz "Type the desired number=? \n" string3: .asciiz "Temperature: " messagec: .asciiz " C" messagef: .asciiz " F" number: .float 0.0 zeroo: .float 0.0 .text main: lui $gp,0x1000 ori $gp,$gp,0x8000 lwc1 $f2,zeroo lwc1 $f16,0($gp) #load the number that can be found 0 bytes from the global pointer (i.e. that can be found at the start of the global pointer) and is equal to 5 cvt.s.w $f16,$f16 #convert it to float lwc1 $f18,4($gp) #load the number that is 4 bytes from the global pointer, that is equal to 9 as defined at the beginning of the code cvt.s.w $f18,$f18 lwc1 $f14,8($gp) ##load the number that is 8 bytes from the global pointer, that is equal to 32 as defined at the beginning of the code cvt.s.w $f14,$f14 #create 5/9 and its reverse, used in the Fahrenheit to Celsius and Celsius to Fahrenheit formulas div.s $f20,$f16,$f18 #5/9 div.s $f22,$f18,$f16 #9/5 #print message asking for f or c insertion li $v0,4 la $a0,string1 syscall #read a single character li $v0,12 syscall #compare read character to 99 which is ASCII for c and jump to Celsius to Fahrenheit if equal, otherwise continue to Fahrenheit to Celsius beq $v0,99,c2f f2c: #print message asking for temperature input li $v0,4 la $a0,string2 syscall #read temperature li $v0,6 syscall #Fahrenheit to Celsius calculation sub.s $f10,$f0,$f14 #subtract 32 mul.s $f10,$f10,$f20 #multiply 5/9 #print results li $v0,4 la $a0,string3 syscall li $v0,2 add.s $f12,$f10,$f2 #store the float to print in the compatibe float register syscall li $v0,4 la $a0,messagec syscall #exit li $v0,10 syscall c2f: #print message asking for temperature input li $v0,4 la $a0,string2 syscall #read temperature li $v0,6 syscall #Celsius to Fahrenheit calculation mul.s $f10,$f0,$f22 add.s $f10,$f10,$f14 li $v0,2 add.s $f12,$f10,$f2 #store the float to print in the compatibe float register syscall li $v0,4 la $a0,messagef syscall #exit li $v0,10 syscall
MP/LAB_001_Opt/Ver_Contiene_Caracter.adb
usainzg/EHU
0
28913
WITH Ada.Text_Io; USE Ada.Text_Io; procedure Ver_Contiene_Caracter is -- salida: 7 booleanos(SE) -- post: corresponden a cada uno de los casos de pruebas dise�ados. -- pre: { True } function Contiene_Caracter ( S : String; L : Character) return Boolean is -- EJERCICIO 3- ESPECIFICA E IMPLEMENTA recursivamente el subprograma -- Contiene_a que decide si el string S contiene el car�cter 'a'. BEGIN -- Completar if S'Size = 0 then return False; end if; if S(S'First) = L then return True; end if; return Contiene_Caracter(S(S'First + 1 .. S'Last), L); end Contiene_Caracter ; -- post: { True <=> Contiene_a(S, L) } begin Put_Line("-------------------------------------"); Put("La palabra vacia no contiene el caracter 'a': "); Put(Boolean'Image(Contiene_Caracter("", 'a'))); New_Line; New_Line; New_Line; Put_Line("-------------------------------------"); Put_Line("Palabras de un caracter"); Put("-- La palabra de 1 caracter 'a' contiene el caracter 'a': "); Put(Boolean'Image(Contiene_Caracter("a", 'a'))); New_Line; Put("-- La palabra de 1 caracter 'b' contiene el caracter 'b': "); Put(Boolean'Image(Contiene_Caracter("b", 'b'))); New_Line; New_Line; New_Line; Put_Line("-------------------------------------"); Put_Line("Palabras de varios caracteres"); Put("-- 'abcd' contiene el caracter 'b': "); Put(Boolean'Image(Contiene_Caracter("abcd", 'b'))); New_Line; Put("-- 'dcba' contiene el caracter 'a': "); Put(Boolean'Image(Contiene_Caracter("dcba", 'a'))); New_Line; Put("-- 'dcbabcd' contiene el caracter 'a': "); Put(Boolean'Image(Contiene_Caracter("dcbabcd", 'a'))); New_Line; Put("-- Pero 'dcbbcd' no contiene el caracter 'e': "); Put(Boolean'Image(Contiene_Caracter("dcbbcd", 'e'))); New_Line; Put_Line("-------------------------------------"); end Ver_Contiene_Caracter;
PRG/levels/Airship/CoinBoss.asm
narfman0/smb3_pp1
0
162168
<gh_stars>0 ; Original address was $BCB8 ; Tank boss room .word $0000 ; Alternate level layout .word $0000 ; Alternate object layout .byte LEVEL1_SIZE_01 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_05 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_00 | LEVEL3_VSCROLL_LOCKED .byte LEVEL4_BGBANK_INDEX(10) | LEVEL4_INITACT_NOTHING .byte LEVEL5_BGM_BATTLE | LEVEL5_TIME_300 .byte $00, $00, $0F, $0F, $00, $4B, $0F, $0F, $4B, $19, $01, $61, $19, $03, $61, $19 .byte $05, $61, $19, $07, $61, $19, $09, $61, $19, $0B, $61, $19, $0D, $61, $14, $01 .byte $F1, $16, $0A, $F2, $17, $0C, $F1, $15, $0D, $F3, $76, $02, $10, $75, $04, $10 .byte $77, $05, $10, $77, $08, $10, $76, $0B, $10, $75, $0E, $10, $16, $01, $E2, $15 .byte $03, $E3, $17, $04, $E1, $17, $07, $E1, $2F, $07, $D1, $FF
oeis/256/A256871.asm
neoneye/loda-programs
11
96853
; A256871: a(n) = 2^(n-1)*(2^n+11). ; 6,13,30,76,216,688,2400,8896,34176,133888,529920,2108416,8411136,33599488,134307840,537051136,2147844096,8590655488,34361180160,137441837056,549761581056,2199034789888,8796116090880,35184418226176,140737580630016,562950137970688,2251800182784000,9007199992938496,36028798495358976,144115191028645888,576460758209003520,2305843021024854016,9223372060477095936,36893488194663743488,147573952684165693440,590295810547684212736,2361183241812779728896,9444732966495204671488,37778931864468990197760 mov $1,2 pow $1,$0 add $1,6 bin $1,2 sub $1,15 mov $0,$1
src/MLib/Algebra/PropertyCode/Dependent.agda
bch29/agda-matrices
0
16758
open import MLib.Algebra.PropertyCode module MLib.Algebra.PropertyCode.Dependent {k c ℓ} {code : Code k} (struct : Struct code c ℓ) where open import MLib.Prelude open import MLib.Algebra.PropertyCode.Core open import Function.Equivalence using (Equivalence) open Struct struct private module FuncBased {c′ ℓ′} (depRawStruct : RawStruct K c′ ℓ′) (props : ∀ π → Maybe (∃ λ deps → ⦃ _ : Hasₚ deps ⦄ → ⟦ π ⟧P depRawStruct)) where Π′ : Properties code Π′ = properties λ π → case props π of λ { (just (deps , _)) → implies deps Π ; nothing → false } Π′-prop : ∀ {π} → π ∈ₚ Π′ → ∃ λ x → props π ≡ just x Π′-prop {π} π∈Π′ with props π | ≡.inspect props π Π′-prop {π} π∈Π′ | just x | _ = x , ≡.refl Π′-prop {π} (fromTruth truth) | nothing | ≡.[ eq ] rewrite eq = ⊥-elim truth reify′ : ∀ {π} → π ∈ₚ Π′ → ⟦ π ⟧P depRawStruct reify′ {π} π∈Π′ with Π′-prop π∈Π′ | hasProperty Π′ π | ≡.inspect (hasProperty Π′) π reify′ {_} (fromTruth truth) | (deps , f) , eq | false | ≡.[ eq₁ ] rewrite eq | eq₁ = ⊥-elim truth reify′ {_} (fromTruth truth) | (deps , f) , eq | true | ≡.[ eq₁ ] rewrite eq = f ⦃ fromTruth truth ⦄ dependentStruct : Struct code c′ ℓ′ dependentStruct = record { rawStruct = depRawStruct ; Π = Π′ ; reify = reify′ } module ListBased {c′ ℓ′} (depRawStruct : RawStruct K c′ ℓ′) (props : List (∃₂ λ π deps → ⦃ _ : Hasₚ deps ⦄ → ⟦ π ⟧P depRawStruct)) where Func = ∀ π → Maybe (∃ (λ deps → ⦃ _ : Hasₚ deps ⦄ → ⟦ π ⟧P depRawStruct)) singleFunc : (∃₂ λ π deps → ⦃ _ : Hasₚ deps ⦄ → ⟦ π ⟧P depRawStruct) → Func singleFunc (π , deps , f) π′ with π Property.≟ π′ singleFunc (π , deps , f) π′ | yes p rewrite Property.≈⇒≡ p = just (deps , f) singleFunc (π , deps , f) π′ | no _ = nothing combineFuncs : Func → Func → Func combineFuncs f g π = case f π of λ { (just r) → just r ; nothing → case g π of λ { (just r) → just r ; nothing → nothing } } propsF : ∀ π → Maybe (∃ (λ deps → ⦃ _ : Hasₚ deps ⦄ → ⟦ π ⟧P depRawStruct)) propsF = List.foldr combineFuncs (λ _ → nothing) (List.map singleFunc props) dependentStruct : Struct code c′ ℓ′ dependentStruct = FuncBased.dependentStruct depRawStruct propsF open ListBased using (dependentStruct) public
oeis/339/A339146.asm
neoneye/loda-programs
11
92072
<gh_stars>10-100 ; A339146: a(n) = a(floor(n / 5)) * (n mod 5 + 1); initial terms are 1. ; Submitted by <NAME>(s3) ; 1,1,1,1,1,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,2,4,6,8,10,3,6,9,12,15,4,8,12,16,20,5,10,15,20,25,1,2,3,4,5,2,4,6,8,10,3,6,9,12,15,4,8,12,16,20,5,10,15,20,25,1,2,3,4,5,2,4,6,8,10,3,6,9,12,15,4,8,12,16,20,5,10,15,20,25 mov $3,1 lpb $0 mov $2,$0 div $0,5 mod $2,5 mul $2,$3 add $3,$2 lpe sub $3,$2 mov $0,$3
Analysis/SFX engine.asm
maxim-zhao/micromachineseditor
5
174422
.section "Game sound effects" force ; API functions at start PagedFunction_2B5D2_GameVBlankUpdateSoundTrampoline: jp _GameVBlankUpdateSound PagedFunction_2B5D5_SilencePSG: SetPSGAttenuationImmediate 3, 0 SetPSGAttenuationImmediate 0, 0 SetPSGAttenuationImmediate 1, 0 SetPSGAttenuationImmediate 2, 0 ret .ifdef UNNECESSARY_CODE _Player1SFX_Unused: ld a, (_RAM_D97E_Player1SFX_Unused) ld (_RAM_D963_SFX_Player1.Trigger), a ret _Player2SFX_Unused: ld a, (_RAM_D97F_Player2SFX_Unused) ld (_RAM_D974_SFX_Player2), a ret _Engine1Lower_Unused: ; _RAM_D95B_EngineSound1.Tone -= 4 ld hl, (_RAM_D95B_EngineSound1.Tone) ld bc, 4 and a sbc hl, bc ld (_RAM_D95B_EngineSound1.Tone), hl ret _Engine2Lower_Unused: ; _RAM_D96C_EngineSound2.Tone -= 4 ld hl, (_RAM_D96C_EngineSound2.Tone) ld bc, 4 and a sbc hl, bc ld (_RAM_D96C_EngineSound2.Tone), hl ret _Engine1Higher_Unused: ; _RAM_D95B_EngineSound1.Tone += 1 ld hl, (_RAM_D95B_EngineSound1.Tone) inc hl ld (_RAM_D95B_EngineSound1.Tone), hl ret .endif _GameVBlankUpdateSound: ; Generate some cycling numbers ld a, (_RAM_D957_Sound_ChopperEngineIndex) ld c, a inc a and $07 ; range 0..7 ld (_RAM_D957_Sound_ChopperEngineIndex), a ld a, c and $03 ld (_RAM_D956_Sound_ToneEngineSoundsIndex), a ; Update SFX #1 ld ix, _RAM_D963_SFX_Player1.Trigger ld bc, _RAM_D94C_SoundChannels.1 call _GetSFXData call _UpdateSFXChannel1 ; And #2 ld ix, _RAM_D974_SFX_Player2 ld bc, _RAM_D94C_SoundChannels.2 call _GetSFXData call _UpdateSFXChannel2 .ifdef UNNECESSARY_CODE ; Select between helicopter and regular engine sounds ld a, (_RAM_D95A_Sound_IsChopperEngine) or a jr nz, _ChopperEngine .endif ; And engine sounds (only two) call _UpdateEngineSound1 call _UpdateEngineSound2 ; The third tone channel is used to make the engine sound a bit randomised jp _UpdateTone2WithRandomisedEngineTone ; and ret _UpdateSFXChannel1: ld a, (_RAM_D963_SFX_Player1.Control) or a ret z ld a, (_RAM_D94C_SoundChannels.1.Attenuation) and PSG_ATTENUATION_MASK or PSG_ATTENUATION_CONTROL_MASK | (0 << PSG_CHANNEL_SHIFT) out (PORT_PSG), a ld a, (_RAM_D94C_SoundChannels.1.Tone.Lo) or PSG_TONE_CONTROL_MASK | (0 << PSG_CHANNEL_SHIFT) out (PORT_PSG), a ld a, (_RAM_D94C_SoundChannels.1.Tone.Hi) out (PORT_PSG), a ld a, (_RAM_D963_SFX_Player1.Control) cp $02 ret nz xor a ld (_RAM_D963_SFX_Player1.Control), a ret _UpdateSFXChannel2: ld a, (_RAM_D974_SFX_Player2.Control) or a ret z ld a, (_RAM_D94C_SoundChannels.2.Attenuation) and PSG_ATTENUATION_MASK or PSG_ATTENUATION_CONTROL_MASK | (1 << PSG_CHANNEL_SHIFT) out (PORT_PSG), a ld a, (_RAM_D94C_SoundChannels.2.Tone.Lo) or PSG_TONE_CONTROL_MASK | (1 << PSG_CHANNEL_SHIFT) out (PORT_PSG), a ld a, (_RAM_D94C_SoundChannels.2.Tone.Hi) out (PORT_PSG), a ld a, (_RAM_D974_SFX_Player2.Control) cp $02 ret nz xor a ld (_RAM_D974_SFX_Player2.Control), a ret .ifdef UNNECESSARY_CODE _ChopperEngine: ; SFX noise overrides this ld a, (_RAM_D963_SFX_Player1.Noise) ld c, a ld a, (_RAM_D974_SFX_Player2.Noise) or c ret nz ld a, (_RAM_D957_Sound_ChopperEngineIndex) add a, a ld c, a ld b, $00 ld hl, _ChopperEngineSoundData add hl, bc ld a, (hl) ; Table contains no 0s or a jr z, + SetPSGNoiseImmediate 0 ; Noise mode (two-byte write) ld a, (hl) out (PORT_PSG), a +:inc hl ld a, (hl) ; Volume cpl ; -> attenuation and PSG_ATTENUATION_MASK or PSG_ATTENUATION_CONTROL_MASK | (PSG_CHANNEL_NOISE << PSG_CHANNEL_SHIFT) ; Noise channel volume out (PORT_PSG), a ld a, PSG_TONE_CONTROL_MASK | (PSG_CHANNEL_TONE2 << PSG_CHANNEL_SHIFT) | 0 ; Channel 2 tone -> 0 out (PORT_PSG), a xor a out (PORT_PSG), a ret .endif ; Repetitive code... .macro UpdateEngineSound args Control, EngineSound, Channel, Tone ld hl, EngineSound ; SFX tones override this ld a, (Control) or a ret nz ; Load values from 0..1 to de, +4 to a ld e, (hl) ; Tone inc hl ld d, (hl) ; Tone inc hl ; Skipped unused byte inc hl ld a, (hl) ; Volume cpl and PSG_ATTENUATION_MASK ; To attenuation or PSG_ATTENUATION_CONTROL_MASK | (Channel << PSG_CHANNEL_SHIFT) out (PORT_PSG), a inc hl ; Next comes from +5..+8, rotating each frame ld a, (_RAM_D956_Sound_ToneEngineSoundsIndex) ld c, a ld b, $00 add hl, bc ld l, (hl) ld h, $00 add hl, de ; Add to tone ld a, l ; split to PSG 6+4 bits .repeat 4 rl l rl h .endr and PSG_TONE_LO_MASK ld (Tone+BigEndianWord.Lo), a ; We don't actually emit the high bits ld a, PSG_TONE_CONTROL_MASK | (Channel << PSG_CHANNEL_SHIFT) | 0 out (PORT_PSG), a ld a, h and PSG_TONE_HI_MASK ld (Tone+BigEndianWord.Hi), a out (PORT_PSG), a ret .endm _UpdateEngineSound1: UpdateEngineSound _RAM_D963_SFX_Player1.Control, _RAM_D95B_EngineSound1, PSG_CHANNEL_TONE0, _RAM_D952_EngineSound1ActualTone _UpdateEngineSound2: UpdateEngineSound _RAM_D974_SFX_Player2.Control, _RAM_D96C_EngineSound2, PSG_CHANNEL_TONE1, _RAM_D954_EngineSound2ActualTone _UpdateTone2WithRandomisedEngineTone: ld a, (_RAM_D956_Sound_ToneEngineSoundsIndex) and $01 jp z, + .macro RandomiseEngineSoundTone args Control, ActualTone ld a, (Control) or a ret nz ; If an SFX is not playing ; Randomly add 0..3 to the low bits of the tone ; Does not handle overflow! ld a, r and %00000111 ld c, a ld a, (ActualTone + BigEndianWord.Lo) add a, c and PSG_TONE_LO_MASK or PSG_TONE_CONTROL_MASK | (PSG_CHANNEL_TONE2 << PSG_CHANNEL_SHIFT) out (PORT_PSG), a ld a, (ActualTone + BigEndianWord.Hi) and PSG_TONE_HI_MASK out (PORT_PSG), a ret .endm ; Every odd frame, do it for player 1 RandomiseEngineSoundTone _RAM_D963_SFX_Player1.Control _RAM_D952_EngineSound1ActualTone +:; Every even frame, do it for player 2 RandomiseEngineSoundTone _RAM_D974_SFX_Player2.Control _RAM_D954_EngineSound2ActualTone ; Data from 2B791 to 2B7A0 (16 bytes) _ChopperEngineSoundData: ; first is a noise channel mode control byte, or zero to not change it ; second is a volume (not attenuation, so $f = loudest) ; Chopper engine sound! .repeat 2 .db PSG_NOISE_PERIODIC_FAST $0F .db PSG_NOISE_TONE2 $0B .db PSG_NOISE_PERIODIC_SLOWEST $07 .db PSG_NOISE_PERIODIC_SLOWEST $03 .endr _GetSFXData: ; ix points at an instance of SFXData ; bc points at an instance of SoundChannel .define SFX_DATA_END $ff ld a, (ix+SFXData.Trigger) or a jr z, _CheckSFXControl _LoadSFXPointers: ; If non-zero, look it up dec a ; Make 0-indexed add a, a ; Multiply by 6 ld e, a add a, a add a, e ld e, a ; Look up ld d, 0 ld hl, _SFXData add hl, de ; Point de at SFXData.VolumePointer push ix pop de inc de inc de ; And load 6 bytes (3 pointers) there push bc .repeat 5 ldi .endr pop bc ; Skip the increments on the last byte (not necessary?) ld a, (hl) ld (de), a ; Clear the trigger xor a ld (ix+SFXData.Trigger), a ; And set the control byte to 1 inc a ld (ix+SFXData.Control), a _CheckSFXControl: ; Check the control byte ld a, (ix+SFXData.Control) or a ret z _UpdateVolume: ; Get next volume byte ld l, (ix+SFXData.VolumePointer.Lo) ld h, (ix+SFXData.VolumePointer.Hi) ld a, (hl) inc hl ld (ix+SFXData.VolumePointer.Lo), l ld (ix+SFXData.VolumePointer.Hi), h ; Convert to attenuation cpl and PSG_ATTENUATION_MASK ld (bc), a ld (_RAM_D958_Sound_LastAttenuation), a _UpdateTone: ; Next note ld l, (ix+SFXData.NotePointer.Lo) ld h, (ix+SFXData.NotePointer.Hi) ld a, (hl) inc hl cp SFX_DATA_END jr nz, + _EndOfSFX: .define VOLUME_MUTE $0f ld a, VOLUME_MUTE ; Mute volume ld (bc), a inc bc ; Zero tone ld (bc), a inc bc ld (bc), a ld a, $02 ld (ix+SFXData.Control), a ; Do not move pointer on jp _UpdateNoise +:; Not end or a jr nz, + ; Zero note -> mute volume ld a, VOLUME_MUTE ld (bc), a jr ++ +:; Else get PSG values for note inc bc push hl ; Convert note index to PSG values add a, a ld e, a ld d, 0 ld hl, _PSGNotes add hl, de ; Retrieve it ld e, (hl) ld a, e .ifdef UNNECESSARY_CODE and $3F ; Unnecessary because we mask to $0f below - maybe meant to mask the high bits .endif inc hl ld d, (hl) ; Shift left by 4 so we have the high 6/10 bits in d .repeat 4 rl e rl d .endr ; And the low 4 bits are here and $0f ; Put them into the SoundChannel structure ld (bc), a inc bc ld a, d ld (bc), a pop hl ++: ; Save moved-on pointer ld (ix+SFXData.NotePointer.Lo), l ld (ix+SFXData.NotePointer.Hi), h _UpdateNoise: ; Get noise data ld l, (ix+SFXData.NoisePointer.Lo) ld h, (ix+SFXData.NoisePointer.Hi) ld a, (hl) cp SFX_DATA_END jr nz, + _EndOfNoise: ; Stop noise only if both noises are now zero inc a ; to zero ld (ix+SFXData.Noise), a ld a, (_RAM_D963_SFX_Player1.Noise) ld c, a ld a, (_RAM_D974_SFX_Player2.Noise) or c ret nz ; Mute noise SetPSGAttenuationImmediate PSG_CHANNEL_NOISE 0 .ifdef UNNECESSARY_CODE ; And set the mode SetPSGNoiseImmediate PSG_NOISE_PERIODIC_SLOWEST ; And follow it up with a second write - which sets the same thing redundantly xor a out (PORT_PSG), a .endif ret +:; Some noise data inc hl ; move pointer on or a jr z, + ; zero -> do nothing (no change) ; Non-zero ex af, af' ; Apply the tone volume to the noise channel ld a, (_RAM_D958_Sound_LastAttenuation) or PSG_ATTENUATION_CONTROL_MASK | (PSG_CHANNEL_NOISE << PSG_CHANNEL_SHIFT) ; Apply to channel 3 out (PORT_PSG), a ; And select tone2 periodic noise SetPSGNoiseImmediate PSG_NOISE_PERIODIC_TONE2 ex af, af' ; Followed by a second noise write (!) with the data value out (PORT_PSG), a ; Then set the noise flag for this channel ld a, $01 ld (ix+SFXData.Noise), a +:; Save the moved-on pointer ld (ix+SFXData.NoisePointer.Lo), l ld (ix+SFXData.NoisePointer.Hi), h ret _PSGNotes: .dw 0 PSGNotes 0, 74 ; Data from 2B911 to 2BFFF (1775 bytes) _SFXData: ; Table of triplets of pointers into data per SFX ; Pointers point to various lengths of data following the table ; First pointer is the volume envelope, one byte per frame, $0 = silent, $f = loudest ; Second pointer is the note indexes, one byte per frame, $0 = no change, SFX_DATA_END = end ; Third pointer is the noise data, one byte per frame, $0 = no change, SFX_DATA_END = end ; Sometimes the noise points at _RAM_D97D_Sound_SFXNoiseData, which just holds $ff (and could be in ROM) .dw _SFX_01_Volumes _SFX_01_Notes _RAM_D97D_Sound_SFXNoiseData .dw _SFX_02_HitGround_Volumes _SFX_02_HitGround_Notes _SFX_02_HitGround_Noise .dw _SFX_03_Crash_Volumes _SFX_03_Crash_Notes _SFX_03_Crash_Noise .dw _SFX_04_TankMiss_Volumes _SFX_04_TankMiss_Notes _SFX_04_TankMiss_Noise .dw _SFX_05_Volumes _SFX_05_Notes _SFX_05_Noise .dw _SFX_06_Volumes _SFX_06_Notes _SFX_06_Noise .dw _SFX_07_EnterSticky_Volumes _SFX_07_EnterSticky_Notes _SFX_07_EnterSticky_Noise .dw _SFX_08_Volumes _SFX_08_Notes _SFX_08_Noise .dw _SFX_09_EnterPoolTableHole_Volumes _SFX_09_EnterPoolTableHole_Notes _RAM_D97D_Sound_SFXNoiseData .dw _SFX_0A_TankShoot_Volumes _SFX_0A_TankShoot_Notes _SFX_0A_TankShoot_Noise .dw _SFX_0B_Volumes _SFX_0B_Notes _SFX_0B_Noise .dw _SFX_0C_LeavePoolTableHole_Volumes _SFX_0C_LeavePoolTableHole_Notes _RAM_D97D_Sound_SFXNoiseData .dw _SFX_0D_Volumes _SFX_0D_Notes _SFX_0D_Noise .dw _SFX_0E_FallToFloor_Volumes _SFX_0E_FallToFloor_Notes _RAM_D97D_Sound_SFXNoiseData .dw _SFX_0F_Skid1_Volumes _SFX_0F_Skid1_Notes _RAM_D97D_Sound_SFXNoiseData .dw _SFX_10_Skid2_Volumes _SFX_10_Skid2_Notes _SFX_10_Skid2_Noise .dw _SFX_11_Volumes _SFX_11_Notes _SFX_11_Noise .dw _SFX_12_WinOrCheat_Volumes _SFX_12_WinOrCheat_Notes _RAM_D97D_Sound_SFXNoiseData .dw _SFX_13_HeadToHeadWinPoint_Volumes _SFX_13_HeadToHeadWinPoint_Notes _RAM_D97D_Sound_SFXNoiseData .dw _SFX_14_Playoff_Volumes _SFX_14_Playoff_Notes _RAM_D97D_Sound_SFXNoiseData .dw _SFX_15_HitFloor_Volumes _SFX_15_HitFloor_Notes _SFX_15_HitFloor_Noise .dw _SFX_16_Respawn_Volumes _SFX_16_Respawn_Notes _SFX_16_Respawn_Noise ; Volumes tend to terminate with 0 ; Notes and noise terminate with SFX_DATA_END and no-op with 0 ; Streams tend to be the same length but don't have to be; volumes should be at least as long as the longest one - 1 _SFX_01_Volumes: .db $0F $0E $0D $0C $0B $0A $08 $00 _SFX_01_Notes: .db $18 $18 $18 $18 $18 $18 $18 SFX_DATA_END _SFX_02_HitGround_Volumes: .db $0F $0C $09 $06 $03 $00 _SFX_02_HitGround_Notes: .db $01 $05 $01 $05 0 SFX_DATA_END _SFX_02_HitGround_Noise: .db PSG_NOISE_TONE2 PSG_NOISE_FAST 0 0 SFX_DATA_END _SFX_03_Crash_Volumes: .db $0F $0E $0D $0C $0B $0A $09 $00 _SFX_03_Crash_Notes: .db $06 $05 $04 $03 $02 $01 0 SFX_DATA_END _SFX_03_Crash_Noise: .db PSG_NOISE_FAST 0 PSG_NOISE_SLOW 0 PSG_NOISE_TONE2 0 0 SFX_DATA_END _SFX_04_TankMiss_Volumes: .db $0F $0E $0D $0C $0B $0A $09 $08 $07 $00 _SFX_04_TankMiss_Notes: .db $05 0 0 $04 0 $03 0 0 SFX_DATA_END _SFX_04_TankMiss_Noise: .db PSG_NOISE_MEDIUM 0 0 PSG_NOISE_FAST 0 PSG_NOISE_TONE2 0 0 SFX_DATA_END _SFX_05_Volumes: .db $0F $0F $0F $0E $0E $0D $0D $0D $0C $0C $0B $0B $0B $0A $0A $09 $09 $09 $08 $08 $08 $00 _SFX_05_Notes: .db $01 0 0 0 0 $01 0 0 0 0 $01 0 0 0 0 $01 0 0 0 0 SFX_DATA_END _SFX_05_Noise: .db PSG_NOISE_MEDIUM 0 0 0 PSG_NOISE_FAST 0 0 0 0 PSG_NOISE_SLOW 0 0 0 0 PSG_NOISE_TONE2 0 0 0 0 SFX_DATA_END _SFX_06_Volumes: .db $0F $0F $0E $0E $0C $0C $0A $0A $08 $00 _SFX_06_Notes: .db $1E $0A $0A $0C $0E $10 $12 $14 0 SFX_DATA_END _SFX_06_Noise: .db PSG_NOISE_FAST 0 PSG_NOISE_MEDIUM 0 PSG_NOISE_SLOW 0 PSG_NOISE_TONE2 0 SFX_DATA_END _SFX_07_EnterSticky_Volumes: .db $0F $0F $0E $0E $0C $0C $0A $0A $08 $00 _SFX_07_EnterSticky_Notes: .db $02 $04 $08 $10 $20 0 0 0 0 SFX_DATA_END _SFX_07_EnterSticky_Noise: .db PSG_NOISE_MEDIUM 0 0 0 PSG_NOISE_TONE2 0 0 0 SFX_DATA_END _SFX_08_Volumes: .db $0F $0F $0E $0E $0C $0C $0A $0A $08 $08 $07 $07 $06 $06 $06 $06 $06 $06 $06 $06 $06 $06 $00 _SFX_08_Notes: .db $18 0 $16 0 $14 0 $12 0 $10 0 $0E 0 $0C 0 0 0 0 0 0 0 0 SFX_DATA_END _SFX_08_Noise: .db PSG_NOISE_FAST 0 0 0 PSG_NOISE_MEDIUM 0 0 0 PSG_NOISE_SLOW 0 0 0 PSG_NOISE_TONE2 0 0 0 0 0 0 0 0 SFX_DATA_END ; Volumes are quite a bit longer _SFX_09_EnterPoolTableHole_Volumes: .db $0F $0F $0F $0F $0E $0E $0E $0E $0D $0D $0D $0D $0C $0C $0C $0C $0B $0B $0B $0B $0A $0A $0A $0A $08 $08 $08 $08 $06 $06 $06 $06 $04 $04 $04 $04 $03 $03 $03 $03 $02 $02 $02 $02 $00 _SFX_09_EnterPoolTableHole_Notes: .db $32 $31 $30 $2F $2E $2D $2C $2B $2A $29 $28 $27 $26 $25 $24 $23 $22 $21 $20 $1F $1E $1D $1C $1B $1A $19 $18 $17 $16 $15 $0A $09 $08 $07 SFX_DATA_END _SFX_0A_TankShoot_Volumes: .db $0F $0E $0D $0C $0A $09 $08 $07 $00 _SFX_0A_TankShoot_Notes: .db $05 $04 $03 $02 $01 0 0 SFX_DATA_END _SFX_0A_TankShoot_Noise: .db PSG_NOISE_MEDIUM 0 PSG_NOISE_SLOW 0 PSG_NOISE_FAST 0 0 SFX_DATA_END _SFX_0B_Volumes: .db $0F $0D $0B $09 $07 $05 $03 $01 $00 _SFX_0B_Notes: .db $14 $12 $10 $0E $0C $0A $08 $06 SFX_DATA_END _SFX_0B_Noise: .db PSG_NOISE_FAST 0 PSG_NOISE_MEDIUM 0 0 PSG_NOISE_TONE2 0 0 SFX_DATA_END ; Volumes are 1 byte shorter, but actually that doesn't matter ; since the note SFX_DATA_SFX_DATA_END mutes it anyway _SFX_0C_LeavePoolTableHole_Volumes: .db $00 $01 $02 $03 $04 $05 $06 $07 $08 $09 $0A $0B $0C $0D $0E $0F _SFX_0C_LeavePoolTableHole_Notes: .db $28 $2A $2C $2E $30 $32 $0A $0F $14 $19 $1E $23 $28 $2D $32 $37 SFX_DATA_END _SFX_0D_Volumes: .db $0F $0E $0C $0A $08 $06 $04 $02 $00 _SFX_0D_Notes: .db $0A $09 $08 $07 $06 $05 0 0 SFX_DATA_END _SFX_0D_Noise: .db PSG_NOISE_FAST 0 PSG_NOISE_MEDIUM 0 PSG_NOISE_FAST 0 PSG_NOISE_SLOW 0 SFX_DATA_END _SFX_0E_FallToFloor_Volumes: .db $0F $0F $0F $0F $0E $0E $0E $0E $0D $0D $0D $0D $0C $0C $0C $0C $0B $0B $0B $0B $0A $0A $0A $0A $08 $08 $08 $08 $06 $06 $06 $06 $04 $04 $04 $04 $03 $03 $03 $03 $02 $02 $02 $02 $00 _SFX_0E_FallToFloor_Notes: .db $22 $22 $22 $21 $21 $21 $20 $20 $20 $1F $1F $1F $1E $1E $1E $1D $1D $1D $1C $1C $1C $1B $1B $1B $1A $1A $1A $19 $19 $19 $18 $18 $18 $17 $17 $17 $16 $16 $16 $15 $15 $15 $14 $14 $14 SFX_DATA_END _SFX_0F_Skid1_Volumes: .db $0F $0F $0F $0F $0F $0F $0F $00 _SFX_0F_Skid1_Notes: .db $28 $27 $28 $29 $28 $27 $28 SFX_DATA_END _SFX_10_Skid2_Volumes: .db $0F $0F $0F $0F $0F $0F $00 _SFX_10_Skid2_Notes: .db $1E $1D $1E $1F $1E $1D SFX_DATA_END _SFX_10_Skid2_Noise: .db PSG_NOISE_TONE2 0 0 0 0 0 SFX_DATA_END _SFX_11_Volumes: .db $0F $0F $0E $0D $0C $0A $08 $06 $00 _SFX_11_Notes: .db 0 0 0 0 0 0 0 0 SFX_DATA_END _SFX_11_Noise: .db PSG_NOISE_TONE2 0 PSG_NOISE_SLOW 0 PSG_NOISE_TONE2 0 0 0 SFX_DATA_END ; Not enough volumes? _SFX_12_WinOrCheat_Volumes: .db $01 $01 $02 $02 $03 $03 $04 $04 $05 $05 $06 $06 $07 $07 $08 $08 $09 $09 $0A $0A $0B $0B $0C $0C $0D $0D $0E $0E $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0F $0E $0E $0D $0D $0C $0C $0B $0B $0A $0A $09 $09 $08 $08 $07 $07 $06 $06 $05 $05 $04 $04 $03 $03 $02 $02 $01 $01 $00 _SFX_12_WinOrCheat_Notes: .db $0A $0B $0C $0D $0E $0F $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $1A $1B $1C $1D $1E $1F $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $2A $2B $2C $2D $2E $2F $30 $31 $32 $28 $28 $28 $28 $14 $14 $14 $14 $28 $28 $28 $28 $14 $14 $14 $14 $28 $28 $28 $28 $14 $14 $14 $14 $28 $28 $28 $28 $14 $14 $14 $14 $28 $28 $28 $28 $14 $14 $14 $14 $28 $28 $28 $28 $14 $14 $14 $14 $28 $28 $28 $28 $14 $14 $14 $14 $28 $28 $28 $28 $14 $14 $14 $14 $32 $31 $30 $2F $2E $2D $2C $2B $2A $29 $28 $27 $26 $25 $24 $23 $22 $21 $20 $1F $1E $1D $1C $1B $1A $19 $18 $17 $16 $15 $14 $13 $12 $11 $10 $0F $0E $0D $0C $0B $0A SFX_DATA_END _SFX_13_HeadToHeadWinPoint_Volumes: .db $0F $0F $0F $0F $0F $0F $0F $0F $0E $0E $0E $0E $0E $0E $0E $0E $0D $0D $0D $0D $0D $0D $0D $0D $0C $0C $0C $0C $0C $0C $0C $0C $0B $0B $0B $0B $0B $0B $0B $0B $0A $0A $0A $0A $0A $0A $0A $0A $08 $08 $08 $08 $08 $08 $08 $08 $06 $06 $06 $06 $06 $06 $06 $06 $04 $04 $04 $04 $04 $04 $04 $04 $02 $02 $02 $02 $02 $02 $02 $02 $00 _SFX_13_HeadToHeadWinPoint_Notes: .db $1E $20 $22 $24 $28 $2A $2C $2E $1E $20 $22 $24 $28 $2A $2C $2E $1E $20 $22 $24 $28 $2A $2C $2E $1E $20 $22 $24 $28 $2A $2C $2E $1E $20 $22 $24 $28 $2A $2C $2E $1E $20 $22 $24 $28 $2A $2C $2E $1E $20 $22 $24 $28 $2A $2C $2E $1E $20 $22 $24 $28 $2A $2C $2E $1E $20 $22 $24 $28 $2A $2C $2E $1E $20 $22 $24 $28 $2A $2C $2E SFX_DATA_END _SFX_14_Playoff_Volumes: .db $0F $0E $0D $0C $0B $0A $08 $06 $0F $0E $0D $0C $0B $0A $08 $06 $0F $0E $0D $0C $0B $0A $08 $06 $0F $0E $0D $0C $0B $0A $08 $06 $0F $0E $0D $0C $0B $0A $08 $06 $0F $0E $0D $0C $0B $0A $08 $06 $0F $0E $0D $0C $0B $0A $08 $06 $0F $0E $0D $0C $0B $0A $08 $06 $00 _SFX_14_Playoff_Notes: .db $28 $28 $28 $28 $20 $20 $20 $20 $28 $28 $28 $28 $20 $20 $20 $20 $28 $28 $28 $28 $20 $20 $20 $20 $28 $28 $28 $28 $20 $20 $20 $20 $28 $28 $28 $28 $20 $20 $20 $20 $28 $28 $28 $28 $20 $20 $20 $20 $28 $28 $28 $28 $20 $20 $20 $20 $28 $28 $28 $28 $20 $20 $20 $20 SFX_DATA_END ; Noise only... _SFX_15_HitFloor_Volumes: .db $00 $04 $08 $0C $0F $0F $0F $00 _SFX_15_HitFloor_Notes: .db 0 0 0 0 0 0 0 SFX_DATA_END _SFX_15_HitFloor_Noise: .db PSG_NOISE_FAST 0 PSG_NOISE_MEDIUM 0 PSG_NOISE_SLOW PSG_NOISE_TONE2 0 SFX_DATA_END ; Noise only... _SFX_16_Respawn_Volumes: .db $07 $08 $09 $0A $0B $0C $0D $0E $0F $0F $0F $0F $0F $00 _SFX_16_Respawn_Notes: .db 0 0 0 0 0 0 0 0 0 0 0 0 0 SFX_DATA_END _SFX_16_Respawn_Noise: .db PSG_NOISE_TONE2 0 0 PSG_NOISE_SLOW 0 0 PSG_NOISE_MEDIUM 0 0 PSG_NOISE_FAST 0 0 0 SFX_DATA_END .ends
cmd/mem/wintest.asm
minblock/msdos
0
11973
<filename>cmd/mem/wintest.asm<gh_stars>0 ;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1988 - 1993 ; * All Rights Reserved. ; */ ; ; Checks to see if Windows is running. Returns 1 if Windows 3.0 or ; above is running, 0 otherwise. .MODEL SMALL TRUE EQU 1 NO_WINDOWS EQU 0 WIN_286 EQU 1 WIN_386 EQU 2 WIN_REAL_MODE EQU 3 WIN_STANDARD_MODE EQU 4 WIN_ENHANCED_MODE EQU 5 WIN_UNKNOWN_MODE EQU 6 wWindowsType EQU Word Ptr [bp-02] wWindowsMajor EQU Word Ptr [bp-04] wWindowsMinor EQU Word Ptr [bp-06] fDosShell EQU Word Ptr [bp-08] .CODE public _IsWindowsRunning _IsWindowsRunning proc ; Make room for local variables push bp mov bp,sp sub sp,8 ; Set fDosShell to FALSE xor ax,ax ; Zero out fDosShell mov fDosShell,ax ;************************************************************************* ;* The following code was taken from MSD 2.01's OSINFO.C, WinVerDetect() * ;************************************************************************* ; Check for Windows 3.1 mov ax,160Ah ; WIN31CHECK int 2Fh ; check if running under win 3.1 or ax,ax jnz Win30EnhModeCheck ; Windows 3.1 detected mov wWindowsMajor,3 ; Set the version number mov wWindowsMinor,10 ; CX = 3 - Enhanced, CX = 2 - Standard, CX = 1 - Real. cmp cx,1 jne Win31StdChk mov wWindowsType, WIN_REAL_MODE jmp WinDetectComplete Win31StdChk: cmp cx,2 jne Win31EnhChk mov wWindowsType, WIN_STANDARD_MODE jmp WinDetectComplete Win31EnhChk: cmp cx,3 jne Win31UnknownMode mov wWindowsType, WIN_ENHANCED_MODE jmp WinDetectComplete Win31UnknownMode: mov wWindowsType, WIN_UNKNOWN_MODE jmp WinDetectComplete ; Check for 3.0 Enhanced mode Win30EnhModeCheck: mov ax,1600h ; WIN386CHECK int 2Fh test al,7Fh jz Win286Check ; Windows 3.0 Enhanced Mode detected mov wWindowsMajor,3 ; Set the version number mov wWindowsMinor,0 ; Set the mode mov wWindowsType, WIN_ENHANCED_MODE jmp WinDetectComplete ; Check for Windows/286 Win286Check: mov ax,1700h ; WIN286CHECK int 2Fh cmp al,2h ; If /286 installed, ver = AL.AH jnz WinOldApCheck ; /286 is always 2.x ; Windows/286 detected xor bh,bh mov bl,al mov wWindowsMajor,bx mov bl,ah mov wWindowsMinor,bx mov wWindowsType, WIN_286 jmp WinDetectComplete ; Check for Windows 3.0 WINOLDAP WinOldApCheck: mov ax,4680h ; IS_WINOLDAP_ACTIVE int 2Fh or ax,ax ; running under 3.0 derivative ? jz DosShellCheck ; Windows is not running on this computer jmp NotRunningUnderWin ; Check for DOS 5.0 DOSSHELL Task Switcher DosShellCheck: mov ax,4b02h ; detect switcher push bx push es push di xor bx,bx mov di,bx mov es,bx int 2Fh pop di pop es pop bx or ax,ax jnz RunningUnderWinStdReal30 ; Running under DOS 5.0 task switcher mov wWindowsMajor,0 ; Windows is not running mov wWindowsMinor,0 mov wWindowsType, NO_WINDOWS mov fDosShell, TRUE ; Set the flag for the DOSSHELL jmp WinDetectComplete RunningUnderWinStdReal30: mov ax,1605h ; PMODE_START int 2Fh cmp cx,-1 jnz Running30RealOr386 ; Windows 3.0 Standard Mode detected mov ax,1606h ; PMODE_STOP int 2Fh ; in case someone is accounting. mov wWindowsMajor,3 ; Set the version number mov wWindowsMinor,0 ; Set the Windows mode mov wWindowsType, WIN_STANDARD_MODE jmp WinDetectComplete Running30RealOr386: mov ax,1606h ; PMODE_STOP int 2Fh ; in case someone is accounting. cmp al,1 ; WIN386CHECK again jnz RunningUnderRealMode cmp al,0FFh jz RunningUnderWin386 RunningUnderRealMode: mov wWindowsMajor,3 ; Set the version number mov wWindowsMinor,0 ; Set the Windows mode mov wWindowsType, WIN_REAL_MODE jmp WinDetectComplete RunningUnderWin386: mov wWindowsMajor,2 mov wWindowsMinor,0FFh mov wWindowsType, WIN_386 jmp WinDetectComplete NotRunningUnderWin: mov wWindowsMajor,0 ; Windows is not running mov wWindowsMinor,0 mov wWindowsType, NO_WINDOWS WinDetectComplete: ;************************************************************************ ;* The previous code was taken from MSD 2.01's OSINFO.C, WinVerDetect() * ;************************************************************************ ; Return 1 if wWindowsType != NO_WINDOWS mov ax,wWindowsType ; AX == Windows type or ax,ax ; Is it zero jz ReturnToCaller ; True: Return mov ax,1 ; If Windows is active, return 1 ReturnToCaller: mov sp,bp pop bp ret _IsWindowsRunning endp end
NightLamp/main.asm
zeniton/NightLamp
0
85543
;************************************ ; written by: <NAME> ; for AVR: ATTiny85 ; clock frequency: 1 MHz ; Function: Night light controller with motion detection ; Ambient light level measured with LDR ; Switch lamp on for 3hrs at sunset ; Switch lamp on for 10mins when dark & motion detected .nolist .include "tn85def.inc" .list .include "defs.inc" .include "isr.inc" .include "subs.inc" SETUP: ;Setup Timer0 ; With the 1MHz clock prescaled by 1024, the effective rate is 976Hz ; 976 = 244 * 4 ; Setting the Output Compare Register to 244, the TIMER0_COMPA interrupt will fire every 250ms ; Count 4 interrupts to measure 1s ldi tmp,(1<<WGM01) out TCCR0A,tmp ;CTC mode ldi tmp,244 out OCR0A,tmp ;TIMER0 compare value ldi tmp,(1<<OCIE0A) out TIMSK,tmp ;Enable output compare interrupt ;Setup PORTB digital I/O ldi tmp,(1<<DDB0) out DDRB,tmp ;Outputs: lamp ldi tmp,(1<<DDB2) out PORTB,tmp ;Enable input pull-up on PB2 (motion detector) ;Setup INT0 external interrupt (Motion Detector) clr tmp out MCUCR,tmp ;Trigger INT0 interrupt on low level cbi PORTB,LAMP ;Lamp off clr system ;Clear flags rcall MotDetOff ;Disable Motion Detector sei ;Enable global interrupts LOOP: sbrc system,MOTION ;Did something move? rcall Movement rcall IsItDark sbrs system,DARK rjmp NOT_DARK IS_DARK: sbrs system,NIGHT ;Is it Night? rcall Sunset rjmp LOOP NOT_DARK: sbrc system,NIGHT ;Is it Day? rjmp Sunrise rjmp LOOP
lib/parser/SqlMapLexer.g4
fronteer-kr/sqlmap
0
513
<reponame>fronteer-kr/sqlmap<gh_stars>0 lexer grammar SqlMapLexer; @lexer::members { SqlMapLexer.DEFAULT_MODE = 0; SqlMapLexer.prototype.statementStack = []; SqlMapLexer.prototype.currentStatement = function() { return this.statementStack.length == 0 ? null : this.statementStack[this.statementStack.length - 1]; } SqlMapLexer.prototype.pushStatement = function(statement) { this.statementStack.push(statement); } SqlMapLexer.prototype.popStatement = function() { return this.statementStack.pop(); } SqlMapLexer.prototype.pushStack = function(statement) { this.pushStatement(statement); this.pushMode(SqlMapLexer.DEFAULT_MODE); } SqlMapLexer.prototype.popStack = function() { this.popMode(); this.popStatement(); } SqlMapLexer.prototype.popStack2 = function() { this.popStatement(); this.popMode(); if(this._modeStack.length > 0) { this.popMode(); } } SqlMapLexer.prototype.clearStack = function() { while(this.statementStack.length > 0) { this.popStatement(); } while(this._modeStack.length > 0) { this.popMode(); } } SqlMapLexer.prototype.printStack = function() { /* console.log(this.currentStatement() + '\t' + this._mode + '\t' + this.statementStack.length + '\t' + this._modeStack.length); */ } } HashSql: ('#sql' | '#select' | '#insert' | '#update' | '#delete') { this.clearStack(); this.pushStack("sql"); this.printStack(); }; HashInclude: '#include' { this.pushStack("include"); this.printStack(); }; COLON: ':'{ if(this.currentStatement() == "sql"){ this.pushMode(SqlMapLexer.TEXT_MODE); } this.printStack(); }; OpenBrace: '{' { if(this.currentStatement() == "sql" || this.currentStatement() == "if" || this.currentStatement() == "for" || this.currentStatement() == "foreach"){ this.pushMode(SqlMapLexer.TEXT_MODE); } this.printStack(); }; OpenParen: '('; CloseParen: ')' { if(this.currentStatement() == "include"){ this.popStack(); } this.printStack(); }; IN: 'in'; BOOL: 'true' | 'false'; STR: '"' (('\\' (["\\/bfnrt] | UNICODE)) | ~ ["\\])* '"' | '\'' (('\\' (['\\/bfnrt] | UNICODE)) | ~ ['\\])* '\''; fragment UNICODE: 'u' HEX HEX HEX HEX; fragment HEX: [0-9a-fA-F]; NUM: '-'? INT '.' [0-9] + EXP? | '-'? INT EXP | '-'? INT; fragment INT: '0' | [1-9] [0-9]*; fragment EXP: [Ee] [+\-]? INT; VAR: 'var'; INC: '++'; DEC: '--'; MULDIV: ('*' | '/'); ADDSUB: ('+' | '-'); EQUAL: '='; CMP: ('==' | '!=' | '===' | '!==' | '>' | '>=' | '<' | '<='); AND: ('&&' | 'and'); OR: ('||' | 'or'); NOT: '!'; SEMICOLON: ';'; BlockComment: '/*' .*? '*/'; LineComment: '-- ' ~[\r\n]*; SqlId: SYNTAX('.'SYNTAX)*; ID: (('@''@'?)SYNTAX(IDX*)('.'SYNTAX(IDX*))*'@'? | ('$''$'?)SYNTAX(IDX*)('.'SYNTAX(IDX*))*'$'?); IDX: ('['(INT+|SYNTAX)']'); SYNTAX: ([a-zA-Z_] [0-9a-zA-Z_]*); WS: [ \t\r\n] + -> skip; mode TEXT_MODE; HashSql0: ('#sql' | '#select' | '#insert' | '#update' | '#delete') { this.clearStack(); this.pushStack("sql"); this.printStack(); }; HashIf: '#if' { this.pushStack("if"); this.printStack(); }; HashFor: '#for' { this.pushStack("for"); this.printStack(); }; HashForeach: '#foreach' { this.pushStack("foreach"); this.printStack(); }; HashInclude0: '#include' { this.pushStack("include"); this.printStack(); }; CloseBrace: '}' { this.popStack2(); this.printStack(); }; Param: ID; NL: ('\r'?'\n')+; TEXT: (~[#}@$\r\n] | '##')+;
STM32F4/ToyOBDH/src/ttc.adb
AntonioRamosNieto/TFG-STM32F429
0
18332
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, Universidad Politécnica de Madrid -- -- -- -- This 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. This software is distributed in the hope that it will be useful, -- -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- -- -- TABILITY 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 this software; see file -- -- COPYING3. If not, go to http://www.gnu.org/licenses for a complete copy -- -- of the license. -- -- -- ------------------------------------------------------------------------------ -- The implementation of the TM package uses a serial interface -- to send telemetry messages to the ground station. with STM32.Device; use STM32.Device; with Serial_Ports; use Serial_Ports; -- with HK_Data; use HK_Data; package body TTC is Peripheral : aliased Peripheral_Descriptor := (Transceiver => USART_1'Access, Transceiver_AF => GPIO_AF_USART1_7, Tx_Pin => PB6, Rx_Pin => PB7); Port : aliased Serial_Port (Peripheral'Access); ------------------------- -- Internal procedures -- ------------------------- procedure Initialize; ---------- -- Send -- ---------- procedure Send (TM : TM_Message) is begin TM_Message'Output (Port'Access, TM); end Send; ---------------- -- Initialize -- ---------------- procedure Initialize is begin Initialize (Port); Configure (Port, Baud_Rate => 115_200); end Initialize; begin Initialize; end TTC;
MSDOS/Virus.MSDOS.Unknown.richards.asm
fengjixuchui/Family
3
175872
; RICHARDS.ASM -- <NAME> ; Created with Nowhere Man's Virus Creation Laboratory v1.00 ; Written by <NAME> virus_type equ 3 ; Trojan Horse is_encrypted equ 1 ; We're encrypted tsr_virus equ 0 ; We're not TSR code segment byte public assume cs:code,ds:code,es:code,ss:code org 0100h start label near main proc near call encrypt_decrypt ; Decrypt the virus start_of_code label near stop_tracing: mov cx,09EBh mov ax,0FE05h ; Acutal move, plus a HaLT jmp $-2 add ah,03Bh ; AH now equals 025h jmp $-10 ; Execute the HaLT mov bx,offset null_vector ; BX points to new routine push cs ; Transfer CS into ES pop es ; using a PUSH/POP int 021h mov al,1 ; Disable interrupt 1, too int 021h jmp short skip_null ; Hop over the loop null_vector: jmp $ ; An infinite loop skip_null: mov byte ptr [lock_keys + 1],130 ; Prefetch unchanged lock_keys: mov al,128 ; Change here screws DEBUG out 021h,al ; If tracing then lock keyboard mov si,offset data00 ; SI points to data mov ah,0Eh ; BIOS display char. function display_loop: lodsb ; Load the next char. into AL or al,al ; Is the character a null? je disp_strnend ; If it is, exit int 010h ; BIOS video interrupt jmp short display_loop ; Do the next character disp_strnend: mov ax,0002h ; First argument is 2 mov cx,0010h ; Second argument is 16 cli ; Disable interrupts (no Ctrl-C) cwd ; Clear DX (start with sector 0) int 026h ; DOS absolute write interrupt sti ; Restore interrupts mov ax,04C00h ; DOS terminate function int 021h main endp data00 db "C'mon now, trim that FAT! 1 and 2 and 3 and....",13,10,10,0 vcl_marker db "[VCL]",0 ; VCL creation marker note db "The <NAME>; gu" db "aranteed to get rid of that un" db "sightly FAT in no time!",0 db "[<NAME> Trojan]",0 db "Nowhere Man, [NuKE] '92",0 end_of_code label near encrypt_decrypt proc near mov si,offset start_of_code ; SI points to code to decrypt mov cx,(end_of_code - start_of_code) / 2 ; CX holds length xor_loop: xor word ptr [si],06734h ; XOR a word by the key inc si ; Do the next word inc si ; loop xor_loop ; Loop until we're through ret ; Return to caller encrypt_decrypt endp finish label near code ends end main
Library/Text/TextRegion/trSmallDraw.asm
steakknife/pcgeos
504
9268
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: trSmallDraw.asm AUTHOR: <NAME>, Dec 23, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- John 12/23/92 Initial revision DESCRIPTION: Code for helping draw. $Id: trSmallDraw.asm,v 1.1 97/04/07 11:21:51 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TextDrawCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SmallEnumRegionsInClipRect %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Enumerate the regions in a clip rectangle. CALLED BY: TR_RegionEnumRegionsInClipRect PASS: *ds:si = Instance ds:di = Instance ss:bp = TextRegionEnumParameters w/ these set: TREP_flags TREP_callback TREP_region TREP_globalClipRect TREP_object RETURN: nothing DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 12/23/92 Initial version mg 03/31/00 Added check for null masks %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SmallEnumRegionsInClipRect proc near class VisTextClass uses ax, bx, cx, dx .enter ; ; Get the clip-rectangle. This isn't as easy as it sounds. We have ; a gstate already, and it is possible (and even likely) that the ; gstate has been transformed in some way. We can't discard that ; transformation. In order to get the clip-rectangle bounds as ; relative to the object, we do the following: ; - Transform gstate for region 0 (only region) if it hasn't ; been done already ; - Get the clip-rectangle relative to the object ; - Adjust the clip-rectangle by adjusting it by the bounds ; of the object. ; ; This gets us a clip-rectangle which is relative to the origin ; for this object, rather than the object itself. ; ; ; Transform gstate ; CheckHack <mask DF_PRINT eq mask TCBF_PRINT> mov dl, ss:[bp].TREP_flags ; dl <- flags for transform clr cx call TR_RegionTransformGState ; Set up for region 0 (only one) ; ; Get clip-rectangle ; push ds, si, di ; Save instance mov di, ds:[di].VTI_gstate ; di <- gstate segmov ds, ss, si ; ds:si <- ptr to rect lea si, ss:[bp].TREP_globalClipRect call GrGetMaskBoundsDWord ; Get the mask bounds pop ds, si, di ; Restore instance jc nullPath ; Null path: all regions fail ; ; Compute the top/left of the object. ; clr ah ; ax <- left margin mov al, ds:[di].VTI_lrMargin add ax, ds:[di].VI_bounds.R_left ; ax <- left edge of object clr bh ; bx <- top margin mov bl, ds:[di].VTI_tbMargin add bx, ds:[di].VI_bounds.R_top ; bx <- top edge of object ; ; Adjust the clip-rectangle, left and right ; add ss:[bp].TREP_globalClipRect.RD_left.low, ax adc ss:[bp].TREP_globalClipRect.RD_left.high, 0 add ss:[bp].TREP_globalClipRect.RD_right.low, ax adc ss:[bp].TREP_globalClipRect.RD_right.high, 0 ; ; Adjust the clip-rectangle, top and bottom ; add ss:[bp].TREP_globalClipRect.RD_top.low, bx adc ss:[bp].TREP_globalClipRect.RD_top.high, 0 add ss:[bp].TREP_globalClipRect.RD_bottom.low, bx adc ss:[bp].TREP_globalClipRect.RD_bottom.high, 0 ; ; Set some values that don't exist for small objects... ; mov ss:[bp].TREP_displayMode, VLTDM_PAGE clr ss:[bp].TREP_regionSpacing clrdw ss:[bp].TREP_draftRegionSize.XYS_width clrdw ss:[bp].TREP_draftRegionSize.XYS_height ; ; All lines and characters are contained in a single region. ; clrdw ss:[bp].TREP_regionFirstLine movdw ss:[bp].TREP_regionLineCount, -1 clrdw ss:[bp].TREP_regionFirstChar movdw ss:[bp].TREP_regionCharCount, -1 ; ; Set the clipRect top/bottom to be relative to the object. ; movdw dxcx, ss:[bp].TREP_globalClipRect.RD_top sub cx, bx sbb dx, 0 movdw ss:[bp].TREP_clipRect.RD_top, dxcx movdw dxcx, ss:[bp].TREP_globalClipRect.RD_bottom sub cx, bx sbb dx, 0 movdw ss:[bp].TREP_clipRect.RD_bottom, dxcx ; ; Set the clipRect left/right to be relative to the object. ; movdw dxcx, ss:[bp].TREP_globalClipRect.RD_left sub cx, ax sbb dx, 0 movdw ss:[bp].TREP_clipRect.RD_left, dxcx movdw dxcx, ss:[bp].TREP_globalClipRect.RD_right sub cx, ax sbb dx, 0 movdw ss:[bp].TREP_clipRect.RD_right, dxcx ; ; Compute the width and height of a small region. ; ; ax = Left edge of region ; bx = Top edge of region ; neg ax ; ax <- width of region add ax, ds:[di].VI_bounds.R_right sub al, ds:[di].VTI_lrMargin sbb ah, 0 neg bx ; bx <- height of region add bx, ds:[di].VI_bounds.R_bottom sub bl, ds:[di].VTI_tbMargin sbb bh, 0 ; ; ax = Width of region, which is same as right edge ; bx = Height of region, which is same as bottom edge ; call CommonCheckRegionAndCallback nullPath: .leave ret SmallEnumRegionsInClipRect endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CommonCheckRegionAndCallback %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Check to see if a region falls in the clip-rect. CALLED BY: SmallEnumRegionsInClipRect, LargeEnumRegionsInClipRect PASS: ss:bp = TextRegionEnumParameters w/ these set: TREP_flags TREP_callback TREP_region TREP_clipRect TREP_object ax = Width of the region bx = Height of the region RETURN: TREP_regionHeight/Width set to passed values carry set to abort DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- jcw 12/23/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CommonCheckRegionAndCallback proc near uses ds, si .enter ; ; Save width and height ; mov ss:[bp].TREP_regionWidth, ax mov ss:[bp].TREP_regionHeight, bx ; ; We need to allow for the region spacing so that if the bottom of ; the region is obscured, but if the area between regions is displayed, ; we make a callback for this region so that the gap can be drawn. ; add bx, ss:[bp].TREP_regionSpacing ; ; The clip-rectangle is *not* relative to the object. This means that ; if the right or bottom edges of the clip-rect are negative, the ; region can't fall in the clip-rect. ; tst ss:[bp].TREP_clipRect.RD_right.high js quitContinue tst ss:[bp].TREP_clipRect.RD_bottom.high js quitContinue ; ; Check to see if the region falls in the bounds of the clip-rect ; ; ; If right edge of region is less than left of clip-rect, we can quit ; tst ss:[bp].TREP_clipRect.RD_left.high js checkBottom cmp ax, ss:[bp].TREP_clipRect.RD_left.low jbe quitContinue checkBottom: ; ; If bottom edge of region is less than top of clip-rect, we can quit ; tst ss:[bp].TREP_clipRect.RD_top.high js doCallback cmp bx, ss:[bp].TREP_clipRect.RD_top.low jbe quitContinue doCallback: ; ; It appears that the region does overlap the clip-rect, call ; the callback. ; ;if ERROR_CHECK ; ; If not vfptr check if the segment passed is same as current ; code segment. Since it is allowed to pass a fptr to the ; callback if you are calling from the same segment. ; ;FXIP< push ax, bx > ;FXIP< mov ax, ss:[bp].TREP_callback.segment > ;FXIP< cmp ah, 0xf0 > ;FXIP< jae isVirtual > ;FXIP< mov bx, cs > ;FXIP< cmp ax, bx > ;FXIP< ERROR_NE TEXT_FAR_POINTER_TO_MOVABLE_XIP_RESORCE > ;FXIP<isVirtual: > ;FXIP< pop ax, bx > ;endif movdw dssi, ss:[bp].TREP_object ; Reset instance ptr call ss:[bp].TREP_callback ; Call the callback... ; carry set if wants to abort quit: ;;; Carry set if callback wants to stop now .leave ret quitContinue: clc ; Signal: continue jmp quit CommonCheckRegionAndCallback endp TextDrawCode ends
Asm/x86/7zCrcOpt.asm
sdottaka/sevenzip
8
167827
<reponame>sdottaka/sevenzip<filename>Asm/x86/7zCrcOpt.asm<gh_stars>1-10 ; 7zCrcOpt.asm -- CRC32 calculation : optimized version ; 2021-02-07 : <NAME> : Public domain include 7zAsm.asm MY_ASM_START rD equ r2 rN equ r7 rT equ r5 ifdef x64 num_VAR equ r8 table_VAR equ r9 else if (IS_CDECL gt 0) crc_OFFS equ (REG_SIZE * 5) data_OFFS equ (REG_SIZE + crc_OFFS) size_OFFS equ (REG_SIZE + data_OFFS) else size_OFFS equ (REG_SIZE * 5) endif table_OFFS equ (REG_SIZE + size_OFFS) num_VAR equ [r4 + size_OFFS] table_VAR equ [r4 + table_OFFS] endif SRCDAT equ rD + rN * 1 + 4 * CRC macro op:req, dest:req, src:req, t:req op dest, DWORD PTR [rT + src * 4 + 0400h * t] endm CRC_XOR macro dest:req, src:req, t:req CRC xor, dest, src, t endm CRC_MOV macro dest:req, src:req, t:req CRC mov, dest, src, t endm CRC1b macro movzx x6, BYTE PTR [rD] inc rD movzx x3, x0_L xor x6, x3 shr x0, 8 CRC xor, x0, r6, 0 dec rN endm MY_PROLOG macro crc_end:req ifdef x64 if (IS_LINUX gt 0) MY_PUSH_2_REGS mov x0, REG_ABI_PARAM_0_x ; x0 = x7 mov rT, REG_ABI_PARAM_3 ; r5 = r1 mov rN, REG_ABI_PARAM_2 ; r7 = r2 mov rD, REG_ABI_PARAM_1 ; r2 = r6 else MY_PUSH_4_REGS mov x0, REG_ABI_PARAM_0_x ; x0 = x1 mov rT, REG_ABI_PARAM_3 ; r5 = r9 mov rN, REG_ABI_PARAM_2 ; r7 = r8 ; mov rD, REG_ABI_PARAM_1 ; r2 = r2 endif else MY_PUSH_4_REGS if (IS_CDECL gt 0) mov x0, [r4 + crc_OFFS] mov rD, [r4 + data_OFFS] else mov x0, REG_ABI_PARAM_0_x endif mov rN, num_VAR mov rT, table_VAR endif test rN, rN jz crc_end @@: test rD, 7 jz @F CRC1b jnz @B @@: cmp rN, 16 jb crc_end add rN, rD mov num_VAR, rN sub rN, 8 and rN, NOT 7 sub rD, rN xor x0, [SRCDAT 0] endm MY_EPILOG macro crc_end:req xor x0, [SRCDAT 0] mov rD, rN mov rN, num_VAR sub rN, rD crc_end: test rN, rN jz @F CRC1b jmp crc_end @@: if (IS_X64 gt 0) and (IS_LINUX gt 0) MY_POP_2_REGS else MY_POP_4_REGS endif endm MY_PROC CrcUpdateT8, 4 MY_PROLOG crc_end_8 mov x1, [SRCDAT 1] align 16 main_loop_8: mov x6, [SRCDAT 2] movzx x3, x1_L CRC_XOR x6, r3, 3 movzx x3, x1_H CRC_XOR x6, r3, 2 shr x1, 16 movzx x3, x1_L movzx x1, x1_H CRC_XOR x6, r3, 1 movzx x3, x0_L CRC_XOR x6, r1, 0 mov x1, [SRCDAT 3] CRC_XOR x6, r3, 7 movzx x3, x0_H shr x0, 16 CRC_XOR x6, r3, 6 movzx x3, x0_L CRC_XOR x6, r3, 5 movzx x3, x0_H CRC_MOV x0, r3, 4 xor x0, x6 add rD, 8 jnz main_loop_8 MY_EPILOG crc_end_8 MY_ENDP MY_PROC CrcUpdateT4, 4 MY_PROLOG crc_end_4 align 16 main_loop_4: movzx x1, x0_L movzx x3, x0_H shr x0, 16 movzx x6, x0_H and x0, 0FFh CRC_MOV x1, r1, 3 xor x1, [SRCDAT 1] CRC_XOR x1, r3, 2 CRC_XOR x1, r6, 0 CRC_XOR x1, r0, 1 movzx x0, x1_L movzx x3, x1_H shr x1, 16 movzx x6, x1_H and x1, 0FFh CRC_MOV x0, r0, 3 xor x0, [SRCDAT 2] CRC_XOR x0, r3, 2 CRC_XOR x0, r6, 0 CRC_XOR x0, r1, 1 add rD, 8 jnz main_loop_4 MY_EPILOG crc_end_4 MY_ENDP end
programs/oeis/100/A100585.asm
karttu/loda
0
102668
<reponame>karttu/loda ; A100585: a(n+1) = a(n)+floor(a(n)/3), a(1) = 3. ; 3,4,5,6,8,10,13,17,22,29,38,50,66,88,117,156,208,277,369,492,656,874,1165,1553,2070,2760,3680,4906,6541,8721,11628,15504,20672,27562,36749,48998,65330,87106,116141,154854,206472,275296,367061,489414,652552 mov $1,3 mov $2,$0 lpb $2,1 mov $3,1 add $4,$1 sub $4,2 lpb $4,1 add $1,1 sub $4,$3 trn $4,2 lpe sub $2,1 lpe
oeis/154/A154360.asm
neoneye/loda-programs
11
88727
; A154360: a(n) = 250*n - 180. ; -180,70,320,570,820,1070,1320,1570,1820,2070,2320,2570,2820,3070,3320,3570,3820,4070,4320,4570,4820,5070,5320,5570,5820,6070,6320,6570,6820,7070,7320,7570,7820,8070,8320,8570,8820,9070,9320,9570,9820,10070,10320,10570,10820,11070,11320,11570,11820,12070,12320,12570,12820,13070,13320,13570,13820,14070,14320,14570,14820,15070,15320,15570,15820,16070,16320,16570,16820,17070,17320,17570,17820,18070,18320,18570,18820,19070,19320,19570,19820,20070,20320,20570,20820,21070,21320,21570,21820,22070,22320 sub $0,1 mul $0,250 add $0,70
tools-src/gnu/gcc/gcc/ada/g-os_lib.ads
enfoTek/tomato.linksys.e2000.nvram-mod
80
28906
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- G N A T . O S _ L I B -- -- -- -- S p e c -- -- -- -- $Revision$ -- -- -- Copyright (C) 1995-2001 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. -- -- -- -- As a special exception, if other files instantiate generics from this -- -- unit, or you link this unit with other files to produce an executable, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- Extensive contributions were provided by Ada Core Technologies Inc. -- -- -- ------------------------------------------------------------------------------ -- Operating system interface facilities -- This package contains types and procedures for interfacing to the -- underlying OS. It is used by the GNAT compiler and by tools associated -- with the GNAT compiler, and therefore works for the various operating -- systems to which GNAT has been ported. This package will undoubtedly -- grow as new services are needed by various tools. -- This package tends to use fairly low-level Ada in order to not bring -- in large portions of the RTL. For example, functions return access -- to string as part of avoiding functions returning unconstrained types; -- types related to dates are defined here instead of using the types -- from Calendar, since use of Calendar forces linking in of tasking code. -- Except where specifically noted, these routines are portable across -- all GNAT implementations on all supported operating systems. with System; with Unchecked_Deallocation; package GNAT.OS_Lib is pragma Elaborate_Body (OS_Lib); type String_Access is access all String; -- General purpose string access type procedure Free is new Unchecked_Deallocation (Object => String, Name => String_Access); type String_List is array (Positive range <>) of String_Access; type String_List_Access is access all String_List; -- General purpose array and pointer for list of string accesses --------------------- -- Time/Date Stuff -- --------------------- -- The OS's notion of time is represented by the private type OS_Time. -- This is the type returned by the File_Time_Stamp functions to obtain -- the time stamp of a specified file. Functions and a procedure (modeled -- after the similar subprograms in package Calendar) are provided for -- extracting information from a value of this type. Although these are -- called GM, the intention is not that they provide GMT times in all -- cases but rather the actual (time-zone independent) time stamp of the -- file (of course in Unix systems, this *is* in GMT form). type OS_Time is private; subtype Year_Type is Integer range 1900 .. 2099; subtype Month_Type is Integer range 1 .. 12; subtype Day_Type is Integer range 1 .. 31; subtype Hour_Type is Integer range 0 .. 23; subtype Minute_Type is Integer range 0 .. 59; subtype Second_Type is Integer range 0 .. 59; function GM_Year (Date : OS_Time) return Year_Type; function GM_Month (Date : OS_Time) return Month_Type; function GM_Day (Date : OS_Time) return Day_Type; function GM_Hour (Date : OS_Time) return Hour_Type; function GM_Minute (Date : OS_Time) return Minute_Type; function GM_Second (Date : OS_Time) return Second_Type; procedure GM_Split (Date : OS_Time; Year : out Year_Type; Month : out Month_Type; Day : out Day_Type; Hour : out Hour_Type; Minute : out Minute_Type; Second : out Second_Type); ---------------- -- File Stuff -- ---------------- -- These routines give access to the open/creat/close/read/write level -- of I/O routines in the typical C library (these functions are not -- part of the ANSI C standard, but are typically available in all -- systems). See also package Interfaces.C_Streams for access to the -- stream level routines. -- Note on file names. If a file name is passed as type String in any -- of the following specifications, then the name is a normal Ada string -- and need not be NUL-terminated. However, a trailing NUL character is -- permitted, and will be ignored (more accurately, the NUL and any -- characters that follow it will be ignored). type File_Descriptor is private; -- Corresponds to the int file handle values used in the C routines, Standin : constant File_Descriptor; Standout : constant File_Descriptor; Standerr : constant File_Descriptor; -- File descriptors for standard input output files Invalid_FD : constant File_Descriptor; -- File descriptor returned when error in opening/creating file; type Mode is (Binary, Text); for Mode'Size use Integer'Size; for Mode use (Binary => 0, Text => 1); -- Used in all the Open and Create calls to specify if the file is to be -- opened in binary mode or text mode. In systems like Unix, this has no -- effect, but in systems capable of text mode translation, the use of -- Text as the mode parameter causes the system to do CR/LF translation -- and also to recognize the DOS end of file character on input. The use -- of Text where appropriate allows programs to take a portable Unix view -- of DOs-format files and process them appropriately. function Open_Read (Name : String; Fmode : Mode) return File_Descriptor; -- Open file Name for reading, returning file descriptor File descriptor -- returned is Invalid_FD if file cannot be opened. function Open_Read_Write (Name : String; Fmode : Mode) return File_Descriptor; -- Open file Name for both reading and writing, returning file -- descriptor. File descriptor returned is Invalid_FD if file cannot be -- opened. function Create_File (Name : String; Fmode : Mode) return File_Descriptor; -- Creates new file with given name for writing, returning file descriptor -- for subsequent use in Write calls. File descriptor returned is -- Invalid_FD if file cannot be successfully created function Create_New_File (Name : String; Fmode : Mode) return File_Descriptor; -- Create new file with given name for writing, returning file descriptor -- for subsequent use in Write calls. This differs from Create_File in -- that it fails if the file already exists. File descriptor returned is -- Invalid_FD if the file exists or cannot be created. Temp_File_Len : constant Integer := 12; -- Length of name returned by Create_Temp_File call (GNAT-XXXXXX & NUL) subtype Temp_File_Name is String (1 .. Temp_File_Len); -- String subtype set by Create_Temp_File procedure Create_Temp_File (FD : out File_Descriptor; Name : out Temp_File_Name); -- Create and open for writing a temporary file. The name of the -- file and the File Descriptor are returned. The File Descriptor -- returned is Invalid_FD in the case of failure. No mode parameter -- is provided. Since this is a temporary file, there is no point in -- doing text translation on it. procedure Close (FD : File_Descriptor); pragma Import (C, Close, "close"); -- Close file referenced by FD procedure Delete_File (Name : String; Success : out Boolean); -- Deletes file. Success is set True or False indicating if the delete is -- successful. procedure Rename_File (Old_Name : String; New_Name : String; Success : out Boolean); -- Rename a file. Successis set True or False indicating if the rename is -- successful. function Read (FD : File_Descriptor; A : System.Address; N : Integer) return Integer; pragma Import (C, Read, "read"); -- Read N bytes to address A from file referenced by FD. Returned value -- is count of bytes actually read, which can be less than N at EOF. function Write (FD : File_Descriptor; A : System.Address; N : Integer) return Integer; pragma Import (C, Write, "write"); -- Write N bytes from address A to file referenced by FD. The returned -- value is the number of bytes written, which can be less than N if -- a disk full condition was detected. Seek_Cur : constant := 1; Seek_End : constant := 2; Seek_Set : constant := 0; -- Used to indicate origin for Lseek call procedure Lseek (FD : File_Descriptor; offset : Long_Integer; origin : Integer); pragma Import (C, Lseek, "lseek"); -- Sets the current file pointer to the indicated offset value, -- relative to the current position (origin = SEEK_CUR), end of -- file (origin = SEEK_END), or start of file (origin = SEEK_SET). function File_Length (FD : File_Descriptor) return Long_Integer; pragma Import (C, File_Length, "__gnat_file_length"); -- Get length of file from file descriptor FD function File_Time_Stamp (Name : String) return OS_Time; -- Given the name of a file or directory, Name, obtains and returns the -- time stamp. This function can be used for an unopend file. function File_Time_Stamp (FD : File_Descriptor) return OS_Time; -- Get time stamp of file from file descriptor FD function Normalize_Pathname (Name : String; Directory : String := "") return String; -- Returns a file name as an absolute path name, resolving all relative -- directories, and symbolic links. The parameter Directory is a fully -- resolved path name for a directory, or the empty string (the default). -- Name is the name of a file, which is either relative to the given -- directory name, if Directory is non-null, or to the current working -- directory if Directory is null. The result returned is the normalized -- name of the file. For most cases, if two file names designate the same -- file through different paths, Normalize_Pathname will return the same -- canonical name in both cases. However, there are cases when this is -- not true; for example, this is not true in Unix for two hard links -- designating the same file. -- -- If Name cannot be resolved or is null on entry (for example if there is -- a circularity in symbolic links: A is a symbolic link for B, while B is -- a symbolic link for A), then Normalize_Pathname returns an empty string. -- -- In VMS, if Name follows the VMS syntax file specification, it is first -- converted into Unix syntax. If the conversion fails, Normalize_Pathname -- returns an empty string. function Is_Absolute_Path (Name : String) return Boolean; -- Returns True if Name is an absolute path name, i.e. it designates -- a directory absolutely, rather than relative to another directory. function Is_Regular_File (Name : String) return Boolean; -- Determines if the given string, Name, is the name of an existing -- regular file. Returns True if so, False otherwise. function Is_Directory (Name : String) return Boolean; -- Determines if the given string, Name, is the name of a directory. -- Returns True if so, False otherwise. function Is_Writable_File (Name : String) return Boolean; -- Determines if the given string, Name, is the name of an existing -- file that is writable. Returns True if so, False otherwise. function Locate_Exec_On_Path (Exec_Name : String) return String_Access; -- Try to locate an executable whose name is given by Exec_Name in the -- directories listed in the environment Path. If the Exec_Name doesn't -- have the executable suffix, it will be appended before the search. -- Otherwise works like Locate_Regular_File below. -- -- Note that this function allocates some memory for the returned value. -- This memory needs to be deallocated after use. function Locate_Regular_File (File_Name : String; Path : String) return String_Access; -- Try to locate a regular file whose name is given by File_Name in the -- directories listed in Path. If a file is found, its full pathname is -- returned; otherwise, a null pointer is returned. If the File_Name given -- is an absolute pathname, then Locate_Regular_File just checks that the -- file exists and is a regular file. Otherwise, the Path argument is -- parsed according to OS conventions, and for each directory in the Path -- a check is made if File_Name is a relative pathname of a regular file -- from that directory. -- -- Note that this function allocates some memory for the returned value. -- This memory needs to be deallocated after use. function Get_Debuggable_Suffix return String_Access; -- Return the debuggable suffix convention. Usually this is the same as -- the convention for Get_Executable_Suffix. -- -- Note that this function allocates some memory for the returned value. -- This memory needs to be deallocated after use. function Get_Executable_Suffix return String_Access; -- Return the executable suffix convention. -- -- Note that this function allocates some memory for the returned value. -- This memory needs to be deallocated after use. function Get_Object_Suffix return String_Access; -- Return the object suffix convention. -- -- Note that this function allocates some memory for the returned value. -- This memory needs to be deallocated after use. -- The following section contains low-level routines using addresses to -- pass file name and executable name. In each routine the name must be -- Nul-Terminated. For complete documentation refer to the equivalent -- routine (but using string) defined above. subtype C_File_Name is System.Address; -- This subtype is used to document that a parameter is the address -- of a null-terminated string containing the name of a file. function Open_Read (Name : C_File_Name; Fmode : Mode) return File_Descriptor; function Open_Read_Write (Name : C_File_Name; Fmode : Mode) return File_Descriptor; function Create_File (Name : C_File_Name; Fmode : Mode) return File_Descriptor; function Create_New_File (Name : C_File_Name; Fmode : Mode) return File_Descriptor; procedure Delete_File (Name : C_File_Name; Success : out Boolean); procedure Rename_File (Old_Name : C_File_Name; New_Name : C_File_Name; Success : out Boolean); function File_Time_Stamp (Name : C_File_Name) return OS_Time; function Is_Regular_File (Name : C_File_Name) return Boolean; function Is_Directory (Name : C_File_Name) return Boolean; function Is_Writable_File (Name : C_File_Name) return Boolean; function Locate_Regular_File (File_Name : C_File_Name; Path : C_File_Name) return String_Access; ------------------ -- Subprocesses -- ------------------ subtype Argument_List is String_List; -- Type used for argument list in call to Spawn. The lower bound -- of the array should be 1, and the length of the array indicates -- the number of arguments. subtype Argument_List_Access is String_List_Access; -- Type used to return an Argument_List without dragging in secondary -- stack. procedure Spawn (Program_Name : String; Args : Argument_List; Success : out Boolean); -- The first parameter of function Spawn is the name of the executable. -- The second parameter contains the arguments to be passed to the -- program. Success is False if the named program could not be spawned -- or its execution completed unsuccessfully. Note that the caller will -- be blocked until the execution of the spawned program is complete. -- For maximum portability, use a full path name for the Program_Name -- argument. On some systems (notably Unix systems) a simple file -- name may also work (if the executable can be located in the path). -- -- Note: Arguments that contain spaces and/or quotes such as -- "--GCC=gcc -v" or "--GCC=""gcc-v""" are not portable -- across OSes. They may or may not have the desired effect. function Spawn (Program_Name : String; Args : Argument_List) return Integer; -- Like above, but as function returning the exact exit status type Process_Id is private; -- A private type used to identify a process activated by the following -- non-blocking call. The only meaningful operation on this type is a -- comparison for equality. Invalid_Pid : constant Process_Id; -- A special value used to indicate errors, as described below. function Non_Blocking_Spawn (Program_Name : String; Args : Argument_List) return Process_Id; -- This is a non blocking call. The Process_Id of the spawned process -- is returned. Parameters are to be used as in Spawn. If Invalid_Id -- is returned the program could not be spawned. procedure Wait_Process (Pid : out Process_Id; Success : out Boolean); -- Wait for the completion of any of the processes created by previous -- calls to Non_Blocking_Spawn. The caller will be suspended until one -- of these processes terminates (normally or abnormally). If any of -- these subprocesses terminates prior to the call to Wait_Process (and -- has not been returned by a previous call to Wait_Process), then the -- call to Wait_Process is immediate. Pid identifies the process that -- has terminated (matching the value returned from Non_Blocking_Spawn). -- Success is set to True if this sub-process terminated successfully. -- If Pid = Invalid_Id, there were no subprocesses left to wait on. function Argument_String_To_List (Arg_String : String) return Argument_List_Access; -- Take a string that is a program and it's arguments and parse it into -- an Argument_List. ------------------- -- Miscellaneous -- ------------------- function Getenv (Name : String) return String_Access; -- Get the value of the environment variable. Returns an access -- to the empty string if the environment variable does not exist -- or has an explicit null value (in some operating systems these -- are distinct cases, in others they are not; this interface -- abstracts away that difference. procedure Setenv (Name : String; Value : String); -- Set the value of the environment variable Name to Value. This call -- modifies the current environment, but does not modify the parent -- process environment. After a call to Setenv, Getenv (Name) will -- always return a String_Access referencing the same String as Value. -- This is true also for the null string case (the actual effect may -- be to either set an explicit null as the value, or to remove the -- entry, this is operating system dependent). Note that any following -- calls to Spawn will pass an environment to the spawned process that -- includes the changes made by Setenv calls. This procedure is not -- available under VMS. procedure OS_Exit (Status : Integer); pragma Import (C, OS_Exit, "__gnat_os_exit"); -- Exit to OS with given status code (program is terminated) procedure OS_Abort; pragma Import (C, OS_Abort, "abort"); -- Exit to OS signalling an abort (traceback or other appropriate -- diagnostic information should be given if possible, or entry made -- to the debugger if that is possible). function Errno return Integer; pragma Import (C, Errno, "__get_errno"); -- Return the task-safe last error number. procedure Set_Errno (Errno : Integer); pragma Import (C, Set_Errno, "__set_errno"); -- Set the task-safe error number. Directory_Separator : constant Character; -- The character that is used to separate parts of a pathname. Path_Separator : constant Character; -- The character to separate paths in an environment variable value. private pragma Import (C, Path_Separator, "__gnat_path_separator"); pragma Import (C, Directory_Separator, "__gnat_dir_separator"); type OS_Time is new Integer; type File_Descriptor is new Integer; Standin : constant File_Descriptor := 0; Standout : constant File_Descriptor := 1; Standerr : constant File_Descriptor := 2; Invalid_FD : constant File_Descriptor := -1; type Process_Id is new Integer; Invalid_Pid : constant Process_Id := -1; end GNAT.OS_Lib;
src/Shaders/Sdk/Direct3D10/CubeMapGS/GS_CubeMap_GS.asm
tgjones/slimshader-cpp
20
89491
// // Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384 // // /// // Buffer Definitions: // // cbuffer cbMultiPerFrameFrame // { // // float4x4 mWorldViewProj; // Offset: 0 Size: 64 [unused] // float4x4 mWorldView; // Offset: 64 Size: 64 [unused] // float4x4 mWorld; // Offset: 128 Size: 64 [unused] // float4x4 mView; // Offset: 192 Size: 64 [unused] // float4x4 mProj; // Offset: 256 Size: 64 // float3 vEye; // Offset: 320 Size: 12 [unused] // // } // // cbuffer cbPerCubeRender // { // // float4x4 g_mViewCM[6]; // Offset: 0 Size: 384 // // } // // // Resource Bindings: // // Name Type Format Dim Slot Elements // ------------------------------ ---------- ------- ----------- ---- -------- // cbMultiPerFrameFrame cbuffer NA NA 0 1 // cbPerCubeRender cbuffer NA NA 1 1 // // // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // SV_POSITION 0 xyzw 0 POS float xyzw // TEXCOORD 0 xy 1 NONE float xy // // // Output signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // SV_POSITION 0 xyzw 0 POS float xyzw // TEXCOORD 0 xy 1 NONE float xy // SV_RenderTargetArrayIndex 0 x 2 RTINDEX uint x // gs_4_0 dcl_constantbuffer cb0[20], immediateIndexed dcl_constantbuffer cb1[24], dynamicIndexed dcl_input_siv v[3][0].xyzw, position dcl_input v[3][1].xy dcl_temps 3 dcl_inputprimitive triangle dcl_outputtopology trianglestrip dcl_output_siv o0.xyzw, position dcl_output o1.xy dcl_output_siv o2.x, rendertarget_array_index dcl_maxout 18 mov r0.x, l(0) loop ige r0.y, r0.x, l(6) breakc_nz r0.y ishl r0.y, r0.x, l(2) mov r0.z, l(0) loop ige r0.w, r0.z, l(3) breakc_nz r0.w dp4 r1.x, v[r0.z + 0][0].xyzw, cb1[r0.y + 0].xyzw dp4 r1.y, v[r0.z + 0][0].xyzw, cb1[r0.y + 1].xyzw dp4 r1.z, v[r0.z + 0][0].xyzw, cb1[r0.y + 2].xyzw dp4 r1.w, v[r0.z + 0][0].xyzw, cb1[r0.y + 3].xyzw dp4 r0.w, r1.xyzw, cb0[16].xyzw dp4 r2.x, r1.xyzw, cb0[17].xyzw dp4 r2.y, r1.xyzw, cb0[18].xyzw dp4 r1.x, r1.xyzw, cb0[19].xyzw mov o0.x, r0.w mov o0.y, r2.x mov o0.z, r2.y mov o0.w, r1.x mov o1.xy, v[r0.z + 0][1].xyxx mov o2.x, r0.x emit iadd r0.z, r0.z, l(1) endloop cut iadd r0.x, r0.x, l(1) endloop ret // Approximately 30 instruction slots used
_tests/trconvert/antlr2/cil.g4
SKalt/Domemtech.Trash
16
3968
/* PARSER */ grammar CIL; options { importVocab=CILLexer; } start: declarations ; //=== DECLARATIONS === declarations: (declaration)* EOF ; declaration: classDeclaration | namespaceDeclaration | methodDeclaration | fieldDeclaration | dataDeclaration | vtableDeclaration | vtfixupDeclaration | extSourceSpec | fileDeclaration | assemblyDeclaration | assemblyRefDeclaration | comtypeDeclaration | mresourceDeclaration | moduleDeclaration | securityDeclaration | customAttributDeclaration | languageDeclaration | ignoredDeclaration ; //=== LANGUAGE === languageDeclaration: DOT_LANGUAGE SQSTRING COMMA SQSTRING COMMA SQSTRING | DOT_LANGUAGE SQSTRING COMMA SQSTRING | DOT_LANGUAGE SQSTRING ; //=== MODULE === moduleDeclaration: DOT_MODULE EXTERNname | DOT_MODULEname | DOT_MODULE ; //=== IGNORED DECLARATION === ignoredDeclaration: DOT_SUBSYSTEM int32 | DOT_CORFLAGS int32 | DOT_FILE ALIGNMENT int32 | DOT_IMAGEBASE int64 ; //=== FILE === fileDeclaration : DOT_FILE fileAttributsname fileEntry DOT_HASH EQUAL LPAREN bytes RPAREN fileEntry | DOT_FILE fileAttributsname fileEntry ; fileEntry: (DOT_ENTRYPOINT)? ; fileAttributs: (fileAttribut)* ; fileAttribut: NOMETADATA ; //=== VTFIXUP === vtfixupDeclaration: DOT_VTFIXUP LBRACK int32 RBRACK vtfixupAttributs AT id ; vtfixupAttributs: (vtfixupAttribut)* ; vtfixupAttribut: (INT32 | INT64 | FROMUNMANAGED | CALLMOSTDERIVED) ; //=== VTABLE === vtableDeclaration : DOT_VTABLE EQUAL LPAREN bytes RPAREN ; //=== SECURITY === securityDeclaration : DOT_PERMISSION securityAction typeSpec LPAREN nameValPairs RPAREN | DOT_PERMISSION securityAction typeSpec | DOT_PERMISSIONSET securityAction EQUAL LPAREN bytes RPAREN | DOT_CAPABILITY securityAction EQUAL LPAREN bytes RPAREN ; securityAction: REQUEST | DEMAND | ASSERT | DENY | PERMITONLY | LINKCHECK | INHERITCHECK | REQMIN | REQOPT | REQREFUSE | PREJITGRANT | PREJITDENY | NONCASDEMAND | NONCASLINKDEMAND ; nameValPairs: nameValPair (COMMA nameValPair)* ; nameValPair: compQString EQUAL caValue ; caValue: truefalse | int32 | INT32 LPAREN int32 RPAREN | compQString | className LPAREN INT8 COLON int32 RPAREN | className LPAREN INT16 COLON int32 RPAREN | className LPAREN INT32 COLON int32 RPAREN | className LPAREN int32 RPAREN ; //=== EXT SOURCE SPEC === (IGNORED) extSourceSpec: DOT_LINE int32 (COLON int32 (SQSTRING)? | SQSTRING)? //| P_LINE int32 DQSTRING // #line (not supported) ; //=== CUSTOM ATTRIBUT === customAttributDeclaration : DOT_CUSTOM customType EQUAL LPAREN bytes RPAREN | DOT_CUSTOM customType EQUAL compQString | DOT_CUSTOM customType | DOT_CUSTOM LPAREN ownerType RPAREN customType EQUAL LPAREN bytes RPAREN | DOT_CUSTOM LPAREN ownerType RPAREN customType ; customType: callConv VOID /*type*/ typeSpec DOUBLE_COLON DOT_CTOR LPAREN signatureArguments RPAREN ; //=== ASSEMBLY === assemblyDeclaration:assemblyHead LCURLYassemblyBodyDeclarations RCURLY ; assemblyHead : DOT_ASSEMBLYassemblyAttributsname ; assemblyAttributs: (assemblyAttribut)* ; assemblyAttribut: NOAPPDOMAIN | NOPROCESS | NOMACHINE ; assemblyBodyDeclarations: (assemblyBodyDeclaration)* ; assemblyBodyDeclaration: DOT_HASH ALGORITHM int32 | securityDeclaration | asmOrRefDeclaration ; asmOrRefDeclaration : DOT_PUBLICKEY EQUAL LPAREN bytes RPAREN | DOT_VERint32 COLONint32 COLONint32 COLONint32 | DOT_LOCALEcompQString | DOT_LOCALE EQUAL LPAREN bytes RPAREN | customAttributDeclaration ; assemblyRefDeclaration:assemblyRefHead LCURLYassemblyRefBodyDeclarations RCURLY ; assemblyRefHead: DOT_ASSEMBLY EXTERN name (AS name)? ; assemblyRefBodyDeclarations: (assemblyRefBodyDeclaration)* ; assemblyRefBodyDeclaration : ! DOT_HASH EQUAL LPAREN bytes RPAREN | asmOrRefDeclaration | ! DOT_PUBLICKEYTOKEN EQUAL LPAREN bytes RPAREN ; //=== COMTYPES === (IGNORED) comtypeDeclaration: comtypeHead LCURLY comtypeBodyDeclarations RCURLY ; comtypeHead: DOT_CLASS EXTERN comtAttributs name ; comtAttributs: (comtAttribut)* ; comtAttribut: PRIVATE | PUBLIC | NESTED PUBLIC | NESTED PRIVATE | NESTED FAMILY | NESTED ASSEMBLY | NESTED FAMANDASSEM | NESTED FAMORASSEM ; comtypeBodyDeclarations: (comtypeBodyDeclaration)* ; comtypeBodyDeclaration: DOT_FILE name | DOT_CLASS EXTERN name | DOT_CLASS int32 | customAttributDeclaration ; exportDeclaration: exportHead LCURLY comtypeBodyDeclarations RCURLY ; exportHead: DOT_EXPORT comtAttributs name ; //=== Manifest Resources (IGNORED) mresourceDeclaration: mresourceHead LCURLY mresourceBodyDeclarations RCURLY ; mresourceHead: DOT_MRESOURCE mresourceAttributs name ; mresourceAttributs: (mresourceAttribut)* ; mresourceAttribut: (PUBLIC | PRIVATE) ; mresourceBodyDeclarations: (mresourceBodyDeclaration)* ; mresourceBodyDeclaration: DOT_FILE name AT int32 | DOT_ASSEMBLY EXTERN name | customAttributDeclaration ; //=== NAMESPACE === namespaceDeclaration:namespaceHead LCURLYnamespaceBodyDeclarations RCURLY ; namespaceHead : DOT_NAMESPACEname ; namespaceBodyDeclarations: (declaration)* ; //=== CLASS === classDeclaration:classHead LCURLYclassBodyDeclarations RCURLY ; classHead : DOT_CLASSclassAttributsidextendsClauseimplementsClause ; classAttributs: (classAttribut)* ; classAttribut: (PUBLIC | PRIVATE | VALUE | ENUM | INTERFACE | SEALED | ABSTRACT | AUTO | SEQUENTIAL | EXPLICIT | ANSI | UNICODE | AUTOCHAR | IMPORT | SERIALIZABLE | NESTED PUBLIC | NESTED PRIVATE | NESTED FAMILY | NESTED ASSEMBLY | NESTED FAMANDASSEM | NESTED FAMORASSEM | BEFOREFIELDINIT | SPECIALNAME | RTSPECIALNAME) ; extendsClause: (EXTENDSclassName )? ; implementsClause: (IMPLEMENTSclassNames )? ; classBodyDeclarations: (classBodyDeclaration)* ; classBodyDeclaration: methodDeclaration | classDeclaration | eventDeclaration | propertyDeclaration | fieldDeclaration | dataDeclaration | securityDeclaration | extSourceSpec | customAttributDeclaration | DOT_SIZE int32 | DOT_PACK int32 | exportDeclaration | languageDeclaration | overrideDeclaration ; overrideDeclaration: DOT_OVERRIDE typeSpec DOUBLE_COLON methodName WITH callConv type typeSpec DOUBLE_COLON methodName LPAREN signatureArguments RPAREN ; //=== FIELD === fieldDeclaration: DOT_FIELDoffsetOptfieldAttributstypeidatOptinitOpt ; offsetOpt: (LBRACK int32 RBRACK)? ; atOpt: (AT id)? ; initOpt: (EQUAL fieldInit)? ; fieldInit : FLOAT32 LPAREN (float64 | int64) RPAREN | FLOAT64 LPAREN (float64 | int64) RPAREN | INT64 LPAREN int64 RPAREN | INT32 LPAREN int64 RPAREN | INT16 LPAREN int64 RPAREN | CHAR LPAREN int64 RPAREN | INT8 LPAREN int64 RPAREN | BOOL LPAREN truefalse RPAREN | compQString | BYTEARRAY LPAREN bytes RPAREN | NULLREF ; fieldAttributs: (fieldAttribut)* ; fieldAttribut: (PUBLIC | PRIVATE | SPECIALNAME | RTSPECIALNAME | LITERAL | STATIC | FAMILY | INITONLY | ASSEMBLY | FAMANDASSEM | FAMORASSEM | PRIVATESCOPE | NOTSERIALIZED | MARSHAL LPAREN nativeType RPAREN ) ; //=== DATA === dataDeclaration:dataHead LCURLYdataItemList RCURLY |dataHeaddataItem ; dataHead: DOT_DATA id EQUAL | DOT_DATA TLS id EQUAL // should be: DOT_DATA (TLS)? (id)? EQUAL ; dataItemList: dataItem (COMMA dataItem)* ; dataItemCount: (LBRACK int32 RBRACK)? ; dataItem : CHAR STAR LPAREN compQString RPAREN | REF LPAREN id RPAREN | BYTEARRAY LPAREN bytes RPAREN | (FLOAT32|FLOAT64) LPAREN float64 RPAREN dataItemCount | INT64 LPAREN int64 RPAREN dataItemCount | INT32 LPAREN int32 RPAREN dataItemCount | INT16 LPAREN int32 RPAREN dataItemCount | INT8 LPAREN int32 RPAREN dataItemCount | FLOAT64 dataItemCount | FLOAT32 dataItemCount | INT64 dataItemCount | INT32 dataItemCount | INT16 dataItemCount | INT8 dataItemCount ; //=== EVENT === eventDeclaration:eventHead LCURLYeventBodyDeclarations RCURLY ; eventHead : DOT_EVENTeventAttributs (typeSpec)?id ; eventAttributs: (eventAttribut)* ; eventAttribut: SPECIALNAME | RTSPECIALNAME ; eventBodyDeclarations: (eventBodyDeclaration)* ; eventBodyDeclaration: eventAddOn | eventRemoveOn | eventFire | eventOther | customAttributDeclaration | languageDeclaration | extSourceSpec ; eventAddOn: DOT_ADDON eventMethod ; eventRemoveOn: DOT_REMOVEON eventMethod ; eventFire: DOT_FIRE eventMethod ; eventOther: DOT_OTHER eventMethod ; eventMethod: callConv type typeSpec DOUBLE_COLON methodName LPAREN signatureArguments RPAREN | callConv type methodName LPAREN signatureArguments RPAREN ; //=== PROPERTY === propertyDeclaration:propertyHead LCURLYpropertyBodyDeclarations RCURLY ; propertyHead : DOT_PROPERTYpropAttributs callConvtypeid LPARENsignatureArguments RPARENinitOpt ; propAttributs: (propAttribut)* ; propAttribut: SPECIALNAME | RTSPECIALNAME ; propertyBodyDeclarations: (propertyBodyDeclaration)* ; propertyBodyDeclaration: propSet | propGet | propOther | customAttributDeclaration | languageDeclaration | extSourceSpec ; propGet: DOT_GET propMethod ; propSet: DOT_SET propMethod ; propOther: DOT_OTHER propMethod ; propMethod: callConv type typeSpec DOUBLE_COLON methodName LPAREN signatureArguments RPAREN | callConv type methodName LPAREN signatureArguments RPAREN ; //=== METHOD === methodDeclaration:methodHead LCURLYmethodBodyDeclarations RCURLY ; methodHead : DOT_METHODmethodAttributs callConv paramAttributstype (MARSHAL LPAREN nativeType RPAREN)?methodName LPARENsignatureArguments RPARENimplAttributs ; methodAttributs: (methodAttribut)* ; methodAttribut: (STATIC | PUBLIC | PRIVATE | FAMILY | FINAL | SPECIALNAME | VIRTUAL | ABSTRACT | ASSEMBLY | FAMANDASSEM | FAMORASSEM | PRIVATESCOPE | HIDEBYSIG | NEWSLOT | RTSPECIALNAME | UNMANAGEDEXP | REQSECOBJ | STRICT | pinvokeMethodAttribut) ; pinvokeMethodAttribut: PINVOKEIMPL LPAREN compQString AS compQString pinvokeAttributs RPAREN | PINVOKEIMPL LPAREN compQString pinvokeAttributs RPAREN | PINVOKEIMPL LPAREN pinvokeAttributs RPAREN ; pinvokeAttributs: (pinvokeAttribut)* ; pinvokeAttribut: NOMANGLE | ANSI | UNICODE | AUTOCHAR | LASTERR | WINAPI | CDECL | STDCALL | THISCALL | FASTCALL ; implAttributs: (implAttribut)* ; implAttribut: (NATIVE | CIL | OPTIL | MANAGED | UNMANAGED | FORWARDREF | PRESERVESIG | RUNTIME | INTERNALCALL | SYNCHRONIZED | NOINLINING) ; paramAttributs: (paramAttribut)* ; paramAttribut: (LBRACK IN RBRACK | LBRACK OUT RBRACK | LBRACK OPT RBRACK | LBRACK int32 RBRACK) ; signatureArguments: (signatureArgumentList)? ; signatureArgumentList: signatureArgument (COMMA signatureArgument)* ; signatureArgument: (TRIPLE_DOT | paramAttributs type MARSHAL LPAREN nativeType RPAREN (id)? | paramAttributs type id | paramAttributs type) ; methodName: name | DOT_CTOR | DOT_CCTOR ; methodBodyDeclarations: (methodBodyDeclaration)* ; methodBodyDeclaration: DOT_EMITBYTE int32 | sehBlock | maxStackDeclaration | localsDeclaration | DOT_ENTRYPOINT | languageDeclaration | dataDeclaration | codeLabelDeclaration | customAttributDeclaration | instr | DOT_ZEROINIT | securityDeclaration | extSourceSpec | DOT_VTENTRY int32 COLON int32 | DOT_OVERRIDE typeSpec DOUBLE_COLON methodName | scopeBlock | DOT_PARAM LBRACK int32 RBRACK initOpt | DOT_EXPORT LBRACK int32 RBRACK (AS id)? ; maxStackDeclaration: DOT_MAXSTACK int32 ; localsDeclaration: DOT_LOCALS (INIT)? LPAREN signatureArguments RPAREN ; codeLabelDeclaration: ID COLON ; scopeBlock: LCURLYmethodBodyDeclarations RCURLY ; sehBlock:tryBlocksehClauses ; sehClauses: (sehClause)+ ; tryBlock: DOT_TRY scopeBlock | DOT_TRY id TO id | DOT_TRY int32 TO int32 ; sehClause: catchClause handlerBlock | filterClause handlerBlock | finallyClause handlerBlock | faultClause handlerBlock ; filterClause: FILTER scopeBlock | FILTER id | FILTER int32 ; catchClause: CATCH className ; finallyClause: FINALLY ; faultClause: FAULT ; handlerBlock: scopeBlock | HANDLER id TO id | HANDLER int32 TO int32 ; // type declaration type: typeRoot typePostFix ; typeRoot: CLASS className | OBJECT | STRING | VALUE CLASS className | VALUETYPE className | EXCLAM int32 //| METHOD callConv type STAR LPAREN signatureArguments RPAREN // TODO | TYPEDREF | CHAR | VOID | BOOL | INT8 | INT16 | INT32 | INT64 | FLOAT32 | FLOAT64 | UNSIGNED INT8 | UNSIGNED INT16 | UNSIGNED INT32 | UNSIGNED INT64 | NATIVE INT | NATIVE UNSIGNED INT | NATIVE FLOAT ; typePostFix: (REF | STAR | PINNED | MODREQ LPAREN className RPAREN | MODOPT LPAREN className RPAREN | arrayPostFix)* ; arrayPostFix: LBRACK bounds RBRACK ; bounds: // EMPTY | bound (COMMA bound)* ; bound: TRIPLE_DOT | int32 | (int32 TRIPLE_DOT int32) | int32 TRIPLE_DOT ; ownerType : typeSpec | memberRef ; memberRef : METHOD callConv type typeSpec DOUBLE_COLON methodName LPAREN signatureArguments RPAREN | METHOD callConv type methodName LPAREN signatureArguments RPAREN | FIELD type typeSpec DOUBLE_COLON id | FIELD type id ; nativeType: nativeTypeRoot nativeTypePostFix ; nativeTypeRoot: // EMPTY | CUSTOM LPAREN ( compQString (COMMA compQString)* ) RPAREN | FIXED SYSSTRING LBRACK int32 RBRACK | FIXED ARRAY LBRACK int32 RBRACK | VARIANT | CURRENCY | SYSCHAR | VOID | BOOL | INT8 | INT16 | INT32 | INT64 | FLOAT32 | FLOAT64 | ERROR | UNSIGNED INT8 | UNSIGNED INT16 | UNSIGNED INT32 | UNSIGNED INT64 | DECIMAL | DATE | BSTR | LPSTR | LPWSTR | LPTSTR | OBJECTREF | IUNKNOWN | IDISPATCH | STRUCT | INTERFACE | SAFEARRAY variantType COMMA compQString | SAFEARRAY variantType | INT | UNSIGNED INT | NESTED STRUCT | BYVALSTR | ANSI BSTR | TBSTR | VARIANT BOOL | METHOD | AS ANY | LPSTRUCT ; nativeTypePostFix: (STAR | LBRACK RBRACK | LBRACK int32 PLUS int32 RBRACK | LBRACK int32 RBRACK | LBRACK PLUS int32 RBRACK)* ; variantType: variantTypeRoot variantTypePostFix ; variantTypeRoot: NULL | VARIANT | CURRENCY | VOID | BOOL | INT8 | INT16 | INT32 | INT64 | FLOAT32 | FLOAT64 | UNSIGNED INT8 | UNSIGNED INT16 | UNSIGNED INT32 | UNSIGNED INT64 | STAR | DECIMAL | DATE | BSTR | LPSTR | LPWSTR | IUNKNOWN | IDISPATCH | SAFEARRAY | INT | UNSIGNED INT | ERROR | HRESULT | CARRAY | USERDEFINED | RECORD | FILETIME | BLOB | STREAM | STORAGE | STREAMED_OBJECT | BLOB_OBJECT | CF | CLSID ; variantTypePostFix: (LBRACK RBRACK | REF | VECTOR)* ; typeSpec : className | type ; callConv: (INSTANCE (EXPLICIT)? callKind)? ; callKind : (DEFAULT | VARARG | UNMANAGED ( CDECL | STDCALL | THISCALL | FASTCALL) )? ; // instruction instr : (instr_none | instr_var (int32 | id) | instr_i int32 | instr_i8 int64 | instr_r float64 | instr_r int64 | instr_r LPAREN bytes RPAREN | instr_brtarget int32 | instr_brtarget id | instr_method callConv type typeSpec DOUBLE_COLON methodName LPAREN signatureArguments RPAREN | instr_method callConv type methodName LPAREN signatureArguments RPAREN | instr_field type typeSpec DOUBLE_COLON id | instr_field type id | instr_type typeSpec | instr_string compQString | instr_string BYTEARRAY LPAREN bytes RPAREN | instr_sig callConv type LPAREN signatureArguments RPAREN | instr_tok ownerType | instr_switch LPAREN labels RPAREN) ; // switch labels labels : // EMPTY | (id|int32) (COMMA (id|int32))* ; // instruction list instr_none : ADD | ADD_OVF | ADD_OVF_UN | AND | ARGLIST | BREAK | CEQ | CGT | CGT_UN | CKFINITE | CLT | CLT_UN | CONV_I | CONV_I1 | CONV_I2 | CONV_I4 | CONV_I8 | CONV_OVF_I | CONV_OVF_I_UN | CONV_OVF_I1 | CONV_OVF_I1_UN | CONV_OVF_I2 | CONV_OVF_I2_UN | CONV_OVF_I4 | CONV_OVF_I4_UN | CONV_OVF_I8 | CONV_OVF_I8_UN | CONV_OVF_U | CONV_OVF_U_UN | CONV_OVF_U1 | CONV_OVF_U1_UN | CONV_OVF_U2 | CONV_OVF_U2_UN | CONV_OVF_U4 | CONV_OVF_U4_UN | CONV_OVF_U8 | CONV_OVF_U8_UN | CONV_R_UN | CONV_R4 | CONV_R8 | CONV_U | CONV_U1 | CONV_U2 | CONV_U4 | CONV_U8 | CPBLK | DIV | DIV_UN | DUP | ENDFAULT | ENDFILTER | ENDFINALLY | INITBLK | LDARG_0 | LDARG_1 | LDARG_2 | LDARG_3 | LDC_I4_0 | LDC_I4_1 | LDC_I4_2 | LDC_I4_3 | LDC_I4_4 | LDC_I4_5 | LDC_I4_6 | LDC_I4_7 | LDC_I4_8 | LDC_I4_M1 | LDELEM_I | LDELEM_I1 | LDELEM_I2 | LDELEM_I4 | LDELEM_I8 | LDELEM_R4 | LDELEM_R8 | LDELEM_REF | LDELEM_U1 | LDELEM_U2 | LDELEM_U4 | LDIND_I | LDIND_I1 | LDIND_I2 | LDIND_I4 | LDIND_I8 | LDIND_R4 | LDIND_R8 | LDIND_REF | LDIND_U1 | LDIND_U2 | LDIND_U4 | LDLEN | LDLOC_0 | LDLOC_1 | LDLOC_2 | LDLOC_3 | LDNULL | LOCALLOC | MUL | MUL_OVF | MUL_OVF_UN | NEG | NOP | NOT | OR | POP | REFANYTYPE | REM | REM_UN | RET | RETHROW | SHL | SHR | SHR_UN | STELEM_I | STELEM_I1 | STELEM_I2 | STELEM_I4 | STELEM_I8 | STELEM_R4 | STELEM_R8 | STELEM_REF | STIND_I | STIND_I1 | STIND_I2 | STIND_I4 | STIND_I8 | STIND_R4 | STIND_R8 | STIND_REF | STLOC_0 | STLOC_1 | STLOC_2 | STLOC_3 | SUB | SUB_OVF | SUB_OVF_UN | TAIL_ | THROW | VOLATILE_ | XOR ; instr_var: LDARG | LDARG_S | LDARGA | LDARGA_S | LDLOC | LDLOC_S | LDLOCA | LDLOCA_S | STARG | STARG_S | STLOC | STLOC_S ; instr_i : LDC_I4 | LDC_I4_S | UNALIGNED_ ; instr_i8 : LDC_I8 ; instr_r : LDC_R4 | LDC_R8 ; instr_brtarget : BEQ | BEQ_S | BGE | BGE_S | BGE_UN | BGE_UN_S | BGT | BGT_S | BGT_UN | BGT_UN_S | BLE | BLE_S | BLE_UN | BLE_UN_S | BLT | BLT_S | BLT_UN | BLT_UN_S | BNE_UN | BNE_UN_S | BR | BR_S | BRFALSE | BRFALSE_S | BRTRUE | BRTRUE_S | LEAVE | LEAVE_S ; instr_method : CALL | CALLVIRT | JMP | LDFTN | LDVIRTFTN | NEWOBJ ; instr_field : LDFLD | LDFLDA | LDSFLD | LDSFLDA | STFLD | STSFLD ; instr_type : BOX | CASTCLASS | CPOBJ | INITOBJ | ISINST | LDELEMA | LDOBJ | MKREFANY | NEWARR | REFANYVAL | SIZEOF | STOBJ | UNBOX ; instr_string : LDSTR ; instr_sig : CALLI ; instr_tok : LDTOKEN ; instr_switch : SWITCH ; // base types id: ID | SQSTRING ; // dotted name (id . id . id...) name :id (DOTid )* ; compQString :DQSTRING (PLUSDQSTRING )* ; className : LBRACK DOT_MODULE name RBRACK slashedName | LBRACK name RBRACK slashedName | slashedName ; classNames: className (COMMA className)* ; slashedName: name (SLASH name)* ; int32: INTEGER_LITERAL ; int64: INTEGER_LITERAL ; float64: FLOAT_LITERAL | FLOAT32 LPAREN int32 RPAREN | FLOAT64 LPAREN int64 RPAREN ; truefalse : TRUE | FALSE ; bytes : ( hex_byte )* ; hex_byte : (ID |HEX_BYTE |INTEGER_LITERAL ) ; DOT_ASSEMBLY : '.assembly'; DOT_ADDON : '.addon'; DOT_CCTOR : '.cctor'; DOT_CLASS : '.class'; DOT_CAPABILITY : '.capability'; DOT_CORFLAGS : '.corflags'; DOT_CTOR : '.ctor'; DOT_CUSTOM : '.custom'; DOT_DATA : '.data'; DOT_EMITBYTE : '.emitbyte'; DOT_ENTRYPOINT : '.entrypoint'; DOT_EVENT : '.event'; DOT_EXPORT : '.export'; DOT_FIELD : '.field'; DOT_FILE : '.file'; DOT_FIRE : '.fire'; DOT_GET : '.get'; DOT_HASH : '.hash'; DOT_IMAGEBASE : '.imagebase'; DOT_IMPORT : '.import'; DOT_LANGUAGE : '.language'; DOT_LINE : '.line'; DOT_LOCALE : '.locale'; DOT_LOCALIZED : '.localized'; DOT_LOCALS : '.locals'; DOT_MANIFESTRES : '.manifestres'; DOT_MAXSTACK : '.maxstack'; DOT_METHOD : '.method'; DOT_MODULE : '.module'; DOT_MRESOURCE : '.mresource'; DOT_NAMESPACE : '.namespace'; DOT_OTHER : '.other'; DOT_OVERRIDE : '.override'; DOT_PACK : '.pack'; DOT_PARAM : '.param'; DOT_PDIRECT : '.pdirect'; DOT_PERMISSION : '.permission'; DOT_PERMISSIONSET : '.permissionset'; DOT_PROPERTY : '.property'; DOT_PUBLICKEY : '.publickey'; DOT_PUBLICKEYTOKEN : '.publickeytoken'; DOT_REMOVEON : '.removeon'; DOT_SET : '.set'; DOT_SIZE : '.size'; DOT_SUBSYSTEM : '.subsystem'; DOT_TRY : '.try'; DOT_VER : '.ver'; DOT_VTABLE : '.vtable'; DOT_VTENTRY : '.vtentry'; DOT_VTFIXUP : '.vtfixup'; DOT_ZEROINIT : '.zeroinit'; ABSTRACT : 'abstract'; ADD : 'add'; ADD_OVF : 'add.ovf'; ADD_OVF_UN : 'add.ovf.un'; ALGORITHM : 'algorithm'; ALIGNMENT : 'alignment'; AND : 'and'; ANSI : 'ansi'; ANY : 'any'; ARGLIST : 'arglist'; ARRAY : 'array'; AS : 'as'; ASSEMBLY : 'assembly'; ASSERT : 'assert'; AT : 'at'; AUTO : 'auto'; AUTOCHAR : 'autochar'; BEFOREFIELDINIT : 'beforefieldinit'; BEQ : 'beq'; BEQ_S : 'beq.s'; BGE : 'bge'; BGE_S : 'bge.s'; BGE_UN : 'bge.un'; BGE_UN_S : 'bge.un.s'; BGT : 'bgt'; BGT_S : 'bgt.s'; BGT_UN : 'bgt.un'; BGT_UN_S : 'bgt.un.s'; BLE : 'ble'; BLE_S : 'ble.s'; BLE_UN : 'ble.un'; BLE_UN_S : 'ble.un.s'; BLOB : 'blob'; BLOB_OBJECT : 'blob_object'; BLT : 'blt'; BLT_S : 'blt.s'; BLT_UN : 'blt.un'; BLT_UN_S : 'blt.un.s'; BNE_UN : 'bne.un'; BNE_UN_S : 'bne.un.s'; BOOL : 'bool'; BOX : 'box'; BR : 'br'; BR_S : 'br.s'; BREAK : 'break'; BRFALSE : 'brfalse'; BRFALSE_S : 'brfalse.s'; BRINST : 'brinst'; BRINST_S : 'brinst.s'; BRNULL : 'brnull'; BRNULL_S : 'brnull.s'; BRTRUE : 'brtrue'; BRTRUE_S : 'brtrue.s'; BRZERO : 'brzero'; BRZERO_S : 'brzero.s'; BSTR : 'bstr'; BYTEARRAY : 'bytearray'; BYVALSTR : 'byvalstr'; CALL : 'call'; CALLI : 'calli'; CALLMOSTDERIVED : 'callmostderived'; CALLVIRT : 'callvirt'; CARRAY : 'carray'; CASTCLASS : 'castclass'; CATCH : 'catch'; CDECL : 'cdecl'; CEQ : 'ceq'; CF : 'cf'; CGT : 'cgt'; CGT_UN : 'cgt.un'; CHAR : 'char'; CIL : 'cil'; CKFINITE : 'ckfinite'; CLASS : 'class'; CLSID : 'clsid'; CLT : 'clt'; CLT_UN : 'clt.un'; CONST : 'const'; CONV_I : 'conv.i'; CONV_I1 : 'conv.i1'; CONV_I2 : 'conv.i2'; CONV_I4 : 'conv.i4'; CONV_I8 : 'conv.i8'; CONV_OVF_I : 'conv.ovf.i'; CONV_OVF_I_UN : 'conv.ovf.i.un'; CONV_OVF_I1 : 'conv.ovf.i1'; CONV_OVF_I1_UN : 'conv.ovf.i1.un'; CONV_OVF_I2 : 'conv.ovf.i2'; CONV_OVF_I2_UN : 'conv.ovf.i2.un'; CONV_OVF_I4 : 'conv.ovf.i4'; CONV_OVF_I4_UN : 'conv.ovf.i4.un'; CONV_OVF_I8 : 'conv.ovf.i8'; CONV_OVF_I8_UN : 'conv.ovf.i8.un'; CONV_OVF_U : 'conv.ovf.u'; CONV_OVF_U_UN : 'conv.ovf.u.un'; CONV_OVF_U1 : 'conv.ovf.u1'; CONV_OVF_U1_UN : 'conv.ovf.u1.un'; CONV_OVF_U2 : 'conv.ovf.u2'; CONV_OVF_U2_UN : 'conv.ovf.u2.un'; CONV_OVF_U4 : 'conv.ovf.u4'; CONV_OVF_U4_UN : 'conv.ovf.u4.un'; CONV_OVF_U8 : 'conv.ovf.u8'; CONV_OVF_U8_UN : 'conv.ovf.u8.un'; CONV_R_UN : 'conv.r.un'; CONV_R4 : 'conv.r4'; CONV_R8 : 'conv.r8'; CONV_U : 'conv.u'; CONV_U1 : 'conv.u1'; CONV_U2 : 'conv.u2'; CONV_U4 : 'conv.u4'; CONV_U8 : 'conv.u8'; CPBLK : 'cpblk'; CPOBJ : 'cpobj'; CURRENCY : 'currency'; CUSTOM : 'custom'; DATE : 'date'; DECIMAL : 'decimal'; DEFAULT : 'default'; DEMAND : 'demand'; DENY : 'deny'; DIV : 'div'; DIV_UN : 'div.un'; DUP : 'dup'; ENDFAULT : 'endfault'; ENDFILTER : 'endfilter'; ENDFINALLY : 'endfinally'; ENDMAC : 'endmac'; ENUM : 'enum'; ERROR : 'error'; EXPLICIT : 'explicit'; EXTENDS : 'extends'; EXTERN : 'extern'; FALSE : 'false'; FAMANDASSEM : 'famandassem'; FAMILY : 'family'; FAMORASSEM : 'famorassem'; FASTCALL : 'fastcall'; FAULT : 'fault'; FIELD : 'field'; FILETIME : 'filetime'; FILTER : 'filter'; FINAL : 'final'; FINALLY : 'finally'; FIXED : 'fixed'; FLOAT : 'float'; FLOAT32 : 'float32'; FLOAT64 : 'float64'; FORWARDREF : 'forwardref'; FROMUNMANAGED : 'fromunmanaged'; HANDLER : 'handler'; HIDEBYSIG : 'hidebysig'; HRESULT : 'hresult'; IDISPATCH : 'idispatch'; IL : 'il'; ILLEGAL : 'illegal'; IMPLEMENTS : 'implements'; IMPLICITCOM : 'implicitcom'; IMPLICITRES : 'implicitres'; IMPORT : 'import'; IN : 'in'; INHERITCHECK : 'inheritcheck'; INIT : 'init'; INITBLK : 'initblk'; INITOBJ : 'initobj'; INITONLY : 'initonly'; INSTANCE : 'instance'; INT : 'int'; INT16 : 'int16'; INT32 : 'int32'; INT64 : 'int64'; INT8 : 'int8'; INTERFACE : 'interface'; INTERNALCALL : 'internalcall'; ISINST : 'isinst'; IUNKNOWN : 'iunknown'; JMP : 'jmp'; LASTERR : 'lasterr'; LCID : 'lcid'; LDARG : 'ldarg'; LDARG_0 : 'ldarg.0'; LDARG_1 : 'ldarg.1'; LDARG_2 : 'ldarg.2'; LDARG_3 : 'ldarg.3'; LDARG_S : 'ldarg.s'; LDARGA : 'ldarga'; LDARGA_S : 'ldarga.s'; LDC_I4 : 'ldc.i4'; LDC_I4_0 : 'ldc.i4.0'; LDC_I4_1 : 'ldc.i4.1'; LDC_I4_2 : 'ldc.i4.2'; LDC_I4_3 : 'ldc.i4.3'; LDC_I4_4 : 'ldc.i4.4'; LDC_I4_5 : 'ldc.i4.5'; LDC_I4_6 : 'ldc.i4.6'; LDC_I4_7 : 'ldc.i4.7'; LDC_I4_8 : 'ldc.i4.8'; LDC_I4_M1 : 'ldc.i4.m1'; LDC_I4_S : 'ldc.i4.s'; LDC_I8 : 'ldc.i8'; LDC_R4 : 'ldc.r4'; LDC_R8 : 'ldc.r8'; LDELEM_I : 'ldelem.i'; LDELEM_I1 : 'ldelem.i1'; LDELEM_I2 : 'ldelem.i2'; LDELEM_I4 : 'ldelem.i4'; LDELEM_I8 : 'ldelem.i8'; LDELEM_R4 : 'ldelem.r4'; LDELEM_R8 : 'ldelem.r8'; LDELEM_REF : 'ldelem.ref'; LDELEM_U1 : 'ldelem.u1'; LDELEM_U2 : 'ldelem.u2'; LDELEM_U4 : 'ldelem.u4'; LDELEM_U8 : 'ldelem.u8'; LDELEMA : 'ldelema'; LDFLD : 'ldfld'; LDFLDA : 'ldflda'; LDFTN : 'ldftn'; LDIND_I : 'ldind.i'; LDIND_I1 : 'ldind.i1'; LDIND_I2 : 'ldind.i2'; LDIND_I4 : 'ldind.i4'; LDIND_I8 : 'ldind.i8'; LDIND_R4 : 'ldind.r4'; LDIND_R8 : 'ldind.r8'; LDIND_REF : 'ldind.ref'; LDIND_U1 : 'ldind.u1'; LDIND_U2 : 'ldind.u2'; LDIND_U4 : 'ldind.u4'; LDIND_U8 : 'ldind.u8'; LDLEN : 'ldlen'; LDLOC : 'ldloc'; LDLOC_0 : 'ldloc.0'; LDLOC_1 : 'ldloc.1'; LDLOC_2 : 'ldloc.2'; LDLOC_3 : 'ldloc.3'; LDLOC_S : 'ldloc.s'; LDLOCA : 'ldloca'; LDLOCA_S : 'ldloca.s'; LDNULL : 'ldnull'; LDOBJ : 'ldobj'; LDSFLD : 'ldsfld'; LDSFLDA : 'ldsflda'; LDSTR : 'ldstr'; LDTOKEN : 'ldtoken'; LDVIRTFTN : 'ldvirtftn'; LEAVE : 'leave'; LEAVE_S : 'leave.s'; LINKCHECK : 'linkcheck'; LITERAL : 'literal'; LOCALLOC : 'localloc'; LPSTR : 'lpstr'; LPSTRUCT : 'lpstruct'; LPTSTR : 'lptstr'; LPVOID : 'lpvoid'; LPWSTR : 'lpwstr'; MANAGED : 'managed'; MARSHAL : 'marshal'; METHOD : 'method'; MKREFANY : 'mkrefany'; MODOPT : 'modopt'; MODREQ : 'modreq'; MUL : 'mul'; MUL_OVF : 'mul.ovf'; MUL_OVF_UN : 'mul.ovf.un'; NATIVE : 'native'; NEG : 'neg'; NESTED : 'nested'; NEWARR : 'newarr'; NEWOBJ : 'newobj'; NEWSLOT : 'newslot'; NOAPPDOMAIN : 'noappdomain'; NOINLINING : 'noinlining'; NOMACHINE : 'nomachine'; NOMANGLE : 'nomangle'; NOMETADATA : 'nometadata'; NONCASDEMAND : 'noncasdemand'; NONCASINHERITANCE : 'noncasinheritance'; NONCASLINKDEMAND : 'noncaslinkdemand'; NOP : 'nop'; NOPROCESS : 'noprocess'; NOT : 'not'; NOT_IN_GC_HEAP : 'not_in_gc_heap'; NOTREMOTABLE : 'notremotable'; NOTSERIALIZED : 'notserialized'; NULL : 'null'; NULLREF : 'nullref'; OBJECT : 'object'; OBJECTREF : 'objectref'; OPT : 'opt'; OPTIL : 'optil'; OR : 'or'; OUT : 'out'; PERMITONLY : 'permitonly'; PINNED : 'pinned'; PINVOKEIMPL : 'pinvokeimpl'; POP : 'pop'; PREFIX1 : 'prefix1'; PREFIX2 : 'prefix2'; PREFIX3 : 'prefix3'; PREFIX4 : 'prefix4'; PREFIX5 : 'prefix5'; PREFIX6 : 'prefix6'; PREFIX7 : 'prefix7'; PREFIXREF : 'prefixref'; PREJITDENY : 'prejitdeny'; PREJITGRANT : 'prejitgrant'; PRESERVESIG : 'preservesig'; PRIVATE : 'private'; PRIVATESCOPE : 'privatescope'; PROTECTED : 'protected'; PUBLIC : 'public'; READONLY : 'readonly'; RECORD : 'record'; REFANY : 'refany'; REFANYTYPE : 'refanytype'; REFANYVAL : 'refanyval'; REM : 'rem'; REM_UN : 'rem.un'; REQMIN : 'reqmin'; REQOPT : 'reqopt'; REQREFUSE : 'reqrefuse'; REQSECOBJ : 'reqsecobj'; REQUEST : 'request'; RET : 'ret'; RETHROW : 'rethrow'; RETVAL : 'retval'; RTSPECIALNAME : 'rtspecialname'; RUNTIME : 'runtime'; SAFEARRAY : 'safearray'; SEALED : 'sealed'; SEQUENTIAL : 'sequential'; SERIALIZABLE : 'serializable'; SHL : 'shl'; SHR : 'shr'; SHR_UN : 'shr.un'; SIZEOF : 'sizeof'; SPECIAL : 'special'; SPECIALNAME : 'specialname'; STARG : 'starg'; STARG_S : 'starg.s'; STATIC : 'static'; STDCALL : 'stdcall'; STELEM_I : 'stelem.i'; STELEM_I1 : 'stelem.i1'; STELEM_I2 : 'stelem.i2'; STELEM_I4 : 'stelem.i4'; STELEM_I8 : 'stelem.i8'; STELEM_R4 : 'stelem.r4'; STELEM_R8 : 'stelem.r8'; STELEM_REF : 'stelem.ref'; STFLD : 'stfld'; STIND_I : 'stind.i'; STIND_I1 : 'stind.i1'; STIND_I2 : 'stind.i2'; STIND_I4 : 'stind.i4'; STIND_I8 : 'stind.i8'; STIND_R4 : 'stind.r4'; STIND_R8 : 'stind.r8'; STIND_REF : 'stind.ref'; STLOC : 'stloc'; STLOC_0 : 'stloc.0'; STLOC_1 : 'stloc.1'; STLOC_2 : 'stloc.2'; STLOC_3 : 'stloc.3'; STLOC_S : 'stloc.s'; STOBJ : 'stobj'; STORAGE : 'storage'; STORED_OBJECT : 'stored_object'; STREAM : 'stream'; STREAMED_OBJECT : 'streamed_object'; STRING : 'string'; STRUCT : 'struct'; STSFLD : 'stsfld'; SUB : 'sub'; SUB_OVF : 'sub.ovf'; SUB_OVF_UN : 'sub.ovf.un'; SWITCH : 'switch'; SYNCHRONIZED : 'synchronized'; SYSCHAR : 'syschar'; SYSSTRING : 'sysstring'; TAIL_ : 'tail.'; TBSTR : 'tbstr'; THISCALL : 'thiscall'; THROW : 'throw'; TLS : 'tls'; TO : 'to'; TRUE : 'true'; TYPEDREF : 'typedref'; UNALIGNED_ : 'unaligned.'; UNBOX : 'unbox'; UNICODE : 'unicode'; UNMANAGED : 'unmanaged'; UNMANAGEDEXP : 'unmanagedexp'; UNSIGNED : 'unsigned'; UNUSED : 'unused'; USERDEFINED : 'userdefined'; VALUE : 'value'; VALUETYPE : 'valuetype'; VARARG : 'vararg'; VARIANT : 'variant'; VECTOR : 'vector'; VIRTUAL : 'virtual'; VOID : 'void'; VOLATILE_ : 'volatile.'; WCHAR : 'wchar'; WINAPI : 'winapi'; WITH : 'with'; WRAPPER : 'wrapper'; XOR : 'xor'; STRICT : 'strict'; CHAR_SEQUENCE: DOT ( (DIGIT)+ (EXPONENT)? | LETTER (LETTER|DIGIT|'$'|'_'|DOT)* | DOT DOT ) | ('_'|'?'|LETTER) (LETTER|DIGIT|'$'|'_'|DOT)* | ('-')? DIGIT ( ('a'..'f'|'A'..'F') | (DIGIT)* ( ({LA(2) != '.'}? DOT (DIGIT)* (EXPONENT)? )? | EXPONENT ) | ('x'|'X') (HEX_DIGIT)+ ) ; EXPONENT: ('e'|'E') ('+'|'-')? (DIGIT)+ ; HEX_DIGIT: (DIGIT|'a'..'f'|'A'..'F') ; DIGIT: '0'..'9' ; LETTER: ('a'..'z'|'A'..'Z') ; // Symbols //QUESTION options { paraphrase = "?"; } : '?' ; LPAREN : '(' ; RPAREN : ')' ; LBRACK : '[' ; RBRACK : ']' ; LCURLY : '{' ; RCURLY : '}' ; COLON : ':' ; COMMA : ',' ; EQUAL : '=' ; PLUS : '+' ; MINUS : '-' ; STAR : '*' ; SEMI : ';' ; LESS : '<' ; GREATER : '>' ; SLASH : '/' ; REF : '&' ; EXCLAM : '!' ; TRIPLE_DOT : '...' ; DOUBLE_COLON : '::' ; DOT : '.' ; // Simple string like "message". DQSTRING: '"'! (ESC|~('"'|'\\'))* '"'! ; SQSTRING: '\''! (ESC|~('\''|'\\'))* '\''! ; VOCAB: '\3' .. '\377' ; ESC : '\\' ( 'n' | 'r' | 't' | 'b' | 'f' | '"' | '\'' | '\\' | '?' | ('u')+ HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT // unicode | ('x'|'X') HEX_DIGIT HEX_DIGIT | ('0'..'3') ( ('0'..'7') ( '0'..'7' )? )? | ('4'..'7') ( ('0'..'9') )? ) ; // Whitespace -- ignored WS : ( ' ' | '\t' | '\f' // handle newlines | ( '\r\n' // Evil DOS | '\r' // Macintosh | '\n' // Unix (the right way) ) )+ ; // Single-line comments SL_COMMENT : '//' (~('\n'|'\r'))* ('\n'|'\r'('\n')?)? ; // multiple-line comments ML_COMMENT : '/*' ( { LA(2)!='/' }? '*' | '\r' '\n' | '\r' | '\n' | ~('*'|'\n'|'\r') )* '*/' ;
src/util/icon/asm_cellcopy.asm
olifink/qspread
0
819
<gh_stars>0 * Sprite cellcopy * * Mode 4 * +|-------------------+ * -wwwwwwwwwww - * |wrrrrrrrrrw | * |wrrrrrrrrrw | * |wrrrrrrrrrw | * |wrrrrwwrrrw | * |wrrrwaawwrw | * |wrrrrwwaaww www | * |wrrrrrrwwaawwaawwwww| * |wwwwwwwwwwwaaaawrrrw| * | waaaaaawrrrw| * | wwwwwwwwrrrw| * | wrrrrrrrrrw| * | wrrrrrrrrrw| * | wrrrrrrrrrw| * | wrrrrrrrrrw| * | wwwwwwwwwww| * +|-------------------+ * section sprite xdef mes_cellcopy xref mes_zero mes_cellcopy dc.w $0100,$0000 dc.w 20,16,0,0 dc.l mcs_cellcopy-* dc.l mes_zero-* dc.l sp_cellcopy-* mcs_cellcopy dc.w $FFFF,$E0E0 dc.w $0000,$0000 dc.w $80FF,$20E0 dc.w $0000,$0000 dc.w $80FF,$20E0 dc.w $0000,$0000 dc.w $80FF,$20E0 dc.w $0000,$0000 dc.w $86FF,$20E0 dc.w $0000,$0000 dc.w $89F9,$A0E0 dc.w $0000,$0000 dc.w $86FE,$6767 dc.w $0000,$0000 dc.w $81FF,$9999 dc.w $F0F0,$0000 dc.w $FFFF,$E1E1 dc.w $10F0,$0000 dc.w $0000,$8181 dc.w $10F0,$0000 dc.w $0000,$FFFF dc.w $10F0,$0000 dc.w $0000,$407F dc.w $10F0,$0000 dc.w $0000,$407F dc.w $10F0,$0000 dc.w $0000,$407F dc.w $10F0,$0000 dc.w $0000,$407F dc.w $10F0,$0000 dc.w $0000,$7F7F dc.w $F0F0,$0000 * sp_cellcopy incbin 'win1_util_icon_asm_cellcopy_spr' end
test/pmulhw.asm
killvxk/AssemblyLine
147
20168
<reponame>killvxk/AssemblyLine SECTION .text GLOBAL test test: pmulhw xmm0, xmm0 pmulhw xmm0, xmm1 pmulhw xmm0, xmm2 pmulhw xmm0, xmm3 pmulhw xmm0, xmm4 pmulhw xmm0, xmm5 pmulhw xmm0, xmm6 pmulhw xmm0, xmm7 pmulhw xmm0, xmm8 pmulhw xmm0, xmm9 pmulhw xmm0, xmm10 pmulhw xmm0, xmm11 pmulhw xmm0, xmm12 pmulhw xmm0, xmm13 pmulhw xmm0, xmm14 pmulhw xmm0, xmm15 pmulhw xmm1, xmm0 pmulhw xmm1, xmm1 pmulhw xmm1, xmm2 pmulhw xmm1, xmm3 pmulhw xmm1, xmm4 pmulhw xmm1, xmm5 pmulhw xmm1, xmm6 pmulhw xmm1, xmm7 pmulhw xmm1, xmm8 pmulhw xmm1, xmm9 pmulhw xmm1, xmm10 pmulhw xmm1, xmm11 pmulhw xmm1, xmm12 pmulhw xmm1, xmm13 pmulhw xmm1, xmm14 pmulhw xmm1, xmm15 pmulhw xmm2, xmm0 pmulhw xmm2, xmm1 pmulhw xmm2, xmm2 pmulhw xmm2, xmm3 pmulhw xmm2, xmm4 pmulhw xmm2, xmm5 pmulhw xmm2, xmm6 pmulhw xmm2, xmm7 pmulhw xmm2, xmm8 pmulhw xmm2, xmm9 pmulhw xmm2, xmm10 pmulhw xmm2, xmm11 pmulhw xmm2, xmm12 pmulhw xmm2, xmm13 pmulhw xmm2, xmm14 pmulhw xmm2, xmm15 pmulhw xmm3, xmm0 pmulhw xmm3, xmm1 pmulhw xmm3, xmm2 pmulhw xmm3, xmm3 pmulhw xmm3, xmm4 pmulhw xmm3, xmm5 pmulhw xmm3, xmm6 pmulhw xmm3, xmm7 pmulhw xmm3, xmm8 pmulhw xmm3, xmm9 pmulhw xmm3, xmm10 pmulhw xmm3, xmm11 pmulhw xmm3, xmm12 pmulhw xmm3, xmm13 pmulhw xmm3, xmm14 pmulhw xmm3, xmm15 pmulhw xmm4, xmm0 pmulhw xmm4, xmm1 pmulhw xmm4, xmm2 pmulhw xmm4, xmm3 pmulhw xmm4, xmm4 pmulhw xmm4, xmm5 pmulhw xmm4, xmm6 pmulhw xmm4, xmm7 pmulhw xmm4, xmm8 pmulhw xmm4, xmm9 pmulhw xmm4, xmm10 pmulhw xmm4, xmm11 pmulhw xmm4, xmm12 pmulhw xmm4, xmm13 pmulhw xmm4, xmm14 pmulhw xmm4, xmm15 pmulhw xmm5, xmm0 pmulhw xmm5, xmm1 pmulhw xmm5, xmm2 pmulhw xmm5, xmm3 pmulhw xmm5, xmm4 pmulhw xmm5, xmm5 pmulhw xmm5, xmm6 pmulhw xmm5, xmm7 pmulhw xmm5, xmm8 pmulhw xmm5, xmm9 pmulhw xmm5, xmm10 pmulhw xmm5, xmm11 pmulhw xmm5, xmm12 pmulhw xmm5, xmm13 pmulhw xmm5, xmm14 pmulhw xmm5, xmm15 pmulhw xmm6, xmm0 pmulhw xmm6, xmm1 pmulhw xmm6, xmm2 pmulhw xmm6, xmm3 pmulhw xmm6, xmm4 pmulhw xmm6, xmm5 pmulhw xmm6, xmm6 pmulhw xmm6, xmm7 pmulhw xmm6, xmm8 pmulhw xmm6, xmm9 pmulhw xmm6, xmm10 pmulhw xmm6, xmm11 pmulhw xmm6, xmm12 pmulhw xmm6, xmm13 pmulhw xmm6, xmm14 pmulhw xmm6, xmm15 pmulhw xmm7, xmm0 pmulhw xmm7, xmm1 pmulhw xmm7, xmm2 pmulhw xmm7, xmm3 pmulhw xmm7, xmm4 pmulhw xmm7, xmm5 pmulhw xmm7, xmm6 pmulhw xmm7, xmm7 pmulhw xmm7, xmm8 pmulhw xmm7, xmm9 pmulhw xmm7, xmm10 pmulhw xmm7, xmm11 pmulhw xmm7, xmm12 pmulhw xmm7, xmm13 pmulhw xmm7, xmm14 pmulhw xmm7, xmm15 pmulhw xmm8, xmm0 pmulhw xmm8, xmm1 pmulhw xmm8, xmm2 pmulhw xmm8, xmm3 pmulhw xmm8, xmm4 pmulhw xmm8, xmm5 pmulhw xmm8, xmm6 pmulhw xmm8, xmm7 pmulhw xmm8, xmm8 pmulhw xmm8, xmm9 pmulhw xmm8, xmm10 pmulhw xmm8, xmm11 pmulhw xmm8, xmm12 pmulhw xmm8, xmm13 pmulhw xmm8, xmm14 pmulhw xmm8, xmm15 pmulhw xmm9, xmm0 pmulhw xmm9, xmm1 pmulhw xmm9, xmm2 pmulhw xmm9, xmm3 pmulhw xmm9, xmm4 pmulhw xmm9, xmm5 pmulhw xmm9, xmm6 pmulhw xmm9, xmm7 pmulhw xmm9, xmm8 pmulhw xmm9, xmm9 pmulhw xmm9, xmm10 pmulhw xmm9, xmm11 pmulhw xmm9, xmm12 pmulhw xmm9, xmm13 pmulhw xmm9, xmm14 pmulhw xmm9, xmm15 pmulhw xmm10, xmm0 pmulhw xmm10, xmm1 pmulhw xmm10, xmm2 pmulhw xmm10, xmm3 pmulhw xmm10, xmm4 pmulhw xmm10, xmm5 pmulhw xmm10, xmm6 pmulhw xmm10, xmm7 pmulhw xmm10, xmm8 pmulhw xmm10, xmm9 pmulhw xmm10, xmm10 pmulhw xmm10, xmm11 pmulhw xmm10, xmm12 pmulhw xmm10, xmm13 pmulhw xmm10, xmm14 pmulhw xmm10, xmm15 pmulhw xmm11, xmm0 pmulhw xmm11, xmm1 pmulhw xmm11, xmm2 pmulhw xmm11, xmm3 pmulhw xmm11, xmm4 pmulhw xmm11, xmm5 pmulhw xmm11, xmm6 pmulhw xmm11, xmm7 pmulhw xmm11, xmm8 pmulhw xmm11, xmm9 pmulhw xmm11, xmm10 pmulhw xmm11, xmm11 pmulhw xmm11, xmm12 pmulhw xmm11, xmm13 pmulhw xmm11, xmm14 pmulhw xmm11, xmm15 pmulhw xmm12, xmm0 pmulhw xmm12, xmm1 pmulhw xmm12, xmm2 pmulhw xmm12, xmm3 pmulhw xmm12, xmm4 pmulhw xmm12, xmm5 pmulhw xmm12, xmm6 pmulhw xmm12, xmm7 pmulhw xmm12, xmm8 pmulhw xmm12, xmm9 pmulhw xmm12, xmm10 pmulhw xmm12, xmm11 pmulhw xmm12, xmm12 pmulhw xmm12, xmm13 pmulhw xmm12, xmm14 pmulhw xmm12, xmm15 pmulhw xmm13, xmm0 pmulhw xmm13, xmm1 pmulhw xmm13, xmm2 pmulhw xmm13, xmm3 pmulhw xmm13, xmm4 pmulhw xmm13, xmm5 pmulhw xmm13, xmm6 pmulhw xmm13, xmm7 pmulhw xmm13, xmm8 pmulhw xmm13, xmm9 pmulhw xmm13, xmm10 pmulhw xmm13, xmm11 pmulhw xmm13, xmm12 pmulhw xmm13, xmm13 pmulhw xmm13, xmm14 pmulhw xmm13, xmm15 pmulhw xmm14, xmm0 pmulhw xmm14, xmm1 pmulhw xmm14, xmm2 pmulhw xmm14, xmm3 pmulhw xmm14, xmm4 pmulhw xmm14, xmm5 pmulhw xmm14, xmm6 pmulhw xmm14, xmm7 pmulhw xmm14, xmm8 pmulhw xmm14, xmm9 pmulhw xmm14, xmm10 pmulhw xmm14, xmm11 pmulhw xmm14, xmm12 pmulhw xmm14, xmm13 pmulhw xmm14, xmm14 pmulhw xmm14, xmm15 pmulhw xmm0, xmm0 pmulhw xmm0, xmm1 pmulhw xmm0, xmm2 pmulhw xmm0, xmm3 pmulhw xmm0, xmm4 pmulhw xmm0, xmm5 pmulhw xmm0, xmm6 pmulhw xmm0, xmm7 pmulhw xmm0, xmm8 pmulhw xmm0, xmm9 pmulhw xmm0, xmm10 pmulhw xmm0, xmm11 pmulhw xmm0, xmm12 pmulhw xmm0, xmm13 pmulhw xmm0, xmm14 pmulhw xmm0, xmm15
lotlan/LoTLanLexer.g4
iml130/LoTLan
0
6575
<reponame>iml130/LoTLan<gh_stars>0 // Copyright 2020 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. // // 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 // // https://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. lexer grammar LoTLanLexer; TEMPLATE: 'Template ' STARTS_WITH_UPPER_C_STR-> pushMode(BLOCK); TASK: 'Task ' -> pushMode(BLOCK); TRANSPORT_ORDER_STEP: 'TransportOrderStep ' -> pushMode(BLOCK); INSTANCE: STARTS_WITH_UPPER_C_STR ' ' -> pushMode(BLOCK); WHITESPACE: [ \t\r\n]+ -> skip; COMMENT: '#' ~[\n]* -> skip; mode BLOCK; NEW_LINE: [ \t]* '\n'; fragment INDENTATION: (' ' | '\t'); COMMENT_IN_BLOCK : '#' ~[\n]+ -> channel(HIDDEN); COMMENT_LINE_IN_BLOCK : INDENTATION '#' ~[\n]+ '\n'-> channel(HIDDEN); END_IN_BLOCK: 'End' -> popMode; ASSIGNMENT: INDENTATION STARTS_WITH_LOWER_C_STR [ \t\r]* EQUAL [ \t\r]*; // Only For TransportOrderStep LOCATION: INDENTATION 'Location'; PARAMETERS: INDENTATION 'Parameters'; // Only For Task REPEAT: INDENTATION 'Repeat'; CONSTRAINTS: INDENTATION 'Constraints'; TRANSPORT: INDENTATION 'Transport'; FROM: INDENTATION 'From'; TO: INDENTATION 'To'; // Used in both TOS and Task ON_DONE: INDENTATION 'OnDone'; TRIGGERED_BY: INDENTATION 'TriggeredBy'; FINISHED_BY: INDENTATION 'FinishedBy'; EQUAL: '='; COMMA: ','; DOT: '.'; E_LEFT_PARENTHESIS: '('; E_RIGHT_PARENTHESIS: ')'; E_LESS_THAN: '<'; E_LESS_THAN_OR_EQUAL: '<='; E_GREATER_THAN: '>'; E_GREATER_THAN_OR_EQUAL: '>='; E_EQUAL: '=='; E_NOT_EQUAL: '!='; E_BOOLEAN_AND: 'and'; E_BOOLEAN_OR: 'or'; E_BOOLEAN_NOT: '!'; E_TRUE: 'True' | 'TRUE'; E_FALSE: 'False' | 'FALSE'; STARTS_WITH_LOWER_C_STR: [a-z][a-zA-Z0-9_]*; STARTS_WITH_UPPER_C_STR: [A-Z][a-zA-Z0-9_]*; STRING_VALUE: '"' [a-zA-Z0-9_]+ '"'; NUMERIC_VALUE: '"' ['*'' ''/'0-9]+ '"'; EMPTY_VALUE: '""'; INTEGER: [0-9]+; FLOAT: [0-9]+( '.' [0-9]+); WHITESPACE_BLOCK: [ \t\r]+ -> channel(HIDDEN);
programs/oeis/172/A172022.asm
neoneye/loda
22
6469
<reponame>neoneye/loda ; A172022: a(n) = prime(n) + (-1)^n. ; 1,4,4,8,10,14,16,20,22,30,30,38,40,44,46,54,58,62,66,72,72,80,82,90,96,102,102,108,108,114,126,132,136,140,148,152,156,164,166,174,178,182,190,194,196,200,210,224,226,230,232,240,240,252,256,264,268,272,276 mov $1,$0 mul $0,2 mod $0,4 seq $1,40 ; The prime numbers. sub $1,$0 mov $2,$1 add $2,1 add $2,$0 add $0,$2 sub $0,2
programs/oeis/087/A087030.asm
neoneye/loda
22
246106
; A087030: n "reflected" in the next prime: a(n)=2p-n, p is smallest prime > n. ; 3,4,7,6,9,8,15,14,13,12,15,14,21,20,19,18,21,20,27,26,25,24,35,34,33,32,31,30,33,32,43,42,41,40,39,38,45,44,43,42,45,44,51,50,49,48,59,58,57,56,55,54,65,64,63,62,61,60,63,62,73,72,71,70,69,68,75,74,73,72,75,74,85,84,83,82,81,80,87,86,85,84,95,94,93,92,91,90,105,104,103,102,101,100,99,98,105,104,103,102 mov $2,$0 add $0,1 seq $0,308046 ; a(n) = 2*nextprime(n - 1) - 2*n, where nextprime(n) is the smallest prime > n. add $0,3 add $0,$2
oeis/291/A291681.asm
neoneye/loda-programs
11
89898
<gh_stars>10-100 ; A291681: First differences of A067046. ; Submitted by <NAME> ; 1,8,0,25,-7,56,-24,105,-55,176,-104,273,-175,400,-272,561,-399,760,-560,1001,-759,1288,-1000,1625,-1287,2016,-1624,2465,-2015,2976,-2464,3553,-2975,4200,-3552,4921,-4199,5720,-4920,6601,-5719,7568,-6600,8625,-7567,9776,-8624,11025,-9775,12376,-11024,13833,-12375,15400,-13832,17081,-15399,18880,-17080,20801,-18879,22848,-20800,25025,-22847,27336,-25024,29785,-27335,32376,-29784,35113,-32375,38000,-35112,41041,-37999,44240,-41040,47601,-44239,51128,-47600,54825,-51127,58696,-54824,62745,-58695 mov $3,1 lpb $3 add $0,2 mov $2,-2 bin $2,$0 div $2,2 mul $2,2 mov $0,$2 bin $2,3 trn $3,8 lpe sub $0,$2 div $0,2
Code/mips.asm
m-derakhshan/Compiler_991
2
169272
.data backn: .asciiz "\n" .text .globl main
programs/oeis/046/A046065.asm
neoneye/loda
22
6727
<reponame>neoneye/loda ; A046065: a(n) = n^(n+2) - (n+2)^n. ; -1,-2,0,118,2800,61318,1417472,35570638,973741824,29023111918,938082635776,32730551749894,1227224552173568,49239697945731382,2105895743771443200,95663702284183543582,4600926951773050961920,233592048827366522661214,12486092216396078174437376,700960999053042179548175638,41237610501313595955792052224,2537109290987522806041826280038,162935579142806078063919581102080,10903659024767525428999587556174318,759125121696226440725871114321920000 mov $1,$0 add $1,2 mov $2,$0 pow $0,$1 pow $1,$2 sub $0,$1
data/pokemon/base_stats/hoenn/armaldo.asm
Dev727/ancientplatinum
0
91512
<reponame>Dev727/ancientplatinum db 0 ; 348 DEX NO db 75, 125, 100, 45, 70, 80 ; hp atk def spd sat sdf db ROCK, BUG ; type db 45 ; catch rate db 199 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F12_5 ; gender ratio db 100 ; unknown 1 db 30 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/hoenn/armaldo/front.dimensions" db 0, 0, 0, 0 ; padding db GROWTH_ERRATIC ; growth rate dn EGG_WATER_3, EGG_WATER_3 ; egg groups ; tm/hm learnset tmhm ; end
src/tiles08.asm
fjpena/sword-of-ianna-msx2
43
89849
<reponame>fjpena/sword-of-ianna-msx2<filename>src/tiles08.asm<gh_stars>10-100 org $8000 tilestest: INCBIN "tiles_nivel08.SR5.plet1"
6502/draw something.asm
nikosev/gabrielsroka.github.io
70
105447
<gh_stars>10-100 lda #$0a ; red ;sta $0200 ;sta $021f ;sta $0220 ;sta $023f ;sta $05e0 ;sta $05ff sta $0222 sta $0223 sta $0224 sta $0225 sta $022A sta $022B sta $022C sta $022D sta $0231 sta $0236 sta $0239 sta $023A sta $023B sta $023C sta $023D sta $023E sta $0241 sta $0246 sta $0249 sta $024E sta $0251 sta $0252 sta $0255 sta $0256 sta $0259 sta $0261 sta $0269 sta $026A sta $026B sta $026C sta $026D sta $026E sta $0271 sta $0273 sta $0274 sta $0276 sta $0279 sta $027A sta $027B sta $027C sta $027D sta $0281 sta $0285 sta $0286 sta $0289 sta $028E sta $0291 sta $0296 sta $0299 sta $02A1 sta $02A6 sta $02A9 sta $02AE sta $02B1 sta $02B6 sta $02B9 sta $02C2 sta $02C3 sta $02C4 sta $02C5 sta $02C9 sta $02CE sta $02D1 sta $02D6 sta $02D9 sta $02DA sta $02DB sta $02DC sta $02DD sta $02DE sta $0322 sta $0323 sta $0324 sta $0325 sta $0329 sta $032E sta $0331 sta $0332 sta $0333 sta $0334 sta $0335 sta $0336 sta $0339 sta $033A sta $033B sta $033C sta $033D sta $0341 sta $0346 sta $0349 sta $034E sta $0351 sta $0359 sta $035E sta $0361 sta $0366 sta $036A sta $036D sta $0371 sta $0372 sta $0373 sta $0374 sta $0375 sta $0379 sta $037A sta $037B sta $037C sta $037D sta $0381 sta $0386 sta $038A sta $038D sta $0391 sta $0399 sta $039C sta $03A1 sta $03A6 sta $03AB sta $03AC sta $03B1 sta $03B9 sta $03BD sta $03C2 sta $03C3 sta $03C4 sta $03C5 sta $03CB sta $03CC sta $03D1 sta $03D2 sta $03D3 sta $03D4 sta $03D5 sta $03D6 sta $03D9 sta $03DE
CatalinaExporter/ArtifactFinder.applescript
andrewbluepiano/CatalinaForensicsTool
7
712
<gh_stars>1-10 -- Author: <NAME> -- https://github.com/andrewbluepiano/macOS-CatalinaForensicsTool/ -- FSEParser Author, Owner: <NAME> -- https://github.com/dlcowen/FSEventsParser use framework "Foundation" use framework "OSAKit" use scripting additions script ArtifactFinder property parent : class "NSObject" -- Store these values for use in other method calls property shellPassword : missing value property shellPasswordField : missing value -- outputLocation is string of selected path plus macOSArtifacts/ property outputLocation : missing value property outputLocationField : missing value property startTime : current date -- Checkboxes property sysInfo : false property unifLogs : false property instHist : false property fsEvents : false property getMeta : false property diagReport : false property systStartItems : false property crashReporter : false property launchDaemons : false property systemLaunchAgents : false property sleepimage : false property systemPreferences : false property internetPlugins : false -- ToolTips, Offer explanation of options when hovered over property sysTip : "This will gather the system information displayed in system profiler." property unifTip : "Exports the entirety of the unified log. The file will likely be over 1GB." property instHistTip : "History of installed Applications and Updates" property fseventTip : "Exports the FSEvents data as a sqlite db from /.fseventsd/ using David Cowen's FSEventsParser\nhttps://github.com/dlcowen/FSEventsParser\nWARNING: This one takes a while." property getMetaTip : "Because spotlight databases are encrypted, and there is no known reversing method (Papers have been written on the topic).\n\nWe accomplish a backup of file metadata by recursively applying the 'MDLS' command. \n\nYou will be promted for the directory whose contents metadata you want to export." property systStartItemTip : "Collects configurations for system wide startup items from:\n/Library/StartupItems/\n/System/Library/StartupItems/" property diagreportTips : "This will gather the diagnostic reports (crash logs) on the system from:\n/Library/Logs/DiagnosticReports" property crashReporterTip : "Collects crash reports from:\n/Library/Application Support/CrashReporter" property launchDaemonTip : "Collects system launch daemon files from:\n/Library/LaunchDaemons\n/System/Library/LaunchDaemons" property systemLaunchAgentsTip : "Collects system launch agent files from:\n/Library/LaunchAgents\n/System/Library/LaunchAgents" property sleepimageTip : "Backs up the sleepimage file for the system from:\n/private/var/vm/sleepimage\n\nTHIS FILE MAY BE LARGE" property systemPreferencesTip : "Collects System Configuration Preferences from: \n/Library/Preferences/SystemConfiguration" property internetPluginsTips : "Collects Plugin information from: \n/Library/Internet Plugins" -- Runs when the 'choose output folder' button is pressed. on setup:sender set outputLocation to ((POSIX path of (choose folder with prompt "Please select an output folder:")) as string) & "macOSArtifacts/" try do shell script "/bin/ls " & outputLocation display dialog "Existing export detected in that location. Please choose a new one. The program isnt smart enough to deal with this yet." -- display notification "Old folder detected, removing" with title "Progress Alert" on error errMsg number errorNumber -- display dialog ("Error occurred: " & errMsg as text) & " Num: " & errorNumber as text display notification "Creating new output folder" with title "Progress Alert" delay 1 do shell script "/bin/mkdir " & outputLocation outputLocationField's setStringValue_(outputLocation) timeStamp(outputLocation, "Program Start Time", startTime) end try end setup: on testWindow:sender -- Debugging display alert "This does nothing unless you tell it what to do." end testWindow: -- Function to check if provided password is valid on checkPasswd:sender set shellPassword to shellPasswordField's stringValue() as text try do shell script "pwpolicy -p " & shellPassword & " enableuser" do shell script "/bin/echo" with administrator privileges display notification "Auth Success" delay 1 on error errMsg number errorNumber -- display dialog ("Error occurred: " & errMsg as text) & " Num: " & errorNumber as text display alert "Sorry, you've entered an invalid password. Please try again." end try end checkPasswd: -- System Profile Function on systemProfile(sysInfo, outputLocation, shellPassword) if sysInfo as boolean then set fileLocation to outputLocation & "SystemInformation/" set sysProfTime to current date do shell script "mkdir " & fileLocation & " && system_profiler -detailLevel full -xml > " & fileLocation & "SystemProfile.spx" timeStamp(outputLocation, "SystemProfile.spx", sysProfTime) display notification "System Profiled" end if end systemProfile -- Unified Logs Function on getUnifLogs(unifLogs, outputLocation, shellPassword) if unifLogs as boolean then set fileLocation to outputLocation & "UnifiedLogs/" set unifLogTime to current date do shell script "mkdir " & fileLocation & " && log collect --output " & fileLocation & "unifLogs.logarchive" password shellPassword with administrator privileges timeStamp(outputLocation, "unifLogs.logarchive", unifLogTime) display notification "Logs Unified" end if end getLogs -- Install History Function on getInstallHist(instHist, outputLocation, shellPassword) if instHist as boolean then set fileLocation to outputLocation & "InstallationHistory/" set instHistTime to current date -- p flag must be used for CP to keep metadata intact. do shell script "mkdir " & fileLocation & " && cp -p /Library/Receipts/InstallHistory.plist " & fileLocation timeStamp(outputLocation, "InstallHistory.plist", instHistTime) end if end getInstallHist -- Get system startup items function on getSystStartItems(systStartItems, outputLocation, shellPassword) if systStartItems as boolean then set fileLocationZero to outputLocation & "SystemStartupItems/" set fileLocationOne to outputLocation & "SystemStartupItems/Library-StartupItems/" set fileLocationTwo to outputLocation & "SystemStartupItems/System-Library-StartupItems/" set getSystemStartItemsTime to current date -- p flag must be used for CP to keep metadata intact. do shell script "mkdir " & fileLocationZero & "" do shell script "mkdir " & fileLocationOne & " && cp -p -r /Library/StartupItems/ " & fileLocationOne do shell script "mkdir " & fileLocationTwo & " && cp -p -r /System/Library/StartupItems/ " & fileLocationTwo timeStamp(outputLocation, "System StartupItems", getSystemStartItemsTime) end if end getSystStartItems -- Parse FS Events Function on fsEventsParse(fsEvents, outputLocation, shellPassword) if fsEvents as boolean then set fileLocation to outputLocation & "FSEventsData/" set fsEventTime to current date set appLocation to current application's NSBundle's mainBundle()'s resourcePath() as text do shell script "mkdir " & fileLocation set theCommand to ((quoted form of (appLocation & "/FSEventsParser/FSEParser_V4")) & " -s /.fseventsd/ -o " & fileLocation & " -t folder") do shell script theCommand password shellPassword with administrator privileges timeStamp(outputLocation, "FSEventsData", fsEventTime) end if end fsEventsParse -- Retrieve Metadata function on getMetaData(getMeta, outputLocation, shellPassword) -- maybe PlistBuddy needs to get involved if getMeta as boolean then display alert "METADATA FUNCTION WARNING" message "This function is recursive throughout the entire directory selected. It will follow aliases, symlinks, whatever. So this will take a long time for folders with lots of items. \n\nIf you select a directory whose contents you arent aware of, there is a high potential to end up scanning the entire filesystem. \n\n Also, this function is a bit wonky. MDLS didnt want to accept the 'with administrator permissions' flag. So that didnt happen. I dont know how much that will effect what this is able to record.\n\nBe careful, youve been warned.\n\n " set metaDataStartTime to current date set fileLocation to outputLocation & "MetaData/" set outputFileLocation to outputLocation & "MetaData/metadata.plist" do shell script "mkdir " & fileLocation set appLocation to (current application's NSBundle's mainBundle()'s resourcePath() as text) set scriptLocation to appLocation & "/subScripts/getEverything.scpt" set getEverything to load script current application's POSIX file scriptLocation tell getEverything set allContents to runGet() end tell -- everything is POSIX paths of stuff -- set metaDataDict to {} tell application "System Events" set metaDataDict to make new property list item with properties {kind:record} set metaDataFilePath to (fileLocation & "MetaData.plist") set metaDataFile to make new property list file with properties {contents:metaDataDict, name:metaDataFilePath} end tell set a to 0 repeat with oneFile in allContents -- display alert (quoted form of oneFile) set mdlsCmd to ("mdls " & quoted form of oneFile & " -plist " & quoted form of (appLocation & "/tmp.plist")) try do shell script mdlsCmd do shell script "/usr/libexec/PlistBuddy -c \"Add :" & a & " dict\" " & outputFileLocation do shell script "/usr/libexec/PlistBuddy -c \"Add :" & a & ":FilePath string "& quoted form of oneFile &"\" " & outputFileLocation do shell script "/usr/libexec/PlistBuddy -c \"Merge " & quoted form of (appLocation & "/tmp.plist") & " :" & a & " \" " & outputFileLocation set a to (a + 1) on error errMsg number errorNumber -- display notification "Error occurred: " & errMsg as text & " Num: " & errorNumber as text end try end repeat timeStamp(outputLocation, "metadata backup start time", metaDataStartTime) end if end getMetaData -- Get Diagnostics Reports on getDiagnosticReports(diagReport, outputLocation, shellPassword) if diagReport as boolean then set fileLocation to outputLocation & "/DiagnosticReports" set diagReportTime to current date -- p flag must be used for CP to keep metadata intact. do shell script "mkdir " & fileLocation & " && cp -pr /Library/Logs/DiagnosticReports " & fileLocation timeStamp(outputLocation, "DiagnosticReports", diagReportTime) end if end getDiagnosticReports -- Get CrashReporter data on getCrashReporter(crashReporter, outputLocation, shellPassword) if crashReporter as boolean then set fileLocation to outputLocation & "/CrashReporter" set crashReporterTime to current date -- p flag must be used for CP to keep metadata intact. do shell script "mkdir " & fileLocation & " && cp -pr \"/Library/Application Support/CrashReporter\" " & fileLocation timeStamp(outputLocation, "CrashReporter", crashReporterTime) end if end getCrashReporter -- Get launch daemon files on getLaunchDaemons(launchDaemons, outputLocation, shellPassword) if launchDaemons as boolean then set fileLocationZero to outputLocation & "SystemLaunchDaemons/" set fileLocationOne to outputLocation & "SystemLaunchDaemons/Library-LaunchDaemons/" set fileLocationTwo to outputLocation & "SystemLaunchDaemons/System-Library-LaunchDaemons/" set getLaunchDaemonsTime to current date -- p flag must be used for CP to keep metadata intact. do shell script "mkdir " & fileLocationZero & "" do shell script "mkdir " & fileLocationOne & " && cp -p -r /Library/LaunchDaemons/ " & fileLocationOne do shell script "mkdir " & fileLocationTwo & " && cp -p -r /System/Library/LaunchDaemons/ " & fileLocationTwo timeStamp(outputLocation, "System Launch Daemons", getLaunchDaemonsTime) end if end getLaunchDaemons -- Get System Preferences Configuration files on getSystemPreferences(systemPreferences, outputLocation, shellPassword) if systemPreferences as boolean then set fileLocation to outputLocation & "SystemPreferences/" set getsystemPreferenceTime to current date -- p flag must be used for CP to keep metadata intact. do shell script "mkdir " & fileLocation & " && cp -p -r /Library/Preferences/SystemConfiguration/ " & fileLocation timeStamp(outputLocation, "System Preferences", getsystemPreferenceTime) end if end getSystemPreferences -- Get Internet Plugin files on getInternetPlugins(internetPlugins, outputLocation, shellPassword) if internetPlugins as boolean then set fileLocation to outputLocation & "InternetPlugins/" set getinternetPluginsTime to current date -- p flag must be used for CP to keep metadata intact. do shell script "mkdir " & fileLocation & " && cp -p -r \"/Library/Internet/Plug-Ins/\" " & fileLocation timeStamp(outputLocation, "Internet Plugins", getinternetPluginsTime) end if end getInternetPlugins -- Get system wide launch agent files on getSystemLaunchAgents(systemLaunchAgents, outputLocation, shellPassword) if systemLaunchAgents as boolean then set fileLocationZero to outputLocation & "SystemLaunchAgents/" set fileLocationOne to outputLocation & "SystemLaunchAgents/Library-LaunchAgents/" set fileLocationTwo to outputLocation & "SystemLaunchAgents/System-Library-LaunchAgents/" set getLaunchAgentsTime to current date -- p flag must be used for CP to keep metadata intact. do shell script "mkdir " & fileLocationZero & "" do shell script "mkdir " & fileLocationOne & " && cp -p -r /Library/LaunchAgents/ " & fileLocationOne do shell script "mkdir " & fileLocationTwo & " && cp -p -r /System/Library/LaunchAgents/ " & fileLocationTwo timeStamp(outputLocation, "System Launch Agents", getLaunchAgentsTime) end if end getSystemLaunchAgents -- Get sleepimage file on getSleepimage(sleepimage, outputLocation, shellPassword) if sleepimage as boolean then set fileLocation to outputLocation & "/Sleepimage" set sleepimageTime to current date -- p flag must be used for CP to keep metadata intact. do shell script "mkdir " & fileLocation & " && cp -p /private/var/vm/sleepimage " & fileLocation & "" password shellPassword with administrator privileges timeStamp(outputLocation, "sleepimage", sleepimageTime) end if end getSleepimage -- Time Stamp Function on timeStamp(outputLocation, artName, artGetTime) -- display alert outputLocation tell application "System Events" set timestampDict to make new property list item with properties {kind:record} set timestampFilePath to (outputLocation & "Timestamps.plist") if not (exists file timestampFilePath) then set timestampFile to make new property list file with properties {contents:timestampDict, name:timestampFilePath} else set timestampFile to property list file timestampFilePath end if tell property list items of timestampFile -- make new property list item at end with properties {kind:date, name:"Program Start Time", value:startTime} make new property list item at end with properties {kind:date, name:artName, value:artGetTime} end tell end tell end timeStamp -- The actual data collection stuff on mainStuff:sender systemProfile(sysInfo, outputLocation, shellPassword) getUnifLogs(unifLogs, outputLocation, shellPassword) getInstallHist(instHist, outputLocation, shellPassword) getDiagnosticReports(diagReport, outputLocation, shellPassword) fsEventsParse(fsEvents, outputLocation, shellPassword) getMetaData(getMeta, outputLocation, shellPassword) getSystStartItems(systStartItems, outputLocation, shellPassword) getCrashReporter(crashReporter, outputLocation, shellPassword) getLaunchDaemons(launchDaemons, outputLocation, shellPassword) getSystemLaunchAgents(systemLaunchAgents, outputLocation, shellPassword) getSystemPreferences(systemPreferences, outputLocation, shellPassword) getInternetPlugins(internetPlugins, outputLocation, shellPassword) getSleepimage(sleepimage, outputLocation, shellPassword) display alert "Done" end mainStuff: -- Checkbox Handelers on sysInfoCheck:sender set sysInfo to sender's intValue() end sysInfoCheck: on unifLogsCheck:sender set unifLogs to sender's intValue() end unifLogsCheck: on instHistCheck:sender set instHist to sender's intValue() end instHistCheck: on fseventsCheck:sender set fsEvents to sender's intValue() end fseventsCheck: on getMetaCheck:sender set getMeta to sender's intValue() end getMetaCheck: on diagReportCheck:sender set diagReport to sender's intValue() end diagReportCheck: on systStartItemsCheck:sender set systStartItems to sender's intValue() end systStartItemsCheck: on crashReporterCheck:sender set crashReporter to sender's intValue() end crashReporterCheck: on launchDaemonCheck:sender set launchDaemons to sender's intValue() end launchDaemonCheck: on systemPreferencesCheck:sender set systemPreferences to sender's intValue() end systemPreferencesCheck: on systemLaunchAgentsCheck:sender set systemLaunchAgents to sender's intValue() end systemLaunchAgentsCheck: on internetPluginsCheck:sender set internetPlugins to sender's intValue() end internetPluginsCheck: on sleepimageCheck:sender set sleepimage to sender's intValue() end sleepimageCheck: end script
18_ConvertToBCD.asm
furkanisitan/ExampleProgramsFor8085Microprocessor
0
98982
STC CMC MVI B, 009AH ; B=154 MVI A, 0 ; A=0 LXI H, 0 ; HL=0 LOOP: ADI 1 ; A+=1 DAA ; A yı BCD ye dönüştür JNC NXT ; Elde yoksa atla INR H ; H+=1 NXT: DCR B ; B-=1 JNZ LOOP ; 0 değilse atla MOV L, A ; L=A HLT ; Her döngüde A ya 1 eklenip BCD ye dönüştürür. ; Eğer elde varsa, H 1 arttırılır. ; Son olarak A değeri L ye kaydedilir. ; BCD sonucu böylece HL de olmuş olur.
libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_neg.asm
ahjelm/z88dk
640
15345
<reponame>ahjelm/z88dk SECTION code_fp_am9511 PUBLIC cam32_sccz80_neg EXTERN cam32_sccz80_read1, asm_am9511_neg ; negate sccz80 floats ; ; enter : stack = sccz80_float number, ret ; ; exit : DEHL = sccz80_float(-number) ; ; uses : af, bc, de, hl .cam32_sccz80_neg call cam32_sccz80_read1 jp asm_am9511_neg
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_m_drvapi.asm
Toysoft/z88dk
0
92004
<reponame>Toysoft/z88dk<filename>libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_m_drvapi.asm ; unsigned char esx_m_drvapi(struct esx_drvapi *) SECTION code_esxdos PUBLIC esx_m_drvapi EXTERN asm_esx_m_drvapi defc esx_m_drvapi = asm_esx_m_drvapi
registrar-executive-unit_entry-execute.adb
annexi-strayline/AURA
13
4936
<reponame>annexi-strayline/AURA<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- -- -- Core -- -- -- -- ------------------------------------------------------------------------ -- -- -- -- Copyright (C) 2020-2021, ANNEXI-STRAYLINE Trans-Human Ltd. -- -- All rights reserved. -- -- -- -- Original Contributors: -- -- * <NAME> (ANNEXI-STRAYLINE) -- -- -- -- 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 copyright holder 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. -- -- -- ------------------------------------------------------------------------------ with Ada.Assertions; with Ada.Containers; with Ada.Directories; with Ada.Characters.Conversions; with Ada.Streams.Stream_IO; with Ada_Lexical_Parser; with Unit_Names.Sets; with Registrar.Registry; with Registrar.Subsystems; with Registrar.Library_Units; with Registrar.Registration; with Registrar.Source_Files.Allocation; with Registrar.Executive.Library_Units_Request; with Registrar.Executive.Library_Unit_Registration; separate (Registrar.Executive.Unit_Entry) procedure Execute (Order: in out Unit_Entry_Order) is use Registrar.Library_Units; use Registrar.Executive.Library_Units_Request; use Registrar.Executive.Library_Unit_Registration; use Registrar.Source_Files; use type Ada.Containers.Count_Type; function To_Wide_Wide_String (Item: in String) return Wide_Wide_String renames Ada.Characters.Conversions.To_Wide_Wide_String; New_Unit_Registration: Library_Unit_Registration_Order (AURA => Order.AURA); New_Unit: Library_Unit renames New_Unit_Registration.Registrant; Dependency_Request: Library_Units_Request_Order; Dependencies : Library_Unit_Sets.Set renames Dependency_Request.Requested_Units; use type Unit_Names.Unit_Name; procedure Assert (Check: in Boolean; Message: in String) renames Ada.Assertions.Assert; package Source_Pack is use Registrar.Source_Files; type Source_File_Type is (Ada_Spec, Ada_Body, Non_Ada); subtype Ada_File_Type is Source_File_Type range Ada_Spec .. Ada_Body; subtype Ada_File_Extension is String (1 .. 4); Ada_File_Extensions: constant array (Ada_File_Type) of Ada_File_Extension := (Ada_Spec => ".ads", Ada_Body => ".adb"); Unit_Source_Type: Source_File_Type; Source: Source_File_Access := Registrar.Source_Files.Allocation.Open (UBS.To_String (Order.File_Full_Name)); Stream: aliased Source_Stream := Checkout_Read_Stream (Source); procedure Discard_Source; -- Closes Source and then Destroys it. -- This nullfies Source and makes the Stream unusable Can_Discard: Boolean := True; -- Indicates that it is safe to call Discard_Source (which deallocates -- the Source_File object pointed to by Source). If it is possible that -- the New_Unit_Registration work order has been submitted, -- Discard_Source becomes unsafe end Source_Pack; package Parse_Pack is use Ada_Lexical_Parser; function Content return Wide_Wide_String; function Category return Lexical_Category; -- Of the more recent element parsed procedure Next_Element; -- Parse the next non-comment element of the Source procedure Skip_To_Semicolon; -- Skip all elements until reaching a semi-colon function File_And_Position return String; -- Return a string in the format "path/to/file.ads: 12: 1" procedure Abort_Parse; -- Raise an Invalid_Unit exception with information identifiying -- the location of the offending element in the source end Parse_Pack; package Process_Pack is procedure Process_With; -- All library units including implicitly with'ed parent units of a with -- statement are included in the Dependencies set. procedure Process_External_With; -- All external unit file names of an External_With pragma are staged -- in lieu of a verified subsystem name, to be included in the -- Dependencies set during the Process_Declaration phase. procedure Process_Declaration; -- Identifies the unit name, or the parent unit name of a subunit, -- and sets that as the Name of New_Unit -- -- This also sets the Kind property of the New_Unit procedure Filter_Standard_Library; -- Removes from the Dependencies set all units that are part of the -- standard Ada library (particularily Ada, Interfaces, and GNAT) procedure Process_Parent_Dependencies; -- Adds all implicit withs of parent units to the Dependencies set, procedure Process_Staged_Externals; -- Prepends New_Unit.Name.Subsystem, plus a '%' to the name of each unit -- of the set of staged external with units, and then unions that set -- with Dependencies end Process_Pack; package body Source_Pack is separate; package body Parse_Pack is separate; package body Process_Pack is separate; begin -- Attach trackers New_Unit_Registration.Tracker := Registration.Entry_Progress'Access; Dependency_Request.Tracker := Registration.Entry_Progress'Access; pragma Assert (if Order.AURA then Order.AURA_Subsystem.AURA); -- First try to classify the source type by file extension. If it does -- not appear to be an Ada source, we don't even need to open the file, -- or do any other special processing declare use UBS; use Source_Pack; File_Name: Unbounded_String renames Order.File_Full_Name; Last_Dot_Index: Natural := Index (Source => File_Name, Pattern => ".", Going => Ada.Strings.Backward); Extension: Unbounded_String; begin pragma Assert (Length (File_Name) > 0); if Last_Dot_Index > 0 then Extension := Unbounded_Slice (Source => File_Name, Low => Last_Dot_Index, High => Length (File_Name)); end if; -- Propegate the reported subsystem if New_Unit_Registration.AURA then New_Unit_Registration.AURA_Subsystem := Order.AURA_Subsystem; end if; if Extension = Ada_File_Extensions (Ada_Spec) then Unit_Source_Type := Ada_Spec; elsif Extension = Ada_File_Extensions (Ada_Body) then Unit_Source_Type := Ada_Body; else -- Not an Ada source. Generate external dependency name and enter -- the unit, to allow it to be refrenced from Ada sources through -- the AURA-specific pragma External_With -- The source file itself takes place of the body, for later -- hashing -- If the file itself is part of the root project, we make it a -- conceptual child of standard. Similarily, if we see an external -- with in a non-AURA unit. New_Unit.Name.Set_Name ((if Order.AURA then Order.AURA_Subsystem.Name.To_String else "standard") & '%' & To_Wide_Wide_String (Ada.Directories.Simple_Name(To_String (File_Name)))); -- Submit the registration order New_Unit.State := Available; New_Unit.Kind := External_Unit; New_Unit.Body_File := Source; New_Unit_Registration.Tracker.Increment_Total_Items; Workers.Enqueue_Order (New_Unit_Registration); -- We also need to register an empty forward dependency set. We can do -- a regular Insert which should always work because external units -- cannot have subunits declare Inserted: Boolean; begin Registry.Unit_Forward_Dependencies.Insert (Key => New_Unit.Name, New_Item => Unit_Names.Sets.Empty_Set, Inserted => Inserted); pragma Assert (Inserted); end; return; end if; end; -- The New_Unit_Registration order is now filled-out except for the Name, -- which will be parsed from the Ada source itself declare use Ada_Lexical_Parser; use Parse_Pack; use Process_Pack; begin -- Note that we should not ever reach the end of file before we've -- finished our job here, so any exception that occurs due to reaching -- the end of the file causes failure of the entry order as expected -- Our job is to collect the dependencies (with and pragma -- External_With), and then verify and register then name of the -- unit itself. We check for syntax errors were possible, and if -- anything is a miss, we abort the parse. Next_Element; loop -- Everything we are processing starts with a reserved word if Category /= Reserved_Word then Abort_Parse; end if; if Content = "with" then Process_With; Next_Element; elsif Content = "use" then Skip_To_Semicolon; Next_Element; elsif Content = "pragma" then Next_Element; if Category = Identifier then if Content = "external_with" then Process_External_With; else -- Otherwise we ignore it Skip_To_Semicolon; end if; Next_Element; else Abort_Parse; end if; elsif Content = "private" then -- We expect either package or a with statement to follow Next_Element; if Category /= Reserved_Word then Abort_Parse; end if; if Content = "with" then Process_With; Next_Element; elsif Content = "package" then Process_Declaration; exit; end if; elsif Content = "limited" then -- We expect only a with to follow Next_Element; if Category = Reserved_Word and then Content = "with" then Process_With; Next_Element; else Abort_Parse; end if; elsif Content = "generic" then -- Skip the generic, arriving at either package. procedure, -- or function loop Skip_To_Semicolon; Next_Element; exit when Category = Reserved_Word and then Content in "package" | "function" | "procedure"; end loop; elsif Content in "separate" | "package" | "function" | "procedure" then Process_Declaration; -- This completes the parsing pass exit; else -- This is unexpected Abort_Parse; end if; end loop; -- With the declaration processed, we filter out standard library with's -- and process the staged externals Filter_Standard_Library; Process_Parent_Dependencies; Process_Staged_Externals; end; -- We now have collected all required dependencies. We can now submit the -- Dependency_Request (if any), and also update the -- Unit_Forward_Dependencies and Unit_Reverse_Dependencies maps if not Dependencies.Is_Empty then -- Get these sent off now since there will be no more changes to the -- Dependencies set Dependency_Request.Tracker.Increment_Total_Items; Workers.Enqueue_Order (Dependency_Request); end if; -- Now lets also register the forward and unit dependencies -- -- Interestingly enough, this will correctly associate dependencies of -- immediate subunits to the parent unit, since New_Unit's name is set -- according to the "parent" unit in the case of subunits. In other words, -- if this unit is a subunit, the dependent units will be told that the -- parent of this unit is depending on it - which is correct. -- -- A later pass of Registrar.Dependency_Processing.Consolidate_Dependencies -- will merge all subunit forward dependency maps to their library-unit -- parent, and then build a reverse dependency map from the forward map -- -- Every entered unit must have an entry, even if that entry is an empty -- set. -- -- Note that we do not add our subystem to the subsystem forward dependency -- set here since that information is implicit in the unit dependencies. -- Also it is more efficient to build that set during the -- Consolidate_Dependencies processes. declare Forward_Dependencies: Unit_Names.Sets.Set; procedure Include_Forward_Dependencies (Set: in out Unit_Names.Sets.Set) is begin Set.Union (Forward_Dependencies); end Include_Forward_Dependencies; begin for Unit of Dependencies loop Forward_Dependencies.Insert (Unit.Name); end loop; Registry.Unit_Forward_Dependencies.Insert_Or_Modify (Key => New_Unit.Name, New_Item => Forward_Dependencies, Process_Existing => Include_Forward_Dependencies'Access); end; -- AURA Subsystems need special treatment, as does the AURA Subsystem -- itself! if New_Unit.Name.Subsystem_Name.To_String = "aura" then -- AURA subsystems themselves should not have any units of the AURA -- subsystem. This can often happen by accident when preparing a manifest -- so we will both do a hard assertion, and give some kind of meaninful -- message if this happens Assert (Check => not Order.AURA, Message => "Check manifest: AURA subsystems should not have " & "units of the AURA subsystem."); -- Units of the AURA subsystem shouldn't ever have dependencies (besides -- the standard library) that are not also AURA subsystem units. -- -- Also, any grandchildren of AURA shall be named "checkout". Recall that -- AURA children are either Repository units ("repository_x") - which -- cannot have children, or configuration units with the name of their -- respective subsystem - who shall only have a checkout child. -- -- The problem is when a user modifies a Configuration unit. We need -- to at least provide some feedback if they try to get too fancy by -- either with'ing non-standard library units, or trying to add a child -- unit Assert (Check => New_Unit.Subunit_Bodies.Length = 0, Message => "Units of the AURA subsystem may not have subunits."); for Unit of Dependencies loop Assert (Check => Unit.Name.Subsystem_Name.To_String = "aura", Message => "Units of the AURA subsystem shall not have" & "outside dependencies besides the standard " & "library."); end loop; if New_Unit.Name.To_String /= "aura" and then New_Unit.Name.Parent_Name.To_String /= "aura" then -- This is a (great-xx) grandchild of the AURA unit Assert (Check => New_Unit.Name.Parent_Name.Parent_Name.To_String = "aura", Message => "The AURA subsystem heirarchy cannot be deeper " & "than 3 levels"); -- This is a grandchild of the AURA unit Assert (Check => New_Unit.Name.Self_Direct_Name.To_String = "checkout", Message => "AURA subsystem child packages cannot have " & "children (or nested subunits) except for " & "checkout package specs."); end if; elsif Order.AURA then -- The provided subsystem and the unit's subsystem must match. -- Each AURA Subsystem shall only contain that subsystem, and -- the manifest (AURA.Subsystem) only Assert (Check => Order.AURA_Subsystem.Name = Unit_Names.Unit_Name(New_Unit.Name.Subsystem_Name), Message => "Subsystem of entered unit does not match that " & "of the AURA subsystem to which is should belong"); -- Police configuration manifests and configuration units. -- Configuration packages (spec and body) may not have any AURA -- dependencies, or dependencies on their own subsystem. Ergo they can -- only depend on the standard library, or possibly the compiler library -- (e.g. GNAT). -- -- Manifests also may not have any children -- -- Note that the ultimate configuration unit is the manifest renamed -- (in the physical sense, not the Ada sense) to be AURA.Subsystem, and -- so implicitly with's the root AURA package. This also means that -- any unit that is part of the AURA subsystem face the same -- restrictions - which is checked above declare use Unit_Names; Subsys_Name : constant Unit_Name := Unit_Name (New_Unit.Name.Subsystem_Name); Check_Manifest: constant Unit_Name := Subsys_Name & ".AURA"; Check_Children: constant Unit_Name := Check_Manifest & "."; Exclude_Parent: constant Library_Unit := (Name => Subsys_Name, others => <>); begin if New_Unit.Name = Check_Manifest then -- A properly formed manfiest will have one dependency, which -- will be the implicit dependency on subsystem's root unit Dependencies.Exclude (Exclude_Parent); Assert (Check => Dependencies.Is_Empty, Message => "AURA Configuration Manifests must only depend on " & "the Standard Library."); Assert (Check => New_Unit.Kind = Package_Unit, Message => "AURA Configuration Manifest must be a package."); Assert (Check => New_Unit.Subunit_Bodies.Length = 0, Message => "AURA Configuration Manifest may not have " & "subunits."); else Ada.Assertions.Assert (Check => not New_Unit.Name.Match_Initial (Check_Children.To_String), Message => "AURA Configuration Manifests may not have children or " & "subunits."); end if; end; end if; -- Assign the Source file to the appropriate location declare use Source_Pack; begin if New_Unit.Kind = Subunit then -- Even though subunits are not actually library units, we still -- need to keep the file handle around for hashing, and so we still -- submit the registration. For first order subunits, these will -- properly be attached to the parent library unit. -- -- For second-order subunits (subunits of subunits), the dependency -- on the parent is entered as appropriate, so changes in these -- subunits will still trigger recompilation of the associated -- library unit. See also the discussion in the reverse dependency -- mapping part above -- -- As a consequence, for second-order subunits, the "parent" subunit -- will have a "library unit" registered but will have no spec or body -- file. It's perhapse not great for it to be considered a "library -- unit", but the mechanics work-out. -- -- The compiler will ultimately reject any funny buisness where, -- for example, there is an actual child package with the same name -- as a subunit - which isn't allowed anyways. (RM 10.1.3-14) pragma Assert (Unit_Source_Type = Ada_Body); New_Unit.Subunit_Bodies.Append (Source); else case Unit_Source_Type is when Ada_Spec => New_Unit.Spec_File := Source; when Ada_Body => New_Unit.Body_File := Source; when Non_Ada => -- This shouldn't get here.. raise Program_Error; end case; end if; end; Source_Pack.Can_Discard := False; -- Finally, submit the new registration New_Unit.State := Available; New_Unit_Registration.Tracker.Increment_Total_Items; Workers.Enqueue_Order (New_Unit_Registration); exception when others => if Source_Pack.Can_Discard then Source_Pack.Discard_Source; end if; raise; end Execute;
programs/oeis/122/A122709.asm
neoneye/loda
22
175041
; A122709: a(0)=1; thereafter a(n) = 9*n-3. ; 1,6,15,24,33,42,51,60,69,78,87,96,105,114,123,132,141,150,159,168,177,186,195,204,213,222,231,240,249,258,267,276,285,294,303,312,321,330,339,348,357,366,375,384,393,402,411,420,429,438,447,456,465,474,483,492,501,510,519,528,537,546,555,564,573,582,591,600,609,618,627,636,645,654,663,672,681,690,699,708,717,726,735,744,753,762,771,780,789,798,807,816,825,834,843,852,861,870,879,888 mul $0,9 trn $0,4 add $0,1
test/interaction/Issue3460.agda
cruhland/agda
1,989
16269
<reponame>cruhland/agda<filename>test/interaction/Issue3460.agda postulate A : Set postulate B : A → Set variable a : A foo : B a → Set foo x = {!a!} -- WAS: C-c C-c here reports "Not a variable: a" -- SHOULD instead introduce the hidden argument {a} {- C-c C-e reports a : A (not in scope) x : B a -}
programs/oeis/058/A058974.asm
neoneye/loda
22
85155
<reponame>neoneye/loda ; A058974: a(n) = 0 if n = 1 or a prime, otherwise a(n) = s + a(s) iterated until no change occurs, where s (A008472) is sum of distinct primes dividing n. ; 0,0,0,2,0,5,0,2,3,7,0,5,0,12,10,2,0,5,0,7,17,13,0,5,5,25,3,12,0,17,0,2,26,19,17,5,0,38,18,7,0,17,0,13,10,30,0,5,7,7,27,25,0,5,18,12,35,31,0,17,0,59,17,2,23,18,0,19,51,26,0,5,0,57,10,38,23,23,0,7,3,43,0,17,35,55,34,13,0,17,27,30,53,56,29,5,0,12,26,7 lpb $0 seq $0,8472 ; Sum of the distinct primes dividing n. add $1,$0 sub $0,1 lpe mov $0,$1
include/bits_types_u_file_h.ads
docandrew/troodon
5
8916
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with bits_types_struct_FILE_h; package bits_types_u_FILE_h is subtype uu_FILE is bits_types_struct_FILE_h.u_IO_FILE; -- /usr/include/bits/types/__FILE.h:5 end bits_types_u_FILE_h;
data/jpred4/jp_batch_1613899824__XqlstVh/jp_batch_1613899824__XqlstVh.als
jonriege/predict-protein-structure
0
1044
SILENT_MODE BLOCK_FILE jp_batch_1613899824__XqlstVh.concise.blc MAX_NSEQ 540 MAX_INPUT_LEN 542 OUTPUT_FILE jp_batch_1613899824__XqlstVh.concise.ps PORTRAIT POINTSIZE 8 IDENT_WIDTH 12 X_OFFSET 2 Y_OFFSET 2 DEFINE_FONT 0 Helvetica DEFAULT DEFINE_FONT 1 Helvetica REL 0.75 DEFINE_FONT 7 Helvetica REL 0.6 DEFINE_FONT 3 Helvetica-Bold DEFAULT DEFINE_FONT 4 Times-Bold DEFAULT DEFINE_FONT 5 Helvetica-BoldOblique DEFAULT # DEFINE_COLOUR 3 1 0.62 0.67 # Turquiose DEFINE_COLOUR 4 1 1 0 # Yellow DEFINE_COLOUR 5 1 0 0 # Red DEFINE_COLOUR 7 1 0 1 # Purple DEFINE_COLOUR 8 0 0 1 # Blue DEFINE_COLOUR 9 0 1 0 # Green DEFINE_COLOUR 10 0.41 0.64 1.00 # Pale blue DEFINE_COLOUR 11 0.41 0.82 0.67 # Pale green DEFINE_COLOUR 50 0.69 0.18 0.37 # Pink (helix) DEFINE_COLOUR 51 1.00 0.89 0.00 # Gold (strand) NUMBER_INT 10 SETUP # # Highlight specific residues. # Avoid highlighting Lupas 'C' predictions by # limiting the highlighting to the alignments Scol_CHARS C 1 1 130 529 4 Ccol_CHARS H ALL 5 Ccol_CHARS P ALL 8 SURROUND_CHARS LIV ALL # # Replace known structure types with whitespace SUB_CHARS 1 530 130 539 H SPACE SUB_CHARS 1 530 130 539 E SPACE SUB_CHARS 1 530 130 539 - SPACE STRAND 32 533 34 COLOUR_TEXT_REGION 32 533 34 533 51 STRAND 54 533 59 COLOUR_TEXT_REGION 54 533 59 533 51 HELIX 5 533 14 COLOUR_TEXT_REGION 5 533 14 533 50 HELIX 28 533 31 COLOUR_TEXT_REGION 28 533 31 533 50 HELIX 89 533 102 COLOUR_TEXT_REGION 89 533 102 533 50 HELIX 123 533 124 COLOUR_TEXT_REGION 123 533 124 533 50 STRAND 53 538 58 COLOUR_TEXT_REGION 53 538 58 538 51 HELIX 5 538 14 COLOUR_TEXT_REGION 5 538 14 538 50 HELIX 27 538 35 COLOUR_TEXT_REGION 27 538 35 538 50 HELIX 89 538 102 COLOUR_TEXT_REGION 89 538 102 538 50 HELIX 123 538 125 COLOUR_TEXT_REGION 123 538 125 538 50 STRAND 30 539 35 COLOUR_TEXT_REGION 30 539 35 539 51 STRAND 55 539 59 COLOUR_TEXT_REGION 55 539 59 539 51 HELIX 6 539 14 COLOUR_TEXT_REGION 6 539 14 539 50 HELIX 89 539 101 COLOUR_TEXT_REGION 89 539 101 539 50
flink-datalog/src/main/antlr4/org/apache/flink/datalog/Datalog.g4
Temitope-A/cog
0
5349
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ grammar Datalog; /* * Parser Rules */ compileUnit : rules query EOF ; rules : ruleClause* ; ruleClause : headPredicate COLON_HYPGHEN predicateList DOT ; headPredicate : predicate ; fact // facts should be a separate compilation unit. it is similar to defining dataset using list or sequence.. : factName LEFT_PARANTHESES constantList RIGH_PARANTHESES DOT ; factName : ( CONSTANT | STRING ) ; constantList : CONSTANT ( COMMA CONSTANT )* ; query : predicate QUESTION_MARK ; retraction //this should also be a separate compilation unit : predicate TILDE ; predicateList : ( predicate | primitivePredicate ) ( COMMA ( predicate | notPredicate | primitivePredicate ) )* ; notPredicate // only use in predicateList : NOT predicate ; primitivePredicate // only use in predicateList : ( CONSTANT | VARIABLE | DECIMAL ) COMPARISON_OPERATOR ( CONSTANT | VARIABLE | DECIMAL ) ; predicate : predicateName LEFT_PARANTHESES termList RIGH_PARANTHESES ; predicateName : ( CONSTANT | STRING ) ; termList : term ( COMMA term )* ; term : VARIABLE | CONSTANT | (UNARY_OPERATOR)? ( integer )+ | LEFT_BRACE termList RIGHT_BRACE | LEFT_BRACKET termList ( OR term )? RIGHT_BRACKET | <assoc=right> term OPERATOR term | atom ; atom : LEFT_BRACE RIGHT_BRACE | LEFT_BRACKET RIGHT_BRACKET | SEMICOLON | EXCLAMATION | SYMBOL_TOKEN | STRING ; integer : DECIMAL | OCTAL | BINARY | HEX ; /* * Lexer Rules */ DATABASE_KEYWORD : 'database' ; DATATYPE : 'Integer' | 'Float' | 'String' | 'Char' | 'Boolean' ; COMPARISON_OPERATOR : '<' | '>' | '!=' | '>=' | '<=' | '=' ; OPERATOR //TODO: add more binary operators : '+' | '*' | '-' | '/' | '>>' | '<<' ; UNARY_OPERATOR //TODO: add more unary operators : '-' | '+' ; fragment SINGLE_QUOTED_STRING : '\'' ( ESC_SEQ | ~( '\\'|'\'' ) )* '\'' ; fragment DOUBLE_QUOTED_STRING : '"' ( ESC_SEQ | ~('\\'|'"') )* '"' ; fragment INVERTED_QUOTE_STRING : '`' ( ESC_SEQ | ~( '\\'|'`' ) )* '`' ; fragment SYMBOL : [<>#&$*+/@^] | '-' ; fragment HEX_DIGIT : [a-fA-F0-9] ; fragment ESC_SEQ : '\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\') | UNICODE_ESC | OCTAL_ESC ; fragment OCTAL_ESC : '\\' ('0'..'3') ('0'..'7') ('0'..'7') | '\\' ('0'..'7') ('0'..'7') | '\\' ('0'..'7') ; fragment UNICODE_ESC : '\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT ; fragment CAPITAL_LETTER : [A-Z] ; fragment ALPHANUMERIC : ALPHA | DIGIT ; fragment ALPHA : SMALL_LETTER | CAPITAL_LETTER | '_' ; fragment SMALL_LETTER : [a-z_] ; fragment DIGIT : [0-9] ; CONSTANT : SMALL_LETTER ALPHANUMERIC* ; VARIABLE : CAPITAL_LETTER ALPHANUMERIC* ; STRING : SINGLE_QUOTED_STRING | DOUBLE_QUOTED_STRING | INVERTED_QUOTE_STRING ; SYMBOL_TOKEN : ( SYMBOL | '\\' )+ ; DECIMAL : DIGIT+ ; OCTAL : '0o' [0-7]+ ; BINARY : '0b' [01]+ ; HEX : '0x' HEX_DIGIT+ ; LEFT_PARANTHESES: '(' ; RIGH_PARANTHESES: ')' ; LEFT_BRACE: '{' ; RIGHT_BRACE : '}' ; LEFT_BRACKET : '[' ; RIGHT_BRACKET : ']' ; DOT : '.' ; COMMA : ',' ; NOT : 'not' ; COLON: ':' ; SEMICOLON: ';' ; EXCLAMATION: '!' ; OR: '|' ; QUESTION_MARK : '?' ; TILDE : '~' ; COLON_HYPGHEN: ':-' ; COMMENT : '%' ~[\n\r]* ( [\n\r] | EOF) -> channel(HIDDEN) ; MULTILINE_COMMENT : '/*' ( MULTILINE_COMMENT | . )*? ( '*/' | EOF ) -> channel(HIDDEN) ; WHITESPACE : [ \t\r\n]+ -> skip ;
NORFlash.asm
Bread80/RC2014-512K-ROM-512K-RAM-Board
2
165269
;********************************** ; Code to write data to the ROM on the RC2014 official ; 512K ROM 512K RAM module using a Z80 processor ; ; For full background and explanation see: http://bread80.com/?p=153 ; ; This code probably works with other similar modules but hasn;t been tested ; with other hardware. ; Specifically this code is writing to the SST39SF040 NOR flash IC. It may work ; with other chips which use software write protection. ; ; Originally written by <NAME> - Bread80.com ; Licenced under the MIT licence ; ; The first section is some test routines which may be useful but you'll have to ; use the symbol table or disassembler to find the entry addresses (sorry) ; Change the include_test_code constant to assemble without them. ; ; Written and tested with the RASM assembler ; ; Routines available: ; norflash_erase_sector - Erase a 4Kb sector ; norflash_write_byte - Write a single byte ; norflash_write_sector - Write (copy to) an entire sector ; norflash_write_bank - Write (copy to) an entire 16kb bank ; ; ; Test/sample routines available (these are NOT automated tests). ; test_norflash_write_byte ; test_norflash_write_string ; test_norflash_write_sector ; test_norflash_write_bank ; test_norflash_write_all_sectors ;********************************** org $8000 include_test_code equ 1 ;1= Assemble with test code. 0 = Assemble without test code ;Start of test routines if include_test_code ;******************************* ;Test code: erase a sector and write a test byte to it. ;To verify in SCM (Small Computer Monitor) ;o79 1 - Page ROM bank in ;m4000 - Memory dump. First byte should be $EA and other bytes $FF ;******************************* test_norflash_write_byte: ld d,1 ;Target physical ROM bank ld e,0 ;Target sector within ROM bank (0..3) call norflash_sector_erase ld hl,$0000 ;Target address ld d,1 ;Target ROM bank ld a,$ea ;Data to write call norflash_write_byte ret ;************************ ; Test code: Erase a sector and write an ASCIIZ test string into the first few bytes ; ; To verify in SCM: ;o79 1 - Page in ROM bank ;m4000 - Memory dump. Data should be written in first few bytes, other bytes in sector set to $ff ;************************ test_norflash_write_string: ld d,1 ;Physical ROM bank to write to ld e,0 ;Sector index within ROM bank (0..3) call norflash_sector_erase ld hl,$000 ;Target address ld bc,norflash_message ;Message source address test_norflash_write_loop: ld a,(bc) and a ret z ;Return when done call norflash_write_byte inc bc inc hl jr test_norflash_write_loop ;Test string norflash_message: db "Hello, World!",0 nop ;To get the disassembler back on track ;************* ;Test routine - write (copy data to) a single 4Kb sector ;Copy 4Kb of data pointed to by HL to the sector with index E (0..3) within ROM bank D ;************* test_norflash_write_sector: ld hl,$8000 ;Source address ld d,1 ;Target physical ROM bank ld e,0 ;Target sector (0..3) call norflash_write_sector ret ;************ ;Test routine - write (copy data to) an entire bank ;Copy 16Kb of data pointed at by HL to ROM bank in D ($1f) ;************ test_norflash_write_bank: ld hl,0 ;Source address ld d,2 ;Target physical ROM bank call norflash_write_bank ret ;*********************************** ; ;!!!!!!!!!!!!!!!!!!!!!!!!!THIS OVERWRITES PRETTY MUCH YOUR ENTIRE ROM!!!!!!!!!! ; ; Test routine: Writes test data into every sector of every bank (except ROM bank 0) ; Data written: ; Byte 0: ROM bank index (+ ASCII 'A') ; Byte 1: Sector index (+ ASCII '0') ; Byte 2: High byte of logical address ; ; Entry: None ; Exit: AF,BC,DE,HL corrupt. ; ; To verify in SCM: ;o79 <n> - where n is the ROM bank number ($0..$1f) ;m4000 - memory dump (or m5000, m6000, m7000). The first three bytes should be written and everything else $ff ;*********************************** test_norflash_write_all_sectors: ld d,1 ;Block (start at one because block zero is our monitor!) test_norflash_write_bank_loop: ld e,0 ;Sector test_norflash_write_sector_loop: call norflash_sector_erase ld a,e ;Convert sector index to an address: D bits 1..0 to HL bits 13..12 rlca rlca rlca rlca ld h,a ld l,0 ld a,d ;Write block index add 'A' call norflash_write_byte ld a,e ;Write sector index add '0' inc hl call norflash_write_byte ld a,h ;Write high byte of address inc hl call norflash_write_byte inc e ;Next sector bit 2,e jr z,test_norflash_write_sector_loop ;Loop if sector < 4 inc d ;Otherwise, next bank bit 5,d jr z,test_norflash_write_bank_loop ;Loop if sector < 32 ret ;End of test code endif ;***************************************************** ; Program flash memory used as ROM in the RC2014 512k ROM 512k RAM memory card ; ; The Z80/RC2014 Board Address Space ; ---------------------------------- ; ; The chip used by the RC2014 is the SST39SF040. ; The write protections mechanisms are standard across the industry so this code ; should work with other chips with minor modifications (e.g to the port address(es). ; ; The 512k ROM 512k RAM board divides memory up into 16k banks. Thus, there are 32 banks of ; RAM and 32 pages of ROM. The ROM banks have index $00..$1F and the RAM banks $20..$3F ; ; The board divides Z80s address space into four 16kb memory bank. Any bank of RAM or ; ROM can be paged into any page of the Z80s address space. (Side note: the same physical ; bank can be mapped into more than one logical bank at the same time.) ; ; The board uses four port addresses to control which physical banks and paged into which ; physical banks. ; ; This table maps Z80 logical banks map to memory addresses and port numbers as follows. ; 0 $0000..$3fff $78 ; 1 $4000..$7fff $79 ; 2 $8000..$bfff $7a ; 3 $c000..$ffff $7b ; ; Thus, writing $00 to port $78 will map the first physical bank of ROM into the first logical ; bank of memory. Writing $20 to port $7b will map the first physical bank of RAM into memory ; addresses $c000 to $ffff ; ; (PS: port $7c is used to turn pagin on (value 1) or off (value 0). In the off state the Z80s ; address space is 'mapped' directly to ROM banks 0 to 3. This is the default state after reset. ; ; Programming the Norflash IC ; --------------------------- ; ; The Norflash IC used divides memory up into 4kb sectors. Before writing it is necessary to ; the entire sector into which data is to be written. ; ; The IC has a mechanism to protect it from accidental data writes and accidental erasure. ; in practice this means writing a specific sequence of data bytes to a specific sequence of ; memeory addresses. It is then necessary to wait until the IC has completed the operation ; before attempting to use the IC again (whether to read, write or erase.) ; ; The command sequence to erase a sector is: ; ; Sector erase (4K sector size) ; Addr Data ; $5555 = $AA ; $2AAA = $55 ; $5555 = $80 ; $5555 = $AA ; $2AAA = $55 ; SAx = $30 - SAx = sector address on address lines Amax to A12. (Amax is the highest address line). ; <busy-wait> - wait to operation to complete ; ; The command sequence to write a byte is: ; Addr Data ; $5555 = $AA ; $2AAA = $55 ; $5555 = $A0 ; <addr> = <data> - Write the required byte to the required memory address ; <busy-wait> - wait for the sequence to complete ; ; The write protection command sequence must be followed before each and every byte written. ; ; (There are other operations which aren't implemente here, notably erasing the entire chip.) ; ; There are a couple of ways to sense when the operation is complete, the one used here is ; as follows: ; For writing: read back data from data from the same address. Data byte 7 will be inverted until ; the operation is complete. ; For sector erase: read data from the sector address being erased. Data byte 7 will be a zero ; until the operation is complete (Erased data is set to $ff, so this is also reading back inverted ; data). ; ; WARNING: During the command sequnce you MUST NOT WRITE TO MEMORY. Any memory writes will cancel ; the operation and may cuase system instability. This includes PUSHing data on the stack and CALLing ; subroutines. Reading from memory and both reading and writing to output ports is not an issue. ; This may also mean the using a debugger for operations such as breakpoints or single stepping ; on the programming code can cause it to fail and can cause system instability. ; ; WARNING: Using a monitor which is stored in the ROM itself will cause problems when single stepping ; through a programming operation since the ROM will be unavailable during the 'busy-wait' period. ; ; The Programming Code ; -------------------- ; ; The code below maps banks of ROM into logical bank 1 (addresses $4000 to $ffff) as required. This ; includes the addresses required for the command sequence as well as the address actually being ; programmed. The memory mapping scheme, however, means that this can become somewhat confusing. ; ; For example, the command sequence includes requiring data to be written to address $2AAA. This is in ; physical ROM bank zero. The code does all writes to logical bank 1 as described above. Thus the ; address $2AAA is mapped to address $6AAA. Address lines A14 and above of the physical IC are ; provided from the banking hardware, using the values of logical address lines A15 and A14. ; Logical address lines A13 to A0 are passed directly to the ROM (or RAM). ; ; This the code below extracts the lower 14 bits of ROM addresses, sets A14 and clears A15 to get ; addresses in logical bank zero. ; ;****************************************** ;Constants and pre-calculations base_bank_port equ $78 ;First of the four sequential port addresses logical_bank equ 1 ;The logical bank we'll be using to address ROM ; !!!I haven't tested the code against other banks!!! bank_port equ base_bank_port + logical_bank ;The port address we'll be using logical_bank_mask equ $b000 ;Mask for A15 and A14 - logical bank number logical_address_mask equ $3fff ;Mask for A13 to A0 - address within a bank logical_bank_address equ logical_bank << 14 ;The logical bank as a logical address ;Software protection override constants/command sequences. ;Each step needs a physical bank number, logical address within the bank and data byte norflash_bank1 equ $5555 >> 14 ;The physical bank containing our address norflash_addr1 equ $5555 and logical_address_mask or logical_bank_address norflash_data1 equ $aa norflash_bank2 equ $2aaa >> 14 norflash_addr2 equ $2aaa and logical_address_mask or logical_bank_address norflash_data2 equ $55 norflash_bank3 equ norflash_bank1 ;Address $5555 again norflash_addr3 equ norflash_addr1 norflash_data3_write equ $a0 ;For writing a byte norflash_data3_erase equ $80 ;For erasing a sector norflash_bank4 equ norflash_bank1 ;Address $5555 again norflash_addr4 equ norflash_addr1 norflash_data4 equ $aa norflash_bank5 equ norflash_bank2 ;Address $2aaa again norflash_addr5 equ norflash_addr2 norflash_data5 equ $55 norflash_data6_erase equ $30 ;Erase command to be sent along with the sector address ;************************ ; Sector Erase for NOR flash ; Sectors are 4kb in size ; Entry: D = Logical ROM bank to write to (0..$1f). E = index of sector within the bank (0..3) ; I.e. sector 0 = addresses 0..0fff, 1=1000..1fff, 2=2000..2fff, 3=3000..3fff ;!!!!!!ANY READS FROM OR WRITES TO ROM DURING THIS PROCESS WILL ABORT THE PROCESS!!!!! ;!!!!!!THIS INCLUDES RUNNING CODE FROM THE ROM SUCH AS A ROM BASED MONITOR!!!!!! ;************************ norflash_sector_erase: push af push bc push hl push de di ;Protect us from interrupt calls into ROM ;Memory bank we'll be switching blocks into ld c,bank_port ;Overcoming write protection means writing some specific bytes to specific memory addresses in a specified sequence ;Write data byte 1 ld e,norflash_bank1 ;Switch the phsical bank into the logical bank out (c),e ld hl,norflash_addr1 ;Address to write to ld (hl),norflash_data1 ;Write ;Write data byte 2 ld e,norflash_bank2 out (c),e ld hl,norflash_addr2 ld (hl),norflash_data2 ;Write data byte 3 ld e,norflash_bank3 out (c),e ld hl,norflash_addr3 ld (hl),norflash_data3_erase ;Write data byte 4 ld e,norflash_bank4 out (c),e ld hl,norflash_addr4 ld (hl),norflash_data4 ;Write data byte 5 ld e,norflash_bank5 out (c),e ld hl,norflash_addr5 ld (hl),norflash_data5 ;End of write protection override sequence pop de ;Retrieve ;Set sector to erase ld a,d ;Physical bank index and $1f ;Validate it out (c),a ;Switch bank in ;Convert 2-bit sector address in E to bits 13 and 12 of HL ld a,e ;Move sector address into A and $03 ;And make sure it's valid rlca ;Sector index is in A register, valid range 0..3, (bits 1 and 0) rlca ;Move bits 1,0 to bits 5,4 (two bit sector number to address 0x(xx)..3x(xx)) rlca rlca or logical_bank << 6 ;Map to address in logical bank ld h,a ;Move to a 16-but address in HL ;Lowest 12 bits of address are ignored, so no need to set L ld (hl),norflash_data6_erase ;Send the sector address and protection override data byte ;Wait until operation completes norflash_erase_busy_loop: ld a,(hl) ;Read back data rlca ;Bit 7 will return a zero until done jr nc,norflash_erase_busy_loop ei ;Interrupts back on pop hl pop bc pop af ret ;***************************** ; Write a single byte to NOR flash ; Entry: HL = Address to write to within the 16kb bank (0 - $3FFF) - bits 15 and 14 will be ignored. ; A = Byte to write. D = Logical ROM bank to write to (0..$1f) ; Exit: Corrupt: AF. All other registers preserved ;!!!!!!THE SECTOR NEEDS TO HAVE BEEN ERASED BEFORE WRITING, OTHERWISE THIS CODE ;WILL PROBABLY LOCK UP!!!! ; ;!!!!!!ANY READS FROM OR WRITES TO ROM DURING THIS PROCESS WILL ABORT THE PROCESS!!!!! ;!!!!!!THIS INCLUDES RUNNING CODE FROM THE ROM SUCH AS A ROM BASED MONITOR!!!!!! ;***************************** norflash_write_byte: push bc ;Preserve push de push hl di ;Protect from interrupts calling ROM ;Memory bank we'll be switching blocks into ld c,bank_port ;Overcoming write protection means writing some specific bytes to specific memory addresses in a specified sequence ;Write data byte 1 ld e,norflash_bank1 ;Switch bank in out (c),e ld hl,norflash_addr1 ;Address to program ld (hl),norflash_data1 ;Byte to program ;Write data byte 2 ld e,norflash_bank2 out (c),e ld hl,norflash_addr2 ld (hl),norflash_data2 ;Write data byte 3 ld e,norflash_bank3 out (c),e ld hl,norflash_addr3 ld (hl),norflash_data3_write ;End of write protection override sequence ;Get ready to write actual data out (c),d ;Switch bank in pop hl ;Retrieve address push hl ;And preserve it again ld e,a ;Preserve A ld a,logical_address_mask >> 8 ;Mask to a 14 bit address and h or logical_bank << 6 ;Map to address block $4000..$7fff - memory bank 1 ld h,a ld a,e ;Retrieve data ld (hl),a ;Write our new byte ;Busy loop - wait for chip to finish ;Bit 7 will be inverted until operation is complete ld b,a ;Preserve norflash_write_busy_loop: ld a,(hl) ;Fetch written data xor b ;XOR bit 7 - will be zero when done rlca jr c,norflash_write_busy_loop ei ;Interrupts back on pop hl pop de pop bc ret ;********************************* ; Write (copy) data to a single sector. Each sector is $1000 (4kb) long ; ; Entry: HL = Source addr of first byte of block to copy ; D = Target logical ROM bank (0..$1f) ; E = Target 4k sector (0..3) ; Exit: HL = addr of byte after last byte copied (ie. entry HL + $1000). ; All other registers preserved. ;********************************* norflash_write_sector: push af ;Preserve push bc push de push ix call norflash_sector_erase ;Erase sector push hl ;Move Source to IX pop ix ld a,e ;Sector rlca ;Convert to address rlca rlca rlca ld h,a ;HL = Target addr ld l,0 ld bc,$1000 ;Byte count ;D=ROM bank ;BC=Counter ;IX=Source ;HL=Dest norflash_write_sector_loop: ld a,(ix) ;Get byte to copy call norflash_write_byte ;Write byte inc ix ;Next source inc hl ;Next dest dec bc ;Dec counter ld a,b ;Is it zero? or c jr nz,norflash_write_sector_loop ;Loop if not push ix ;Source back to HL pop hl pop ix ;Restore pop de pop bc pop af ret ;****************************** ; Write (copy) an entire 16kb ROM bank ; (Simply repeats norflash_write_sector four times) ; Entry: HL=Source address to start copying from. D=Target physical ROM bank (0..$1f) ; Exit: HL=Address one byte after the last byte read. All other registers preserved. ;****************************** norflash_write_bank: push bc ;Preserve push de ld b,4 ;Counter ld e,0 ;Sector norflash_write_bank_loop: call norflash_write_sector ;Write sector inc e ;Next sector djnz norflash_write_bank_loop pop de ;Restore pop bc ret
test/interaction/Issue4215.agda
shlevy/agda
1,989
7456
<filename>test/interaction/Issue4215.agda open import Agda.Builtin.Nat foo : Nat → Nat → Nat foo 0 m = {!m!} foo (suc n) m = {!!}
programs/oeis/100/A100052.asm
karttu/loda
0
241103
; A100052: A Chebyshev transform of the odd numbers. ; 1,3,3,-2,-9,-9,2,15,15,-2,-21,-21,2,27,27,-2,-33,-33,2,39,39,-2,-45,-45,2,51,51,-2,-57,-57,2,63,63,-2,-69,-69,2,75,75,-2,-81,-81,2,87,87,-2,-93,-93,2,99,99,-2,-105,-105,2,111,111,-2,-117,-117 mov $1,$0 sub $1,1 mov $2,$0 mov $3,1 lpb $2,1 add $3,$2 add $3,$1 mov $0,$3 sub $1,$3 sub $2,1 lpe mov $1,$0 add $1,1
alloy4fun_models/trashltl/models/4/oskCzFPFHd49DNQRc.als
Kaixi26/org.alloytools.alloy
0
5088
open main pred idoskCzFPFHd49DNQRc_prop5 { eventually some (File & Trash) } pred __repair { idoskCzFPFHd49DNQRc_prop5 } check __repair { idoskCzFPFHd49DNQRc_prop5 <=> prop5o }
src/common/sp-interactive.ads
jquorning/septum
236
12330
<reponame>jquorning/septum ------------------------------------------------------------------------------- -- Copyright 2021, The Septum Developers (see AUTHORS file) -- 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. ------------------------------------------------------------------------------- package SP.Interactive is procedure Main; -- Main program entry point. This hides the details of what actually happens and keeps the exterior main function -- simple. end SP.Interactive;
Cubical/Codata/Conat/Properties.agda
limemloh/cubical
0
7209
{- Conatural number properties (<NAME> al., Feb. 2019) This file defines operations and properties on conatural numbers: - Infinity (∞). - Proof that ∞ + 1 is equivalent to ∞. - Proof that conatural is an hSet. - Bisimulation on conatural - Proof that bisimulation is equivalent to equivalence (Coinductive Proof Principle). - Proof that this bisimulation is prop valued The standard library also defines bisimulation on conaturals: https://github.com/agda/agda-stdlib/blob/master/src/Codata/Conat/Bisimilarity.agda -} {-# OPTIONS --cubical --safe --guardedness #-} module Cubical.Codata.Conat.Properties where open import Cubical.Data.Unit open import Cubical.Data.Sum open import Cubical.Data.Empty open import Cubical.Core.Everything open import Cubical.Foundations.Prelude open import Cubical.Foundations.Equiv open import Cubical.Foundations.Path open import Cubical.Foundations.Isomorphism open import Cubical.Foundations.Univalence open import Cubical.Relation.Nullary open import Cubical.Relation.Nullary.DecidableEq open import Cubical.Codata.Conat.Base Unwrap-prev : Conat′ → Type₀ Unwrap-prev zero = Unit Unwrap-prev (suc _) = Conat unwrap-prev : (n : Conat′) -> Unwrap-prev n unwrap-prev zero = _ unwrap-prev (suc x) = x private -- tests 𝟘 = conat zero 𝟙 = succ 𝟘 𝟚 = succ 𝟙 succ𝟙≡𝟚 : succ 𝟙 ≡ 𝟚 succ𝟙≡𝟚 i = 𝟚 pred𝟚≡𝟙 : unwrap-prev (force 𝟚) ≡ 𝟙 pred𝟚≡𝟙 i = 𝟙 ∞ : Conat force ∞ = suc ∞ ∞+1≡∞ : succ ∞ ≡ ∞ force (∞+1≡∞ _) = suc ∞ ∞+2≡∞ : succ (succ ∞) ≡ ∞ ∞+2≡∞ = (cong succ ∞+1≡∞) ∙ ∞+1≡∞ _+_ : Conat → Conat → Conat _+′_ : Conat′ → Conat → Conat′ force (x + y) = force x +′ y zero +′ y = force y suc x +′ y = suc (x + y) n+∞≡∞ : ∀ n → n + ∞ ≡ ∞ n+′∞≡∞′ : ∀ n → n +′ ∞ ≡ suc ∞ force (n+∞≡∞ n i) = n+′∞≡∞′ (force n) i n+′∞≡∞′ zero = refl n+′∞≡∞′ (suc n) = λ i → suc (n+∞≡∞ n i) ∞+∞≡∞ : ∞ + ∞ ≡ ∞ force (∞+∞≡∞ i) = suc (∞+∞≡∞ i) conat-absurd : ∀ {y : Conat} {ℓ} {Whatever : Type ℓ} → zero ≡ suc y → Whatever conat-absurd eq = ⊥-elim (transport (cong diag eq) tt) where diag : Conat′ → Type₀ diag zero = Unit diag (suc _) = ⊥ module IsSet where ≡-stable : {x y : Conat} → Stable (x ≡ y) ≡′-stable : {x y : Conat′} → Stable (x ≡ y) force (≡-stable ¬¬p i) = ≡′-stable (λ ¬p → ¬¬p (λ p → ¬p (cong force p))) i ≡′-stable {zero} {zero} ¬¬p′ = refl ≡′-stable {suc x} {suc y} ¬¬p′ = cong′ suc (≡-stable λ ¬p → ¬¬p′ λ p → ¬p (cong pred′′ p)) ≡′-stable {zero} {suc y} ¬¬p′ = ⊥-elim (¬¬p′ conat-absurd) ≡′-stable {suc x} {zero} ¬¬p′ = ⊥-elim (¬¬p′ λ p → conat-absurd (sym p)) isSetConat : isSet Conat isSetConat _ _ = Stable≡→isSet (λ _ _ → ≡-stable) _ _ isSetConat′ : isSet Conat′ isSetConat′ m n p′ q′ = cong (cong force) (isSetConat (conat m) (conat n) p q) where p = λ where i .force → p′ i q = λ where i .force → q′ i module Bisimulation where open IsSet using (isSetConat) record _≈_ (x y : Conat) : Type₀ data _≈′_ (x y : Conat′) : Type₀ _≈′′_ : Conat′ → Conat′ → Type₀ zero ≈′′ zero = Unit suc x ≈′′ suc y = x ≈ y -- So impossible proofs are preserved x ≈′′ y = ⊥ record _≈_ x y where coinductive field prove : force x ≈′ force y data _≈′_ x y where con : x ≈′′ y → x ≈′ y open _≈_ public bisim : ∀ {x y} → x ≈ y → x ≡ y bisim′ : ∀ {x y} → x ≈′ y → x ≡ y bisim′ {zero} {zero} (con tt) = refl bisim′ {zero} {suc x} (con ()) bisim′ {suc x} {zero} (con ()) bisim′ {suc x} {suc y} (con eq) i = suc (bisim eq i) force (bisim eq i) = bisim′ (prove eq) i misib : ∀ {x y} → x ≡ y → x ≈ y misib′ : ∀ {x y} → x ≡ y → x ≈′ y misib′ {zero} {zero} _ = con tt misib′ {zero} {suc x} = conat-absurd misib′ {suc x} {zero} p = conat-absurd (sym p) -- misib′ {suc x} {suc y} p = con λ where .prove → misib′ (cong pred′ p) misib′ {suc x} {suc y} p = con (misib (cong pred′′ p)) prove (misib x≡y) = misib′ (cong force x≡y) iso″ : ∀ {x y} → (p : x ≈ y) → misib (bisim p) ≡ p iso′ : ∀ {x y} → (p : x ≈′ y) → misib′ (bisim′ p) ≡ p iso′ {zero} {zero} (con p) = refl iso′ {zero} {suc x} (con ()) iso′ {suc x} {zero} (con ()) iso′ {suc x} {suc y} (con p) = cong con (iso″ p) prove (iso″ p i) = iso′ (prove p) i osi : ∀ {x y} → (p : x ≡ y) → bisim (misib p) ≡ p osi p = isSetConat _ _ _ p path≃bisim : ∀ {x y} → (x ≡ y) ≃ (x ≈ y) path≃bisim = isoToEquiv (iso misib bisim iso″ osi) path≡bisim : ∀ {x y} → (x ≡ y) ≡ (x ≈ y) path≡bisim = ua path≃bisim isProp≈ : ∀ {x y} → isProp (x ≈ y) isProp≈ = subst isProp path≡bisim (isSetConat _ _)
projects/Links_Awakening_gb.windfish/configuration/macros/assign.asm
jverkoey/awaken
68
245579
<reponame>jverkoey/awaken<gh_stars>10-100 ld a, #2 ld [#1], a
test/Succeed/Issue2168b.agda
cruhland/agda
1,989
14387
<filename>test/Succeed/Issue2168b.agda -- Andreas, 2016-09-19, issue #2168, reported by Nisse -- {-# OPTIONS -v tc.cover:10 #-} -- {-# OPTIONS -v tc.cover.splittree:30 -v tc.cc:40 -v tc.cover.split.con:30 #-} open import Common.Equality data Three : Set where one two three : Three data Bool : Set where true false : Bool P : Bool → Bool → Three P z false = one P false = λ _ → two -- This caused internal error during clause compilation. P z true = three test-one : ∀ x → P x false ≡ one test-one true = refl test-one false = refl test-two : P false true ≡ two test-two = refl test-three : P true true ≡ three test-three = refl
theorems/groups/KernelCstImageCst.agda
mikeshulman/HoTT-Agda
0
11134
{-# OPTIONS --without-K --rewriting #-} open import HoTT module groups.KernelCstImageCst {i j k} (G : Group i) (H : Group j) (K : Group k) (H-ab : is-abelian H) where private module H = Group H open import groups.KernelImage {G = G} {H = H} {K = K} cst-hom cst-hom H-ab Ker-cst-quot-Im-cst : Ker/Im ≃ᴳ H Ker-cst-quot-Im-cst = ≃-to-≃ᴳ (equiv to from to-from from-to) to-pres-comp where to : Ker/Im.El → H.El to = SetQuot-rec H.El-level to' to-rel where to' : Ker.El (cst-hom {G = H} {H = K}) → H.El to' ker = fst ker abstract to-rel : ∀ {h₁ h₂} → ker/im-rel' h₁ h₂ → h₁ == h₂ to-rel {h₁} {h₂} = Trunc-rec (H.El-level _ _) λ{(_ , 0=h₁h₂⁻¹) → H.zero-diff-same h₁ h₂ (! 0=h₁h₂⁻¹)} from : H.El → Ker/Im.El from h = q[ h , idp ] abstract to-from : ∀ h → to (from h) == h to-from h = idp from-to : ∀ k/i → from (to k/i) == k/i from-to = SetQuot-elim (λ _ → =-preserves-set SetQuot-level) (λ _ → ap q[_] $ ker-El=-out idp) (λ _ → prop-has-all-paths-↓ (SetQuot-level _ _)) to-pres-comp : preserves-comp Ker/Im.comp H.comp to to-pres-comp = SetQuot-elim (λ _ → Π-is-set λ _ → =-preserves-set H.El-level) (λ _ → SetQuot-elim (λ _ → =-preserves-set H.El-level) (λ _ → idp) (λ _ → prop-has-all-paths-↓ (H.El-level _ _))) (λ _ → prop-has-all-paths-↓ (Π-is-prop λ _ → H.El-level _ _))
src/audio/game_level_bgm.asm
TypeDefinition/NautiBuoy
2
169161
<filename>src/audio/game_level_bgm.asm include "./src/include/hUGE.inc" ; GB-Studio-Community Assets: Great Melody 02 (Channel 1 is reserved for SFX, so all music was placed into Channel 2.) SECTION "Game Level BGM", ROMX GameLevelBGM:: db 7 dw order_cnt dw order1, order2, order3, order4 dw duty_instruments, wave_instruments, noise_instruments dw routines dw waves order_cnt: db 28 order1: dw P0,P10,P20,P30,P40,P50,P60,P70,P80,P90,P100,P110,P120,P130 order2: dw P1,P11,P21,P31,P41,P51,P61,P71,P81,P91,P101,P111,P121,P131 order3: dw P2,P12,P22,P32,P42,P52,P62,P72,P82,P92,P102,P112,P122,P132 order4: dw P3,P13,P23,P33,P43,P53,P63,P73,P83,P93,P103,P113,P123,P133 P0: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P1: dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 P2: dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C00 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn C_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn G_5,15,$C08 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 P3: dn ___,0,$F06 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P10: dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 P11: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P12: dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn D_5,15,$C0F dn D_5,15,$C07 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C00 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn C_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn A#4,15,$C0F dn A#4,15,$C07 dn B_4,15,$C0F dn B_4,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn A_5,15,$C0F dn A_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn A_5,15,$C01 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$000 P13: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P20: dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 P21: dn C_5,4,$C0F dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn D_5,4,$C0F dn ___,0,$000 dn ___,0,$000 dn D_5,4,$C03 dn C_5,4,$C0F dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn B_4,4,$C0F dn ___,0,$000 dn B_4,4,$C07 dn ___,0,$000 dn C_5,4,$C0F dn ___,0,$000 dn C_5,4,$C07 dn ___,0,$000 dn A_4,4,$C0F dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn A_4,4,$C07 dn ___,0,$000 dn A_4,4,$C05 dn ___,0,$000 dn A_4,4,$C05 dn ___,0,$000 dn A_4,4,$C04 dn ___,0,$000 dn A_4,4,$C04 dn ___,0,$000 dn A_4,4,$C03 dn A_4,4,$C01 dn A_4,4,$C01 dn A_4,4,$C00 dn A_4,4,$C00 dn ___,0,$E00 P22: dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C00 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn C_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn G_5,15,$C08 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 P23: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P30: dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 P31: dn C_5,4,$C0F dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn D_5,4,$C0F dn ___,0,$000 dn D_5,4,$C07 dn D_5,4,$C03 dn C_5,4,$C0F dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn C_5,4,$C07 dn ___,0,$000 dn B_4,4,$C0F dn B_4,4,$C07 dn C_5,4,$C0F dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn A_4,4,$C0F dn A_4,4,$C07 dn F_4,4,$C0F dn ___,0,$000 dn F#4,4,$C0F dn ___,0,$000 dn D_5,4,$C0F dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn D_5,4,$C07 dn ___,0,$000 dn D_5,4,$C05 dn ___,0,$000 dn D_5,4,$C05 dn ___,0,$000 dn D_5,4,$C04 dn ___,0,$000 dn D_5,4,$C04 dn ___,0,$000 dn D_5,4,$C03 dn D_5,4,$C01 dn D_5,4,$C01 dn D_5,4,$C00 dn D_5,4,$C00 dn ___,0,$E00 P32: dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn C_5,15,$C07 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C00 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn C_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn A#4,15,$C0F dn A#4,15,$C07 dn B_4,15,$C0F dn B_4,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn A_5,15,$C0F dn A_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn A_5,15,$C01 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$000 P33: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P40: dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 P41: dn G_4,4,$C0F dn ___,0,$000 dn G_4,4,$C08 dn ___,0,$000 dn G_4,4,$C07 dn ___,0,$000 dn G_4,4,$C04 dn ___,0,$000 dn G_4,4,$C03 dn ___,0,$000 dn G_4,4,$C01 dn ___,0,$000 dn E_4,4,$C0F dn ___,0,$000 dn E_4,4,$C08 dn ___,0,$000 dn A_4,4,$C0F dn ___,0,$000 dn A_4,4,$C08 dn ___,0,$000 dn A_4,4,$C07 dn ___,0,$000 dn A_4,4,$C04 dn ___,0,$000 dn A_4,4,$C03 dn ___,0,$000 dn A_4,4,$C01 dn ___,0,$000 dn E_4,4,$C0F dn ___,0,$000 dn E_4,4,$C08 dn ___,0,$000 dn F#4,4,$C0F dn ___,0,$000 dn F#4,4,$C08 dn ___,0,$000 dn F#4,4,$C07 dn ___,0,$000 dn F#4,4,$C04 dn ___,0,$000 dn F#4,4,$C03 dn ___,0,$000 dn F#4,4,$C01 dn ___,0,$000 dn G_4,4,$C0F dn ___,0,$000 dn F#4,4,$C0F dn ___,0,$000 dn F#4,4,$C08 dn ___,0,$000 dn F#4,4,$C07 dn ___,0,$000 dn F#4,4,$C04 dn ___,0,$000 dn F#4,4,$C03 dn ___,0,$000 dn F#4,4,$C01 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P42: dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C00 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn C_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$E00 dn G_5,15,$C08 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 P43: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P50: dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 P51: dn G_4,4,$C0F dn ___,0,$000 dn G_4,4,$C08 dn ___,0,$000 dn G_4,4,$C07 dn ___,0,$000 dn G_4,4,$C04 dn ___,0,$000 dn G_4,4,$C03 dn ___,0,$000 dn G_4,4,$C01 dn ___,0,$000 dn E_4,4,$C0F dn ___,0,$000 dn E_4,4,$C08 dn ___,0,$000 dn A_4,4,$C0F dn ___,0,$000 dn A_4,4,$C08 dn ___,0,$000 dn A_4,4,$C07 dn ___,0,$000 dn A_4,4,$C04 dn ___,0,$000 dn A_4,4,$C03 dn ___,0,$000 dn A_4,4,$C01 dn ___,0,$000 dn E_4,4,$C0F dn ___,0,$000 dn E_4,4,$C08 dn ___,0,$000 dn F#4,4,$C0F dn ___,0,$000 dn F#4,4,$C08 dn ___,0,$000 dn F#4,4,$C07 dn ___,0,$000 dn F#4,4,$C04 dn ___,0,$000 dn F#4,4,$C03 dn ___,0,$000 dn F#4,4,$C01 dn ___,0,$000 dn G_4,4,$C0F dn ___,0,$000 dn F#4,4,$C0F dn ___,0,$000 dn F#4,4,$C08 dn ___,0,$000 dn F#4,4,$C07 dn ___,0,$000 dn F#4,4,$C04 dn ___,0,$000 dn F#4,4,$C03 dn ___,0,$000 dn D_4,4,$C0F dn ___,0,$000 dn D_4,4,$C08 dn ___,0,$000 dn E_4,4,$C0F dn ___,0,$000 dn E_4,4,$C08 dn ___,0,$000 P52: dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn D_5,15,$C0F dn D_5,15,$C07 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C00 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn C_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn A#4,15,$C0F dn A#4,15,$C07 dn B_4,15,$C0F dn B_4,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn A_5,15,$C0F dn A_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn A_5,15,$C01 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$000 P53: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P60: dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 P61: dn F#5,1,$C07 dn F#5,1,$C03 dn F#5,1,$C01 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn C#5,1,$C07 dn C#5,1,$C03 dn F#5,1,$C07 dn F#5,1,$C03 dn G#5,1,$C07 dn G#5,1,$C03 dn G#5,1,$C01 dn ___,0,$000 dn G#5,1,$C07 dn A_5,1,$C07 dn A_5,1,$C03 dn A_5,1,$C01 dn G#5,1,$C07 dn G#5,1,$C03 dn F#5,1,$C07 dn F#5,1,$C03 dn A_5,1,$C07 dn A_5,1,$C03 dn A_5,1,$C01 dn ___,0,$000 dn G#5,1,$C07 dn G#5,1,$C03 dn G#5,1,$C01 dn ___,0,$000 dn A_5,1,$C07 dn A_5,1,$C03 dn B_5,1,$C07 dn B_5,1,$C03 dn B_5,1,$C01 dn ___,0,$000 dn D#6,1,$C07 dn E_6,1,$C07 dn E_6,1,$C03 dn E_6,1,$C01 dn D#6,1,$C07 dn D#6,1,$C03 dn B_5,1,$C07 dn B_5,1,$C03 dn B_5,1,$C01 dn ___,0,$000 dn F#5,1,$C07 dn F#5,1,$C03 dn F#5,1,$C01 dn ___,0,$000 dn E_5,1,$C07 dn E_5,1,$C03 dn D#5,1,$C07 dn D#5,1,$C03 dn E_5,1,$C07 dn E_5,1,$C03 dn D#5,1,$C07 dn D#5,1,$C03 dn B_4,1,$C07 dn B_4,1,$C03 dn C_5,1,$C07 dn C_5,1,$C03 dn C#5,1,$C07 dn C#5,1,$C03 P62: dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C00 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn C_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$E00 dn G_5,15,$C08 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 P63: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P70: dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 P71: dn F#5,1,$C07 dn F#5,1,$C03 dn B_4,1,$C07 dn B_4,1,$C03 dn C_5,1,$C07 dn C_5,1,$C03 dn C#5,1,$C07 dn C#5,1,$C03 dn G#5,1,$C07 dn G#5,1,$C03 dn C_5,1,$C07 dn C_5,1,$C03 dn C#5,1,$C07 dn C#5,1,$C03 dn A_5,1,$C07 dn A_5,1,$C03 dn A_5,1,$C01 dn ___,0,$000 dn C#6,1,$C07 dn C#6,1,$C03 dn C#6,1,$C01 dn ___,0,$000 dn D#6,1,$C07 dn E_6,1,$C07 dn E_6,1,$C03 dn E_6,1,$C01 dn F#6,1,$C07 dn F#6,1,$C03 dn A_6,1,$C07 dn A_6,1,$C03 dn E_6,1,$C07 dn E_6,1,$C03 dn D#6,1,$C07 dn E_6,1,$C07 dn D#6,1,$C07 dn D#6,1,$C03 dn D#6,1,$C01 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn D#6,1,$C07 dn D#6,1,$C03 dn D#6,1,$C07 dn D#6,1,$C03 dn E_6,1,$C07 dn E_6,1,$C03 dn E_6,1,$C07 dn F#6,1,$C07 dn F#6,1,$C03 dn F#6,1,$C01 dn E_6,1,$C07 dn E_6,1,$C03 dn D#6,1,$C07 dn D#6,1,$C03 dn B_5,1,$C07 dn B_5,1,$C03 dn F#5,1,$C07 dn F#5,1,$C03 dn F#5,1,$C01 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P72: dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn D_5,15,$C0F dn D_5,15,$C07 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C00 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn C_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn A#4,15,$C0F dn A#4,15,$C07 dn B_4,15,$C0F dn B_4,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn A_5,15,$C0F dn A_5,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn A_5,15,$C03 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$000 P73: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P80: dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 P81: dn ___,0,$000 dn ___,0,$000 dn E_6,1,$C07 dn E_6,1,$C03 dn E_6,1,$C01 dn ___,0,$000 dn ___,0,$000 dn E_6,1,$C07 dn E_6,1,$C03 dn E_6,1,$C01 dn ___,0,$000 dn E_6,1,$C07 dn E_6,1,$C03 dn E_6,1,$C01 dn ___,0,$000 dn E_6,1,$C07 dn E_6,1,$C03 dn E_6,1,$C01 dn E_6,1,$C07 dn E_6,1,$C03 dn D#6,1,$C07 dn D#6,1,$C03 dn E_6,1,$C07 dn E_6,1,$C03 dn E_6,1,$C07 dn F#6,1,$C07 dn F#6,1,$C03 dn F#6,1,$C01 dn C#7,1,$C07 dn B_6,1,$C07 dn B_6,1,$C03 dn B_6,1,$C01 dn ___,0,$000 dn ___,0,$E00 dn F#6,1,$C07 dn F#6,1,$C03 dn F#6,1,$C01 dn A_6,1,$C07 dn A_6,1,$C03 dn A_6,1,$C01 dn F#6,1,$C07 dn F#6,1,$C03 dn F#6,1,$C01 dn E_6,1,$C07 dn E_6,1,$C03 dn E_6,1,$C01 dn D#6,1,$C07 dn D#6,1,$C03 dn E_6,1,$C07 dn E_6,1,$C03 dn D#6,1,$C07 dn D#6,1,$C03 dn B_5,1,$C07 dn B_5,1,$C03 dn F#5,1,$C07 dn F#5,1,$C03 dn F#5,1,$C01 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn F#5,1,$C00 dn F#5,1,$C00 dn F#5,1,$C00 dn ___,0,$000 P82: dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C00 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn C_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$E00 dn G_5,15,$C08 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 P83: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P90: dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_4,4,$C03 dn A_4,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 dn E_5,4,$C03 dn E_5,4,$C01 dn A_5,4,$C03 dn A_5,4,$C01 dn E_6,4,$C03 dn E_6,4,$C01 dn A_6,4,$C03 dn A_6,4,$C01 P91: dn A_5,1,$C07 dn ___,0,$E00 dn A_5,1,$C07 dn ___,0,$E00 dn E_5,1,$C07 dn ___,0,$000 dn F#5,1,$C07 dn ___,0,$000 dn B_5,1,$C07 dn ___,0,$E00 dn B_5,1,$C07 dn ___,0,$E00 dn E_5,1,$C07 dn ___,0,$000 dn F#5,1,$C07 dn ___,0,$000 dn C_6,1,$C07 dn ___,0,$E00 dn C_6,1,$C07 dn ___,0,$E00 dn E_5,1,$C07 dn ___,0,$000 dn F#5,1,$C07 dn ___,0,$000 dn C#6,1,$C07 dn ___,0,$E00 dn C#6,1,$C07 dn ___,0,$E00 dn E_5,1,$C07 dn ___,0,$000 dn F#5,1,$C07 dn ___,0,$000 dn B_5,1,$C07 dn ___,0,$000 dn F#6,1,$C07 dn F#6,1,$C00 dn D#5,1,$C07 dn ___,0,$000 dn F#5,1,$C07 dn ___,0,$000 dn D#6,1,$C07 dn D#6,1,$C00 dn F#5,1,$C07 dn ___,0,$000 dn B_5,1,$C07 dn ___,0,$000 dn B_4,1,$C07 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn B_4,1,$C01 dn B_4,1,$C01 dn B_4,1,$C00 dn B_4,1,$C00 dn B_4,1,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P92: dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn D_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn D_5,15,$C0F dn D_5,15,$C07 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C0F dn F_5,15,$C07 dn F_5,15,$C03 dn ___,0,$000 dn F_5,15,$C00 dn ___,0,$000 dn C_5,15,$C0F dn C_5,15,$C07 dn C_5,15,$C03 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn A#4,15,$C0F dn A#4,15,$C07 dn B_4,15,$C0F dn B_4,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn G_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn A_5,15,$C0F dn A_5,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn A_5,15,$C03 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$000 P93: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P100: dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_4,4,$C03 dn B_4,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_4,4,$C03 dn B_4,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 P101: dn G#5,1,$C07 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn D#5,1,$C07 dn ___,0,$000 dn G#5,1,$C07 dn ___,0,$000 dn A#5,1,$C07 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn A#5,1,$C07 dn B_5,1,$C07 dn ___,0,$000 dn ___,0,$000 dn A#5,1,$C07 dn ___,0,$000 dn G#5,1,$C07 dn ___,0,$E00 dn B_5,1,$C07 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn A#5,1,$C07 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn B_5,1,$C07 dn ___,0,$E00 dn C#6,1,$C07 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn F_6,1,$C07 dn F#6,1,$C07 dn ___,0,$000 dn ___,0,$E00 dn F_6,1,$C07 dn ___,0,$000 dn C#6,1,$C07 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn G#5,1,$C07 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn F#5,1,$C07 dn ___,0,$000 dn F_5,1,$C07 dn ___,0,$000 dn F#5,1,$C07 dn ___,0,$000 dn F_5,1,$C07 dn ___,0,$000 dn C#5,1,$C07 dn ___,0,$000 dn D_5,1,$C07 dn ___,0,$000 dn D#5,1,$C07 dn ___,0,$000 P102: dn E_5,15,$C0F dn E_5,15,$C07 dn E_5,15,$C03 dn ___,0,$000 dn E_5,15,$C0F dn E_5,15,$C07 dn E_5,15,$C03 dn ___,0,$000 dn E_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn E_5,15,$C00 dn ___,0,$000 dn E_5,15,$C0F dn E_5,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn E_5,15,$C0F dn E_5,15,$C07 dn A_5,15,$C0F dn A_5,15,$C07 dn A_5,15,$C03 dn ___,0,$000 dn A_5,15,$C0F dn A_5,15,$C07 dn A_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$E00 dn A_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$E00 dn A_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$E00 dn A_5,15,$C08 dn ___,0,$000 dn B_5,15,$C0F dn B_5,15,$C07 P103: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P110: dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_4,4,$C03 dn B_4,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_4,4,$C03 dn B_4,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 P111: dn G#5,1,$C07 dn ___,0,$000 dn C#5,1,$C07 dn ___,0,$E00 dn D_5,1,$C07 dn ___,0,$000 dn D#5,1,$C07 dn ___,0,$000 dn A#5,1,$C07 dn ___,0,$000 dn D_5,1,$C07 dn ___,0,$E00 dn D#5,1,$C07 dn ___,0,$000 dn B_5,1,$C07 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn D#6,1,$C07 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn F_6,1,$C07 dn F#6,1,$C07 dn ___,0,$000 dn ___,0,$000 dn G#6,1,$C07 dn ___,0,$E00 dn B_6,1,$C07 dn ___,0,$000 dn F#6,1,$C07 dn ___,0,$000 dn F_6,1,$C07 dn F#6,1,$C07 dn F_6,1,$C07 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn F_6,1,$C07 dn ___,0,$000 dn F_6,1,$C07 dn ___,0,$E00 dn F#6,1,$C07 dn ___,0,$E00 dn F#6,1,$C07 dn G#6,1,$C07 dn ___,0,$000 dn ___,0,$000 dn F#6,1,$C07 dn ___,0,$000 dn F_6,1,$C07 dn ___,0,$000 dn C#6,1,$C07 dn ___,0,$000 dn G#5,1,$C07 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn G#5,1,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P112: dn E_5,15,$C0F dn E_5,15,$C07 dn E_5,15,$C03 dn ___,0,$000 dn E_5,15,$C0F dn E_5,15,$C07 dn E_5,15,$C03 dn ___,0,$000 dn E_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn E_5,15,$C0F dn E_5,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn E_5,15,$C0F dn E_5,15,$C07 dn C_5,15,$C0F dn C_5,15,$C07 dn C#5,15,$C0F dn C#5,15,$C07 dn A_5,15,$C0F dn A_5,15,$C07 dn A_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn A_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn A_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn A_5,15,$C0F dn A_5,15,$C07 dn B_5,15,$C0F dn B_5,15,$C07 dn A_5,15,$C0F dn A_5,15,$C07 dn B_5,15,$C03 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$000 dn B_5,15,$C00 dn ___,0,$000 P113: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P120: dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_4,4,$C03 dn B_4,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_4,4,$C03 dn B_4,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 P121: dn ___,0,$000 dn ___,0,$000 dn F#6,1,$C07 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn ___,0,$000 dn F#6,1,$C07 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn F#6,1,$C07 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn F#6,1,$C07 dn ___,0,$000 dn ___,0,$E00 dn F#6,1,$C07 dn ___,0,$E00 dn F_6,1,$C07 dn ___,0,$E00 dn F#6,1,$C07 dn ___,0,$000 dn F#6,1,$C07 dn G#6,1,$C07 dn ___,0,$000 dn ___,0,$000 dn D#7,1,$C07 dn C#7,1,$C07 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn G#6,1,$C07 dn ___,0,$000 dn ___,0,$000 dn B_6,1,$C07 dn ___,0,$000 dn ___,0,$E00 dn G#6,1,$C07 dn ___,0,$000 dn ___,0,$000 dn F#6,1,$C07 dn ___,0,$000 dn ___,0,$E00 dn F_6,1,$C07 dn ___,0,$000 dn F#6,1,$C07 dn ___,0,$000 dn F_6,1,$C07 dn ___,0,$000 dn C#6,1,$C07 dn ___,0,$E00 dn G#5,1,$C07 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn G#5,1,$C00 dn G#5,1,$C00 dn G#5,1,$C00 dn ___,0,$000 P122: dn E_5,15,$C0F dn E_5,15,$C07 dn E_5,15,$C03 dn ___,0,$000 dn E_5,15,$C0F dn E_5,15,$C07 dn E_5,15,$C03 dn ___,0,$000 dn E_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn E_5,15,$C00 dn ___,0,$000 dn E_5,15,$C0F dn E_5,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn E_5,15,$C0F dn E_5,15,$C07 dn A_5,15,$C0F dn A_5,15,$C07 dn A_5,15,$C03 dn ___,0,$000 dn A_5,15,$C0F dn A_5,15,$C07 dn A_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$E00 dn A_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$E00 dn A_5,15,$C00 dn ___,0,$000 dn ___,0,$E00 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$E00 dn A_5,15,$C08 dn ___,0,$000 dn B_5,15,$C0F dn B_5,15,$C07 P123: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P130: dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_4,4,$C03 dn B_4,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_4,4,$C03 dn B_4,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 dn F#5,4,$C03 dn F#5,4,$C01 dn B_5,4,$C03 dn B_5,4,$C01 dn F#6,4,$C03 dn F#6,4,$C01 dn B_6,4,$C03 dn B_6,4,$C01 P131: dn B_5,1,$C07 dn ___,0,$E00 dn B_5,1,$C07 dn ___,0,$E00 dn F#5,1,$C07 dn ___,0,$000 dn G#5,1,$C07 dn ___,0,$000 dn C#6,1,$C07 dn ___,0,$E00 dn C#6,1,$C07 dn ___,0,$E00 dn F#5,1,$C07 dn ___,0,$000 dn G#5,1,$C07 dn ___,0,$000 dn D_6,1,$C07 dn ___,0,$E00 dn D_6,1,$C07 dn ___,0,$E00 dn F#5,1,$C07 dn ___,0,$000 dn G#5,1,$C07 dn ___,0,$000 dn D#6,1,$C07 dn ___,0,$E00 dn D#6,1,$C07 dn ___,0,$E00 dn F#5,1,$C07 dn ___,0,$000 dn G#5,1,$C07 dn ___,0,$000 dn C#6,1,$C07 dn ___,0,$000 dn G#6,1,$C07 dn G#6,1,$C00 dn F_5,1,$C07 dn ___,0,$000 dn G#5,1,$C07 dn ___,0,$000 dn F_6,1,$C07 dn F_6,1,$C00 dn G#5,1,$C07 dn ___,0,$000 dn C#6,1,$C07 dn ___,0,$000 dn C#5,1,$C07 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn C#5,1,$C01 dn C#5,1,$C01 dn C#5,1,$C00 dn C#5,1,$C00 dn C#5,1,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 P132: dn E_5,15,$C0F dn E_5,15,$C07 dn E_5,15,$C03 dn ___,0,$000 dn E_5,15,$C0F dn E_5,15,$C07 dn E_5,15,$C03 dn ___,0,$000 dn E_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn E_5,15,$C0F dn E_5,15,$C07 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn G_5,15,$C0F dn G_5,15,$C07 dn G_5,15,$C03 dn ___,0,$000 dn G_5,15,$C00 dn ___,0,$000 dn D_5,15,$C0F dn D_5,15,$C07 dn D_5,15,$C03 dn ___,0,$000 dn E_5,15,$C0F dn E_5,15,$C07 dn C_5,15,$C0F dn C_5,15,$C07 dn C#5,15,$C0F dn C#5,15,$C07 dn A_5,15,$C0F dn A_5,15,$C07 dn A_5,15,$C03 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn A_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$E00 dn A_5,15,$C00 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn A_5,15,$C0F dn A_5,15,$C07 dn B_5,15,$C0F dn B_5,15,$C07 dn A_5,15,$C03 dn ___,0,$000 dn B_5,15,$C01 dn ___,0,$000 dn A_5,15,$C00 dn ___,0,$000 dn B_5,15,$C00 dn ___,0,$000 P133: dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 dn ___,0,$000 duty_instruments: itSquareinst1: db 8,64,240,128 itSquareinst2: db 8,128,240,128 itSquareinst3: db 8,192,240,128 itSquareinst4: db 8,0,240,128 itSquareinst5: db 8,128,240,128 itSquareinst6: db 8,128,240,128 itSquareinst7: db 8,128,240,128 itSquareinst8: db 8,128,240,128 itSquareinst9: db 8,128,240,128 itSquareinst10: db 8,128,240,128 itSquareinst11: db 8,128,240,128 itSquareinst12: db 8,128,240,128 itSquareinst13: db 8,128,240,128 itSquareinst14: db 8,128,240,128 itSquareinst15: db 8,128,240,128 wave_instruments: itWaveinst1: db 0,32,0,128 itWaveinst2: db 0,32,1,128 itWaveinst3: db 0,32,2,128 itWaveinst4: db 0,32,3,128 itWaveinst5: db 0,32,4,128 itWaveinst6: db 0,32,5,128 itWaveinst7: db 0,32,6,128 itWaveinst8: db 0,32,0,128 itWaveinst9: db 0,32,1,128 itWaveinst10: db 0,32,2,128 itWaveinst11: db 0,32,3,128 itWaveinst12: db 0,32,4,128 itWaveinst13: db 0,32,5,128 itWaveinst14: db 0,32,6,128 itWaveinst15: db 0,32,7,128 noise_instruments: itNoiseinst1: db 240,0,0,0,0,0,0,0 itNoiseinst2: db 240,0,0,0,0,0,0,0 itNoiseinst3: db 240,0,0,0,0,0,0,0 itNoiseinst4: db 240,0,0,0,0,0,0,0 itNoiseinst5: db 240,0,0,0,0,0,0,0 itNoiseinst6: db 240,0,0,0,0,0,0,0 itNoiseinst7: db 240,0,0,0,0,0,0,0 itNoiseinst8: db 240,0,0,0,0,0,0,0 itNoiseinst9: db 240,0,0,0,0,0,0,0 itNoiseinst10: db 240,0,0,0,0,0,0,0 itNoiseinst11: db 240,0,0,0,0,0,0,0 itNoiseinst12: db 240,0,0,0,0,0,0,0 itNoiseinst13: db 240,0,0,0,0,0,0,0 itNoiseinst14: db 240,0,0,0,0,0,0,0 itNoiseinst15: db 240,0,0,0,0,0,0,0 routines: __hUGE_Routine_0: __end_hUGE_Routine_0: ret __hUGE_Routine_1: __end_hUGE_Routine_1: ret __hUGE_Routine_2: __end_hUGE_Routine_2: ret __hUGE_Routine_3: __end_hUGE_Routine_3: ret __hUGE_Routine_4: __end_hUGE_Routine_4: ret __hUGE_Routine_5: __end_hUGE_Routine_5: ret __hUGE_Routine_6: __end_hUGE_Routine_6: ret __hUGE_Routine_7: __end_hUGE_Routine_7: ret __hUGE_Routine_8: __end_hUGE_Routine_8: ret __hUGE_Routine_9: __end_hUGE_Routine_9: ret __hUGE_Routine_10: __end_hUGE_Routine_10: ret __hUGE_Routine_11: __end_hUGE_Routine_11: ret __hUGE_Routine_12: __end_hUGE_Routine_12: ret __hUGE_Routine_13: __end_hUGE_Routine_13: ret __hUGE_Routine_14: __end_hUGE_Routine_14: ret __hUGE_Routine_15: __end_hUGE_Routine_15: ret waves: wave0: db 165,215,201,225,188,154,118,49,12,186,222,96,27,202,3,147 wave1: db 240,225,210,195,180,165,150,135,120,105,90,75,60,45,30,15 wave2: db 253,236,219,202,185,168,151,134,121,104,87,70,53,36,19,2 wave3: db 222,254,220,186,154,169,135,119,136,135,101,86,84,50,16,18 wave4: db 171,205,239,237,203,160,18,62,220,186,188,222,254,220,50,16 wave5: db 255,238,221,204,187,170,153,136,119,102,85,68,51,34,17,0 wave6: db 255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0 wave7: db 121,188,222,239,255,238,220,185,117,67,33,16,0,17,35,69 wave8: db 104,17,110,100,11,209,219,70,221,139,186,3,212,28,21,53 wave9: db 214,131,16,199,195,171,75,146,92,65,2,211,214,204,67,71 wave10: db 171,228,173,76,62,18,227,148,11,30,3,156,14,129,37,30 wave11: db 109,187,69,119,54,144,172,38,164,141,18,201,224,117,102,12 wave12: db 68,157,40,203,69,52,102,56,170,180,189,214,187,118,218,82 wave13: db 219,83,129,71,13,188,54,173,17,8,186,145,69,91,152,224 wave14: db 129,211,183,55,153,133,171,17,228,72,94,137,221,128,5,221 wave15: db 84,1,97,152,89,80,126,170,1,199,4,80,230,160,180,138
oeis/050/A050458.asm
neoneye/loda-programs
11
172142
; A050458: Difference between Sum_{d|n, d == 1 mod 4} d^2 and Sum_{d|n, d == 3 mod 4} d^2. ; Submitted by <NAME> ; 1,1,8,1,26,8,48,1,73,26,120,8,170,48,208,1,290,73,360,26,384,120,528,8,651,170,656,48,842,208,960,1,960,290,1248,73,1370,360,1360,26,1682,384,1848,120,1898,528,2208,8,2353,651,2320,170,2810,656,3120,48,2880,842,3480,208,3722,960,3504,1,4420,960,4488,290,4224,1248,5040,73,5330,1370,5208,360,5760,1360,6240,26,5905,1682,6888,384,7540,1848,6736,120,7922,1898,8160,528,7680,2208,9360,8,9410,2353,8760,651 trn $2,$0 seq $0,2173 ; a(n) = Sum_{d|n, d == 1 mod 4} d^2 - Sum_{d|n, d == 3 mod 4} d^2. gcd $2,$0 mov $0,$2
test/lib-succeed/Issue784.agda
larrytheliquid/agda
1
13847
<filename>test/lib-succeed/Issue784.agda -- From <NAME> -- https://github.com/dima-starosud/Uniqueness-typing-in-Agda/blob/master/RefAPITest.agda module Issue784 where open import Issue784.RefAPI open import Function open import Data.Nat open import Data.Product -- new : ∀ a n → Transformer! [] [(n , Unique (Ref-ℕ a))] {-Here also doesn't work without type constraint. Note: that type is exactly the same as of new-ℕ !!! -} new = new-ℕ _++ = inc-ℕ *_ = get-ℕ free = free-ℕ tr : (n : ℕ) → Transformer! [] [(_ , Pure (Exact $ suc n))] tr i = "r" := new i ⇒⟦ refl ⟧⇒ -- new ℕ(i) "r" ++ ⇒⟦ refl ⟧⇒ -- r++ "j" := * "r" ⇒⟦ refl ⟧⇒ -- j := *r free "r" p : ∀ n → getExact (extract $ tr n) ≡ suc n p = ≡-exact ∘ extract ∘ tr
programs/oeis/026/A026219.asm
jmorken/loda
1
241927
<reponame>jmorken/loda ; A026219: Position of n in A026218. ; 1,2,5,3,9,4,13,6,17,7,21,8,25,10,29,11,33,12,37,14,41,15,45,16,49,18,53,19,57,20,61,22,65,23,69,24,73,26,77,27,81,28,85,30,89,31,93,32,97,34,101,35,105,36,109,38,113,39,117,40,121 mov $4,$0 mod $0,2 mov $3,10 mul $4,2 mov $1,$4 lpb $0 bin $0,$3 add $1,1 div $1,3 lpe add $2,$1 mul $1,7 add $1,$2 div $1,8 add $1,1
source/amf/uml/amf-internals-tables-standard_profile_l2_metamodel-properties.adb
svn2github/matreshka
24
13939
------------------------------------------------------------------------------ -- -- -- 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. ------------------------------------------------------------------------------ with AMF.CMOF; with AMF.Internals.Tables.CMOF_Attributes; with AMF.Internals.Tables.Standard_Profile_L2_String_Data_00; package body AMF.Internals.Tables.Standard_Profile_L2_Metamodel.Properties is ---------------- -- Initialize -- ---------------- procedure Initialize is begin Initialize_1; Initialize_2; Initialize_3; Initialize_4; Initialize_5; Initialize_6; Initialize_7; Initialize_8; Initialize_9; Initialize_10; Initialize_11; Initialize_12; Initialize_13; Initialize_14; Initialize_15; Initialize_16; Initialize_17; Initialize_18; Initialize_19; Initialize_20; Initialize_21; Initialize_22; Initialize_23; Initialize_24; Initialize_25; Initialize_26; Initialize_27; Initialize_28; Initialize_29; Initialize_30; Initialize_31; Initialize_32; Initialize_33; Initialize_34; Initialize_35; Initialize_36; Initialize_37; Initialize_38; Initialize_39; Initialize_40; Initialize_41; Initialize_42; Initialize_43; Initialize_44; Initialize_45; Initialize_46; Initialize_47; Initialize_48; Initialize_49; Initialize_50; Initialize_51; Initialize_52; Initialize_53; Initialize_54; Initialize_55; Initialize_56; Initialize_57; Initialize_58; Initialize_59; Initialize_60; Initialize_61; Initialize_62; Initialize_63; Initialize_64; Initialize_65; Initialize_66; Initialize_67; Initialize_68; Initialize_69; Initialize_70; Initialize_71; Initialize_72; Initialize_73; Initialize_74; Initialize_75; Initialize_76; Initialize_77; Initialize_78; Initialize_79; Initialize_80; Initialize_81; Initialize_82; Initialize_83; Initialize_84; Initialize_85; Initialize_86; Initialize_87; Initialize_88; Initialize_89; Initialize_90; Initialize_91; Initialize_92; Initialize_93; Initialize_94; Initialize_95; Initialize_96; Initialize_97; Initialize_98; Initialize_99; Initialize_100; Initialize_101; Initialize_102; Initialize_103; Initialize_104; Initialize_105; Initialize_106; Initialize_107; Initialize_108; Initialize_109; Initialize_110; Initialize_111; Initialize_112; Initialize_113; Initialize_114; Initialize_115; Initialize_116; Initialize_117; Initialize_118; Initialize_119; Initialize_120; Initialize_121; Initialize_122; Initialize_123; Initialize_124; Initialize_125; Initialize_126; Initialize_127; Initialize_128; Initialize_129; Initialize_130; Initialize_131; Initialize_132; Initialize_133; Initialize_134; Initialize_135; Initialize_136; Initialize_137; Initialize_138; Initialize_139; Initialize_140; Initialize_141; Initialize_142; Initialize_143; Initialize_144; Initialize_145; Initialize_146; Initialize_147; Initialize_148; Initialize_149; Initialize_150; Initialize_151; Initialize_152; Initialize_153; Initialize_154; Initialize_155; Initialize_156; Initialize_157; Initialize_158; Initialize_159; Initialize_160; Initialize_161; Initialize_162; Initialize_163; Initialize_164; Initialize_165; Initialize_166; Initialize_167; Initialize_168; Initialize_169; Initialize_170; Initialize_171; Initialize_172; Initialize_173; Initialize_174; Initialize_175; Initialize_176; Initialize_177; Initialize_178; Initialize_179; Initialize_180; end Initialize; ------------------ -- Initialize_1 -- ------------------ procedure Initialize_1 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 1, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0029'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 1, (Is_Empty => True)); end Initialize_1; ------------------ -- Initialize_2 -- ------------------ procedure Initialize_2 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 2, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_004A'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 2, (Is_Empty => True)); end Initialize_2; ------------------ -- Initialize_3 -- ------------------ procedure Initialize_3 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 3, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_006A'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 3, (Is_Empty => True)); end Initialize_3; ------------------ -- Initialize_4 -- ------------------ procedure Initialize_4 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 4, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0088'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 4, (Is_Empty => True)); end Initialize_4; ------------------ -- Initialize_5 -- ------------------ procedure Initialize_5 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 5, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_001D'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 5, (Is_Empty => True)); end Initialize_5; ------------------ -- Initialize_6 -- ------------------ procedure Initialize_6 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 6, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0013'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 6, (Is_Empty => True)); end Initialize_6; ------------------ -- Initialize_7 -- ------------------ procedure Initialize_7 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 7, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0071'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 7, (Is_Empty => True)); end Initialize_7; ------------------ -- Initialize_8 -- ------------------ procedure Initialize_8 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 8, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0003'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 8, (Is_Empty => True)); end Initialize_8; ------------------ -- Initialize_9 -- ------------------ procedure Initialize_9 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 9, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 9, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0010'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 9, (Is_Empty => True)); end Initialize_9; ------------------- -- Initialize_10 -- ------------------- procedure Initialize_10 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 10, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0076'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 10, (Is_Empty => True)); end Initialize_10; ------------------- -- Initialize_11 -- ------------------- procedure Initialize_11 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 11, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0007'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 11, (Is_Empty => True)); end Initialize_11; ------------------- -- Initialize_12 -- ------------------- procedure Initialize_12 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 12, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0036'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 12, (Is_Empty => True)); end Initialize_12; ------------------- -- Initialize_13 -- ------------------- procedure Initialize_13 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 13, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0033'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 13, (Is_Empty => True)); end Initialize_13; ------------------- -- Initialize_14 -- ------------------- procedure Initialize_14 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 14, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0079'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 14, (Is_Empty => True)); end Initialize_14; ------------------- -- Initialize_15 -- ------------------- procedure Initialize_15 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 15, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0040'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 15, (Is_Empty => True)); end Initialize_15; ------------------- -- Initialize_16 -- ------------------- procedure Initialize_16 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 16, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_001E'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 16, (Is_Empty => True)); end Initialize_16; ------------------- -- Initialize_17 -- ------------------- procedure Initialize_17 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 17, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0052'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 17, (Is_Empty => True)); end Initialize_17; ------------------- -- Initialize_18 -- ------------------- procedure Initialize_18 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 18, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_004C'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 18, (Is_Empty => True)); end Initialize_18; ------------------- -- Initialize_19 -- ------------------- procedure Initialize_19 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 19, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_000A'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 19, (Is_Empty => True)); end Initialize_19; ------------------- -- Initialize_20 -- ------------------- procedure Initialize_20 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 20, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0082'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 20, (Is_Empty => True)); end Initialize_20; ------------------- -- Initialize_21 -- ------------------- procedure Initialize_21 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 21, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0055'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 21, (Is_Empty => True)); end Initialize_21; ------------------- -- Initialize_22 -- ------------------- procedure Initialize_22 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 22, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_001B'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 22, (Is_Empty => True)); end Initialize_22; ------------------- -- Initialize_23 -- ------------------- procedure Initialize_23 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 23, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0062'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 23, (Is_Empty => True)); end Initialize_23; ------------------- -- Initialize_24 -- ------------------- procedure Initialize_24 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 24, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_000B'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 24, (Is_Empty => True)); end Initialize_24; ------------------- -- Initialize_25 -- ------------------- procedure Initialize_25 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 25, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_006E'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 25, (Is_Empty => True)); end Initialize_25; ------------------- -- Initialize_26 -- ------------------- procedure Initialize_26 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 26, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0014'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 26, (Is_Empty => True)); end Initialize_26; ------------------- -- Initialize_27 -- ------------------- procedure Initialize_27 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 27, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0051'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 27, (Is_Empty => True)); end Initialize_27; ------------------- -- Initialize_28 -- ------------------- procedure Initialize_28 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 28, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_001A'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 28, (Is_Empty => True)); end Initialize_28; ------------------- -- Initialize_29 -- ------------------- procedure Initialize_29 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 29, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_006D'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 29, (Is_Empty => True)); end Initialize_29; ------------------- -- Initialize_30 -- ------------------- procedure Initialize_30 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 30, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0022'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 30, (Is_Empty => True)); end Initialize_30; ------------------- -- Initialize_31 -- ------------------- procedure Initialize_31 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 31, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_000C'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 31, (False, AMF.CMOF.Public_Visibility)); end Initialize_31; ------------------- -- Initialize_32 -- ------------------- procedure Initialize_32 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 32, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_008D'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 32, (False, AMF.CMOF.Public_Visibility)); end Initialize_32; ------------------- -- Initialize_33 -- ------------------- procedure Initialize_33 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 33, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0085'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 33, (False, AMF.CMOF.Public_Visibility)); end Initialize_33; ------------------- -- Initialize_34 -- ------------------- procedure Initialize_34 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 34, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_008D'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 34, (False, AMF.CMOF.Public_Visibility)); end Initialize_34; ------------------- -- Initialize_35 -- ------------------- procedure Initialize_35 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 35, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0078'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 35, (False, AMF.CMOF.Public_Visibility)); end Initialize_35; ------------------- -- Initialize_36 -- ------------------- procedure Initialize_36 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 36, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 36, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0015'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 36, (False, AMF.CMOF.Public_Visibility)); end Initialize_36; ------------------- -- Initialize_37 -- ------------------- procedure Initialize_37 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 37, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0085'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 37, (False, AMF.CMOF.Public_Visibility)); end Initialize_37; ------------------- -- Initialize_38 -- ------------------- procedure Initialize_38 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 38, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0011'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 38, (False, AMF.CMOF.Public_Visibility)); end Initialize_38; ------------------- -- Initialize_39 -- ------------------- procedure Initialize_39 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 39, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0037'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 39, (False, AMF.CMOF.Public_Visibility)); end Initialize_39; ------------------- -- Initialize_40 -- ------------------- procedure Initialize_40 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 40, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0011'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 40, (False, AMF.CMOF.Public_Visibility)); end Initialize_40; ------------------- -- Initialize_41 -- ------------------- procedure Initialize_41 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 41, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0011'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 41, (False, AMF.CMOF.Public_Visibility)); end Initialize_41; ------------------- -- Initialize_42 -- ------------------- procedure Initialize_42 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 42, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_000C'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 42, (False, AMF.CMOF.Public_Visibility)); end Initialize_42; ------------------- -- Initialize_43 -- ------------------- procedure Initialize_43 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 43, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_007B'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 43, (False, AMF.CMOF.Public_Visibility)); end Initialize_43; ------------------- -- Initialize_44 -- ------------------- procedure Initialize_44 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 44, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0037'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 44, (False, AMF.CMOF.Public_Visibility)); end Initialize_44; ------------------- -- Initialize_45 -- ------------------- procedure Initialize_45 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 45, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_000C'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 45, (False, AMF.CMOF.Public_Visibility)); end Initialize_45; ------------------- -- Initialize_46 -- ------------------- procedure Initialize_46 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 46, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_008D'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 46, (False, AMF.CMOF.Public_Visibility)); end Initialize_46; ------------------- -- Initialize_47 -- ------------------- procedure Initialize_47 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 47, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0011'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 47, (False, AMF.CMOF.Public_Visibility)); end Initialize_47; ------------------- -- Initialize_48 -- ------------------- procedure Initialize_48 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 48, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_000C'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 48, (False, AMF.CMOF.Public_Visibility)); end Initialize_48; ------------------- -- Initialize_49 -- ------------------- procedure Initialize_49 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 49, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_007B'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 49, (False, AMF.CMOF.Public_Visibility)); end Initialize_49; ------------------- -- Initialize_50 -- ------------------- procedure Initialize_50 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 50, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0037'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 50, (False, AMF.CMOF.Public_Visibility)); end Initialize_50; ------------------- -- Initialize_51 -- ------------------- procedure Initialize_51 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 51, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0043'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 51, (False, AMF.CMOF.Public_Visibility)); end Initialize_51; ------------------- -- Initialize_52 -- ------------------- procedure Initialize_52 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 52, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0078'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 52, (False, AMF.CMOF.Public_Visibility)); end Initialize_52; ------------------- -- Initialize_53 -- ------------------- procedure Initialize_53 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 53, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_008D'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 53, (False, AMF.CMOF.Public_Visibility)); end Initialize_53; ------------------- -- Initialize_54 -- ------------------- procedure Initialize_54 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 54, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0011'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 54, (False, AMF.CMOF.Public_Visibility)); end Initialize_54; ------------------- -- Initialize_55 -- ------------------- procedure Initialize_55 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 55, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_008D'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 55, (False, AMF.CMOF.Public_Visibility)); end Initialize_55; ------------------- -- Initialize_56 -- ------------------- procedure Initialize_56 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 56, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0037'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 56, (False, AMF.CMOF.Public_Visibility)); end Initialize_56; ------------------- -- Initialize_57 -- ------------------- procedure Initialize_57 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 57, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0011'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 57, (False, AMF.CMOF.Public_Visibility)); end Initialize_57; ------------------- -- Initialize_58 -- ------------------- procedure Initialize_58 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 58, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0043'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 58, (False, AMF.CMOF.Public_Visibility)); end Initialize_58; ------------------- -- Initialize_59 -- ------------------- procedure Initialize_59 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 59, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0037'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 59, (False, AMF.CMOF.Public_Visibility)); end Initialize_59; ------------------- -- Initialize_60 -- ------------------- procedure Initialize_60 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 60, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0078'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 60, (False, AMF.CMOF.Public_Visibility)); end Initialize_60; ------------------- -- Initialize_61 -- ------------------- procedure Initialize_61 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 61, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_000C'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 61, (False, AMF.CMOF.Public_Visibility)); end Initialize_61; ------------------- -- Initialize_62 -- ------------------- procedure Initialize_62 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 62, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_000C'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 62, (False, AMF.CMOF.Public_Visibility)); end Initialize_62; ------------------- -- Initialize_63 -- ------------------- procedure Initialize_63 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 63, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0042'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 63, (Is_Empty => True)); end Initialize_63; ------------------- -- Initialize_64 -- ------------------- procedure Initialize_64 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 64, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_007C'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 64, (Is_Empty => True)); end Initialize_64; ------------------- -- Initialize_65 -- ------------------- procedure Initialize_65 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 65, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_000E'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 65, (Is_Empty => True)); end Initialize_65; ------------------- -- Initialize_66 -- ------------------- procedure Initialize_66 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 66, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0017'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 66, (Is_Empty => True)); end Initialize_66; ------------------- -- Initialize_67 -- ------------------- procedure Initialize_67 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 67, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_008C'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 67, (Is_Empty => True)); end Initialize_67; ------------------- -- Initialize_68 -- ------------------- procedure Initialize_68 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 68, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0020'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 68, (Is_Empty => True)); end Initialize_68; ------------------- -- Initialize_69 -- ------------------- procedure Initialize_69 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 69, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0069'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 69, (Is_Empty => True)); end Initialize_69; ------------------- -- Initialize_70 -- ------------------- procedure Initialize_70 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 70, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_003E'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 70, (Is_Empty => True)); end Initialize_70; ------------------- -- Initialize_71 -- ------------------- procedure Initialize_71 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 71, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0074'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 71, (Is_Empty => True)); end Initialize_71; ------------------- -- Initialize_72 -- ------------------- procedure Initialize_72 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 72, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0032'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 72, (Is_Empty => True)); end Initialize_72; ------------------- -- Initialize_73 -- ------------------- procedure Initialize_73 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 73, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_004F'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 73, (Is_Empty => True)); end Initialize_73; ------------------- -- Initialize_74 -- ------------------- procedure Initialize_74 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 74, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0063'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 74, (Is_Empty => True)); end Initialize_74; ------------------- -- Initialize_75 -- ------------------- procedure Initialize_75 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 75, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0059'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 75, (Is_Empty => True)); end Initialize_75; ------------------- -- Initialize_76 -- ------------------- procedure Initialize_76 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 76, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0070'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 76, (Is_Empty => True)); end Initialize_76; ------------------- -- Initialize_77 -- ------------------- procedure Initialize_77 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 77, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0068'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 77, (Is_Empty => True)); end Initialize_77; ------------------- -- Initialize_78 -- ------------------- procedure Initialize_78 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 78, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0006'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 78, (Is_Empty => True)); end Initialize_78; ------------------- -- Initialize_79 -- ------------------- procedure Initialize_79 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 79, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0054'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 79, (Is_Empty => True)); end Initialize_79; ------------------- -- Initialize_80 -- ------------------- procedure Initialize_80 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 80, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_007E'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 80, (Is_Empty => True)); end Initialize_80; ------------------- -- Initialize_81 -- ------------------- procedure Initialize_81 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 81, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_005B'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 81, (Is_Empty => True)); end Initialize_81; ------------------- -- Initialize_82 -- ------------------- procedure Initialize_82 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 82, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_004E'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 82, (Is_Empty => True)); end Initialize_82; ------------------- -- Initialize_83 -- ------------------- procedure Initialize_83 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 83, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0050'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 83, (Is_Empty => True)); end Initialize_83; ------------------- -- Initialize_84 -- ------------------- procedure Initialize_84 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 84, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0028'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 84, (Is_Empty => True)); end Initialize_84; ------------------- -- Initialize_85 -- ------------------- procedure Initialize_85 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 85, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_003D'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 85, (Is_Empty => True)); end Initialize_85; ------------------- -- Initialize_86 -- ------------------- procedure Initialize_86 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 86, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0077'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 86, (Is_Empty => True)); end Initialize_86; ------------------- -- Initialize_87 -- ------------------- procedure Initialize_87 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 87, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0027'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 87, (Is_Empty => True)); end Initialize_87; ------------------- -- Initialize_88 -- ------------------- procedure Initialize_88 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 88, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_006F'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 88, (Is_Empty => True)); end Initialize_88; ------------------- -- Initialize_89 -- ------------------- procedure Initialize_89 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 89, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_007F'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 89, (Is_Empty => True)); end Initialize_89; ------------------- -- Initialize_90 -- ------------------- procedure Initialize_90 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 90, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0038'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 90, (Is_Empty => True)); end Initialize_90; ------------------- -- Initialize_91 -- ------------------- procedure Initialize_91 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 91, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0067'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 91, (Is_Empty => True)); end Initialize_91; ------------------- -- Initialize_92 -- ------------------- procedure Initialize_92 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 92, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_004B'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 92, (Is_Empty => True)); end Initialize_92; ------------------- -- Initialize_93 -- ------------------- procedure Initialize_93 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 93, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0061'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 93, (Is_Empty => True)); end Initialize_93; ------------------- -- Initialize_94 -- ------------------- procedure Initialize_94 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 94, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0030'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 94, (Is_Empty => True)); end Initialize_94; ------------------- -- Initialize_95 -- ------------------- procedure Initialize_95 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 95, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_007D'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Uri (Base + 95, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0049'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 95, (Is_Empty => True)); end Initialize_95; ------------------- -- Initialize_96 -- ------------------- procedure Initialize_96 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 96, AMF.CMOF.Public_Visibility); end Initialize_96; ------------------- -- Initialize_97 -- ------------------- procedure Initialize_97 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 97, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 97, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 97, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0060'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 97, (False, AMF.CMOF.Public_Visibility)); end Initialize_97; ------------------- -- Initialize_98 -- ------------------- procedure Initialize_98 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 98, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 98, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 98, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0073'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 98, (False, AMF.CMOF.Public_Visibility)); end Initialize_98; ------------------- -- Initialize_99 -- ------------------- procedure Initialize_99 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 99, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 99, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 99, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0041'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 99, (False, AMF.CMOF.Public_Visibility)); end Initialize_99; -------------------- -- Initialize_100 -- -------------------- procedure Initialize_100 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 100, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 100, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 100, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0008'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 100, (False, AMF.CMOF.Public_Visibility)); end Initialize_100; -------------------- -- Initialize_101 -- -------------------- procedure Initialize_101 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 101, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 101, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 101, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0056'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 101, (False, AMF.CMOF.Public_Visibility)); end Initialize_101; -------------------- -- Initialize_102 -- -------------------- procedure Initialize_102 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 102, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 102, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 102, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_006B'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 102, (False, AMF.CMOF.Public_Visibility)); end Initialize_102; -------------------- -- Initialize_103 -- -------------------- procedure Initialize_103 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 103, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 103, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 103, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0000'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 103, (False, AMF.CMOF.Public_Visibility)); end Initialize_103; -------------------- -- Initialize_104 -- -------------------- procedure Initialize_104 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 104, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 104, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 104, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_001F'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 104, (False, AMF.CMOF.Public_Visibility)); end Initialize_104; -------------------- -- Initialize_105 -- -------------------- procedure Initialize_105 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 105, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 105, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 105, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0075'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 105, (False, AMF.CMOF.Public_Visibility)); end Initialize_105; -------------------- -- Initialize_106 -- -------------------- procedure Initialize_106 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 106, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 106, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 106, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_005C'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 106, (False, AMF.CMOF.Public_Visibility)); end Initialize_106; -------------------- -- Initialize_107 -- -------------------- procedure Initialize_107 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 107, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 107, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 107, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_002F'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 107, (False, AMF.CMOF.Public_Visibility)); end Initialize_107; -------------------- -- Initialize_108 -- -------------------- procedure Initialize_108 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 108, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 108, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 108, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_000D'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 108, (False, AMF.CMOF.Public_Visibility)); end Initialize_108; -------------------- -- Initialize_109 -- -------------------- procedure Initialize_109 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 109, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 109, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 109, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0081'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 109, (False, AMF.CMOF.Public_Visibility)); end Initialize_109; -------------------- -- Initialize_110 -- -------------------- procedure Initialize_110 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 110, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 110, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 110, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0001'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 110, (False, AMF.CMOF.Public_Visibility)); end Initialize_110; -------------------- -- Initialize_111 -- -------------------- procedure Initialize_111 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 111, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 111, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 111, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0016'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 111, (False, AMF.CMOF.Public_Visibility)); end Initialize_111; -------------------- -- Initialize_112 -- -------------------- procedure Initialize_112 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 112, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 112, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 112, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0005'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 112, (False, AMF.CMOF.Public_Visibility)); end Initialize_112; -------------------- -- Initialize_113 -- -------------------- procedure Initialize_113 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 113, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 113, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 113, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0064'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 113, (False, AMF.CMOF.Public_Visibility)); end Initialize_113; -------------------- -- Initialize_114 -- -------------------- procedure Initialize_114 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 114, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 114, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 114, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0080'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 114, (False, AMF.CMOF.Public_Visibility)); end Initialize_114; -------------------- -- Initialize_115 -- -------------------- procedure Initialize_115 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 115, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 115, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 115, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0045'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 115, (False, AMF.CMOF.Public_Visibility)); end Initialize_115; -------------------- -- Initialize_116 -- -------------------- procedure Initialize_116 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 116, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 116, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 116, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0065'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 116, (False, AMF.CMOF.Public_Visibility)); end Initialize_116; -------------------- -- Initialize_117 -- -------------------- procedure Initialize_117 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 117, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 117, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 117, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0025'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 117, (False, AMF.CMOF.Public_Visibility)); end Initialize_117; -------------------- -- Initialize_118 -- -------------------- procedure Initialize_118 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 118, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 118, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 118, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0012'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 118, (False, AMF.CMOF.Public_Visibility)); end Initialize_118; -------------------- -- Initialize_119 -- -------------------- procedure Initialize_119 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 119, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 119, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 119, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0035'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 119, (False, AMF.CMOF.Public_Visibility)); end Initialize_119; -------------------- -- Initialize_120 -- -------------------- procedure Initialize_120 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 120, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 120, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 120, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0089'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 120, (False, AMF.CMOF.Public_Visibility)); end Initialize_120; -------------------- -- Initialize_121 -- -------------------- procedure Initialize_121 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 121, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 121, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 121, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0044'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 121, (False, AMF.CMOF.Public_Visibility)); end Initialize_121; -------------------- -- Initialize_122 -- -------------------- procedure Initialize_122 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 122, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 122, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 122, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_003B'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 122, (False, AMF.CMOF.Public_Visibility)); end Initialize_122; -------------------- -- Initialize_123 -- -------------------- procedure Initialize_123 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 123, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 123, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 123, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0084'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 123, (False, AMF.CMOF.Public_Visibility)); end Initialize_123; -------------------- -- Initialize_124 -- -------------------- procedure Initialize_124 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 124, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 124, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 124, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_005C'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 124, (False, AMF.CMOF.Public_Visibility)); end Initialize_124; -------------------- -- Initialize_125 -- -------------------- procedure Initialize_125 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 125, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 125, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 125, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0060'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 125, (False, AMF.CMOF.Public_Visibility)); end Initialize_125; -------------------- -- Initialize_126 -- -------------------- procedure Initialize_126 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 126, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 126, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 126, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_005D'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 126, (False, AMF.CMOF.Public_Visibility)); end Initialize_126; -------------------- -- Initialize_127 -- -------------------- procedure Initialize_127 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 127, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 127, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 127, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_008A'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 127, (False, AMF.CMOF.Public_Visibility)); end Initialize_127; -------------------- -- Initialize_128 -- -------------------- procedure Initialize_128 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 128, True); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 128, (False, 0)); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 128, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_002B'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 128, (False, AMF.CMOF.Public_Visibility)); end Initialize_128; -------------------- -- Initialize_129 -- -------------------- procedure Initialize_129 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 129, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0072'Access); end Initialize_129; -------------------- -- Initialize_130 -- -------------------- procedure Initialize_130 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 130, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0048'Access); end Initialize_130; -------------------- -- Initialize_131 -- -------------------- procedure Initialize_131 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 131, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_004D'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 131, (Is_Empty => True)); end Initialize_131; -------------------- -- Initialize_132 -- -------------------- procedure Initialize_132 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 132, (Is_Empty => True)); end Initialize_132; -------------------- -- Initialize_133 -- -------------------- procedure Initialize_133 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 133, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_002A'Access); end Initialize_133; -------------------- -- Initialize_134 -- -------------------- procedure Initialize_134 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 134, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0053'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 134, (Is_Empty => True)); end Initialize_134; -------------------- -- Initialize_135 -- -------------------- procedure Initialize_135 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 135, (Is_Empty => True)); end Initialize_135; -------------------- -- Initialize_136 -- -------------------- procedure Initialize_136 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 136, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_008B'Access); end Initialize_136; -------------------- -- Initialize_137 -- -------------------- procedure Initialize_137 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 137, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_001C'Access); end Initialize_137; -------------------- -- Initialize_138 -- -------------------- procedure Initialize_138 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 138, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_000F'Access); end Initialize_138; -------------------- -- Initialize_139 -- -------------------- procedure Initialize_139 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 139, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0046'Access); end Initialize_139; -------------------- -- Initialize_140 -- -------------------- procedure Initialize_140 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 140, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0009'Access); end Initialize_140; -------------------- -- Initialize_141 -- -------------------- procedure Initialize_141 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 141, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0031'Access); end Initialize_141; -------------------- -- Initialize_142 -- -------------------- procedure Initialize_142 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 142, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0004'Access); end Initialize_142; -------------------- -- Initialize_143 -- -------------------- procedure Initialize_143 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 143, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0047'Access); end Initialize_143; -------------------- -- Initialize_144 -- -------------------- procedure Initialize_144 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 144, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0039'Access); end Initialize_144; -------------------- -- Initialize_145 -- -------------------- procedure Initialize_145 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 145, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0034'Access); end Initialize_145; -------------------- -- Initialize_146 -- -------------------- procedure Initialize_146 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 146, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0087'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 146, (Is_Empty => True)); end Initialize_146; -------------------- -- Initialize_147 -- -------------------- procedure Initialize_147 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 147, (Is_Empty => True)); end Initialize_147; -------------------- -- Initialize_148 -- -------------------- procedure Initialize_148 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 148, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0018'Access); end Initialize_148; -------------------- -- Initialize_149 -- -------------------- procedure Initialize_149 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 149, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_008E'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 149, (Is_Empty => True)); end Initialize_149; -------------------- -- Initialize_150 -- -------------------- procedure Initialize_150 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 150, (Is_Empty => True)); end Initialize_150; -------------------- -- Initialize_151 -- -------------------- procedure Initialize_151 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 151, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0066'Access); end Initialize_151; -------------------- -- Initialize_152 -- -------------------- procedure Initialize_152 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 152, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0053'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 152, (Is_Empty => True)); end Initialize_152; -------------------- -- Initialize_153 -- -------------------- procedure Initialize_153 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 153, (Is_Empty => True)); end Initialize_153; -------------------- -- Initialize_154 -- -------------------- procedure Initialize_154 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 154, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_006C'Access); end Initialize_154; -------------------- -- Initialize_155 -- -------------------- procedure Initialize_155 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 155, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0086'Access); end Initialize_155; -------------------- -- Initialize_156 -- -------------------- procedure Initialize_156 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 156, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0083'Access); end Initialize_156; -------------------- -- Initialize_157 -- -------------------- procedure Initialize_157 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 157, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_003F'Access); end Initialize_157; -------------------- -- Initialize_158 -- -------------------- procedure Initialize_158 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 158, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0058'Access); end Initialize_158; -------------------- -- Initialize_159 -- -------------------- procedure Initialize_159 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 159, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_005F'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 159, (Is_Empty => True)); end Initialize_159; -------------------- -- Initialize_160 -- -------------------- procedure Initialize_160 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 160, (Is_Empty => True)); end Initialize_160; -------------------- -- Initialize_161 -- -------------------- procedure Initialize_161 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 161, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0002'Access); end Initialize_161; -------------------- -- Initialize_162 -- -------------------- procedure Initialize_162 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 162, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_003A'Access); end Initialize_162; -------------------- -- Initialize_163 -- -------------------- procedure Initialize_163 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 163, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_007A'Access); end Initialize_163; -------------------- -- Initialize_164 -- -------------------- procedure Initialize_164 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 164, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0024'Access); end Initialize_164; -------------------- -- Initialize_165 -- -------------------- procedure Initialize_165 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 165, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_002D'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 165, (Is_Empty => True)); end Initialize_165; -------------------- -- Initialize_166 -- -------------------- procedure Initialize_166 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 166, (Is_Empty => True)); end Initialize_166; -------------------- -- Initialize_167 -- -------------------- procedure Initialize_167 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 167, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_002E'Access); end Initialize_167; -------------------- -- Initialize_168 -- -------------------- procedure Initialize_168 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 168, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_005E'Access); end Initialize_168; -------------------- -- Initialize_169 -- -------------------- procedure Initialize_169 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 169, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0021'Access); end Initialize_169; -------------------- -- Initialize_170 -- -------------------- procedure Initialize_170 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 170, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_005A'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 170, (Is_Empty => True)); end Initialize_170; -------------------- -- Initialize_171 -- -------------------- procedure Initialize_171 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 171, (Is_Empty => True)); end Initialize_171; -------------------- -- Initialize_172 -- -------------------- procedure Initialize_172 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 172, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0026'Access); end Initialize_172; -------------------- -- Initialize_173 -- -------------------- procedure Initialize_173 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 173, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0019'Access); end Initialize_173; -------------------- -- Initialize_174 -- -------------------- procedure Initialize_174 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 174, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0021'Access); end Initialize_174; -------------------- -- Initialize_175 -- -------------------- procedure Initialize_175 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 175, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_002C'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 175, (Is_Empty => True)); end Initialize_175; -------------------- -- Initialize_176 -- -------------------- procedure Initialize_176 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 176, (Is_Empty => True)); end Initialize_176; -------------------- -- Initialize_177 -- -------------------- procedure Initialize_177 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body (Base + 177, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0057'Access); end Initialize_177; -------------------- -- Initialize_178 -- -------------------- procedure Initialize_178 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 178, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_0023'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 178, (Is_Empty => True)); end Initialize_178; -------------------- -- Initialize_179 -- -------------------- procedure Initialize_179 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 179, (Is_Empty => True)); end Initialize_179; -------------------- -- Initialize_180 -- -------------------- procedure Initialize_180 is begin AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name (Base + 180, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_003C'Access); AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Value (Base + 180, AMF.Internals.Tables.Standard_Profile_L2_String_Data_00.MS_007D'Access); end Initialize_180; end AMF.Internals.Tables.Standard_Profile_L2_Metamodel.Properties;