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 |
|---|---|---|---|---|
Altair101/asm/programs/opOut.asm | tigerfarm/arduino | 2 | 171599 | <filename>Altair101/asm/programs/opOut.asm
; --------------------------------------
; Test the various OUT options.
; --------------------------------------
;
lxi sp,512 ; Set stack pointer.
Start:
mvi a,NL
out 3
lxi h,StartMsg
call sPrint
mvi a,NL
out 3
out 42 ; Flash the LED light success sequence.
;
; --------------------------------------
mvi a,1 ; Move an immediate number to each register.
mvi b,2
mvi c,3
mvi d,4
mvi e,5
mvi h,6
mvi l,7
out 38 ; Print all the register values.
; --------------------------------------
; Print each register value.
out 37 ; Register A.
out 30 ; Register B.
out 31 ; Register C.
out 32 ; Register D.
out 33 ; Register E.
out 34 ; Register H.
out 35 ; Register L.
;
; --------------------------------------
; Print H:L register values.
; And the data at the H:L (hb:lob) address.
mvi h,0 ; High byte (hb)
mvi l,0 ; Low byte (lb)
out 36 ; Data is the value of the JMP opcode = 11000011.
; Register H:L = 0: 0, Data: 195 = 303 = 11000011
;
mvi h,0 ; High byte (hb)
mvi l,1 ; Low byte (lb)
out 36 ; Data is the value of the Start address = 5.
;
; --------------------------------------
; Print all the register values, and other system data.
; If #==A, ZeroBit=1 & CarryBit=0.
; If #!=A, ZeroBit=0.
; If #>A, CarryBit=1.
; If #<A, CarryBit=0.
mvi a,42 ; Move # to register A.
cpi 42 ; 42 = A. Zero bit flag is true(1). Carry bit is false(0).
out 43 ; Print flag byte.
cpi 46 ; 46 > A. Zero bit flag is true(1). Carry bit is false(0).
out 43
cpi 21 ; 21 < A. Zero bit flag is true(1). Carry bit is false(0).
out 43
;
; --------------------------------------
; Print "Hello" to the Arduino IDE serial monitor.
mvi a,'\r'
out 3
mvi a,'\n'
out 3
mvi a,'H' ; Move the byte value of "h" to register A.
out 3 ; Output register A content to the serial port (serial monitor).
mvi a,'e'
out 3
mvi a,'l'
out 3
mvi a,'l'
out 3
mvi a,'o'
out 3
mvi a,'\r'
out 3
mvi a,'\n'
out 3
; --------------------------------------
out 13 ; Flash the LED light error sequence.
out 42 ; Flash the LED light success sequence.
mvi a,'\r'
out 3
mvi a,'\n'
out 3
lxi h,Again3
call sPrint
out 42 ; Flash the LED light success sequence.
; --------------------------------------
out 13 ; Flash the LED light error sequence.
out 42 ; Flash the LED light success sequence.
mvi a,'\r'
out 2
mvi a,'\n'
out 2
lxi h,Again2
call sPrint2
out 42 ; Flash the LED light success sequence.
; --------------------------------------
hlt ; The program will halt at each iteration, after the first.
jmp Start ; Re-start.
;
; --------------------------------------
sPrint:
mov a,m ; Move the data from H:L address to register A. (HL) -> A.
cpi TERMB ; Compare to see if it's the string terminate byte.
jz sPrintDone
out 3 ; Out register A to the serial terminal port.
inx h ; Increment H:L register pair.
jmp sPrint
sPrintDone:
ret
; --------------------------------------
sPrint2:
mov a,m ; Move the data from H:L address to register A. (HL) -> A.
cpi TERMB ; Compare to see if it's the string terminate byte.
jz sPrintDone2
out 2 ; Out register A to the serial terminal port.
inx h ; Increment H:L register pair.
jmp sPrint2
sPrintDone2:
ret
; --------------------------------------
;
StartMsg db 'Start...' ; Strings to print out.
Again2 db 'Again2.\r\n' ; Strings to print out to port 2.
Again3 db 'Again3.\r\n' ; Strings to print out to port 3.
TERMB equ 0ffh ; String terminator.
NL equ 10 ; 10 is new line, '\n'.
; --------------------------------------
end
|
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver0/sfc/ys_mpobj.asm | prismotizm/gigaleak | 0 | 104576 | Name: ys_mpobj.asm
Type: file
Size: 16034
Last-Modified: '2016-05-13T04:50:34Z'
SHA-1: 24CD5DA0536E9A1E9B9BAAADC1F3F0F0A997C630
Description: null
|
thirdparty/adasdl/thin/adasdl/AdaSDL_ttf/compile.adb | Lucretia/old_nehe_ada95 | 0 | 20267 | <reponame>Lucretia/old_nehe_ada95
pragma Warnings (Off);
with SDL_ttf;
use SDL_ttf;
procedure Compile is
begin
null;
end Compile;
|
libsrc/_DEVELOPMENT/compress/zx7/c/sdcc_iy/dzx7_turbo_callee.asm | meesokim/z88dk | 0 | 165337 |
; void dzx7_turbo_callee(void *src, void *dst)
SECTION code_compress_zx7
PUBLIC _dzx7_turbo_callee
EXTERN asm_dzx7_turbo
_dzx7_turbo_callee:
pop af
pop hl
pop de
push af
jp asm_dzx7_turbo
|
archive/agda-2/Oscar/Data/Fin/ThickAndThin.agda | m0davis/oscar | 0 | 13976 |
module Oscar.Data.Fin.ThickAndThin where
open import Oscar.Data.Fin
open import Oscar.Class.ThickAndThin
import Data.Fin as F
import Data.Fin.Properties as F
instance ThickAndThinFin : ThickAndThin Fin
ThickAndThin.thin ThickAndThinFin = F.thin
ThickAndThin.thick ThickAndThinFin = F.thick
ThickAndThin.thin-injective ThickAndThinFin z = F.thin-injective {z = z}
ThickAndThin.thick∘thin=id ThickAndThinFin = F.thick-thin
ThickAndThin.check ThickAndThinFin = F.check
ThickAndThin.thin-check-id ThickAndThinFin = F.thin-check-id
|
programs/oeis/152/A152811.asm | karttu/loda | 1 | 176119 | <gh_stars>1-10
; A152811: a(n) = 2*(n^2 + 2*n - 2).
; 2,12,26,44,66,92,122,156,194,236,282,332,386,444,506,572,642,716,794,876,962,1052,1146,1244,1346,1452,1562,1676,1794,1916,2042,2172,2306,2444,2586,2732,2882,3036,3194,3356,3522,3692,3866,4044,4226,4412,4602,4796,4994,5196,5402,5612,5826,6044,6266,6492,6722,6956,7194,7436,7682,7932,8186,8444,8706,8972,9242,9516,9794,10076,10362,10652,10946,11244,11546,11852,12162,12476,12794,13116,13442,13772,14106,14444,14786,15132,15482,15836,16194,16556,16922,17292,17666,18044,18426,18812,19202,19596,19994,20396,20802,21212,21626,22044,22466,22892,23322,23756,24194,24636,25082,25532,25986,26444,26906,27372,27842,28316,28794,29276,29762,30252,30746,31244,31746,32252,32762,33276,33794,34316,34842,35372,35906,36444,36986,37532,38082,38636,39194,39756,40322,40892,41466,42044,42626,43212,43802,44396,44994,45596,46202,46812,47426,48044,48666,49292,49922,50556,51194,51836,52482,53132,53786,54444,55106,55772,56442,57116,57794,58476,59162,59852,60546,61244,61946,62652,63362,64076,64794,65516,66242,66972,67706,68444,69186,69932,70682,71436,72194,72956,73722,74492,75266,76044,76826,77612,78402,79196,79994,80796,81602,82412,83226,84044,84866,85692,86522,87356,88194,89036,89882,90732,91586,92444,93306,94172,95042,95916,96794,97676,98562,99452,100346,101244,102146,103052,103962,104876,105794,106716,107642,108572,109506,110444,111386,112332,113282,114236,115194,116156,117122,118092,119066,120044,121026,122012,123002,123996,124994,125996
mov $1,$0
add $0,4
mul $1,$0
mul $1,2
add $1,2
|
.emacs.d/elpa/wisi-3.0.1/sal-gen_bounded_definite_stacks.ads | caqg/linux-home | 0 | 24917 | <filename>.emacs.d/elpa/wisi-3.0.1/sal-gen_bounded_definite_stacks.ads
-- Abstract:
--
-- Bounded stack implementation, with full Spark verification,
-- optimized for speed.
--
-- Copyright (C) 1998-2000, 2002-2003, 2009, 2015, 2017 - 2019 Free Software Foundation, Inc.
--
-- SAL is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the
-- Free Software Foundation; either version 3, or (at your option)
-- any later version. SAL 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 distributed
-- with SAL; 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 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.
pragma License (Modified_GPL);
generic
type Element_Type is private;
package SAL.Gen_Bounded_Definite_Stacks
with Spark_Mode
is
pragma Pure;
-- pragma Suppress (All_Checks); -- Users must check Is_Full before Push, Is_Empty before Pop etc.
package Sgbds renames SAL.Gen_Bounded_Definite_Stacks;
subtype Size_Type is Base_Peek_Type range 0 .. Base_Peek_Type'Last / 2;
-- The upper limit is needed to avoid overflow in Peek.
-- Zero included for Depth result.
type Stack (Size : Size_Type) is tagged private;
-- Tagged to allow Object.Method notation.
-- No Empty_Stack constant, to avoid requiring a Default_Element.
procedure Clear (Stack : in out Sgbds.Stack)
with Post'Class => Depth (Stack) = 0;
-- Empty Stack of all items.
function Depth (Stack : in Sgbds.Stack) return Size_Type;
-- Returns current count of items in Stack
function Is_Empty (Stack : in Sgbds.Stack) return Boolean
with Post'Class => Is_Empty'Result = (Depth (Stack) = 0);
-- Returns true iff no items are in Stack.
function Is_Full (Stack : in Sgbds.Stack) return Boolean
with Post'Class => Is_Full'Result = (Depth (Stack) = Stack.Size);
-- Returns true iff Stack is full.
function Peek (Stack : in Sgbds.Stack; Index : in Peek_Type := 1) return Element_Type
with Pre'Class => Depth (Stack) in 1 .. Stack.Size and Index in 1 .. Depth (Stack);
-- Return the Index'th item from the top of Stack; the Item is _not_ removed.
-- Top item has index 1.
procedure Pop (Stack : in out Sgbds.Stack; Count : in Base_Peek_Type := 1) with
Pre'Class => Depth (Stack) in 1 .. Stack.Size and Count in 0 .. Depth (Stack),
Post'Class => Depth (Stack) = Depth (Stack)'Old - Count and then
(for all I in 1 .. Depth (Stack) => Peek (Stack'Old, I + Count) = Peek (Stack, I));
-- Remove Count Items from the top of Stack, discard them.
procedure Pop (Stack : in out Sgbds.Stack; Item : out Element_Type) with
Pre'Class => Depth (Stack) in 1 .. Stack.Size,
Post'Class =>
Depth (Stack) = Depth (Stack)'Old - 1 and then
(Item = Peek (Stack'Old) and
(for all I in 1 .. Depth (Stack) => Peek (Stack'Old, I + 1) = Peek (Stack, I)));
-- Remove one item from the top of Stack, return in Item.
function Pop (Stack : in out Sgbds.Stack) return Element_Type with
Spark_Mode => Off;
-- Remove one item from the top of Stack, and return it.
procedure Push (Stack : in out Sgbds.Stack; Item : in Element_Type) with
Pre'Class => Depth (Stack) in 0 .. Stack.Size - 1,
Post'Class =>
Depth (Stack) = Depth (Stack)'Old + 1 and then
(Item = Peek (Stack) and
(for all I in 1 .. Depth (Stack'Old) => Peek (Stack'Old, I) = Peek (Stack, I + 1)));
-- Add Item to the top of Stack.
private
type Element_Array is array (Size_Type range <>) of aliased Element_Type;
type Stack (Size : Size_Type) is tagged record
Top : Base_Peek_Type := Invalid_Peek_Index; -- empty
Data : Element_Array (1 .. Size);
-- Top of stack is at Data (Top).
-- Data (1 .. Top) has been set at some point.
end record with
Dynamic_Predicate => Top in 0 .. Size;
end SAL.Gen_Bounded_Definite_Stacks;
|
programs/oeis/005/A005212.asm | karttu/loda | 0 | 2729 | ; A005212: n! if n is odd otherwise 0 (from the Taylor series for sin x).
; 0,1,0,6,0,120,0,5040,0,362880,0,39916800,0,6227020800,0,1307674368000,0,355687428096000,0
mov $1,$0
fac $1
mod $0,2
mul $1,$0
|
source/image/required/s-imgwch.adb | ytomino/drake | 33 | 20428 | <filename>source/image/required/s-imgwch.adb
with System.Formatting;
with System.Img_Char;
with System.Long_Long_Integer_Types;
package body System.Img_WChar is
subtype Word_Unsigned is Long_Long_Integer_Types.Word_Unsigned;
-- implementation
procedure Image_Wide_Character (
V : Wide_Character;
S : in out String;
P : out Natural;
Ada_2005 : Boolean)
is
pragma Unreferenced (Ada_2005);
begin
case V is
when Wide_Character'Val (0) .. Wide_Character'Val (16#7f#) =>
Img_Char.Image_Character_05 (
Character'Val (Wide_Character'Pos (V)),
S,
P);
when Wide_Character'Val (16#ad#) =>
pragma Assert (S'Length >= Image_ad'Length);
P := S'First - 1 + Image_ad'Length;
S (S'First .. P) := Image_ad;
when others =>
pragma Assert (S'Length >= Img_Char.Hex_Prefix'Length);
S (S'First .. S'First - 1 + Img_Char.Hex_Prefix'Length) :=
Img_Char.Hex_Prefix;
declare
Error : Boolean;
begin
Formatting.Image (
Word_Unsigned'(Wide_Character'Pos (V)),
S (S'First + Img_Char.Hex_Prefix'Length .. S'Last),
P,
Base => 16,
Width => 4,
Error => Error);
pragma Assert (not Error);
end;
end case;
end Image_Wide_Character;
procedure Image_Wide_Wide_Character (
V : Wide_Wide_Character;
S : in out String;
P : out Natural)
is
subtype WWC is Wide_Wide_Character; -- for the case statement
begin
case V is
when WWC'Val (0) .. WWC'Val (16#7f#) =>
Img_Char.Image_Character_05 (
Character'Val (Wide_Wide_Character'Pos (V)),
S,
P);
when WWC'Val (16#ad#) =>
Image_Wide_Character (
Wide_Character'Val (Wide_Wide_Character'Pos (V)),
S,
P,
Ada_2005 => True);
when others =>
pragma Assert (S'Length >= Img_Char.Hex_Prefix'Length);
S (S'First .. S'First - 1 + Img_Char.Hex_Prefix'Length) :=
Img_Char.Hex_Prefix;
declare
Error : Boolean;
begin
Formatting.Image (
Word_Unsigned'(Wide_Wide_Character'Pos (V)),
S (S'First + Img_Char.Hex_Prefix'Length .. S'Last),
P,
Base => 16,
Width => 8,
Error => Error);
pragma Assert (not Error);
end;
end case;
end Image_Wide_Wide_Character;
end System.Img_WChar;
|
src/Nat/Unary.agda | iblech/agda-quotients | 1 | 6885 | module Nat.Unary where
open import Data.Sum
open import Function
open import Nat.Class
open import Relation.Binary.PropositionalEquality
open ≡-Reasoning
data ℕ₁ : Set where
zero : ℕ₁
succ : ℕ₁ → ℕ₁
ind : (P : ℕ₁ → Set) → P zero → (∀ {k} → P k → P (succ k)) → ∀ n → P n
ind P z s zero = z
ind P z s (succ n) = ind (P ∘ succ) (s z) (λ {k} → s {succ k}) n
ind′ : (P : ℕ₁ → Set) → P zero → (∀ {k} → P k → P (succ k)) → ∀ n → P n
ind′ P z s zero = z
ind′ P z s (succ n) = s (ind′ P z s n)
rec : {A : Set} → A → (A → A) → ℕ₁ → A
rec {A} z s n = ind (const A) z (λ {_} → s) n
rec-succ : ∀ {A} z (s : A → A) n → rec (s z) s n ≡ s (rec z s n)
rec-succ z s zero = refl
rec-succ z s (succ n) =
begin
rec (s z) s (succ n)
≡⟨⟩
rec (s (s z)) s n
≡⟨ rec-succ (s z) s n ⟩
s (rec (s z) s n)
≡⟨⟩
s (rec z s (succ n))
∎
data _<_ : ℕ₁ → ℕ₁ → Set where
z<s : ∀ {n} → zero < succ n
s<s : ∀ {m n} → m < n → succ m < succ n
n<sn : ∀ {n} → n < succ n
n<sn {zero} = z<s
n<sn {succ n} = s<s n<sn
tighten : ∀ {m n} → m < succ n → m < n ⊎ m ≡ n
tighten {zero} {zero} z<s = inj₂ refl
tighten {zero} {succ n′} z<s = inj₁ z<s
tighten {succ m′} {succ n′} (s<s m′<sn′) with tighten m′<sn′
tighten {succ m′} {succ n′} (s<s m′<sn′) | inj₁ m′<n′ = inj₁ (s<s m′<n′)
tighten {succ m′} {succ n′} (s<s m′<sn′) | inj₂ m′≡n′ = inj₂ (cong succ m′≡n′)
SIndHyp : (ℕ₁ → Set) → ℕ₁ → Set
SIndHyp P n = ∀ {m} → m < n → P m
sind : (P : ℕ₁ → Set) → (∀ {k} → SIndHyp P k → P k) → ∀ n → P n
sind P h n = prf (succ n) {n} n<sn
where
lem : {p : ℕ₁} (hp : SIndHyp P p) → SIndHyp P (succ p)
lem hp m<sp with tighten m<sp
lem hp m<sp | inj₁ m<p = hp m<p
lem hp m<sp | inj₂ refl = h hp
prf : ∀ n → SIndHyp P n
prf = ind (SIndHyp P) (λ ()) lem
_+_ : ℕ₁ → ℕ₁ → ℕ₁
m + n = rec n succ m
+-zero : ∀ {n} → zero + n ≡ n
+-zero = refl
+-succ : ∀ {m n} → succ m + n ≡ m + succ n
+-succ = refl
instance
Nat-ℕ₁ : Nat ℕ₁
Nat-ℕ₁ = record
{ zero = zero
; succ = succ
; ind = ind
; _+_ = _+_
; +-zero = +-zero
; +-succ = λ {m n} → +-succ {m} {n}
}
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pack14.adb | best08618/asylo | 7 | 2457 | <reponame>best08618/asylo<gh_stars>1-10
-- { dg-do compile }
procedure Pack14 is
subtype False_T is Boolean range False .. False;
type Rec is record
F : False_T;
end record;
pragma Pack (Rec);
A : Rec := (F => False);
begin
null;
end;
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_670.asm | ljhsiun2/medusa | 9 | 27323 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x794b, %r12
clflush (%r12)
nop
nop
nop
nop
cmp $59460, %r15
mov $0x6162636465666768, %r14
movq %r14, %xmm3
movups %xmm3, (%r12)
nop
nop
nop
nop
and $658, %r13
lea addresses_UC_ht+0x7cf2, %rsi
lea addresses_UC_ht+0x1ee72, %rdi
nop
cmp %r13, %r13
mov $32, %rcx
rep movsl
nop
nop
nop
nop
sub $46116, %rcx
lea addresses_WC_ht+0x164f2, %r13
nop
nop
nop
nop
nop
add %r14, %r14
mov $0x6162636465666768, %rsi
movq %rsi, %xmm3
vmovups %ymm3, (%r13)
nop
nop
and $19074, %rcx
lea addresses_WC_ht+0xd372, %rcx
nop
nop
nop
nop
nop
add $56195, %rdi
movl $0x61626364, (%rcx)
nop
dec %rsi
lea addresses_WC_ht+0x8bc2, %rdi
nop
nop
nop
nop
nop
add %rcx, %rcx
mov $0x6162636465666768, %r13
movq %r13, %xmm1
movups %xmm1, (%rdi)
nop
nop
nop
nop
dec %r13
lea addresses_A_ht+0xb22, %rsi
lea addresses_A_ht+0x104f2, %rdi
nop
xor %r9, %r9
mov $51, %rcx
rep movsb
nop
nop
nop
nop
add $60787, %r9
lea addresses_UC_ht+0x5ef2, %rsi
lea addresses_WC_ht+0x16706, %rdi
nop
cmp %r13, %r13
mov $119, %rcx
rep movsb
nop
nop
cmp $22505, %r12
lea addresses_normal_ht+0x1b1bf, %rsi
and $25644, %r14
vmovups (%rsi), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %r13
nop
nop
cmp $34712, %rsi
lea addresses_D_ht+0x189f2, %rsi
lea addresses_UC_ht+0x151f2, %rdi
nop
mfence
mov $99, %rcx
rep movsq
nop
nop
nop
add $24928, %r15
lea addresses_normal_ht+0x18212, %rsi
lea addresses_A_ht+0x37a, %rdi
clflush (%rdi)
nop
inc %r12
mov $110, %rcx
rep movsl
nop
nop
nop
xor $52482, %rsi
lea addresses_A_ht+0x47fc, %r14
nop
nop
nop
nop
nop
xor %r13, %r13
movl $0x61626364, (%r14)
nop
add $10671, %rdi
lea addresses_D_ht+0x1eb0a, %rsi
lea addresses_A_ht+0x16f36, %rdi
nop
nop
and %r13, %r13
mov $65, %rcx
rep movsq
nop
nop
nop
nop
nop
and %r14, %r14
lea addresses_WT_ht+0x19cf2, %rsi
lea addresses_D_ht+0x9cf2, %rdi
dec %r13
mov $10, %rcx
rep movsw
nop
nop
nop
and %r12, %r12
lea addresses_normal_ht+0x3d32, %r9
nop
add %rdi, %rdi
and $0xffffffffffffffc0, %r9
movaps (%r9), %xmm3
vpextrq $0, %xmm3, %r14
nop
xor %r14, %r14
lea addresses_WC_ht+0x8ef2, %r12
nop
nop
nop
nop
nop
sub $21391, %r15
movb (%r12), %r9b
nop
nop
nop
nop
and %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r8
push %r9
push %rax
push %rdx
// Faulty Load
lea addresses_normal+0x1bcf2, %r11
clflush (%r11)
nop
nop
nop
cmp %r8, %r8
mov (%r11), %edx
lea oracles, %rax
and $0xff, %rdx
shlq $12, %rdx
mov (%rax,%rdx,1), %rdx
pop %rdx
pop %rax
pop %r9
pop %r8
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 4}}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}}
{'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 16, 'NT': True, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
|
Examples/hello_world.asm | RainingComputers/SRP16 | 0 | 16897 | sjmp prog
data:
.string "Hello world" ;Hello world string
.byte 0x00 ;Null character
.equ "str_len", 11 ;Length of string
prog:
ldmptr data ;Load location of string
lda 0x00 ;Loop counter
loop:
ldb@mptr r0, 0x01 ;Load r0 with character and offset
addi 1
cei str_len
notf
sjmpf loop ;Loop till a==str_len
hlt:
sjmp hlt ;stop |
test/asset/agda-stdlib-1.0/Data/Vec/Membership/Setoid.agda | omega12345/agda-mode | 0 | 11589 | ------------------------------------------------------------------------
-- The Agda standard library
--
-- Membership of vectors, along with some additional definitions.
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Relation.Binary using (Setoid; _Respects_)
module Data.Vec.Membership.Setoid {c ℓ} (S : Setoid c ℓ) where
open import Function
open import Data.Vec as Vec using (Vec; []; _∷_)
open import Data.Vec.Relation.Unary.Any as Any
using (Any; here; there; index)
open import Data.Product using (∃; _×_; _,_)
open import Relation.Nullary using (¬_)
open import Relation.Unary using (Pred)
open Setoid S renaming (Carrier to A)
------------------------------------------------------------------------
-- Definitions
infix 4 _∈_ _∉_
_∈_ : A → ∀ {n} → Vec A n → Set _
x ∈ xs = Any (x ≈_) xs
_∉_ : A → ∀ {n} → Vec A n → Set _
x ∉ xs = ¬ x ∈ xs
------------------------------------------------------------------------
-- Operations
mapWith∈ : ∀ {b} {B : Set b} {n}
(xs : Vec A n) → (∀ {x} → x ∈ xs → B) → Vec B n
mapWith∈ [] f = []
mapWith∈ (x ∷ xs) f = f (here refl) ∷ mapWith∈ xs (f ∘ there)
_∷=_ : ∀ {n} {xs : Vec A n} {x} → x ∈ xs → A → Vec A n
_∷=_ {xs = xs} x∈xs v = xs Vec.[ index x∈xs ]≔ v
------------------------------------------------------------------------
-- Finding and losing witnesses
module _ {p} {P : Pred A p} where
find : ∀ {n} {xs : Vec A n} → Any P xs → ∃ λ x → x ∈ xs × P x
find (here px) = (_ , here refl , px)
find (there pxs) with find pxs
... | (x , x∈xs , px) = (x , there x∈xs , px)
lose : P Respects _≈_ → ∀ {x n} {xs : Vec A n} → x ∈ xs → P x → Any P xs
lose resp x∈xs px = Any.map (flip resp px) x∈xs
|
spotify/next-track.applescript | LeZuse/script-commands | 0 | 1655 | <filename>spotify/next-track.applescript
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Next Track
# @raycast.mode silent
# Optional parameters:
# @raycast.icon ⏭
tell application "Spotify" to next track |
libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/asm_SMSlib_setSpriteMode.asm | jpoikela/z88dk | 640 | 96996 | ; **************************************************
; SMSlib - C programming library for the SMS/GG
; ( part of devkitSMS - github.com/sverx/devkitSMS )
; **************************************************
INCLUDE "SMSlib_private.inc"
SECTION code_clib
SECTION code_SMSlib
PUBLIC asm_SMSlib_setSpriteMode
EXTERN __SMSlib_spritesHeight, __SMSlib_spritesWidth
EXTERN asm_SMSlib_VDPturnOnFeature, asm_SMSlib_VDPturnOffFeature
asm_SMSlib_setSpriteMode:
; void SMS_setSpriteMode (unsigned char mode)
;
; enter : l = unsigned char mode
;
; uses : af, c, de, hl
ld c,l ; c = mode
test_tallmode:
ld a,c
and SPRITEMODE_TALL
ld hl,VDPFEATURE_USETALLSPRITES
jr z, spritemode_tall_off
spritemode_tall_on:
call asm_SMSlib_VDPturnOnFeature
ld hl,$0210 ; spritesTileOffset = $02, spritesHeight = $10
jr spritemode_set_height
spritemode_tall_off:
call asm_SMSlib_VDPturnOffFeature
ld hl,$0108 ; spritesTileOffset = $01, spritesHeight = $08
spritemode_set_height:
ld (__SMSlib_spritesHeight),hl ; sets spritesHeight & spritesTileOffset
test_zoomed:
ld a,c
and SPRITEMODE_ZOOMED
ld hl,VDPFEATURE_ZOOMSPRITES
jr z, spritezoom_off
spritezoom_on:
call asm_SMSlib_VDPturnOnFeature
ld a,(__SMSlib_spritesHeight)
add a,a
ld (__SMSlib_spritesHeight),a
ld a,16
jr spritezoom_set_width
spritezoom_off:
call asm_SMSlib_VDPturnOffFeature
ld a,8
spritezoom_set_width:
ld (__SMSlib_spritesWidth),a
ret
|
archive/agda-3/src/Oscar/Class/Smap/ExtensionFinExtensionTerm.agda | m0davis/oscar | 0 | 5499 | <reponame>m0davis/oscar
open import Oscar.Prelude
open import Oscar.Class
open import Oscar.Class.Smap
open import Oscar.Data.Fin
open import Oscar.Data.Term
open import Oscar.Data.Vec
import Oscar.Class.Surjection.⋆
module Oscar.Class.Smap.ExtensionFinExtensionTerm where
module _ {𝔭} {𝔓 : Ø 𝔭} where
open Term 𝔓
private
mutual
𝓼urjectivityExtensionFinExtensionTerm : Smap!.type (Extension Fin) (Extension Term)
𝓼urjectivityExtensionFinExtensionTerm x (i y) = i (x y)
𝓼urjectivityExtensionFinExtensionTerm x leaf = leaf
𝓼urjectivityExtensionFinExtensionTerm x (l fork r) = 𝓼urjectivityExtensionFinExtensionTerm x l fork 𝓼urjectivityExtensionFinExtensionTerm x r
𝓼urjectivityExtensionFinExtensionTerm x (function f ts) = function f $ 𝓼urjectivityExtensionFinExtensionTerms x ts
𝓼urjectivityExtensionFinExtensionTerms : ∀ {N} → Smap!.type (Extension Fin) (Extension $ Terms N)
𝓼urjectivityExtensionFinExtensionTerms x ∅ = ∅
𝓼urjectivityExtensionFinExtensionTerms x (t , ts) = 𝓼urjectivityExtensionFinExtensionTerm x t , 𝓼urjectivityExtensionFinExtensionTerms x ts
instance
𝓢urjectivityExtensionFinExtensionTerm : Smap!.class (Extension Fin) (Extension Term)
𝓢urjectivityExtensionFinExtensionTerm .⋆ _ _ = 𝓼urjectivityExtensionFinExtensionTerm
𝓢urjectivityExtensionFinExtensionTerms : ∀ {N} → Smap!.class (Extension Fin) (Extension $ Terms N)
𝓢urjectivityExtensionFinExtensionTerms .⋆ _ _ = 𝓼urjectivityExtensionFinExtensionTerms
|
programs/oeis/138/A138421.asm | neoneye/loda | 22 | 105240 | ; A138421: a(n) = (prime(n)^4 - prime(n)^2)/6.
; 2,12,100,392,2420,4732,13872,21660,46552,117740,153760,312132,470680,569492,812912,1314612,2018980,2307020,3357772,4234440,4732152,6490640,7908572,10455720,14753312,17341700,18756712,21844692,23524380,27172432,43354752,49080460,58709432,62213620,82143700,86643800,101258092,117647532,129628072,149285852,171098940,178875060,221804480,231241792,251016612,261366600,330345820,412153952,442531052,458334340,491206872,543791920,562224080,661510500,727067392,797380232,872673660,898917840,981210452,1039126760,1069027972,1228327492,1480463292,1559142520,1599637832,1682989772,2000583860,2149634032,2416367812,2472560300,2587879712,2768363880,3023498672,3226123252,3438765540,3586252672,3816315620,4140073212,4309466800,4663794280,5136914860,5235699140,5751160560,5858656272,6190198520,6418912292,6773793600,7269615992,7527493820,7658975632,7927098972,8773823840,9374816232,9686634580,10333541500,10668883512,11187117580,12279990840,12469640052,14276979180
seq $0,6005 ; The odd prime numbers together with 1.
pow $0,2
max $0,4
bin $0,2
div $0,3
|
test/subtypes/test_subtypes-write.ads | skill-lang/skillAdaTestSuite | 1 | 4395 | <reponame>skill-lang/skillAdaTestSuite<gh_stars>1-10
with Ada.Characters.Handling;
with Ada.Directories;
with Ada.Strings.Fixed;
with Ada.Tags;
with Ahven.Framework;
with Subtypes.Api;
package Test_Subtypes.Write is
package Skill renames Subtypes.Api;
use Subtypes;
use Subtypes.Api;
type Test is new Ahven.Framework.Test_Case with null record;
procedure Initialize (T : in out Test);
procedure Set_Up (T : in out Test);
procedure Tear_Down (T : in out Test);
procedure Check_Types (T : in out Ahven.Framework.Test_Case'Class);
procedure Check_Fields_A (T : in out Ahven.Framework.Test_Case'Class);
procedure Check_Fields_B (T : in out Ahven.Framework.Test_Case'Class);
procedure Check_Fields_C (T : in out Ahven.Framework.Test_Case'Class);
procedure Check_Fields_D (T : in out Ahven.Framework.Test_Case'Class);
end Test_Subtypes.Write;
|
src/player.adb | drm343/Space-War-3000 | 2 | 2512 | <filename>src/player.adb
package body Player is
function Build (Race : String;
Good_Ability : Good_Type;
Bad_Ability : Bad_Type;
Victory_Condition : Victory;
Homeworld : Planet.Object)
return Object
is
player : Object;
begin
player.Race := SU.To_Unbounded_String (Race);
player.Good_Ability := Good_Ability;
player.Bad_Ability := Bad_Ability;
player.Victory_Condition := Victory_Condition;
player.Homeworld := Homeworld;
player.Owner_Planets.Append(Homeworld);
return player;
end Build;
end Player;
|
src/boot/load.asm | tone121/t1 | 3 | 174632 | <reponame>tone121/t1
[bits 32]
; Multiboot Header
MB_ALIGN equ 1<<0
MB_MEMINFO equ 1<<1
MB_FLAGS equ MB_ALIGN | MB_MEMINFO
MB_MAGIC equ 0x1BADB002
MB_CHECKSUM equ -(MB_MAGIC + MB_FLAGS)
section .multiboot
align 4
dd MB_MAGIC
dd MB_FLAGS
dd MB_CHECKSUM
section .text
global __simd_enable
__simd_enable:
mov eax, 0x1
cpuid
test edx, 1<<25
jz .__simd_notavailable
; sse is available
mov eax, cr0
and ax, 0xFFFB
or ax, 0x2
mov cr0, eax
mov eax, cr4
or ax, 3 << 9
mov cr4, eax
.__simd_notavailable:
ret
global _start
_start:
mov esp, stack_top
push ebx ; pointer to multiboot info struct
extern init
call init
jmp hang
global hang
hang: cli
hlt
jmp hang
section .bss
align 16
stack_bottom:
resb 0x4000
stack_top:
|
programs/oeis/099/A099570.asm | neoneye/loda | 22 | 171171 | ; A099570: Expansion of ((1+x)^2-x^3)/(1+x)^2.
; 1,0,0,-1,2,-3,4,-5,6,-7,8,-9,10,-11,12,-13,14,-15,16,-17,18,-19,20,-21,22,-23,24,-25,26,-27,28,-29,30,-31,32,-33,34,-35,36,-37,38,-39,40,-41,42,-43,44,-45,46,-47,48,-49,50,-51,52,-53,54,-55,56,-57,58,-59,60,-61,62,-63,64,-65,66,-67,68,-69,70,-71,72,-73
sub $0,2
mul $0,3
mov $1,-2
bin $1,$0
div $1,3
mov $0,$1
|
Agda/group-completion.agda | UlrikBuchholtz/HoTT-Intro | 333 | 16918 | <reponame>UlrikBuchholtz/HoTT-Intro
{-# OPTIONS --without-K --exact-split #-}
module group-completion where
import 15-groups
open 15-groups public
|
ioq3/build/release-js-js/missionpack/game/ai_team.asm | RawTechnique/quake-port | 1 | 244554 | <reponame>RawTechnique/quake-port<gh_stars>1-10
export BotValidTeamLeader
code
proc BotValidTeamLeader 8 4
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
ADDRLP4 0
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 0
INDIRU4
CNSTU4 0
NEU4 $55
CNSTI4 0
RETI4
ADDRGP4 $54
JUMPV
LABELV $55
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
ADDRLP4 4
ADDRGP4 ClientFromName
CALLI4
ASGNI4
ADDRLP4 4
INDIRI4
CNSTI4 -1
NEI4 $57
CNSTI4 0
RETI4
ADDRGP4 $54
JUMPV
LABELV $57
CNSTI4 1
RETI4
LABELV $54
endproc BotValidTeamLeader 8 4
bss
align 4
LABELV $60
skip 4
export BotNumTeamMates
code
proc BotNumTeamMates 1064 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRGP4 $60
INDIRI4
CNSTI4 0
NEI4 $61
ADDRGP4 $63
ARGP4
ADDRLP4 1032
ADDRGP4 trap_Cvar_VariableIntegerValue
CALLI4
ASGNI4
ADDRGP4 $60
ADDRLP4 1032
INDIRI4
ASGNI4
LABELV $61
ADDRLP4 1036
CNSTI4 0
ASGNI4
ADDRLP4 1028
ADDRLP4 1036
INDIRI4
ASGNI4
ADDRLP4 0
ADDRLP4 1036
INDIRI4
ASGNI4
ADDRGP4 $67
JUMPV
LABELV $64
ADDRLP4 0
INDIRI4
CNSTI4 544
ADDI4
ARGI4
ADDRLP4 4
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_GetConfigstring
CALLV
pop
ADDRLP4 4
ARGP4
ADDRLP4 1040
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 1040
INDIRU4
CNSTU4 0
EQU4 $71
ADDRLP4 4
ARGP4
ADDRGP4 $70
ARGP4
ADDRLP4 1044
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1044
INDIRP4
ARGP4
ADDRLP4 1048
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 1048
INDIRU4
CNSTU4 0
NEU4 $68
LABELV $71
ADDRGP4 $65
JUMPV
LABELV $68
ADDRLP4 4
ARGP4
ADDRGP4 $74
ARGP4
ADDRLP4 1052
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1052
INDIRP4
ARGP4
ADDRLP4 1056
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 1056
INDIRI4
CNSTI4 3
NEI4 $72
ADDRGP4 $65
JUMPV
LABELV $72
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 1060
ADDRGP4 BotSameTeam
CALLI4
ASGNI4
ADDRLP4 1060
INDIRI4
CNSTI4 0
EQI4 $75
ADDRLP4 1028
ADDRLP4 1028
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $75
LABELV $65
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $67
ADDRLP4 0
INDIRI4
ADDRGP4 $60
INDIRI4
GEI4 $77
ADDRLP4 0
INDIRI4
CNSTI4 64
LTI4 $64
LABELV $77
ADDRLP4 1028
INDIRI4
RETI4
LABELV $59
endproc BotNumTeamMates 1064 12
export BotClientTravelTimeToGoal
proc BotClientTravelTimeToGoal 480 16
ADDRFP4 0
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
ADDRGP4 BotAI_GetClientState
CALLI4
pop
ADDRLP4 0+20
ARGP4
ADDRLP4 472
ADDRGP4 BotPointAreaNum
CALLI4
ASGNI4
ADDRLP4 468
ADDRLP4 472
INDIRI4
ASGNI4
ADDRLP4 468
INDIRI4
CNSTI4 0
NEI4 $80
CNSTI4 1
RETI4
ADDRGP4 $78
JUMPV
LABELV $80
ADDRLP4 468
INDIRI4
ARGI4
ADDRLP4 0+20
ARGP4
ADDRFP4 4
INDIRP4
CNSTI4 12
ADDP4
INDIRI4
ARGI4
CNSTI4 18616254
ARGI4
ADDRLP4 476
ADDRGP4 trap_AAS_AreaTravelTimeToGoalArea
CALLI4
ASGNI4
ADDRLP4 476
INDIRI4
RETI4
LABELV $78
endproc BotClientTravelTimeToGoal 480 16
bss
align 4
LABELV $84
skip 4
export BotSortTeamMatesByBaseTravelTime
code
proc BotSortTeamMatesByBaseTravelTime 1356 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRP4
ASGNP4
ADDRFP4 8
ADDRFP4 8
INDIRI4
ASGNI4
ADDRLP4 1300
CNSTP4 0
ASGNP4
ADDRLP4 1304
ADDRGP4 gametype
INDIRI4
ASGNI4
ADDRLP4 1304
INDIRI4
CNSTI4 4
EQI4 $87
ADDRLP4 1304
INDIRI4
CNSTI4 5
NEI4 $85
LABELV $87
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1308
ADDRGP4 BotTeam
CALLI4
ASGNI4
ADDRLP4 1308
INDIRI4
CNSTI4 1
NEI4 $88
ADDRLP4 1300
ADDRGP4 ctf_redflag
ASGNP4
ADDRGP4 $86
JUMPV
LABELV $88
ADDRLP4 1300
ADDRGP4 ctf_blueflag
ASGNP4
ADDRGP4 $86
JUMPV
LABELV $85
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1308
ADDRGP4 BotTeam
CALLI4
ASGNI4
ADDRLP4 1308
INDIRI4
CNSTI4 1
NEI4 $90
ADDRLP4 1300
ADDRGP4 redobelisk
ASGNP4
ADDRGP4 $91
JUMPV
LABELV $90
ADDRLP4 1300
ADDRGP4 blueobelisk
ASGNP4
LABELV $91
LABELV $86
ADDRGP4 $84
INDIRI4
CNSTI4 0
NEI4 $92
ADDRGP4 $63
ARGP4
ADDRLP4 1308
ADDRGP4 trap_Cvar_VariableIntegerValue
CALLI4
ASGNI4
ADDRGP4 $84
ADDRLP4 1308
INDIRI4
ASGNI4
LABELV $92
ADDRLP4 1312
CNSTI4 0
ASGNI4
ADDRLP4 264
ADDRLP4 1312
INDIRI4
ASGNI4
ADDRLP4 268
ADDRLP4 1312
INDIRI4
ASGNI4
ADDRGP4 $97
JUMPV
LABELV $94
ADDRLP4 268
INDIRI4
CNSTI4 544
ADDI4
ARGI4
ADDRLP4 276
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_GetConfigstring
CALLV
pop
ADDRLP4 276
ARGP4
ADDRLP4 1316
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 1316
INDIRU4
CNSTU4 0
EQU4 $100
ADDRLP4 276
ARGP4
ADDRGP4 $70
ARGP4
ADDRLP4 1320
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1320
INDIRP4
ARGP4
ADDRLP4 1324
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 1324
INDIRU4
CNSTU4 0
NEU4 $98
LABELV $100
ADDRGP4 $95
JUMPV
LABELV $98
ADDRLP4 276
ARGP4
ADDRGP4 $74
ARGP4
ADDRLP4 1328
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1328
INDIRP4
ARGP4
ADDRLP4 1332
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 1332
INDIRI4
CNSTI4 3
NEI4 $101
ADDRGP4 $95
JUMPV
LABELV $101
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 268
INDIRI4
ARGI4
ADDRLP4 1336
ADDRGP4 BotSameTeam
CALLI4
ASGNI4
ADDRLP4 1336
INDIRI4
CNSTI4 0
EQI4 $103
ADDRLP4 268
INDIRI4
ARGI4
ADDRLP4 1300
INDIRP4
ARGP4
ADDRLP4 1340
ADDRGP4 BotClientTravelTimeToGoal
CALLI4
ASGNI4
ADDRLP4 272
ADDRLP4 1340
INDIRI4
ASGNI4
ADDRLP4 260
CNSTI4 0
ASGNI4
ADDRGP4 $108
JUMPV
LABELV $105
ADDRLP4 272
INDIRI4
ADDRLP4 260
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
GEI4 $109
ADDRLP4 0
ADDRLP4 264
INDIRI4
ASGNI4
ADDRGP4 $114
JUMPV
LABELV $111
ADDRLP4 1344
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ASGNI4
ADDRLP4 1344
INDIRI4
ADDRLP4 4
ADDP4
ADDRLP4 1344
INDIRI4
ADDRLP4 4-4
ADDP4
INDIRI4
ASGNI4
ADDRLP4 1348
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ASGNI4
ADDRLP4 1348
INDIRI4
ADDRFP4 4
INDIRP4
ADDP4
ADDRLP4 1348
INDIRI4
CNSTI4 4
SUBI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ASGNI4
LABELV $112
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
SUBI4
ASGNI4
LABELV $114
ADDRLP4 0
INDIRI4
ADDRLP4 260
INDIRI4
GTI4 $111
ADDRGP4 $107
JUMPV
LABELV $109
LABELV $106
ADDRLP4 260
ADDRLP4 260
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $108
ADDRLP4 260
INDIRI4
ADDRLP4 264
INDIRI4
LTI4 $105
LABELV $107
ADDRLP4 260
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
ADDRLP4 272
INDIRI4
ASGNI4
ADDRLP4 260
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
ADDRLP4 268
INDIRI4
ASGNI4
ADDRLP4 264
ADDRLP4 264
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 264
INDIRI4
ADDRFP4 8
INDIRI4
LTI4 $116
ADDRGP4 $96
JUMPV
LABELV $116
LABELV $103
LABELV $95
ADDRLP4 268
ADDRLP4 268
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $97
ADDRLP4 268
INDIRI4
ADDRGP4 $84
INDIRI4
GEI4 $118
ADDRLP4 268
INDIRI4
CNSTI4 64
LTI4 $94
LABELV $118
LABELV $96
ADDRLP4 264
INDIRI4
RETI4
LABELV $83
endproc BotSortTeamMatesByBaseTravelTime 1356 12
export BotSetTeamMateTaskPreference
proc BotSetTeamMateTaskPreference 36 12
ADDRFP4 4
ADDRFP4 4
INDIRI4
ASGNI4
CNSTI4 40
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 ctftaskpreferences+36
ADDP4
ADDRFP4 8
INDIRI4
ASGNI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
CNSTI4 40
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 ctftaskpreferences
ADDP4
ARGP4
ADDRLP4 0
ARGP4
ADDRGP4 qk_strcpy
CALLP4
pop
LABELV $119
endproc BotSetTeamMateTaskPreference 36 12
export BotGetTeamMateTaskPreference
proc BotGetTeamMateTaskPreference 40 12
ADDRFP4 4
ADDRFP4 4
INDIRI4
ASGNI4
CNSTI4 40
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 ctftaskpreferences+36
ADDP4
INDIRI4
CNSTI4 0
NEI4 $122
CNSTI4 0
RETI4
ADDRGP4 $121
JUMPV
LABELV $122
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
ARGP4
CNSTI4 40
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 ctftaskpreferences
ADDP4
ARGP4
ADDRLP4 36
ADDRGP4 Q_stricmp
CALLI4
ASGNI4
ADDRLP4 36
INDIRI4
CNSTI4 0
EQI4 $125
CNSTI4 0
RETI4
ADDRGP4 $121
JUMPV
LABELV $125
CNSTI4 40
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 ctftaskpreferences+36
ADDP4
INDIRI4
RETI4
LABELV $121
endproc BotGetTeamMateTaskPreference 40 12
export BotSortTeamMatesByTaskPreference
proc BotSortTeamMatesByTaskPreference 804 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRP4
ASGNP4
ADDRFP4 8
ADDRFP4 8
INDIRI4
ASGNI4
ADDRLP4 788
CNSTI4 0
ASGNI4
ADDRLP4 272
ADDRLP4 788
INDIRI4
ASGNI4
ADDRLP4 268
ADDRLP4 788
INDIRI4
ASGNI4
ADDRLP4 8
ADDRLP4 788
INDIRI4
ASGNI4
ADDRLP4 0
ADDRLP4 788
INDIRI4
ASGNI4
ADDRGP4 $132
JUMPV
LABELV $129
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ARGI4
ADDRLP4 792
ADDRGP4 BotGetTeamMateTaskPreference
CALLI4
ASGNI4
ADDRLP4 4
ADDRLP4 792
INDIRI4
ASGNI4
ADDRLP4 4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
EQI4 $133
ADDRLP4 796
ADDRLP4 8
INDIRI4
ASGNI4
ADDRLP4 8
ADDRLP4 796
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 800
CNSTI4 2
ASGNI4
ADDRLP4 796
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRLP4 12
ADDP4
ADDRLP4 0
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ASGNI4
ADDRGP4 $134
JUMPV
LABELV $133
ADDRLP4 4
INDIRI4
CNSTI4 2
BANDI4
CNSTI4 0
EQI4 $135
ADDRLP4 796
ADDRLP4 268
INDIRI4
ASGNI4
ADDRLP4 268
ADDRLP4 796
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 800
CNSTI4 2
ASGNI4
ADDRLP4 796
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRLP4 276
ADDP4
ADDRLP4 0
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ASGNI4
ADDRGP4 $136
JUMPV
LABELV $135
ADDRLP4 796
ADDRLP4 272
INDIRI4
ASGNI4
ADDRLP4 272
ADDRLP4 796
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 800
CNSTI4 2
ASGNI4
ADDRLP4 796
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRLP4 532
ADDP4
ADDRLP4 0
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ASGNI4
LABELV $136
LABELV $134
LABELV $130
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $132
ADDRLP4 0
INDIRI4
ADDRFP4 8
INDIRI4
LTI4 $129
ADDRFP4 8
CNSTI4 0
ASGNI4
ADDRLP4 792
CNSTI4 2
ASGNI4
ADDRFP4 8
INDIRI4
ADDRLP4 792
INDIRI4
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
ARGP4
ADDRLP4 12
ARGP4
ADDRLP4 8
INDIRI4
CVIU4 4
ADDRLP4 792
INDIRI4
LSHU4
ARGU4
ADDRGP4 qk_memcpy
CALLP4
pop
ADDRFP4 8
ADDRFP4 8
INDIRI4
ADDRLP4 8
INDIRI4
ADDI4
ASGNI4
ADDRLP4 796
CNSTI4 2
ASGNI4
ADDRFP4 8
INDIRI4
ADDRLP4 796
INDIRI4
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
ARGP4
ADDRLP4 532
ARGP4
ADDRLP4 272
INDIRI4
CVIU4 4
ADDRLP4 796
INDIRI4
LSHU4
ARGU4
ADDRGP4 qk_memcpy
CALLP4
pop
ADDRFP4 8
ADDRFP4 8
INDIRI4
ADDRLP4 272
INDIRI4
ADDI4
ASGNI4
ADDRLP4 800
CNSTI4 2
ASGNI4
ADDRFP4 8
INDIRI4
ADDRLP4 800
INDIRI4
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
ARGP4
ADDRLP4 276
ARGP4
ADDRLP4 268
INDIRI4
CVIU4 4
ADDRLP4 800
INDIRI4
LSHU4
ARGU4
ADDRGP4 qk_memcpy
CALLP4
pop
ADDRFP4 8
ADDRFP4 8
INDIRI4
ADDRLP4 268
INDIRI4
ADDI4
ASGNI4
ADDRFP4 8
INDIRI4
RETI4
LABELV $128
endproc BotSortTeamMatesByTaskPreference 804 12
export BotSayTeamOrderAlways
proc BotSayTeamOrderAlways 548 20
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ADDRFP4 4
INDIRI4
NEI4 $138
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
ADDRLP4 256
ARGP4
CNSTI4 256
ARGI4
ADDRGP4 trap_BotGetChatMessage
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 512
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRGP4 $140
ARGP4
ADDRLP4 512
ARGP4
ADDRLP4 256
ARGP4
ADDRGP4 Com_sprintf
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
CNSTI4 1
ARGI4
ADDRLP4 0
ARGP4
ADDRGP4 trap_BotQueueConsoleMessage
CALLV
pop
ADDRGP4 $139
JUMPV
LABELV $138
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
CNSTI4 2
ARGI4
ADDRGP4 trap_BotEnterChat
CALLV
pop
LABELV $139
LABELV $137
endproc BotSayTeamOrderAlways 548 20
export BotSayTeamOrder
proc BotSayTeamOrder 256 12
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRGP4 trap_BotGetChatMessage
CALLV
pop
LABELV $141
endproc BotSayTeamOrder 256 12
export BotVoiceChat
proc BotVoiceChat 8 12
ADDRFP4 4
INDIRI4
CNSTI4 -1
NEI4 $143
ADDRGP4 $145
ARGP4
ADDRFP4 8
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 va
CALLP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 trap_EA_Command
CALLV
pop
ADDRGP4 $144
JUMPV
LABELV $143
ADDRGP4 $146
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRP4
ARGP4
ADDRLP4 4
ADDRGP4 va
CALLP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 4
INDIRP4
ARGP4
ADDRGP4 trap_EA_Command
CALLV
pop
LABELV $144
LABELV $142
endproc BotVoiceChat 8 12
export BotVoiceChatOnly
proc BotVoiceChatOnly 8 12
ADDRFP4 4
INDIRI4
CNSTI4 -1
NEI4 $148
ADDRGP4 $150
ARGP4
ADDRFP4 8
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 va
CALLP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 trap_EA_Command
CALLV
pop
ADDRGP4 $149
JUMPV
LABELV $148
ADDRGP4 $151
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRP4
ARGP4
ADDRLP4 4
ADDRGP4 va
CALLP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 4
INDIRP4
ARGP4
ADDRGP4 trap_EA_Command
CALLV
pop
LABELV $149
LABELV $147
endproc BotVoiceChatOnly 8 12
export BotSayVoiceTeamOrder
proc BotSayVoiceTeamOrder 0 12
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRP4
ARGP4
ADDRGP4 BotVoiceChat
CALLV
pop
LABELV $152
endproc BotSayVoiceTeamOrder 0 12
export BotCTFOrders_BothFlagsNotAtBase
proc BotCTFOrders_BothFlagsNotAtBase 368 20
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 348
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 348
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRLP4 352
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ASGNI4
ADDRLP4 352
INDIRI4
CNSTI4 1
EQI4 $155
ADDRLP4 352
INDIRI4
CNSTI4 2
EQI4 $158
ADDRLP4 352
INDIRI4
CNSTI4 3
EQI4 $164
ADDRGP4 $154
JUMPV
LABELV $158
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $159
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
ADDRGP4 $160
JUMPV
LABELV $159
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $160
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $155
JUMPV
LABELV $164
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $165
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
ADDRGP4 $166
JUMPV
LABELV $165
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $166
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
CNSTI4 -1
EQI4 $168
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $170
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $169
JUMPV
LABELV $170
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 260
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $169
JUMPV
LABELV $168
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $169
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRLP4 4+8
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $176
ADDRLP4 308
ADDRLP4 4+8
INDIRI4
ASGNI4
ADDRGP4 $177
JUMPV
LABELV $176
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $177
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $181
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $155
JUMPV
LABELV $154
ADDRLP4 300
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 4
LEI4 $182
ADDRLP4 300
CNSTI4 4
ASGNI4
LABELV $182
ADDRLP4 360
CNSTF4 1056964608
ASGNF4
ADDRLP4 304
ADDRLP4 360
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 360
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 5
LEI4 $184
ADDRLP4 304
CNSTI4 5
ASGNI4
LABELV $184
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
CNSTI4 -1
EQI4 $186
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $191
JUMPV
LABELV $188
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $192
ADDRGP4 $189
JUMPV
LABELV $192
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $194
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $195
JUMPV
LABELV $194
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 260
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $195
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
LABELV $189
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $191
ADDRLP4 0
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $188
ADDRGP4 $187
JUMPV
LABELV $186
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $199
JUMPV
LABELV $196
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $200
ADDRGP4 $197
JUMPV
LABELV $200
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
LABELV $197
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $199
ADDRLP4 0
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $196
LABELV $187
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $205
JUMPV
LABELV $202
ADDRLP4 296
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $206
ADDRGP4 $203
JUMPV
LABELV $206
ADDRLP4 296
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $181
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $203
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $205
ADDRLP4 0
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $202
LABELV $155
LABELV $153
endproc BotCTFOrders_BothFlagsNotAtBase 368 20
export BotCTFOrders_FlagNotAtBase
proc BotCTFOrders_FlagNotAtBase 320 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $213
ADDRLP4 312
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ASGNI4
ADDRLP4 312
INDIRI4
CNSTI4 1
EQI4 $214
ADDRLP4 312
INDIRI4
CNSTI4 2
EQI4 $219
ADDRLP4 312
INDIRI4
CNSTI4 3
EQI4 $225
ADDRGP4 $215
JUMPV
LABELV $219
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $214
JUMPV
LABELV $225
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $214
JUMPV
LABELV $215
ADDRLP4 300
CNSTF4 1050253722
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 3
LEI4 $232
ADDRLP4 300
CNSTI4 3
ASGNI4
LABELV $232
ADDRLP4 304
CNSTF4 1058642330
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 6
LEI4 $234
ADDRLP4 304
CNSTI4 6
ASGNI4
LABELV $234
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $239
JUMPV
LABELV $236
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $237
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $239
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $236
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $243
JUMPV
LABELV $240
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $241
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $243
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $240
ADDRGP4 $214
JUMPV
LABELV $213
ADDRLP4 312
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ASGNI4
ADDRLP4 312
INDIRI4
CNSTI4 1
EQI4 $247
ADDRLP4 312
INDIRI4
CNSTI4 2
EQI4 $250
ADDRLP4 312
INDIRI4
CNSTI4 3
EQI4 $254
ADDRGP4 $246
JUMPV
LABELV $250
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $247
JUMPV
LABELV $254
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $247
JUMPV
LABELV $246
ADDRLP4 300
CNSTF4 1045220557
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 2
LEI4 $261
ADDRLP4 300
CNSTI4 2
ASGNI4
LABELV $261
ADDRLP4 304
CNSTF4 1060320051
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 7
LEI4 $263
ADDRLP4 304
CNSTI4 7
ASGNI4
LABELV $263
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $268
JUMPV
LABELV $265
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $266
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $268
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $265
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $272
JUMPV
LABELV $269
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $270
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $272
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $269
LABELV $247
LABELV $214
LABELV $212
endproc BotCTFOrders_FlagNotAtBase 320 16
export BotCTFOrders_EnemyFlagNotAtBase
proc BotCTFOrders_EnemyFlagNotAtBase 360 20
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 348
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 260
ADDRLP4 348
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
ADDRLP4 260
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRLP4 260
INDIRI4
CNSTI4 1
EQI4 $278
ADDRLP4 260
INDIRI4
CNSTI4 2
EQI4 $280
ADDRLP4 260
INDIRI4
CNSTI4 3
EQI4 $284
ADDRGP4 $277
JUMPV
LABELV $280
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $281
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
ADDRGP4 $282
JUMPV
LABELV $281
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
LABELV $282
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $278
JUMPV
LABELV $284
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $285
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
ADDRGP4 $286
JUMPV
LABELV $285
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $286
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 4+8
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $288
ADDRLP4 308
ADDRLP4 4+8
INDIRI4
ASGNI4
ADDRGP4 $289
JUMPV
LABELV $288
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $289
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $278
JUMPV
LABELV $277
ADDRLP4 300
CNSTF4 1058642330
ADDRLP4 260
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 6
LEI4 $293
ADDRLP4 300
CNSTI4 6
ASGNI4
LABELV $293
ADDRLP4 304
CNSTF4 1050253722
ADDRLP4 260
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 3
LEI4 $295
ADDRLP4 304
CNSTI4 3
ASGNI4
LABELV $295
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $300
JUMPV
LABELV $297
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $301
ADDRGP4 $298
JUMPV
LABELV $301
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $298
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $300
ADDRLP4 0
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $297
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
CNSTI4 -1
EQI4 $303
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $308
JUMPV
LABELV $305
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $309
ADDRGP4 $306
JUMPV
LABELV $309
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $313
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $314
JUMPV
LABELV $313
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 264
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $314
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
LABELV $306
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $308
ADDRLP4 0
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $305
ADDRGP4 $278
JUMPV
LABELV $303
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $321
JUMPV
LABELV $318
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $322
ADDRGP4 $319
JUMPV
LABELV $322
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
LABELV $319
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $321
ADDRLP4 0
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $318
LABELV $278
LABELV $276
endproc BotCTFOrders_EnemyFlagNotAtBase 360 20
export BotCTFOrders_BothFlagsAtBase
proc BotCTFOrders_BothFlagsAtBase 320 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $329
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $330
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $334
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $338
ADDRGP4 $331
JUMPV
LABELV $334
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $330
JUMPV
LABELV $338
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $330
JUMPV
LABELV $331
ADDRLP4 316
CNSTF4 1056964608
ASGNF4
ADDRLP4 300
ADDRLP4 316
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 316
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 5
LEI4 $345
ADDRLP4 300
CNSTI4 5
ASGNI4
LABELV $345
ADDRLP4 304
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 4
LEI4 $347
ADDRLP4 304
CNSTI4 4
ASGNI4
LABELV $347
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $352
JUMPV
LABELV $349
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $350
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $352
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $349
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $356
JUMPV
LABELV $353
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $354
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $356
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $353
ADDRGP4 $330
JUMPV
LABELV $329
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $361
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $363
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $367
ADDRGP4 $360
JUMPV
LABELV $363
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $361
JUMPV
LABELV $367
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $361
JUMPV
LABELV $360
ADDRLP4 300
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 4
LEI4 $374
ADDRLP4 300
CNSTI4 4
ASGNI4
LABELV $374
ADDRLP4 316
CNSTF4 1056964608
ASGNF4
ADDRLP4 304
ADDRLP4 316
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 316
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 5
LEI4 $376
ADDRLP4 304
CNSTI4 5
ASGNI4
LABELV $376
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $381
JUMPV
LABELV $378
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $379
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $381
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $378
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $385
JUMPV
LABELV $382
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $383
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $385
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $382
LABELV $361
LABELV $330
LABELV $328
endproc BotCTFOrders_BothFlagsAtBase 320 16
export BotCTFOrders
proc BotCTFOrders 20 4
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ADDRGP4 BotTeam
CALLI4
ASGNI4
ADDRLP4 4
INDIRI4
CNSTI4 1
NEI4 $390
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 6948
ADDP4
INDIRI4
CNSTI4 1
LSHI4
ADDRFP4 0
INDIRP4
CNSTI4 6952
ADDP4
INDIRI4
ADDI4
ASGNI4
ADDRGP4 $391
JUMPV
LABELV $390
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 6952
ADDP4
INDIRI4
CNSTI4 1
LSHI4
ADDRFP4 0
INDIRP4
CNSTI4 6948
ADDP4
INDIRI4
ADDI4
ASGNI4
LABELV $391
ADDRLP4 16
ADDRLP4 0
INDIRI4
ASGNI4
ADDRLP4 16
INDIRI4
CNSTI4 0
LTI4 $392
ADDRLP4 16
INDIRI4
CNSTI4 3
GTI4 $392
ADDRLP4 16
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 $398
ADDP4
INDIRP4
JUMPV
lit
align 4
LABELV $398
address $394
address $395
address $396
address $397
code
LABELV $394
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotCTFOrders_BothFlagsAtBase
CALLV
pop
ADDRGP4 $393
JUMPV
LABELV $395
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotCTFOrders_EnemyFlagNotAtBase
CALLV
pop
ADDRGP4 $393
JUMPV
LABELV $396
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotCTFOrders_FlagNotAtBase
CALLV
pop
ADDRGP4 $393
JUMPV
LABELV $397
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotCTFOrders_BothFlagsNotAtBase
CALLV
pop
LABELV $392
LABELV $393
LABELV $389
endproc BotCTFOrders 20 4
export BotCreateGroup
proc BotCreateGroup 76 20
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRP4
ASGNP4
ADDRFP4 8
ADDRFP4 8
INDIRI4
ASGNI4
ADDRFP4 4
INDIRP4
INDIRI4
ARGI4
ADDRLP4 40
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
CNSTI4 1
ASGNI4
ADDRGP4 $403
JUMPV
LABELV $400
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ARGI4
ADDRLP4 4
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 4
INDIRP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $404
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 4
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRGP4 $405
JUMPV
LABELV $404
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 4
ARGP4
ADDRLP4 40
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
LABELV $405
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRFP4 4
INDIRP4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrderAlways
CALLV
pop
LABELV $401
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $403
ADDRLP4 0
INDIRI4
ADDRFP4 8
INDIRI4
LTI4 $400
LABELV $399
endproc BotCreateGroup 76 20
bss
align 4
LABELV $407
skip 4
export BotTeamOrders
code
proc BotTeamOrders 1320 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRGP4 $407
INDIRI4
CNSTI4 0
NEI4 $408
ADDRGP4 $63
ARGP4
ADDRLP4 1288
ADDRGP4 trap_Cvar_VariableIntegerValue
CALLI4
ASGNI4
ADDRGP4 $407
ADDRLP4 1288
INDIRI4
ASGNI4
LABELV $408
ADDRLP4 1292
CNSTI4 0
ASGNI4
ADDRLP4 1028
ADDRLP4 1292
INDIRI4
ASGNI4
ADDRLP4 0
ADDRLP4 1292
INDIRI4
ASGNI4
ADDRGP4 $413
JUMPV
LABELV $410
ADDRLP4 0
INDIRI4
CNSTI4 544
ADDI4
ARGI4
ADDRLP4 4
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_GetConfigstring
CALLV
pop
ADDRLP4 4
ARGP4
ADDRLP4 1296
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 1296
INDIRU4
CNSTU4 0
EQU4 $416
ADDRLP4 4
ARGP4
ADDRGP4 $70
ARGP4
ADDRLP4 1300
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1300
INDIRP4
ARGP4
ADDRLP4 1304
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 1304
INDIRU4
CNSTU4 0
NEU4 $414
LABELV $416
ADDRGP4 $411
JUMPV
LABELV $414
ADDRLP4 4
ARGP4
ADDRGP4 $74
ARGP4
ADDRLP4 1308
ADDRGP4 Info_ValueForKey
CALLP4
ASGNP4
ADDRLP4 1308
INDIRP4
ARGP4
ADDRLP4 1312
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 1312
INDIRI4
CNSTI4 3
NEI4 $417
ADDRGP4 $411
JUMPV
LABELV $417
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 1316
ADDRGP4 BotSameTeam
CALLI4
ASGNI4
ADDRLP4 1316
INDIRI4
CNSTI4 0
EQI4 $419
ADDRLP4 1028
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 1032
ADDP4
ADDRLP4 0
INDIRI4
ASGNI4
ADDRLP4 1028
ADDRLP4 1028
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $419
LABELV $411
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $413
ADDRLP4 0
INDIRI4
ADDRGP4 $407
INDIRI4
GEI4 $421
ADDRLP4 0
INDIRI4
CNSTI4 64
LTI4 $410
LABELV $421
ADDRLP4 1028
INDIRI4
CNSTI4 1
LTI4 $422
ADDRLP4 1028
INDIRI4
CNSTI4 5
GTI4 $422
ADDRLP4 1028
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 $437-4
ADDP4
INDIRP4
JUMPV
lit
align 4
LABELV $437
address $423
address $423
address $426
address $427
address $429
code
LABELV $426
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1032
ARGP4
CNSTI4 2
ARGI4
ADDRGP4 BotCreateGroup
CALLV
pop
ADDRGP4 $423
JUMPV
LABELV $427
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1032
ARGP4
CNSTI4 2
ARGI4
ADDRGP4 BotCreateGroup
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1032+8
ARGP4
CNSTI4 2
ARGI4
ADDRGP4 BotCreateGroup
CALLV
pop
ADDRGP4 $423
JUMPV
LABELV $429
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1032
ARGP4
CNSTI4 2
ARGI4
ADDRGP4 BotCreateGroup
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1032+8
ARGP4
CNSTI4 3
ARGI4
ADDRGP4 BotCreateGroup
CALLV
pop
ADDRGP4 $423
JUMPV
LABELV $422
ADDRLP4 1028
INDIRI4
CNSTI4 10
GTI4 $423
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $436
JUMPV
LABELV $433
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1304
CNSTI4 2
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 1
LSHI4
ADDRLP4 1304
INDIRI4
LSHI4
ADDRLP4 1032
ADDP4
ARGP4
ADDRLP4 1304
INDIRI4
ARGI4
ADDRGP4 BotCreateGroup
CALLV
pop
LABELV $434
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $436
ADDRLP4 0
INDIRI4
ADDRLP4 1028
INDIRI4
CNSTI4 2
DIVI4
LTI4 $433
LABELV $423
LABELV $406
endproc BotTeamOrders 1320 12
export Bot1FCTFOrders_FlagAtCenter
proc Bot1FCTFOrders_FlagAtCenter 320 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $440
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $441
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $445
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $449
ADDRGP4 $442
JUMPV
LABELV $445
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $441
JUMPV
LABELV $449
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $441
JUMPV
LABELV $442
ADDRLP4 316
CNSTF4 1056964608
ASGNF4
ADDRLP4 300
ADDRLP4 316
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 316
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 5
LEI4 $455
ADDRLP4 300
CNSTI4 5
ASGNI4
LABELV $455
ADDRLP4 304
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 4
LEI4 $457
ADDRLP4 304
CNSTI4 4
ASGNI4
LABELV $457
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $462
JUMPV
LABELV $459
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $460
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $462
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $459
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $466
JUMPV
LABELV $463
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $464
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $466
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $463
ADDRGP4 $441
JUMPV
LABELV $440
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $471
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $473
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $477
ADDRGP4 $470
JUMPV
LABELV $473
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $471
JUMPV
LABELV $477
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $471
JUMPV
LABELV $470
ADDRLP4 300
CNSTF4 1050253722
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 3
LEI4 $484
ADDRLP4 300
CNSTI4 3
ASGNI4
LABELV $484
ADDRLP4 304
CNSTF4 1058642330
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 6
LEI4 $486
ADDRLP4 304
CNSTI4 6
ASGNI4
LABELV $486
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $491
JUMPV
LABELV $488
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $489
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $491
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $488
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $495
JUMPV
LABELV $492
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $493
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $495
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $492
LABELV $471
LABELV $441
LABELV $439
endproc Bot1FCTFOrders_FlagAtCenter 320 16
export Bot1FCTFOrders_TeamHasFlag
proc Bot1FCTFOrders_TeamHasFlag 360 20
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 348
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 260
ADDRLP4 348
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ARGP4
ADDRLP4 260
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $500
ADDRLP4 260
INDIRI4
CNSTI4 1
EQI4 $501
ADDRLP4 260
INDIRI4
CNSTI4 2
EQI4 $505
ADDRLP4 260
INDIRI4
CNSTI4 3
EQI4 $511
ADDRGP4 $502
JUMPV
LABELV $505
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $506
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
ADDRGP4 $507
JUMPV
LABELV $506
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
LABELV $507
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $501
JUMPV
LABELV $511
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $512
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
ADDRGP4 $513
JUMPV
LABELV $512
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $513
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 4+8
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $515
ADDRLP4 308
ADDRLP4 4+8
INDIRI4
ASGNI4
ADDRGP4 $516
JUMPV
LABELV $515
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $516
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
CNSTI4 -1
EQI4 $520
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $522
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $521
JUMPV
LABELV $522
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 264
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $521
JUMPV
LABELV $520
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $521
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRGP4 $501
JUMPV
LABELV $502
ADDRLP4 300
CNSTF4 1050253722
ADDRLP4 260
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 3
LEI4 $524
ADDRLP4 300
CNSTI4 3
ASGNI4
LABELV $524
ADDRLP4 304
CNSTF4 1060320051
ADDRLP4 260
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 7
LEI4 $526
ADDRLP4 304
CNSTI4 7
ASGNI4
LABELV $526
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $531
JUMPV
LABELV $528
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $532
ADDRGP4 $529
JUMPV
LABELV $532
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $529
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $531
ADDRLP4 0
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $528
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
CNSTI4 -1
EQI4 $534
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $539
JUMPV
LABELV $536
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $540
ADDRGP4 $537
JUMPV
LABELV $540
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $544
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $545
JUMPV
LABELV $544
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 264
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $545
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
LABELV $537
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $539
ADDRLP4 0
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $536
ADDRGP4 $501
JUMPV
LABELV $534
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $552
JUMPV
LABELV $549
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $553
ADDRGP4 $550
JUMPV
LABELV $553
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $550
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $552
ADDRLP4 0
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $549
ADDRGP4 $501
JUMPV
LABELV $500
ADDRLP4 260
INDIRI4
CNSTI4 1
EQI4 $560
ADDRLP4 260
INDIRI4
CNSTI4 2
EQI4 $562
ADDRLP4 260
INDIRI4
CNSTI4 3
EQI4 $566
ADDRGP4 $559
JUMPV
LABELV $562
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $563
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
ADDRGP4 $564
JUMPV
LABELV $563
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
LABELV $564
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $560
JUMPV
LABELV $566
ADDRLP4 4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $567
ADDRLP4 308
ADDRLP4 4
INDIRI4
ASGNI4
ADDRGP4 $568
JUMPV
LABELV $567
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $568
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 4+8
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
EQI4 $570
ADDRLP4 308
ADDRLP4 4+8
INDIRI4
ASGNI4
ADDRGP4 $571
JUMPV
LABELV $570
ADDRLP4 308
ADDRLP4 4+4
INDIRI4
ASGNI4
LABELV $571
ADDRLP4 308
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $575
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $576
JUMPV
LABELV $575
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 264
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $576
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 308
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRGP4 $560
JUMPV
LABELV $559
ADDRLP4 300
CNSTF4 1045220557
ADDRLP4 260
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 2
LEI4 $577
ADDRLP4 300
CNSTI4 2
ASGNI4
LABELV $577
ADDRLP4 304
CNSTF4 1061997773
ADDRLP4 260
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 8
LEI4 $579
ADDRLP4 304
CNSTI4 8
ASGNI4
LABELV $579
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $584
JUMPV
LABELV $581
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $585
ADDRGP4 $582
JUMPV
LABELV $585
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $582
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $584
ADDRLP4 0
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $581
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ARGI4
ADDRLP4 312
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $590
JUMPV
LABELV $587
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
NEI4 $591
ADDRGP4 $588
JUMPV
LABELV $591
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 264
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6968
ADDP4
INDIRI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
NEI4 $595
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $172
ARGP4
ADDRLP4 264
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $173
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $596
JUMPV
LABELV $595
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $174
ARGP4
ADDRLP4 264
ARGP4
ADDRLP4 312
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $175
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $596
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 260
INDIRI4
ADDRLP4 0
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 4-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
LABELV $588
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $590
ADDRLP4 0
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $587
LABELV $560
LABELV $501
LABELV $499
endproc Bot1FCTFOrders_TeamHasFlag 360 20
export Bot1FCTFOrders_EnemyHasFlag
proc Bot1FCTFOrders_EnemyHasFlag 316 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $601
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $602
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $606
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $610
ADDRGP4 $603
JUMPV
LABELV $606
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $602
JUMPV
LABELV $610
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $602
JUMPV
LABELV $603
ADDRLP4 300
CNSTF4 1061997773
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 8
LEI4 $617
ADDRLP4 300
CNSTI4 8
ASGNI4
LABELV $617
ADDRLP4 304
CNSTF4 1036831949
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 1
LEI4 $619
ADDRLP4 304
CNSTI4 1
ASGNI4
LABELV $619
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $624
JUMPV
LABELV $621
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $622
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $624
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $621
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $628
JUMPV
LABELV $625
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $630
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $626
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $628
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $625
ADDRGP4 $602
JUMPV
LABELV $601
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $634
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $636
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $640
ADDRGP4 $633
JUMPV
LABELV $636
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $634
JUMPV
LABELV $640
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $630
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $634
JUMPV
LABELV $633
ADDRLP4 300
CNSTF4 1060320051
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 7
LEI4 $647
ADDRLP4 300
CNSTI4 7
ASGNI4
LABELV $647
ADDRLP4 304
CNSTF4 1045220557
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 2
LEI4 $649
ADDRLP4 304
CNSTI4 2
ASGNI4
LABELV $649
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $654
JUMPV
LABELV $651
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $652
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $654
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $651
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $658
JUMPV
LABELV $655
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $630
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $656
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $658
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $655
LABELV $634
LABELV $602
LABELV $600
endproc Bot1FCTFOrders_EnemyHasFlag 316 16
export Bot1FCTFOrders_EnemyDroppedFlag
proc Bot1FCTFOrders_EnemyDroppedFlag 320 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $663
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $664
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $668
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $672
ADDRGP4 $665
JUMPV
LABELV $668
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $664
JUMPV
LABELV $672
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $664
JUMPV
LABELV $665
ADDRLP4 316
CNSTF4 1056964608
ASGNF4
ADDRLP4 300
ADDRLP4 316
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 316
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 5
LEI4 $679
ADDRLP4 300
CNSTI4 5
ASGNI4
LABELV $679
ADDRLP4 304
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 4
LEI4 $681
ADDRLP4 304
CNSTI4 4
ASGNI4
LABELV $681
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $686
JUMPV
LABELV $683
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $684
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $686
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $683
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $690
JUMPV
LABELV $687
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $688
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $690
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $687
ADDRGP4 $664
JUMPV
LABELV $663
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $695
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $697
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $701
ADDRGP4 $694
JUMPV
LABELV $697
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $695
JUMPV
LABELV $701
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $695
JUMPV
LABELV $694
ADDRLP4 300
CNSTF4 1050253722
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 3
LEI4 $708
ADDRLP4 300
CNSTI4 3
ASGNI4
LABELV $708
ADDRLP4 304
CNSTF4 1058642330
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 6
LEI4 $710
ADDRLP4 304
CNSTI4 6
ASGNI4
LABELV $710
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $715
JUMPV
LABELV $712
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $713
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $715
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $712
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $719
JUMPV
LABELV $716
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $162
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $163
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $717
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $719
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $716
LABELV $695
LABELV $664
LABELV $662
endproc Bot1FCTFOrders_EnemyDroppedFlag 320 16
export Bot1FCTFOrders
proc Bot1FCTFOrders 8 4
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 6956
ADDP4
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 0
LTI4 $724
ADDRLP4 0
INDIRI4
CNSTI4 3
GTI4 $724
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 $731
ADDP4
INDIRP4
JUMPV
lit
align 4
LABELV $731
address $727
address $728
address $729
address $730
code
LABELV $727
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 Bot1FCTFOrders_FlagAtCenter
CALLV
pop
ADDRGP4 $725
JUMPV
LABELV $728
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 Bot1FCTFOrders_TeamHasFlag
CALLV
pop
ADDRGP4 $725
JUMPV
LABELV $729
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 Bot1FCTFOrders_EnemyHasFlag
CALLV
pop
ADDRGP4 $725
JUMPV
LABELV $730
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 Bot1FCTFOrders_EnemyDroppedFlag
CALLV
pop
LABELV $724
LABELV $725
LABELV $723
endproc Bot1FCTFOrders 8 4
export BotObeliskOrders
proc BotObeliskOrders 320 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $733
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $734
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $738
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $742
ADDRGP4 $735
JUMPV
LABELV $738
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $734
JUMPV
LABELV $742
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $734
JUMPV
LABELV $735
ADDRLP4 316
CNSTF4 1056964608
ASGNF4
ADDRLP4 300
ADDRLP4 316
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 316
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 5
LEI4 $749
ADDRLP4 300
CNSTI4 5
ASGNI4
LABELV $749
ADDRLP4 304
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 4
LEI4 $751
ADDRLP4 304
CNSTI4 4
ASGNI4
LABELV $751
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $756
JUMPV
LABELV $753
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $754
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $756
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $753
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $760
JUMPV
LABELV $757
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $758
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $760
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $757
ADDRGP4 $734
JUMPV
LABELV $733
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $765
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $767
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $771
ADDRGP4 $764
JUMPV
LABELV $767
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $765
JUMPV
LABELV $771
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $765
JUMPV
LABELV $764
ADDRLP4 300
CNSTF4 1050253722
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 3
LEI4 $778
ADDRLP4 300
CNSTI4 3
ASGNI4
LABELV $778
ADDRLP4 304
CNSTF4 1060320051
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 7
LEI4 $780
ADDRLP4 304
CNSTI4 7
ASGNI4
LABELV $780
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $785
JUMPV
LABELV $782
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $783
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $785
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $782
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $789
JUMPV
LABELV $786
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $509
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $787
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $789
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $786
LABELV $765
LABELV $734
LABELV $732
endproc BotObeliskOrders 320 16
export BotHarvesterOrders
proc BotHarvesterOrders 320 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 308
ADDRGP4 BotSortTeamMatesByBaseTravelTime
CALLI4
ASGNI4
ADDRLP4 296
ADDRLP4 308
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ARGP4
ADDRLP4 296
INDIRI4
ARGI4
ADDRGP4 BotSortTeamMatesByTaskPreference
CALLI4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
INDIRI4
CNSTI4 1
BANDI4
CNSTI4 0
NEI4 $794
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $795
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $799
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $804
ADDRGP4 $796
JUMPV
LABELV $799
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $795
JUMPV
LABELV $804
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $795
JUMPV
LABELV $796
ADDRLP4 316
CNSTF4 1056964608
ASGNF4
ADDRLP4 300
ADDRLP4 316
INDIRF4
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
ADDRLP4 316
INDIRF4
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 5
LEI4 $811
ADDRLP4 300
CNSTI4 5
ASGNI4
LABELV $811
ADDRLP4 304
CNSTF4 1053609165
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 4
LEI4 $813
ADDRLP4 304
CNSTI4 4
ASGNI4
LABELV $813
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $818
JUMPV
LABELV $815
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $816
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $818
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $815
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $822
JUMPV
LABELV $819
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $820
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $822
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $819
ADDRGP4 $795
JUMPV
LABELV $794
ADDRLP4 296
INDIRI4
CNSTI4 1
EQI4 $827
ADDRLP4 296
INDIRI4
CNSTI4 2
EQI4 $829
ADDRLP4 296
INDIRI4
CNSTI4 3
EQI4 $833
ADDRGP4 $826
JUMPV
LABELV $829
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $827
JUMPV
LABELV $833
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0+8
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRGP4 $827
JUMPV
LABELV $826
ADDRLP4 300
CNSTF4 1050253722
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 300
INDIRI4
CNSTI4 3
LEI4 $840
ADDRLP4 300
CNSTI4 3
ASGNI4
LABELV $840
ADDRLP4 304
CNSTF4 1060320051
ADDRLP4 296
INDIRI4
CVIF4 4
CVFI4 4
CVIF4 4
MULF4
CNSTF4 1056964608
ADDF4
CVFI4 4
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 7
LEI4 $842
ADDRLP4 304
CNSTI4 7
ASGNI4
LABELV $842
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $847
JUMPV
LABELV $844
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $220
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 256
INDIRI4
CNSTI4 2
LSHI4
ADDRLP4 0
ADDP4
INDIRI4
ARGI4
ADDRGP4 $221
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $845
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $847
ADDRLP4 256
INDIRI4
ADDRLP4 300
INDIRI4
LTI4 $844
ADDRLP4 256
CNSTI4 0
ASGNI4
ADDRGP4 $851
JUMPV
LABELV $848
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRLP4 260
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $801
ARGP4
ADDRLP4 260
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 BotSayTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 296
INDIRI4
ADDRLP4 256
INDIRI4
SUBI4
CNSTI4 2
LSHI4
ADDRLP4 0-4
ADDP4
INDIRI4
ARGI4
ADDRGP4 $510
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
LABELV $849
ADDRLP4 256
ADDRLP4 256
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $851
ADDRLP4 256
INDIRI4
ADDRLP4 304
INDIRI4
LTI4 $848
LABELV $827
LABELV $795
LABELV $793
endproc BotHarvesterOrders 320 16
export FindHumanTeamLeader
proc FindHumanTeamLeader 12 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 0
CNSTI4 0
ASGNI4
LABELV $856
CNSTI4 812
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 g_entities+520
ADDP4
INDIRI4
CNSTI4 0
EQI4 $860
CNSTI4 812
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 g_entities+208+216
ADDP4
INDIRI4
CNSTI4 8
BANDI4
CNSTI4 0
NEI4 $863
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 notleader
ADDP4
INDIRI4
CNSTI4 0
NEI4 $867
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 4
ADDRGP4 BotSameTeam
CALLI4
ASGNI4
ADDRLP4 4
INDIRI4
CNSTI4 0
EQI4 $869
ADDRLP4 0
INDIRI4
ARGI4
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
CNSTI4 32
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 8
ADDRGP4 BotSetLastOrderedTask
CALLI4
ASGNI4
ADDRLP4 8
INDIRI4
CNSTI4 0
NEI4 $871
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
CNSTI4 2
ARGI4
ADDRGP4 BotVoiceChat_Defend
CALLV
pop
LABELV $871
CNSTI4 1
RETI4
ADDRGP4 $855
JUMPV
LABELV $869
LABELV $867
LABELV $863
LABELV $860
LABELV $857
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 64
LTI4 $856
CNSTI4 0
RETI4
LABELV $855
endproc FindHumanTeamLeader 12 12
export BotTeamAI
proc BotTeamAI 72 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRGP4 gametype
INDIRI4
CNSTI4 3
GEI4 $874
ADDRGP4 $873
JUMPV
LABELV $874
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 40
ADDRGP4 BotValidTeamLeader
CALLI4
ASGNI4
ADDRLP4 40
INDIRI4
CNSTI4 0
NEI4 $876
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 44
ADDRGP4 FindHumanTeamLeader
CALLI4
ASGNI4
ADDRLP4 44
INDIRI4
CNSTI4 0
NEI4 $878
ADDRLP4 52
CNSTF4 0
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6928
ADDP4
INDIRF4
ADDRLP4 52
INDIRF4
NEF4 $880
ADDRFP4 0
INDIRP4
CNSTI4 6932
ADDP4
INDIRF4
ADDRLP4 52
INDIRF4
NEF4 $880
ADDRFP4 0
INDIRP4
CNSTI4 6064
ADDP4
INDIRF4
CNSTF4 1092616192
ADDF4
ADDRGP4 floattime
INDIRF4
LEF4 $882
ADDRLP4 56
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6928
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1084227584
ADDF4
CNSTF4 1092616192
ADDRLP4 56
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
MULF4
ADDF4
ASGNF4
ADDRGP4 $883
JUMPV
LABELV $882
ADDRLP4 56
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6932
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1084227584
ADDF4
CNSTF4 1092616192
ADDRLP4 56
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
MULF4
ADDF4
ASGNF4
LABELV $883
LABELV $880
ADDRLP4 56
ADDRFP4 0
INDIRP4
CNSTI4 6928
ADDP4
INDIRF4
ASGNF4
ADDRLP4 56
INDIRF4
CNSTF4 0
EQF4 $884
ADDRLP4 56
INDIRF4
ADDRGP4 floattime
INDIRF4
GEF4 $884
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $886
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
CNSTI4 0
ARGI4
CNSTI4 1
ARGI4
ADDRGP4 trap_BotEnterChat
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6928
ADDP4
CNSTF4 0
ASGNF4
ADDRLP4 60
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6932
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1090519040
ADDF4
CNSTF4 1092616192
ADDRLP4 60
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
MULF4
ADDF4
ASGNF4
LABELV $884
ADDRLP4 60
ADDRFP4 0
INDIRP4
CNSTI4 6932
ADDP4
INDIRF4
ASGNF4
ADDRLP4 60
INDIRF4
CNSTF4 0
EQF4 $873
ADDRLP4 60
INDIRF4
ADDRGP4 floattime
INDIRF4
GEF4 $873
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $889
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
CNSTI4 0
ARGI4
CNSTI4 1
ARGI4
ADDRGP4 trap_BotEnterChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
CNSTI4 -1
ARGI4
ADDRGP4 $890
ARGP4
ADDRGP4 BotSayVoiceTeamOrder
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
ADDRLP4 0
ARGP4
CNSTU4 32
ARGU4
ADDRGP4 qk_strncpy
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 6896
CNSTU4 31
ADDI4
ADDP4
CNSTI1 0
ASGNI1
ADDRFP4 0
INDIRP4
CNSTI4 6932
ADDP4
CNSTF4 0
ASGNF4
ADDRGP4 $873
JUMPV
LABELV $878
LABELV $876
ADDRFP4 0
INDIRP4
CNSTI4 6928
ADDP4
CNSTF4 0
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6932
ADDP4
CNSTF4 0
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
ARGP4
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
ADDRLP4 44
ADDRGP4 Q_stricmp
CALLI4
ASGNI4
ADDRLP4 44
INDIRI4
CNSTI4 0
EQI4 $891
ADDRGP4 $873
JUMPV
LABELV $891
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 48
ADDRGP4 BotNumTeamMates
CALLI4
ASGNI4
ADDRLP4 36
ADDRLP4 48
INDIRI4
ASGNI4
ADDRLP4 52
ADDRGP4 gametype
INDIRI4
ASGNI4
ADDRLP4 52
INDIRI4
CNSTI4 3
LTI4 $893
ADDRLP4 52
INDIRI4
CNSTI4 7
GTI4 $893
ADDRLP4 52
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 $935-12
ADDP4
INDIRP4
JUMPV
lit
align 4
LABELV $935
address $895
address $901
address $912
address $923
address $929
code
LABELV $895
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ADDRLP4 36
INDIRI4
NEI4 $898
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
INDIRI4
CNSTI4 0
EQI4 $896
LABELV $898
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
ADDRLP4 36
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
CNSTI4 0
ASGNI4
LABELV $896
ADDRLP4 60
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
INDIRF4
ASGNF4
ADDRLP4 60
INDIRF4
CNSTF4 0
EQF4 $894
ADDRLP4 60
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1084227584
SUBF4
GEF4 $894
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotTeamOrders
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1123024896
ADDF4
ASGNF4
ADDRGP4 $894
JUMPV
LABELV $901
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ADDRLP4 36
INDIRI4
NEI4 $905
ADDRLP4 60
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6960
ADDP4
INDIRI4
ADDRLP4 60
INDIRI4
NEI4 $905
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
INDIRI4
ADDRLP4 60
INDIRI4
EQI4 $902
LABELV $905
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
ADDRLP4 36
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6960
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
CNSTI4 0
ASGNI4
LABELV $902
ADDRFP4 0
INDIRP4
CNSTI4 6940
ADDP4
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1131413504
SUBF4
GEF4 $906
ADDRFP4 0
INDIRP4
CNSTI4 6940
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRLP4 64
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRLP4 64
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
CNSTF4 1053609165
GEF4 $908
ADDRLP4 68
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
ASGNP4
ADDRLP4 68
INDIRP4
ADDRLP4 68
INDIRP4
INDIRI4
CNSTI4 1
BXORI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
LABELV $908
LABELV $906
ADDRLP4 64
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
INDIRF4
ASGNF4
ADDRLP4 64
INDIRF4
CNSTF4 0
EQF4 $894
ADDRLP4 64
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1077936128
SUBF4
GEF4 $894
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotCTFOrders
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
CNSTF4 0
ASGNF4
ADDRGP4 $894
JUMPV
LABELV $912
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ADDRLP4 36
INDIRI4
NEI4 $916
ADDRLP4 60
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6960
ADDP4
INDIRI4
ADDRLP4 60
INDIRI4
NEI4 $916
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
INDIRI4
ADDRLP4 60
INDIRI4
EQI4 $913
LABELV $916
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
ADDRLP4 36
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6960
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
CNSTI4 0
ASGNI4
LABELV $913
ADDRFP4 0
INDIRP4
CNSTI4 6940
ADDP4
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1131413504
SUBF4
GEF4 $917
ADDRFP4 0
INDIRP4
CNSTI4 6940
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRLP4 64
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRLP4 64
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
CNSTF4 1053609165
GEF4 $919
ADDRLP4 68
ADDRFP4 0
INDIRP4
CNSTI4 6972
ADDP4
ASGNP4
ADDRLP4 68
INDIRP4
ADDRLP4 68
INDIRP4
INDIRI4
CNSTI4 1
BXORI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
LABELV $919
LABELV $917
ADDRLP4 64
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
INDIRF4
ASGNF4
ADDRLP4 64
INDIRF4
CNSTF4 0
EQF4 $894
ADDRLP4 64
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1073741824
SUBF4
GEF4 $894
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 Bot1FCTFOrders
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
CNSTF4 0
ASGNF4
ADDRGP4 $894
JUMPV
LABELV $923
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ADDRLP4 36
INDIRI4
NEI4 $926
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
INDIRI4
CNSTI4 0
EQI4 $924
LABELV $926
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
ADDRLP4 36
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
CNSTI4 0
ASGNI4
LABELV $924
ADDRLP4 60
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
INDIRF4
ASGNF4
ADDRLP4 60
INDIRF4
CNSTF4 0
EQF4 $894
ADDRLP4 60
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1084227584
SUBF4
GEF4 $894
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotObeliskOrders
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1106247680
ADDF4
ASGNF4
ADDRGP4 $894
JUMPV
LABELV $929
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
INDIRI4
ADDRLP4 36
INDIRI4
NEI4 $932
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
INDIRI4
CNSTI4 0
EQI4 $930
LABELV $932
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6944
ADDP4
ADDRLP4 36
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6964
ADDP4
CNSTI4 0
ASGNI4
LABELV $930
ADDRLP4 60
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
INDIRF4
ASGNF4
ADDRLP4 60
INDIRF4
CNSTF4 0
EQF4 $894
ADDRLP4 60
INDIRF4
ADDRGP4 floattime
INDIRF4
CNSTF4 1084227584
SUBF4
GEF4 $894
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotHarvesterOrders
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6936
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1106247680
ADDF4
ASGNF4
LABELV $893
LABELV $894
LABELV $873
endproc BotTeamAI 72 12
bss
export ctftaskpreferences
align 4
LABELV ctftaskpreferences
skip 2560
import BotVoiceChat_Defend
import BotVoiceChatCommand
import BotDumpNodeSwitches
import BotResetNodeSwitches
import AINode_Battle_NBG
import AINode_Battle_Retreat
import AINode_Battle_Chase
import AINode_Battle_Fight
import AINode_Seek_LTG
import AINode_Seek_NBG
import AINode_Seek_ActivateEntity
import AINode_Stand
import AINode_Respawn
import AINode_Observer
import AINode_Intermission
import AIEnter_Battle_NBG
import AIEnter_Battle_Retreat
import AIEnter_Battle_Chase
import AIEnter_Battle_Fight
import AIEnter_Seek_Camp
import AIEnter_Seek_LTG
import AIEnter_Seek_NBG
import AIEnter_Seek_ActivateEntity
import AIEnter_Stand
import AIEnter_Respawn
import AIEnter_Observer
import AIEnter_Intermission
import BotPrintTeamGoal
import BotMatchMessage
import notleader
import BotChatTest
import BotValidChatPosition
import BotChatTime
import BotChat_Random
import BotChat_EnemySuicide
import BotChat_Kill
import BotChat_Death
import BotChat_HitNoKill
import BotChat_HitNoDeath
import BotChat_HitTalking
import BotChat_EndLevel
import BotChat_StartLevel
import BotChat_ExitGame
import BotChat_EnterGame
import neutralobelisk
import blueobelisk
import redobelisk
import ctf_neutralflag
import ctf_blueflag
import ctf_redflag
import bot_challenge
import bot_testrchat
import bot_nochat
import bot_fastchat
import bot_rocketjump
import bot_grapple
import maxclients
import gametype
import BotMapScripts
import BotPointAreaNum
import ClientOnSameTeamFromName
import ClientFromName
import stristr
import BotFindWayPoint
import BotCreateWayPoint
import BotAlternateRoute
import BotGetAlternateRouteGoal
import BotEnemyCubeCarrierVisible
import BotTeamCubeCarrierVisible
import BotHarvesterRetreatGoals
import BotHarvesterSeekGoals
import BotGoHarvest
import BotObeliskRetreatGoals
import BotObeliskSeekGoals
import Bot1FCTFRetreatGoals
import Bot1FCTFSeekGoals
import BotHarvesterCarryingCubes
import Bot1FCTFCarryingFlag
import BotCTFRetreatGoals
import BotCTFSeekGoals
import BotRememberLastOrderedTask
import BotCTFCarryingFlag
import BotOppositeTeam
import BotTeam
import BotClearActivateGoalStack
import BotPopFromActivateGoalStack
import BotEnableActivateGoalAreas
import BotAIPredictObstacles
import BotAIBlocked
import BotCheckAttack
import BotAimAtEnemy
import BotEntityVisible
import BotRoamGoal
import BotFindEnemy
import InFieldOfVision
import BotVisibleTeamMatesAndEnemies
import BotEnemyFlagCarrierVisible
import BotTeamFlagCarrierVisible
import BotTeamFlagCarrier
import TeamPlayIsOn
import BotSameTeam
import BotAttackMove
import BotWantsToCamp
import BotHasPersistantPowerupAndWeapon
import BotCanAndWantsToRocketJump
import BotWantsToHelp
import BotWantsToChase
import BotWantsToRetreat
import BotFeelingBad
import BotAggression
import BotTeamGoals
import BotSetLastOrderedTask
import BotSynonymContext
import ClientSkin
import EasyClientName
import ClientName
import BotSetTeamStatus
import BotSetUserInfo
import EntityHasKamikaze
import EntityIsShooting
import EntityIsInvisible
import EntityIsDead
import BotInLavaOrSlime
import BotIntermission
import BotIsObserver
import BotIsDead
import BotBattleUseItems
import BotUpdateBattleInventory
import BotUpdateInventory
import BotSetupForMovement
import BotChooseWeapon
import BotFreeWaypoints
import BotDeathmatchAI
import BotShutdownDeathmatchAI
import BotSetupDeathmatchAI
import BotTeamLeader
import BotAI_GetSnapshotEntity
import BotAI_GetEntityState
import BotAI_GetClientState
import BotAI_Trace
import BotAI_BotInitialChat
import BotAI_Print
import floattime
import BotEntityInfo
import NumBots
import BotResetState
import BotResetWeaponState
import BotFreeWeaponState
import BotAllocWeaponState
import BotLoadWeaponWeights
import BotGetWeaponInfo
import BotChooseBestFightWeapon
import BotShutdownWeaponAI
import BotSetupWeaponAI
import BotShutdownMoveAI
import BotSetupMoveAI
import BotSetBrushModelTypes
import BotAddAvoidSpot
import BotInitMoveState
import BotFreeMoveState
import BotAllocMoveState
import BotPredictVisiblePosition
import BotMovementViewTarget
import BotReachabilityArea
import BotResetLastAvoidReach
import BotResetAvoidReach
import BotMoveInDirection
import BotMoveToGoal
import BotResetMoveState
import BotShutdownGoalAI
import BotSetupGoalAI
import BotFreeGoalState
import BotAllocGoalState
import BotFreeItemWeights
import BotLoadItemWeights
import BotMutateGoalFuzzyLogic
import BotSaveGoalFuzzyLogic
import BotInterbreedGoalFuzzyLogic
import BotUpdateEntityItems
import BotInitLevelItems
import BotSetAvoidGoalTime
import BotAvoidGoalTime
import BotGetMapLocationGoal
import BotGetNextCampSpotGoal
import BotGetLevelItemGoal
import BotItemGoalInVisButNotVisible
import BotTouchingGoal
import BotChooseNBGItem
import BotChooseLTGItem
import BotGetSecondGoal
import BotGetTopGoal
import BotGoalName
import BotDumpGoalStack
import BotDumpAvoidGoals
import BotEmptyGoalStack
import BotPopGoal
import BotPushGoal
import BotRemoveFromAvoidGoals
import BotResetAvoidGoals
import BotResetGoalState
import GeneticParentsAndChildSelection
import BotSetChatName
import BotSetChatGender
import BotLoadChatFile
import BotReplaceSynonyms
import UnifyWhiteSpaces
import BotMatchVariable
import BotFindMatch
import StringContains
import BotGetChatMessage
import BotEnterChat
import BotChatLength
import BotReplyChat
import BotNumInitialChats
import BotInitialChat
import BotNumConsoleMessages
import BotNextConsoleMessage
import BotRemoveConsoleMessage
import BotQueueConsoleMessage
import BotFreeChatState
import BotAllocChatState
import BotShutdownChatAI
import BotSetupChatAI
import BotShutdownCharacters
import Characteristic_String
import Characteristic_BInteger
import Characteristic_Integer
import Characteristic_BFloat
import Characteristic_Float
import BotFreeCharacter
import BotLoadCharacter
import EA_Shutdown
import EA_Setup
import EA_ResetInput
import EA_GetInput
import EA_EndRegular
import EA_View
import EA_Move
import EA_DelayedJump
import EA_Jump
import EA_SelectWeapon
import EA_Use
import EA_Gesture
import EA_Talk
import EA_Respawn
import EA_Attack
import EA_MoveRight
import EA_MoveLeft
import EA_MoveBack
import EA_MoveForward
import EA_MoveDown
import EA_MoveUp
import EA_Walk
import EA_Crouch
import EA_Action
import EA_Command
import EA_SayTeam
import EA_Say
import GetBotLibAPI
import trap_SnapVector
import trap_GeneticParentsAndChildSelection
import trap_BotResetWeaponState
import trap_BotFreeWeaponState
import trap_BotAllocWeaponState
import trap_BotLoadWeaponWeights
import trap_BotGetWeaponInfo
import trap_BotChooseBestFightWeapon
import trap_BotAddAvoidSpot
import trap_BotInitMoveState
import trap_BotFreeMoveState
import trap_BotAllocMoveState
import trap_BotPredictVisiblePosition
import trap_BotMovementViewTarget
import trap_BotReachabilityArea
import trap_BotResetLastAvoidReach
import trap_BotResetAvoidReach
import trap_BotMoveInDirection
import trap_BotMoveToGoal
import trap_BotResetMoveState
import trap_BotFreeGoalState
import trap_BotAllocGoalState
import trap_BotMutateGoalFuzzyLogic
import trap_BotSaveGoalFuzzyLogic
import trap_BotInterbreedGoalFuzzyLogic
import trap_BotFreeItemWeights
import trap_BotLoadItemWeights
import trap_BotUpdateEntityItems
import trap_BotInitLevelItems
import trap_BotSetAvoidGoalTime
import trap_BotAvoidGoalTime
import trap_BotGetLevelItemGoal
import trap_BotGetMapLocationGoal
import trap_BotGetNextCampSpotGoal
import trap_BotItemGoalInVisButNotVisible
import trap_BotTouchingGoal
import trap_BotChooseNBGItem
import trap_BotChooseLTGItem
import trap_BotGetSecondGoal
import trap_BotGetTopGoal
import trap_BotGoalName
import trap_BotDumpGoalStack
import trap_BotDumpAvoidGoals
import trap_BotEmptyGoalStack
import trap_BotPopGoal
import trap_BotPushGoal
import trap_BotResetAvoidGoals
import trap_BotRemoveFromAvoidGoals
import trap_BotResetGoalState
import trap_BotSetChatName
import trap_BotSetChatGender
import trap_BotLoadChatFile
import trap_BotReplaceSynonyms
import trap_UnifyWhiteSpaces
import trap_BotMatchVariable
import trap_BotFindMatch
import trap_StringContains
import trap_BotGetChatMessage
import trap_BotEnterChat
import trap_BotChatLength
import trap_BotReplyChat
import trap_BotNumInitialChats
import trap_BotInitialChat
import trap_BotNumConsoleMessages
import trap_BotNextConsoleMessage
import trap_BotRemoveConsoleMessage
import trap_BotQueueConsoleMessage
import trap_BotFreeChatState
import trap_BotAllocChatState
import trap_Characteristic_String
import trap_Characteristic_BInteger
import trap_Characteristic_Integer
import trap_Characteristic_BFloat
import trap_Characteristic_Float
import trap_BotFreeCharacter
import trap_BotLoadCharacter
import trap_EA_ResetInput
import trap_EA_GetInput
import trap_EA_EndRegular
import trap_EA_View
import trap_EA_Move
import trap_EA_DelayedJump
import trap_EA_Jump
import trap_EA_SelectWeapon
import trap_EA_MoveRight
import trap_EA_MoveLeft
import trap_EA_MoveBack
import trap_EA_MoveForward
import trap_EA_MoveDown
import trap_EA_MoveUp
import trap_EA_Crouch
import trap_EA_Respawn
import trap_EA_Use
import trap_EA_Attack
import trap_EA_Talk
import trap_EA_Gesture
import trap_EA_Action
import trap_EA_Command
import trap_EA_SayTeam
import trap_EA_Say
import trap_AAS_PredictClientMovement
import trap_AAS_Swimming
import trap_AAS_AlternativeRouteGoals
import trap_AAS_PredictRoute
import trap_AAS_EnableRoutingArea
import trap_AAS_AreaTravelTimeToGoalArea
import trap_AAS_AreaReachability
import trap_AAS_IntForBSPEpairKey
import trap_AAS_FloatForBSPEpairKey
import trap_AAS_VectorForBSPEpairKey
import trap_AAS_ValueForBSPEpairKey
import trap_AAS_NextBSPEntity
import trap_AAS_PointContents
import trap_AAS_TraceAreas
import trap_AAS_PointReachabilityAreaIndex
import trap_AAS_PointAreaNum
import trap_AAS_Time
import trap_AAS_PresenceTypeBoundingBox
import trap_AAS_Initialized
import trap_AAS_EntityInfo
import trap_AAS_AreaInfo
import trap_AAS_BBoxAreas
import trap_BotUserCommand
import trap_BotGetServerCommand
import trap_BotGetSnapshotEntity
import trap_BotLibTest
import trap_BotLibUpdateEntity
import trap_BotLibLoadMap
import trap_BotLibStartFrame
import trap_BotLibDefine
import trap_BotLibVarGet
import trap_BotLibVarSet
import trap_BotLibShutdown
import trap_BotLibSetup
import trap_DebugPolygonDelete
import trap_DebugPolygonCreate
import trap_GetEntityToken
import trap_GetUsercmd
import trap_BotFreeClient
import trap_BotAllocateClient
import trap_EntityContact
import trap_EntitiesInBox
import trap_UnlinkEntity
import trap_LinkEntity
import trap_AreasConnected
import trap_AdjustAreaPortalState
import trap_InPVSIgnorePortals
import trap_InPVS
import trap_PointContents
import trap_Trace
import trap_SetBrushModel
import trap_GetServerinfo
import trap_SetUserinfo
import trap_GetUserinfo
import trap_GetConfigstring
import trap_SetConfigstring
import trap_SendServerCommand
import trap_DropClient
import trap_LocateGameData
import trap_Cvar_VariableStringBuffer
import trap_Cvar_VariableValue
import trap_Cvar_VariableIntegerValue
import trap_Cvar_Set
import trap_Cvar_Update
import trap_Cvar_Register
import trap_SendConsoleCommand
import trap_FS_Seek
import trap_FS_GetFileList
import trap_FS_FCloseFile
import trap_FS_Write
import trap_FS_Read
import trap_FS_FOpenFile
import trap_Args
import trap_Argv
import trap_Argc
import trap_RealTime
import trap_Milliseconds
import trap_Error
import trap_Print
import g_proxMineTimeout
import g_singlePlayer
import g_enableBreath
import g_enableDust
import g_rankings
import pmove_msec
import pmove_fixed
import g_smoothClients
import g_blueteam
import g_redteam
import g_cubeTimeout
import g_obeliskRespawnDelay
import g_obeliskRegenAmount
import g_obeliskRegenPeriod
import g_obeliskHealth
import g_filterBan
import g_banIPs
import g_teamForceBalance
import g_teamAutoJoin
import g_allowVote
import g_blood
import g_doWarmup
import g_warmup
import g_motd
import g_synchronousClients
import g_weaponTeamRespawn
import g_weaponRespawn
import g_debugDamage
import g_debugAlloc
import g_debugMove
import g_inactivity
import g_forcerespawn
import g_quadfactor
import g_knockback
import g_speed
import g_gravity
import g_needpass
import g_password
import g_friendlyFire
import g_capturelimit
import g_timelimit
import g_fraglimit
import g_dmflags
import g_restarted
import g_maxGameClients
import g_maxclients
import g_cheats
import g_dedicated
import g_gametype
import g_entities
import level
import Pickup_Team
import CheckTeamStatus
import TeamplayInfoMessage
import Team_GetLocationMsg
import Team_GetLocation
import SelectCTFSpawnPoint
import Team_FreeEntity
import Team_ReturnFlag
import Team_InitGame
import Team_CheckHurtCarrier
import Team_FragBonuses
import Team_DroppedFlagThink
import AddTeamScore
import TeamColorString
import TeamName
import OtherTeam
import BotTestAAS
import BotAIStartFrame
import BotAIShutdownClient
import BotAISetupClient
import BotAILoadMap
import BotAIShutdown
import BotAISetup
import BotInterbreedEndMatch
import Svcmd_BotList_f
import Svcmd_AddBot_f
import G_BotConnect
import G_RemoveQueuedBotBegin
import G_CheckBotSpawn
import G_GetBotInfoByName
import G_GetBotInfoByNumber
import G_InitBots
import Svcmd_AbortPodium_f
import SpawnModelsOnVictoryPads
import UpdateTournamentInfo
import G_WriteSessionData
import G_InitWorldSession
import G_InitSessionData
import G_ReadSessionData
import Svcmd_GameMem_f
import G_InitMemory
import G_Alloc
import CheckObeliskAttack
import Team_CheckDroppedItem
import OnSameTeam
import G_RunClient
import ClientEndFrame
import ClientThink
import ClientCommand
import ClientBegin
import ClientDisconnect
import ClientUserinfoChanged
import ClientConnect
import G_Error
import G_Printf
import SendScoreboardMessageToAllClients
import G_LogPrintf
import AddTournamentQueue
import G_RunThink
import CheckTeamLeader
import SetLeader
import FindIntermissionPoint
import MoveClientToIntermission
import DeathmatchScoreboardMessage
import G_StartKamikaze
import FireWeapon
import G_FilterPacket
import G_ProcessIPBans
import ConsoleCommand
import SpotWouldTelefrag
import CalculateRanks
import AddScore
import player_die
import ClientSpawn
import InitBodyQue
import BeginIntermission
import ClientRespawn
import CopyToBodyQue
import SelectSpawnPoint
import SetClientViewAngle
import PickTeam
import TeamLeader
import TeamCount
import Weapon_HookThink
import Weapon_HookFree
import CheckGauntletAttack
import SnapVectorTowards
import CalcMuzzlePoint
import LogAccuracyHit
import DropPortalDestination
import DropPortalSource
import TeleportPlayer
import trigger_teleporter_touch
import Touch_DoorTrigger
import G_RunMover
import fire_prox
import fire_nail
import fire_grapple
import fire_bfg
import fire_rocket
import fire_grenade
import fire_plasma
import G_RunMissile
import TossClientCubes
import TossClientPersistantPowerups
import TossClientItems
import body_die
import G_InvulnerabilityEffect
import G_RadiusDamage
import G_Damage
import CanDamage
import BuildShaderStateConfig
import AddRemap
import G_SetOrigin
import G_AddEvent
import G_AddPredictableEvent
import vectoyaw
import vtos
import tv
import G_TouchTriggers
import G_EntitiesFree
import G_FreeEntity
import G_Sound
import G_TempEntity
import G_Spawn
import G_InitGentity
import G_SetMovedir
import G_UseTargets
import G_PickTarget
import G_Find
import G_KillBox
import G_TeamCommand
import G_SoundIndex
import G_ModelIndex
import SaveRegisteredItems
import RegisterItem
import ClearRegisteredItems
import Touch_Item
import Add_Ammo
import ArmorIndex
import Think_Weapon
import FinishSpawningItem
import G_SpawnItem
import SetRespawn
import LaunchItem
import Drop_Item
import PrecacheItem
import UseHoldableItem
import RespawnItem
import G_RunItem
import G_CheckTeamItems
import Cmd_FollowCycle_f
import SetTeam
import BroadcastTeamChange
import StopFollowing
import Cmd_Score_f
import G_NewString
import G_SpawnEntitiesFromString
import G_SpawnVector
import G_SpawnInt
import G_SpawnFloat
import G_SpawnString
import BG_PlayerTouchesItem
import BG_PlayerStateToEntityStateExtraPolate
import BG_PlayerStateToEntityState
import BG_TouchJumpPad
import BG_AddPredictableEventToPlayerstate
import BG_EvaluateTrajectoryDelta
import BG_EvaluateTrajectory
import BG_CanItemBeGrabbed
import BG_FindItemForHoldable
import BG_FindItemForPowerup
import BG_FindItemForWeapon
import BG_FindItem
import bg_numItems
import bg_itemlist
import Pmove
import PM_UpdateViewAngles
import Com_Printf
import Com_Error
import Info_NextPair
import Info_Validate
import Info_SetValueForKey_Big
import Info_SetValueForKey
import Info_RemoveKey_Big
import Info_RemoveKey
import Info_ValueForKey
import Com_TruncateLongString
import va
import Q_CountChar
import Q_CleanStr
import Q_PrintStrlen
import Q_strcat
import Q_strncpyz
import Q_stristr
import Q_strupr
import Q_strlwr
import Q_stricmpn
import Q_strncmp
import Q_stricmp
import Q_isintegral
import Q_isanumber
import Q_isalpha
import Q_isupper
import Q_islower
import Q_isprint
import Com_RandomBytes
import Com_SkipCharset
import Com_SkipTokens
import Com_sprintf
import Com_HexStrToInt
import Parse3DMatrix
import Parse2DMatrix
import Parse1DMatrix
import SkipRestOfLine
import SkipBracedSection
import COM_MatchToken
import COM_ParseWarning
import COM_ParseError
import COM_Compress
import COM_ParseExt
import COM_Parse
import COM_GetCurrentParseLine
import COM_BeginParseSession
import COM_DefaultExtension
import COM_CompareExtension
import COM_StripExtension
import COM_GetExtension
import COM_SkipPath
import Com_Clamp
import PerpendicularVector
import AngleVectors
import MatrixMultiply
import MakeNormalVectors
import RotateAroundDirection
import RotatePointAroundVector
import ProjectPointOnPlane
import PlaneFromPoints
import AngleDelta
import AngleNormalize180
import AngleNormalize360
import AnglesSubtract
import AngleSubtract
import LerpAngle
import AngleMod
import BoundsIntersectPoint
import BoundsIntersectSphere
import BoundsIntersect
import BoxOnPlaneSide
import SetPlaneSignbits
import AxisCopy
import AxisClear
import AnglesToAxis
import vectoangles
import Q_crandom
import Q_random
import Q_rand
import Q_acos
import Q_log2
import VectorRotate
import Vector4Scale
import VectorNormalize2
import VectorNormalize
import CrossProduct
import VectorInverse
import VectorNormalizeFast
import DistanceSquared
import Distance
import VectorLengthSquared
import VectorLength
import VectorCompare
import AddPointToBounds
import ClearBounds
import RadiusFromBounds
import NormalizeColor
import ColorBytes4
import ColorBytes3
import _VectorMA
import _VectorScale
import _VectorCopy
import _VectorAdd
import _VectorSubtract
import _DotProduct
import ByteToDir
import DirToByte
import ClampShort
import ClampChar
import Q_rsqrt
import Q_fabs
import Q_isnan
import axisDefault
import vec3_origin
import g_color_table
import colorDkGrey
import colorMdGrey
import colorLtGrey
import colorWhite
import colorCyan
import colorMagenta
import colorYellow
import colorBlue
import colorGreen
import colorRed
import colorBlack
import bytedirs
import Hunk_AllocDebug
import FloatSwap
import LongSwap
import ShortSwap
import CopyLongSwap
import CopyShortSwap
import qk_acos
import qk_fabs
import qk_abs
import qk_tan
import qk_atan2
import qk_cos
import qk_sin
import qk_sqrt
import qk_floor
import qk_ceil
import qk_memcpy
import qk_memset
import qk_memmove
import qk_sscanf
import qk_vsnprintf
import qk_strtol
import qk_atoi
import qk_strtod
import qk_atof
import qk_toupper
import qk_tolower
import qk_strncpy
import qk_strstr
import qk_strrchr
import qk_strchr
import qk_strcmp
import qk_strcpy
import qk_strcat
import qk_strlen
import qk_rand
import qk_srand
import qk_qsort
lit
align 1
LABELV $890
byte 1 115
byte 1 116
byte 1 97
byte 1 114
byte 1 116
byte 1 108
byte 1 101
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $889
byte 1 105
byte 1 97
byte 1 109
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 108
byte 1 101
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $886
byte 1 119
byte 1 104
byte 1 111
byte 1 105
byte 1 115
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 108
byte 1 101
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $801
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 104
byte 1 97
byte 1 114
byte 1 118
byte 1 101
byte 1 115
byte 1 116
byte 1 0
align 1
LABELV $630
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 114
byte 1 101
byte 1 116
byte 1 117
byte 1 114
byte 1 110
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 0
align 1
LABELV $510
byte 1 111
byte 1 102
byte 1 102
byte 1 101
byte 1 110
byte 1 115
byte 1 101
byte 1 0
align 1
LABELV $509
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 97
byte 1 116
byte 1 116
byte 1 97
byte 1 99
byte 1 107
byte 1 101
byte 1 110
byte 1 101
byte 1 109
byte 1 121
byte 1 98
byte 1 97
byte 1 115
byte 1 101
byte 1 0
align 1
LABELV $221
byte 1 100
byte 1 101
byte 1 102
byte 1 101
byte 1 110
byte 1 100
byte 1 0
align 1
LABELV $220
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 100
byte 1 101
byte 1 102
byte 1 101
byte 1 110
byte 1 100
byte 1 98
byte 1 97
byte 1 115
byte 1 101
byte 1 0
align 1
LABELV $181
byte 1 114
byte 1 101
byte 1 116
byte 1 117
byte 1 114
byte 1 110
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 0
align 1
LABELV $175
byte 1 102
byte 1 111
byte 1 108
byte 1 108
byte 1 111
byte 1 119
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 99
byte 1 97
byte 1 114
byte 1 114
byte 1 105
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $174
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 97
byte 1 99
byte 1 99
byte 1 111
byte 1 109
byte 1 112
byte 1 97
byte 1 110
byte 1 121
byte 1 0
align 1
LABELV $173
byte 1 102
byte 1 111
byte 1 108
byte 1 108
byte 1 111
byte 1 119
byte 1 109
byte 1 101
byte 1 0
align 1
LABELV $172
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 97
byte 1 99
byte 1 99
byte 1 111
byte 1 109
byte 1 112
byte 1 97
byte 1 110
byte 1 121
byte 1 109
byte 1 101
byte 1 0
align 1
LABELV $163
byte 1 103
byte 1 101
byte 1 116
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 0
align 1
LABELV $162
byte 1 99
byte 1 109
byte 1 100
byte 1 95
byte 1 103
byte 1 101
byte 1 116
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 0
align 1
LABELV $151
byte 1 118
byte 1 111
byte 1 116
byte 1 101
byte 1 108
byte 1 108
byte 1 32
byte 1 37
byte 1 100
byte 1 32
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $150
byte 1 118
byte 1 111
byte 1 115
byte 1 97
byte 1 121
byte 1 95
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 32
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $146
byte 1 118
byte 1 116
byte 1 101
byte 1 108
byte 1 108
byte 1 32
byte 1 37
byte 1 100
byte 1 32
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $145
byte 1 118
byte 1 115
byte 1 97
byte 1 121
byte 1 95
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 32
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $140
byte 1 25
byte 1 40
byte 1 37
byte 1 115
byte 1 25
byte 1 41
byte 1 25
byte 1 58
byte 1 32
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $74
byte 1 116
byte 1 0
align 1
LABELV $70
byte 1 110
byte 1 0
align 1
LABELV $63
byte 1 115
byte 1 118
byte 1 95
byte 1 109
byte 1 97
byte 1 120
byte 1 99
byte 1 108
byte 1 105
byte 1 101
byte 1 110
byte 1 116
byte 1 115
byte 1 0
|
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver1/chip/ys_chip6.asm | prismotizm/gigaleak | 0 | 97034 | <gh_stars>0
Name: ys_chip6.asm
Type: file
Size: 46236
Last-Modified: '2016-05-13T04:51:15Z'
SHA-1: EA6698038DE1CB987AA29120F64228FF19E61CDC
Description: null
|
Driver/Printer/HP/Test/testUI.asm | steakknife/pcgeos | 504 | 2593 | <filename>Driver/Printer/HP/Test/testUI.asm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Test Printer Driver
FILE: testUI.asm
AUTHOR: <NAME>, Jul 10, 1994
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
don 7/10/94 Initial revision
DESCRIPTION:
Contains code to implement the UI displayed by the test
printer driver.
$Id: testUI.asm,v 1.1 97/04/18 11:52:33 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
idata segment
TestTextClass
TestControlClass
idata ends
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintEvalUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Looks in the device info for the appropriate routine to call
to evaluate the data passed in the object tree.
CALLED BY: EXTERNAL
PASS: AX = Handle of JobParameters block
BX = Handle of the duplicated generic tree
displayed in the main print dialog box.
DX = Handle of the duplicated generic tree
displayed in the options dialog box
ES:SI = JobParameters structure
BP = PState segment
RETURN: Carry = clear
- or -
Carry = set
CX = handle of block holding error message
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/10/94 Initial revision
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintEvalUI proc far
.enter
clc
.leave
ret
PrintEvalUI endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrintStuffUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Stuffs the info stored in JobParameters back into the
generic tree.
CALLED BY: EXTERNAL
PASS: BP = PState segment
CX = Handle of the duplicated generic tree
displayed in the main print dialog box.
DX = Handle of the duplicated generic tree
displayed in the options dialog box
ES:SI = JobParameters structure
AX = Handle of JobParameters block
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/10/94 Initial revision
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrintStuffUI proc far
.enter
clc
.leave
ret
PrintStuffUI endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TestControlGetInfo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get information about the PageSize controller
CALLED BY: GLOBAL (MSG_GEN_CONTROL_GET_INFO)
PASS: DS:*SI = TestControlClass object
DS:DI = TestControlClassInstance
CX:DX = GenControlBuildInfo structure to fill
RETURN: Nothing
DESTROYED: AX, BX, CX, DI, SI, BP, DS, ES
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 1/24/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TestControlGetInfo method dynamic TestControlClass,
MSG_GEN_CONTROL_GET_INFO
.enter
; Copy the data into the structure
;
mov ax, ds
mov bx, di ; PageSizeCtrlInstance => AX:BX
mov bp, dx
mov es, cx
mov di, dx ; buffer to fill => ES:DI
segmov ds, cs
mov si, offset TC_dupInfo
mov cx, size GenControlBuildInfo
rep movsb
.leave
ret
TestControlGetInfo endm
TC_dupInfo GenControlBuildInfo <
mask GCBF_NOT_REQUIRED_TO_BE_ON_SELF_LOAD_OPTIONS_LIST,
; GCBI_flags
TC_iniKey, ; GCBI_initFileKey
TC_gcnList, ; GCBI_gcnList
length TC_gcnList, ; GCBI_gcnCount
TC_notifyList, ; GCBI_notificationList
length TC_notifyList, ; GCBI_notificationCount
0, ; GCBI_controllerName
handle TestControlUI, ; GCBI_dupBlock
TC_childList, ; GCBI_childList
length TC_childList, ; GCBI_childCount
TC_featuresList, ; GCBI_featuresList
length TC_featuresList, ; GCBI_featuresCount
TC_DEFAULT_FEATURES, ; GCBI_features
0, ; GCBI_toolBlock
0, ; GCBI_toolList
0, ; GCBI_toolCount
0, ; GCBI_toolFeaturesList
0, ; GCBI_toolFeaturesCount
0, ; GCBI_toolFeatures
TC_helpContext, ; GCBI_helpContext
0> ; GCBI_reserved
TC_iniKey char "testControl", 0
TC_gcnList GCNListType \
<MANUFACTURER_ID_GEOWORKS, \
GAGCNLT_APP_NOTIFY_DOC_SIZE_CHANGE>
TC_notifyList NotificationType \
<MANUFACTURER_ID_GEOWORKS, GWNT_SPOOL_DOC_OR_PAPER_SIZE>
TC_childList GenControlChildInfo \
<offset PageTypeList,
mask TCF_PAGE_TYPE,
mask GCCF_IS_DIRECTLY_A_FEATURE>
TC_featuresList GenControlFeaturesInfo \
<offset PageTypeList, 0, 0>
TC_helpContext char "dbPageSize", 0
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TestControlDetach
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Detach the object
CALLED BY: GLOBAL (MSG_META_DETACH)
PASS: *DS:SI = TestControlClass object
DS:DI = TestControlClassInstance
RETURN: Nothing
DESTROYED:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/10/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TestControlDetach method dynamic TestControlClass, MSG_META_DETACH
; Verify our class is valid, and then call superclass
;
mov di, offset TestControlClass
EC < call ECCheckClass >
GOTO ObjCallSuperNoLock
TestControlDetach endm
|
Build Tools/Clean Mac Test Boot Source Drive.applescript | freegeek-pdx/macOS-Testing-and-Deployment-Scripts | 0 | 1605 | <filename>Build Tools/Clean Mac Test Boot Source Drive.applescript
--
-- MIT License
--
-- Copyright (c) 2021 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
-- and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--
use AppleScript version "2.7"
use scripting additions
set bundleIdentifierPrefix to "org.freegeek."
try
set infoPlistPath to ((POSIX path of (path to me)) & "Contents/Info.plist")
((infoPlistPath as POSIX file) as alias)
set AppleScript's text item delimiters to "-"
set correctBundleIdentifier to bundleIdentifierPrefix & ((words of (name of me)) as string)
try
set currentBundleIdentifier to ((do shell script "/usr/libexec/PlistBuddy -c 'Print :CFBundleIdentifier' " & (quoted form of infoPlistPath)) as string)
if (currentBundleIdentifier is not equal to correctBundleIdentifier) then error "INCORRECT Bundle Identifier"
on error
do shell script "plutil -replace CFBundleIdentifier -string " & (quoted form of correctBundleIdentifier) & " " & (quoted form of infoPlistPath)
try
set currentCopyright to ((do shell script "/usr/libexec/PlistBuddy -c 'Print :NSHumanReadableCopyright' " & (quoted form of infoPlistPath)) as string)
if (currentCopyright does not contain "Twemoji") then error "INCORRECT Copyright"
on error
do shell script "plutil -replace NSHumanReadableCopyright -string " & (quoted form of ("Copyright © " & (year of (current date)) & " Free Geek
Designed and Developed by <NAME>")) & " " & (quoted form of infoPlistPath)
end try
try
set minSystemVersion to ((do shell script "/usr/libexec/PlistBuddy -c 'Print :LSMinimumSystemVersion' " & (quoted form of infoPlistPath)) as string)
if (minSystemVersion is not equal to "10.13") then error "INCORRECT Minimum System Version"
on error
do shell script "plutil -remove LSMinimumSystemVersionByArchitecture " & (quoted form of infoPlistPath) & "; plutil -replace LSMinimumSystemVersion -string '10.13' " & (quoted form of infoPlistPath)
end try
try
set prohibitMultipleInstances to ((do shell script "/usr/libexec/PlistBuddy -c 'Print :LSMultipleInstancesProhibited' " & (quoted form of infoPlistPath)) as number)
if (prohibitMultipleInstances is equal to 0) then error "INCORRECT Multiple Instances Prohibited"
on error
do shell script "plutil -replace LSMultipleInstancesProhibited -bool true " & (quoted form of infoPlistPath)
end try
try
set allowMixedLocalizations to ((do shell script "/usr/libexec/PlistBuddy -c 'Print :CFBundleAllowMixedLocalizations' " & (quoted form of infoPlistPath)) as number)
if (allowMixedLocalizations is equal to 1) then error "INCORRECT Localization"
on error
do shell script "plutil -replace CFBundleAllowMixedLocalizations -bool false " & (quoted form of infoPlistPath) & "; plutil -replace CFBundleDevelopmentRegion -string 'en_US' " & (quoted form of infoPlistPath)
end try
try
set currentAppleEventsUsageDescription to ((do shell script "/usr/libexec/PlistBuddy -c 'Print :NSAppleEventsUsageDescription' " & (quoted form of infoPlistPath)) as string)
if (currentAppleEventsUsageDescription does not contain (name of me)) then error "INCORRECT AppleEvents Usage Description"
on error
do shell script "plutil -replace NSAppleEventsUsageDescription -string " & (quoted form of ("You MUST click the “OK” button for “" & (name of me) & "” to be able to function.")) & " " & (quoted form of infoPlistPath)
end try
try
set currentVersion to ((do shell script "/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' " & (quoted form of infoPlistPath)) as string)
if (currentVersion is equal to "1.0") then error "INCORRECT Version"
on error
tell application "System Events" to set myCreationDate to (creation date of (path to me))
set shortCreationDateString to (short date string of myCreationDate)
set AppleScript's text item delimiters to "/"
set correctVersion to ((text item 3 of shortCreationDateString) & "." & (text item 1 of shortCreationDateString) & "." & (text item 2 of shortCreationDateString))
do shell script "plutil -remove CFBundleVersion " & (quoted form of infoPlistPath) & "; plutil -replace CFBundleShortVersionString -string " & (quoted form of correctVersion) & " " & (quoted form of infoPlistPath)
end try
do shell script "osascript -e 'delay 0.5' -e 'repeat while (application \"" & (POSIX path of (path to me)) & "\" is running)' -e 'delay 0.5' -e 'end repeat' -e 'try' -e 'do shell script \"chmod a-w \\\"" & ((POSIX path of (path to me)) & "Contents/Resources/Scripts/main.scpt") & "\\\"\"' -e 'do shell script \"codesign -s \\\"Developer ID Application\\\" --deep --force \\\"" & (POSIX path of (path to me)) & "\\\"\"' -e 'on error codeSignError' -e 'activate' -e 'display alert \"Code Sign Error\" message codeSignError' -e 'end try' -e 'do shell script \"open -n -a \\\"" & (POSIX path of (path to me)) & "\\\"\"' > /dev/null 2>&1 &"
quit
delay 10
end try
end try
-- /Library/Caches/* ??
-- /System/Library/Caches/* ??
-- Delete user caches ??
set AppleScript's text item delimiters to ""
set tmpPath to ((POSIX path of (((path to temporary items) as text) & "::")) & "fg" & ((words of (name of me)) as string) & "-") -- On Catalina, writing to trailing folder "/TemporaryItems/" often fails with "Operation not permitted" for some reason. Also, prefix all files with "fg" and name of script.
try -- CLEAN MAC TEST BOOT
(("/Volumes/Mac Test Boot/" as POSIX file) as alias)
-- Delete a few things from: https://bombich.com/kb/ccc5/some-files-and-folders-are-automatically-excluded-from-backup-task
-- Delete vm and temporary files
-- "com.bombich.ccc" get's created if drive was selected with Carbon Copy Cloner
do shell script ("rm -rf '/Volumes/Mac Test Boot/usr/local/bin/' " & ¬
"'/Volumes/Mac Test Boot/Users/Shared/Build Info/' " & ¬
"'/Volumes/Mac Test Boot/private/var/db/softwareupdate/journal.plist' " & ¬
"'/Volumes/Mac Test Boot/.fseventsd' " & ¬
"'/Volumes/Mac Test Boot/private/var/db/systemstats' " & ¬
"'/Volumes/Mac Test Boot/private/var/db/dyld/dyld_'* " & ¬
"'/Volumes/Mac Test Boot/.VolumeIcon.icns' " & ¬
"'/Volumes/Mac Test Boot/private/var/vm/'* " & ¬
"'/Volumes/Mac Test Boot/private/var/folders/'* " & ¬
"'/Volumes/Mac Test Boot/private/var/tmp/'* " & ¬
"'/Volumes/Mac Test Boot/private/tmp/'* " & ¬
"'/Volumes/Mac Test Boot/Library/Application Support/com.bombich.ccc' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Desktop/QA Helper - Computer Specs.txt' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Desktop/TESTING' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Desktop/REINSTALL' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Preferences/ByHost/' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Application Support/com.apple.sharedfilelist/' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Application Support/App Store/updatejournal.plist' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/.bash_history' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/.bash_sessions/' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/_geeks3d_gputest_log.txt' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Safari' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Caches/Apple - Safari - Safari Extensions Gallery' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Caches/Metadata/Safari' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Caches/com.apple.Safari' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Caches/com.apple.WebKit.PluginProcess' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Cookies/Cookies.binarycookies' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Preferences/Apple - Safari - Safari Extensions Gallery' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Preferences/com.apple.Safari.LSSharedFileList.plist' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Preferences/com.apple.Safari.RSS.plist' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Preferences/com.apple.Safari.plist' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Preferences/com.apple.Safari.SafeBrowsing.plist' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Preferences/com.apple.Safari.SandboxBroker.plist' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Preferences/com.apple.SafariBookmarksSyncAgent.plist' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Preferences/com.apple.SafariCloudHistoryPushAgent.plist' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Preferences/com.apple.WebFoundation.plist' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Preferences/com.apple.WebKit.PluginHost.plist' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Preferences/com.apple.WebKit.PluginProcess.plist' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Preferences/com.apple.SystemProfiler.plist' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/PubSub/Database' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Library/Saved Application State/com.apple.Safari.savedState' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Pictures/GPU Stress Test/' " & ¬
"'/Volumes/Mac Test Boot/Users/'*'/Music/iTunes/'")
tell application "Terminal"
activate
do script "find '/Volumes/Mac Test Boot' -name '.DS_Store' -type f -print -delete"
activate
end tell
delay 2
end try
|
Library/Text/TextAttr/taName.asm | steakknife/pcgeos | 504 | 176385 | COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: User/Text
FILE: textMethodType.asm
METHODS:
Name Description
---- -----------
GLB MSG_VIS_TEXT_ADD_NAME Adds a name to a name element array
increasing ref count if it exists
GLB MSG_VIS_TEXT_FIND_NAME Finds a name in a name element array
GLB MSG_VIS_TEXT_FIND_NAME_BY_TOKEN Finds a name in a name element
array given a name token
GLB MSG_VIS_TEXT_FIND_NAME_BY_INDEX Finds a name in a name element
array given a name index
GLB MSG_VIS_TEXT_REMOVE_NAME Removes a name from a name element
array decreasing ref count.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 9/89 Initial version
Benson 8/91 Changed parameters of VisTextAddName
and bug fixes in AddNameCallback
DESCRIPTION:
This file contains method handlers for type methods
$Id: taName.asm,v 1.1 97/04/07 11:18:35 newdeal Exp $
------------------------------------------------------------------------------@
TextNameType segment resource
COMMENT @----------------------------------------------------------------------
METHOD: VisTextAddName -- MSG_VIS_TEXT_ADD_NAME for VisTextClass
DESCRIPTION: Add a name to the name array (or add a reference to an
existing name). Set the data for the name to the given data.
If this data is different than existing data, the existing
data is overwritten.
PASS: *ds:si - instance data (VisTextInstance)
dx - size VisTextAddNameParams (if called remotely)
ss:bp - VisTextAddNameParams
RETURN:
ax - name token
carry - set if name newly added
dx - non-zero if newly added
DESTROYED:
ax, bx, cx, dx, di, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 9/89 Initial version
Benson 8/91 Change parameters
------------------------------------------------------------------------------@
VisTextAddName proc far ; MSG_VIS_TEXT_ADD_NAME
class VisTextClass
if ERROR_CHECK
;
; Validate that the name is not in a movable code segment
;
FXIP< push bx, si >
FXIP< mov bx, ss:[bp].VTANP_name.segment >
FXIP< mov si, ss:[bp].VTANP_name.offset >
FXIP< call ECAssertValidFarPointerXIP >
FXIP< pop bx, si >
endif
; Get the name array for manipulation
call LockNameArray ; *ds:si - name array
push bx ; save flag
les di, ss:[bp].VTANP_name ;es:di = name
mov cx, ss:[bp].VTANP_size
mov bx, ss:[bp].VTANP_flags
mov dx, ss
lea ax, ss:[bp].VTANP_data
call NameArrayAdd
pop bx
call UnlockNameArray
mov dx, 0 ;assume not newly added
jnc done
inc dx ;preserves carry
done:
ret
VisTextAddName endp
COMMENT @----------------------------------------------------------------------
METHOD: VisTextFindName -- MSG_VIS_TEXT_FIND_NAME for
VisTextClass
DESCRIPTION: Find a name in the name array
PASS:
*ds:si - instance data
es - segment of VisTextClass
ss:bp - VisTextFindNameParams
RETURN:
carry - set if name found
ax - token found (CA_NULL_ELEMENT if not found)
DESTROYED:
bx, si, di, ds, es (method handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 7/16/91 Initial version
------------------------------------------------------------------------------@
VisTextFindName proc far ; MSG_VIS_TEXT_FIND_NAME
class VisTextClass
uses cx, dx
.enter
if ERROR_CHECK
;
; Validate that the name is not in a movable code segment
;
FXIP< push bx, si >
FXIP< movdw bxsi, ss:[bp].VTFNP_name >
FXIP< call ECAssertValidFarPointerXIP >
FXIP< pop bx, si >
endif
; Get the name array for manipulation
call LockNameArray ; *ds:si - name array
push bx ; save vm file
les di, ss:[bp].VTFNP_name ;es:di = name to find
mov cx, ss:[bp].VTFNP_size
movdw dxax, ss:[bp].VTFNP_data ;dx:ax <- ptr to buffer
call NameArrayFind
pop bx ; restore vm file
call UnlockNameArray ; clean up
.leave
ret
VisTextFindName endp
COMMENT @----------------------------------------------------------------------
MESSAGE: VisTextFindNameByToken -- MSG_VIS_TEXT_FIND_NAME_BY_TOKEN
for VisTextClass
DESCRIPTION: Given a name token return the associated data
PASS:
*ds:si - instance data
es - segment of VisTextClass
ax - The message
cx:dx - buffer
bp - token
RETURN:
buffer - filled
carry set if not found
DESTROYED:
bx, si, di, ds, es (message handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 7/31/91 Initial version
Benson 8/91 Bug fixes.
------------------------------------------------------------------------------@
VisTextFindNameByToken proc far ; MSG_VIS_TEXT_FIND_NAME_BY_TOKEN
class VisTextClass
; Get the name array for manipulation
call LockNameArray ; *ds:si - name array
; Get the element data
mov_tr ax, bp ; ax = token
call ChunkArrayGetElement
call UnlockNameArray ; clean up
ret
VisTextFindNameByToken endp
COMMENT @----------------------------------------------------------------------
MESSAGE: VisTextFindNameByIndex -- MSG_VIS_TEXT_FIND_NAME_BY_INDEX
for VisTextClass
DESCRIPTION: Given a name index return the associated data
PASS:
*ds:si - instance data
es - segment of VisTextClass
ax - The message
ss:bp - VisTextFindNameIndexParams
RETURN:
ax - token for index, or CA_NULL_ELEMENT if name not found
buffer - filled
DESTROYED:
bx, si, di, ds, es (message handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 6/30/94 Initial version
------------------------------------------------------------------------------@
VisTextFindNameByIndex proc far ; MSG_VIS_TEXT_FIND_NAME_BY_INDEX
class VisTextClass
uses cx,dx
.enter
; Get the name array for manipulation
call LockNameArray ; *ds:si - name array
mov ax, ss:[bp].VTFNIP_index
mov dx, ss:[bp].VTFNIP_file
mov cl, ss:[bp].VTFNIP_type
call NameToToken
jnc notFound
; Get the element data, if it is desired
movdw cxdx, ss:[bp].VTFNIP_name
tstdw cxdx
jz done
push ax
call ChunkArrayGetElement
pop ax
done:
call UnlockNameArray ; clean up
.leave
ret
notFound:
mov ax, CA_NULL_ELEMENT
jmp done
VisTextFindNameByIndex endp
COMMENT @----------------------------------------------------------------------
MESSAGE: VisTextAddRefForName -- MSG_VIS_TEXT_ADD_REF_FOR_NAME
for VisTextClass
DESCRIPTION: Add a reference for a name
PASS:
*ds:si - instance data
es - segment of VisTextClass
ax - The message
cx - token
RETURN:
none
DESTROYED:
bx, si, di, ds, es (message handler)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 7/31/91 Initial version
Benson 8/91 Bug fixes.
------------------------------------------------------------------------------@
VisTextAddRefForName proc far ; MSG_VIS_TEXT_ADD_REF_FOR_NAME
class VisTextClass
; Get the name array for manipulation
call LockNameArray ; *ds:si - name array
; Get the element data
mov_tr ax, cx ; ax = token
call ElementArrayAddReference
call UnlockNameArray ; clean up
ret
VisTextAddRefForName endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VisTextRemoveName
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Remove a given name from the name array
CALLED BY: MSG_VIS_TEXT_REMOVE_NAME
PASS: *ds:si - instance data
ds:di - *ds:si
es - seg addr of VisTextClass
ax - the message
cx - token of name to remove
RETURN: none
DESTROYED: bx, si, di, ds, es (method handler)
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 7/16/91 Initial version
gene 9/ 2/92 fixed, updated comments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VisTextRemoveName proc far ; MSG_VIS_TEXT_REMOVE_NAME
class VisTextClass
;
; Get the name array for manipulation
;
call LockNameArray ; *ds:si - name array
push bx ; save vm file
;
; Remove reference to the name
;
mov_tr ax, cx ; ax - name token
call ElementArrayDelete ; remove name
pop bx ; restore vm file
call UnlockNameArray ; clean up
Destroy ax, cx, dx, bp
ret
VisTextRemoveName endp
;-----------------------------------------------------------------------------
; Utility routines below here
;-----------------------------------------------------------------------------
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LockNameArray
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Lock the name array for a text object
CALLED BY: UTILITY
PASS: *ds:si - VisTextInstance
RETURN: *ds:si - element array
bx - value to pass UnlockNameArray()
DESTROYED: none
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 9/89 Initial version
gene 9/ 7/92 rewrote
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
FarLockNameArray proc far
call LockNameArray
ret
FarLockNameArray endp
LockNameArray proc near
uses ax, di, bp
.enter
class VisTextClass
EC < call T_AssertIsVisText >
call GetNameArray
EC < ERROR_NC VIS_TEXT_OBJECT_MUST_HAVE_NAME_ARRAY >
jnz large
mov bx, ax ;bx <- not VM
done:
mov si, di ;*ds:si <- name array
.leave
ret
large:
call T_GetVMFile ;bx <- VM file
call VMLock
mov ds, ax ;ds <- seg addr of names
mov bx, bp ;bx <- VM handle for unlock
jmp done
LockNameArray endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetNameArray
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the name array for a text object
CALLED BY: LockNameArray(), GenNameNotify()
PASS: *ds:si - text object
RETURN: carry - clear if no names
z flag - clear (jnz) if a large text object
di - flag for name array
ax - VM handle of array
else:
di - chunk of name array
ax - 0
DESTROYED: none
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
gene 9/ 7/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetNameArray proc near
uses bx
class VisTextClass
.enter
EC < call T_AssertIsVisText >
;
; Find the name array
;
mov ax, ATTR_VIS_TEXT_NAME_ARRAY
call ObjVarFindData
jnc done ;branch if no names
mov ax, ds:[bx]
;
; The name array is stored differently depending on whether
; we're a small text object or a large text object.
;
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].VTI_storageFlags, mask VTSF_LARGE
jnz large
;
; this is a small object -- it *might* still have VM blocks for the
; name array, we have to look and see
mov bx, ds:[di].VTI_charAttrRuns
mov bx, ds:[bx] ;ds:bx = TextRunArrayHeader
tst ds:[bx].TRAH_elementVMBlock
jnz large
mov_tr di, ax ;di <- chunk of name array
mov ax, 0 ;ax <- not VM
done:
stc ;carry <- have names
.leave
ret
;
; We're in a large text object, so the name array is in a huge array
; which is in a VM block.
;
large:
mov di, VM_ELEMENT_ARRAY_CHUNK ;di <- flag for name array
jmp done
GetNameArray endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
UnlockNameArray
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Unlock the name array for a text object
CALLED BY: UTILITY
PASS: bx - value from LockNameArray()
RETURN: none
DESTROYED: none (flags preserved)
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 9/27/91 Initial version
gene 9/ 7/92 rewrote & commented
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
FarUnlockNameArray proc far
call UnlockNameArray
ret
FarUnlockNameArray endp
UnlockNameArray proc near
uses bp
.enter
pushf
tst bx ;VM handle?
jz notVM ;branch if not VM handle
mov bp, bx ;bp <- VM handle
call VMUnlock
notVM:
popf
.leave
ret
UnlockNameArray endp
TextNameType ends
|
test/Compiler/simple/StaticPatternLambda.agda | shlevy/agda | 1,989 | 10029 | <filename>test/Compiler/simple/StaticPatternLambda.agda
module _ where
open import Common.Prelude
case_of_ : {A B : Set} → A → (A → B) → B
case x of f = f x
{-# INLINE case_of_ #-}
patlam : Nat → Nat
patlam zero = zero
patlam (suc n) =
case n of λ
{ zero → zero
; (suc m) → m + patlam n
}
static : {A : Set} → A → A
static x = x
{-# STATIC static #-}
-- The static here will make the compiler get to the pattern lambda in the body of patlam
-- before compiling patlam. If we're not careful this might make the pattern lambda not
-- inline in the body of patlam.
foo : Nat → Nat
foo n = static (patlam (suc n))
main : IO Unit
main = printNat (foo 5)
|
bb-runtimes/arm/stm32l/stm32l5x2/s-bbbopa.ads | JCGobbi/Nucleo-STM32G474RE | 0 | 20559 | <filename>bb-runtimes/arm/stm32l/stm32l5x2/s-bbbopa.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . B B . B O A R D _ P A R A M E T E R S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2016-2021, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
-- The port of GNARL to bare board targets was initially developed by the --
-- Real-Time Systems Group at the Technical University of Madrid. --
-- --
------------------------------------------------------------------------------
-- This package defines board parameters for the STM32L562 boards
package System.BB.Board_Parameters is
pragma No_Elaboration_Code_All;
pragma Pure;
Main_Clock_Frequency : constant := 110_000_000;
-- Maximum frequency of the system clock, per RM0438 section 9.3.3, when
-- the PLL is used.
HSE_Clock_Frequency : constant := 8_000_000;
-- The high speed external oscillator is optional and not mounted by
-- default on the STM32L562QE Discovery Board, per UM2617 Rev 4, section
-- 6.5.2, page 22/61 (User Manual for STM32L562QE MCU). Also, 8MHz is
-- typical but not necessarily the value configured if the HSE is actualy
-- present.
MSI_Clock_Frequency : constant := 48_000_000;
-- The Multispeed Internal clock, a configurable oscialltor used in our
-- config to drive the PLL. NB: requires setting bits in RCC_CR.MSIRANGE
-- field! Otherwise is 4MHz on powerup.
FLASH_Latency : constant := 5;
-- After reset, the CPU clock frequency is 4 MHz and 0 wait state (WS) is
-- configured in the FLASH_ACR register. We will run at 110MHz so we use
-- 5 wait states, per RM0438 Rev 6 pg 179/2194, section 6.3.3 Read access
-- latency, table 31 "Number of wait states according to CPU clock (HCLK)
-- frequency"
end System.BB.Board_Parameters;
|
sharding-core/src/main/antlr4/imports/MySQLDCLStatement.g4 | chuanandongxu/sharding-sphere | 0 | 6125 | grammar MySQLDCLStatement;
import MySQLKeyword, Keyword, BaseRule, DataType, Symbol;
/**
* each statement has a url,
* each base url : https://dev.mysql.com/doc/refman/8.0/en/.
*/
//grant.html
grantPriveleges
: GRANT
privType columnList? (COMMA privType columnList?)*
ON objectType? privLevel
TO userOrRoles
(WITH GRANT OPTION)?
;
privType
: ALL PRIVILEGES?
| ALTER ROUTINE?
| CREATE (ROUTINE | TEMPORARY TABLES? | USER | VIEW)?
| DELETE
| DROP
| EVENT
| EXECUTE
| FILE
| GRANT OPTION
| INDEX
| INSERT
| LOCK TABLES
| PROCESS
| PROXY
| REFERENCES
| RELOAD
| REPLICATION CLIENT
| REPLICATION SLAVE
| SELECT
| SHOW DATABASES
| SHOW VIEW
| SHUTDOWN
| SUPER
| TRIGGER
| UPDATE
| USAGE
| AUDIT_ADMIN
| BINLOG_ADMIN
| CONNECTION_ADMIN
| ENCRYPTION_KEY_ADMIN
| FIREWALL_ADMIN
| FIREWALL_USER
| GROUP_REPLICATION_ADMIN
| REPLICATION_SLAVE_ADMIN
| ROLE_ADMIN
| SET_USER_ID
| SYSTEM_VARIABLES_ADMIN
| VERSION_TOKEN_ADMIN
;
objectType
: TABLE
| FUNCTION
| PROCEDURE
;
privLevel
: ASTERISK
| ASTERISK DOT ASTERISK
| schemaName DOT ASTERISK
| schemaName DOT tableName
| tableName
| schemaName DOT routineName
;
user
: STRING AT_ STRING
| STRING
| ID
;
users
: user (COMMA user)*
;
role
: STRING AT_ STRING
| STRING
| ID
;
roles
: role (COMMA role)*
;
userOrRole
: user
| role
;
userOrRoles
: userOrRole (COMMA userOrRole)*
;
//grant.html
grantProxy
: GRANT PROXY ON userOrRole
TO userOrRoles
(WITH GRANT OPTION)?
;
//grant.html
grantRoles
: GRANT roleNames
TO userOrRoles
(WITH ADMIN OPTION)?
;
//revoke.html
revokePriveleges
: REVOKE
privType columnList? (COMMA privType columnList?)*
ON objectType? privLevel
FROM userOrRoles
;
//revoke.html
revokeAllPriveleges
: REVOKE ALL PRIVILEGES? COMMA GRANT OPTION
FROM userOrRoles
;
//revoke.html
revokeProxy
: REVOKE PROXY ON userOrRole
FROM userOrRoles
;
//revoke.html
revokeRoles
: REVOKE roleNames
FROM userOrRoles
;
//create-user.html
createUser
: CREATE USER (IF NOT EXISTS)?
user authOptions?
DEFAULT ROLE roles
(REQUIRE (NONE | tlsOption (COMMA AND? tlsOption)*))?
(WITH resourceOption (COMMA resourceOption)*)?
(passwordOption | lockOption)*
;
authOption
: IDENTIFIED BY STRING (REPLACE STRING)? (RETAIN CURRENT PASSWORD)?
| IDENTIFIED WITH authPlugin
| IDENTIFIED WITH authPlugin BY STRING (REPLACE STRING)? (RETAIN CURRENT PASSWORD)?
| IDENTIFIED WITH authPlugin AS STRING
| DISCARD OLD PASSWORD
;
authOptions
: authOption (COMMA authOption)*
;
authPlugin
: ID
;
tlsOption
: SSL
| X509
| CIPHER STRING
| ISSUER STRING
| SUBJECT STRING
;
resourceOption
: MAX_QUERIES_PER_HOUR NUMBER
MAX_UPDATES_PER_HOUR NUMBER
MAX_CONNECTIONS_PER_HOUR NUMBER
MAX_USER_CONNECTIONS NUMBER
;
passwordOption
: PASSWORD EXPIRE (DEFAULT | NEVER | INTERVAL NUMBER DAY)?
| PASSWORD HISTORY (DEFAULT | NUMBER)
| PASSWORD REUSE INTERVAL (DEFAULT | NUMBER DAY)
| PASSWORD REQUIRE CURRENT (DEFAULT | OPTIONAL)?
;
lockOption
: ACCOUNT LOCK
| ACCOUNT UNLOCK
;
//alter-user.html
alterUser
: ALTER USER (IF EXISTS)?
user authOptions
(REQUIRE (NONE | tlsOption (COMMA AND? tlsOption)*))?
(WITH resourceOption (COMMA resourceOption)*)?
(passwordOption | lockOption)*
;
//alter-user.html
alterCurrentUser
: ALTER USER (IF EXISTS)? USER() userFuncAuthOption
;
userFuncAuthOption
: IDENTIFIED BY STRING (REPLACE STRING)? (RETAIN CURRENT PASSWORD)?
| DISCARD OLD PASSWORD
;
//alter-user.html
alterUserRole
: ALTER USER (IF EXISTS)?
user DEFAULT ROLE
(NONE | ALL | roles)
;
//drop-user.html
dropUser
: DROP USER (IF EXISTS)? users
;
//rename-user.html
renameUser
: RENAME USER user TO user (user TO user)*
;
//create-role.html
createRole
: CREATE ROLE (IF NOT EXISTS)? roles
;
//drop-role.html
dropRole
: DROP ROLE (IF EXISTS)? roles
;
//set-password.html
setPassword
: SET PASSWORD (FOR user)? EQ STRING (REPLACE STRING)? (RETAIN CURRENT PASSWORD)?
;
//set-default-role.html
setDefaultRole
: SET DEFAULT ROLE (NONE | ALL | roles) TO users
;
//set-role.html
setRole
: SET ROLE (
DEFAULT
| NONE
| ALL
| ALL EXCEPT roles
| roles
)
; |
mappings/c11_strengthening_seq.als | graymalkin/memalloy | 0 | 3268 | open ../archs/exec_C[E]
open strengthening[E]
/*
A C11-to-C11 mapping that allows:
- sb edges to be introduced,
- threads to be interleaved,
- dependencies to be introduced,
*/
module c11_strengthening_seq[E]
pred apply_map_c11[X,X':Exec_C] {
apply_map[X,X']
// memory orders are kept the same
X.ACQ = X'.ACQ
X.REL = X'.REL
X.SC = X'.SC
// atomicity is preserved
X.ATO = X'.ATO
}
|
k8259Slave.asm | satadriver/LiunuxOS | 0 | 86186 | <reponame>satadriver/LiunuxOS
.386p
Kernel Segment public para use32
assume cs:Kernel
__k8259SlaveEntry proc
pushad
mov ebp,esp
add ebp,32
push dword ptr ICW2_MASTER_INT_NO + 2
push dword ptr 0
push dword ptr [ebp]
push dword ptr [ebp + 4]
push dword ptr [ebp + 8]
test dword ptr [ebp+4],3
jz _kSlaveFriverKernelModeInt
push dword ptr [ebp + 12]
push dword ptr [ebp + 16]
jmp _kSlaveFriverShowExpInfo
_kSlaveFriverKernelModeInt:
push dword ptr 0
push dword ptr 0
_kSlaveFriverShowExpInfo:
call __exceptionInfo
add esp,28
mov al,20h
out 20h,al
out 0a0h,al
popad
iretd
__k8259SlaveEntry endp
Kernel ends |
extra/extra/Isomorphisms.agda | manikdv/plfa.github.io | 1,003 | 10219 | Extensionality of a function of two arguments
\begin{code}
extensionality2 : ∀ {A B C : Set} → {f g : A → B → C} → (∀ (x : A) (y : B) → f x y ≡ g x y) → f ≡ g
extensionality2 fxy≡gxy = extensionality (λ x → extensionality (λ y → fxy≡gxy x y))
\end{code}
Isomorphism of all and exists.
\begin{code}
¬∃∀ : ∀ {A : Set} {B : A → Set} → (¬ ∃ (λ (x : A) → B x)) ≃ ∀ (x : A) → ¬ B x
¬∃∀ =
record
{ to = λ { ¬∃bx x bx → ¬∃bx (x , bx) }
; fro = λ { ∀¬bx (x , bx) → ∀¬bx x bx }
; invˡ = λ { ¬∃bx → extensionality (λ { (x , bx) → refl }) }
; invʳ = λ { ∀¬bx → refl }
}
\end{code}
|
MASM_Practice/35_Define_DataType.asm | TuringGu/RELearning | 0 | 98337 | <gh_stars>0
.586
.MODEL flat,stdcall
option casemap:none
include windows.inc
include user32.inc
include kernel32.inc
include msvcrt.inc
includelib user32.lib
includelib kernel32.lib
includelib msvcrt.lib
.data
; == char *szStr="who am I?" in C program
szStr db "who am I?",0
num dword 5
; == arrNum[20] = {0} in C program
arrNum dword 20 dup(0)
; arrNum dword 20 dup(?) not initialized array
.code
main PROC
mov [arrNum],12345678h
mov [arrNum + 4],11111111h
mov [arrNum + 8],22222222h
push offset szStr
call crt_printf
add esp,4
;Exit
push 0
call ExitProcess
add esp,4
main ENDP
END main
;Intrinsic Data Types
;Integer
;BYTE 8bit unsigned
;SBYTE 8bit signed
;WORD 16bit unsigned
;SWORD 16bit signed
;DWORD 32bit unsigned
;SDWORD 32bit signed
;FWORD 48bit Far pointer of protection mode
;QWORD 64bit Integer
;TBYTE 80bit Integer
;
;Real Number
;REAL4 32bit short
;REAL8 64bit long
;REAL10 80bit extend
;Directive
;db 8bit Integer
;dw 16bit Integer
;dd 32bit Integer or Real number
;dq 64bit Integer or Real number
;dt 80bit Integer
;There is smail end
;78 56 34 12 |
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_13303_541.asm | ljhsiun2/medusa | 9 | 21401 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xf437, %rbx
nop
nop
cmp $40811, %r12
vmovups (%rbx), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %r13
nop
nop
nop
and %rdi, %rdi
lea addresses_UC_ht+0x52c3, %r8
nop
nop
nop
and $27353, %rsi
movb $0x61, (%r8)
nop
nop
nop
nop
nop
and %rsi, %rsi
lea addresses_UC_ht+0x1bf37, %rsi
lea addresses_A_ht+0x5e37, %rdi
nop
inc %rdx
mov $5, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp %rdi, %rdi
lea addresses_UC_ht+0x153f7, %rsi
lea addresses_WT_ht+0xb019, %rdi
add $55958, %rdx
mov $108, %rcx
rep movsl
nop
nop
nop
nop
xor %r8, %r8
lea addresses_D_ht+0x15237, %rcx
nop
nop
nop
mfence
movl $0x61626364, (%rcx)
nop
nop
dec %r8
lea addresses_normal_ht+0x131ff, %rsi
lea addresses_WC_ht+0xc6b7, %rdi
nop
nop
nop
nop
cmp $24601, %r13
mov $7, %rcx
rep movsw
nop
sub %r12, %r12
lea addresses_WT_ht+0x31e7, %rbx
sub %r8, %r8
movb (%rbx), %r13b
and $32778, %rbx
lea addresses_normal_ht+0x175ad, %rdi
nop
sub %rbx, %rbx
mov (%rdi), %r12w
nop
nop
nop
nop
nop
cmp %rcx, %rcx
lea addresses_A_ht+0x8c37, %rsi
lea addresses_WT_ht+0x8037, %rdi
nop
nop
xor $47827, %r8
mov $81, %rcx
rep movsb
cmp %rcx, %rcx
lea addresses_WC_ht+0x15eb7, %rdi
xor %rsi, %rsi
mov $0x6162636465666768, %rbx
movq %rbx, (%rdi)
nop
nop
nop
cmp %r8, %r8
lea addresses_normal_ht+0x17e17, %rsi
lea addresses_normal_ht+0x4fff, %rdi
nop
cmp $37654, %rdx
mov $68, %rcx
rep movsw
cmp $8132, %r13
lea addresses_WC_ht+0xcadd, %rsi
lea addresses_D_ht+0x1c437, %rdi
nop
nop
nop
xor %r8, %r8
mov $114, %rcx
rep movsl
nop
sub %r12, %r12
lea addresses_WC_ht+0x1eb4f, %rdi
inc %rsi
movups (%rdi), %xmm0
vpextrq $1, %xmm0, %rbx
nop
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_UC_ht+0x140f7, %rsi
lea addresses_D_ht+0x16f37, %rdi
clflush (%rsi)
nop
nop
nop
nop
cmp $43964, %r13
mov $21, %rcx
rep movsb
xor $9523, %rcx
lea addresses_D_ht+0x99d7, %rsi
lea addresses_D_ht+0x15867, %rdi
nop
and $19231, %rdx
mov $69, %rcx
rep movsw
cmp %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_PSE+0xfab7, %rsi
nop
nop
add %rax, %rax
mov $0x5152535455565758, %r11
movq %r11, %xmm6
vmovups %ymm6, (%rsi)
nop
nop
and %rsi, %rsi
// Load
lea addresses_WT+0x4c37, %rsi
nop
nop
nop
nop
xor %r11, %r11
mov (%rsi), %r9d
sub %r11, %r11
// REPMOV
lea addresses_WC+0x101ef, %rsi
lea addresses_WC+0x5837, %rdi
cmp $33151, %rax
mov $64, %rcx
rep movsw
nop
nop
nop
nop
nop
xor $36651, %rsi
// Load
lea addresses_normal+0x17437, %r9
nop
nop
nop
nop
nop
and $8059, %rsi
mov (%r9), %eax
nop
add $55309, %rdi
// Store
lea addresses_A+0x20b7, %r9
nop
nop
nop
nop
nop
cmp $59424, %r10
mov $0x5152535455565758, %r11
movq %r11, (%r9)
nop
nop
nop
nop
dec %r9
// REPMOV
lea addresses_WT+0x1ab37, %rsi
lea addresses_D+0x15067, %rdi
nop
nop
add $33281, %rbp
mov $108, %rcx
rep movsw
nop
nop
nop
nop
nop
add %r11, %r11
// Store
lea addresses_PSE+0x1f527, %rcx
clflush (%rcx)
nop
and $50778, %r9
mov $0x5152535455565758, %r11
movq %r11, %xmm2
vmovups %ymm2, (%rcx)
nop
nop
nop
and $22731, %rdi
// Store
lea addresses_A+0xad37, %rcx
sub %r9, %r9
mov $0x5152535455565758, %rax
movq %rax, %xmm0
vmovups %ymm0, (%rcx)
nop
nop
xor $44538, %r10
// Store
lea addresses_PSE+0x6837, %r9
nop
xor $47587, %rsi
movb $0x51, (%r9)
xor $53382, %rax
// Store
lea addresses_PSE+0x11437, %rsi
add %rdi, %rdi
movl $0x51525354, (%rsi)
nop
nop
nop
nop
xor $54209, %rsi
// Faulty Load
lea addresses_WT+0x4c37, %r9
nop
nop
nop
nop
cmp $51522, %rbp
mov (%r9), %eax
lea oracles, %rcx
and $0xff, %rax
shlq $12, %rax
mov (%rcx,%rax,1), %rax
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WC', 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}}
{'39': 13303}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
|
arch/ARM/cortex_m/src/cm4f/cortex_m_svd.ads | rocher/Ada_Drivers_Library | 192 | 14812 | -- This spec has been automatically generated from cm4f.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Cortex_M_SVD is
pragma Preelaborate;
--------------------
-- Base addresses --
--------------------
NVIC_Base : constant System.Address :=
System'To_Address (16#E000E100#);
SCB_Base : constant System.Address :=
System'To_Address (16#E000E000#);
SysTick_Base : constant System.Address :=
System'To_Address (16#E000E010#);
FPU_Base : constant System.Address :=
System'To_Address (16#E000ED88#);
MPU_Base : constant System.Address :=
System'To_Address (16#E000ED90#);
Debug_Base : constant System.Address :=
System'To_Address (16#E000ED00#);
DWT_Base : constant System.Address :=
System'To_Address (16#E0001000#);
end Cortex_M_SVD;
|
gcc-gcc-7_3_0-release/gcc/ada/symbols.adb | best08618/asylo | 7 | 3824 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y M B O L S --
-- --
-- B o d y --
-- --
-- Copyright (C) 2003-2007, 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 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. 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 COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This is the default version of this package, used when the creation
-- of symbol files is not supported.
with Ada.Text_IO; use Ada.Text_IO;
package body Symbols is
----------------
-- Initialize --
----------------
procedure Initialize
(Symbol_File : String;
Reference : String;
Symbol_Policy : Policy;
Quiet : Boolean;
Version : String;
Success : out Boolean)
is
pragma Unreferenced (Symbol_File);
pragma Unreferenced (Reference);
pragma Unreferenced (Symbol_Policy);
pragma Unreferenced (Quiet);
pragma Unreferenced (Version);
begin
Put_Line
("creation of symbol files are not supported on this platform");
Success := False;
end Initialize;
----------------
-- Processing --
----------------
package body Processing is
-------------
-- Process --
-------------
procedure Process
(Object_File : String;
Success : out Boolean)
is
pragma Unreferenced (Object_File);
begin
Success := False;
end Process;
end Processing;
--------------
-- Finalize --
--------------
procedure Finalize
(Quiet : Boolean;
Success : out Boolean)
is
pragma Unreferenced (Quiet);
begin
Success := False;
end Finalize;
end Symbols;
|
PA5/samples/pa10-sum.asm | atomic/CSE131 | 1 | 161314 | .data
.text
main:
addi $sp, $sp, -12
li $t0, 5
li $t1, 3
# save registers...
sw $t1, 0($sp)
sw $t0, 4($sp)
addi $sp, $sp, -4
sw $t0, 0($sp)
addi $sp, $sp, -4
sw $t1, 0($sp)
jal sum
move $t2, $v0
addi $sp, $sp, 8
# restore registers...
lw $t1, 0($sp)
lw $t0, 4($sp)
li $v0, 1
move $a0, $t2
syscall
addi $sp, $sp, 12
# End Program
li $v0, 10
syscall
sum:
lw $t3, 0 ($sp)
lw $t4, 4 ($sp)
addi $sp, $sp, -4
add $t5, $t3, $t4
move $v0, $t5
addi $sp, $sp, 4
jr $ra
|
src/test_assertions.ads | kevinrosalesdev/MathArray-FormalVerification | 2 | 20678 | <filename>src/test_assertions.ads
-- Minimum package providing support for Unit testing
package Test_Assertions is
Test_Assertion_Error : exception;
procedure Assert_True (Value : Boolean);
-- Raises Assertion_Error when Value is False
procedure Assert_False (Value : Boolean);
-- Raises Assertion_Error when Value is True
procedure Assert_True (Value : Boolean; Message : String);
-- Outputs Message and displays OK when Value is True.
procedure Assert_False (Value : Boolean; Message : String);
-- Outputs Message and displays OK when Value is False.
end Test_Assertions;
|
src/examples/Rejuvenation_Workshop/src/parentpackage.ads | selroc/Renaissance-Ada | 1 | 28990 | <reponame>selroc/Renaissance-Ada
with Ada.Text_IO;
package ParentPackage is
end ParentPackage;
|
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_20095_1234.asm | ljhsiun2/medusa | 9 | 171880 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x567a, %r14
sub %rdi, %rdi
mov (%r14), %edx
nop
nop
nop
nop
inc %rdx
lea addresses_A_ht+0x24c6, %rbp
nop
nop
nop
nop
xor $2799, %r11
mov (%rbp), %r14
nop
nop
nop
sub %rbp, %rbp
lea addresses_A_ht+0xf296, %rsi
lea addresses_UC_ht+0x6116, %rdi
nop
nop
dec %r8
mov $97, %rcx
rep movsw
cmp $63067, %rbp
lea addresses_normal_ht+0x12bd6, %rsi
sub $33227, %r11
movb $0x61, (%rsi)
nop
nop
nop
nop
cmp %r11, %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r8
push %r9
push %rax
push %rbp
push %rcx
// Load
lea addresses_UC+0x1d916, %rax
nop
nop
xor %rbp, %rbp
mov (%rax), %r9w
sub %rbp, %rbp
// Load
lea addresses_WT+0xef96, %rcx
nop
nop
nop
nop
nop
and %r14, %r14
mov (%rcx), %eax
nop
cmp %r9, %r9
// Store
lea addresses_UC+0x4f96, %r9
nop
add $13175, %r8
mov $0x5152535455565758, %r14
movq %r14, %xmm2
vmovntdq %ymm2, (%r9)
nop
nop
and %r8, %r8
// Load
lea addresses_UC+0x1d916, %rax
nop
nop
nop
and %r10, %r10
mov (%rax), %r14d
nop
nop
nop
nop
nop
xor %r14, %r14
// Store
lea addresses_WC+0x6516, %rcx
nop
nop
nop
sub %r14, %r14
movb $0x51, (%rcx)
cmp $50279, %rbp
// Faulty Load
lea addresses_UC+0x1d916, %r8
clflush (%r8)
nop
nop
nop
and %rax, %rax
mov (%r8), %r9d
lea oracles, %rbp
and $0xff, %r9
shlq $12, %r9
mov (%rbp,%r9,1), %r9
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'00': 20095}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
programmer/programmer/programmer_4mhz.asm | INgoRah/owSlave2 | 0 | 101833 | .def srbyte = r12 ;byty for search rom algorithm
.def writelow = r13; marker for send low
.def zero =r14; always zero
.def smode=r15; if 1 then send
.def temp = r16 ;
.def temp2 = r17;
.def mode = r18 ;
.def bitp = r19 ; bit counter ... shift...
.def rwbyte = r21;
.def param = r22;
.def bytep = r23 ;byte counter
#define spmcrval param
.equ OWM_READ_ROM_COMMAND=0 ; 0 wegen schnellen test ist dieser wert 0! Daturch wird die Sprungdabelle nicht verwendet
.equ OWM_SLEEP=1 ; Warten auf Reset
.equ OWM_MATCH_ROM=2
.equ OWM_SEARCH_ROM_S=3 ;send bit
.equ OWM_SEARCH_ROM_R=4 ;resive master
.equ OWM_READ_COMMAND=5
.equ OWM_WRITE_SCRATCHPAD=6
.equ OWM_READ_SCRATCHPAD=7
.equ OWM_PROGRAMM_PAGE=8
.equ OWM_RECALL_FLASH=9
.equ OW_DDR = DDRB
.equ OW_PIN = PORTB2
.equ OW_PORT = PORTB
.equ OW_PINN = PINB
;.equ SRAM_START = 0x60
.macro set_clock
ldi temp,0x80;
out CLKPR,temp
ldi temp,@0
out CLKPR,temp
.endmacro
.macro owwl
sbic OW_PINN,OW_PIN
rjmp pc-1
.endmacro
.macro owwh
sbis OW_PINN,OW_PIN
rjmp pc-1
.endmacro
;---------------------------------------------------
; START of PROG
;---------------------------------------------------
.CSEG
.ORG 0x000
jreset:
rjmp start ; Reset-Vector
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
reti ;
.ORG 0x0EC0
start:
cli
ldi temp,0
mov zero,temp
set_clock 0x01 ;4mhz
ldi mode,OWM_SLEEP
ldi temp,(1<<CS01) //2us
out TCCR0B,temp
ldi temp, HIGH(RAMEND) ; HIGH-Byte der obersten RAM-Adresse
out SPH, temp
ldi temp, LOW(RAMEND) ; LOW-Byte der obersten RAM-Adresse
out SPL, temp
;ldi temp,1
;out DDRB,temp
clr writelow
clr bitp
;sbi PORTB,0
ldi ZL,low(pro_owid*2)
ldi ZH,high(pro_owid*2)
ldi XL,low(sowid)
ldi XH,high(sowid)
;ldi temp2,8
pro_copy_loop: ;copy ID on SRAM for better handling
lpm temp,Z+
st X+,temp
cpi XL,SRAM_START+8
brlo pro_copy_loop
pro_loop:
;sbi PORTB,0
owwl ;wait for line goes low (polling)
sbrc writelow,0 ;test of zero send
sbi OW_DDR,OW_PIN ;yes pull line to low 2us faster
sbrs writelow,0 ;test egain 2us faster.....
rjmp pro_loop1 ;no ? goes next
ldi param,20 ;wait for 50 us
rcall wait_time
clr writelow ;reset write low indecator
cbi OW_DDR,OW_PIN ;release line
owwh ;wait for line is high (it can takes some time cause of the capacity of line)
pro_loop1:
tst smode ;smode=1 for slave sends to master
breq pro_loop_resv
pro_loop_send:
tst bitp
brne pro_loop_send1
rcall pro_hb
tst smode
breq pro_loop_end ; now reading ... do nothing
pro_loop_send1: ;prebare next bit
sbrs rwbyte ,0; if bit 0 set in rwbyte then skip next command
inc writelow
lsl bitp
ror rwbyte
rjmp pro_loop_end
pro_loop_resv:
ldi param,7 ;wait 15us
rcall wait_time
lsr rwbyte
;cbi PORTB,0
sbic OW_PINN,OW_PIN ;test line
ori rwbyte,0x80
lsl bitp
brne pro_loop_end ;no handle need
rcall pro_hb
tst smode
brne pro_loop_send ; Nach dem Gelesen byte koennte gesendet werden muessen....
pro_loop_end:
//owwh
out TCNT0,zero
pro_loop_end_test_reset:
sbic OW_PINN,OW_PIN //leitung wieder high
rjmp pro_loop
in temp,TCNT0
cpi temp,63
brlo pro_loop_end_test_reset
rcall pro_sleep_s2
rjmp pro_loop
pro_sleep:
out TCNT0,zero
pro_sleep_s1:
sbic OW_PINN,OW_PIN //leitung wieder high
ret
in temp,TCNT0
cpi temp,100
brlo pro_sleep_s1
//leitung wieder high
pro_sleep_s2:
owwh
ldi param,20
rcall wait_time
//Presents Impuls
sbi OW_DDR,OW_PIN
ldi param,75
rcall wait_time
cbi OW_DDR,OW_PIN
//init read byte
ldi bitp,0x01
ldi rwbyte,0
clr smode
ldi mode,OWM_READ_ROM_COMMAND
//Wait for all other devices presents impuls finished
ldi param,20
rcall wait_time
ret
pro_hb:
ldi ZL,low(pro_stable)
ldi ZH,high(pro_stable)
add ZL,mode
adc ZH,zero
icall
ret
pro_stable:
rjmp pro_read_rom_command
rjmp pro_sleep
rjmp pro_match_rom
rjmp pro_search_rom_s
rjmp pro_search_rom_r
rjmp pro_read_command
rjmp pro_write_scratchpad
rjmp pro_read_scratchpad
rjmp pro_programm_page
rjmp pro_recall_flash
pro_read_rom_command:
ldi mode,OWM_SLEEP
cpi rwbyte,0xCC
brne pro_rcc_1
ldi mode,OWM_READ_COMMAND
rjmp pro_out_bitp1
pro_rcc_1:
cpi rwbyte,0xF0 ;Searchrom
brne pro_rcc_2
ldi XL,low(sowid) ;init sram pointer
ldi XH,high(sowid)
ld srbyte,X+
ldi bytep,0
rjmp pro_serchrom_next_bit
pro_rcc_2:
cpi rwbyte,0x55 ;Matchrom
brne pro_rcc_3
// rcall pro_owidinit
ldi XL,low(sowid) ;init sram pointer
ldi XH,high(sowid)
ldi mode,OWM_MATCH_ROM
rjmp pro_out_bytep0
pro_rcc_3:
ret
pro_match_rom:
ld temp,X+
cp temp,rwbyte
breq pro_match_rom_next
ldi mode,OWM_SLEEP
ret
pro_match_rom_next:
cpi XL,SRAM_START+8
breq pro_match_rom_found
rjmp pro_out_bitp1
pro_match_rom_found:
ldi mode,OWM_READ_COMMAND
rjmp pro_out_bitp1
pro_read_command:
ldi mode,OWM_SLEEP
cpi rwbyte,0x0F ;; Write to Scratchpad
brne pro_rc_1
ldi mode,OWM_WRITE_SCRATCHPAD
ldi XL,low(scratchpad) ;init sram pointer
ldi XH,high(scratchpad)
rjmp pro_out_bytep0
pro_rc_1:
cpi rwbyte,0xAA
brne pro_rc_2
ldi mode,OWM_READ_SCRATCHPAD ;;Read from Scratchpad
ldi XL,low(scratchpad) ;init sram pointer
ldi XH,high(scratchpad)
inc smode
ld rwbyte,X+
rjmp pro_out_bytep0
pro_rc_2:
cpi rwbyte,0xB8
brne pro_rc_3
ldi mode,OWM_RECALL_FLASH ;; copy Flash page in Scratchpad
ldi XL,low(scratchpad) ;init sram pointer
ldi XH,high(scratchpad)
rjmp pro_out_bytep0
pro_rc_3:
cpi rwbyte,0x55 ; copy Scratchpad to Flash
brne pro_rc_4
ldi mode,OWM_SLEEP
rjmp pro_programm_page
pro_rc_4:
cpi rwbyte,0x89 ; Reset Device /Boot (new) Firmware
brne pro_rc_5
rjmp jreset
pro_rc_5:
cpi rwbyte,0x8B ; Clear the OWID saved in EEPROM / one ID1
brne pro_rc_6
ldi temp,7
pro_rc_5a:
ldi XL,low(E2END)
ldi XH,high(E2END)
sub XL,temp
out EEARH,XH
out EEARL,XL
ldi temp, (0<<EEPM1)|(0<<EEPM0)
out EECR, temp
ldi temp,0xFF
out EEDR, temp
sbi EECR, EEMPE
sbi EECR, EEPE
ret
pro_rc_6:
cpi rwbyte,0x8C ; Clear the OWID saved in EEPROM / one ID2
brne pro_rc_7
ldi temp,7+8
rjmp pro_rc_5a
pro_rc_7:
ret
pro_write_scratchpad:
st X+,rwbyte
cpi XL,SRAM_START+8+66
brlo pro_write_scratchpad_next
ldi mode,OWM_SLEEP
ret
pro_write_scratchpad_next:
ldi bitp,1
ret
pro_read_scratchpad:
cpi XL,SRAM_START+8+66
brlo pro_read_scratchpad_next
ldi mode,OWM_SLEEP
clr smode
ret
pro_read_scratchpad_next:
ld rwbyte,X+
rjmp pro_out_bitp1
pro_programm_page:
.equ PAGESIZEB = PAGESIZE*2;PAGESIZEB is page size in BYTES, not words
// .org SMALLBOOTSTART
write_page:
;transfer data from RAM to Flash page buffer
ldi bytep, PAGESIZEB ;init loop variable
ldi YL,low(scratchpad) ;init sram pointer
ldi YH,high(scratchpad)
ld ZL,Y+
ld ZH,Y+
;page erase
ldi spmcrval, (1<<PGERS) + (1<<SPMEN)
rcall do_spm
wrloop:
ld r0, Y+
ld r1, Y+
ldi spmcrval, (1<<SPMEN)
rcall do_spm
adiw ZH:ZL, 2
subi bytep, 2;use subi for PAGESIZEB<=256
brne wrloop
;execute page write
subi ZL, low(PAGESIZEB) ;restore pointer
sbci ZH, high(PAGESIZEB) ;not required for PAGESIZEB<=256
ldi spmcrval, (1<<PGWRT) + (1<<SPMEN)
rcall do_spm
;read back and check, optional
ldi bytep, PAGESIZEB
subi YL, low(PAGESIZEB) ;restore pointer
sbci YH, high(PAGESIZEB)
rdloop:
lpm r0, Z+
ld r1, Y+
cpse r0, r1
rjmp error
subi bytep, 2;use subi for PAGESIZEB<=256
brne rdloop
;return
ret
do_spm:
;input: spmcrval determines SPM action
;disable interrupts if enabled, store status
in temp2, SREG
cli
;check for previous SPM complete
wait:
in temp, SPMCSR
sbrc temp, SPMEN
rjmp wait
;SPM timed sequence
out SPMCSR, spmcrval
spm
;restore SREG (to enable interrupts if originally enabled)
out SREG, temp2
ret
error:
ret
pro_recall_flash:
st X+,rwbyte
;inc bytep
cpi XL,SRAM_START+8+2
brlo pro_out_bitp1;pro_recall_flash_next
lds ZL,scratchpad
lds ZH,scratchpad+1
pro_recall_flash_cl:
lpm temp,Z+
st X+,temp
cpi XL,SRAM_START+8+66
brne pro_recall_flash_cl
ldi mode,OWM_SLEEP
ret
pro_out_read_command:
ldi mode,OWM_READ_COMMAND
pro_out_bytep0:
ldi bytep,0
pro_out_bitp1:
ldi bitp,1
ret
pro_serchrom_next_bit:
mov rwbyte,srbyte
mov temp2,rwbyte
com rwbyte
ror temp2 ;first bit in C
rol rwbyte ;C in first bit
inc smode
ldi bitp,0x40
ldi mode,OWM_SEARCH_ROM_R ;next mod Resive
ret
pro_search_rom_s:
clr temp2
lsr srbyte ;shift in C lowest bit
ror temp2 ; shift in temp2 as highest bit
andi rwbyte,0x80 ; clear other bits
eor temp2,rwbyte
breq pro_search_rom_s_goon
ldi mode,OWM_SLEEP
ret
pro_search_rom_s_goon:
inc bytep
mov temp2,bytep
andi temp2,0x07
brne pro_serchrom_next_bit ;prepare next bit
mov temp2,bytep
andi temp2,0x40 ;;end
brne pro_search_rom_found
;read next byte
ld srbyte,X+
rjmp pro_serchrom_next_bit
pro_search_rom_found:
ldi mode,OWM_READ_COMMAND
rjmp pro_out_bytep0
pro_search_rom_r:
clr smode
ldi mode,OWM_SEARCH_ROM_S
ldi bitp,0 ;go to searchrom_s after bit get
ret
pro_owid: .DB 0xA3, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xFA
wait_time:
out TCNT0,zero
wait_time1:
in temp,TCNT0
cp temp,param
brlo wait_time1
ret
.DSEG
sowid: .BYTE 8
scratchpad: .BYTE 66 |
oeis/168/A168522.asm | neoneye/loda-programs | 11 | 82334 | ; A168522: a(n) = 98*a(n-1) - 2*a(n-2); a(1) = 0, a(2) = 1.
; Submitted by <NAME>
; 0,1,98,9602,940800,92179196,9031679608,884920243192,86704120473600,8495233965926416,832359520419841568,81554242533212620832,7990651049213997158400,782920694337905296281536,76710246743016291041273728,7516038339426920711452262272,736418336770352197140239155200,72153964926815661478320532685056,7069615726154394120481131724825088,692678033233276992484194267967488512,67868308025408836475210075997364224000,6649708830423599420585619059205758974976,651535728765461925544440247650169651099648
mov $3,1
lpb $0
sub $0,1
mul $1,$2
mul $1,16
add $3,$1
mov $1,3
add $2,$3
sub $3,$2
mul $2,2
lpe
mov $0,$2
div $0,2
|
examples/color.adb | ytomino/drake | 33 | 12988 | with Ada.Colors;
with Ada.Numerics;
procedure Color is
use type Ada.Colors.RGB;
P : constant := 16#0.0001#; -- 1/65536
begin
-- distances in HSV
pragma Assert (
abs (
Ada.Colors.HSV_Distance (
(Hue => 0.0, Saturation => 0.0, Value => 1.0),
(Hue => Ada.Numerics.Pi / 2.0, Saturation => 0.0, Value => 1.0))
- 0.0) < P);
pragma Assert (
abs (
Ada.Colors.HSV_Distance (
(Hue => 0.0, Saturation => 1.0, Value => 1.0),
(Hue => Ada.Numerics.Pi / 2.0, Saturation => 1.0, Value => 1.0))
- 0.5) < P); -- Sqrt (2.0) ** 2 / 2.0 = 0.5
pragma Assert (
abs (
Ada.Colors.HSV_Distance (
(Hue => 0.0, Saturation => 1.0, Value => 1.0),
(Hue => Ada.Numerics.Pi, Saturation => 1.0, Value => 1.0))
- 1.0) < P);
-- distances in HSL
pragma Assert (
abs (
Ada.Colors.HSL_Distance (
(Hue => 0.0, Saturation => 1.0, Lightness => 1.0),
(Hue => Ada.Numerics.Pi / 2.0, Saturation => 1.0, Lightness => 1.0))
- 0.0) < P);
pragma Assert (
abs (
Ada.Colors.HSL_Distance (
(Hue => 0.0, Saturation => 1.0, Lightness => 0.5),
(Hue => Ada.Numerics.Pi / 2.0, Saturation => 1.0, Lightness => 0.5))
- 0.5) < P); -- Sqrt (2.0) ** 2 / 2.0 = 0.5
pragma Assert (
abs (
Ada.Colors.HSL_Distance (
(Hue => 0.0, Saturation => 1.0, Lightness => 0.0),
(Hue => Ada.Numerics.Pi / 2.0, Saturation => 1.0, Lightness => 0.0))
- 0.0) < P);
-- conversions
for R in 0 .. 4 loop
for G in 0 .. 4 loop
for B in 0 .. 4 loop
declare
Original_RGB : constant Ada.Colors.RGB := (
Red => Ada.Colors.Brightness'Base (R) / 4.0,
Green => Ada.Colors.Brightness'Base (G) / 4.0,
Blue => Ada.Colors.Brightness'Base (B) / 4.0);
HSV : constant Ada.Colors.HSV := Ada.Colors.To_HSV (Original_RGB);
HSV_RGB : constant Ada.Colors.RGB := Ada.Colors.To_RGB (HSV);
HSV_HSL : constant Ada.Colors.HSL := Ada.Colors.To_HSL (HSV);
HSL : constant Ada.Colors.HSL := Ada.Colors.To_HSL (Original_RGB);
HSL_RGB : constant Ada.Colors.RGB := Ada.Colors.To_RGB (HSL);
HSL_HSV : constant Ada.Colors.HSV := Ada.Colors.To_HSV (HSL);
begin
-- RGB / HSV
pragma Assert (
abs (HSV_RGB.Red - Original_RGB.Red) < P
and then abs (HSV_RGB.Green - Original_RGB.Green) < P
and then abs (HSV_RGB.Blue - Original_RGB.Blue) < P);
pragma Assert (Ada.Colors.RGB_Distance (HSV_RGB, Original_RGB) < P);
-- RGB / HSL
pragma Assert (
abs (HSL_RGB.Red - Original_RGB.Red) < P
and then abs (HSL_RGB.Green - Original_RGB.Green) < P
and then abs (HSL_RGB.Blue - Original_RGB.Blue) < P);
pragma Assert (Ada.Colors.RGB_Distance (HSL_RGB, Original_RGB) < P);
-- HSV / HSL
pragma Assert (
abs (HSL_HSV.Hue - HSV.Hue) < P
and then abs (HSL_HSV.Saturation - HSV.Saturation) < P
and then abs (HSL_HSV.Value - HSV.Value) < P);
pragma Assert (
abs (HSV_HSL.Hue - HSL.Hue) < P
and then abs (HSV_HSL.Saturation - HSL.Saturation) < P
and then abs (HSV_HSL.Lightness - HSL.Lightness) < P);
null;
end;
end loop;
end loop;
end loop;
pragma Debug (Ada.Debug.Put ("OK"));
end Color;
|
libsrc/_DEVELOPMENT/l/sccz80/crt0_long/htonl.asm | meesokim/z88dk | 0 | 104253 | <gh_stars>0
;
; Small C+ TCP Implementation
;
; htonl() Convert host to network format and back again!
;
; djm 24/4/99
SECTION code_l_sccz80
PUBLIC htonl
htonl:
ex de,hl ; exchange order of bytes
ld a,l ; swap within bytes
ld l,h
ld h,a
ld a,e
ld e,d
ld d,a
ret
|
test/Succeed/Issue2644.agda | cruhland/agda | 1,989 | 6315 | <filename>test/Succeed/Issue2644.agda
-- Andreas, 2017-07-29, issue #2644 reported by <NAME>
--
-- Silly mistake in expandRecordVar:
-- Substitution applied to ListTel instead of Telescope.
-- (Messed up the de Bruijn indices, garbage.)
-- This file should pass with lots of yellow.
{-# OPTIONS --allow-unsolved-metas #-}
-- {-# OPTIONS -v tc.meta.assign.proj:45 #-}
-- OLD:
-- {-# OPTIONS -v tc.cc:20 #-}
-- {-# OPTIONS -v tc.lhs:10 #-}
-- {-# OPTIONS -v tc.decl:10 #-}
-- {-# OPTIONS -v tc.ip:20 #-}
-- {-# OPTIONS -v tc.check.internal:20 #-}
-- {-# OPTIONS -v tc.meta.check:30 #-}
-- {-# OPTIONS -v tc:20 #-}
-- {-# OPTIONS -v tc.meta:50 #-}
-- {-# OPTIONS -v tc:45 #-}
-- {-# OPTIONS -v tc.term.exlam:100 -v tc:90 #-}
record Σ (A¹ : Set) (B¹ : A¹ → Set) : Set where
constructor pair
field
fst : A¹
snd : B¹ fst
open Σ
postulate
Path : (A² : Set) → A² → A² → Set
path : (A³ : Set) → Path _ _ _
record S : Set₁ where
constructor mkS
field
Aₛ : Set
Bₛ : (aₛ¹ : Aₛ) → Set
zₛ : (aₛ² : Aₛ) → Bₛ aₛ²
record T : Set₁ where
constructor mkT
field
A : Set
B : (a¹ : A) → Set
z : (a² : A) → B a²
s : (a³ : A) → B a³ → B a³
p : (a⁴ : A) (f : B a⁴) → Path _ f (s _ (z _))
-- passes without the matching
f₀ : S → T
f₀ X = record { A = Σ _ _
; B = λ b → Σ _ _ -- λ { (b₁ , b₂) → Σ _ _ }
; z = λ z₁ → pair (S.zₛ X _) _
; s = λ s₁ s₂ → _
; p = λ p₁ p₂ → path _
}
-- This was my final variant
module Final where
mutual
TA : S → Set
TA Z = Σ _ _
aux : (Y : S) → TA Y → Set
aux Y (pair b¹ b²) = Σ _ _ -- fails
fₐ : S → T
fₐ X = record { A = TA X
; B = aux X
; z = λ (z¹ : TA X) → pair (S.zₛ X _) _
; s = λ (s¹ : TA X) (s² : aux X s¹) → _
; p = λ (p¹ : TA X) (p² : aux X p¹) → path _
}
-- Intermediate
fₐᵤ : S → T
fₐᵤ X = record { A = TA
; B = aux
; z = λ (z₁ : TA) → pair (S.zₛ X _) _
; s = λ (s₁ : TA) (s₂ : aux s₁) → _
; p = λ (p₁ : TA) (p₂ : aux p₁) → path _
}
where
TA = Σ _ _
aux : TA → Set
-- (passes without the matching)
-- aux b = let b₁ = fst b; b₂ = snd b in {! Σ _ _ !} -- worked
aux (pair b₁ b₂) = Σ _ _ -- failed
-- Close to original
f : S → T
f X = record { A = Σ _ _
; B = λ { (pair b₁ b₂) → Σ _ _ }
; z = λ z₁ → pair (S.zₛ X _) _
; s = λ s₁ s₂ → _
; p = λ p₁ p₂ → path _
}
{- Hunted down the crash cause:
context before projection expansion
(X : S) (p¹ : TA X) (p² : aux X p¹)
meta args: [X, p¹, pair (S.zₛ X (_aₛ²_34 X p¹)) (?1 X p¹)]
trying to expand projected variable X
eta-expanding var X in terms ([X, p¹,
pair (S.zₛ X (_aₛ²_34 X p¹)) (?1 X p¹)],_8 (?2 X p¹ p²))
meta args: [mkS Aₛ(X) Bₛ(X) zₛ(X), p¹,
pair (zₛ(X) (_aₛ²_34 (mkS Aₛ(X) Bₛ(X) zₛ(X)) p¹))
(?1 (mkS Aₛ(X) Bₛ(X) zₛ(X)) p¹)]
context before projection expansion
(X : S) S
(p¹ : TA X) TA 0
(p² : aux X p¹) aux 1 0
context after projection expansion
(Aₛ(X) : Set)
(Bₛ(X) : Aₛ(X) → Set)
(zₛ(X) : (aₛ² : Aₛ(X)) → Bₛ(X) aₛ²)
(p¹ : TA (mkS Aₛ(X) Bₛ(X) zₛ(X))) -- This type is fine
(p² : aux Aₛ(X) (mkS Bₛ(X) zₛ(X) p¹)) -- This type is messed up!
-}
-- -}
-- -}
-- -}
-- -}
-- -}
|
programs/oeis/027/A027709.asm | neoneye/loda | 22 | 164939 | ; A027709: Minimal perimeter of polyomino with n square cells.
; 0,4,6,8,8,10,10,12,12,12,14,14,14,16,16,16,16,18,18,18,18,20,20,20,20,20,22,22,22,22,22,24,24,24,24,24,24,26,26,26,26,26,26,28,28,28,28,28,28,28,30,30,30,30,30,30,30,32,32,32,32,32,32,32,32,34,34,34,34,34,34,34,34,36,36,36,36,36,36,36,36,36,38,38,38,38,38,38,38,38,38,40,40,40,40,40,40,40,40,40
mul $0,4
lpb $0
sub $0,$1
trn $0,1
add $1,2
lpe
mov $0,$1
|
Model.agda | divipp/lensref | 16 | 1102 | open import Level
open import Data.Unit
open import Data.Bool
open import Data.Nat
open import Data.Fin
open import Data.Sum
open import Data.Maybe
open import Data.Product
open import Data.Vec using (Vec; _∷_; [])
import Data.Vec as Vec
open import Data.List
open import Relation.Binary.PropositionalEquality
--------------- lenses
Lens : Set → Set → Set
Lens A B = A → B × (B → A)
idₗ : {A : Set} → Lens A A
idₗ = λ z → z , λ x → x
_∘ₗ_ : {A B C : Set} → Lens A B → Lens B C → Lens A C
l ∘ₗ k = λ a → let (l₁ , l₂) = l a; (k₁ , k₂) = k l₁ in k₁ , λ x → l₂ (k₂ x)
infixl 9 _∘ₗ_
--- composition laws
_≡ₗ_ : {A B : Set} (k l : Lens A B) → Set
_≡ₗ_ {A} {B} k l = (a : A) → let (k₁ , k₂) = k a; (l₁ , l₂) = l a in k₁ ≡ l₁ × ((b : B) → k₂ b ≡ l₂ b)
infix 4 _≡ₗ_
id-left : {A B : Set} (k : Lens A B) → idₗ ∘ₗ k ≡ₗ k
id-left k a = refl , λ b → refl
id-right : {A B : Set} (k : Lens A B) → k ≡ₗ idₗ ∘ₗ k
id-right k a = refl , λ b → refl
comp-assoc : {A B C D : Set} (k : Lens A B) (l : Lens B C) (m : Lens C D) → k ∘ₗ (l ∘ₗ m) ≡ₗ (k ∘ₗ l) ∘ₗ m
comp-assoc k l m a = refl , λ b → refl
--------------- heterogeneous lists
TList : Set₁
TList = List Set
data HList : TList → Set where
[] : HList []
_∷_ : ∀ {t : Set} {ts : TList} → (v : t) → HList ts → HList (t ∷ ts)
--- operations
_+++_ : ∀ {ts xs : TList} → HList ts → HList xs → HList (ts ++ xs)
[] +++ y = y
(v ∷ x) +++ y = v ∷ (x +++ y)
splitH : ∀ {ts xs : TList} → HList (ts ++ xs) → HList ts × HList xs
splitH {ts = []} xs₁ = [] , xs₁
splitH {ts = x ∷ ts} (v ∷ xs₁) = let (r₁ , r₂) = splitH {ts = ts} xs₁ in v ∷ r₁ , r₂
---------------- auxiliary stuff
TList′ : ℕ → Set₁
TList′ = Vec Set
data HList′ : {n : ℕ} → TList′ n → Set where
[] : HList′ []
_∷_ : ∀ {n} {t : Set} {ts : TList′ n} → (v : t) → HList′ ts → HList′ (t ∷ ts)
pattern ex a = ._ , a
toVec : ∀ {ℓ} {A : Set ℓ} (as : List A) → Σ ℕ λ n → (n ≡ length as) × Vec A n
toVec [] = 0 , refl , []
toVec (x ∷ as) with toVec as
toVec (x ∷ as) | ex (refl , as′) = _ , refl , x ∷ as′
toVec′ : ∀ {ts : TList} → HList ts → let (_ , _ , ts′) = toVec ts in HList′ ts′ × (HList′ ts′ → HList ts)
toVec′ {[]} [] = [] , (λ _ → [])
toVec′ {x ∷ ts} (v ∷ xs) with toVec ts | toVec′ xs
toVec′ {x ∷ ts} (v ∷ xs) | ex (refl , _) | xs′ , f = v ∷ xs′ , λ { (v₁ ∷ x₁) → v₁ ∷ f x₁ }
----------
lookup : (ts : TList) → Fin (length ts) → Set
lookup x i with toVec x
lookup x i | ex (refl , v) = Vec.lookup i v
---------------------------------------------- signals
Signal : ∀ {ℓ} → TList → Set ℓ → Set ℓ
Signal ts A = HList ts → A
widenSignal : ∀ {ts xs : TList} {A : Set} → Signal ts A → Signal (ts ++ xs) A
widenSignal s vs = s (proj₁ (splitH vs))
sig : ∀ {ts : TList} (i : Fin (length ts)) → Signal ts (lookup ts i)
sig {ts} i st with toVec ts | toVec′ st
sig i st | ex (refl , v) | z , _ = sig′ i z
where
sig′ : ∀ {n} {ts : Vec Set n} (i : Fin n) → HList′ ts → Vec.lookup i ts
sig′ zero (v ∷ x) = v
sig′ (suc i) (v ∷ x) = sig′ i x
join : ∀ {ts : TList} {A : Set} → Signal ts (Signal ts A) → Signal ts A
join s vs = s vs vs
ret : ∀ {ts : TList} {A : Set} → A → Signal ts A
ret a _ = a
-- TODO: ret + join monad laws
------------------------------------ references
Ref : TList → Set → Set
Ref ts = Lens (HList ts)
widenRef : {ts xs : TList} {A : Set} → Ref ts A → Ref (ts ++ xs) A
widenRef r vs = let (vs₁ , vs₂) = splitH vs; (r₁ , r₂) = r vs₁ in r₁ , λ x → r₂ x +++ vs₂
ref : {ts : TList} (i : Fin (length ts)) → Ref ts (lookup ts i)
ref {ts} i st with toVec ts | toVec′ st
ref {ts} i st | ex (refl , v) | z , tr = let (r₁ , r₂) = ref′ i z in r₁ , λ x → tr (r₂ x)
where
ref′ : ∀ {n} {ts : TList′ n} (i : Fin n) → Lens (HList′ ts) (Vec.lookup i ts)
ref′ zero (v ∷ x) = v , λ v → v ∷ x
ref′ (suc i) (v ∷ x) with ref′ i x
ref′ (suc i) (v ∷ x) | z , f = z , λ z → v ∷ f z
unitRef : ∀ {ts : TList} → Ref ts ⊤
unitRef st = tt , λ tt → st
joinRef : ∀ {ts : TList} {A : Set} → Signal ts (Ref ts A) → Ref ts A
joinRef s st = s st st
lensMap : ∀ {ts : TList} {A B : Set} → Ref ts A → Lens A B → Ref ts B
lensMap = _∘ₗ_
readRef : ∀ {ts : TList} {A : Set} → Ref ts A → Signal ts A
readRef r st = proj₁ (r st)
---------------------------------- programs
open import Coinduction
Event : TList → Set
Event ts = Σ (Fin (length ts)) λ i → lookup ts i
mutual
data R (ts : TList) : Set₁ where
step : HList ts → (Event ts → ∞ (W ts)) → R ts
W : TList → Set₁
W ts = Σ TList λ vs → R (ts ++ vs)
Prog : Set₁
Prog = W []
-----------------------------------------
Gen : TList → TList → Set → Set
Gen ts xs A = HList ts → A × HList (ts ++ xs)
Gen′ : TList → Set → Set₁
Gen′ ts A = HList ts → A × Σ TList λ xs → HList (ts ++ xs)
-- TODO: widenGen
data Trigger (ts : TList) (A : Set) : Set₁ where
extend : {B : Set} → Ref ts B → Lens A B → Trigger ts A
stabilize : (A → A → Bool) → Signal ts A → Trigger ts A
onChange : Signal ts (Gen′ ts A) → Trigger ts A
runTrigger : ∀ {ts : TList} {A : Set} → Trigger ts A → Gen′ ts A
runTrigger (extend x x₁) x₂ = {!!}
runTrigger (stabilize x x₁) x₂ = {!!}
runTrigger (onChange x) x₁ = {!!}
-- ...
|
src/to-string.agda | xoltar/cedille | 0 | 15720 | <reponame>xoltar/cedille
import cedille-options
module to-string (options : cedille-options.options) where
open import lib
open import cedille-types
open import constants
open import syntax-util
open import ctxt
open import rename
open import general-util
data expr-side : Set where
left : expr-side
right : expr-side
neither : expr-side
not-left : expr-side → 𝔹
not-left left = ff
not-left _ = tt
not-right : expr-side → 𝔹
not-right right = ff
not-right _ = tt
no-parens : {ed : exprd} → {ed' : exprd} → ⟦ ed ⟧ → ⟦ ed' ⟧ → expr-side → 𝔹
no-parens {_} {TERM} _ (IotaPair pi t t' og pi') lr = tt
no-parens {_} {TYPE} _ (TpEq _ t t' _) lr = tt
no-parens {_} {TERM} _ (Beta pi ot ot') lr = tt
no-parens {_} {TERM} _ (Phi pi eq t t' pi') right = tt
no-parens {_} {TERM} _ (Phi pi eq t t' pi') neither = tt
no-parens {_} {TERM} _ (Rho _ _ _ _ _ _) right = tt
no-parens {_} {TERM} _ (Chi _ _ _) right = tt
no-parens {_} {TERM} _ (Delta _ _ _) right = tt
no-parens {_} {TERM} _ (Let _ _ _) lr = tt
no-parens {_} {TERM} _ (Lam _ _ _ _ _ _) lr = tt
no-parens {_} {TERM} _ (Mu _ _ _ _ _ _ _) lr = tt
no-parens {_} {TERM} _ (Mu' _ _ _ _ _ _) lr = tt
no-parens {_} {TYPE} _ (TpLambda _ _ _ _ _) lr = tt
no-parens {_} {TYPE} _ (Abs _ _ _ _ _ _) lr = tt
no-parens {_} {KIND} _ (KndPi _ _ _ _ _) lr = tt
no-parens {_} {TYPE} _ (Iota _ _ _ _ _) lr = tt
no-parens {_} {LIFTINGTYPE} _ (LiftPi _ _ _ _) lr = tt
no-parens{TERM} (App t me t') p lr = is-term-level-app p && not-right lr
no-parens{TERM} (AppTp t T) p lr = is-term-level-app p && not-right lr
no-parens{TERM} (Beta pi ot ot') p lr = tt
no-parens{TERM} (Chi pi mT t) p lr = ff
no-parens{TERM} (Delta pi mT t) p lr = ff
no-parens{TERM} (Epsilon pi lr' m t) p lr = is-eq-op p
no-parens{TERM} (Hole pi) p lr = tt
no-parens{TERM} (IotaPair pi t t' og pi') p lr = tt
no-parens{TERM} (IotaProj t n pi) p lr = tt
no-parens{TERM} (Lam pi l' pi' x oc t) p lr = ff
no-parens{TERM} (Let pi dtT t) p lr = ff
no-parens{TERM} (Open _ _ _) p lr = tt
no-parens{TERM} (Parens pi t pi') p lr = tt
no-parens{TERM} (Phi pi eq t t' pi') p lr = ff
no-parens{TERM} (Rho pi op on eq og t) p lr = ff
no-parens{TERM} (Sigma pi t) p lr = is-eq-op p
no-parens{TERM} (Theta pi theta t lts) p lr = ff
no-parens{TERM} (Var pi x) p lr = tt
no-parens{TERM} (Mu _ _ _ _ _ _ _) p lr = tt
no-parens{TERM} (Mu' _ _ _ _ _ _) p lr = tt
no-parens{TYPE} (Abs pi b pi' x Tk T) p lr = is-arrow p && not-left lr
no-parens{TYPE} (Iota pi pi' x oT T) p lr = ff
no-parens{TYPE} (Lft pi pi' x t lT) p lr = ff
no-parens{TYPE} (NoSpans T pi) p lr = tt
no-parens{TYPE} (TpApp T T') p lr = is-arrow p || (is-type-level-app p && not-right lr)
no-parens{TYPE} (TpAppt T t) p lr = is-arrow p || (is-type-level-app p && not-right lr)
no-parens{TYPE} (TpArrow T a T') p lr = is-arrow p && not-left lr
no-parens{TYPE} (TpEq _ t t' _) p lr = tt
no-parens{TYPE} (TpHole pi) p lr = tt
no-parens{TYPE} (TpLambda pi pi' x Tk T) p lr = ff
no-parens{TYPE} (TpParens pi T pi') p lr = tt
no-parens{TYPE} (TpVar pi x) p lr = tt
no-parens{TYPE} (TpLet _ _ _) _ _ = ff
no-parens{KIND} (KndArrow k k') p lr = is-arrow p && not-left lr
no-parens{KIND} (KndParens pi k pi') p lr = tt
no-parens{KIND} (KndPi pi pi' x Tk k) p lr = is-arrow p && not-left lr
no-parens{KIND} (KndTpArrow T k) p lr = is-arrow p && not-left lr
no-parens{KIND} (KndVar pi x as) p lr = tt
no-parens{KIND} (Star pi) p lr = tt
no-parens{LIFTINGTYPE} (LiftArrow lT lT') p lr = is-arrow p && not-left lr
no-parens{LIFTINGTYPE} (LiftParens pi lT pi') p lr = tt
no-parens{LIFTINGTYPE} (LiftPi pi x T lT) p lr = is-arrow p && not-left lr
no-parens{LIFTINGTYPE} (LiftStar pi) p lr = tt
no-parens{LIFTINGTYPE} (LiftTpArrow T lT) p lr = is-arrow p && not-left lr
no-parens{TK} _ _ _ = tt
no-parens{QUALIF} _ _ _ = tt
no-parens{ARG} _ _ _ = tt
pattern ced-ops-drop-spine = cedille-options.options.mk-options _ _ _ _ ff _ ff
pattern ced-ops-conv-arr = cedille-options.options.mk-options _ _ _ _ _ _ ff
pattern ced-ops-conv-abs = cedille-options.options.mk-options _ _ _ _ _ _ tt
drop-spine : cedille-options.options → {ed : exprd} → ctxt → ⟦ ed ⟧ → ⟦ ed ⟧
drop-spine ced-ops-drop-spine = h
where
drop-mod-args : ctxt → maybeErased → spineApp → spineApp
drop-mod-args Γ me (v , as) =
let qv = unqual-all (ctxt-get-qualif Γ) v in qv ,
maybe-else' (maybe-if (~ v =string qv) ≫maybe ctxt-qualif-args-length Γ me qv)
as (λ n → reverse (drop n (reverse as)))
h : {ed : exprd} → ctxt → ⟦ ed ⟧ → ⟦ ed ⟧
h {TERM} Γ t = maybe-else' (term-to-spapp t) t (spapp-term ∘ drop-mod-args Γ Erased)
h {TYPE} Γ T = maybe-else' (type-to-spapp T) T (spapp-type ∘ drop-mod-args Γ NotErased)
h Γ x = x
drop-spine ops Γ x = x
to-string-rewrite : {ed : exprd} → ctxt → cedille-options.options → ⟦ ed ⟧ → Σi exprd ⟦_⟧
to-string-rewrite{TERM} Γ ops (Parens _ t _) = to-string-rewrite Γ ops t
to-string-rewrite{TYPE} Γ ops (TpParens _ T _) = to-string-rewrite Γ ops T
to-string-rewrite{KIND} Γ ops (KndParens _ k _) = to-string-rewrite Γ ops k
to-string-rewrite{LIFTINGTYPE} Γ ops (LiftParens _ lT _) = to-string-rewrite Γ ops lT
to-string-rewrite{TK} Γ ops (Tkt T) = to-string-rewrite Γ ops T
to-string-rewrite{TK} Γ ops (Tkk k) = to-string-rewrite Γ ops k
to-string-rewrite{TYPE} Γ ced-ops-conv-arr (Abs _ me _ ignored-var (Tkt T) T') = , TpArrow T me T'
to-string-rewrite{KIND} Γ ced-ops-conv-arr (KndPi _ _ ignored-var (Tkt T) k) = , KndTpArrow T k
to-string-rewrite{KIND} Γ ced-ops-conv-arr (KndPi _ _ ignored-var (Tkk k) k') = , KndArrow k k'
to-string-rewrite{LIFTINGTYPE} Γ ced-ops-conv-arr (LiftPi _ ignored-var T lT) = , LiftTpArrow T lT
to-string-rewrite{TYPE} Γ ced-ops-conv-abs (TpArrow T me T') = , Abs posinfo-gen me posinfo-gen ignored-var (Tkt T) T'
to-string-rewrite{KIND} Γ ced-ops-conv-abs (KndTpArrow T k) = , KndPi posinfo-gen posinfo-gen ignored-var (Tkt T) k
to-string-rewrite{KIND} Γ ced-ops-conv-abs (KndArrow k k') = , KndPi posinfo-gen posinfo-gen ignored-var (Tkk k) k'
to-string-rewrite{LIFTINGTYPE} Γ ced-ops-conv-abs (LiftTpArrow T lT) = , LiftPi posinfo-gen ignored-var T lT
to-string-rewrite{TERM} Γ ops (Sigma pi (Sigma pi' t)) = to-string-rewrite Γ ops t
to-string-rewrite Γ ops x = , drop-spine ops Γ x
-------------------------------
strM : Set
strM = ∀ {ed} → rope → ℕ → 𝕃 tag → ctxt → maybe ⟦ ed ⟧ → expr-side → rope × ℕ × 𝕃 tag
to-stringh : {ed : exprd} → ⟦ ed ⟧ → strM
strM-Γ : (ctxt → strM) → strM
strM-Γ f s n ts Γ = f Γ s n ts Γ
infixr 4 _≫str_
_≫str_ : strM → strM → strM
(m ≫str m') s n ts Γ pe lr with m s n ts Γ pe lr
(m ≫str m') s n ts Γ pe lr | s' , n' , ts' = m' s' n' ts' Γ pe lr
strAdd : string → strM
strAdd s s' n ts Γ pe lr = s' ⊹⊹ [[ s ]] , n + string-length s , ts
strΓ' : defScope → var → strM → strM
strΓ' ds v m s n ts Γ@(mk-ctxt (fn , mn , ps , q) syms i symb-occs d) pe =
let gl = ds iff globalScope
v' = if gl then (mn # v) else v in
m s n ts (mk-ctxt
(fn , mn , ps , qualif-insert-params q v' (unqual-local v) (if gl then ps else ParamsNil))
syms (trie-insert i v' (var-decl , ("missing" , "missing"))) symb-occs d) pe
strΓ : var → strM → strM
strΓ x m s n ts Γ = m s n ts (ctxt-var-decl x Γ)
ctxt-get-file-id : ctxt → (filename : string) → ℕ
ctxt-get-file-id (mk-ctxt mod (syms , mn-fn , mn-ps , ids , id) is os _) =
trie-lookup-else 0 ids
make-loc-tag : ctxt → (filename start-to end-to : string) → (start-from end-from : ℕ) → tag
make-loc-tag Γ fn s e = make-tag "loc"
(("fn" , [[ ℕ-to-string (ctxt-get-file-id Γ fn) ]]) ::
("s" , [[ s ]]) :: ("e" , [[ e ]]) :: [])
var-loc-tag : ctxt → location → var → (start-from end-from : ℕ) → 𝕃 tag
var-loc-tag Γ ("missing" , "missing") x start end = []
var-loc-tag Γ (fn , pos) x start end =
[ make-loc-tag Γ fn pos (posinfo-plus-str pos (unqual-local x)) start end ]
var-tags : ctxt → qvar → var → ℕ → ℕ → 𝕃 tag
var-tags Γ qv uqv s e with qv =string (qualif-var Γ uqv)
...| tt = var-loc-tag Γ (ctxt-var-location Γ qv) uqv s e
...| ff = make-tag "shadowed" [] s e :: var-loc-tag Γ (ctxt-var-location Γ qv) uqv s e
strVar : var → strM
strVar v s n ts Γ pe lr =
let uqv = unqual-local $ unqual-all (ctxt-get-qualif Γ) v
uqv' = if cedille-options.options.show-qualified-vars options then v else uqv
n' = n + (string-length uqv') in
s ⊹⊹ [[ uqv' ]] , n' , var-tags Γ (qualif-var Γ v) uqv n n' ++ ts
-- Only necessary to unqual-local because of module parameters
strBvar : var → (class body : strM) → strM
strBvar v cm bm = strAdd (unqual-local v) ≫str cm ≫str strΓ v bm
strMetaVar : var → span-location → strM
strMetaVar x (fn , pi , pi') s n ts Γ pe lr =
let n' = n + string-length x in
s ⊹⊹ [[ x ]] , n' , make-loc-tag Γ fn pi pi' n n' :: ts
strEmpty : strM
strEmpty s n ts Γ pe lr = s , n , ts
{-# TERMINATING #-}
term-to-stringh : term → strM
type-to-stringh : type → strM
kind-to-stringh : kind → strM
liftingType-to-stringh : liftingType → strM
tk-to-stringh : tk → strM
constructors-to-string : dataConsts → strM
params-to-string : params → strM
params-to-string' : strM → params → strM
file-to-string : start → strM
cmds-to-string : cmds → strM → strM
cmd-to-string : cmd → strM → strM
optTerm-to-string : optTerm → string → string → strM
optClass-to-string : optClass → strM
optGuide-to-string : optGuide → strM
optNums-to-string : optNums → strM
optType-to-string : optType → strM
maybeCheckType-to-string : optType → strM
lterms-to-string : lterms → strM
arg-to-string : arg → strM
args-to-string : args → strM
binder-to-string : maybeErased → string
opacity-to-string : opacity → string
maybeErased-to-string : maybeErased → string
lam-to-string : maybeErased → string
leftRight-to-string : leftRight → string
vars-to-string : vars → strM
nums-to-string : nums → strM
theta-to-string : theta → strM
arrowtype-to-string : maybeErased → string
maybeMinus-to-string : maybeMinus → string
optPlus-to-string : optPlus → string
optPublic-to-string : optPublic → string
optAs-to-string : optAs → strM
to-string-ed : {ed : exprd} → ⟦ ed ⟧ → strM
to-string-ed{TERM} = term-to-stringh
to-string-ed{TYPE} = type-to-stringh
to-string-ed{KIND} = kind-to-stringh
to-string-ed{LIFTINGTYPE} = liftingType-to-stringh
to-string-ed{TK} = tk-to-stringh
to-string-ed{ARG} = arg-to-string
to-string-ed{QUALIF} q = strEmpty
to-stringh' : {ed : exprd} → expr-side → ⟦ ed ⟧ → strM
to-stringh' {ed} lr t {ed'} s n ts Γ mp lr' =
elim-Σi (to-string-rewrite Γ options t) λ t' →
parens-unless (~ isJust (mp ≫=maybe λ pe → maybe-if (~ no-parens t' pe lr)))
(to-string-ed t') s n ts Γ (just t') lr
where
parens-unless : 𝔹 → strM → strM
parens-unless p s = if p then s else (strAdd "(" ≫str s ≫str strAdd ")")
to-stringl : {ed : exprd} → ⟦ ed ⟧ → strM
to-stringr : {ed : exprd} → ⟦ ed ⟧ → strM
to-stringl = to-stringh' left
to-stringr = to-stringh' right
to-stringh = to-stringh' neither
constructors-to-string DataNull = strEmpty
constructors-to-string (DataCons (DataConst _ x t) ds) =
strAdd " | " ≫str
strAdd x ≫str
strAdd " : " ≫str
type-to-stringh t ≫str
constructors-to-string ds
tk-to-stringh (Tkt T) = to-stringh T
tk-to-stringh (Tkk k) = to-stringh k
term-to-stringh (App t me t') = to-stringl t ≫str strAdd (" " ^ maybeErased-to-string me) ≫str to-stringr t'
term-to-stringh (AppTp t T) = to-stringl t ≫str strAdd " · " ≫str to-stringr T
term-to-stringh (Beta pi ot ot') = strAdd "β" ≫str optTerm-to-string ot " < " " >" ≫str optTerm-to-string ot' " { " " }"
term-to-stringh (Chi pi mT t) = strAdd "χ" ≫str optType-to-string mT ≫str strAdd " - " ≫str to-stringr t
term-to-stringh (Delta pi mT t) = strAdd "δ" ≫str optType-to-string mT ≫str strAdd " - " ≫str to-stringr t
term-to-stringh (Epsilon pi lr m t) = strAdd "ε" ≫str strAdd (leftRight-to-string lr) ≫str strAdd (maybeMinus-to-string m) ≫str to-stringh t
term-to-stringh (Hole pi) = strAdd "●"
term-to-stringh (IotaPair pi t t' og pi') = strAdd "[ " ≫str to-stringh t ≫str strAdd " , " ≫str to-stringh t' ≫str optGuide-to-string og ≫str strAdd " ]"
term-to-stringh (IotaProj t n pi) = to-stringh t ≫str strAdd ("." ^ n)
term-to-stringh (Lam pi l pi' x oc t) = strAdd (lam-to-string l) ≫str strAdd " " ≫str strBvar x (optClass-to-string oc) (strAdd " . " ≫str to-stringr t)
term-to-stringh (Let pi dtT t) with dtT
...| DefTerm pi' x m t' = strAdd "[ " ≫str strBvar x (maybeCheckType-to-string m ≫str strAdd " = " ≫str to-stringh t' ≫str strAdd " ] - ") (to-stringh t)
...| DefType pi' x k t' = strAdd "[ " ≫str strBvar x (strAdd " ◂ " ≫str to-stringh k ≫str strAdd " = " ≫str to-stringh t' ≫str strAdd " ] - ") (to-stringh t)
term-to-stringh (Open pi x t) = strAdd "open " ≫str strVar x ≫str strAdd " - " ≫str to-stringh t
term-to-stringh (Parens pi t pi') = to-stringh t
term-to-stringh (Phi pi eq t t' pi') = strAdd "φ " ≫str to-stringl eq ≫str strAdd " - " ≫str to-stringh t ≫str strAdd " {" ≫str to-stringr t' ≫str strAdd "}"
term-to-stringh (Rho pi op on eq og t) = strAdd "ρ" ≫str strAdd (optPlus-to-string op) ≫str optNums-to-string on ≫str strAdd " " ≫str to-stringl eq ≫str optGuide-to-string og ≫str strAdd " - " ≫str to-stringr t
term-to-stringh (Sigma pi t) = strAdd "ς " ≫str to-stringh t
term-to-stringh (Theta pi theta t lts) = theta-to-string theta ≫str to-stringh t ≫str lterms-to-string lts
term-to-stringh (Var pi x) = strVar x
term-to-stringh (Mu pi x t ot pi' cs pi'') = strAdd "μ " ≫str strBvar x (strAdd " . " ≫str to-stringh t) strEmpty ≫str optType-to-string ot ≫str strAdd "TODO"
term-to-stringh (Mu' pi t ot pi' cs pi'') = strAdd "μ' " ≫str to-stringh t ≫str strAdd " . " ≫str optType-to-string ot ≫str strAdd "TODO"
type-to-stringh (Abs pi b pi' x Tk T) = strAdd (binder-to-string b ^ " ") ≫str strBvar x (strAdd " : " ≫str tk-to-stringh Tk ≫str strAdd " . ") (to-stringh T)
type-to-stringh (Iota pi pi' x T T') = strAdd "ι " ≫str strBvar x (strAdd " : " ≫str to-stringh T ≫str strAdd " . ") (to-stringh T')
type-to-stringh (Lft pi pi' x t lT) = strAdd "↑ " ≫str strBvar x (strAdd " . ") (to-stringh t) ≫str strAdd " : " ≫str to-stringh lT
type-to-stringh (NoSpans T pi) = to-string-ed T
type-to-stringh (TpApp T T') = to-stringl T ≫str strAdd " · " ≫str to-stringr T'
type-to-stringh (TpAppt T t) = to-stringl T ≫str strAdd " " ≫str to-stringr t
type-to-stringh (TpArrow T a T') = to-stringl T ≫str strAdd (arrowtype-to-string a) ≫str to-stringr T'
type-to-stringh (TpEq _ t t' _) = strAdd "{ " ≫str to-stringh (erase-term t) ≫str strAdd " ≃ " ≫str to-stringh (erase-term t') ≫str strAdd " }"
type-to-stringh (TpHole pi) = strAdd "●"
type-to-stringh (TpLambda pi pi' x Tk T) = strAdd "λ " ≫str strBvar x (strAdd " : " ≫str tk-to-stringh Tk ≫str strAdd " . ") (to-stringr T)
type-to-stringh (TpParens pi T pi') = to-stringh T
type-to-stringh (TpVar pi x) = strVar x
type-to-stringh (TpLet pi dtT t) with dtT
...| DefTerm pi' x m t' = strAdd "[ " ≫str strBvar x (maybeCheckType-to-string m ≫str strAdd " = " ≫str to-stringh t' ≫str strAdd " ] - ") (to-stringh t)
...| DefType pi' x k t' = strAdd "[ " ≫str strBvar x (strAdd " ◂ " ≫str to-stringh k ≫str strAdd " = " ≫str to-stringh t' ≫str strAdd " ] - ") (to-stringh t)
kind-to-stringh (KndArrow k k') = to-stringl k ≫str strAdd " ➔ " ≫str to-stringr k'
kind-to-stringh (KndParens pi k pi') = to-stringh k
kind-to-stringh (KndPi pi pi' x Tk k) = strAdd "Π " ≫str strBvar x (strAdd " : " ≫str tk-to-stringh Tk ≫str strAdd " . ") (to-stringh k)
kind-to-stringh (KndTpArrow T k) = to-stringl T ≫str strAdd " ➔ " ≫str to-stringr k
kind-to-stringh (KndVar pi x as) = strVar x ≫str args-to-string as
kind-to-stringh (Star pi) = strAdd "★"
liftingType-to-stringh (LiftArrow lT lT') = to-stringl lT ≫str strAdd " ➔↑ " ≫str to-stringr lT'
liftingType-to-stringh (LiftParens pi lT pi') = strAdd "(" ≫str to-string-ed lT ≫str strAdd ")"
liftingType-to-stringh (LiftPi pi x T lT) = strAdd "Π↑ " ≫str strBvar x (strAdd " : " ≫str to-stringh T ≫str strAdd " . ") (to-stringh lT)
liftingType-to-stringh (LiftStar pi) = strAdd "☆"
liftingType-to-stringh (LiftTpArrow T lT) = to-stringl T ≫str strAdd " ➔↑ " ≫str to-stringr lT
optTerm-to-string NoTerm c1 c2 = strEmpty
optTerm-to-string (SomeTerm t _) c1 c2 = strAdd c1 ≫str to-stringh (erase-term t) ≫str strAdd c2
optClass-to-string NoClass = strEmpty
optClass-to-string (SomeClass Tk) = strAdd " : " ≫str tk-to-stringh Tk
optGuide-to-string NoGuide = strEmpty
optGuide-to-string (Guide pi v T) = strAdd " @ " ≫str strBvar v (strAdd " . ") (to-stringh T)
optType-to-string NoType = strEmpty
optType-to-string (SomeType T) = strAdd " " ≫str to-stringh T
maybeCheckType-to-string NoType = strEmpty
maybeCheckType-to-string (SomeType T) = strAdd " ◂ " ≫str to-stringh T
lterms-to-string (LtermsCons m t ts) = strAdd (" " ^ maybeErased-to-string m) ≫str to-stringh t ≫str lterms-to-string ts
lterms-to-string (LtermsNil _) = strEmpty
arg-to-string (TermArg me t) = strAdd (maybeErased-to-string me) ≫str to-stringh t
arg-to-string (TypeArg T) = strAdd "· " ≫str to-stringh T
args-to-string (ArgsCons t ts) = strAdd " " ≫str arg-to-string t ≫str args-to-string ts
args-to-string ArgsNil = strEmpty
binder-to-string All = "∀"
binder-to-string Pi = "Π"
opacity-to-string OpacOpaque = "opaque "
opacity-to-string OpacTrans = ""
maybeErased-to-string Erased = "-"
maybeErased-to-string NotErased = ""
lam-to-string Erased = "Λ"
lam-to-string NotErased = "λ"
leftRight-to-string Left = "l"
leftRight-to-string Right = "r"
leftRight-to-string Both = ""
vars-to-string (VarsStart v) = strVar v
vars-to-string (VarsNext v vs) = strVar v ≫str strAdd " " ≫str vars-to-string vs
theta-to-string Abstract = strAdd "θ "
theta-to-string AbstractEq = strAdd "θ+ "
theta-to-string (AbstractVars vs) = strAdd "θ<" ≫str vars-to-string vs ≫str strAdd "> "
nums-to-string (NumsStart n) = strAdd n
nums-to-string (NumsNext n ns) = strAdd n ≫str strAdd " " ≫str nums-to-string ns
optNums-to-string NoNums = strEmpty
optNums-to-string (SomeNums ns) = strAdd "<" ≫str nums-to-string ns ≫str strAdd ">"
arrowtype-to-string NotErased = " ➔ "
arrowtype-to-string Erased = " ➾ "
maybeMinus-to-string EpsHnf = ""
maybeMinus-to-string EpsHanf = "-"
optPlus-to-string RhoPlain = ""
optPlus-to-string RhoPlus = "+"
optPublic-to-string NotPublic = ""
optPublic-to-string IsPublic = "public "
optAs-to-string NoOptAs = strEmpty
optAs-to-string (SomeOptAs _ x) = strAdd " as " ≫str strAdd x
braceL : maybeErased → string
braceL Erased = "{"
braceL NotErased = "("
braceR : maybeErased → string
braceR Erased = "}"
braceR NotErased = ")"
param-to-string : decl → strM → strM
param-to-string (Decl _ pi me v atk _) f =
strAdd (braceL me) ≫str
strAdd (unqual-local v) ≫str
strAdd " : " ≫str
tk-to-stringh atk ≫str
strAdd (braceR me) ≫str
strΓ' localScope v f
params-to-string' f ParamsNil = f
params-to-string' f (ParamsCons p ParamsNil) = param-to-string p f
params-to-string' f (ParamsCons p ps) = param-to-string p (strAdd " " ≫str params-to-string' f ps)
params-to-string = params-to-string' strEmpty
file-to-string (File _ is _ _ mn ps cs _) =
cmds-to-string (imps-to-cmds is)
(strAdd "module " ≫str
strAdd mn ≫str
strAdd " " ≫str
params-to-string'
(strAdd "." ≫str strAdd "\n" ≫str
cmds-to-string cs strEmpty) ps)
cmds-to-string CmdsStart f = f
cmds-to-string (CmdsNext c cs) f =
strAdd "\n" ≫str
cmd-to-string c
(strAdd "\n" ≫str
cmds-to-string cs f)
cmd-to-string (DefTermOrType op (DefTerm pi x mcT t) _) f =
strM-Γ λ Γ →
let ps = ctxt-get-current-params Γ in
strAdd (opacity-to-string op) ≫str
strAdd x ≫str
maybeCheckType-to-string (case mcT of λ where
NoType → NoType
(SomeType T) → SomeType (abs-expand-type ps T)) ≫str
strAdd " = " ≫str
to-stringh (lam-expand-term ps t) ≫str
strAdd " ." ≫str
strΓ' globalScope x f
cmd-to-string (DefTermOrType op (DefType pi x k T) _) f =
strM-Γ λ Γ →
let ps = ctxt-get-current-params Γ in
strAdd (opacity-to-string op) ≫str
strAdd x ≫str
strAdd " ◂ " ≫str
to-stringh (abs-expand-kind ps k) ≫str
strAdd " = " ≫str
to-stringh (lam-expand-type ps T) ≫str
strAdd " ." ≫str
strΓ' globalScope x f
cmd-to-string (DefKind pi x ps k _) f =
strM-Γ λ Γ →
let ps' = ctxt-get-current-params Γ in
strAdd x ≫str
params-to-string (append-params ps' ps) ≫str
strAdd " = " ≫str
to-stringh k ≫str
strAdd " ." ≫str
strΓ' globalScope x f
cmd-to-string (ImportCmd (Import _ op _ fn oa as _)) f =
strAdd "import " ≫str
strAdd (optPublic-to-string op) ≫str
strAdd fn ≫str
optAs-to-string oa ≫str
args-to-string as ≫str
strAdd " ." ≫str
f
cmd-to-string (DefDatatype (Datatype pi pix x ps k cs pi') pi'') f =
strAdd "data " ≫str
strAdd x ≫str
strAdd " " ≫str
params-to-string ps ≫str
strAdd " : " ≫str
kind-to-stringh k ≫str
strAdd " = " ≫str
constructors-to-string cs ≫str
strΓ' globalScope x f
strRun : ctxt → strM → rope
strRun Γ m = fst (m {TERM} [[]] 0 [] Γ nothing neither)
strRunTag : (name : string) → ctxt → strM → tagged-val
strRunTag name Γ m with m {TERM} [[]] 0 [] Γ nothing neither
...| s , n , ts = name , s , ts
to-string-tag : {ed : exprd} → string → ctxt → ⟦ ed ⟧ → tagged-val
to-string-tag name Γ t = strRunTag name Γ
(to-stringh
(if cedille-options.options.erase-types options
then erase t
else t))
to-string : {ed : exprd} → ctxt → ⟦ ed ⟧ → rope
to-string Γ t = strRun Γ (to-stringh t)
tk-to-string : ctxt → tk → rope
tk-to-string Γ atk = strRun Γ (tk-to-stringh atk)
params-to-string-tag : string → ctxt → params → tagged-val
params-to-string-tag name Γ ps = strRunTag name Γ (params-to-string ps)
|
Task/Zig-zag-matrix/AppleScript/zig-zag-matrix-1.applescript | LaudateCorpus1/RosettaCodeData | 1 | 119 | set n to 5 -- Size of zig-zag matrix (n^2 cells).
-- Create an empty matrix.
set m to {}
repeat with i from 1 to n
set R to {}
repeat with j from 1 to n
set end of R to 0
end repeat
set end of m to R
end repeat
-- Populate the matrix in a zig-zag manner.
set {x, y, v, d} to {1, 1, 0, 1}
repeat while v < (n ^ 2)
if 1 ≤ x and x ≤ n and 1 ≤ y and y ≤ n then
set {m's item y's item x, x, y, v} to {v, x + d, y - d, v + 1}
else if x > n then
set {x, y, d} to {n, y + 2, -d}
else if y > n then
set {x, y, d} to {x + 2, n, -d}
else if x < 1 then
set {x, y, d} to {1, y, -d}
else if y < 1 then
set {x, y, d} to {x, 1, -d}
end if
end repeat
--> R = {{0, 1, 5, 6, 14}, {2, 4, 7, 13, 15}, {3, 8, 12, 16, 21}, {9, 11, 17, 20, 22}, {10, 18, 19, 23, 24}}
-- Reformat the matrix into a table for viewing.
repeat with i in m
repeat with j in i
set j's contents to (characters -(length of (n ^ 2 as string)) thru -1 of (" " & j)) as string
end repeat
set end of i to return
end repeat
return return & m as string
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_18180_1180.asm | ljhsiun2/medusa | 9 | 246894 | <filename>Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_18180_1180.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xe86f, %rsi
lea addresses_A_ht+0x1006f, %rdi
nop
nop
sub $63668, %rdx
mov $54, %rcx
rep movsb
nop
nop
nop
cmp $9352, %r15
lea addresses_WT_ht+0x1a71d, %rsi
lea addresses_UC_ht+0x1b55b, %rdi
clflush (%rsi)
nop
nop
nop
nop
and %r8, %r8
mov $44, %rcx
rep movsb
nop
sub %rdi, %rdi
lea addresses_D_ht+0x1770f, %rsi
lea addresses_A_ht+0x4247, %rdi
nop
and $37971, %rbp
mov $38, %rcx
rep movsq
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_WT_ht+0x1206f, %rsi
lea addresses_WT_ht+0xf4ef, %rdi
nop
nop
nop
nop
inc %r9
mov $48, %rcx
rep movsw
nop
nop
nop
nop
sub $40795, %rcx
lea addresses_UC_ht+0xb56f, %r9
sub %rcx, %rcx
mov (%r9), %rsi
nop
nop
xor %rdi, %rdi
lea addresses_normal_ht+0xe8f7, %rdx
nop
nop
nop
xor %rcx, %rcx
mov (%rdx), %rdi
nop
xor %rbp, %rbp
lea addresses_WT_ht+0x1a50f, %rsi
lea addresses_D_ht+0x624f, %rdi
nop
xor $39663, %r15
mov $83, %rcx
rep movsw
nop
nop
xor $18669, %rcx
lea addresses_D_ht+0x1106f, %r15
nop
nop
nop
nop
dec %r8
movw $0x6162, (%r15)
nop
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_D_ht+0x9713, %rsi
nop
nop
nop
nop
nop
and %r15, %r15
mov $0x6162636465666768, %rdx
movq %rdx, %xmm4
movups %xmm4, (%rsi)
nop
nop
xor %rsi, %rsi
lea addresses_A_ht+0x546f, %rsi
lea addresses_UC_ht+0x1946f, %rdi
nop
nop
nop
nop
sub %r15, %r15
mov $106, %rcx
rep movsq
nop
dec %r8
lea addresses_WT_ht+0x1eb93, %rsi
lea addresses_A_ht+0x1dc7, %rdi
nop
nop
nop
add %r8, %r8
mov $90, %rcx
rep movsq
nop
nop
nop
nop
cmp %r15, %r15
lea addresses_normal_ht+0x1d10f, %r8
nop
nop
nop
nop
sub %rcx, %rcx
mov (%r8), %di
add $56222, %rcx
lea addresses_WT_ht+0x1646f, %rbp
dec %rcx
mov $0x6162636465666768, %rdx
movq %rdx, %xmm0
vmovups %ymm0, (%rbp)
inc %r8
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r8
push %rax
push %rbp
push %rbx
push %rdx
// Store
lea addresses_RW+0x1fa9f, %rax
nop
nop
nop
nop
nop
xor $44723, %r8
mov $0x5152535455565758, %rdx
movq %rdx, (%rax)
nop
nop
xor $27287, %r8
// Store
lea addresses_A+0xc747, %r10
nop
nop
nop
xor %rbp, %rbp
movl $0x51525354, (%r10)
nop
nop
nop
nop
add $56769, %rbx
// Load
lea addresses_A+0x9b6f, %rdx
nop
nop
xor %r12, %r12
movb (%rdx), %bl
nop
nop
nop
nop
xor $8035, %r8
// Load
lea addresses_D+0xf790, %r8
nop
cmp $26038, %rbx
movb (%r8), %al
nop
sub %rdx, %rdx
// Load
lea addresses_RW+0x6c6f, %r12
nop
add $39828, %rbp
mov (%r12), %r10
nop
nop
nop
nop
xor $52426, %r8
// Store
lea addresses_WC+0xa46f, %rbp
clflush (%rbp)
nop
nop
nop
nop
inc %r8
mov $0x5152535455565758, %rax
movq %rax, %xmm2
vmovups %ymm2, (%rbp)
nop
nop
add %rbx, %rbx
// Store
mov $0xef533000000076f, %rbx
sub $27695, %rbp
movw $0x5152, (%rbx)
nop
nop
nop
inc %r10
// Faulty Load
lea addresses_RW+0x6c6f, %rbx
nop
inc %r10
vmovups (%rbx), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %r12
lea oracles, %rbx
and $0xff, %r12
shlq $12, %r12
mov (%rbx,%r12,1), %r12
pop %rdx
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 4, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7, 'same': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_D'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5, 'same': False, 'type': 'addresses_NC'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5, 'same': True, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 5, 'same': True, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'32': 18180}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
src/fot/FOTC/Program/GCD/Total/ConversionRulesI.agda | asr/fotc | 11 | 11624 | ------------------------------------------------------------------------------
-- Conversion rules for the greatest common divisor
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# OPTIONS --without-K #-}
module FOTC.Program.GCD.Total.ConversionRulesI where
open import Common.FOL.Relation.Binary.EqReasoning
open import FOTC.Base
open import FOTC.Data.Nat
open import FOTC.Data.Nat.Inequalities
open import FOTC.Program.GCD.Total.GCD
------------------------------------------------------------------------------
private
-- Before to prove some properties for the gcd it is convenient to
-- descompose the behavior of the function step by step.
-- Initially, we define the possible states (gcd-s₁, gcd-s₂,
-- ...). Then we write down the proof for the execution step from
-- the state p to the state q, e.g.
--
-- proof₂₋₃ : ∀ m n → gcd-s₂ m n → gcd-s₃ m n.
-- The functions gcd-00, gcd-S0, gcd-0S, gcd-Sm>Sn and gcd-Sm≯Sn
-- show the use of the states gcd-s₁, gcd-s₂, ..., and the proofs
-- associated with the execution steps.
----------------------------------------------------------------------------
-- The steps
-- Initially, the equation gcd-eq is used.
gcd-s₁ : D → D → D
gcd-s₁ m n = if (iszero₁ n)
then m
else (if (iszero₁ m)
then n
else (if (gt m n)
then gcd (m ∸ n) n
else gcd m (n ∸ m)))
-- First if_then_else_ (iszero₁ n).
gcd-s₂ : D → D → D → D
gcd-s₂ m n b = if b
then m
else (if (iszero₁ m)
then n
else (if (gt m n)
then gcd (m ∸ n) n
else gcd m (n ∸ m)))
-- First if_then_else_ when iszero₁ n = true.
gcd-s₃ : D → D
gcd-s₃ m = m
-- First if_then_else_ when iszero₁ n = false.
gcd-s₄ : D → D → D
gcd-s₄ m n = if (iszero₁ m)
then n
else (if (gt m n) then gcd (m ∸ n) n else gcd m (n ∸ m))
-- Second if_then_else_ (iszero₁ m).
gcd-s₈ : D → D → D → D
gcd-s₈ m n b = if b
then n
else (if (gt m n) then gcd (m ∸ n) n else gcd m (n ∸ m))
-- Second if_then_else_, when iszero₁ m = true.
gcd-s₉ : D → D
gcd-s₉ n = n
-- Second if_then_else_, when iszero₁ m = false.
gcd-s₁₀ : D → D → D
gcd-s₁₀ m n = if (gt m n) then gcd (m ∸ n) n else gcd m (n ∸ m)
-- Third if_then_else_ (gt m n).
gcd-s₁₁ : D → D → D → D
gcd-s₁₁ m n b = if b then gcd (m ∸ n) n else gcd m (n ∸ m)
-- Third if_then_else_ when gt m n = true.
gcd-s₁₂ : D → D → D
gcd-s₁₂ m n = gcd (m ∸ n) n
-- Fourth if_then_else_ when gt m n = false.
gcd-s₁₃ : D → D → D
gcd-s₁₃ m n = gcd m (n ∸ m)
----------------------------------------------------------------------------
-- The execution steps
{-
To prove the execution steps, e.g.
proof₃₋₄ : ∀ m n → gcd-s₃ m n → gcd_s₄ m n)
we usually need to prove that
C [m] ≡ C [n] (1)
given that
m ≡ n, (2)
where (2) is a conversion rule usually.
We prove (1) using
subst : ∀ {x y} (D : A → Set) → x ≡ y → P x → P y
where
• P is given by λ m → C [m ] ≡ C [n],
• x ≡ y is given n ≡ m (actually, we use sym (m ≡ n)) and
• P x is given by C [n] ≡ C [n] (i.e. refl).
-}
proof₀₋₁ : ∀ m n → gcd m n ≡ gcd-s₁ m n
proof₀₋₁ = gcd-eq
-- 25 April 2014. Failed with Andreas' --without-K.
proof₁₋₂ : ∀ m n b → iszero₁ n ≡ b → gcd-s₁ m n ≡ gcd-s₂ m n b
proof₁₋₂ m n .(iszero₁ n) refl = refl
proof₂₋₃ : ∀ m n → gcd-s₂ m n true ≡ gcd-s₃ m
proof₂₋₃ m _ = if-true (gcd-s₃ m)
proof₂₋₄ : ∀ m n → gcd-s₂ m n false ≡ gcd-s₄ m n
proof₂₋₄ m n = if-false (gcd-s₄ m n)
proof₄₋₈ : ∀ m n b → iszero₁ m ≡ b → gcd-s₄ m n ≡ gcd-s₈ m n b
proof₄₋₈ m n .(iszero₁ m) refl = refl
proof₈₋₉ : ∀ m n → gcd-s₈ m n true ≡ gcd-s₉ n
proof₈₋₉ _ n = if-true n
proof₈₋₁₀ : ∀ m n → gcd-s₈ m n false ≡ gcd-s₁₀ m n
proof₈₋₁₀ m n = if-false (gcd-s₁₀ m n)
proof₁₀₋₁₁ : ∀ m n b → gt m n ≡ b → gcd-s₁₀ m n ≡ gcd-s₁₁ m n b
proof₁₀₋₁₁ m n .(lt n m) refl = refl
proof₁₁₋₁₂ : ∀ m n → gcd-s₁₁ m n true ≡ gcd-s₁₂ m n
proof₁₁₋₁₂ m n = if-true (gcd (m ∸ n) n)
proof₁₁₋₁₃ : ∀ m n → gcd-s₁₁ m n false ≡ gcd-s₁₃ m n
proof₁₁₋₁₃ m n = if-false (gcd m (n ∸ m))
------------------------------------------------------------------------------
-- The five equations for gcd
-- First equation.
gcd-00 : gcd zero zero ≡ zero
gcd-00 =
gcd zero zero ≡⟨ proof₀₋₁ zero zero ⟩
gcd-s₁ zero zero ≡⟨ proof₁₋₂ zero zero true iszero-0 ⟩
gcd-s₂ zero zero true ≡⟨ proof₂₋₃ zero zero ⟩
zero ∎
-- Second equation.
gcd-S0 : ∀ n → gcd (succ₁ n) zero ≡ succ₁ n
gcd-S0 n =
gcd (succ₁ n) zero ≡⟨ proof₀₋₁ (succ₁ n) zero ⟩
gcd-s₁ (succ₁ n) zero ≡⟨ proof₁₋₂ (succ₁ n) zero true iszero-0 ⟩
gcd-s₂ (succ₁ n) zero true ≡⟨ proof₂₋₃ (succ₁ n) zero ⟩
succ₁ n ∎
-- Third equation.
gcd-0S : ∀ n → gcd zero (succ₁ n) ≡ succ₁ n
gcd-0S n =
gcd zero (succ₁ n) ≡⟨ proof₀₋₁ zero (succ₁ n) ⟩
gcd-s₁ zero (succ₁ n) ≡⟨ proof₁₋₂ zero (succ₁ n) false (iszero-S n) ⟩
gcd-s₂ zero (succ₁ n) false ≡⟨ proof₂₋₄ zero (succ₁ n) ⟩
gcd-s₄ zero (succ₁ n) ≡⟨ proof₄₋₈ zero (succ₁ n) true iszero-0 ⟩
gcd-s₈ zero (succ₁ n) true ≡⟨ proof₈₋₉ zero (succ₁ n) ⟩
succ₁ n ∎
-- Fourth equation.
gcd-S>S : ∀ m n → succ₁ m > succ₁ n →
gcd (succ₁ m) (succ₁ n) ≡ gcd (succ₁ m ∸ succ₁ n) (succ₁ n)
gcd-S>S m n Sm>Sn =
gcd (succ₁ m) (succ₁ n) ≡⟨ proof₀₋₁ (succ₁ m) (succ₁ n) ⟩
gcd-s₁ (succ₁ m) (succ₁ n) ≡⟨ proof₁₋₂ (succ₁ m) (succ₁ n) false (iszero-S n) ⟩
gcd-s₂ (succ₁ m) (succ₁ n) false ≡⟨ proof₂₋₄ (succ₁ m) (succ₁ n) ⟩
gcd-s₄ (succ₁ m) (succ₁ n) ≡⟨ proof₄₋₈ (succ₁ m) (succ₁ n) false (iszero-S m) ⟩
gcd-s₈ (succ₁ m) (succ₁ n) false ≡⟨ proof₈₋₁₀ (succ₁ m) (succ₁ n) ⟩
gcd-s₁₀ (succ₁ m) (succ₁ n) ≡⟨ proof₁₀₋₁₁ (succ₁ m) (succ₁ n) true Sm>Sn ⟩
gcd-s₁₁ (succ₁ m) (succ₁ n) true ≡⟨ proof₁₁₋₁₂ (succ₁ m) (succ₁ n) ⟩
gcd (succ₁ m ∸ succ₁ n) (succ₁ n) ∎
-- Fifth equation.
gcd-S≯S : ∀ m n → succ₁ m ≯ succ₁ n →
gcd (succ₁ m) (succ₁ n) ≡ gcd (succ₁ m) (succ₁ n ∸ succ₁ m)
gcd-S≯S m n Sm≯Sn =
gcd (succ₁ m) (succ₁ n) ≡⟨ proof₀₋₁ (succ₁ m) (succ₁ n) ⟩
gcd-s₁ (succ₁ m) (succ₁ n) ≡⟨ proof₁₋₂ (succ₁ m) (succ₁ n) false (iszero-S n) ⟩
gcd-s₂ (succ₁ m) (succ₁ n) false ≡⟨ proof₂₋₄ (succ₁ m) (succ₁ n) ⟩
gcd-s₄ (succ₁ m) (succ₁ n) ≡⟨ proof₄₋₈ (succ₁ m) (succ₁ n) false (iszero-S m) ⟩
gcd-s₈ (succ₁ m) (succ₁ n) false ≡⟨ proof₈₋₁₀ (succ₁ m) (succ₁ n) ⟩
gcd-s₁₀ (succ₁ m) (succ₁ n) ≡⟨ proof₁₀₋₁₁ (succ₁ m) (succ₁ n) false Sm≯Sn ⟩
gcd-s₁₁ (succ₁ m) (succ₁ n) false ≡⟨ proof₁₁₋₁₃ (succ₁ m) (succ₁ n) ⟩
gcd (succ₁ m) (succ₁ n ∸ succ₁ m) ∎
|
apple_scripts/get_current_state.applescript | timtyrrell/tmux-spotify-controls | 74 | 2943 | if (get running of application "Spotify") then
tell application "Spotify"
set track_info to ""
set track_info to track_info & repeating & "\n"
set track_info to track_info & shuffling & "\n"
set track_info to track_info & artist of current track & " \n"
set track_info to track_info & name of current track & "\n"
set track_info to track_info & album of current track & "\n"
set track_info to track_info & id of current track & "\n"
return track_info
end tell
else
return ""
end if
|
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstparamspecs_h.ads | persan/A-gst | 1 | 8778 | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
-- with GStreamer.GST_Low_Level.glib_2_0_gobject_gparam_h;
with glib;
with glib.Values;
with System;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstparamspecs_h is
-- unsupported macro: GST_PARAM_CONTROLLABLE (1 << (G_PARAM_USER_SHIFT + 1))
-- unsupported macro: GST_PARAM_MUTABLE_READY (1 << (G_PARAM_USER_SHIFT + 2))
-- unsupported macro: GST_PARAM_MUTABLE_PAUSED (1 << (G_PARAM_USER_SHIFT + 3))
-- unsupported macro: GST_PARAM_MUTABLE_PLAYING (1 << (G_PARAM_USER_SHIFT + 4))
-- unsupported macro: GST_PARAM_USER_SHIFT (1 << (G_PARAM_USER_SHIFT + 8))
-- unsupported macro: GST_TYPE_PARAM_FRACTION (gst_param_spec_fraction_get_type ())
-- arg-macro: function GST_IS_PARAM_SPEC_FRACTION (pspec)
-- return G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GST_TYPE_PARAM_FRACTION);
-- arg-macro: function GST_PARAM_SPEC_FRACTION (pspec)
-- return G_TYPE_CHECK_INSTANCE_CAST ((pspec), GST_TYPE_PARAM_FRACTION, GstParamSpecFraction);
-- GStreamer - GParamSpecs for some of our types
-- * Copyright (C) 2007 <NAME> <tim centricular net>
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library 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
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- * Boston, MA 02111-1307, USA.
--
-- --- paramspec flags
--*
-- * GST_PARAM_CONTROLLABLE:
-- *
-- * Use this flag on GObject properties to signal they can make sense to be.
-- * controlled over time. This hint is used by the GstController.
--
--*
-- * GST_PARAM_MUTABLE_READY:
-- *
-- * Use this flag on GObject properties of GstElements to indicate that
-- * they can be changed when the element is in the READY or lower state.
-- *
-- * Since: 0.10.23
--
--*
-- * GST_PARAM_MUTABLE_PAUSED:
-- *
-- * Use this flag on GObject properties of GstElements to indicate that
-- * they can be changed when the element is in the PAUSED or lower state.
-- * This flag implies GST_PARAM_MUTABLE_READY.
-- *
-- * Since: 0.10.23
--
--*
-- * GST_PARAM_MUTABLE_PLAYING:
-- *
-- * Use this flag on GObject properties of GstElements to indicate that
-- * they can be changed when the element is in the PLAYING or lower state.
-- * This flag implies GST_PARAM_MUTABLE_PAUSED.
-- *
-- * Since: 0.10.23
--
--*
-- * GST_PARAM_USER_SHIFT:
-- *
-- * Bits based on GST_PARAM_USER_SHIFT can be used by 3rd party applications.
--
-- --- type macros ---
-- --- get_type functions ---
function gst_param_spec_fraction_get_type return GLIB.GType; -- gst/gstparamspecs.h:86
pragma Import (C, gst_param_spec_fraction_get_type, "gst_param_spec_fraction_get_type");
-- --- typedefs & structures ---
type GstParamSpecFraction;
--subtype GstParamSpecFraction is u_GstParamSpecFraction; -- gst/gstparamspecs.h:91
--*
-- * GstParamSpecFraction:
-- * @parent_instance: super class
-- * @min_num: minimal numerator
-- * @min_den: minimal denominator
-- * @max_num: maximal numerator
-- * @max_den: maximal denominator
-- * @def_num: default numerator
-- * @def_den: default denominator
-- *
-- * A GParamSpec derived structure that contains the meta data for fractional
-- * properties.
--
type GstParamSpecFraction is record
parent_instance : aliased GStreamer.GST_Low_Level.glib_2_0_gobject_gparam_h.GParamSpec; -- gst/gstparamspecs.h:107
min_num : aliased GLIB.gint; -- gst/gstparamspecs.h:109
min_den : aliased GLIB.gint; -- gst/gstparamspecs.h:109
max_num : aliased GLIB.gint; -- gst/gstparamspecs.h:110
max_den : aliased GLIB.gint; -- gst/gstparamspecs.h:110
def_num : aliased GLIB.gint; -- gst/gstparamspecs.h:111
def_den : aliased GLIB.gint; -- gst/gstparamspecs.h:111
end record;
pragma Convention (C_Pass_By_Copy, GstParamSpecFraction); -- gst/gstparamspecs.h:106
-- --- GParamSpec prototypes ---
function gst_param_spec_fraction
(name : access GLIB.gchar;
nick : access GLIB.gchar;
blurb : access GLIB.gchar;
min_num : GLIB.gint;
min_denom : GLIB.gint;
max_num : GLIB.gint;
max_denom : GLIB.gint;
default_num : GLIB.gint;
default_denom : GLIB.gint;
flags : GStreamer.GST_Low_Level.glib_2_0_gobject_gparam_h.GParamFlags) return access GStreamer.GST_Low_Level.glib_2_0_gobject_gparam_h.GParamSpec; -- gst/gstparamspecs.h:117
pragma Import (C, gst_param_spec_fraction, "gst_param_spec_fraction");
end GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstparamspecs_h;
|
Structure/Operator/Monoid/Monoids/Coset.agda | Lolirofle/stuff-in-agda | 6 | 3140 | <gh_stars>1-10
module Structure.Operator.Monoid.Monoids.Coset where
open import Functional
open import Function.Equals
open import Function.Equals.Proofs
import Lvl
open import Logic
open import Logic.Predicate
open import Logic.Predicate.Equiv
open import Sets.PredicateSet renaming (_≡_ to _≡ₛ_)
open import Structure.Function
open import Structure.Function.Domain
open import Structure.Function.Domain.Proofs
open import Structure.Function.Multi
open import Structure.Operator.Monoid
open import Structure.Operator.Monoid.Homomorphism
open import Structure.Operator.Monoid.Monoids.Function
open import Structure.Operator.Monoid.Submonoid
open import Structure.Operator.Properties
open import Structure.Operator
open import Structure.Relator.Properties
open import Structure.Setoid renaming (_≡_ to _≡ₑ_)
open import Syntax.Transitivity
open import Type
private variable ℓ ℓₑ : Lvl.Level
private variable T : Type{ℓ}
module _ ⦃ equiv : Equiv{ℓₑ}(T) ⦄ ⦃ function : ∀{f : T → T} → Function(f) ⦄ {_▫_ : T → T → T} (monoid : Monoid(_▫_)) where
cosetₗ-submonoid : Submonoid(function-monoid)(⊶(_▫_))
Submonoid.contains-identity cosetₗ-submonoid = [∃]-intro (_) ⦃ intro(identityₗ(_▫_)(_)) ⦄
Submonoid.operator-closure cosetₗ-submonoid {f}{g} ⦃ [∃]-intro a ⦃ pa ⦄ ⦄ ⦃ [∃]-intro b ⦃ pb ⦄ ⦄ =
[∃]-intro (a ▫ b) ⦃ intro (\{x} →
((a ▫ b) ▫ x) 🝖[ _≡ₑ_ ]-[ associativity(_▫_) ]
(a ▫ (b ▫ x)) 🝖[ _≡ₑ_ ]-[ _⊜_.proof pa ]
f(b ▫ x) 🝖[ _≡ₑ_ ]-[ congruence₁(f) (_⊜_.proof pb) ]
f(g(x)) 🝖[ _≡ₑ_ ]-[]
(f ∘ g)(x) 🝖-end
) ⦄
cosetᵣ-submonoid : Submonoid(function-monoid)(⊶(swap(_▫_)))
Submonoid.contains-identity cosetᵣ-submonoid = [∃]-intro (_) ⦃ intro(identityᵣ(_▫_)(_)) ⦄
Submonoid.operator-closure cosetᵣ-submonoid {f}{g} ⦃ [∃]-intro a ⦃ pa ⦄ ⦄ ⦃ [∃]-intro b ⦃ pb ⦄ ⦄ =
[∃]-intro (b ▫ a) ⦃ intro (\{x} →
(x ▫ (b ▫ a)) 🝖[ _≡ₑ_ ]-[ associativity(_▫_) ]-sym
((x ▫ b) ▫ a) 🝖[ _≡ₑ_ ]-[ _⊜_.proof pa ]
f(x ▫ b) 🝖[ _≡ₑ_ ]-[ congruence₁(f) (_⊜_.proof pb) ]
f(g(x)) 🝖[ _≡ₑ_ ]-[]
(f ∘ g)(x) 🝖-end
) ⦄
cosetₗ-homomorphism : ∃(Homomorphism monoid (Submonoid.monoid cosetₗ-submonoid))
∃.witness cosetₗ-homomorphism a = [∃]-intro (a ▫_) ⦃ [∃]-intro a ⦃ reflexivity(_≡ₑ_) {a ▫_} ⦄ ⦄
_⊜_.proof (Function.congruence (Homomorphism.function (∃.proof cosetₗ-homomorphism)) ab) {x} = congruence₂ₗ(_▫_)(x) ab
_⊜_.proof (Preserving.proof (Homomorphism.preserve-op (∃.proof cosetₗ-homomorphism)) {x}) = associativity(_▫_)
_⊜_.proof (Preserving.proof (Homomorphism.preserve-id (∃.proof cosetₗ-homomorphism))) {x} = identityₗ(_▫_)(_)
instance
cosetₗ-surjective : Surjective([∃]-witness cosetₗ-homomorphism)
Surjective.proof cosetₗ-surjective {[∃]-intro f ⦃ pf ⦄} = pf
instance
cosetₗ-injective : Injective([∃]-witness cosetₗ-homomorphism)
Injective.proof cosetₗ-injective {x} {y} (intro xy) =
x 🝖[ _≡ₑ_ ]-[ identityᵣ(_▫_)(_) ]-sym
x ▫ Monoid.id monoid 🝖[ _≡ₑ_ ]-[ xy {Monoid.id monoid} ]
y ▫ Monoid.id monoid 🝖[ _≡ₑ_ ]-[ identityᵣ(_▫_)(_) ]
y 🝖-end
instance
cosetₗ-bijective : Bijective([∃]-witness cosetₗ-homomorphism)
cosetₗ-bijective = injective-surjective-to-bijective([∃]-witness cosetₗ-homomorphism)
{-
cosetᵣ-homomorphism : ∃(Homomorphism monoid (Submonoid.monoid cosetᵣ-submonoid))
∃.witness cosetᵣ-homomorphism a = [∃]-intro (_▫ a) ⦃ [∃]-intro a ⦃ reflexivity(_≡ₑ_) {_▫ a} ⦄ ⦄
_⊜_.proof (Function.congruence (Homomorphism.function (∃.proof cosetᵣ-homomorphism)) ab) {x} = congruence₂ᵣ(_▫_)(x) ab
_⊜_.proof (Preserving.proof (Homomorphism.preserve-op (∃.proof cosetᵣ-homomorphism)) {a} {b}) {x} =
(x ▫ (a ▫ b)) 🝖[ _≡ₑ_ ]-[ {!!} ]
((x ▫ b) ▫ a) 🝖-end
_⊜_.proof (Preserving.proof (Homomorphism.preserve-id (∃.proof cosetᵣ-homomorphism))) {x} = identityᵣ(_▫_)(_)
-}
|
oeis/065/A065230.asm | neoneye/loda-programs | 11 | 86398 | <gh_stars>10-100
; A065230: Fill a triangular array by rows by writing numbers 1 up to b(0), 1 up to b(1), etc., where b(n) are the hexagonal numbers. The first elements of the rows form a(n).
; 1,1,3,6,4,9,15,7,15,24,6,17,29,42,11,26,42,59,11,30,50,71,2,25,49,74,100,7,35,64,94,125,4,37,71,106,142,179,27,66,106,147,189,1,45,90,136,183,231,4,54,105,157,210,264,319,50,107,165,224,284,345,29,92,156,221
lpb $0
add $2,$0
sub $0,1
lpe
mov $1,1
lpb $2
add $3,$1
add $1,4
sub $2,$3
lpe
mov $0,$2
add $0,1
|
oeis/190/A190869.asm | neoneye/loda-programs | 11 | 90146 | ; A190869: a(n) = 10*a(n-1) - 2*a(n-2), a(0)=0, a(1)=1.
; Submitted by <NAME>(s2)
; 0,1,10,98,960,9404,92120,902392,8839680,86592016,848240800,8309223968,81395758080,797339132864,7810599812480,76511319859072,749491998965760,7341897349939456,71919989501463040,704516100314751488,6901321024144588800,67604178040816385024,662239138359874672640,6487183027517113956352,63547351998451390218240,622499153929479674269696,6097896835297893962260480,59733970045119980274065408,585143906780604014816133120,5731971127715800187613200384,56149423463596793846499737600,550030292380536338089770975232
mul $0,4
lpb $0
sub $0,4
add $1,$2
add $1,$2
add $1,$2
add $2,$1
add $1,$2
add $1,1
mul $2,2
add $2,1
lpe
mov $0,$1
|
third_party/virtualbox/src/VBox/HostDrivers/Support/SUPLibTracerA.asm | Fimbure/icebox-1 | 521 | 97173 | <filename>third_party/virtualbox/src/VBox/HostDrivers/Support/SUPLibTracerA.asm
; $Id: SUPLibTracerA.asm $
;; @file
; VirtualBox Support Library - Tracer Interface, Assembly bits.
;
;
; Copyright (C) 2012-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it under the terms of the GNU
; General Public License (GPL) as published by the Free Software
; Foundation, in version 2 as it comes in the "COPYING" file of the
; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
;
; The contents of this file may alternatively be used under the terms
; of the Common Development and Distribution License Version 1.0
; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
; VirtualBox OSE distribution, in which case the provisions of the
; CDDL are applicable instead of those of the GPL.
;
; You may elect to license modified versions of this file under the
; terms and conditions of either the GPL or the CDDL or both.
;
;*******************************************************************************
;* Header Files *
;*******************************************************************************
%include "iprt/asmdefs.mac"
%include "VBox/sup.mac"
; This should go into asmdefs.mac
%ifdef PIC
%ifdef ASM_FORMAT_ELF
%define RT_ASM_USE_GOT
%define RT_ASM_USE_PLT
%endif
%endif
;*******************************************************************************
;* Structures and Typedefs *
;*******************************************************************************
struc SUPREQHDR
.u32Cookie resd 1
.u32SessionCookie resd 1
.cbIn resd 1
.cbOut resd 1
.fFlags resd 1
.rc resd 1
endstruc
struc SUPTRACERUMODFIREPROBE
.Hdr resb SUPREQHDR_size
.In resb SUPDRVTRACERUSRCTX64_size
endstruc
extern NAME(suplibTracerFireProbe)
BEGINCODE
;;
; Set up a SUPTRACERUMODFIREPROBE request package on the stack and a C helper
; function in SUPLib.cpp to do the rest.
;
EXPORTEDNAME SUPTracerFireProbe
push xBP
mov xBP, xSP
;
; Allocate package and set the sizes (the helper does the rest of
; the header). Setting the sizes here allows the helper to verify our
; idea of the request sizes.
;
lea xSP, [xBP - SUPTRACERUMODFIREPROBE_size - 8]
mov dword [xSP + SUPTRACERUMODFIREPROBE.Hdr + SUPREQHDR.cbIn], SUPTRACERUMODFIREPROBE_size
mov dword [xSP + SUPTRACERUMODFIREPROBE.Hdr + SUPREQHDR.cbOut], SUPREQHDR_size
%ifdef RT_ARCH_AMD64
;
; Save the AMD64 context.
;
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.rax], rax
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.rcx], rcx
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.rdx], rdx
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.rbx], rbx
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.rsi], rsi
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.rdi], rdi
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.r8 ], r8
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.r9 ], r9
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.r10], r10
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.r11], r11
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.r12], r12
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.r13], r13
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.r14], r14
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.r15], r15
pushf
pop xAX
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.rflags], xAX
mov xAX, [xBP + xCB]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.rip], xAX
mov xAX, [xBP]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.rbp], xAX
lea xAX, [xBP + xCB*2]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.rsp], xAX
%ifdef ASM_CALL64_MSC
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.uVtgProbeLoc], rcx
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*0], rdx
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*1], r8
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*2], r9
mov xAX, [xBP + xCB*2 + 0x20 + xCB*0]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*3], xAX
mov xAX, [xBP + xCB*2 + 0x20 + xCB*1]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*4], xAX
mov xAX, [xBP + xCB*2 + 0x20 + xCB*2]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*5], xAX
mov xAX, [xBP + xCB*2 + 0x20 + xCB*3]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*6], xAX
mov xAX, [xBP + xCB*2 + 0x20 + xCB*4]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*7], xAX
mov xAX, [xBP + xCB*2 + 0x20 + xCB*5]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*8], xAX
mov xAX, [xBP + xCB*2 + 0x20 + xCB*6]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*9], xAX
mov eax, [xCX + 4] ; VTGPROBELOC::idProbe.
%else
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.uVtgProbeLoc], rdi
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*0], rsi
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*1], rdx
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*2], rcx
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*3], r8
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*4], r9
mov xAX, [xBP + xCB*2 + xCB*0]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*5], xAX
mov xAX, [xBP + xCB*2 + xCB*1]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*6], xAX
mov xAX, [xBP + xCB*2 + xCB*2]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*7], xAX
mov xAX, [xBP + xCB*2 + xCB*3]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*8], xAX
mov xAX, [xBP + xCB*2 + xCB*4]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.u.Amd64.aArgs + xCB*9], xAX
mov eax, [xDI + 4] ; VTGPROBELOC::idProbe.
%endif
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.idProbe], eax
mov dword [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX64.cBits], 64
;
; Call the helper.
;
%ifdef ASM_CALL64_MSC
mov xDX, xSP
sub xSP, 0x20
call NAME(suplibTracerFireProbe)
%else
mov xSI, xSP
%ifdef RT_ASM_USE_PLT
call NAME(suplibTracerFireProbe) wrt ..plt
%else
call NAME(suplibTracerFireProbe)
%endif
%endif
%elifdef RT_ARCH_X86
;
; Save the X86 context.
;
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.u.X86.eax], eax
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.u.X86.ecx], ecx
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.u.X86.edx], edx
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.u.X86.ebx], ebx
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.u.X86.esi], esi
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.u.X86.edi], edi
pushf
pop xAX
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.u.X86.eflags], xAX
mov xAX, [xBP + xCB]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.u.X86.eip], xAX
mov xAX, [xBP]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.u.X86.ebp], xAX
lea xAX, [xBP + xCB*2]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.u.X86.esp], xAX
mov xCX, [xBP + xCB*2 + xCB*0]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.u.X86.uVtgProbeLoc], xCX ; keep, used below.
mov edx, 20
.more:
dec edx
mov xAX, [xBP + xCB*2 + xCB*xDX]
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.u.X86.aArgs + xCB*xDX], xAX
jnz .more
mov eax, [xCX + 4] ; VTGPROBELOC::idProbe.
mov [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.idProbe], eax
mov dword [xSP + SUPTRACERUMODFIREPROBE.In + SUPDRVTRACERUSRCTX32.cBits], 32
;
; Call the helper.
;
mov xDX, xSP
push xDX
push xCX
%ifdef RT_ASM_USE_PLT
call NAME(suplibTracerFireProbe) wrt ..plt
%else
call NAME(suplibTracerFireProbe)
%endif
%else
%error "Arch not supported (or correctly defined)."
%endif
leave
ret
ENDPROC SUPTracerFireProbe
|
aegisub/packages/osx_dmg/dmg_set_style.applescript | rcombs/Aegisub | 1 | 2087 | <filename>aegisub/packages/osx_dmg/dmg_set_style.applescript
(*
This AppleScript customizes the appearance of the
disk image in which Inkscape is bundled on MacOS X
Author:
<NAME> <<EMAIL>>
Copyright 2006
Licensed under GNU General Public License
*)
tell application "Finder"
tell disk "@PKG_DMG_STRING@"
open
tell container window
set current view to icon view
set toolbar visible to false
set statusbar visible to false
set the bounds to {308, 397, 725, 731}
end tell
close
set opts to the icon view options of container window
tell opts
set icon size to 90
set arrangement to not arranged
end tell
set background picture of opts to file ".background:background.png"
set position of application file "@PKG_BUNDLE_STRING@" to {133, 55}
set position of alias file "Applications" to {133, 241}
update without registering applications
tell container window
set the bounds to {308, 397, 725, 731}
set the bounds to {307, 397, 725, 731}
end tell
update without registering applications
end tell
--give the finder some time to write the .DS_Store file
delay 7
end tell
|
oeis/202/A202208.asm | neoneye/loda-programs | 11 | 25997 | ; A202208: Smallest square (>4n) == 1 mod 4n.
; Submitted by <NAME>
; 9,9,25,49,81,25,169,225,289,81,441,49,625,169,121,961,1089,289,1369,81,169,441,2025,289,2401,625,2809,225,3249,121,3721,3969,529,1089,841,289,5329,1369,625,961,6561,169,7225,529,361,2025,8649,961,9409,2401
seq $0,344005 ; a(n) = smallest positive m such that n divides the oblong number m*(m+1).
add $0,1
bin $0,2
sub $0,1
mul $0,8
add $0,9
|
6502/rom.asm | FrankBuss/simple6502 | 3 | 86797 | ; compile command line: dasm rom.asm -f3 -orom.bin -llisting.txt
; DASM: https://dasm-assembler.github.io/
processor 6502
LCD_DB4_PIN equ 1
LCD_DB5_PIN equ 2
LCD_DB6_PIN equ 4
LCD_DB7_PIN equ 8
LCD_RS_PIN equ 16
LCD_E_PIN equ 32
LCD_PORT equ $e001
latch EQU $fb
text EQU $fc
tmp1 EQU $fe
tmp2 EQU $be
textX EQU $bf
org $8000
; init stack pointer and clear decimal flag
reset sei
ldx #$ff
txs
cld
; set all port pins to output in 6522, and low
stx $e002
stx $e003
lda #0
sta $e000
sta $e001
; init display
jsr lcdInit
; scroll text
start lda #0
sta textX
start2 ; draw first line
clc
lda #<(scroll1)
adc textX
sta text
lda #>(scroll1)
sta text + 1
ldy #0
jsr drawTextLine
; draw second line
clc
lda #<(scroll2)
adc textX
sta text
lda #>(scroll2)
sta text + 1
ldy #1
jsr drawTextLine
; wait a bit
lda #100
jsr delay
; blink LED
lda latch
eor #$80
sta latch
; scroll
inc textX
lda textX
cmp #56
bne start2
; start from beginning
jmp start
; delay for the specified numbers of milliseconds in A
delay ldx #2
delay2 ldy #0
delay3 dey
bne delay3
dex
bne delay2
sec
sbc #1
cmp #0
bne delay
rts
; set pin to 1 or 0 with latch
; A: pin mask
; X: 1: set port pin to 1, 0: set port pin to 0
digitalWrite
cpx #0
bne digitalWriteSet
eor #$ff
and latch
sta latch
jmp digitalWriteEnd
digitalWriteSet
ora latch
sta latch
digitalWriteEnd
sta LCD_PORT
rts
; send nibble in A to display
lcdSendNibble
pha
lda latch
and #$f0
sta latch
pla
ora latch
sta latch
lda #LCD_E_PIN
ldx #1
jsr digitalWrite
lda #LCD_E_PIN
ldx #0
jmp digitalWrite
; send data as instruction or data to display
; A: data to send
; X: state of RS pin: 0 for instruction, 1 for data
lcdSend pha
lda #LCD_RS_PIN
jsr digitalWrite
pla
pha
lsr
lsr
lsr
lsr
jsr lcdSendNibble
pla
and #$f
jmp lcdSendNibble
; send instruction to display
; A: instruction to send
lcdSendInstruction
ldx #0
jmp lcdSend
; send data to display
; A: data to send
lcdSendData
ldx #1
jmp lcdSend
; init LCD
lcdInit
; init 4 bit mode
lda #LCD_RS_PIN
ldx #0
jsr digitalWrite
lda #LCD_E_PIN
ldx #0
jsr digitalWrite
lda #15
jsr delay
lda #3
jsr lcdSendNibble
lda #5
jsr delay
lda #3
jsr lcdSendNibble
lda #1
jsr delay
lda #3
jsr lcdSendNibble
lda #5
jsr delay
lda #2
jsr lcdSendNibble
; 2 line mode, 5x11 characters
lda #5
jsr delay
lda #$28
jsr lcdSendInstruction
; display off, cursor off, blink off
lda #5
jsr delay
lda #8
jsr lcdSendInstruction
; clear display and return cursor home
lda #5
jsr delay
lda #1
jsr lcdSendInstruction
; entry mode: left to right
lda #5
jsr delay
lda #6
jsr lcdSendInstruction
; display on
lda #5
jsr delay
lda #$c
jmp lcdSendInstruction
; set position in X/Y
setPosition
txa
cpy #1
bne setPosition2
ora #$40
setPosition2
ora #$80
jmp lcdSendInstruction
; set char in A at position X/Y
setChar
pha
jsr setPosition
pla
jmp lcdSendData
; draw 16 characters starting from "text" at line in Y
drawTextLine
lda #0
sta tmp1
sty tmp2
drawTextLine2
ldy tmp1
lda (text),y
ldx tmp1
ldy tmp2
jsr setChar
inc tmp1
lda tmp1
cmp #16
bne drawTextLine2
rts
scroll1 dc " Hello Have a nice day ";
scroll2 dc " Bil <NAME> ";
nmi rti
irq rti
org $fffa
; NMI vector
dc <(nmi), >(nmi)
; reset vector
dc <(reset), >(reset)
; IRQ/BRK vector
dc <(irq), >(irq)
end
|
tools-src/gnu/gcc/gcc/ada/scn-nlit.adb | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 19534 | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S C N . N L I T --
-- --
-- B o d y --
-- --
-- $Revision$
-- --
-- Copyright (C) 1992-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. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Uintp; use Uintp;
with Urealp; use Urealp;
separate (Scn)
procedure Nlit is
C : Character;
-- Current source program character
Base_Char : Character;
-- Either # or : (character at start of based number)
Base : Int;
-- Value of base
UI_Base : Uint;
-- Value of base in Uint format
UI_Int_Value : Uint;
-- Value of integer scanned by Scan_Integer in Uint format
UI_Num_Value : Uint;
-- Value of integer in numeric value being scanned
Scale : Int;
-- Scale value for real literal
UI_Scale : Uint;
-- Scale in Uint format
Exponent_Is_Negative : Boolean;
-- Set true for negative exponent
Extended_Digit_Value : Int;
-- Extended digit value
Point_Scanned : Boolean;
-- Flag for decimal point scanned in numeric literal
-----------------------
-- Local Subprograms --
-----------------------
procedure Error_Digit_Expected;
-- Signal error of bad digit, Scan_Ptr points to the location at which
-- the digit was expected on input, and is unchanged on return.
procedure Scan_Integer;
-- Procedure to scan integer literal. On entry, Scan_Ptr points to a
-- digit, on exit Scan_Ptr points past the last character of the integer.
-- For each digit encountered, UI_Int_Value is multiplied by 10, and the
-- value of the digit added to the result. In addition, the value in
-- Scale is decremented by one for each actual digit scanned.
--------------------------
-- Error_Digit_Expected --
--------------------------
procedure Error_Digit_Expected is
begin
Error_Msg_S ("digit expected");
end Error_Digit_Expected;
-------------------
-- Scan_Integer --
-------------------
procedure Scan_Integer is
C : Character;
-- Next character scanned
begin
C := Source (Scan_Ptr);
-- Loop through digits (allowing underlines)
loop
Accumulate_Checksum (C);
UI_Int_Value :=
UI_Int_Value * 10 + (Character'Pos (C) - Character'Pos ('0'));
Scan_Ptr := Scan_Ptr + 1;
Scale := Scale - 1;
C := Source (Scan_Ptr);
if C = '_' then
Accumulate_Checksum ('_');
loop
Scan_Ptr := Scan_Ptr + 1;
C := Source (Scan_Ptr);
exit when C /= '_';
Error_No_Double_Underline;
end loop;
if C not in '0' .. '9' then
Error_Digit_Expected;
exit;
end if;
else
exit when C not in '0' .. '9';
end if;
end loop;
end Scan_Integer;
----------------------------------
-- Start of Processing for Nlit --
----------------------------------
begin
Base := 10;
UI_Base := Uint_10;
UI_Int_Value := Uint_0;
Scale := 0;
Scan_Integer;
Scale := 0;
Point_Scanned := False;
UI_Num_Value := UI_Int_Value;
-- Various possibilities now for continuing the literal are
-- period, E/e (for exponent), or :/# (for based literal).
Scale := 0;
C := Source (Scan_Ptr);
if C = '.' then
-- Scan out point, but do not scan past .. which is a range sequence,
-- and must not be eaten up scanning a numeric literal.
while C = '.' and then Source (Scan_Ptr + 1) /= '.' loop
Accumulate_Checksum ('.');
if Point_Scanned then
Error_Msg_S ("duplicate point ignored");
end if;
Point_Scanned := True;
Scan_Ptr := Scan_Ptr + 1;
C := Source (Scan_Ptr);
if C not in '0' .. '9' then
Error_Msg ("real literal cannot end with point", Scan_Ptr - 1);
else
Scan_Integer;
UI_Num_Value := UI_Int_Value;
end if;
end loop;
-- Based literal case. The base is the value we already scanned.
-- In the case of colon, we insist that the following character
-- is indeed an extended digit or a period. This catches a number
-- of common errors, as well as catching the well known tricky
-- bug otherwise arising from "x : integer range 1 .. 10:= 6;"
elsif C = '#'
or else (C = ':' and then
(Source (Scan_Ptr + 1) = '.'
or else
Source (Scan_Ptr + 1) in '0' .. '9'
or else
Source (Scan_Ptr + 1) in 'A' .. 'Z'
or else
Source (Scan_Ptr + 1) in 'a' .. 'z'))
then
Accumulate_Checksum (C);
Base_Char := C;
UI_Base := UI_Int_Value;
if UI_Base < 2 or else UI_Base > 16 then
Error_Msg_SC ("base not 2-16");
UI_Base := Uint_16;
end if;
Base := UI_To_Int (UI_Base);
Scan_Ptr := Scan_Ptr + 1;
-- Scan out extended integer [. integer]
C := Source (Scan_Ptr);
UI_Int_Value := Uint_0;
Scale := 0;
loop
if C in '0' .. '9' then
Accumulate_Checksum (C);
Extended_Digit_Value :=
Int'(Character'Pos (C)) - Int'(Character'Pos ('0'));
elsif C in 'A' .. 'F' then
Accumulate_Checksum (Character'Val (Character'Pos (C) + 32));
Extended_Digit_Value :=
Int'(Character'Pos (C)) - Int'(Character'Pos ('A')) + 10;
elsif C in 'a' .. 'f' then
Accumulate_Checksum (C);
Extended_Digit_Value :=
Int'(Character'Pos (C)) - Int'(Character'Pos ('a')) + 10;
else
Error_Msg_S ("extended digit expected");
exit;
end if;
if Extended_Digit_Value >= Base then
Error_Msg_S ("digit >= base");
end if;
UI_Int_Value := UI_Int_Value * UI_Base + Extended_Digit_Value;
Scale := Scale - 1;
Scan_Ptr := Scan_Ptr + 1;
C := Source (Scan_Ptr);
if C = '_' then
loop
Accumulate_Checksum ('_');
Scan_Ptr := Scan_Ptr + 1;
C := Source (Scan_Ptr);
exit when C /= '_';
Error_No_Double_Underline;
end loop;
elsif C = '.' then
Accumulate_Checksum ('.');
if Point_Scanned then
Error_Msg_S ("duplicate point ignored");
end if;
Scan_Ptr := Scan_Ptr + 1;
C := Source (Scan_Ptr);
Point_Scanned := True;
Scale := 0;
elsif C = Base_Char then
Accumulate_Checksum (C);
Scan_Ptr := Scan_Ptr + 1;
exit;
elsif C = '#' or else C = ':' then
Error_Msg_S ("based number delimiters must match");
Scan_Ptr := Scan_Ptr + 1;
exit;
elsif not Identifier_Char (C) then
if Base_Char = '#' then
Error_Msg_S ("missing '#");
else
Error_Msg_S ("missing ':");
end if;
exit;
end if;
end loop;
UI_Num_Value := UI_Int_Value;
end if;
-- Scan out exponent
if not Point_Scanned then
Scale := 0;
UI_Scale := Uint_0;
else
UI_Scale := UI_From_Int (Scale);
end if;
if Source (Scan_Ptr) = 'e' or else Source (Scan_Ptr) = 'E' then
Accumulate_Checksum ('e');
Scan_Ptr := Scan_Ptr + 1;
Exponent_Is_Negative := False;
if Source (Scan_Ptr) = '+' then
Accumulate_Checksum ('+');
Scan_Ptr := Scan_Ptr + 1;
elsif Source (Scan_Ptr) = '-' then
Accumulate_Checksum ('-');
if not Point_Scanned then
Error_Msg_S ("negative exponent not allowed for integer literal");
else
Exponent_Is_Negative := True;
end if;
Scan_Ptr := Scan_Ptr + 1;
end if;
UI_Int_Value := Uint_0;
if Source (Scan_Ptr) in '0' .. '9' then
Scan_Integer;
else
Error_Digit_Expected;
end if;
if Exponent_Is_Negative then
UI_Scale := UI_Scale - UI_Int_Value;
else
UI_Scale := UI_Scale + UI_Int_Value;
end if;
end if;
-- Case of real literal to be returned
if Point_Scanned then
Token := Tok_Real_Literal;
Token_Node := New_Node (N_Real_Literal, Token_Ptr);
Set_Realval (Token_Node,
UR_From_Components (
Num => UI_Num_Value,
Den => -UI_Scale,
Rbase => Base));
-- Case of integer literal to be returned
else
Token := Tok_Integer_Literal;
Token_Node := New_Node (N_Integer_Literal, Token_Ptr);
if UI_Scale = 0 then
Set_Intval (Token_Node, UI_Num_Value);
-- Avoid doing possibly expensive calculations in cases like
-- parsing 163E800_000# when semantics will not be done anyway.
-- This is especially useful when parsing garbled input.
elsif Operating_Mode /= Check_Syntax
and then (Errors_Detected = 0 or else Try_Semantics)
then
Set_Intval (Token_Node, UI_Num_Value * UI_Base ** UI_Scale);
else
Set_Intval (Token_Node, No_Uint);
end if;
end if;
return;
end Nlit;
|
oeis/171/A171552.asm | neoneye/loda-programs | 11 | 5269 | ; A171552: a(n)=2^n*floor((5-2n)/3).
; Submitted by <NAME>
; 1,2,0,-8,-16,-64,-192,-384,-1024,-2560,-5120,-12288,-28672,-57344,-131072,-294912,-589824,-1310720,-2883584,-5767168,-12582912,-27262976,-54525952,-117440512,-251658240,-503316480,-1073741824,-2281701376
mov $1,2
pow $1,$0
mul $0,2
div $0,3
mul $0,$1
sub $1,$0
mov $0,$1
|
src/asis/a4g-asis_tables.ads | My-Colaborations/dynamo | 15 | 1337 | <filename>src/asis/a4g-asis_tables.ads
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- A 4 G . A S I S _ T A B L E S --
-- --
-- S p e c --
-- --
-- Copyright (C) 1995-2012, Free Software Foundation, Inc. --
-- --
-- ASIS-for-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 --
-- Software Foundation; either version 2, or (at your option) any later --
-- version. ASIS-for-GNAT is distributed in the hope that it will be use- --
-- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --
-- CHANTABILITY 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 ASIS-for-GNAT; see file --
-- COPYING. If not, write to the Free Software Foundation, 51 Franklin --
-- Street, Fifth Floor, Boston, MA 02110-1301, USA. --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the --
-- Software Engineering Laboratory of the Swiss Federal Institute of --
-- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the --
-- Scientific Research Computer Center of Moscow State University (SRCC --
-- MSU), Russia, with funding partially provided by grants from the Swiss --
-- National Science Foundation and the Swiss Academy of Engineering --
-- Sciences. ASIS-for-GNAT is now maintained by AdaCore --
-- (http://www.adacore.com). --
-- --
------------------------------------------------------------------------------
-- This package contains definitions of tables and related auxilary resources
-- needed in more than one ASIS implementation package
with Asis;
with Sinfo; use Sinfo;
with Table;
with Types; use Types;
package A4G.Asis_Tables is
package Internal_Asis_Element_Table is new Table.Table (
Table_Component_Type => Asis.Element,
Table_Index_Type => Asis.ASIS_Natural,
Table_Low_Bound => 1,
Table_Initial => 10,
Table_Increment => 100,
Table_Name => "Internal Element_List");
-- This table contains ASIS Elements. It is supposed to be used only for
-- creating the result Element lists in ASIS structural queries. Note that
-- many ASIS queries use instantiations of Traverse_Elements to create
-- result lists, so we have to make sure that ASIS structural queries
-- used in the implementation of Traverse_Element use another table to
-- create result lists
package Asis_Element_Table is new Table.Table (
Table_Component_Type => Asis.Element,
Table_Index_Type => Asis.ASIS_Natural,
Table_Low_Bound => 1,
Table_Initial => 10,
Table_Increment => 100,
Table_Name => "Element_List");
-- This table contains ASIS Elements. It is supposed to be used for any
-- purpose except creating the result Element lists in ASIS structural
-- queries.
procedure Add_New_Element (Element : Asis.Element);
-- Differs from Asis_Element_Table.Append that checks if the argument
-- Element already is in the table, and appends the new element only if the
-- check fails. Note that the implementation is based on a simple array
-- search, so it can result in performance penalties if there are too
-- many elements in the table.
type Node_Trace_Rec is record
Kind : Node_Kind;
Node_Line : Physical_Line_Number;
Node_Col : Column_Number;
end record;
-- This record represents a Node in the node trace used to find the same
-- construct in another tree
package Node_Trace is new Table.Table (
Table_Component_Type => Node_Trace_Rec,
Table_Index_Type => Int,
Table_Low_Bound => 0,
Table_Initial => 10,
Table_Increment => 100,
Table_Name => "Node_Trace");
-- This table is used to create the node trace needed to compare elements
-- from nested instances
function Is_Equal
(N : Node_Id;
Trace_Rec : Node_Trace_Rec)
return Boolean;
-- Checks if N (in the currently accessed tree corresponds to the node
-- for which Trace_Rec was created
procedure Create_Node_Trace (N : Node_Id);
-- Creates the Node trace which is supposed to be used to find the node
-- representing the same construct in another tree. The trace is also used
-- to check is two nodes from different trees, each belonging to expanded
-- generics both denote the same thing. This trace contains the record
-- about N itself and all the enclosing constructs such as package bodies
-- and package specs. For the package which is an expanded generic, the
-- next element in the trace is the corresponding instantiation node.
function Enclosing_Scope (N : Node_Id) return Node_Id;
-- Given a node somewhere from expanded generic, returnes its enclosing
-- "scope" which can be N_Package_Declaration, N_Package_Body or
-- N_Generic_Declaration node. The idea is to use this function to create
-- the node trace either for storing it in the Note Trace table or for
-- creating the trace on the fly to compare it with the stored trace.
end A4G.Asis_Tables;
|
u7-common/patch-eop-displayText.asm | JohnGlassmyer/UltimaHacks | 68 | 20789 | ; Show the given string in a "scroll" or "book" popup.
[bits 16]
startPatch EXE_LENGTH, eop-displayText
startBlockAt addr_eop_displayText
push bp
mov bp, sp
; bp-based stack frame:
%assign arg_textDisplayType 0x06
%assign arg_pn_farString 0x04
%assign ____callerIp 0x02
%assign ____callerBp 0x00
push si
push di
push word [bp+arg_textDisplayType]
callFromOverlay beginConversation
pop cx
push word [bp+arg_pn_farString]
callFromOverlay FarString_showInConversation
pop cx
callFromOverlay endConversation
cmp byte [dseg_isDialogMode], 0
jz afterRedrawingDialogs
callFromOverlay redrawDialogs
afterRedrawingDialogs:
pop di
pop si
mov sp, bp
pop bp
retn
endBlockAt off_eop_displayText_end
endPatch
|
Definition/LogicalRelation/Properties.agda | CoqHott/logrel-mltt | 2 | 13786 | {-# OPTIONS --safe #-}
open import Definition.Typed.EqualityRelation
module Definition.LogicalRelation.Properties {{eqrel : EqRelSet}} where
open import Definition.LogicalRelation.Properties.Reflexivity public
open import Definition.LogicalRelation.Properties.Symmetry public
open import Definition.LogicalRelation.Properties.Transitivity public
open import Definition.LogicalRelation.Properties.Conversion public
open import Definition.LogicalRelation.Properties.Escape public
open import Definition.LogicalRelation.Properties.Universe public
open import Definition.LogicalRelation.Properties.Neutral public
open import Definition.LogicalRelation.Properties.Reduction public
open import Definition.LogicalRelation.Properties.Successor public
open import Definition.LogicalRelation.Properties.MaybeEmb public
|
libtool/src/gmp-6.1.2/tests/x86call.asm | kroggen/aergo | 1,602 | 94554 | dnl x86 calling conventions checking.
dnl Copyright 2000, 2003, 2010, 2013 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library test suite.
dnl The GNU MP Library test suite is free software; you can redistribute it
dnl and/or modify it under the terms of the GNU General Public License as
dnl published by the Free Software Foundation; either version 3 of the
dnl License, or (at your option) any later version.
dnl The GNU MP Library test suite is distributed in the hope that it will be
dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
dnl Public License for more details.
dnl You should have received a copy of the GNU General Public License along
dnl with the GNU MP Library test suite. If not, see
dnl https://www.gnu.org/licenses/.
dnl The current version of the code attempts to keep the call/return
dnl prediction stack valid, but matching calls and returns.
include(`../config.m4')
C void x86_fldcw (unsigned short cw);
C
C Execute an fldcw, setting the x87 control word to cw.
PROLOGUE(x86_fldcw)
fldcw 4(%esp)
ret
EPILOGUE()
C unsigned short x86_fstcw (void);
C
C Execute an fstcw, returning the current x87 control word.
PROLOGUE(x86_fstcw)
xor %eax, %eax
push %eax
fstcw (%esp)
pop %eax
ret
EPILOGUE()
dnl Instrumented profiling doesn't come out quite right below, since we don't
dnl do an actual "ret". There's only a few instructions here, so there's no
dnl great need to get them separately accounted, just let them get attributed
dnl to the caller. FIXME this comment might no longer be true.
ifelse(WANT_PROFILING,instrument,
`define(`WANT_PROFILING',no)')
C int calling_conventions (...);
C
C The global variable "calling_conventions_function" is the function to
C call, with the arguments as passed here.
C
C Perhaps the finit should be done only if the tags word isn't clear, but
C nothing uses the rounding mode or anything at the moment.
define(`WANT_EBX', eval(4*0)($1))
define(`WANT_EBP', eval(4*1)($1))
define(`WANT_ESI', eval(4*2)($1))
define(`WANT_EDI', eval(4*3)($1))
define(`JUNK_EAX', eval(4*4)($1))
define(`JUNK_ECX', eval(4*5)($1))
define(`JUNK_EDX', eval(4*6)($1))
define(`SAVE_EBX', eval(4*7)($1))
define(`SAVE_EBP', eval(4*8)($1))
define(`SAVE_ESI', eval(4*9)($1))
define(`SAVE_EDI', eval(4*10)($1))
define(`RETADDR', eval(4*11)($1))
define(`EBX', eval(4*12)($1))
define(`EBP', eval(4*13)($1))
define(`ESI', eval(4*14)($1))
define(`EDI', eval(4*15)($1))
define(`EFLAGS', eval(4*16)($1))
define(G,
m4_assert_numargs(1)
`GSYM_PREFIX`'$1')
TEXT
ALIGN(8)
PROLOGUE(calling_conventions)
LEA( G(calling_conventions_values), %ecx)
pop RETADDR(%ecx)
mov %ebx, SAVE_EBX(%ecx)
mov %ebp, SAVE_EBP(%ecx)
mov %esi, SAVE_ESI(%ecx)
mov %edi, SAVE_EDI(%ecx)
C Values we expect to see unchanged, as per amd64check.c
mov WANT_EBX(%ecx), %ebx
mov WANT_EBP(%ecx), %ebp
mov WANT_ESI(%ecx), %esi
mov WANT_EDI(%ecx), %edi
C Try to provoke a problem by starting with junk in the caller-saves
C registers, especially in %eax and %edx which will be return values
mov JUNK_EAX(%ecx), %eax
mov JUNK_EDX(%ecx), %edx
C mov JUNK_ECX(%ecx), %ecx
ifdef(`PIC',`
LEA( G(calling_conventions_function), %ecx)
call *(%ecx)
',`
call *G(calling_conventions_function)
')
LEA( G(calling_conventions_values), %ecx)
mov %ebx, EBX(%ecx)
mov %ebp, EBP(%ecx)
mov %esi, ESI(%ecx)
mov %edi, EDI(%ecx)
pushf
pop %ebx
mov %ebx, EFLAGS(%ecx)
mov SAVE_EBX(%ecx), %ebx
mov SAVE_ESI(%ecx), %esi
mov SAVE_EDI(%ecx), %edi
mov SAVE_EBP(%ecx), %ebp
push RETADDR(%ecx)
ifdef(`PIC',`
LEA( G(calling_conventions_fenv), %ecx)
fstenv (%ecx)
',`
fstenv G(calling_conventions_fenv)
')
finit
ret
EPILOGUE()
ASM_END()
|
Asm/4.15.asm | cquca/csco_book_codes | 3 | 89579 | int fact(int n)
{
if (n<1) return (1);
else return(n*fact(n-1));
} |
programs/oeis/268/A268398.asm | neoneye/loda | 22 | 95880 | <filename>programs/oeis/268/A268398.asm
; A268398: Partial sums of A085731.
; 1,2,3,7,8,9,10,14,17,18,19,23,24,25,26,42,43,46,47,51,52,53,54,58,63,64,91,95,96,97,98,114,115,116,117,129,130,131,132,136,137,138,139,143,146,147,148,164,171,176,177,181,182,209,210,214,215,216,217,221,222,223,226,290,291,292,293,297,298,299,300,312,313,314,319,323,324,325,326,342,369,370,371,375,376,377,378,382,383,386,387,391,392,393,394,410,411,418,421,441
lpb $0
mov $2,$0
sub $0,1
seq $2,85731 ; Greatest common divisor of n and its arithmetic derivative.
add $1,$2
lpe
add $1,1
mov $0,$1
|
programs/oeis/334/A334706.asm | karttu/loda | 0 | 14234 | ; A334706: Number of collinear triples in a 4 X n rectangular grid.
; 4,8,20,44,84,140,224,332,472,648,864,1120,1428,1784,2196,2668,3204,3804,4480,5228,6056,6968,7968,9056,10244,11528,12916,14412,16020,17740,19584,21548,23640,25864,28224,30720,33364,36152,39092,42188,45444,48860,52448,56204,60136,64248,68544,73024,77700,82568,87636,92908,98388,104076,109984,116108,122456,129032,135840,142880,150164,157688,165460,173484,181764,190300,199104,208172,217512,227128,237024,247200,257668,268424,279476,290828,302484,314444,326720,339308,352216,365448,379008,392896,407124,421688,436596,451852,467460,483420,499744,516428,533480,550904,568704,586880,605444,624392,643732,663468,683604,704140,725088,746444,768216,790408,813024,836064,859540,883448,907796,932588,957828,983516,1009664,1036268,1063336,1090872,1118880,1147360,1176324,1205768,1235700,1266124,1297044,1328460,1360384,1392812,1425752,1459208,1493184,1527680,1562708,1598264,1634356,1670988,1708164,1745884,1784160,1822988,1862376,1902328,1942848,1983936,2025604,2067848,2110676,2154092,2198100,2242700,2287904,2333708,2380120,2427144,2474784,2523040,2571924,2621432,2671572,2722348,2773764,2825820,2878528,2931884,2985896,3040568,3095904,3151904,3208580,3265928,3323956,3382668,3442068,3502156,3562944,3624428,3686616,3749512,3813120,3877440,3942484,4008248,4074740,4141964,4209924,4278620,4348064,4418252,4489192,4560888,4633344,4706560,4780548,4855304,4930836,5007148,5084244,5162124,5240800,5320268,5400536,5481608,5563488,5646176,5729684,5814008,5899156,5985132,6071940,6159580,6248064,6337388,6427560,6518584,6610464,6703200,6796804,6891272,6986612,7082828,7179924,7277900,7376768,7476524,7577176,7678728,7781184,7884544,7988820,8094008,8200116,8307148,8415108,8523996,8633824,8744588,8856296,8968952,9082560,9197120,9312644,9429128,9546580,9665004,9784404,9904780,10026144,10148492,10271832,10396168
mov $12,$0
mov $14,$0
add $14,1
lpb $14,1
clr $0,12
mov $0,$12
sub $14,1
sub $0,$14
mov $9,$0
mov $11,$0
add $11,1
lpb $11,1
mov $0,$9
sub $11,1
sub $0,$11
mov $8,$0
gcd $0,3
mov $1,$0
add $0,1
mod $6,2
add $6,1
add $8,$0
sub $8,$6
mul $8,2
mov $3,$8
sub $3,$1
mov $1,$3
div $1,2
mul $1,4
add $10,$1
lpe
add $13,$10
lpe
mov $1,$13
|
src/Syntax/Substitution/Kits.agda | DimaSamoz/temporal-type-systems | 4 | 13590 |
-- Syntactic kits from <NAME>'s
-- "Type-Preserving Renaming and Substitution"
module Syntax.Substitution.Kits where
open import Syntax.Types
open import Syntax.Context
open import Syntax.Terms
open import CategoryTheory.Categories
open import Relation.Binary.PropositionalEquality using (_≡_ ; refl ; sym)
-- Type of entities that we can traverse
-- (instantiated by variables and types)
Schema : Set₁
Schema = Context -> Judgement -> Set
-- Explicit substitution from term in context Δ to term in context Γ
-- E.g. from Γ ⌊ A ⌋ Γ′ ⊢ N : B to Γ ⌊⌋ Γ′ ⊢ N[σ] : B
-- using substitution Γ ⌊⌋ Γ′ ⊢ σ : Γ ⌊ A ⌋ Γ′
data Subst (𝒮 : Schema) : Context -> Context -> Set where
-- Empty substitution
● : ∀ {Δ} -> Subst 𝒮 ∙ Δ
-- Extending the domain of a substitution
_▸_ : ∀ {A Γ Δ} -> (σ : Subst 𝒮 Γ Δ) -> (T : 𝒮 Δ A) -> Subst 𝒮 (Γ , A) Δ
-- Syntactic kit grouping together common operations on traversable
-- syntactic entities such as variables and terms
record Kit (𝒮 : Schema) : Set where
field
-- Convert a variable to the entity
𝓋 : ∀ {Γ A} -> A ∈ Γ -> 𝒮 Γ A
-- Convert the entity to a term
𝓉 : ∀ {Γ A} -> 𝒮 Γ A -> Γ ⊢ A
-- Weaken the entity
𝓌 : ∀ {B Γ A} -> 𝒮 Γ A -> 𝒮 (Γ , B) A
-- Stabilise the context of the entity
𝒶 : ∀ {Γ A} -> 𝒮 Γ (A always) -> 𝒮 (Γ ˢ) (A always)
-- Substitutable kit
record SubstKit (𝒮 : Schema) : Set where
field
-- Underlying traversable kit
𝓀 : Kit 𝒮
-- Apply substitution to a kit
𝓈 : ∀ {Γ Δ A} -> Subst 𝒮 Γ Δ -> 𝒮 Γ A -> 𝒮 Δ A
open Kit
-- | Combinators
-- | All take a syntactic (substitutable) kit as an argument
-- | which provides the necessary operations
-- Weakening a substitution
-- Δ ⊢ σ : Γ to (Δ , A) ⊢ σ : Γ
_⁺_ : ∀ {A 𝒮 Γ Δ} -> Subst 𝒮 Γ Δ -> Kit 𝒮 -> Subst 𝒮 Γ (Δ , A)
● ⁺ _ = ●
(σ ▸ T) ⁺ k = (σ ⁺ k) ▸ 𝓌 k T
infixl 40 _⁺_
-- Lifting a substitution
-- Δ ⊢ σ : Γ to (Δ , A) ⊢ σ : (Γ , A)
_↑_ : ∀ {A 𝒮 Γ Δ} -> Subst 𝒮 Γ Δ -> Kit 𝒮 -> Subst 𝒮 (Γ , A) (Δ , A)
σ ↑ k = (σ ⁺ k) ▸ 𝓋 k top
infixl 40 _↑_
-- Stabilising a substitution
-- Δ ⊢ σ : Γ to Δ ˢ ⊢ σ : Γ ˢ
_↓ˢ_ : ∀ {𝒮 Γ Δ} -> Subst 𝒮 Γ Δ -> Kit 𝒮 -> Subst 𝒮 (Γ ˢ) (Δ ˢ)
● ↓ˢ _ = ●
(_▸_ {A now} σ T) ↓ˢ k = σ ↓ˢ k
(_▸_ {A always} σ T) ↓ˢ k = (σ ↓ˢ k) ▸ 𝒶 k T
infixl 40 _↓ˢ_
-- Identity substitution
idₛ : ∀ {Γ 𝒮} -> Kit 𝒮 -> Subst 𝒮 Γ Γ
idₛ {∙} k = ●
idₛ {Γ , _} k = idₛ k ↑ k
-- Composition of substitutions
_∘[_]ₛ_ : ∀ {𝒮 Γ Δ Ξ} -> Subst 𝒮 Δ Ξ -> SubstKit 𝒮 -> Subst 𝒮 Γ Δ -> Subst 𝒮 Γ Ξ
σ₂ ∘[ k ]ₛ ● = ●
σ₂ ∘[ k ]ₛ (σ₁ ▸ T) = (σ₂ ∘[ k ]ₛ σ₁) ▸ SubstKit.𝓈 k σ₂ T
-- Substitution from an order-preserving embedding
-- Γ ⊆ Δ to Δ ⊢ σ : Γ
_⊆ₛ_ : ∀ {𝒮 Γ Δ} -> Γ ⊆ Δ -> Kit 𝒮 -> Subst 𝒮 Γ Δ
refl ⊆ₛ k = idₛ k
(keep s) ⊆ₛ k = (s ⊆ₛ k) ↑ k
(drop s) ⊆ₛ k = (s ⊆ₛ k) ⁺ k
-- Substitution from propositional equality of contexts
_≡ₛ_ : ∀ {𝒮 Γ Δ} -> Γ ≡ Δ -> Kit 𝒮 -> Subst 𝒮 Γ Δ
refl ≡ₛ k = idₛ k
-- Substitution from idempotence of stabilisation
_ˢˢₛ_ : ∀ {𝒮} -> (Γ : Context) -> Kit 𝒮 -> Subst 𝒮 (Γ ˢ) (Γ ˢ ˢ)
∙ ˢˢₛ k = ●
(Γ , A now) ˢˢₛ k = Γ ˢˢₛ k
(Γ , A always) ˢˢₛ k = (Γ ˢˢₛ k) ↑ k
-- | Standard substitutions
-- | Common transformations between contexts
module _ {𝒮 : Schema} (sk : SubstKit 𝒮) where
open SubstKit sk
open Kit 𝓀
-- | Weakening
-- Weakening the top of the context
weak-topₛ : ∀{A Γ} -> Subst 𝒮 Γ (Γ , A)
weak-topₛ = idₛ 𝓀 ⁺ 𝓀
-- Weakening the middle of the context
weak-midₛ : ∀{A} Γ Γ′ -> Subst 𝒮 (Γ ⌊⌋ Γ′) (Γ ⌊ A ⌋ Γ′)
weak-midₛ Γ ∙ = weak-topₛ
weak-midₛ Γ (Γ′ , B) = weak-midₛ Γ Γ′ ↑ 𝓀
-- General weakening from an OPE
weakₛ : ∀{Γ Δ} -> Γ ⊆ Δ -> Subst 𝒮 Γ Δ
weakₛ = _⊆ₛ 𝓀
-- | Exchange
-- Exchange on top
ex-topₛ : ∀{A B} Γ -> Subst 𝒮 (Γ , A , B) (Γ , B , A)
ex-topₛ Γ = (idₛ 𝓀 ⁺ 𝓀 ↑ 𝓀) ▸ (𝓋 𝓀 (pop top))
-- General exchange lemma
exₛ : ∀{A B} Γ Γ′ Γ″ -> Subst 𝒮 (Γ ⌊ A ⌋ Γ′ ⌊ B ⌋ Γ″) (Γ ⌊ B ⌋ Γ′ ⌊ A ⌋ Γ″)
exₛ Γ ∙ ∙ = ex-topₛ Γ
exₛ {A} {B} Γ (Γ′ , C) ∙ =
(exₛ Γ Γ′ [ A ] ∘[ sk ]ₛ ex-topₛ (Γ , C ⌊⌋ Γ′)) ∘[ sk ]ₛ exₛ Γ Γ′ [ B ]
exₛ Γ ∙ (Γ″ , D) = exₛ Γ ∙ Γ″ ↑ 𝓀
exₛ Γ (Γ′ , C) (Γ″ , D) = exₛ Γ (Γ′ , C) Γ″ ↑ 𝓀
-- | Contraction
-- Contraction on top
contr-topₛ : ∀{A Γ} -> Subst 𝒮 (Γ , A , A) (Γ , A)
contr-topₛ = (idₛ 𝓀) ▸ (𝓋 𝓀 top)
-- General contraction lemma (left)
contr-lₛ : ∀{A} Γ Γ′ Γ″ -> Subst 𝒮 (Γ ⌊ A ⌋ Γ′ ⌊ A ⌋ Γ″) (Γ ⌊ A ⌋ Γ′ ⌊⌋ Γ″)
contr-lₛ Γ ∙ ∙ = contr-topₛ
contr-lₛ Γ (Γ′ , B) ∙ = (idₛ 𝓀) ▸ (𝓌 𝓀 (𝓈 (contr-lₛ Γ Γ′ ∙) (𝓋 𝓀 top)))
contr-lₛ Γ ∙ (Γ″ , C) = contr-lₛ Γ ∙ Γ″ ↑ 𝓀
contr-lₛ Γ (Γ′ , B) (Γ″ , C) = contr-lₛ Γ (Γ′ , B) Γ″ ↑ 𝓀
-- General contraction lemma (right)
contr-rₛ : ∀{A} Γ Γ′ Γ″ -> Subst 𝒮 (Γ ⌊ A ⌋ Γ′ ⌊ A ⌋ Γ″) (Γ ⌊⌋ Γ′ ⌊ A ⌋ Γ″)
contr-rₛ Γ ∙ ∙ = contr-topₛ
contr-rₛ {A} Γ (Γ′ , B) ∙ =
(ex-topₛ (Γ ⌊⌋ Γ′) ∘[ sk ]ₛ contr-rₛ Γ Γ′ [ B ]) ∘[ sk ]ₛ ex-topₛ (Γ , A ⌊⌋ Γ′)
contr-rₛ Γ ∙ (Γ″ , C) = contr-rₛ Γ ∙ Γ″ ↑ 𝓀
contr-rₛ Γ (Γ′ , B) (Γ″ , C) = contr-rₛ Γ (Γ′ , B) Γ″ ↑ 𝓀
-- | Movement
-- Moving a variable to the right in the context
move-rₛ : ∀{A} Γ Γ′ Γ″ -> Subst 𝒮 (Γ ⌊ A ⌋ Γ′ ⌊⌋ Γ″) (Γ ⌊⌋ Γ′ ⌊ A ⌋ Γ″)
move-rₛ {A} Γ Γ′ Γ″ = contr-rₛ Γ Γ′ Γ″ ∘[ sk ]ₛ weak-midₛ (Γ ⌊ A ⌋ Γ′) Γ″
-- Moving a variable to the left in the context
-- Bit verbose as we have to deal with associativity
move-lₛ : ∀{A} Γ Γ′ Γ″ -> Subst 𝒮 (Γ ⌊⌋ Γ′ ⌊ A ⌋ Γ″) (Γ ⌊ A ⌋ Γ′ ⌊⌋ Γ″)
move-lₛ {A} Γ Γ′ Γ″
= contr-lₛ Γ Γ′ Γ″
∘[ sk ]ₛ ((sym (⌊A⌋-assoc Γ Γ′ Γ″ A A) ≡ₛ 𝓀)
∘[ sk ]ₛ ((weak-midₛ {A} Γ (Γ′ ⌊ A ⌋ Γ″))
∘[ sk ]ₛ (⌊⌋-assoc Γ (Γ′ , A) Γ″ ≡ₛ 𝓀)))
-- Moving a variable to the right in the stabilised context context
moveˢ-rₛ : ∀{A} Γ Γ′ Γ″ -> Subst 𝒮 (Γ ˢ ⌊ A ⌋ (Γ′ ⌊⌋ Γ″) ˢ) ((Γ ⌊⌋ Γ′) ˢ ⌊ A ⌋ Γ″ ˢ)
moveˢ-rₛ {A} Γ Γ′ Γ″
rewrite ˢ-pres-⌊⌋ Γ Γ′
| ˢ-pres-⌊⌋ Γ′ Γ″
| sym (⌊⌋-assoc (Γ ˢ , A) (Γ′ ˢ) (Γ″ ˢ))
= move-rₛ (Γ ˢ) (Γ′ ˢ) (Γ″ ˢ)
-- | Substitution
-- Substitution for the top of the context
sub-topₛ : ∀{A Γ} -> 𝒮 Γ A -> Subst 𝒮 (Γ , A) Γ
sub-topₛ T = (idₛ 𝓀) ▸ T
-- Substitution for the top of a stabilised context
sub-topˢₛ : ∀{Γ A} -> 𝒮 Γ A -> Subst 𝒮 (Γ ˢ , A) Γ
sub-topˢₛ {Γ} T = (Γˢ⊆Γ Γ ⊆ₛ 𝓀) ▸ T
-- Substitution for the middle of the context
sub-midₛ : ∀{A} Γ Γ′ -> 𝒮 (Γ ⌊⌋ Γ′) A -> Subst 𝒮 (Γ ⌊ A ⌋ Γ′) (Γ ⌊⌋ Γ′)
sub-midₛ Γ Γ′ T = sub-topₛ T ∘[ sk ]ₛ move-rₛ Γ Γ′ ∙
|
src/asf-components-core-factory.adb | Letractively/ada-asf | 0 | 5022 | <reponame>Letractively/ada-asf
-----------------------------------------------------------------------
-- core-factory -- Factory for Core UI Components
-- Copyright (C) 2009, 2010, 2011, 2012, 2014 <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 ASF.Components.Base;
with ASF.Views.Nodes;
with ASF.Views.Nodes.Jsf;
with ASF.Components.Html.Selects;
with ASF.Components.Core.Views;
package body ASF.Components.Core.Factory is
function Create_View return Base.UIComponent_Access;
function Create_ViewAction return Base.UIComponent_Access;
function Create_ViewMetaData return Base.UIComponent_Access;
function Create_ViewParameter return Base.UIComponent_Access;
function Create_Parameter return Base.UIComponent_Access;
function Create_SelectItem return Base.UIComponent_Access;
function Create_SelectItems return Base.UIComponent_Access;
-- ------------------------------
-- Create an UIView component
-- ------------------------------
function Create_View return Base.UIComponent_Access is
begin
return new ASF.Components.Core.Views.UIView;
end Create_View;
-- ------------------------------
-- Create an UIViewAction component
-- ------------------------------
function Create_ViewAction return Base.UIComponent_Access is
begin
return new ASF.Components.Core.Views.UIViewAction;
end Create_ViewAction;
-- ------------------------------
-- Create an UIViewMetaData component
-- ------------------------------
function Create_ViewMetaData return Base.UIComponent_Access is
begin
return new ASF.Components.Core.Views.UIViewMetaData;
end Create_ViewMetaData;
-- ------------------------------
-- Create an UIViewParameter component
-- ------------------------------
function Create_ViewParameter return Base.UIComponent_Access is
begin
return new ASF.Components.Core.Views.UIViewParameter;
end Create_ViewParameter;
-- ------------------------------
-- Create an UIParameter component
-- ------------------------------
function Create_Parameter return Base.UIComponent_Access is
begin
return new ASF.Components.Core.UIParameter;
end Create_Parameter;
-- ------------------------------
-- Create an UISelectItem component
-- ------------------------------
function Create_SelectItem return Base.UIComponent_Access is
begin
return new ASF.Components.Html.Selects.UISelectItem;
end Create_SelectItem;
-- ------------------------------
-- Create an UISelectItems component
-- ------------------------------
function Create_SelectItems return Base.UIComponent_Access is
begin
return new ASF.Components.Html.Selects.UISelectItems;
end Create_SelectItems;
use ASF.Views.Nodes;
URI : aliased constant String := "http://java.sun.com/jsf/core";
ATTRIBUTE_TAG : aliased constant String := "attribute";
CONVERT_DATE_TIME_TAG : aliased constant String := "convertDateTime";
CONVERTER_TAG : aliased constant String := "converter";
FACET_TAG : aliased constant String := "facet";
METADATA_TAG : aliased constant String := "metadata";
PARAM_TAG : aliased constant String := "param";
SELECT_ITEM_TAG : aliased constant String := "selectItem";
SELECT_ITEMS_TAG : aliased constant String := "selectItems";
VALIDATE_LENGTH_TAG : aliased constant String := "validateLength";
VALIDATE_LONG_RANGE_TAG : aliased constant String := "validateLongRange";
VALIDATOR_TAG : aliased constant String := "validator";
VIEW_TAG : aliased constant String := "view";
VIEW_ACTION_TAG : aliased constant String := "viewAction";
VIEW_PARAM_TAG : aliased constant String := "viewParam";
Core_Bindings : aliased constant ASF.Factory.Binding_Array
:= (1 => (Name => ATTRIBUTE_TAG'Access,
Component => null,
Tag => ASF.Views.Nodes.Jsf.Create_Attribute_Tag_Node'Access),
2 => (Name => CONVERT_DATE_TIME_TAG'Access,
Component => null,
Tag => ASF.Views.Nodes.Jsf.Create_Convert_Date_Time_Tag_Node'Access),
3 => (Name => CONVERTER_TAG'Access,
Component => null,
Tag => ASF.Views.Nodes.Jsf.Create_Converter_Tag_Node'Access),
4 => (Name => FACET_TAG'Access,
Component => null,
Tag => ASF.Views.Nodes.Jsf.Create_Facet_Tag_Node'Access),
5 => (Name => METADATA_TAG'Access,
Component => Create_ViewMetaData'Access,
Tag => ASF.Views.Nodes.Jsf.Create_Metadata_Tag_Node'Access),
6 => (Name => PARAM_TAG'Access,
Component => Create_Parameter'Access,
Tag => Create_Component_Node'Access),
7 => (Name => SELECT_ITEM_TAG'Access,
Component => Create_SelectItem'Access,
Tag => Create_Component_Node'Access),
8 => (Name => SELECT_ITEMS_TAG'Access,
Component => Create_SelectItems'Access,
Tag => Create_Component_Node'Access),
9 => (Name => VALIDATE_LENGTH_TAG'Access,
Component => null,
Tag => ASF.Views.Nodes.Jsf.Create_Length_Validator_Tag_Node'Access),
10 => (Name => VALIDATE_LONG_RANGE_TAG'Access,
Component => null,
Tag => ASF.Views.Nodes.Jsf.Create_Range_Validator_Tag_Node'Access),
11 => (Name => VALIDATOR_TAG'Access,
Component => null,
Tag => ASF.Views.Nodes.Jsf.Create_Validator_Tag_Node'Access),
12 => (Name => VIEW_TAG'Access,
Component => Create_View'Access,
Tag => Create_Component_Node'Access),
13 => (Name => VIEW_ACTION_TAG'Access,
Component => Create_ViewAction'Access,
Tag => Create_Component_Node'Access),
14 => (Name => VIEW_PARAM_TAG'Access,
Component => Create_ViewParameter'Access,
Tag => Create_Component_Node'Access)
);
Core_Factory : aliased constant ASF.Factory.Factory_Bindings
:= (URI => URI'Access, Bindings => Core_Bindings'Access);
-- ------------------------------
-- Get the HTML component factory.
-- ------------------------------
function Definition return ASF.Factory.Factory_Bindings_Access is
begin
return Core_Factory'Access;
end Definition;
end ASF.Components.Core.Factory;
|
halma.asm | xalopp/vcs-halma | 0 | 173421 | <reponame>xalopp/vcs-halma
processor 6502
include vcs.h
include macro.h
include halma_macro.h
seg.u vars
org $B2
cursorX .byte
cursorY .byte
selectedX .byte
selectedY .byte
hasSelection .byte
blink .byte
lastSwcha .byte
lastInpt4 .byte
lastSwchb .byte
currentField .byte
scratch0 .byte
scratch1 .byte
seg code_main
org $F800
COLOR_FIELD_TAKEN = $D6
COLOR_FIELD_FREE = $16
COLOR_FIELD_SELECTED = $66
NUMBER_OF_FIELDS = 6
Start
CLD
LDX #$FF
TXS
LDX #0
TXA
TAY
InitMemory
STA 0,X
DEX
BNE InitMemory
LDA #%11100000
STA PF0
LDA #%00111001
STA PF1
LDA #%01110011
STA PF2
LDA #0
STA CTRLPF
LDA #$FF
STA lastSwcha
STA lastSwchb
LDA #$80
STA lastInpt4
JSR Reset
MainLoop:
LDA #$02
STA VSYNC
STA VBLANK
STA WSYNC
STA WSYNC
STA WSYNC
LDA #0
STA VSYNC
Vblank
LDA #53
STA TIM64T
resetField:
CalculateCurrentIndex cursorX,cursorY
LDA $80,Y
AND #$f0
CMP #(COLOR_FIELD_TAKEN & $F0)
BEQ resetFieldTaken
CMP #(COLOR_FIELD_FREE & $F0)
BEQ resetFieldFree
CMP #(COLOR_FIELD_SELECTED & $F0)
BEQ resetFieldSelected
JMP afterResetField
resetFieldTaken:
LDA #COLOR_FIELD_TAKEN
JMP afterResetField
resetFieldFree:
LDA #COLOR_FIELD_FREE
JMP afterResetField
resetFieldSelected:
LDA #COLOR_FIELD_SELECTED
JMP afterResetField
afterResetField:
STA $80,Y
handleJoystick:
LDA SWCHA
TAX
EOR lastSwcha
STA scratch0
TXA
EOR #$FF
AND scratch0
STX lastSwcha
STA scratch0
BMI right
LDA #$40
BIT scratch0
BNE left
LDA #$20
BIT scratch0
BNE down
LDA #$10
BIT scratch0
BNE up
JMP afterHandleJoystick
left:
LDX cursorX
DEX
STX scratch0
BMI afterLeft
CalculateCurrentIndex scratch0, cursorY
LDA $80,Y
BEQ afterLeft
LDA scratch0
STA cursorX
afterLeft:
JMP afterHandleJoystick
right:
LDX cursorX
INX
STX scratch0
TXA
CMP #7
BCS afterRight
CalculateCurrentIndex scratch0, cursorY
LDA $80,Y
BEQ afterRight
LDA scratch0
STA cursorX
afterRight:
JMP afterHandleJoystick
up:
LDX cursorY
DEX
STX scratch0
BMI afterUp
CalculateCurrentIndex cursorX, scratch0
LDA $80,Y
BEQ afterUp
LDA scratch0
STA cursorY
afterUp:
JMP afterHandleJoystick
down:
LDX cursorY
INX
STX scratch0
TXA
CMP #7
BCS afterHandleJoystick
CalculateCurrentIndex cursorX, scratch0
LDA $80,Y
BEQ afterHandleJoystick
LDA scratch0
STA cursorY
afterHandleJoystick:
handleFire:
LDA INPT4
TAX
EOR lastInpt4
STA scratch0
TXA
EOR #$FF
STX lastInpt4
AND scratch0
BPL afterHandleFire
CalculateCurrentIndex cursorX, cursorY
LDA $80,Y
AND #$F0
CMP #(COLOR_FIELD_FREE & $F0)
BNE moveSelection
JSR AttemptMove
JMP afterHandleFire
moveSelection:
deselectCurrent:
LDA hasSelection
BEQ afterDeselectCurrent
CalculateCurrentIndex selectedX, selectedY
LDA #(COLOR_FIELD_TAKEN)
STA $80,Y
afterDeselectCurrent:
LDA hasSelection
BEQ selectNew
LDA #0
STA hasSelection
LDA cursorX
CMP selectedX
BNE selectNew
LDA cursorY
CMP selectedY
BNE selectNew
JMP afterHandleFire
selectNew:
LDA #1
STA hasSelection
LDA cursorX
STA selectedX
LDA cursorY
STA selectedY
CalculateCurrentIndex cursorX, cursorY
LDA #(COLOR_FIELD_SELECTED)
STA $80,Y
afterHandleFire:
handleConsole:
LDA SWCHB
TAX
EOR lastSwchb
STA scratch0
TXA
EOR #$FF
AND scratch0
STX lastSwchb
STA scratch0
LDA #1
BIT scratch0
BNE handleReset
LDA #2
BIT scratch0
BNE handleSelect
JMP afterHandleComsole
handleSelect:
INC currentField
LDA currentField
CMP #(NUMBER_OF_FIELDS)
BCC handleReset
LDA #0
STA currentField
handleReset:
JSR Reset
afterHandleComsole:
animateBlink:
INC blink
LDA blink
LSR
LSR
AND #$07
STA scratch0
CalculateCurrentIndex cursorX,cursorY
LDA $80,Y
AND #$f0
EOR scratch0
STA $80,Y
WaitVblank:
LDA INTIM
BNE WaitVblank
STA WSYNC
STA VBLANK
Kernel:
JMP .rowAlign0
ALIGN 256
.rowAlign0
DrawRow 128
DrawRow 135
DrawRow 142
JMP .rowAlign1
ALIGN 256
.rowAlign1
DrawRow 149
DrawRow 156
DrawRow 163
JMP .rowAlign2
ALIGN 256
.rowAlign2
DrawRow 170
KernelBlank:
LDX #4
KernelBlankLoop:
STA WSYNC
DEX
BNE KernelBlankLoop
Overscan:
LDA #$02
STA VBLANK
LDX #36
OverscanLoop:
STA WSYNC
DEX
BNE OverscanLoop
JMP MainLoop
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; SUBROUTINE AttemptMove
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
AttemptMove SUBROUTINE
LDA hasSelection
BNE AttemptMoveSameLine
RTS
AttemptMoveSameLine:
LDA cursorY
CMP selectedY
BEQ AttemptMoveRight
JMP AttemptMoveSameCol
AttemptMoveRight:
LDA cursorX
CLC
ADC #2
CMP selectedX
BNE AttemptMoveLeft
STA scratch0
SEC
SBC #1
STA scratch1
CalculateCurrentIndex scratch1, cursorY
LDA $80,Y
AND #$F0
CMP #(COLOR_FIELD_TAKEN & $F0)
BNE AttemptMoveLeft
JMP ApplyMove
AttemptMoveLeft:
LDA cursorX
SEC
SBC #2
CMP selectedX
BNE AttemptMoveSameCol
STA scratch0
CLC
ADC #1
STA scratch1
CalculateCurrentIndex scratch1, cursorY
LDA $80,Y
AND #$F0
CMP #(COLOR_FIELD_TAKEN & $F0)
BNE AttemptMoveSameCol
JMP ApplyMove
AttemptMoveSameCol:
LDA cursorX
CMP selectedX
BEQ AttemptMoveDown
RTS
AttemptMoveDown:
LDA cursorY
CLC
ADC #2
CMP selectedY
BNE AttemptMoveUp
STA scratch0
SEC
SBC #1
STA scratch1
CalculateCurrentIndex cursorX, scratch1
LDA $80,Y
AND #$F0
CMP #(COLOR_FIELD_TAKEN & $F0)
BNE AttemptMoveUp
JMP ApplyMove
AttemptMoveUp:
LDA cursorY
SEC
SBC #2
CMP selectedY
BNE AttemptMoveEnd
STA scratch0
CLC
ADC #1
STA scratch1
CalculateCurrentIndex cursorX, scratch1
LDA $80,Y
AND #$F0
CMP #(COLOR_FIELD_TAKEN & $F0)
BNE AttemptMoveEnd
ApplyMove
LDA #COLOR_FIELD_FREE
STA $80,Y
CalculateCurrentIndex selectedX, selectedY
LDA #COLOR_FIELD_FREE
STA $80,Y
CalculateCurrentIndex cursorX, cursorY
LDA #COLOR_FIELD_TAKEN
STA $80,Y
LDA #0
STA hasSelection
AttemptMoveEnd:
RTS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; SUBROUTINE Reset
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Reset SUBROUTINE
LDA #03
STA cursorX
STA cursorY
LDA #0
STA selectedX
STA selectedY
STA hasSelection
STA blink
LDY #49
LDA #0
STA scratch0
LDA #(>startField)
STA scratch1
LDX currentField
INX
SelectField:
DEX
BEQ InitMatrixLoop
LDA scratch0
CLC
ADC #49
STA scratch0
LDA scratch1
ADC #0
STA scratch1
JMP SelectField
InitMatrixLoop:
DEY
LDA (scratch0),Y
STA $80,Y
TYA
BNE InitMatrixLoop
RTS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; CONSTANTS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
C___ = #0
C_FF = COLOR_FIELD_FREE
C__X = COLOR_FIELD_TAKEN
org $FE00
startField
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C__X, C__X, C__X, C__X, C__X, C___
.byte C__X, C__X, C__X, C__X, C__X, C__X, C__X
.byte C__X, C__X, C__X, C_FF, C__X, C__X, C__X
.byte C__X, C__X, C__X, C__X, C__X, C__X, C__X
.byte C___, C__X, C__X, C__X, C__X, C__X, C___
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C__X, C__X, C__X, C__X, C__X, C__X, C__X
.byte C__X, C__X, C__X, C_FF, C__X, C__X, C__X
.byte C__X, C__X, C__X, C__X, C__X, C__X, C__X
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C__X, C__X, C__X, C__X, C__X, C__X
.byte C___, C__X, C__X, C_FF, C__X, C__X, C__X
.byte C___, C__X, C__X, C__X, C__X, C__X, C__X
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C___, C___, C___, C___, C___, C___
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C__X, C__X, C__X, C__X, C__X, C___
.byte C___, C__X, C__X, C_FF, C__X, C__X, C___
.byte C___, C__X, C__X, C__X, C__X, C__X, C___
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C___, C___, C___, C___, C___, C___
.byte C___, C___, C___, C__X, C___, C___, C___
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C__X, C__X, C__X, C__X, C__X, C___
.byte C__X, C__X, C__X, C_FF, C__X, C__X, C__X
.byte C___, C__X, C__X, C__X, C__X, C__X, C___
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C___, C___, C__X, C___, C___, C___
.byte C___, C___, C___, C___, C___, C___, C___
.byte C___, C___, C___, C_FF, C___, C___, C___
.byte C___, C___, C__X, C__X, C__X, C___, C___
.byte C___, C__X, C__X, C__X, C__X, C__X, C___
.byte C__X, C__X, C__X, C__X, C__X, C__X, C__X
.byte C___, C___, C___, C___, C___, C___, C___
.byte C___, C___, C___, C___, C___, C___, C___
org $FFFC
.word Start
.word Start
|
oeis/301/A301483.asm | neoneye/loda-programs | 11 | 11113 | ; A301483: a(n) = floor(a(n-1)/(2^(1/3)-1) with a(1)=1.
; Submitted by <NAME>
; 1,3,11,42,161,619,2381,9160,35241,135583,521631,2006882,7721121,29705639,114287161,439699520,1691665681,6508382763,25039844851,96336348522,370636962881,1425959779059,5486126574341,21106896023080,81205027571321,312421897357543
mov $1,1
lpb $0
sub $0,1
add $2,$1
sub $3,$1
add $3,1
add $3,$2
add $1,$3
add $1,$3
add $1,$3
add $1,1
add $3,$2
lpe
mov $0,$3
add $0,1
|
data/mapHeaders/diglettscave.asm | adhi-thirumala/EvoYellow | 16 | 160443 | DiglettsCave_h:
db CAVERN ; tileset
db DIGLETTS_CAVE_HEIGHT, DIGLETTS_CAVE_WIDTH ; dimensions (y, x)
dw DiglettsCaveBlocks, DiglettsCaveTextPointers, DiglettsCaveScript ; blocks, texts, scripts
db $00 ; connections
dw DiglettsCaveObject ; objects
|
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2_notsx.log_21829_955.asm | ljhsiun2/medusa | 9 | 99133 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1ac35, %rsi
lea addresses_WT_ht+0xc55d, %rdi
nop
nop
nop
nop
nop
sub $6325, %r15
mov $94, %rcx
rep movsl
nop
nop
nop
nop
xor %r10, %r10
lea addresses_UC_ht+0xd035, %rbp
clflush (%rbp)
nop
and $24091, %rsi
movb (%rbp), %r15b
nop
nop
nop
nop
nop
and %rcx, %rcx
lea addresses_A_ht+0x508d, %rsi
lea addresses_A_ht+0x1c755, %rdi
nop
nop
nop
inc %r8
mov $36, %rcx
rep movsb
nop
nop
nop
nop
and $26607, %rcx
lea addresses_A_ht+0x1b555, %r8
nop
nop
nop
nop
nop
dec %r10
and $0xffffffffffffffc0, %r8
movaps (%r8), %xmm6
vpextrq $1, %xmm6, %rcx
nop
nop
nop
nop
xor $3806, %rbp
lea addresses_UC_ht+0x3727, %rsi
lea addresses_A_ht+0x13a05, %rdi
sub $60939, %r15
mov $42, %rcx
rep movsl
nop
nop
nop
nop
nop
and %rbp, %rbp
lea addresses_D_ht+0x1cb95, %r8
and $1883, %rcx
mov (%r8), %r15d
nop
nop
nop
cmp $50853, %rdi
lea addresses_UC_ht+0x17ba5, %rsi
lea addresses_normal_ht+0x1ae15, %rdi
nop
nop
nop
nop
add $34286, %r11
mov $3, %rcx
rep movsq
nop
and %r10, %r10
lea addresses_UC_ht+0x8d92, %r10
nop
sub $63443, %r11
movw $0x6162, (%r10)
nop
nop
nop
nop
nop
and %r11, %r11
lea addresses_A_ht+0xae13, %r11
nop
nop
nop
dec %rdi
movb (%r11), %cl
nop
cmp $21357, %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r15
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r14
push %rbp
push %rcx
push %rsi
// Store
lea addresses_WT+0xbe35, %r12
nop
and $23252, %rbp
movw $0x5152, (%r12)
nop
nop
and %r12, %r12
// Faulty Load
lea addresses_PSE+0x1e435, %rsi
nop
nop
nop
xor %r11, %r11
mov (%rsi), %r10
lea oracles, %rbp
and $0xff, %r10
shlq $12, %r10
mov (%rbp,%r10,1), %r10
pop %rsi
pop %rcx
pop %rbp
pop %r14
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 10, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
|
MIPS32/Upper_Lower.asm | alexPlessias/AssemblyProgrammes | 0 | 244307 | .data
banner: .asciiz "#############################################################\n"
header: .asciiz "###### Convert Upper case to Lower case (for strings) #######\n"
ask_for_string: .asciiz "\nPlease give the String you want to convert:\n"
lower_msg: .asciiz "\nThe Lower case is:\n"
goodbye: .asciiz "\nGoodbye !!!\n\n"
string: .space 150 #150 Bytes it's OK, (1 byte == 1 char
.text
main: li $v0, 4 # Show message.
la $a0, banner
syscall
li $v0, 4 # Show message.
la $a0, header
syscall
li $v0, 4 # Show message.
la $a0, banner
syscall
li $v0, 4 # Show message.
la $a0, ask_for_string
syscall
la $a0,string # Start.
li $a1,150 # Size of string.
li $v0,8
syscall
jal manage_lower_upper # Jump and link to LABEL 'manage_lower_upper'.
li $v0, 4 # Show message.
la $a0, lower_msg
syscall
li $v0, 4 # Show message.
la $a0, string
syscall
li $v0, 4 # Show message.
la $a0, goodbye
syscall
li $v0, 10 # Exit.
syscall
######################## FUNCTION #############################
# Input the adress of string. Output the changed string.
# Check all chars of string and search for Uppercase(65-90) and convert them to Lowercase(+32),
# except the first character, if is Lowercase(97-122) and convert them to Uppercase(-32).
manage_lower_upper : li $v0, 0 # Initialize $V0.
la $t0, string # Load the address of strING into $t0.
li $t1, 0 # Adress position (initialize 0).
li $t2, 65 # Ascii code 65 is A.
li $t3, 90 # Ascii code 90 is Z.
li $t4, 97 # Ascii code 97 is a.
li $t5, 122 # Ascii code 122 is z.
li $t6, 32 # The absolute difference between uppercase and lowercase is 32
lb $t1, 0($t0) # Load the first byte from address in $t0
bge $t1, $t4, max_than_97 # if ($t1 >= 97) [element >= a] goto LABEL max_than_97
j pre_loop
max_than_97: ble $t1, $t5, upper # AND if ($t1 <= 122)[element <= z] the first num is lower.
j pre_loop
upper: sub $t1, $t1,$t6 # Lowercase - 32 = upper.
sb $t1, 0($t0) # Store the changed byte($t1) at ($t0).
j pre_loop
pre_loop: add $t0,$t0, 1 # Increase the address by 1.
loop: lb $t1, 0($t0) # Load the byte from address[string($t0)] to $t1.
beq $t1, $zero, end # if ($t1 == 0) then goto LABEL 'end'.
bge $t1, $t2, max_than_65 # if ($t1 >= 65)[element >= A].
continue: add $t0, $t0, 1 # Increase the address by 1.
j loop
max_than_65: ble $t1, $t3, lower # AND if ($t1 <= 65)[element <= Z].
j continue
lower: add $t1, $t1,$t6 # Uppercase + 32 = lower.
sb $t1, 0($t0) # Store the changed byte($t1) at ($t0).
j continue
end: jr $ra |
orka/src/orka/implementation/orka-scenes-generic_scene_trees.adb | onox/orka | 52 | 27777 | <reponame>onox/orka<gh_stars>10-100
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 onox <<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.
package body Orka.Scenes.Generic_Scene_Trees is
function To_Cursor (Object : Tree; Name : String) return Cursor is
use type SU.Unbounded_String;
begin
for Level_Index in Object.Levels.First_Index .. Object.Levels.Last_Index loop
declare
Node_Level : Level renames Object.Levels (Level_Index);
begin
for Node_Index in Node_Level.Nodes.First_Index .. Node_Level.Nodes.Last_Index loop
declare
Current_Node : Node renames Node_Level.Nodes (Node_Index);
begin
if Current_Node.Name = Name then
return Cursor'(Level => Level_Index, Offset => Node_Index);
end if;
end;
end loop;
end;
end loop;
raise Unknown_Node_Error;
end To_Cursor;
procedure Update_Tree (Object : in out Tree) is
begin
Object.Update_Tree (Transforms.Identity_Matrix);
end Update_Tree;
procedure Update_Tree (Object : in out Tree; Root_Transform : Transforms.Matrix4) is
use Transforms;
Root_Local : constant Matrix4 :=
Object.Levels (Object.Levels.First_Index).Local_Transforms.Element (1);
Root_Visible : constant Boolean :=
Object.Levels (Object.Levels.First_Index).Local_Visibilities.Element (1);
begin
-- Copy local data of root node to its world data
Object.Levels (Object.Levels.First_Index).World_Transforms.Replace_Element
(1, Root_Transform * Root_Local);
Object.Levels (Object.Levels.First_Index).World_Visibilities.Replace_Element
(1, Root_Visible);
for Level_Index in Object.Levels.First_Index .. Object.Levels.Last_Index - 1 loop
declare
Current_Level : Level renames Object.Levels (Level_Index);
Parent_Level_W : Matrix_Vectors.Vector renames Current_Level.World_Transforms;
Parent_Level_V : Boolean_Vectors.Vector renames Current_Level.World_Visibilities;
Parent_Level_N : Node_Vectors.Vector renames Current_Level.Nodes;
procedure Update (Child_Level : in out Level) is
begin
for Parent_Index in Parent_Level_N.First_Index .. Parent_Level_N.Last_Index loop
declare
Parent_Transform : Matrix4 renames Parent_Level_W.Element (Parent_Index);
Parent_Visible : Boolean renames Parent_Level_V.Element (Parent_Index);
Parent : Node renames Parent_Level_N.Element (Parent_Index);
begin
for Node_Index in Parent.Offset .. Parent.Offset + Parent.Count - 1 loop
declare
Local_Transform : Matrix4 renames
Child_Level.Local_Transforms.Element (Node_Index);
Local_Visible : Boolean renames
Child_Level.Local_Visibilities.Element (Node_Index);
begin
Child_Level.World_Transforms.Replace_Element
(Node_Index, Parent_Transform * Local_Transform);
Child_Level.World_Visibilities.Replace_Element
(Node_Index, Parent_Visible and then Local_Visible);
end;
end loop;
end;
end loop;
end Update;
begin
Object.Levels.Update_Element (Level_Index + 1, Update'Access);
end;
end loop;
end Update_Tree;
procedure Set_Visibility (Object : in out Tree; Node : Cursor; Visible : Boolean) is
Node_Level : Level renames Object.Levels (Node.Level);
begin
Node_Level.Local_Visibilities.Replace_Element (Node.Offset, Visible);
end Set_Visibility;
function Visibility (Object : Tree; Node : Cursor) return Boolean is
Node_Level : Level renames Object.Levels (Node.Level);
begin
return Node_Level.World_Visibilities.Element (Node.Offset);
end Visibility;
procedure Set_Local_Transform
(Object : in out Tree;
Node : Cursor;
Transform : Transforms.Matrix4)
is
Node_Level : Level renames Object.Levels (Node.Level);
begin
Node_Level.Local_Transforms.Replace_Element (Node.Offset, Transform);
end Set_Local_Transform;
function World_Transform (Object : Tree; Node : Cursor) return Transforms.Matrix4 is
Node_Level : Level renames Object.Levels (Node.Level);
begin
return Node_Level.World_Transforms.Element (Node.Offset);
end World_Transform;
function Root_Name (Object : Tree) return String is
(SU.To_String (Object.Levels (Object.Levels.First_Index).Nodes.Element (1).Name));
function Create_Tree (Name : String) return Tree is
begin
return Object : Tree do
Object.Levels.Append (Level'(others => <>));
declare
Root_Level : Level renames Object.Levels (Object.Levels.First_Index);
begin
Root_Level.Nodes.Append (Node'(Name => SU.To_Unbounded_String (Name),
Offset => 1,
Count => 0));
Root_Level.Local_Transforms.Append (Transforms.Identity_Matrix);
Root_Level.World_Transforms.Append (Transforms.Identity_Matrix);
Root_Level.Local_Visibilities.Append (True);
Root_Level.World_Visibilities.Append (True);
end;
end return;
end Create_Tree;
procedure Add_Node (Object : in out Tree; Name, Parent : String) is
begin
Object.Add_Node (SU.To_Unbounded_String (Name), Parent);
end Add_Node;
procedure Add_Node (Object : in out Tree; Name : SU.Unbounded_String; Parent : String) is
Parent_Cursor : constant Cursor := To_Cursor (Object, Parent);
begin
-- Add a new level if parent is a leaf node
if Parent_Cursor.Level = Positive (Object.Levels.Length) then
Object.Levels.Append (Level'(others => <>));
end if;
declare
Parent_Level : Level renames Object.Levels (Parent_Cursor.Level);
Child_Level : Level renames Object.Levels (Parent_Cursor.Level + 1);
Parent_Node : Node renames Parent_Level.Nodes (Parent_Cursor.Offset);
New_Node_Index : constant Positive := Parent_Node.Offset + Parent_Node.Count;
procedure Increment_Offset (Parent : in out Node) is
begin
Parent.Offset := Parent.Offset + 1;
end Increment_Offset;
Parent_Last_Index : constant Positive := Parent_Level.Nodes.Last_Index;
begin
-- If the node (in level j) has a parent that is the last node in level i,
-- then the node can simply be appended to level j, which is faster to do
if Parent_Cursor.Offset = Parent_Last_Index then
Child_Level.Nodes.Append (Node'(Name => Name,
Offset => 1,
Count => 0));
Child_Level.Local_Transforms.Append (Transforms.Identity_Matrix);
Child_Level.World_Transforms.Append (Transforms.Identity_Matrix);
Child_Level.Local_Visibilities.Append (True);
Child_Level.World_Visibilities.Append (True);
else
-- Insert new node and its transforms
Child_Level.Nodes.Insert (New_Node_Index, Node'(Name => Name,
Offset => 1,
Count => 0));
Child_Level.Local_Transforms.Insert (New_Node_Index, Transforms.Identity_Matrix);
Child_Level.World_Transforms.Insert (New_Node_Index, Transforms.Identity_Matrix);
Child_Level.Local_Visibilities.Insert (New_Node_Index, True);
Child_Level.World_Visibilities.Insert (New_Node_Index, True);
-- After inserting a new node (in level j), increment the offsets
-- of all parents that come after the new node's parent (in level i)
for Parent_Index in Parent_Cursor.Offset + 1 .. Parent_Last_Index loop
Parent_Level.Nodes.Update_Element (Parent_Index, Increment_Offset'Access);
end loop;
end if;
Parent_Node.Count := Parent_Node.Count + 1;
end;
end Add_Node;
procedure Remove_Node (Object : in out Tree; Name : String) is
use Ada.Containers;
Node_Cursor : constant Cursor := To_Cursor (Object, Name);
Current_First_Index : Positive := Node_Cursor.Offset;
Current_Last_Index : Positive := Node_Cursor.Offset;
-- Assign a dummy value to silence any warnings about being uninitialized
Next_First_Index, Next_Last_Index : Positive := Positive'Last;
Empty_Level_Index : Positive := Object.Levels.Last_Index + 1;
begin
if Node_Cursor.Level = Positive'First and Node_Cursor.Offset = Positive'First then
raise Root_Removal_Error with "Cannot remove root node";
end if;
-- If the node that is the root of the subtree that is going to
-- be removed, has a parent, then reduce the count of this parent.
if Node_Cursor.Level > Object.Levels.First_Index then
declare
Parent_Level : Level renames Object.Levels (Node_Cursor.Level - 1);
After_Parent_Index : Positive := Parent_Level.Nodes.Last_Index + 1;
begin
for Parent_Index in
Parent_Level.Nodes.First_Index .. Parent_Level.Nodes.Last_Index
loop
declare
Parent : Node renames Parent_Level.Nodes (Parent_Index);
begin
if Node_Cursor.Offset in Parent.Offset .. Parent.Offset + Parent.Count - 1 then
Parent.Count := Parent.Count - 1;
After_Parent_Index := Parent_Index + 1;
exit;
end if;
end;
end loop;
-- Reduce the offsets of any nodes that come after the parent node
for Parent_Index in After_Parent_Index .. Parent_Level.Nodes.Last_Index loop
declare
Parent : Node renames Parent_Level.Nodes (Parent_Index);
begin
Parent.Offset := Parent.Offset - 1;
end;
end loop;
end;
end if;
for Level_Index in Node_Cursor.Level .. Object.Levels.Last_Index loop
declare
Node_Level : Level renames Object.Levels (Level_Index);
Min_Index : Positive'Base := Current_Last_Index + 1;
Max_Index : Positive'Base := Current_First_Index - 1;
begin
-- Because child nodes in the next level (in all levels actually)
-- are adjacent, we can just use the offset of the first node
-- that is not a leaf node and the offset + count - 1 of the last
-- node that is not a leaf node.
for Node_Index in Current_First_Index .. Current_Last_Index loop
declare
Current_Node : Node renames Node_Level.Nodes (Node_Index);
begin
if Current_Node.Count /= 0 then
Min_Index := Positive'Min (Node_Index, Min_Index);
Max_Index := Positive'Max (Node_Index, Max_Index);
end if;
end;
end loop;
-- Before removing the nodes and transforms, compute the range
-- of the child nodes, if any, in the next level
if Min_Index in Current_First_Index .. Current_Last_Index then
declare
Min_Node : Node renames Node_Level.Nodes (Min_Index);
Max_Node : Node renames Node_Level.Nodes (Max_Index);
begin
-- Nodes to iterate over in next level
Next_First_Index := Min_Node.Offset;
Next_Last_Index := Max_Node.Offset + Max_Node.Count - 1;
-- There are child nodes that are going to be removed next
-- iteration, so we need to reduce the offset of the nodes
-- that come after Current_Last_Index.
declare
Count : constant Positive := Next_Last_Index - Next_First_Index + 1;
begin
for Parent_Index in Current_Last_Index + 1 .. Node_Level.Nodes.Last_Index loop
declare
Parent : Node renames Node_Level.Nodes (Parent_Index);
begin
Parent.Offset := Parent.Offset - Count;
end;
end loop;
end;
end;
end if;
-- Remove all nodes between Current_First_Index .. Current_Last_Index in current level
declare
Count : constant Count_Type :=
Count_Type (Current_Last_Index - Current_First_Index + 1);
begin
Node_Level.Nodes.Delete (Current_First_Index, Count);
Node_Level.Local_Transforms.Delete (Current_First_Index, Count);
Node_Level.World_Transforms.Delete (Current_First_Index, Count);
Node_Level.Local_Visibilities.Delete (Current_First_Index, Count);
Node_Level.World_Visibilities.Delete (Current_First_Index, Count);
end;
-- Record the level index of the first empty level. Any levels down
-- the tree should be(come) empty as well.
if Node_Level.Nodes.Is_Empty then
Empty_Level_Index := Positive'Min (Empty_Level_Index, Level_Index);
end if;
-- Exit if there are no nodes that have children
exit when Min_Index not in Current_First_Index .. Current_Last_Index;
-- If we reach this code here, then there is a node that has
-- children. The variables below have been updated in the if
-- block above.
pragma Assert (Next_First_Index /= Positive'Last);
pragma Assert (Next_Last_Index /= Positive'Last);
Current_First_Index := Next_First_Index;
Current_Last_Index := Next_Last_Index;
end;
end loop;
-- Remove empty levels
if Empty_Level_Index < Object.Levels.Last_Index + 1 then
declare
Count : constant Count_Type :=
Count_Type (Object.Levels.Last_Index - Empty_Level_Index + 1);
begin
Object.Levels.Delete (Empty_Level_Index, Count);
end;
end if;
end Remove_Node;
end Orka.Scenes.Generic_Scene_Trees;
|
_anim/obj64.asm | vladjester2020/Sonic1TMR | 0 | 98975 | <reponame>vladjester2020/Sonic1TMR<filename>_anim/obj64.asm<gh_stars>0
; ---------------------------------------------------------------------------
; Animation script - bubbles (LZ)
; ---------------------------------------------------------------------------
dc.w byte_129AA-Ani_obj64
dc.w byte_129B0-Ani_obj64
dc.w byte_129B6-Ani_obj64
dc.w byte_129BE-Ani_obj64
dc.w byte_129BE-Ani_obj64
dc.w byte_129C0-Ani_obj64
dc.w byte_129C6-Ani_obj64
byte_129AA: dc.b $E, 0, 1, 2, $FC, 0
byte_129B0: dc.b $E, 1, 2, 3, 4, $FC
byte_129B6: dc.b $E, 2, 3, 4, 5, 6, $FC, 0
byte_129BE: dc.b 4, $FC
byte_129C0: dc.b 4, 6, 7, 8, $FC, 0
byte_129C6: dc.b $F, $13, $14, $15, $FF
even |
src/test/ref/ptrtest.asm | jbrandwood/kickc | 2 | 9017 | // Test all types of pointers
// Commodore 64 PRG executable file
.file [name="ptrtest.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.segment Code
main: {
// lvalue()
jsr lvalue
// rvalue()
jsr rvalue
// rvaluevar()
jsr rvaluevar
// lvaluevar()
jsr lvaluevar
// }
rts
}
lvalue: {
// A constant pointer
.label SCREEN = $400
// *SCREEN = 1
// LValue constant pointer dereference
lda #1
sta SCREEN
// SCREEN[1] = 2
// LValue constant array constant indexing
lda #2
sta SCREEN+1
tax
__b1:
// while(i<10)
cpx #$a
bcc __b2
// }
rts
__b2:
// SCREEN[i++] = 3
lda #3
sta SCREEN,x
// SCREEN[i++] = 3;
inx
jmp __b1
}
rvalue: {
// A constant pointer
.label SCREEN = $400
.label screen2 = $400
// b = SCREEN[1]
// RValue constant array pointer constant index
lda SCREEN+1
ldx #2
__b1:
// while(i<10)
cpx #$a
bcc __b2
// *screen2 = b
sta screen2
// }
rts
__b2:
// b = SCREEN[i++]
lda SCREEN,x
// b = SCREEN[i++];
inx
jmp __b1
}
rvaluevar: {
.label screen2 = $400
.label screen = 2
ldy #0
lda #<$400
sta.z screen
lda #>$400
sta.z screen+1
ldx #2
__b1:
// while(i<10)
cpx #$a
bcc __b2
// *screen2 = b
sty screen2
// }
rts
__b2:
// b = *screen
ldy #0
lda (screen),y
tay
// screen++;
inc.z screen
bne !+
inc.z screen+1
!:
// i++;
inx
jmp __b1
}
lvaluevar: {
// LValue Variable pointer dereference
.const b = 4
.label screen = 2
lda #<$400
sta.z screen
lda #>$400
sta.z screen+1
ldx #2
__b1:
// while(i<10)
cpx #$a
bcc __b2
// }
rts
__b2:
// *screen = b
lda #b
ldy #0
sta (screen),y
// screen++;
inc.z screen
bne !+
inc.z screen+1
!:
// i++;
inx
jmp __b1
}
|
Cryptol.agda | mjhopkins/PowerOfPi | 1 | 12125 | <filename>Cryptol.agda
module Cryptol where
open import Bool
open import Nat
open import Eq
postulate
Int : Set
Float : Set
Char : Set
String : Set
{-# BUILTIN INTEGER Int #-}
{-# BUILTIN FLOAT Float #-}
{-# BUILTIN CHAR Char #-}
{-# BUILTIN STRING String #-}
data List (A : Set) : Set where
Nil : List A
Cons : A → List A → List A
{-# BUILTIN LIST List #-}
{-# BUILTIN NIL Nil #-}
{-# BUILTIN CONS Cons #-}
append : {A : Set} → List A → List A → List A
append Nil ys = ys
append (Cons x xs) ys = Cons x (append xs ys)
infixr 5 _::_
data Vec (A : Set) : ℕ → Set where
Nil : Vec A Z
_::_ : {n : ℕ} → A → Vec A n → Vec A (S n)
_++_ : ∀ {A m n} → Vec A m → Vec A n → Vec A (m + n)
Nil ++ ys = ys
(x :: xs) ++ ys = x :: (xs ++ ys)
data Bit : Set where
O : Bit
I : Bit
Word : ℕ → Set
Word n = Vec Bit n
data SnocView {A : Set} : List A → Set where
Nil : SnocView Nil
Snoc : (xs : List A) → (x : A) → SnocView (append xs (Cons x Nil))
view : {A : Set} → (xs : List A) → SnocView xs
view Nil = Nil
view (Cons x xs) with view xs
view (Cons x _) | Nil = Snoc Nil x
view (Cons x _) | Snoc ys y = Snoc (Cons x ys) y
rotateRight : {A : Set} → List A → List A
rotateRight xs with view xs
rotateRight _ | Nil = Nil
rotateRight _ | Snoc ys y = Cons y ys
take : ∀ {A m} → (n : ℕ) → Vec A (n + m) → Vec A n
take Z l = Nil
take (S k) (x :: xs) = x :: take k xs
drop : ∀ {A m} → (n : ℕ) → Vec A (n + m) → Vec A m
drop Z xs = xs
drop (S k) (x :: xs) = drop k xs
split : ∀ {A} → (n : ℕ) → (m : ℕ) → Vec A (m × n) → Vec (Vec A n) m
split n Z Nil = Nil
split n (S k) xs = (take n xs) :: (split n k (drop n xs))
concat : ∀ {A n m} → Vec (Vec A n) m → Vec A (m × n)
concat Nil = Nil
concat (xs :: xss) = xs ++ concat xss
postulate
splitConcatLemma : ∀ {A : Set} → (m : ℕ) → (n : ℕ) → (xs : Vec A (m × n)) → concat (split n m xs) ≡ xs
takeDropLemma : ∀ {A : Set} → (n : ℕ) → (m : ℕ) → (xs : Vec A (n + m)) → ((take n xs) ++ (drop n xs)) ≡ xs
takeDropLemma Z m _ = Refl
takeDropLemma (S k) m (x :: xs) with ((take k xs) ++ (drop k xs)) | takeDropLemma k _ xs
takeDropLemma (S k) m (x :: xs) | ._ | Refl = Refl
data SplitView {A : Set} : {n : ℕ} → (m : ℕ) → Vec A (m × n) → Set where
[_] : ∀ {m n} → (xss : Vec (Vec A n) m) → SplitView m (concat xss)
splitView : {A : Set} → (n : ℕ) → (m : ℕ) → (xs : Vec A (m × n)) → SplitView m xs
splitView n m xs with concat (split n m xs) | [ split n m xs ] | splitConcatLemma m n xs
splitView n m xs | _ | v | Refl = v
data TakeView (A : Set) (m : ℕ) (n : ℕ) : Vec A (m + n) → Set where
Take : (xs : Vec A m) → (ys : Vec A n) → TakeView A m n (xs ++ ys)
--sv : {A : Set} → (n : ℕ) → (m : ℕ) → Vec a
swab : Word 32 → Word 32
swab xs with splitView 8 4 xs
swab _ | [ a :: b :: c :: d :: Nil ] = concat (b :: a :: c :: d :: Nil)
|
programs/oeis/186/A186343.asm | karttu/loda | 0 | 163146 | <reponame>karttu/loda
; A186343: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) before g(j) when f(i)=g(j), where f and g are the pentagonal numbers and the octagonal numbers. Complement of A186342.
; 2,4,6,9,11,14,16,19,21,23,26,28,31,33,35,38,40,43,45,47,50,52,55,57,60,62,64,67,69,72,74,76,79,81,84,86,89,91,93,96,98,101,103,105,108,110,113,115,117,120,122,125,127,130,132,134,137,139,142,144,146,149,151,154,156,159,161,163,166,168,171,173,175,178,180,183,185,188,190,192,195,197,200,202,204,207
mov $7,$0
add $0,12
mov $2,$0
mov $3,2
lpb $2,1
mov $4,$3
mov $5,$0
lpb $4,1
sub $4,$3
mov $3,$5
pow $5,2
lpe
lpb $5,1
add $1,1
sub $5,$3
trn $5,$3
add $3,1
lpe
mov $2,1
lpe
sub $1,4
mov $6,$7
mul $6,2
add $1,$6
|
src/Numeric/Nat.agda | t-more/agda-prelude | 111 | 13410 |
module Numeric.Nat where
open import Numeric.Nat.BinarySearch public
open import Numeric.Nat.Divide.Properties public
open import Numeric.Nat.Divide public
open import Numeric.Nat.DivMod public
open import Numeric.Nat.GCD.Extended public
open import Numeric.Nat.GCD.Properties public
open import Numeric.Nat.GCD public
open import Numeric.Nat.LCM.Properties public
open import Numeric.Nat.LCM public
open import Numeric.Nat.Modulo public
open import Numeric.Nat.Pow public
open import Numeric.Nat.Prime.Properties public
open import Numeric.Nat.Prime public
open import Numeric.Nat.Properties public
open import Numeric.Nat.Sqrt public
|
tests/syntax/good/testfile-params-2.adb | xuedong/mini-ada | 0 | 24151 | with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
procedure P is begin x := 0; end;
begin P; end;
|
Transynther/x86/_processed/NC/_ht_st_zr_/i7-8650U_0xd2_notsx.log_818_1402.asm | ljhsiun2/medusa | 9 | 11318 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xdb42, %r11
nop
nop
add %rsi, %rsi
mov $0x6162636465666768, %rdx
movq %rdx, %xmm1
vmovups %ymm1, (%r11)
nop
cmp %r14, %r14
lea addresses_UC_ht+0x16042, %r14
nop
nop
nop
nop
nop
add $46444, %r13
movl $0x61626364, (%r14)
nop
nop
nop
nop
dec %r15
lea addresses_normal_ht+0x11362, %r13
nop
nop
nop
nop
nop
cmp %rdx, %rdx
vmovups (%r13), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %r11
nop
and %rdx, %rdx
lea addresses_WT_ht+0xcf42, %r13
nop
nop
nop
nop
sub $18251, %rcx
vmovups (%r13), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %r15
nop
nop
nop
and %rcx, %rcx
lea addresses_WC_ht+0x13f7e, %r15
and $19473, %r14
mov $0x6162636465666768, %rcx
movq %rcx, (%r15)
nop
sub $21647, %r14
lea addresses_WT_ht+0x79f1, %rdx
cmp $60985, %rsi
movb (%rdx), %r14b
nop
nop
add %r13, %r13
lea addresses_WT_ht+0x19e0a, %rsi
lea addresses_A_ht+0x1cf96, %rdi
nop
nop
dec %r13
mov $100, %rcx
rep movsb
nop
and %rdi, %rdi
lea addresses_A_ht+0x1d395, %r11
nop
add %r13, %r13
mov (%r11), %rcx
add %rdi, %rdi
lea addresses_A_ht+0x191e2, %rdi
nop
nop
xor $38954, %rdx
vmovups (%rdi), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %rcx
nop
nop
nop
add $63731, %r11
lea addresses_D_ht+0x3d72, %rdi
nop
nop
and $49071, %rsi
mov (%rdi), %dx
cmp $15389, %r15
lea addresses_D_ht+0x157d6, %r13
dec %rdx
mov (%r13), %esi
and $4376, %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r15
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
lea addresses_WT+0x1ff3e, %rsi
lea addresses_A+0x14b42, %rdi
nop
nop
nop
sub $10844, %rdx
mov $71, %rcx
rep movsq
nop
nop
add %rsi, %rsi
// Store
lea addresses_D+0x1ef92, %r15
nop
nop
nop
nop
xor %r14, %r14
mov $0x5152535455565758, %rcx
movq %rcx, (%r15)
nop
nop
nop
add $2373, %r15
// Store
lea addresses_A+0x1082a, %rdi
nop
nop
nop
nop
nop
add %rcx, %rcx
mov $0x5152535455565758, %rbp
movq %rbp, (%rdi)
nop
nop
nop
nop
nop
add %rdx, %rdx
// Faulty Load
mov $0x459c5f0000000f42, %r15
nop
nop
nop
nop
nop
dec %rsi
vmovups (%r15), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %rcx
lea oracles, %r15
and $0xff, %rcx
shlq $12, %rcx
mov (%r15,%rcx,1), %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 2, 'same': False}}
{'39': 417, '00': 26, '44': 256, '49': 103, '45': 16}
39 39 39 00 44 00 00 49 44 00 44 49 39 44 49 39 39 49 45 00 39 39 39 49 44 49 39 44 00 44 44 49 44 39 44 44 44 39 39 39 44 49 39 45 44 39 49 49 39 44 44 39 44 44 39 39 00 39 49 49 39 39 49 44 39 39 44 39 39 39 39 39 39 39 39 49 49 44 39 39 39 44 49 39 39 39 39 39 44 39 39 39 44 44 39 39 44 39 44 49 49 39 44 44 39 44 39 39 39 39 44 00 39 39 39 39 44 39 45 44 39 39 39 44 49 44 39 39 49 39 39 39 39 49 39 39 39 39 39 49 39 00 39 44 44 44 39 45 44 39 39 49 44 39 49 45 44 44 39 39 39 44 49 49 39 49 44 39 00 44 44 39 39 39 39 44 39 39 39 39 44 39 39 44 49 49 44 44 39 39 44 39 39 49 39 39 39 39 39 39 39 39 44 44 39 39 44 39 39 45 49 39 39 39 39 44 44 39 49 44 44 44 39 49 39 44 44 44 39 00 39 44 39 49 49 44 39 39 39 44 49 44 39 44 44 39 39 44 39 39 44 39 39 44 39 39 44 44 39 45 44 39 44 49 49 39 39 44 39 39 44 39 39 39 00 39 49 44 44 39 44 39 39 39 44 44 49 39 39 39 00 49 39 39 39 39 39 49 44 44 49 39 39 49 39 39 49 44 39 44 39 39 39 39 44 44 44 44 44 49 49 39 39 39 39 44 39 44 39 39 39 39 39 49 44 44 39 44 39 49 39 39 39 00 44 39 39 39 44 44 39 39 39 45 49 39 49 44 39 49 39 39 39 00 44 39 39 44 44 39 39 39 39 39 39 39 39 39 44 00 39 44 39 39 39 39 39 49 39 44 39 39 39 44 44 44 44 39 44 44 39 39 49 44 49 39 44 39 44 44 49 49 00 39 39 45 39 44 44 39 49 44 39 44 44 39 39 49 44 44 44 39 44 39 39 39 39 44 39 39 39 39 39 44 49 44 49 44 44 44 44 49 39 44 39 39 39 44 44 39 44 44 39 44 49 44 44 44 49 00 39 44 39 44 44 39 39 44 00 39 39 39 49 39 39 39 39 45 39 39 39 39 44 39 44 49 39 44 44 39 39 39 49 39 39 44 44 39 39 39 39 39 49 39 39 44 39 44 39 39 39 44 39 39 39 49 49 44 49 39 49 44 39 39 39 39 00 39 44 39 44 39 39 39 39 44 44 39 39 44 44 44 49 44 44 39 39 49 39 44 39 44 39 49 44 39 49 39 44 39 44 39 49 44 44 44 44 39 39 44 39 39 39 39 44 49 39 39 39 39 44 44 39 44 39 44 39 39 44 00 49 44 49 44 44 45 39 39 39 49 45 44 00 39 39 39 44 39 39 44 49 44 49 39 44 39 44 39 39 39 39 39 49 44 49 39 49 45 44 39 44 39 44 44 39 44 39 44 39 44 39 39 39 39 00 44 44 39 44 44 39 39 39 44 39 39 44 39 44 44 44 49 39 45 39 49 39 39 49 44 44 49 39 39 44 44 44 39 39 49 44 39 39 39 39 44 44 39 44 49 44 39 39 44 49 39 44 44 49 39 39 44 44 44 39 49 39 44 44 39 39 49 44 00 39 39 39 44 39 39 44 39 44 49 44 39 39 39 44 39 39 39 39 39 49 44 39 39 39 39 39 39 39 39 39 44 39 39 44 44 44 45 39 39 49 39 00 39 44 39 44 44 44 44 44 44 39 44 39 39 39 44 39 39 39 44 39 39 44 39 44 44 44 39 39 49 44 39 39 49 39 39 45 39 44 39 39 39 39 39 39 49 00 44 44 39 44 49
*/
|
Sources/Globe_3d/objects/globe_3d-tri_mesh.adb | ForYouEyesOnly/Space-Convoy | 1 | 18411 | <filename>Sources/Globe_3d/objects/globe_3d-tri_mesh.adb
pragma Warnings (Off);
pragma Style_Checks (Off);
with GLOBE_3D.Options,
GLOBE_3D.Textures,
GLOBE_3D.Math;
with Ada.Exceptions; use Ada.Exceptions;
with ada.text_io; use ada.text_io;
with ada.unchecked_Conversion;
with System;
package body GLOBE_3D.tri_Mesh is
use GLOBE_3D.Options;
package G3DT renames GLOBE_3D.Textures;
package G3DM renames GLOBE_3D.Math;
procedure dummy is begin null; end;
-- 'vertex_cache_optimise' is based on algorithm descibed here . .. http://home.comcast.net/~tom_forsyth/papers/fast_vert_cache_opt.html
--
procedure vertex_cache_optimise (Vertices : in out GL.geometry.GL_Vertex_array; Indices : in out GL.geometry.vertex_Id_array)
is
use GL, GL.Geometry;
--subtype vertex_Id is Positive;
subtype triangle_Id is positive_uInt;
type triangle_Indices is array (Positive range <>) of triangle_Id;
function Indices_Index (the_Face : in positive_uInt; the_Vertex : in positive_uInt) return positive_uInt
is
begin
return 3 * (the_Face - 1) + the_Vertex;
end;
function face_vertex_Id (the_Face : in positive_uInt; the_Vertex : in positive_uInt) return GL.geometry.Vertex_id
is
begin
return Indices (indices_Index (the_Face, the_Vertex));
end;
Max_triangles_per_vertex : constant := 150; -- tbd : what is a sensible size here ?
MaxSizeVertexCache : constant := 35;
type vco_Vertex is
record
cache_Position : Integer := - 1; -- Its position in the modelled cache ( - 1 if it is not in the cache)
Score : GL.Double; -- Its current score
Triangles : triangle_Indices (1 .. Max_triangles_per_vertex); -- The list of triangle indices that use it, ordered so the triangle indices yet to be added are listed first,
-- followed by the triangle indices that have already been added to the draw list.
tri_Count : Natural := 0; -- tbd : should only be needed for debugging
tri_Count_unadded : Natural; -- The number of triangles not yet added that use it
end record;
function Score_of (the_Vertex : in vco_Vertex) return GL.Double
is
begin
if the_Vertex.tri_Count_unadded = 0 then -- No tri needs this vertex!
return - 1.0;
end if;
declare
use globe_3d.REF;
CacheDecayPower : constant := 1.5;
LastTriScore : constant := 0.75;
ValenceBoostScale : constant := 2.0;
ValenceBoostPower : constant := 0.5;
Score : GL.Double := 0.0;
cache_Position : Integer renames the_Vertex.cache_Position;
begin
if cache_Position < 0 then -- Vertex is not in LRU cache
null; -- so no score.
else
if cache_Position < 3 then -- This vertex was used in the last triangle, so it has a fixed score, whichever of the three
Score := LastTriScore; -- it's in. Otherwise, you can get very different answers depending on whether you add
-- the triangle 1, 2, 3 or 3, 1, 2 - which is silly.
else
pragma assert (cache_Position < MaxSizeVertexCache);
declare
Scaler : constant := 1.0 / (MaxSizeVertexCache - 3);
begin
Score := 1.0 - GL.Double (cache_Position - 3) * Scaler; -- Points for being high in the cache.
Score := Score ** CacheDecayPower;
end;
end if;
end if;
declare
valence_Boost : GL.Double := GL.Double (the_Vertex.tri_Count_unadded) ** ( - ValenceBoostPower);
begin
Score := Score + ValenceBoostScale * valence_Boost; -- Bonus points for having a low number of tris still to
end; -- use the vert, so we get rid of lone verts quickly.
return Score;
end;
end Score_of;
procedure rid_Triangle (in_Vertex : in out vco_Vertex;
the_Triangle : in triangle_Id)
is
triangle_Found : Boolean := False;
begin
for Each in 1 .. in_Vertex.tri_Count_unadded loop
if triangle_Found then
in_Vertex.Triangles (Each - 1) := in_Vertex.Triangles (Each);
elsif in_Vertex.Triangles (Each) = the_Triangle then
triangle_Found := True;
end if;
end loop;
in_Vertex.tri_Count_unadded := in_Vertex.tri_Count_unadded - 1;
end;
type vco_Triangle is
record
Added : Boolean := False; -- Whether it has been added to the draw list or not
Score : GL.Double; -- the triangles score (the sum of the scores of its vertices)
end record;
type vco_vertex_Array is array (Vertices'Range) of vco_Vertex;
type access_vco_vertex_Array is access all vco_vertex_Array;
procedure free is new ada.unchecked_deallocation (vco_vertex_Array, access_vco_vertex_Array);
num_Faces : constant positive_uInt := indices'Length / 3;
vco_Vertices : access_vco_vertex_Array := new vco_vertex_Array; -- can be very large, so create in the heap
vco_Triangles : array (1 .. num_Faces) of vco_Triangle;
type LRU_Cache is array (Natural range <>) of GL.geometry.vertex_Id;
the_LRU_Cache : LRU_Cache (0 .. MaxSizeVertexCache - 1);
LRU_Cache_last : Integer := - 1;
procedure add_recent_Vertices_to_LRU_Cache (v1, v2, v3 : in GL.geometry.vertex_Id)
is
prior_Cache : LRU_Cache := the_LRU_Cache (0 .. LRU_Cache_last);
begin
the_LRU_Cache (0) := v1;
the_LRU_Cache (1) := v2;
the_LRU_Cache (2) := v3;
LRU_Cache_last := 2;
for Each in prior_Cache'Range loop
if not (prior_Cache (Each) = v1
or else prior_Cache (Each) = v2
or else prior_Cache (Each) = v3)
then
LRU_Cache_last := LRU_Cache_last + 1;
the_LRU_Cache (LRU_Cache_last) := prior_Cache (Each);
end if;
end loop;
end add_recent_Vertices_to_LRU_Cache;
function tri_Score_of (triangle_Id : in positive_uInt) return GL.Double
is
use GL;
the_Triangle : vco_Triangle renames vco_Triangles (triangle_Id);
Base : positive_uInt := positive_uInt (triangle_Id - 1) * 3;
v1_Id : GL.geometry.vertex_Id renames Indices (base + 1);
v2_Id : GL.geometry.vertex_Id renames Indices (base + 2);
v3_Id : GL.geometry.vertex_Id renames Indices (base + 3);
Score : GL.Double;
begin
Score := vco_Vertices (v1_Id).Score;
Score := Score + vco_Vertices (v2_Id).Score;
Score := Score + vco_Vertices (v3_Id).Score;
return Score;
end tri_Score_of;
best_Triangle : triangle_Id;
best_Triangle_score : GL.Double := GL.Double'First;
new_face_Indices : GL.geometry.vertex_Id_array (Indices'Range); -- the resulting optimised triangle indices.
-- new_face_Indices : triangle_vertex_Indices (o.Face_Indices'Range); -- the resulting optimised triangle indices.
-- -- new_face_Indices_last : Natural := new_face_Indices'first - 1;
begin
--put_Line ("start optimise !");
-- combined pass's : - increments the counter of the number of triangles that use each vertex
-- - adds the triangle to the vertex's triangle list, for each vertex.
--
for Each in 1 .. num_Faces loop
declare
procedure add_face_Vertex (which_vertex : positive_uInt)
is
the_Vertex : vco_Vertex renames vco_Vertices (Indices ((Each - 1) * 3 + which_vertex));
begin
the_Vertex.tri_Count := the_Vertex.tri_Count + 1;
the_Vertex.Triangles (the_Vertex.tri_Count) := triangle_Id (Each);
the_Vertex.tri_Count_unadded := the_Vertex.tri_Count;
exception
when constraint_Error =>
put_Line ("vco_Triangles max exceeded . .. increase Max_triangles_per_vertex !!");
raise;
end;
begin
add_face_Vertex (1);
add_face_Vertex (2);
add_face_Vertex (3);
end;
end loop;
-- calculate initial vertex scores
--
for Each in vco_Vertices'Range loop
vco_Vertices (Each).Score := Score_of (vco_Vertices (Each)); -- tbd : 'Score_of' function should probably be 'set_Score' procedure ?
end loop;
-- calculate initial triangle scores
--
for Each in vco_Triangles'Range loop
vco_Triangles (Each).Score := tri_Score_of (Each); -- tbd : 'Score_of' function should probably be 'set_Score' procedure ?
if vco_Triangles (Each).Score > best_Triangle_score then
best_Triangle := Each;
best_Triangle_score := vco_Triangles (Each).Score;
end if;
end loop;
-- re - order all triangle indices.
--
for Each in new_face_Indices'Range loop
declare
best_Triangle_v1 : Vertex_Id := face_vertex_Id (best_Triangle, 1);
best_Triangle_v2 : Vertex_Id := face_vertex_Id (best_Triangle, 2);
best_Triangle_v3 : Vertex_Id := face_vertex_Id (best_Triangle, 3);
begin
-- add best triangle to new draw list & remove the best triangle from each of its vertices.
--
new_face_Indices (Each) := Indices (best_Triangle);
vco_Triangles (best_Triangle).Added := True;
rid_Triangle (in_vertex => vco_Vertices (best_Triangle_v1), the_triangle => best_Triangle);
rid_Triangle (in_vertex => vco_Vertices (best_Triangle_v2), the_triangle => best_Triangle);
rid_Triangle (in_vertex => vco_Vertices (best_Triangle_v3), the_triangle => best_Triangle);
-- update LRU cache
--
add_recent_Vertices_to_LRU_Cache (best_Triangle_v1, best_Triangle_v2, best_Triangle_v3);
-- update vertex cache position and calculate new score and new scores of the triangles which use the vertex.
-- also finds new best triangle.
--
best_Triangle := triangle_Id'last;
best_Triangle_score := GL.Double'first;
for Each in 0 .. LRU_Cache_last loop
declare
the_Vertex : vco_Vertex renames vco_Vertices (the_LRU_Cache (Each));
begin
the_Vertex.cache_Position := Each;
the_Vertex.Score := Score_of (the_Vertex); -- re - score the vertex
for Each in 1 .. the_Vertex.tri_Count_unadded loop -- update all unadded triangle scores, which use this vertex.
declare
tri_Id : triangle_Id renames the_Vertex.Triangles (Each);
begin
vco_Triangles (tri_Id).Score := tri_Score_of (tri_Id); -- re - score the triangle
if vco_Triangles (tri_Id).Score > best_Triangle_score then
best_Triangle := tri_Id;
best_Triangle_score := vco_Triangles (tri_Id).Score;
end if;
end;
end loop;
end;
end loop;
LRU_Cache_last := Integer'min (LRU_Cache_last, (MaxSizeVertexCache - 1) - 3); -- shrink LRU_Cache, if needed.
if best_Triangle = triangle_Id'last then -- no vertex in the cache has any unadded triangles
for Each in vco_Triangles'Range loop -- find new best_Triangle from remaining unadded triangles
if not vco_Triangles (Each).Added
and then vco_Triangles (Each).Score > best_Triangle_score
then
best_Triangle := Each;
best_Triangle_score := vco_Triangles (Each).Score;
end if;
end loop;
end if;
end;
end loop;
pragma assert (best_Triangle = triangle_Id'last);
Indices := new_face_Indices;
-- re - order vertices & re - map triangle indices to new vertex locations.
--
declare
new_Vertices : GL.geometry.GL_Vertex_array (Vertices'Range);
new_Vertices_last : vertex_Id := 0;
is_Added : array (Vertices'Range) of Boolean := (others => False);
Mapping : array (Vertices'Range) of Vertex_Id;
begin
for Each in 1 .. num_Faces loop
declare
procedure add_Vertex (old_vertex_Id : in Vertex_Id)
is
begin
if not is_Added (old_vertex_Id) then
new_Vertices_last := new_Vertices_last + 1;
new_Vertices (new_Vertices_last) := Vertices (old_vertex_Id); -- add the vertex
Mapping (old_vertex_Id) := new_Vertices_last; -- remember mapping
is_Added (old_vertex_Id) := True;
end if;
end add_Vertex;
begin
add_Vertex (face_vertex_Id (Each, 1));
add_Vertex (face_vertex_Id (Each, 2));
add_Vertex (face_vertex_Id (Each, 3));
end;
end loop;
Vertices := new_Vertices; -- let Object use the new re - ordered vertices.
for Each in 1 .. num_Faces loop
Indices (indices_Index (Each, 1)) := Mapping (Indices (indices_Index (Each, 1))); -- re - map each triangles Indices.
Indices (indices_Index (Each, 2)) := Mapping (Indices (indices_Index (Each, 2)));
Indices (indices_Index (Each, 3)) := Mapping (Indices (indices_Index (Each, 3)));
end loop;
end;
free (vco_Vertices); -- clean up
end vertex_cache_optimise;
end GLOBE_3D.tri_Mesh;
|
mat/regtests/mat-targets-tests.adb | stcarrez/mat | 7 | 30702 | -----------------------------------------------------------------------
-- mat-readers-tests -- Unit tests for MAT readers
-- Copyright (C) 2014, 2015, 2019, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Test_Caller;
with MAT.Readers.Streams.Files;
package body MAT.Targets.Tests is
package Caller is new Util.Test_Caller (Test, "Files");
procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is
begin
Caller.Add_Test (Suite, "Test MAT.Targets.Read_File",
Test_Read_File'Access);
Caller.Add_Test (Suite, "Test MAT.Types.Tick_Value",
Test_Conversions'Access);
end Add_Tests;
-- ------------------------------
-- Test reading a file into a string
-- Reads this ada source file and checks we have read it correctly
-- ------------------------------
procedure Test_Read_File (T : in out Test) is
pragma Unreferenced (T);
Path : constant String := Util.Tests.Get_Path ("regtests/files/file-v1.dat");
Target : MAT.Targets.Target_Type;
Reader : MAT.Readers.Streams.Files.File_Reader_Type;
begin
Target.Initialize (Reader);
Reader.Open (Path);
Reader.Read_All;
end Test_Read_File;
-- ------------------------------
-- Test various type conversions.
-- ------------------------------
procedure Test_Conversions (T : in out Test) is
use MAT.Types;
Time : MAT.Types.Target_Tick_Ref;
begin
Time := MAT.Types.Tick_Value ("1.1");
Util.Tests.Assert_Equals (T, 1, Natural (Time / 1_000000), "Invalid Tick_Value conversion");
Util.Tests.Assert_Equals (T, 100_000, Natural (Time mod 1_000000),
"Invalid Tick_Value conversion");
Time := MAT.Types.Tick_Value ("12.001234");
Util.Tests.Assert_Equals (T, 12, Natural (Time / 1_000000), "Invalid Tick_Value conversion");
Util.Tests.Assert_Equals (T, 1_234, Natural (Time mod 1_000000),
"Invalid Tick_Value conversion");
end Test_Conversions;
end MAT.Targets.Tests;
|
OutsideIn.agda | liamoc/outside-in | 2 | 17422 | open import OutsideIn.Prelude
open import OutsideIn.X
module OutsideIn(x : X) where
open X (x) public
open import OutsideIn.Prelude public
open import Data.Vec public hiding ([_])
import OutsideIn.Constraints as C
import OutsideIn.TypeSchema as TS
import OutsideIn.Expressions as E
import OutsideIn.Environments as V
import OutsideIn.TopLevel as TL
import OutsideIn.Inference as I
open E (x) public
open TL(x) public
open TS(x) public
open I (x) public
open V (x) public
open C (x)
|
programs/oeis/046/A046092.asm | karttu/loda | 1 | 86543 | ; A046092: 4 times triangular numbers: a(n) = 2*n*(n+1).
; 0,4,12,24,40,60,84,112,144,180,220,264,312,364,420,480,544,612,684,760,840,924,1012,1104,1200,1300,1404,1512,1624,1740,1860,1984,2112,2244,2380,2520,2664,2812,2964,3120,3280,3444,3612,3784,3960,4140,4324,4512,4704,4900,5100,5304,5512,5724,5940,6160,6384,6612,6844,7080,7320,7564,7812,8064,8320,8580,8844,9112,9384,9660,9940,10224,10512,10804,11100,11400,11704,12012,12324,12640,12960,13284,13612,13944,14280,14620,14964,15312,15664,16020,16380,16744,17112,17484,17860,18240,18624,19012,19404,19800,20200,20604,21012,21424,21840,22260,22684,23112,23544,23980,24420,24864,25312,25764,26220,26680,27144,27612,28084,28560,29040,29524,30012,30504,31000,31500,32004,32512,33024,33540,34060,34584,35112,35644,36180,36720,37264,37812,38364,38920,39480,40044,40612,41184,41760,42340,42924,43512,44104,44700,45300,45904,46512,47124,47740,48360,48984,49612,50244,50880,51520,52164,52812,53464,54120,54780,55444,56112,56784,57460,58140,58824,59512,60204,60900,61600,62304,63012,63724,64440,65160,65884,66612,67344,68080,68820,69564,70312,71064,71820,72580,73344,74112,74884,75660,76440,77224,78012,78804,79600,80400,81204,82012,82824,83640,84460,85284,86112,86944,87780,88620,89464,90312,91164,92020,92880,93744,94612,95484,96360,97240,98124,99012,99904,100800,101700,102604,103512,104424,105340,106260,107184,108112,109044,109980,110920,111864,112812,113764,114720,115680,116644,117612,118584,119560,120540,121524,122512,123504,124500
sub $1,$0
bin $1,2
mul $1,4
|
x86/AvxMacros.asm | lantonov/asm | 150 | 174079 | <gh_stars>100-1000
; these macro simulate the avx instructions with lower ones
; might be confusing
macro _vaddsd a,b,c
; match =1, CPU_HAS_AVX1 \{
; vaddsd a,b,c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
addsd a, c
else if a eq c
addsd a, b
else
movaps a, b
addsd a, c
end if
; \}
end macro
macro _vaddsd a,b,c
if CPU_HAS_AVX1
vaddsd a, b, c
else
if a eq b
addsd a, c
else
match size[addr], c
movaps a, b
addsd a, c
else
if a eq c
addsd a, b
else
movaps a, b
addsd a, c
end if
end match
end if
end if
end macro
macro _vsubsd a,b,c
; match =1, CPU_HAS_AVX1 \{
; vsubsd a,b,c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
subsd a, c
else if a eq c
display 'arguments of vsubsd are strange for no avx1'
display 13,10
err
else
movaps a, b
subsd a, c
end if
; \}
end macro
macro _vsubpd a,b,c
; match =1, CPU_HAS_AVX1 \{
; vsubpd a,b,c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
subpd a, c
else if a eq c
display 'arguments of vsubpd are strange for no avx1'
display 13,10
err
else
movaps a, b
subpd a, c
end if
; \}
end macro
macro _vmulsd a,b,c
if CPU_HAS_AVX1
vmulsd a, b, c
else
if a eq b
mulsd a, c
else
match size[addr], c
movaps a, b
mulsd a, c
else
if a eq c
mulsd a, b
else
movaps a, b
mulsd a, c
end if
end match
end if
end if
end macro
macro _vmulps a,b,c
if a eq b
mulps a, c
else
match size[addr], c
movaps a, b
mulps a, c
else
if a eq c
mulsd a, b
else
movaps a, b
mulps a, c
end if
end match
end if
end macro
macro _vaddps a,b,c
if a eq b
addps a, c
else
match size[addr], c
movaps a, b
addps a, c
else
if a eq c
addsd a, b
else
movaps a, b
addps a, c
end if
end match
end if
end macro
macro _vmaxps a,b,c
if a eq b
maxps a, c
else
match size[addr], c
movaps a, b
maxps a, c
else
if a eq c
maxsd a, b
else
movaps a, b
maxps a, c
end if
end match
end if
end macro
macro _vpunpckldq a,b,c
if a eq b
punpckldq a, c
else if a eq c
display 'arguments of vdivsd are strange for no avx1'
display 13,10
err
else
movaps a, b
punpckldq a, c
end if
end macro
; a = b*c+d
macro _vfmaddsd a,b,c,d
; match =1, CPU_HAS_AVX2 \{
; if a equ b
; vfmadd213sd a, c, d
; else if a equ c
; vfmadd213sd a, b, d
; else if a equ d
; vfmadd231sd a, b, c
; else
; vmovaps a, b
; vfmadd213sd a, c, d
; end if
;
; \}
; match =0, CPU_HAS_AVX2 \{
if a eq d
err 'arguments of vfmaddpd are strange for no avx2'
end if
_vmulsd a, b, c
_vaddsd a, a, d
; \}
end macro
macro _vcvtsi2sd a,b,c
; match =1, CPU_HAS_AVX1 \{
; vcvtsi2sd a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
cvtsi2sd a, c
else
movaps a, b
cvtsi2sd a, c
end if
; \}
end macro
macro _vcvtsi2ss a,b,c
; match =1, CPU_HAS_AVX1 \{
; vcvtsi2sd a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
cvtsi2ss a, c
else
movaps a, b
cvtsi2ss a, c
end if
; \}
end macro
macro _vcvttsd2si a,b
; match =1, CPU_HAS_AVX1 \{
; vcvttsd2si a, b
; \}
; match =0, CPU_HAS_AVX1 \{
cvttsd2si a, b
; \}
end macro
macro _vcvttss2si a,b
; match =1, CPU_HAS_AVX1 \{
; vcvttsd2si a, b
; \}
; match =0, CPU_HAS_AVX1 \{
cvttss2si a, b
; \}
end macro
macro _vdivsd a,b,c
; match =1, CPU_HAS_AVX1 \{
; vdivsd a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
divsd a, c
else if a eq c
display 'arguments of vdivsd are strange for no avx1'
display 13,10
err
else
movaps a, b
divsd a, c
end if
; \}
end macro
macro _vdivps a,b,c
; match =1, CPU_HAS_AVX1 \{
; vdivsd a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
divps a, c
else if a eq c
display 'arguments of vdivsd are strange for no avx1'
display 13,10
err
else
movaps a, b
divps a, c
end if
; \}
end macro
macro _vhaddps a,b,c
; match =1, CPU_HAS_AVX1 \{
; vdivsd a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
haddps a, c
else if a eq c
display 'arguments of vdivsd are strange for no avx1'
display 13,10
err
else
movaps a, b
haddps a, c
end if
; \}
end macro
macro _vhsubps a,b,c
; match =1, CPU_HAS_AVX1 \{
; vdivsd a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
hsubps a, c
else if a eq c
display 'arguments of vdivsd are strange for no avx1'
display 13,10
err
else
movaps a, b
hsubps a, c
end if
; \}
end macro
macro _vcomisd a,b
; match =1, CPU_HAS_AVX1 \{
; vcomisd a, b
; \}
; match =0, CPU_HAS_AVX1 \{
comisd a, b
; \}
end macro
macro _vmovaps a,b
; match =1, CPU_HAS_AVX1 \{
; vmovaps a, b
; \}
; match =0, CPU_HAS_AVX1 \{
movaps a, b
; \}
end macro
macro _vmovups a,b
; match =1, CPU_HAS_AVX1 \{
; vmovups a, b
; \}
; match =0, CPU_HAS_AVX1 \{
movups a, b
; \}
end macro
macro _vmovapd a,b
; match =1, CPU_HAS_AVX1 \{
; vmovapd a, b
; \}
; match =0, CPU_HAS_AVX1 \{
movapd a, b
; \}
end macro
macro _vmovsd a, b, c
; match =1, CPU_HAS_AVX1 \{
; if c eq
; vmovsd a, b
; else
; vmovsd a, b, c
; end if
; \}
; match =0, CPU_HAS_AVX1 \{
match , c
SSE.movsd a, b
else
if a eq b
SSE.movsd a, c
else
movaps a, b
SSE.movsd a, c
end if
end match
; \}
end macro
macro _vmovq a,b
; match =1, CPU_HAS_AVX1 \{
; vmovq a, b
; \}
; match =0, CPU_HAS_AVX1 \{
movq a, b
; \}
end macro
macro _vpand a,b,c
; match =1, CPU_HAS_AVX1 \{
; vpand a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
pand a, c
else
movdqa a, b
pand a, c
end if
; \}
end macro
macro _vpsrlq a,b,c
; match =1, CPU_HAS_AVX1 \{
; vpsrlq a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
psrlq a, c
else
movdqa a, b
psrlq a, c
end if
; \}
end macro
macro _vpunpcklbw a,b,c
; match =1, CPU_HAS_AVX1 \{
; vpunpcklbw a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
punpcklbw a, c
else
movdqa a, b
punpcklbw a, c
end if
; \}
end macro
macro _vpaddb a,b,c
; match =1, CPU_HAS_AVX1 \{
; vpaddb a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
paddb a, c
else
movdqa a, b
paddb a, c
end if
; \}
end macro
macro _vpcmpgtb a,b,c
; match =1, CPU_HAS_AVX1 \{
; vpcmpgtb a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
pcmpgtb a, c
else
movdqa a, b
pcmpgtb a, c
end if
; \}
end macro
macro _vmovdqa a,b
; match =1, CPU_HAS_AVX1 \{
; vmovdqa a, b
; \}
; match =0, CPU_HAS_AVX1 \{
movdqa a, b
; \}
end macro
macro _vmovdqu a,b
; match =1, CPU_HAS_AVX1 \{
; vmovdqu a, b
; \}
; match =0, CPU_HAS_AVX1 \{
movdqu a, b
; \}
end macro
macro _vpxor a,b,c
; match =1, CPU_HAS_AVX1 \{
; vpxor a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
pxor a, c
else
movdqa a, b
pxor a, c
end if
; \}
end macro
macro _vmovd a,b
; match =1, CPU_HAS_AVX1 \{
; vmovd a, b
; \}
; match =0, CPU_HAS_AVX1 \{
movd a, b
; \}
end macro
macro _vpaddd a, b, c
; match =1, CPU_HAS_AVX1 \{
; vpaddd a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
paddd a, c
else
movdqa a, b
paddd a, c
end if
; \}
end macro
macro _vminsd a, b, c
; match =1, CPU_HAS_AVX1 \{
; vminsd a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
minsd a, c
else
movaps a, b
minsd a, c
end if
; \}
end macro
macro _vmaxsd a, b, c
; match =1, CPU_HAS_AVX1 \{
; vmaxsd a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
maxsd a, c
else
movaps a, b
maxsd a, c
end if
; \}
end macro
macro _vxorps a, b, c
; match =1, CPU_HAS_AVX1 \{
; vxorps a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
xorps a, c
else
movaps a, b
xorps a, c
end if
; \}
end macro
macro _vpsubd a, b, c
; match =1, CPU_HAS_AVX1 \{
; vpsubd a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
psubd a, c
else
movdqa a, b
psubd a, c
end if
; \}
end macro
macro vpsrlq a,b,c
; match =1, CPU_HAS_AVX1 \{
; vpsrlq a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
psrlq a, c
else
movdqa a, b
psrlq a, c
end if
; \}
end macro
macro vpsubw a,b,c
; match =1, CPU_HAS_AVX1 \{
; vpsubw a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
psubw a, c
else
movdqa a, b
psubw a, c
end if
; \}
end macro
macro vpslldq a,b,c
; match =1, CPU_HAS_AVX1 \{
; vpslldq a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
pslldq a, c
else
movdqa a, b
pslldq a, c
end if
; \}
end macro
macro vpsrldq a,b,c
; match =1, CPU_HAS_AVX1 \{
; vpsrldq a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
psrldq a, c
else
movdqa a, b
psrldq a, c
end if
; \}
end macro
macro _vmovhlps a,b,c
; match =1, CPU_HAS_AVX1 \{
; vmovhlps a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
movhlps a, c
else
movaps a, b
movhlps a, c
end if
; \}
end macro
macro _vsqrtsd a,b,c
; match =1, CPU_HAS_AVX1 \{
; vsqrtsd a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
sqrtsd a, c
else
movaps a, b
sqrtsd a, c
end if
; \}
end macro
macro _vcvtsd2si a, b
; match =1, CPU_HAS_AVX1 \{
; vcvtsd2si a, b
; \}
; match =0, CPU_HAS_AVX1 \{
cvtsd2si a, b
; \}
end macro
macro _vpaddw a,b,c
; match =1, CPU_HAS_AVX1 \{
; vpaddw a, b, c
; \}
; match =0, CPU_HAS_AVX1 \{
if a eq b
paddw a, c
else
movdqa a, b
paddw a, c
end if
; \}
end macro
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/overriding_ops.adb | best08618/asylo | 7 | 13768 | <reponame>best08618/asylo<gh_stars>1-10
-- { dg-do compile }
package body overriding_ops is
task body Light_Programmer is
begin
accept Set_Name (Name : Name_Type);
end Light_Programmer;
protected body Light is
procedure Set_Name (Name : Name_Type) is
begin
L_Name := Name;
end Set_Name;
end Light;
end overriding_ops;
|
unused/develop/obj/spritesheet_6_tiles.asm | pau-tomas/gbvm | 33 | 402 | ;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.1.4 #12246 (Mac OS X x86_64)
;--------------------------------------------------------
.module spritesheet_6_tiles
.optsdcc -mgbz80
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
.globl _spritesheet_6_tiles
.globl ___bank_spritesheet_6_tiles
;--------------------------------------------------------
; special function registers
;--------------------------------------------------------
;--------------------------------------------------------
; ram data
;--------------------------------------------------------
.area _DATA
;--------------------------------------------------------
; ram data
;--------------------------------------------------------
.area _INITIALIZED
;--------------------------------------------------------
; absolute external ram data
;--------------------------------------------------------
.area _DABS (ABS)
;--------------------------------------------------------
; global & static initialisations
;--------------------------------------------------------
.area _HOME
.area _GSINIT
.area _GSFINAL
.area _GSINIT
;--------------------------------------------------------
; Home
;--------------------------------------------------------
.area _HOME
.area _HOME
;--------------------------------------------------------
; code
;--------------------------------------------------------
.area _CODE_255
.area _CODE_255
___bank_spritesheet_6_tiles = 0x00ff
_spritesheet_6_tiles:
.dw #0x0004
.db #0x00 ; 0
.db #0x00 ; 0
.db #0x00 ; 0
.db #0x00 ; 0
.db #0x3f ; 63
.db #0x3f ; 63
.db #0x40 ; 64
.db #0x7f ; 127
.db #0x5f ; 95
.db #0x60 ; 96
.db #0x5f ; 95
.db #0x6e ; 110 'n'
.db #0x5f ; 95
.db #0x6a ; 106 'j'
.db #0x5f ; 95
.db #0x6d ; 109 'm'
.db #0x5f ; 95
.db #0x60 ; 96
.db #0x40 ; 64
.db #0x7f ; 127
.db #0x3f ; 63
.db #0x3f ; 63
.db #0x02 ; 2
.db #0x03 ; 3
.db #0x02 ; 2
.db #0x03 ; 3
.db #0x02 ; 2
.db #0x03 ; 3
.db #0x02 ; 2
.db #0x03 ; 3
.db #0x03 ; 3
.db #0x03 ; 3
.db #0x00 ; 0
.db #0x00 ; 0
.db #0x00 ; 0
.db #0x00 ; 0
.db #0xfc ; 252
.db #0xfc ; 252
.db #0x02 ; 2
.db #0xfe ; 254
.db #0xfa ; 250
.db #0x06 ; 6
.db #0xfa ; 250
.db #0xd6 ; 214
.db #0xfa ; 250
.db #0xb6 ; 182
.db #0xfa ; 250
.db #0x56 ; 86 'V'
.db #0xfa ; 250
.db #0x06 ; 6
.db #0x02 ; 2
.db #0xfe ; 254
.db #0xfc ; 252
.db #0xfc ; 252
.db #0x40 ; 64
.db #0xc0 ; 192
.db #0xc0 ; 192
.db #0x40 ; 64
.db #0xc0 ; 192
.db #0x40 ; 64
.db #0xc0 ; 192
.db #0x40 ; 64
.db #0xc0 ; 192
.db #0xc0 ; 192
.area _INITIALIZER
.area _CABS (ABS)
|
sdk-6.5.20/tools/led/example/hurricane3/bcm953446r.asm | copslock/broadcom_cpri | 0 | 6808 | <reponame>copslock/broadcom_cpri<gh_stars>0
;
; $Id: bcm953446r.asm, v 1.0 2015/08/05 15:30:14 rihuang Exp $
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2020 Broadcom Inc. All rights reserved.
;
; This example is used for showing the serial to parallel EGPHY LEDs on
; BCM953446R.
; To enalbe serial to parallel LED, TOP_PARALLEL_LED_CTRLr.LED_SER2PAR_SELf
; must be set.
;
; To start it, use the following commands from BCM:
;
; led load bcm953446r.hex
; led auto on
; led start
;
; Each EGPHY port needs to output 4 bits stream,
; bit 0: LED_0
; bit 1: LED_1
; bit 2: Not used. Must be 0.
; bit 3: Not used. Must be 0.
;
; Each TSCE port needs to output 2 bits stream,
; bit 0: LED_0
; bit 1: LED_1
;
; Totally 96 bits need be outputed. (96 = 24 * 4).
; The first 48 bits (for 16 EGPHY ports) are displayed by serial to parallel LED.
; The last 8 bits are used for TSCE serial LED.
; The other 24 bits are not used for LED.
;
; In physical port view, the output order is:
; 17, 16, ..., 10, 26, 27, ..., 33, 24-dummy-bits, 34, 35, 36, 37
;
; Link up/down info cannot be derived from LINKEN, as the LED
; processor does not always have access to link status. This program
; assumes link status is kept current in bit 0 of RAM byte (0xA0 + portnum).
; Generally, a program running on the main CPU must update these
; locations on link change; see linkscan callback in
; $SDK/src/appl/diag/ledproc.c.
;
;
; Constants
;
START_PORT_0 equ 17
END_PORT_0 equ 10
START_PORT_1 equ 26
END_PORT_1 equ 33
START_PORT_2 equ 37
END_PORT_2 equ 34
;
; LED process
;
start_sec0:
ld a, START_PORT_0
iter_sec0:
port a
ld (PORT_NUM), a
call get_link_hw
ld a, (PORT_NUM)
dec a
cmp a, END_PORT_0 - 1
jnz iter_sec0
start_sec1:
ld a, START_PORT_1
iter_sec1:
port a
ld (PORT_NUM), a
call get_link_hw
ld a, (PORT_NUM)
inc a
cmp a, END_PORT_1 + 1
jnz iter_sec1
start_dummy_bits:
ld a, 0
iter_dummy_bits:
call led_off_4bits
inc a
cmp a, 6
jnz iter_dummy_bits
start_sec2:
ld a, START_PORT_2
iter_sec2:
port a
ld (PORT_NUM), a
call get_link_hw
ld a, (PORT_NUM)
dec a
cmp a, END_PORT_2 - 1
jnz iter_sec2
end:
send 96
;
; get_link_sw
;
; This routine finds the link status LED for a port.
; Link info is in bit 0 of the byte read from PORTDATA[port]
; Inputs: (PORT_NUM)
; Outputs: Carry flag set if link is up, clear if link is down.
; Destroys: a, b
get_link_sw:
ld b, PORTDATA
add b, (PORT_NUM)
ld a, (b)
tst a, 0
jc led_on
jmp led_off
;
; get_link_hw
;
; This routine finds the link status LED for a port from HW.
; Inputs: (PORT_NUM)
; Outputs: Carry flag set if link is up, clear if link is down.
; Destroys: a, b
get_link_hw:
pushst LINKEN
pop
jc led_on
jmp led_off
;
; led_on
;
; Outputs: Bits to the LED stream indicating ON
;
led_on:
ld b, (PORT_NUM)
cmp b, 34
jc led_on_4bits
jmp led_on_2bits
; Trun on LED for GE port
led_on_4bits:
push 1
pack
push 1
pack
push 0
pack
push 0
pack
ret
; Trun on LED for XE port
led_on_2bits:
push 0
pack
push 0
pack
ret
;
; led_off
;
; Outputs: Bits to the LED stream indicating OFF
;
led_off:
ld b, (PORT_NUM)
cmp b, 34
jc led_off_4bits
jmp led_off_2bits
; Trun off LED for GE port
led_off_4bits:
push 0
pack
push 0
pack
push 0
pack
push 0
pack
ret
; Trun off LED for XE port
led_off_2bits:
push 1
pack
push 1
pack
ret
; Variables (SDK software initializes LED memory from 0xA0-0xff to 0)
PORTDATA equ 0xA0
PORT_NUM equ 0xE0
; Symbolic names for the bits of the port status fields
RX equ 0x0 ; received packet
TX equ 0x1 ; transmitted packet
COLL equ 0x2 ; collision indicator
SPEED_C equ 0x3 ; 100 Mbps
SPEED_M equ 0x4 ; 1000 Mbps
DUPLEX equ 0x5 ; half/full duplex
FLOW equ 0x6 ; flow control capable
LINKUP equ 0x7 ; link down/up status
LINKEN equ 0x8 ; link disabled/enabled status
ZERO equ 0xE ; always 0
ONE equ 0xF ; always 1
|
cd2t-100-core/src/main/antlr4/Asm.g4 | battila7/cd2t-100 | 5 | 6935 | <reponame>battila7/cd2t-100<gh_stars>1-10
grammar Asm;
@header {
package hu.progtech.cd2t100.asm;
}
/**
* Programs must start with 0 or more preprocessor rules.
* For example:
* {@code
* !clampat 9999
* MOV 1000 ACC
* }
*/
program
: preprocessorRule* programLine*
;
/**
* In a single line you can place a label, an instruction and a comment,
* strictly in this order. Any of these items can be omitted.
* The following is perfectly valid:
* {@code
* zero: # ACC = 0
* }
*/
programLine
: WHITESPACE? (label | instruction)? (WHITESPACE? comment)? NEWLINE
;
/**
* Preprocessor rules must stand on their own optionally followed by
* a comment. Only one argument is permitted per rule.
*/
preprocessorRule
: '!' ruleName (WHITESPACE argument)? (WHITESPACE? comment)? NEWLINE
;
label
: LABEL
;
comment
: COMMENT
;
/**
* Lines with both a label and an instruction are handled by this rule.
* An instruction can have any number of arguments separated by whitespaces.
*/
instruction
: (label WHITESPACE)? opcode (WHITESPACE argument)*
;
/**
* Arguments, opcodes, labels and preprocessor rules can be formed using the same
* character set. The use of the following characters are not legal:
* <ul>
* <li>{@code horizontal tabulator}</li>
* <li>{@code carriage return}</li>
* <li>{@code newline}</li>
* <li>{@code space}</li>
* <li>{@code !}</li>
* <li>{@code :}</li>
* <li>{@code @}</li>
* <li>{@code .}</li>
* <li>{@code #}</li>
* <li>{@code ,}</li>
* </ul>
*/
argument
: WORD
;
opcode
: WORD
;
ruleName
: WORD
;
LABEL
: WORD ':'
;
WORD
: ~('\t' | '\r' | '\n' | '!' | ':' | '@' | '.' | ' ' | '#' | ',')+
;
COMMENT
: '#' ~('\n' | '\r')*
;
WHITESPACE
: (' ' | '\t')+
;
NEWLINE
: '\r'? '\n'
;
|
libsrc/_DEVELOPMENT/arch/zx/display/c/sdcc/zx_saddr2px_fastcall.asm | jpoikela/z88dk | 640 | 81866 | <filename>libsrc/_DEVELOPMENT/arch/zx/display/c/sdcc/zx_saddr2px_fastcall.asm
; uint zx_saddr2px_fastcall(void *saddr)
SECTION code_clib
SECTION code_arch
PUBLIC _zx_saddr2px_fastcall
EXTERN asm_zx_saddr2px
defc _zx_saddr2px_fastcall = asm_zx_saddr2px
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_8360_1394.asm | ljhsiun2/medusa | 9 | 81359 | <reponame>ljhsiun2/medusa<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x15741, %rcx
nop
nop
nop
nop
nop
xor $32052, %rbx
and $0xffffffffffffffc0, %rcx
movntdqa (%rcx), %xmm5
vpextrq $0, %xmm5, %r9
nop
and %r13, %r13
lea addresses_WT_ht+0x169d3, %rsi
lea addresses_D_ht+0x5741, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
sub %r12, %r12
mov $121, %rcx
rep movsb
nop
nop
sub $7548, %rcx
lea addresses_WT_ht+0xe901, %rsi
lea addresses_A_ht+0x1abcf, %rdi
nop
nop
sub $5161, %r14
mov $63, %rcx
rep movsq
nop
cmp $34818, %r12
lea addresses_D_ht+0xb951, %rsi
lea addresses_WC_ht+0x14481, %rdi
and $29872, %rbx
mov $30, %rcx
rep movsb
nop
nop
nop
nop
nop
xor $4971, %rbx
lea addresses_A_ht+0x11c1, %rsi
lea addresses_WT_ht+0x425e, %rdi
nop
add %rbx, %rbx
mov $9, %rcx
rep movsq
nop
nop
nop
nop
cmp %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %rax
push %rbx
push %rdi
push %rsi
// Store
lea addresses_PSE+0x2741, %rbx
nop
nop
nop
and $2619, %rax
movw $0x5152, (%rbx)
nop
nop
nop
nop
add $7728, %r10
// Load
mov $0x105dd80000000a90, %rax
nop
nop
nop
nop
nop
xor %r10, %r10
vmovups (%rax), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %rdi
nop
cmp %rax, %rax
// Store
lea addresses_normal+0x12341, %rdi
nop
nop
nop
cmp %r11, %r11
mov $0x5152535455565758, %rsi
movq %rsi, (%rdi)
nop
nop
nop
nop
add $61222, %r10
// Faulty Load
lea addresses_RW+0xf741, %rbx
nop
sub %r12, %r12
mov (%rbx), %r11
lea oracles, %rbx
and $0xff, %r11
shlq $12, %r11
mov (%rbx,%r11,1), %r11
pop %rsi
pop %rdi
pop %rbx
pop %rax
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 10, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}}
{'32': 8360}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
data/pattern/IdentP.agda | msuperdock/agda-unused | 6 | 10387 | <reponame>msuperdock/agda-unused<gh_stars>1-10
module IdentP where
data Bool
: Set
where
false
: Bool
true
: Bool
f
: {A : Set}
→ A
→ A
→ A
f x y
= x
g
: Bool
→ Bool
g false
= true
g true
= true
|
commands/apps/safari/safari-close-all-tabs.applescript | daviddzhou/script-commands | 3,305 | 1451 | #!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Close All Tabs
# @raycast.mode silent
# Optional parameters:
# @raycast.packageName Safari
# @raycast.icon images/safari.png
# @Documentation:
# @raycast.author <NAME>
# @raycast.authorURL https://github.com/thomaspaulmann
# @raycast.description Close all tabs in the frontmost window
tell window 1 of application "Safari" to close tabs
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_39.asm | ljhsiun2/medusa | 9 | 24647 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x747d, %rsi
lea addresses_WT_ht+0x3d89, %rdi
nop
nop
nop
nop
nop
dec %r11
mov $10, %rcx
rep movsq
nop
nop
nop
nop
nop
add %rax, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r15
push %r9
push %rdx
// Faulty Load
lea addresses_normal+0x427d, %r9
nop
nop
nop
nop
nop
xor $17383, %r12
mov (%r9), %r15w
lea oracles, %r10
and $0xff, %r15
shlq $12, %r15
mov (%r10,%r15,1), %r15
pop %rdx
pop %r9
pop %r15
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.