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
3-mid/impact/source/3d/collision/narrowphase/impact-d3-collision-polyhedral_contact_clipping.ads
charlie5/lace
20
22775
with Impact.d3.Containers; with Impact.d3.convex_Polyhedron; with Impact.d3.Collision.Detector.discrete; package Impact.d3.Collision.polyhedral_contact_Clipping -- -- Clips a face to the back of a plane -- is use Math; subtype btVertexArray is Containers.vector_3_Vector; procedure clipHullAgainstHull (separatingNormal1 : in Math.Vector_3; hullA, hullB : in Impact.d3.convex_Polyhedron.Item'Class; transA, transB : in Transform_3d; minDist, maxDist : in Math.Real; resultOut : out Impact.d3.Collision.Detector.discrete.Result' Class); procedure clipFaceAgainstHull (separatingNormal : in Math.Vector_3; hullA : in Impact.d3.convex_Polyhedron.Item'Class; transA : in Transform_3d; worldVertsB1 : in out btVertexArray; minDist, maxDist : in Math.Real; resultOut : out Impact.d3.Collision.Detector.discrete.Result' Class); function findSeparatingAxis (hullA, hullB : in Impact.d3.convex_Polyhedron.Item'Class; transA, transB : in Transform_3d; sep : out Math.Vector_3) return Boolean; procedure clipFace (pVtxIn : in btVertexArray; ppVtxOut : out btVertexArray; planeNormalWS : in Math.Vector_3; planeEqWS : in Math.Real); -- -- the clipFace method is used internally end Impact.d3.Collision.polyhedral_contact_Clipping;
libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_append_n_callee.asm
jpoikela/z88dk
640
84957
<filename>libsrc/_DEVELOPMENT/adt/w_array/c/sdcc_iy/w_array_append_n_callee.asm ; size_t w_array_append_n_callee(w_array_t *a, size_t n, void *item) SECTION code_clib SECTION code_adt_w_array PUBLIC _w_array_append_n_callee EXTERN asm_w_array_append_n _w_array_append_n_callee: pop af pop hl pop de push af jp asm_w_array_append_n
oeis/053/A053556.asm
neoneye/loda-programs
11
174742
; A053556: Denominator of Sum_{k=0..n} (-1)^k/k!. ; Submitted by <NAME> ; 1,1,2,3,8,30,144,280,5760,45360,44800,3991680,43545600,172972800,6706022400,93405312000,42268262400,22230464256000,376610217984000,250298560512000,11640679464960000,196503623737344000,17841281393295360000,106826515449937920000,26976017466662584320000,215433472824041472000000,16131658445064225423360000,38072970106357874688000000,1254684545727217532928000000,315777214062132212662272000000,9146650338351415815045120000000,755081602771159120084992000000,8488091513990113876361871360000000 mov $1,1 lpb $0 mov $2,$0 sub $0,1 mul $1,$0 sub $0,1 add $3,$1 mul $1,$2 lpe gcd $3,$1 div $1,$3 mov $0,$1
Data/Nat/Base.agda
oisdk/agda-playground
6
6801
<reponame>oisdk/agda-playground<filename>Data/Nat/Base.agda {-# OPTIONS --without-K --safe #-} module Data.Nat.Base where open import Agda.Builtin.Nat public using (_+_; _*_; zero; suc) renaming (Nat to ℕ; _-_ to _∸_) open import Level data Ordering : ℕ → ℕ → Type where less : ∀ m k → Ordering m (suc (m + k)) equal : ∀ m → Ordering m m greater : ∀ m k → Ordering (suc (m + k)) m compare : ∀ m n → Ordering m n compare zero zero = equal zero compare (suc m) zero = greater zero m compare zero (suc n) = less zero n compare (suc m) (suc n) with compare m n ... | less m k = less (suc m) k ... | equal m = equal (suc m) ... | greater n k = greater (suc n) k
tools/xml2ayacc/nodes-read.adb
faelys/gela-asis
4
29207
------------------------------------------------------------------------------ -- <NAME> A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- - - - - - - - - - - - - - - - -- -- Read copyright and license at the end of this file -- ------------------------------------------------------------------------------ -- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $ with Nodes.Database; with Gela.Containers.Stacks; with Text_Streams.File; with XML_IO.Stream_Readers; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package body Nodes.Read is package Stacks is new Gela.Containers.Stacks (Unbounded_String); Stack : Stacks.Stack; --------------- -- Read_File -- --------------- procedure Read_File (File_Name : String) is use XML_IO; package R renames XML_IO.Stream_Readers; Stream : aliased Text_Streams.File.File_Text_Stream; Parser : R.Reader (Stream'Access, R.Default_Buffer_Size); procedure On_Element is function Get_Attribute (Name : String) return String; function Get_Type return String; function Get_Attribute (Name : String) return String is begin return R.Attribute_Value (Parser, Name); end Get_Attribute; function Get_Type return String is Tipe : constant String := Get_Attribute ("type"); begin if Tipe'Length > 5 and then Tipe (Tipe'First .. Tipe'First + 4) = "Asis." then return Tipe (Tipe'First + 5 .. Tipe'Last); else return Tipe; end if; end Get_Type; Local_Name : String := R.Name (Parser); begin if Local_Name = "node" then declare Name : constant String := Get_Attribute ("name"); begin if Stacks.Is_Empty (Stack) then Database.Create_Node (Name, ""); else Database.Create_Node (Name, To_String (Stacks.Top (Stack))); end if; Stacks.Push (Stack, To_Unbounded_String (Name)); end; elsif Local_Name = "attr" then Database.Create_Attribute (Get_Attribute ("name"), Get_Type); end if; end On_Element; begin -- Read_File Text_Streams.File.Open (Stream, File_Name); R.Initialize (Parser); while R.More_Pieces (Parser) loop case R.Piece_Kind (Parser) is when Start_Element => On_Element; when End_Element => if R.Name (Parser) = "node" then Stacks.Pop (Stack); end if; when others => null; end case; R.Next (Parser); end loop; end Read_File; end Nodes.Read; ------------------------------------------------------------------------------ -- Copyright (c) 2006, <NAME> -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -- this list of conditions and the following disclaimer. -- * Redistributions in binary form must reproduce the above copyright -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- * Neither the name of the <NAME>, IE nor the names of its -- contributors may be used to endorse or promote products derived from -- this software without specific prior written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -- POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------
src/stdint_h.ads
JeremyGrosser/arm_cmsis_dsp
0
23878
pragma Ada_2012; pragma Style_Checks (Off); pragma Warnings ("U"); with Interfaces.C; use Interfaces.C; with machine_udefault_types_h; with Interfaces.C.Extensions; package stdint_h is -- unsupported macro: INTPTR_MIN (-__INTPTR_MAX__ - 1) -- unsupported macro: INTPTR_MAX (__INTPTR_MAX__) -- unsupported macro: UINTPTR_MAX (__UINTPTR_MAX__) -- unsupported macro: INT8_MIN (-__INT8_MAX__ - 1) -- unsupported macro: INT8_MAX (__INT8_MAX__) -- unsupported macro: UINT8_MAX (__UINT8_MAX__) -- unsupported macro: INT_LEAST8_MIN (-__INT_LEAST8_MAX__ - 1) -- unsupported macro: INT_LEAST8_MAX (__INT_LEAST8_MAX__) -- unsupported macro: UINT_LEAST8_MAX (__UINT_LEAST8_MAX__) -- unsupported macro: INT16_MIN (-__INT16_MAX__ - 1) -- unsupported macro: INT16_MAX (__INT16_MAX__) -- unsupported macro: UINT16_MAX (__UINT16_MAX__) -- unsupported macro: INT_LEAST16_MIN (-__INT_LEAST16_MAX__ - 1) -- unsupported macro: INT_LEAST16_MAX (__INT_LEAST16_MAX__) -- unsupported macro: UINT_LEAST16_MAX (__UINT_LEAST16_MAX__) -- unsupported macro: INT32_MIN (-__INT32_MAX__ - 1) -- unsupported macro: INT32_MAX (__INT32_MAX__) -- unsupported macro: UINT32_MAX (__UINT32_MAX__) -- unsupported macro: INT_LEAST32_MIN (-__INT_LEAST32_MAX__ - 1) -- unsupported macro: INT_LEAST32_MAX (__INT_LEAST32_MAX__) -- unsupported macro: UINT_LEAST32_MAX (__UINT_LEAST32_MAX__) -- unsupported macro: INT64_MIN (-__INT64_MAX__ - 1) -- unsupported macro: INT64_MAX (__INT64_MAX__) -- unsupported macro: UINT64_MAX (__UINT64_MAX__) -- unsupported macro: INT_LEAST64_MIN (-__INT_LEAST64_MAX__ - 1) -- unsupported macro: INT_LEAST64_MAX (__INT_LEAST64_MAX__) -- unsupported macro: UINT_LEAST64_MAX (__UINT_LEAST64_MAX__) -- unsupported macro: INT_FAST8_MIN (-__INT_FAST8_MAX__ - 1) -- unsupported macro: INT_FAST8_MAX (__INT_FAST8_MAX__) -- unsupported macro: UINT_FAST8_MAX (__UINT_FAST8_MAX__) -- unsupported macro: INT_FAST16_MIN (-__INT_FAST16_MAX__ - 1) -- unsupported macro: INT_FAST16_MAX (__INT_FAST16_MAX__) -- unsupported macro: UINT_FAST16_MAX (__UINT_FAST16_MAX__) -- unsupported macro: INT_FAST32_MIN (-__INT_FAST32_MAX__ - 1) -- unsupported macro: INT_FAST32_MAX (__INT_FAST32_MAX__) -- unsupported macro: UINT_FAST32_MAX (__UINT_FAST32_MAX__) -- unsupported macro: INT_FAST64_MIN (-__INT_FAST64_MAX__ - 1) -- unsupported macro: INT_FAST64_MAX (__INT_FAST64_MAX__) -- unsupported macro: UINT_FAST64_MAX (__UINT_FAST64_MAX__) -- unsupported macro: INTMAX_MAX (__INTMAX_MAX__) -- unsupported macro: INTMAX_MIN (-INTMAX_MAX - 1) -- unsupported macro: UINTMAX_MAX (__UINTMAX_MAX__) -- unsupported macro: SIZE_MAX (__SIZE_MAX__) -- unsupported macro: SIG_ATOMIC_MIN (-__STDINT_EXP(INT_MAX) - 1) -- unsupported macro: SIG_ATOMIC_MAX (__STDINT_EXP(INT_MAX)) -- unsupported macro: PTRDIFF_MAX (__PTRDIFF_MAX__) -- unsupported macro: PTRDIFF_MIN (-PTRDIFF_MAX - 1) -- unsupported macro: WCHAR_MIN (__WCHAR_MIN__) -- unsupported macro: WCHAR_MAX (__WCHAR_MAX__) -- unsupported macro: WINT_MAX (__WINT_MAX__) -- unsupported macro: WINT_MIN (__WINT_MIN__) -- arg-macro: procedure INT8_C (x) -- __INT8_C(x) -- arg-macro: procedure UINT8_C (x) -- __UINT8_C(x) -- arg-macro: procedure INT16_C (x) -- __INT16_C(x) -- arg-macro: procedure UINT16_C (x) -- __UINT16_C(x) -- arg-macro: procedure INT32_C (x) -- __INT32_C(x) -- arg-macro: procedure UINT32_C (x) -- __UINT32_C(x) -- arg-macro: procedure INT64_C (x) -- __INT64_C(x) -- arg-macro: procedure UINT64_C (x) -- __UINT64_C(x) -- arg-macro: procedure INTMAX_C (x) -- __INTMAX_C(x) -- arg-macro: procedure UINTMAX_C (x) -- __UINTMAX_C(x) subtype int_least8_t is machine_udefault_types_h.uu_int_least8_t; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:21 subtype uint_least8_t is machine_udefault_types_h.uu_uint_least8_t; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:22 subtype int_least16_t is machine_udefault_types_h.uu_int_least16_t; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:27 subtype uint_least16_t is machine_udefault_types_h.uu_uint_least16_t; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:28 subtype int_least32_t is machine_udefault_types_h.uu_int_least32_t; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:33 subtype uint_least32_t is machine_udefault_types_h.uu_uint_least32_t; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:34 subtype int_least64_t is machine_udefault_types_h.uu_int_least64_t; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:39 subtype uint_least64_t is machine_udefault_types_h.uu_uint_least64_t; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:40 subtype int_fast8_t is int; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:51 subtype uint_fast8_t is unsigned; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:52 subtype int_fast16_t is int; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:61 subtype uint_fast16_t is unsigned; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:62 subtype int_fast32_t is int; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:71 subtype uint_fast32_t is unsigned; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:72 subtype int_fast64_t is Long_Long_Integer; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:81 subtype uint_fast64_t is Extensions.unsigned_long_long; -- /home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.3_811265cb/arm-eabi/include/stdint.h:82 end stdint_h;
oeis/195/A195288.asm
neoneye/loda-programs
11
20169
<filename>oeis/195/A195288.asm ; A195288: Decimal expansion of shortest length, (C), of segment from side CA through incenter to side CB in right triangle ABC with sidelengths (a,b,c)=(5,12,13). ; Submitted by <NAME> ; 4,8,0,7,4,0,1,7,0,0,6,1,8,6,5,2,3,9,0,8,2,5,6,2,8,3,5,6,6,2,7,3,2,7,9,2,8,3,3,5,0,6,2,0,9,8,4,6,0,3,2,8,2,8,3,6,1,3,9,3,7,4,0,8,3,0,2,8,8,9,2,6,4,3,9,0,6,8,0,5,9,3,6,0,6,1,5,8,7,7,6,0,2,4,6,5,4,2,9,0 mov $1,1 mov $3,$0 add $3,1 mov $5,$0 cmp $5,0 add $0,$5 mul $3,3 lpb $3 mul $1,$3 mul $2,$3 add $1,$2 div $1,$0 mul $2,3 div $2,$0 add $2,$1 sub $3,1 lpe div $2,8 mov $4,10 pow $4,$0 div $2,$4 mul $2,3 div $1,$2 mod $1,10 mov $0,$1
source/cvsweb-pushers.ads
reznikmm/cvsweb2git
0
29873
-- BSD 3-Clause License -- -- Copyright (c) 2017, <NAME> -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -- this list of conditions and the following disclaimer. -- -- * Redistributions in binary form must reproduce the above copyright notice, -- this list of conditions and the following disclaimer in the documentation -- and/or other materials provided with the distribution. -- -- * Neither the name of the copyright holder nor the names of its -- contributors may be used to endorse or promote products derived from -- this software without specific prior written permission. -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF -- THE POSSIBILITY OF SUCH DAMAGE. with GNAT.OS_Lib; with League.Calendars; with League.Strings; with League.String_Vectors; with CvsWeb.Loaders; package CvsWeb.Pushers is type Pusher is tagged limited private; procedure Initialize (Self : in out Pusher; Path : League.Strings.Universal_String); procedure Push (Self : in out Pusher; Loader : in out CvsWeb.Loaders.Loader; Skip : League.Calendars.Date_Time); private type Pusher is tagged limited record Path : League.Strings.Universal_String; Git : GNAT.OS_Lib.String_Access; end record; not overriding procedure Git_Add (Self : Pusher; File : League.Strings.Universal_String); not overriding procedure Git_Commit (Self : Pusher; Date : League.Calendars.Date_Time; Message : League.Strings.Universal_String; List : League.String_Vectors.Universal_String_Vector); not overriding procedure Exec (Self : Pusher; List : in out GNAT.OS_Lib.Argument_List); end CvsWeb.Pushers;
kernel/temp/loader.asm
paulscottrobson/flat
0
169833
; *************************************************************************************** ; *************************************************************************************** ; ; Name : loader.src ; Author : <NAME> (<EMAIL>) ; Date : 19th March 2019. ; Purpose : Loads in source pages ; ; *************************************************************************************** ; *************************************************************************************** ; *************************************************************************************** ; ; Load in Pages from A until stopped. ; ; *************************************************************************************** ; ********* loadfrom word ********* define_6c_6f_61_64_66_72_6f_6d: call COMPCompileSelf LOADLoadPages: push de ; save registers push hl push ix call LOADGetPageAndAddress ; convert to page and address ld hl,$AA01 ld de,$BB02 __LOADPageLoop: call LOADProcessPage ; process Page A from IX to End. ld ix,$C000 ; reset IX to start of next buffer add a,2 ; go to next 16k page pair. cp FirstSourcePage+SourcePageCount ; reached the end. jr nz,__LOADPageLoop ; go back. jp CommandLineStart ; *************************************************************************************** ; ; Process Page A from IX to End ; ; *************************************************************************************** LOADProcessPage: push af ; save A IX push ix call PAGESwitch ; switch to that page __LOADPLoop: ld a,(ix+0) ; look at first character on page cp $80 ; is there something here ? jr z,__LOADPNext ; if not, go to next. push ix ; save current position push de ; save DE and HL push hl ld de,EditBuffer ; copy IX into edit buffer push ix pop hl ld bc,EditPageSize ldir pop hl ; restore HL and DE pop de ld ix,EditBuffer ; start processing from the edit buffer/ __LOADPDoLoop: ld a,(ix+0) ; get first tag cp $80 ; end ? jr z,__LOADPDoExit ; then exit call PROProcessTaggedWord ; do - something with it. ld a,(ix+0) ; get length into BC and $3F ld c,a ld b,$00 add ix,bc ; go to next word inc ix ; +1 for the tag byte jr __LOADPDoLoop __LOADPDoExit: pop ix ; restore current position __LOADPNext: ld bc,EditPageSize ; go to next page add ix,bc ; until reached the end. jr nc,__LOADPLoop ; until done the pages to $0000. call PAGERestore pop ix ; restore A IX pop af ret ; *************************************************************************************** ; ; Convert a page number in HL to an address in IX, and page in A. ; ; *************************************************************************************** LOADGetPageAndAddress: push hl ; save HL twice push hl ld a,l ; get offset in page (32 source pages/page) and 31 add a,a ; 2 x offset, x 512 by putting it in H add a,$C0 ; offset from $C000 ld h,a ld l,$00 push hl ; copy into IX. pop ix pop hl ; this is the page number / 32 x 2 srl h rr l srl h rr l srl h rr l srl h rr l srl h rr l add hl,hl ; HL now contains the offset. ld a,l ; get in A add a,FirstSourcePage ; offset from first source page pop hl ; restore HL ret ; and exit
projects/Kirbys_Dream_Land_2.windfish/disassembly/bank_04.asm
jverkoey/awaken
68
243618
SECTION "ROM Bank 04", ROMX[$4000], BANK[$04] db $05, $02, $9B, $4D, $03, $33, $4E, $03 db $00, $00, $00, $2A, $4F, $03, $FF, $32 db $00, $00, $00, $33, $4E, $03, $00, $00 db $00, $33, $4E, $03, $60, $00, $00, $FF db $00, $10, $80, $01, $60, $00, $80, $FE db $0A, $20, $80, $01, $00, $00, $00, $FF db $00, $10, $80, $01, $60, $00, $00, $FF db $00, $10, $80, $01, $60, $00, $80, $FE db $0A, $20, $80, $01, $00, $00, $00, $FF db $00, $10, $80, $01, $30, $70, $D0, $60 db $30, $70, $D0, $60, $F0, $04, $08, $08 db $F0, $04, $08, $08, $00, $04, $08, $08 db $F0, $04, $08, $08, $F0, $04, $08, $08 db $00, $04, $08, $08, $06, $14, $08, $02 db $06, $14, $08, $02, $10, $80, $01, $10 db $80, $01, $FA, $00, $06, $00, $00, $FC db $00, $04, $FC, $FD, $FC, $03, $04, $FD db $04, $03, $00, $00, $00, $FD, $25, $01 db $3B, $FD, $1F, $02, $E1, $FD, $C5, $02 db $DB, $FE, $00, $03, $00, $00, $C5, $02 db $25, $01, $1F, $02, $1F, $02, $25, $01 db $C5, $02, $00, $00, $00, $03, $DB, $FE db $C5, $02, $E1, $FD, $1F, $02, $3B, $FD db $25, $01, $00, $FD, $00, $00, $3B, $FD db $DB, $FE, $E1, $FD, $E1, $FD, $DB, $FE db $3B, $FD, $17, $FF, $0D, $0F, $62, $05 db $27, $0D, $80, $1F, $11, $9D, $41, $01 db $01, $0F, $27, $00, $06, $EC, $40, $27 db $0D, $C9, $43, $4C, $40, $0D, $1E, $44 db $14, $03, $FA, $40, $0D, $8E, $43, $1C db $40, $01, $00, $03, $68, $42, $44, $24 db $0D, $00, $18, $0F, $40, $00, $03, $42 db $43, $44, $10, $5C, $12, $25, $41, $19 db $00, $0C, $19, $01, $08, $19, $02, $08 db $19, $01, $08, $19, $00, $0C, $19, $01 db $08, $19, $02, $08, $19, $01, $08, $19 db $03, $08, $06, $40, $41, $19, $00, $0C db $19, $01, $08, $19, $02, $08, $19, $01 db $08, $19, $00, $0C, $19, $01, $08, $19 db $02, $08, $19, $01, $08, $19, $03, $08 db $22, $89, $41, $04, $01, $04, $12, $69 db $41, $09, $14, $0D, $50, $0F, $10, $A8 db $B2, $05, $06, $0A, $19, $03, $08, $19 db $01, $08, $19, $00, $08, $19, $01, $08 db $19, $02, $10, $19, $01, $08, $06, $DF db $40, $09, $14, $0D, $50, $0F, $10, $A8 db $B2, $05, $06, $0A, $19, $03, $08, $19 db $01, $08, $19, $00, $08, $19, $01, $08 db $19, $02, $10, $19, $01, $08, $06, $DF db $40, $0F, $3B, $1E, $0F, $47, $10, $05 db $02, $0F, $47, $00, $05, $02, $0D, $A5 db $44, $12, $8C, $41, $00, $03, $EC, $42 db $44, $0D, $42, $20, $74, $40, $01, $00 db $00, $08, $00, $00, $2A, $00, $24, $0E db $03, $0D, $43, $44, $10, $5C, $12, $C5 db $41, $19, $01, $04, $19, $02, $08, $19 db $01, $08, $06, $CE, $41, $19, $01, $04 db $19, $02, $08, $19, $01, $08, $28, $1A db $3F, $0D, $F4, $23, $DC, $41, $11, $D9 db $40, $06, $FA, $40, $40, $60, $08, $00 db $00, $2A, $00, $24, $0E, $03, $0D, $43 db $44, $10, $5C, $12, $FA, $41, $19, $01 db $04, $19, $02, $08, $19, $01, $08, $06 db $DF, $40, $19, $01, $04, $19, $02, $08 db $19, $01, $08, $06, $DF, $40, $08, $00 db $00, $0D, $E7, $43, $54, $40, $03, $9A db $42, $44, $24, $0E, $10, $5C, $12, $23 db $42, $19, $01, $04, $19, $02, $08, $19 db $01, $08, $00, $19, $01, $04, $19, $02 db $08, $19, $01, $08, $00, $03, $13, $43 db $44, $0D, $42, $20, $74, $40, $01, $00 db $00, $17, $FF, $0D, $04, $6A, $6F, $0C db $0F, $4C, $01, $0D, $F9, $1F, $0F, $61 db $00, $0D, $0F, $20, $02, $02, $08, $0D db $52, $44, $03, $85, $43, $44, $24, $39 db $05, $01, $19, $05, $02, $0F, $47, $10 db $05, $02, $0F, $47, $00, $05, $02, $16 db $1E, $26, $1A, $B7, $28, $04, $3D, $12 db $18, $03, $CD, $EB, $21, $CD, $A4, $0D db $01, $00, $40, $CD, $5B, $25, $D8, $CD db $85, $23, $CD, $75, $23, $CD, $25, $1A db $CB, $7F, $20, $06, $CB, $6F, $C8, $C3 db $F9, $1E, $1E, $04, $01, $06, $42, $C3 db $46, $08, $1E, $3F, $1A, $FE, $01, $20 db $03, $CD, $E6, $1E, $CD, $A4, $0D, $01 db $00, $40, $CD, $5B, $25, $D8, $CD, $85 db $23, $CD, $75, $23, $CD, $CB, $19, $B7 db $20, $08, $1E, $04, $01, $2D, $42, $C3 db $46, $08, $CB, $6F, $28, $09, $CD, $F9 db $1E, $1E, $11, $1A, $2F, $3C, $12, $2E db $26, $62, $35, $C0, $1E, $3F, $1A, $FE db $02, $28, $09, $3C, $12, $1E, $3C, $83 db $5F, $1A, $77, $C9, $1E, $04, $01, $DF db $40, $C3, $46, $08, $CD, $EB, $21, $CD db $A4, $0D, $01, $00, $40, $CD, $5B, $25 db $D8, $CD, $85, $23, $CD, $75, $23, $CD db $25, $1A, $CB, $7F, $C8, $1E, $04, $01 db $A9, $41, $C3, $46, $08, $01, $00, $40 db $C3, $5B, $25, $CD, $EB, $21, $CD, $A4 db $0D, $01, $00, $40, $CD, $5B, $25, $D8 db $CD, $85, $23, $CD, $75, $23, $CD, $25 db $1A, $CB, $7F, $28, $08, $1E, $04, $01 db $DE, $41, $C3, $46, $08, $CB, $6F, $C8 db $CD, $F9, $1E, $1E, $11, $1A, $2F, $3C db $12, $C9, $01, $00, $40, $CD, $5B, $25 db $D8, $CD, $CB, $19, $B7, $C0, $21, $74 db $40, $CD, $48, $20, $62, $2E, $1F, $36 db $44, $2C, $36, $43, $2C, $36, $60, $C9 db $CD, $EB, $21, $CD, $A4, $0D, $01, $00 db $40, $CD, $5B, $25, $D8, $CD, $85, $23 db $CD, $75, $23, $CD, $25, $1A, $CB, $7F db $C8, $62, $2E, $1F, $36, $44, $2C, $36 db $43, $2C, $36, $42, $C9, $CD, $A4, $0D db $01, $0E, $40, $C3, $5B, $25, $0A, $6F db $03, $0A, $67, $03, $C5, $1E, $27, $1A db $CB, $37, $0F, $47, $1E, $5C, $1A, $B7 db $28, $02, $3E, $18, $80, $85, $6F, $30 db $01, $24, $CD, $F9, $20, $1E, $0F, $2A db $12, $1C, $2A, $12, $1E, $26, $2A, $12 db $1E, $12, $2A, $12, $1E, $39, $2A, $12 db $1C, $7E, $12, $AF, $1E, $11, $12, $C1 db $C9, $0A, $6F, $03, $0A, $67, $03, $1E db $5C, $1A, $07, $07, $85, $6F, $30, $01 db $24, $1E, $3D, $2A, $12, $1C, $2A, $12 db $1C, $2A, $12, $1C, $7E, $12, $C9, $0A db $6F, $03, $0A, $67, $03, $C5, $1E, $27 db $1A, $07, $07, $47, $1E, $5C, $1A, $B7 db $28, $02, $3E, $0C, $80, $85, $6F, $30 db $01, $24, $1E, $45, $1A, $07, $2A, $30 db $02, $2F, $3C, $1E, $11, $12, $1E, $26 db $2A, $12, $1E, $3D, $2A, $12, $1C, $7E db $12, $AF, $1C, $12, $C1, $C9, $C5, $1E db $3D, $1A, $47, $1E, $04, $CD, $9C, $1F db $30, $0D, $CD, $47, $06, $62, $2E, $40 db $BE, $30, $04, $3E, $03, $18, $16, $CD db $47, $06, $62, $2E, $3E, $BE, $30, $03 db $AF, $18, $0A, $23, $BE, $30, $04, $3E db $01, $18, $02, $3E, $02, $1E, $27, $12 db $C1, $C9, $C5, $CD, $47, $06, $E6, $E0 db $CB, $37, $21, $7A, $40, $85, $6F, $30 db $01, $24, $2A, $4F, $17, $9F, $47, $1E db $04, $1A, $81, $12, $1C, $1A, $88, $12 db $7E, $4F, $17, $9F, $47, $1E, $07, $1A db $81, $12, $1C, $1A, $88, $12, $CD, $47 db $06, $E6, $07, $C6, $04, $62, $2E, $40 db $86, $E6, $0F, $77, $07, $07, $21, $8A db $40, $85, $6F, $30, $01, $24, $1E, $0D db $2A, $12, $1C, $2A, $12, $1C, $2A, $12 db $1C, $7E, $12, $C1, $C9, $1E, $3B, $1A db $3D, $12, $1E, $27, $12, $C9, $FF, $02 db $9B, $4D, $03, $33, $4E, $03, $00, $00 db $00, $2A, $4F, $03, $FF, $02, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $51, $45, $5E, $45, $A4, $4D db $B1, $4D, $6F, $55, $7F, $55, $B2, $5B db $BC, $5B, $F7, $61, $FD, $61, $5D, $6C db $63, $6C, $12, $74, $19, $74, $40, $40 db $80, $FE, $18, $80, $01, $40, $00, $00 db $80, $FE, $18, $80, $01, $60, $00, $00 db $80, $FE, $18, $80, $01, $C0, $FF, $00 db $80, $FE, $18, $80, $01, $A0, $FF, $00 db $00, $FE, $40, $00, $02, $00, $00, $00 db $00, $FE, $40, $00, $02, $00, $00, $00 db $18, $08, $18, $08, $08, $04, $10, $00 db $02, $2C, $10, $FF, $02, $00, $00, $00 db $09, $7D, $04, $00, $00, $00, $09, $7D db $04, $FF, $12, $00, $00, $00, $09, $7D db $04, $00, $00, $00, $09, $7D, $04, $00 db $02, $9B, $4D, $03, $33, $4E, $03, $00 db $00, $00, $2A, $4F, $03, $F9, $06, $F9 db $06, $00, $01, $02, $80, $00, $02, $80 db $01, $02, $00, $00, $FF, $0D, $00, $01 db $02, $C0, $00, $02, $C0, $01, $02, $00 db $00, $FF, $0D, $00, $80, $40, $80, $80 db $FD, $10, $00, $00, $00, $00, $00, $80 db $FD, $10, $00, $00, $00, $00, $00, $00 db $FF, $20, $00, $02, $80, $FF, $00, $00 db $FF, $20, $00, $02, $80, $FF, $00, $00 db $FE, $20, $00, $02, $00, $00, $00, $00 db $FE, $20, $00, $02, $00, $00, $00, $00 db $00, $F0, $00, $00, $A0, $01, $00, $00 db $00, $E0, $00, $00, $00, $02, $00, $80 db $FE, $18, $80, $01, $80, $FF, $00, $80 db $FE, $18, $80, $01, $40, $FF, $00, $00 db $FF, $10, $00, $01, $40, $00, $00, $00 db $FF, $10, $00, $01, $40, $00, $00, $20 db $00, $02, $20, $00, $02, $F4, $FA, $FA db $F4, $F6, $FC, $F6, $04, $F6, $FC, $F6 db $04, $00, $FE, $40, $00, $FE, $40, $80 db $FE, $10, $80, $01, $F0, $80, $01, $F0 db $80, $FE, $10, $80, $FE, $10, $80, $FE db $10, $27, $0D, $69, $4C, $0D, $8A, $4C db $E8, $44, $0E, $03, $0B, $46, $22, $46 db $A9, $7C, $16, $03, $60, $49, $44, $0F db $40, $00, $01, $00, $1F, $45, $22, $18 db $45, $03, $6F, $49, $44, $01, $01, $24 db $0D, $00, $03, $60, $49, $44, $0F, $40 db $01, $01, $00, $1F, $45, $22, $1A, $45 db $03, $6F, $49, $44, $01, $03, $24, $0D db $00, $0D, $46, $4D, $03, $60, $49, $44 db $28, $1A, $3F, $0D, $F4, $23, $6B, $45 db $11, $53, $47, $10, $5C, $12, $56, $46 db $19, $02, $18, $06, $59, $46, $19, $02 db $0C, $01, $01, $0F, $27, $00, $0D, $8A db $4C, $6F, $45, $03, $D0, $49, $44, $24 db $0D, $00, $28, $1A, $3F, $0D, $F4, $23 db $6D, $45, $11, $C7, $46, $03, $60, $49 db $44, $10, $5C, $12, $8A, $46, $19, $02 db $10, $08, $20, $01, $26, $20, $01, $06 db $93, $46, $19, $02, $08, $08, $20, $01 db $26, $20, $01, $03, $03, $4A, $44, $24 db $3E, $0D, $E6, $22, $27, $1E, $0D, $E6 db $22, $27, $00, $19, $06, $02, $0D, $E6 db $22, $27, $00, $19, $07, $02, $06, $9E db $46, $0D, $77, $0F, $0E, $01, $03, $0F db $27, $01, $0D, $8A, $4C, $6F, $45, $0F db $40, $02, $03, $6F, $49, $44, $00, $0D db $1D, $20, $11, $E0, $46, $03, $3E, $4A db $44, $01, $03, $10, $5C, $12, $DC, $46 db $08, $60, $00, $00, $08, $A0, $00, $00 db $03, $60, $49, $44, $08, $00, $00, $10 db $5C, $12, $F5, $46, $19, $02, $10, $26 db $80, $01, $06, $FB, $46, $19, $02, $08 db $26, $00, $02, $03, $68, $4A, $44, $24 db $3E, $0D, $E6, $22, $27, $1E, $09, $02 db $0D, $E6, $22, $27, $02, $19, $08, $02 db $0D, $E6, $22, $27, $02, $19, $09, $02 db $0A, $0D, $E6, $22, $27, $21, $06, $06 db $47, $0D, $77, $0F, $0E, $0F, $27, $04 db $0D, $8A, $4C, $6F, $45, $03, $90, $4A db $44, $19, $03, $0C, $19, $01, $08, $01 db $05, $00, $0D, $77, $0F, $0E, $0F, $27 db $05, $0D, $8A, $4C, $6F, $45, $03, $6F db $49, $44, $0F, $40, $02, $19, $01, $10 db $01, $03, $00, $03, $60, $49, $44, $10 db $5C, $12, $62, $47, $19, $02, $18, $06 db $65, $47, $19, $02, $0C, $0F, $27, $02 db $0D, $8A, $4C, $6F, $45, $01, $01, $0F db $26, $0C, $03, $BB, $4A, $44, $24, $0D db $00, $03, $60, $49, $44, $08, $00, $00 db $10, $5C, $12, $8E, $47, $19, $02, $20 db $0F, $26, $28, $06, $94, $47, $19, $02 db $10, $0F, $26, $20, $0F, $27, $03, $0D db $8A, $4C, $6F, $45, $03, $0A, $4B, $44 db $05, $08, $03, $32, $4B, $44, $24, $3E db $0D, $E6, $22, $27, $1E, $09, $02, $0D db $E6, $22, $27, $03, $19, $08, $02, $0D db $E6, $22, $27, $03, $19, $09, $02, $0A db $0D, $E6, $22, $27, $21, $06, $AD, $47 db $07, $00, $00, $08, $00, $00, $03, $60 db $49, $44, $10, $5C, $12, $DD, $47, $19 db $03, $18, $06, $75, $46, $19, $03, $18 db $06, $75, $46, $28, $1A, $3F, $0D, $F4 db $23, $E6, $44, $12, $F6, $47, $10, $5B db $0E, $02, $F9, $45, $54, $4E, $27, $0F db $3F, $02, $03, $E3, $7D, $44, $0F, $27 db $02, $0D, $8A, $4C, $E8, $44, $01, $02 db $1F, $45, $22, $1C, $45, $01, $03, $03 db $7E, $4B, $44, $24, $0D, $00, $27, $10 db $5B, $0E, $02, $F9, $45, $54, $4E, $06 db $7E, $7C, $01, $03, $0C, $09, $06, $19 db $03, $02, $19, $04, $02, $0A, $01, $03 db $0C, $04, $53, $72, $0C, $01, $05, $0C db $0D, $EB, $4C, $D5, $45, $06, $CD, $48 db $08, $00, $FF, $0D, $D1, $1F, $08, $00 db $26, $80, $00, $08, $00, $FF, $2A, $10 db $03, $C7, $4B, $44, $04, $52, $6F, $0B db $0F, $46, $00, $09, $04, $19, $08, $02 db $19, $09, $02, $19, $0A, $02, $19, $07 db $02, $0A, $24, $41, $26, $40, $00, $08 db $80, $FF, $2A, $08, $09, $04, $19, $08 db $02, $19, $09, $02, $19, $0A, $02, $19 db $07, $02, $0A, $24, $41, $22, $3B, $5F db $1D, $03, $48, $4C, $44, $01, $08, $1F db $45, $22, $21, $45, $16, $0D, $EB, $4C db $D9, $45, $06, $CD, $48, $0D, $EB, $4C db $DD, $45, $06, $CD, $48, $0D, $D1, $1F db $F8, $00, $08, $00, $01, $0D, $16, $52 db $26, $80, $00, $0D, $5F, $20, $BF, $48 db $03, $EE, $4B, $44, $06, $EA, $48, $10 db $80, $01, $08, $00, $FF, $0D, $D1, $1F db $08, $00, $06, $AD, $48, $03, $57, $49 db $44, $04, $52, $6F, $0B, $0F, $46, $00 db $19, $05, $02, $19, $04, $01, $0F, $47 db $10, $05, $01, $16, $17, $FF, $0D, $06 db $D1, $48, $04, $52, $6F, $0B, $0F, $46 db $00, $19, $08, $02, $19, $09, $02, $19 db $0A, $02, $19, $07, $02, $06, $F1, $48 db $24, $41, $08, $80, $FF, $2A, $08, $26 db $40, $00, $03, $1B, $4C, $44, $19, $08 db $02, $19, $09, $02, $19, $0A, $02, $19 db $07, $02, $06, $0E, $49, $24, $41, $22 db $3B, $5F, $1D, $03, $48, $4C, $44, $01 db $08, $1F, $45, $22, $21, $45, $16, $1B db $00, $40, $03, $04, $83, $77, $0B, $0F db $46, $00, $22, $3B, $5F, $1D, $19, $00 db $02, $19, $01, $02, $19, $02, $02, $19 db $03, $02, $19, $04, $02, $19, $05, $02 db $19, $06, $02, $19, $07, $02, $16, $CD db $E6, $1E, $CD, $D3, $1E, $C3, $A4, $0D db $01, $23, $45, $CD, $3C, $23, $D0, $1E db $04, $01, $D9, $7C, $C3, $46, $08, $CD db $E3, $7D, $D8, $CD, $EB, $21, $CD, $A4 db $0D, $1E, $5B, $1A, $07, $21, $CC, $49 db $85, $6F, $30, $01, $24, $2A, $46, $4F db $CD, $CD, $24, $CB, $7F, $20, $14, $CB db $6F, $20, $09, $CB, $77, $C8, $AF, $1E db $0F, $12, $1C, $12, $AF, $1E, $0D, $12 db $1C, $12, $C9, $1E, $0E, $21, $99, $42 db $3E, $1E, $CD, $CF, $05, $F0, $9A, $57 db $1E, $40, $1A, $FE, $01, $28, $0A, $38 db $0B, $1E, $04, $01, $E3, $47, $C3, $46 db $08, $CD, $C0, $1E, $1E, $04, $01, $7E db $7C, $C3, $46, $08, $4D, $45, $92, $4D db $01, $23, $45, $CD, $3C, $23, $38, $23 db $1E, $0F, $1A, $4F, $1C, $1A, $B1, $28 db $12, $CD, $D3, $1E, $CD, $A4, $0D, $CD db $25, $1A, $CB, $77, $C8, $AF, $1E, $0F db $12, $1C, $12, $1E, $04, $01, $6A, $46 db $C3, $46, $08, $1E, $04, $01, $D9, $7C db $C3, $46, $08, $01, $31, $45, $CD, $3C db $23, $38, $2B, $CD, $A4, $0D, $CD, $25 db $1A, $CB, $7F, $28, $0F, $1E, $27, $3E db $01, $CD, $19, $23, $1E, $04, $01, $B1 db $46, $C3, $46, $08, $CB, $6F, $C8, $1E db $27, $3E, $05, $CD, $19, $23, $1E, $04 db $01, $B1, $46, $C3, $46, $08, $1E, $04 db $01, $D9, $7C, $C3, $46, $08, $01, $23 db $45, $CD, $3C, $23, $38, $1A, $CD, $A4 db $0D, $06, $04, $1E, $07, $CD, $9C, $1F db $38, $06, $CD, $25, $1A, $CB, $7F, $C8 db $1E, $04, $01, $E0, $46, $C3, $46, $08 db $1E, $04, $01, $D9, $7C, $C3, $46, $08 db $01, $31, $45, $CD, $3C, $23, $38, $18 db $CD, $A4, $0D, $CD, $25, $1A, $CB, $6F db $C8, $1E, $27, $3E, $06, $CD, $19, $23 db $1E, $04, $01, $21, $47, $C3, $46, $08 db $1E, $04, $01, $D9, $7C, $C3, $46, $08 db $01, $23, $45, $CD, $3C, $23, $38, $1B db $CD, $EB, $21, $CD, $A4, $0D, $CD, $25 db $1A, $CB, $7F, $C8, $1E, $27, $3E, $05 db $CD, $19, $23, $1E, $04, $01, $3A, $47 db $C3, $46, $08, $1E, $04, $01, $D9, $7C db $C3, $46, $08, $01, $23, $45, $CD, $3C db $23, $38, $3F, $1E, $0F, $1A, $4F, $1C db $1A, $B1, $20, $0A, $1E, $26, $1A, $B7 db $28, $04, $3D, $12, $18, $06, $CD, $D3 db $1E, $CD, $A4, $0D, $CD, $25, $1A, $CB db $77, $28, $07, $AF, $1E, $0F, $12, $1C db $12, $C9, $CB, $7F, $C8, $1E, $0E, $21 db $99, $42, $3E, $1E, $CD, $CF, $05, $F0 db $9A, $57, $1E, $04, $01, $79, $47, $C3 db $46, $08, $1E, $04, $01, $D9, $7C, $C3 db $46, $08, $01, $23, $45, $CD, $3C, $23 db $38, $18, $CD, $A4, $0D, $CD, $25, $1A db $CB, $6F, $C8, $1E, $27, $3E, $05, $CD db $19, $23, $1E, $04, $01, $B1, $46, $C3 db $46, $08, $1E, $04, $01, $D9, $7C, $C3 db $46, $08, $01, $31, $45, $CD, $3C, $23 db $38, $3C, $1E, $26, $1A, $B7, $28, $28 db $3D, $12, $CD, $D3, $1E, $CD, $A4, $0D db $CD, $25, $1A, $CB, $77, $28, $07, $AF db $1E, $0F, $12, $1C, $12, $C9, $CB, $6F db $C8, $1E, $27, $3E, $05, $CD, $19, $23 db $1E, $04, $01, $B1, $46, $C3, $46, $08 db $1E, $45, $1A, $2F, $3C, $12, $1E, $04 db $01, $C8, $47, $C3, $46, $08, $1E, $04 db $01, $D9, $7C, $C3, $46, $08, $CD, $E3 db $7D, $D8, $CD, $EB, $21, $CD, $A4, $0D db $1E, $5B, $1A, $07, $21, $C3, $4B, $85 db $6F, $30, $01, $24, $2A, $46, $4F, $CD db $CD, $24, $CB, $77, $28, $07, $AF, $1E db $0F, $12, $1C, $12, $C9, $CB, $7F, $C8 db $1E, $0D, $CD, $7A, $0F, $2E, $3F, $62 db $35, $28, $08, $1E, $04, $01, $FA, $47 db $C3, $46, $08, $1E, $04, $01, $16, $48 db $C3, $46, $08, $4D, $45, $92, $4D, $CD db $D3, $1E, $CD, $A4, $0D, $01, $AE, $44 db $CD, $5B, $25, $D8, $CD, $25, $1A, $CB db $6F, $C8, $1E, $41, $21, $99, $42, $3E db $1E, $CD, $CF, $05, $F0, $9A, $57, $AF db $1E, $0D, $12, $1C, $12, $C9, $CD, $EB db $21, $CD, $A4, $0D, $01, $AE, $44, $CD db $5B, $25, $D8, $CD, $25, $1A, $CB, $7F db $28, $08, $1E, $04, $01, $00, $49, $C3 db $46, $08, $CB, $6F, $C8, $1E, $41, $21 db $99, $42, $3E, $1E, $CD, $CF, $05, $F0 db $9A, $57, $C8, $CD, $D3, $1E, $CD, $A4 db $0D, $01, $AE, $44, $CD, $5B, $25, $D8 db $CD, $25, $1A, $CB, $7F, $28, $08, $1E db $04, $01, $1D, $49, $C3, $46, $08, $CB db $6F, $C8, $1E, $41, $21, $99, $42, $3E db $1E, $CD, $CF, $05, $F0, $9A, $57, $C9 db $01, $AE, $44, $C3, $5B, $25, $1E, $5B db $1A, $07, $07, $6F, $1E, $5C, $1A, $07 db $85, $21, $CA, $44, $85, $6F, $30, $01 db $24, $1E, $3D, $2A, $12, $1C, $7E, $12 db $C9, $1E, $3D, $1A, $6F, $1C, $1A, $67 db $2A, $FE, $FF, $20, $0A, $2A, $2F, $3C db $85, $6F, $3E, $FF, $8C, $67, $2A, $1E db $27, $12, $1E, $3D, $7D, $12, $1C, $7C db $12, $C9, $0A, $6F, $03, $0A, $67, $03 db $1E, $27, $1A, $C5, $CB, $37, $4F, $1E db $5C, $1A, $CB, $37, $0F, $81, $85, $6F db $30, $01, $24, $1E, $0F, $2A, $12, $1C db $2A, $12, $CD, $53, $20, $CD, $F9, $20 db $C1, $C9, $1E, $3D, $1A, $6F, $1C, $1A db $67, $2A, $B7, $28, $1F, $5F, $CD, $47 db $06, $BB, $38, $08, $3E, $01, $EA, $60 db $DD, $AF, $18, $05, $AF, $EA, $60, $DD db $3C, $1E, $27, $12, $1E, $3D, $7D, $12 db $1C, $7C, $12, $C9, $FA, $60, $DD, $B7 db $20, $06, $2A, $B7, $28, $E6, $18, $D5 db $23, $18, $E1, $0A, $6F, $03, $0A, $03 db $C5, $4D, $47, $CD, $47, $06, $E6, $02 db $81, $4F, $30, $01, $04, $CD, $D1, $1F db $C1, $21, $E1, $45, $CD, $BE, $20, $CD db $F9, $20, $C3, $23, $21, $0A, $6F, $03 db $0A, $67, $03, $C3, $04, $4D, $C5, $26 db $A8, $0E, $0A, $2E, $00, $7E, $FE, $FF db $28, $17, $2E, $48, $7E, $BA, $20, $11 db $79, $E0, $80, $1E, $04, $01, $E4, $48 db $CD, $49, $08, $F0, $9A, $57, $F0, $80 db $4F, $0D, $28, $03, $24, $18, $DC, $C1 db $C9, $21, $60, $DD, $34, $C9, $1E, $04 db $21, $51, $DB, $1A, $96, $38, $0D, $FE db $30, $38, $09, $FE, $70, $D8, $3E, $C0 db $1E, $45, $12, $C9, $3E, $40, $18, $F8 db $0D, $D1, $1F, $00, $04, $06, $F5, $72 db $FF, $02, $00, $00, $00, $09, $7D, $04 db $00, $00, $00, $09, $7D, $04, $FF, $32 db $00, $00, $00, $09, $7D, $04, $00, $00 db $00, $09, $7D, $04, $05, $02, $9B, $4D db $03, $33, $4E, $03, $00, $00, $00, $2A db $4F, $03, $F9, $09, $F9, $06, $FF, $32 db $00, $00, $00, $33, $4E, $03, $00, $00 db $00, $2A, $4F, $03, $00, $01, $02, $80 db $00, $02, $80, $01, $02, $00, $00, $FF db $0D, $00, $01, $02, $C0, $00, $02, $C0 db $01, $02, $00, $00, $FF, $0D, $80, $60 db $C0, $A0, $40, $40, $40, $40, $A0, $E0 db $40, $40, $40, $60, $80, $C0, $80, $60 db $80, $60, $00, $C0, $00, $01, $F0, $0C db $20, $01, $EE, $08, $80, $01, $F4, $80 db $20, $01, $EE, $80, $C0, $FD, $12, $40 db $02, $C0, $00, $00, $80, $FD, $14, $80 db $02, $C0, $00, $00, $C0, $FD, $10, $00 db $00, $00, $00, $00, $80, $FD, $10, $00 db $00, $00, $00, $00, $00, $FE, $10, $00 db $02, $00, $01, $00, $00, $FE, $10, $00 db $02, $40, $01, $00, $00, $FF, $10, $00 db $01, $C0, $00, $00, $00, $FF, $10, $00 db $01, $00, $01, $00, $00, $FE, $20, $00 db $02, $00, $00, $00, $00, $FE, $20, $00 db $02, $00, $00, $00, $C0, $FD, $12, $00 db $00, $00, $00, $00, $80, $FD, $14, $00 db $00, $00, $00, $00, $18, $1C, $C0, $00 db $FA, $00, $00, $01, $F8, $00, $20, $C0 db $01, $20, $40, $02, $27, $03, $1D, $52 db $44, $0D, $69, $4C, $0D, $8A, $4C, $E8 db $44, $0E, $03, $0B, $46, $22, $46, $A9 db $7C, $16, $03, $1D, $52, $44, $28, $1A db $3F, $0D, $F4, $23, $BE, $4D, $12, $84 db $4E, $0D, $F4, $23, $C0, $4D, $12, $3C db $4F, $06, $9A, $4F, $27, $0D, $19, $55 db $10, $11, $DA, $4E, $28, $1A, $3F, $0D db $F4, $23, $C4, $4D, $12, $DA, $4E, $03 db $3B, $52, $44, $08, $00, $00, $0F, $3F db $00, $0D, $E1, $54, $D4, $4D, $01, $02 db $00, $03, $2C, $52, $44, $19, $02, $10 db $09, $12, $0D, $BA, $22, $27, $07, $19 db $0A, $02, $19, $0B, $02, $19, $0A, $02 db $19, $0B, $02, $0A, $28, $1A, $3F, $0D db $F4, $23, $CA, $4D, $12, $E3, $47, $0D db $F4, $23, $CC, $4D, $12, $9A, $4F, $06 db $3C, $4F, $03, $1D, $52, $44, $28, $1A db $3F, $0D, $F4, $23, $C2, $4D, $12, $84 db $4E, $10, $5C, $12, $F8, $4E, $19, $00 db $0C, $27, $19, $02, $0C, $06, $FF, $4E db $19, $00, $06, $27, $19, $02, $06, $27 db $0F, $27, $00, $0D, $8A, $4C, $E4, $4D db $03, $DB, $52, $44, $01, $01, $24, $0D db $00, $03, $1D, $52, $44, $07, $00, $00 db $08, $00, $00, $27, $0D, $77, $0F, $0D db $09, $08, $19, $0A, $02, $19, $0B, $02 db $0A, $24, $36, $0D, $BA, $22, $27, $08 db $09, $10, $19, $0A, $02, $19, $0B, $02 db $0A, $06, $C4, $4E, $27, $28, $14, $80 db $6A, $4F, $0D, $BA, $22, $27, $09, $03 db $1D, $52, $44, $19, $06, $3C, $24, $3D db $19, $07, $04, $0D, $AE, $23, $4F, $54 db $44, $19, $08, $20, $28, $1A, $3F, $0D db $F4, $23, $CE, $4D, $12, $E3, $47, $06 db $84, $4E, $01, $01, $0F, $27, $01, $0D db $8A, $4C, $E4, $4D, $03, $25, $53, $44 db $24, $0D, $00, $0D, $BA, $22, $27, $0A db $03, $1D, $52, $44, $19, $06, $3C, $24 db $3D, $19, $07, $04, $03, $5B, $53, $44 db $0D, $AE, $23, $B3, $54, $44, $19, $08 db $20, $00, $27, $01, $06, $0D, $03, $22 db $F0, $11, $B2, $4F, $28, $1A, $3F, $0D db $F4, $23, $C6, $4D, $12, $18, $50, $06 db $BD, $4F, $28, $1A, $3F, $0D, $F4, $23 db $C8, $4D, $12, $18, $50, $0F, $27, $04 db $0D, $8A, $4C, $E4, $4D, $03, $8F, $53 db $44, $00, $24, $0E, $03, $1D, $52, $44 db $10, $5C, $12, $DB, $4F, $19, $07, $10 db $06, $DE, $4F, $19, $07, $08, $19, $08 db $04, $0D, $BA, $22, $27, $0B, $19, $0E db $02, $19, $08, $0E, $0D, $BA, $22, $27 db $0B, $19, $0E, $02, $10, $5C, $12, $FF db $4F, $19, $08, $40, $06, $02, $50, $19 db $08, $30, $28, $1A, $3F, $0D, $F4, $23 db $D0, $4D, $12, $E3, $47, $0D, $F4, $23 db $D2, $4D, $12, $3C, $4F, $06, $84, $4E db $0F, $27, $05, $0D, $8A, $4C, $E4, $4D db $03, $C1, $53, $44, $24, $0D, $00, $03 db $1D, $52, $44, $10, $5C, $12, $35, $50 db $05, $10, $06, $37, $50, $05, $08, $19 db $08, $04, $03, $F7, $53, $44, $0D, $BA db $22, $27, $0B, $19, $0E, $02, $19, $08 db $0E, $0D, $BA, $22, $27, $0B, $19, $0E db $02, $01, $08, $00, $24, $0E, $03, $1D db $52, $44, $10, $5C, $12, $64, $50, $05 db $20, $06, $02, $50, $05, $10, $06, $02 db $50, $09, $06, $19, $03, $02, $19, $04 db $02, $0A, $01, $03, $0C, $04, $45, $73 db $0C, $01, $05, $0C, $0F, $4C, $01, $04 db $45, $73, $0C, $0D, $F9, $1F, $0D, $0F db $20, $04, $04, $3F, $0D, $52, $44, $0D db $A8, $50, $03, $1E, $54, $44, $24, $39 db $05, $01, $19, $09, $02, $0F, $47, $10 db $05, $02, $0F, $47, $00, $05, $02, $16 db $1E, $07, $1A, $D6, $01, $12, $1C, $1A db $DE, $00, $12, $C9, $0F, $4C, $01, $04 db $45, $73, $0C, $0D, $F9, $1F, $0F, $60 db $3F, $0D, $D1, $1F, $0C, $03, $0F, $26 db $10, $0D, $15, $21, $44, $4E, $03, $27 db $54, $44, $24, $39, $0D, $BA, $22, $27 db $1F, $19, $0F, $02, $19, $10, $02, $19 db $0F, $02, $0D, $BA, $22, $27, $1F, $19 db $10, $02, $19, $0F, $02, $19, $10, $02 db $06, $D4, $50, $0F, $40, $00, $0F, $27 db $02, $0D, $8A, $4C, $E4, $4D, $06, $15 db $51, $10, $5C, $12, $0F, $51, $08, $80 db $01, $26, $80, $01, $06, $15, $51, $08 db $C0, $01, $26, $C0, $01, $04, $E6, $72 db $0B, $0F, $46, $00, $0D, $D1, $1F, $00 db $E7, $19, $1B, $04, $19, $1A, $03, $19 db $19, $02, $19, $18, $02, $19, $17, $02 db $19, $16, $02, $19, $15, $01, $19, $14 db $01, $19, $13, $01, $19, $07, $01, $04 db $52, $6F, $0B, $19, $08, $02, $19, $09 db $02, $19, $0A, $02, $19, $07, $02, $19 db $08, $02, $19, $09, $02, $19, $0A, $02 db $19, $07, $02, $0D, $05, $55, $19, $08 db $02, $19, $09, $02, $19, $0A, $02, $19 db $07, $02, $06, $5E, $51, $1B, $66, $49 db $03, $04, $83, $77, $0B, $0F, $46, $00 db $03, $DB, $54, $44, $0D, $0F, $20, $0C db $0C, $3F, $24, $11, $0F, $47, $10, $09 db $04, $19, $00, $02, $19, $01, $02, $19 db $02, $02, $19, $03, $02, $19, $04, $02 db $19, $05, $02, $19, $06, $02, $19, $07 db $02, $0A, $0F, $47, $00, $16, $0F, $4C db $01, $04, $45, $73, $0C, $0D, $F9, $1F db $0D, $D1, $1F, $00, $FF, $0D, $0F, $20 db $04, $04, $3F, $0D, $8A, $21, $4E, $4E db $03, $CF, $54, $44, $24, $1D, $19, $0C db $02, $19, $0D, $02, $06, $C6, $51, $28 db $13, $40, $DF, $51, $13, $80, $F3, $51 db $13, $C0, $F6, $51, $0D, $16, $52, $0D db $D1, $1F, $06, $03, $26, $00, $02, $0D db $32, $10, $E0, $08, $00, $FE, $2A, $20 db $06, $07, $52, $0D, $16, $52, $0D, $D1 db $1F, $02, $01, $26, $40, $00, $0D, $32 db $10, $FC, $08, $40, $FD, $2A, $2C, $04 db $46, $72, $0B, $0F, $46, $00, $03, $57 db $49, $44, $19, $00, $10, $16, $1E, $45 db $1A, $2F, $3C, $12, $C9, $01, $68, $4D db $CD, $3C, $23, $D0, $1E, $04, $01, $D9 db $7C, $C3, $46, $08, $01, $76, $4D, $CD db $3C, $23, $D0, $1E, $04, $01, $D9, $7C db $C3, $46, $08, $01, $68, $4D, $CD, $3C db $23, $38, $32, $1E, $0D, $1A, $4F, $1C db $1A, $B1, $28, $3D, $CD, $E6, $1E, $CD db $A4, $0D, $01, $92, $4D, $CD, $B9, $24 db $B7, $20, $22, $21, $1E, $45, $2A, $1E db $12, $12, $1E, $39, $2A, $12, $1C, $7E db $12, $62, $2E, $1F, $36, $44, $2C, $36 db $52, $2C, $36, $B4, $C9, $1E, $04, $01 db $D9, $7C, $C3, $46, $08, $CB, $6F, $C8 db $1E, $11, $1A, $2F, $3C, $12, $C3, $F9 db $1E, $1E, $3F, $1A, $B7, $20, $1D, $1E db $26, $1A, $B7, $28, $07, $3D, $12, $1E db $15, $AF, $12, $C9, $1E, $3F, $3E, $01 db $12, $3E, $02, $1E, $15, $12, $21, $DC db $4D, $C3, $E7, $54, $1E, $04, $01, $A9 db $4E, $C3, $46, $08, $01, $68, $4D, $CD db $3C, $23, $38, $17, $CD, $EB, $21, $CD db $A4, $0D, $01, $92, $4D, $CD, $CD, $24 db $CB, $7F, $C8, $1E, $04, $01, $A9, $4E db $C3, $46, $08, $1E, $04, $01, $D9, $7C db $C3, $46, $08, $01, $68, $4D, $CD, $3C db $23, $38, $3A, $1E, $0F, $1A, $4F, $1C db $1A, $B1, $20, $0F, $1E, $04, $06, $10 db $CD, $9C, $1F, $30, $06, $1E, $0D, $AF db $12, $1C, $12, $CD, $EB, $21, $CD, $A4 db $0D, $01, $92, $4D, $CD, $CD, $24, $CB db $7F, $20, $0A, $CB, $6F, $C8, $AF, $1E db $0D, $12, $1C, $12, $C9, $1E, $04, $01 db $11, $4F, $C3, $46, $08, $1E, $04, $01 db $D9, $7C, $C3, $46, $08, $01, $68, $4D db $CD, $3C, $23, $38, $26, $1E, $0F, $1A db $4F, $1C, $1A, $B1, $28, $15, $CD, $D3 db $1E, $CD, $A4, $0D, $01, $92, $4D, $CD db $CD, $24, $CB, $77, $C8, $AF, $1E, $0F db $12, $1C, $12, $1E, $04, $01, $7B, $4F db $C3, $46, $08, $1E, $04, $01, $D9, $7C db $C3, $46, $08, $01, $68, $4D, $CD, $3C db $23, $38, $24, $CD, $D3, $1E, $CD, $A4 db $0D, $01, $92, $4D, $CD, $CD, $24, $CB db $7F, $C8, $1E, $0E, $21, $99, $42, $3E db $1E, $CD, $CF, $05, $F0, $9A, $57, $1E db $04, $01, $5C, $4F, $C3, $46, $08, $1E db $04, $01, $D9, $7C, $C3, $46, $08, $01 db $68, $4D, $CD, $3C, $23, $38, $22, $CD db $D3, $1E, $CD, $A4, $0D, $01, $92, $4D db $CD, $CD, $24, $CB, $7F, $20, $0A, $CB db $77, $C8, $AF, $1E, $0F, $12, $1C, $12 db $C9, $1E, $04, $01, $CA, $4F, $C3, $46 db $08, $1E, $04, $01, $D9, $7C, $C3, $46 db $08, $01, $68, $4D, $CD, $3C, $23, $38 db $26, $1E, $0F, $1A, $4F, $1C, $1A, $B1 db $28, $15, $CD, $D3, $1E, $CD, $A4, $0D db $01, $92, $4D, $CD, $CD, $24, $CB, $77 db $C8, $AF, $1E, $0F, $12, $1C, $12, $1E db $04, $01, $27, $50, $C3, $46, $08, $1E db $04, $01, $D9, $7C, $C3, $46, $08, $01 db $68, $4D, $CD, $3C, $23, $38, $17, $CD db $D3, $1E, $CD, $A4, $0D, $01, $92, $4D db $CD, $CD, $24, $CB, $7F, $C8, $1E, $04 db $01, $54, $50, $C3, $46, $08, $1E, $04 db $01, $D9, $7C, $C3, $46, $08, $CD, $A4 db $0D, $01, $96, $4D, $C3, $5B, $25, $CD db $E6, $1E, $CD, $A4, $0D, $01, $96, $4D db $CD, $5B, $25, $D8, $CD, $F3, $19, $62 db $B7, $28, $11, $CB, $6F, $20, $0D, $CB db $67, $20, $09, $2E, $26, $35, $C0, $1E db $11, $AF, $12, $C9, $C3, $BA, $0B, $CD db $EB, $21, $CD, $A4, $0D, $01, $AE, $44 db $CD, $5B, $25, $D8, $CD, $25, $1A, $CB db $6F, $28, $08, $1E, $04, $01, $6D, $51 db $C3, $46, $08, $CB, $7F, $C8, $1E, $40 db $1A, $B7, $28, $18, $21, $46, $4E, $CD db $E7, $54, $AF, $1E, $0F, $12, $1C, $12 db $62, $2E, $1F, $36, $44, $2C, $36, $54 db $2C, $36, $96, $C9, $3C, $12, $21, $E4 db $4D, $3E, $03, $C3, $93, $4C, $1E, $0D db $1A, $4F, $1C, $1A, $B1, $28, $0C, $CD db $E6, $1E, $CD, $A4, $0D, $01, $AE, $44 db $C3, $5B, $25, $1E, $04, $01, $6D, $51 db $C3, $46, $08, $CD, $A4, $0D, $01, $AE db $44, $CD, $5B, $25, $D8, $CD, $25, $1A db $CB, $7F, $20, $03, $CB, $6F, $C8, $1E db $04, $01, $71, $51, $C3, $46, $08, $CD db $C5, $21, $CD, $A4, $0D, $01, $96, $4D db $C3, $5B, $25, $01, $BC, $44, $C3, $5B db $25, $0A, $6F, $03, $0A, $67, $03, $1E db $5C, $1A, $07, $07, $85, $6F, $30, $01 db $24, $CD, $F9, $20, $CD, $23, $21, $1E db $26, $7E, $12, $C9, $26, $A0, $2E, $4D db $7E, $1E, $27, $12, $C9, $1E, $48, $1A db $67, $2E, $45, $CB, $7E, $1E, $15, $20 db $04, $3E, $08, $18, $02, $3E, $02, $12 db $C9, $1E, $07, $0A, $03, $C5, $47, $CD db $9C, $1F, $C1, $1E, $27, $38, $03, $AF db $18, $02, $3E, $01, $12, $C9, $1E, $04 db $C3, $1B, $55, $06, $02, $00, $00, $00 db $09, $7D, $04, $00, $00, $00, $09, $7D db $04, $06, $02, $9B, $4D, $03, $33, $4E db $03, $00, $00, $00, $2A, $4F, $03, $06 db $02, $30, $59, $04, $33, $4E, $03, $00 db $00, $00, $2A, $4F, $03, $FF, $22, $00 db $00, $00, $33, $4E, $03, $00, $00, $00 db $33, $4E, $03, $F9, $0B, $F9, $06, $00 db $02, $C0, $01, $02, $00, $C0, $00, $02 db $C0, $01, $02, $00, $C0, $FF, $10, $00 db $02, $C0, $01, $02, $00, $C0, $00, $02 db $C0, $01, $02, $00, $C0, $FF, $10, $80 db $80, $C0, $80, $00, $C0, $40, $40, $C0 db $C0, $40, $20, $80, $80, $C0, $C0, $60 db $80, $C0, $E0, $00, $FE, $20, $00, $02 db $80, $FF, $00, $00, $FE, $20, $00, $02 db $40, $FF, $00, $00, $FF, $10, $00, $01 db $00, $00, $00, $00, $FF, $10, $00, $01 db $00, $00, $00, $00, $FE, $20, $00, $02 db $00, $00, $00, $00, $FE, $20, $00, $02 db $00, $00, $00, $00, $FE, $10, $00, $02 db $60, $00, $00, $00, $FE, $10, $00, $02 db $60, $00, $00, $E0, $FE, $09, $00, $00 db $20, $01, $00, $E0, $FE, $09, $00, $00 db $60, $01, $00, $00, $FF, $08, $00, $00 db $20, $01, $00, $00, $FF, $08, $00, $00 db $60, $01, $00, $80, $FC, $1C, $00, $00 db $C0, $00, $00, $40, $FC, $1E, $00, $00 db $C0, $00, $00, $00, $FE, $10, $00, $00 db $C0, $00, $00, $C0, $FD, $12, $00, $00 db $C0, $00, $00, $00, $FF, $08, $00, $00 db $C0, $00, $00, $C0, $FE, $0A, $00, $00 db $C0, $00, $00, $18, $10, $80, $00, $C0 db $00, $20, $00, $00, $30, $00, $00, $20 db $10, $08, $04, $08, $04, $10, $0C, $08 db $04, $10, $0C, $08, $04, $40, $20, $40 db $20, $F8, $08, $F8, $06, $FA, $08, $08 db $08, $08, $06, $06, $08, $27, $0D, $69 db $4C, $0E, $03, $6A, $56, $78, $56, $A9 db $7C, $16, $03, $4B, $59, $44, $01, $00 db $1F, $45, $22, $33, $56, $06, $5D, $56 db $03, $4B, $59, $44, $0F, $26, $03, $27 db $19, $01, $02, $19, $02, $02, $19, $01 db $02, $19, $03, $02, $0D, $9A, $56, $11 db $5D, $56, $28, $14, $C0, $7F, $56, $06 db $5D, $56, $1E, $26, $1A, $3D, $12, $1E db $27, $12, $C9, $28, $1A, $3F, $0D, $F4 db $23, $8F, $55, $11, $4D, $57, $08, $00 db $00, $0D, $D3, $20, $35, $56, $22, $FF db $56, $04, $03, $6C, $59, $44, $28, $13 db $80, $C9, $56, $0F, $43, $00, $06, $CC db $56, $0F, $43, $01, $0D, $E6, $22, $27 db $0C, $19, $01, $02, $0D, $E6, $22, $27 db $0C, $19, $02, $02, $0D, $E6, $22, $27 db $0C, $19, $01, $02, $0D, $E6, $22, $27 db $0C, $19, $03, $02, $24, $22, $10, $43 db $11, $CC, $56, $0D, $B0, $5A, $11, $CC db $56, $0F, $1C, $80, $06, $5D, $56, $10 db $5C, $11, $0E, $57, $0D, $E6, $22, $27 db $22, $05, $04, $06, $04, $57, $00, $0D db $77, $0F, $0E, $0D, $8A, $4C, $A3, $55 db $03, $AF, $59, $44, $01, $01, $00, $08 db $00, $00, $0D, $3A, $21, $39, $56, $03 db $D6, $59, $44, $24, $0E, $0D, $E6, $22 db $27, $0D, $05, $02, $06, $2D, $57, $28 db $1A, $3F, $0D, $F4, $23, $91, $55, $12 db $5D, $56, $0D, $F4, $23, $93, $55, $12 db $4D, $57, $06, $AE, $56, $03, $4B, $59 db $44, $01, $00, $1F, $45, $22, $3F, $56 db $01, $02, $1F, $45, $22, $41, $56, $01 db $04, $1F, $45, $22, $43, $56, $01, $09 db $1F, $45, $22, $45, $56, $09, $03, $01 db $0A, $1F, $45, $22, $47, $56, $01, $0B db $1F, $45, $22, $49, $56, $01, $0A, $1F db $45, $22, $4B, $56, $0A, $19, $04, $04 db $27, $0F, $27, $01, $0D, $8A, $4C, $A3 db $55, $0D, $BA, $22, $27, $0E, $03, $0C db $5A, $44, $0D, $19, $55, $18, $11, $AF db $57, $28, $1A, $3F, $0D, $F4, $23, $97 db $55, $12, $BD, $57, $06, $F4, $57, $28 db $1A, $3F, $0D, $F4, $23, $95, $55, $12 db $BD, $57, $06, $F4, $57, $19, $01, $10 db $19, $02, $10, $19, $04, $1C, $19, $05 db $04, $01, $06, $0D, $20, $5B, $00, $24 db $5C, $1F, $45, $22, $4D, $56, $28, $1A db $3F, $0D, $F4, $23, $99, $55, $12, $5D db $56, $0D, $F4, $23, $9B, $55, $12, $AE db $56, $0D, $F4, $23, $9D, $55, $12, $28 db $58, $06, $4D, $57, $19, $01, $04, $19 db $0D, $04, $19, $0C, $04, $19, $04, $04 db $19, $01, $08, $19, $0D, $08, $19, $0C db $08, $19, $04, $08, $19, $01, $04, $19 db $0D, $04, $19, $0C, $04, $19, $07, $04 db $01, $08, $0D, $20, $5B, $01, $24, $5C db $1F, $45, $22, $4F, $56, $06, $D6, $57 db $10, $5C, $12, $5A, $58, $0F, $27, $02 db $09, $03, $24, $0D, $03, $0C, $5A, $44 db $0D, $8A, $4C, $A3, $55, $19, $01, $08 db $09, $03, $19, $02, $02, $19, $01, $02 db $19, $03, $02, $19, $01, $02, $0A, $19 db $01, $04, $0D, $77, $0F, $0E, $0A, $06 db $84, $58, $0F, $27, $02, $09, $02, $24 db $0D, $03, $0C, $5A, $44, $0D, $8A, $4C db $A3, $55, $19, $01, $08, $09, $03, $19 db $02, $02, $19, $01, $02, $19, $03, $02 db $19, $01, $02, $0A, $19, $01, $04, $0D db $77, $0F, $0E, $0A, $28, $1A, $3F, $0D db $F4, $23, $9F, $55, $12, $AE, $56, $0D db $F4, $23, $A1, $55, $12, $4D, $57, $06 db $6A, $56, $01, $01, $0C, $0D, $FB, $5A db $09, $04, $19, $00, $02, $19, $0F, $02 db $0A, $0C, $04, $DE, $75, $0C, $01, $01 db $0C, $0D, $CF, $5A, $51, $56, $06, $CD db $48, $0D, $CF, $5A, $57, $56, $06, $CD db $48, $0F, $4C, $01, $04, $DE, $75, $0C db $0D, $F9, $1F, $0D, $D1, $1F, $00, $F8 db $01, $0E, $0F, $27, $03, $0D, $8A, $4C db $A3, $55, $03, $4D, $5A, $44, $10, $46 db $1A, $3E, $0F, $3D, $01, $05, $40, $0F db $3D, $00, $18, $04, $52, $6F, $0B, $0F db $46, $00, $0F, $47, $10, $19, $06, $02 db $0F, $47, $00, $05, $02, $10, $3F, $12 db $0F, $59, $10, $3E, $1A, $46, $0F, $40 db $02, $0F, $27, $04, $06, $19, $59, $10 db $3E, $1A, $46, $0F, $40, $03, $0F, $27 db $06, $04, $DE, $75, $0C, $01, $0E, $0D db $8A, $4C, $A3, $55, $03, $74, $5A, $44 db $00, $01, $0E, $03, $59, $5A, $44, $00 db $04, $DE, $75, $0C, $10, $3E, $1A, $46 db $01, $0E, $1B, $9B, $4D, $03, $0F, $46 db $00, $04, $E6, $72, $0B, $24, $2E, $1B db $A1, $4E, $03, $01, $33, $55, $CD, $3C db $23, $38, $11, $01, $6B, $55, $CD, $A5 db $24, $CB, $7F, $C0, $1E, $04, $01, $4F db $7C, $C3, $46, $08, $1E, $04, $01, $D9 db $7C, $C3, $46, $08, $01, $33, $55, $CD db $3C, $23, $38, $2B, $CD, $A4, $0D, $01 db $6B, $55, $CD, $B9, $24, $CB, $7F, $28 db $26, $CB, $67, $20, $0A, $CB, $6F, $20 db $0E, $FA, $2C, $DD, $CB, $5F, $C8, $1E db $04, $01, $37, $57, $C3, $46, $08, $1E db $04, $01, $0F, $57, $C3, $46, $08, $1E db $04, $01, $D9, $7C, $C3, $46, $08, $1E db $04, $01, $4F, $7C, $C3, $46, $08, $01 db $33, $55, $CD, $3C, $23, $38, $17, $CD db $EB, $21, $CD, $A4, $0D, $01, $6B, $55 db $CD, $CD, $24, $CB, $7F, $C8, $1E, $04 db $01, $1F, $57, $C3, $46, $08, $1E, $04 db $01, $D9, $7C, $C3, $46, $08, $01, $33 db $55, $CD, $3C, $23, $38, $1E, $2E, $0D db $62, $2A, $B6, $28, $1F, $CD, $E6, $1E db $CD, $A4, $0D, $01, $6B, $55, $CD, $A5 db $24, $CB, $7F, $C0, $1E, $04, $01, $4F db $7C, $C3, $46, $08, $1E, $04, $01, $D9 db $7C, $C3, $46, $08, $1E, $04, $01, $37 db $57, $C3, $46, $08, $01, $33, $55, $CD db $3C, $23, $38, $31, $CD, $D3, $1E, $CD db $A4, $0D, $01, $6B, $55, $CD, $CD, $24 db $CB, $7F, $C8, $AF, $1E, $0F, $12, $1C db $12, $1E, $12, $12, $1E, $0E, $21, $99 db $42, $3E, $1E, $CD, $CF, $05, $F0, $9A db $57, $62, $2E, $1F, $36, $44, $2C, $36 db $59, $2C, $36, $4B, $C9, $1E, $04, $01 db $D9, $7C, $C3, $46, $08, $CD, $D3, $1E db $CD, $A4, $0D, $01, $4F, $55, $C3, $5B db $25, $CD, $D3, $1E, $CD, $A4, $0D, $01 db $4F, $55, $CD, $5B, $25, $D8, $CD, $25 db $1A, $CB, $7F, $C8, $1E, $04, $01, $3E db $59, $C3, $46, $08, $CD, $D3, $1E, $CD db $A4, $0D, $01, $4F, $55, $CD, $5B, $25 db $D8, $CD, $25, $1A, $CB, $6F, $20, $20 db $CB, $7F, $C8, $2E, $40, $62, $35, $28 db $17, $2E, $27, $34, $21, $A3, $55, $CD db $90, $4C, $1E, $0E, $21, $99, $42, $3E db $1E, $CD, $CF, $05, $F0, $9A, $57, $C9 db $1E, $04, $01, $3E, $59, $C3, $46, $08 db $1E, $04, $6B, $26, $A0, $1A, $96, $1C db $2C, $1A, $9E, $1E, $45, $1A, $38, $07 db $07, $38, $07, $3E, $01, $18, $04, $07 db $38, $F9, $AF, $1E, $27, $12, $C9, $0A db $6F, $03, $0A, $03, $C5, $4D, $47, $CD db $47, $06, $FE, $56, $38, $08, $FE, $AB db $38, $07, $3E, $02, $18, $05, $AF, $18 db $02, $3E, $01, $07, $81, $4F, $30, $01 db $04, $CD, $D1, $1F, $C1, $21, $E1, $45 db $C3, $04, $4D, $1E, $48, $1A, $67, $2E db $00, $7E, $FE, $FF, $C8, $2E, $5B, $7E db $FE, $0E, $C0, $2E, $3D, $7E, $B7, $C8 db $2E, $4C, $7E, $B7, $C8, $C5, $1E, $04 db $01, $29, $59, $CD, $49, $08, $C1, $C9 db $1E, $48, $1A, $67, $2E, $3F, $0A, $03 db $77, $C9, $04, $52, $6F, $0B, $0F, $46 db $00, $0F, $60, $88, $03, $4D, $5B, $44 db $0D, $5C, $5B, $0D, $D1, $1F, $0A, $FC db $19, $04, $04, $09, $03, $19, $05, $02 db $19, $04, $02, $0A, $16, $CD, $E6, $1E db $CD, $D3, $1E, $CD, $A4, $0D, $01, $5D db $55, $C3, $5B, $25, $CD, $47, $06, $E6 db $03, $21, $76, $5B, $07, $5F, $07, $83 db $85, $6F, $30, $01, $24, $CD, $F9, $20 db $CD, $23, $21, $C3, $BE, $20, $80, $02 db $F8, $00, $00, $F8, $00, $02, $F8, $00 db $00, $F0, $40, $02, $F8, $80, $00, $F8 db $00, $02, $F8, $00, $01, $F0, $FF, $02 db $00, $00, $00, $09, $7D, $04, $00, $00 db $00, $09, $7D, $04, $02, $02, $9B, $4D db $03, $33, $4E, $03, $00, $00, $00, $2A db $4F, $03, $F9, $09, $F7, $08, $FA, $05 db $FA, $05, $00, $02, $00, $80, $00, $02 db $00, $80, $FF, $0A, $00, $02, $00, $C0 db $00, $02, $00, $80, $FF, $0A, $80, $80 db $C0, $E0, $80, $80, $C0, $E0, $80, $FE db $18, $00, $00, $80, $FF, $00, $80, $FE db $18, $00, $00, $80, $FF, $00, $00, $FF db $20, $00, $00, $C0, $FF, $00, $C0, $FE db $20, $00, $00, $C0, $FF, $00, $00, $FF db $20, $00, $00, $80, $00, $00, $00, $FF db $20, $00, $00, $80, $00, $00, $00, $01 db $40, $01, $80, $01, $C0, $01, $20, $80 db $02, $20, $10, $0C, $08, $04, $02, $04 db $02, $10, $08, $80, $00, $00, $01, $80 db $01, $18, $10, $20, $80, $02, $18, $10 db $18, $10, $00, $FF, $C0, $FD, $12, $80 db $FF, $E0, $FE, $12, $00, $01, $00, $FD db $30, $80, $00, $C0, $FE, $14, $00, $FF db $00, $FD, $30, $80, $FF, $C0, $FE, $14 db $27, $0D, $69, $4C, $0E, $03, $4D, $5C db $40, $5C, $A9, $7C, $16, $03, $27, $5F db $44, $10, $5C, $12, $65, $5C, $19, $00 db $0D, $19, $03, $03, $19, $04, $0D, $19 db $03, $03, $06, $40, $5C, $19, $00, $0A db $19, $03, $02, $19, $04, $0A, $19, $03 db $02, $06, $40, $5C, $28, $13, $80, $7C db $5C, $06, $CE, $5D, $03, $27, $5F, $44 db $27, $10, $5C, $12, $9A, $5C, $09, $04 db $19, $00, $02, $19, $01, $04, $19, $00 db $02, $19, $02, $04, $24, $22, $0A, $06 db $B6, $5C, $19, $00, $02, $19, $01, $04 db $19, $00, $02, $19, $02, $04, $24, $22 db $19, $00, $02, $19, $01, $04, $19, $00 db $02, $19, $02, $04, $24, $22, $22, $20 db $5D, $04, $03, $36, $5F, $44, $0D, $D3 db $20, $FE, $5B, $28, $13, $80, $CE, $5C db $0F, $43, $00, $06, $D1, $5C, $0F, $43 db $01, $19, $00, $04, $0D, $D3, $20, $02 db $5C, $0D, $32, $10, $E0, $19, $01, $04 db $24, $22, $29, $00, $0D, $D3, $20, $FE db $5B, $19, $00, $04, $0D, $D3, $20, $02 db $5C, $0D, $32, $10, $E0, $19, $02, $04 db $29, $00, $10, $43, $24, $22, $11, $D1 db $5C, $0D, $B0, $5A, $11, $D1, $5C, $0F db $1C, $80, $28, $1A, $3F, $0D, $F4, $23 db $C6, $5B, $12, $CE, $5D, $0D, $F4, $23 db $C8, $5B, $12, $7C, $5C, $06, $40, $5C db $0D, $E6, $22, $27, $0C, $05, $02, $06 db $20, $5D, $18, $03, $27, $5F, $44, $09 db $04, $19, $00, $01, $19, $01, $02, $19 db $00, $01, $19, $02, $02, $24, $22, $0A db $0D, $42, $20, $06, $5C, $01, $07, $03 db $F3, $60, $44, $00, $0D, $77, $0F, $0E db $0D, $E6, $22, $27, $12, $0D, $E6, $22 db $27, $0F, $03, $27, $5F, $44, $09, $04 db $19, $06, $02, $19, $05, $02, $0A, $0F db $27, $00, $0D, $8A, $4C, $CE, $5B, $03 db $74, $5F, $44, $24, $0D, $00, $03, $BC db $5F, $44, $19, $00, $02, $19, $01, $02 db $19, $00, $02, $19, $02, $02, $24, $22 db $06, $7A, $5D, $24, $0E, $0F, $27, $01 db $0D, $8A, $4C, $CE, $5B, $03, $F7, $5F db $44, $01, $02, $00, $24, $0E, $08, $00 db $00, $26, $C0, $FF, $0D, $32, $10, $08 db $03, $32, $60, $44, $00, $03, $27, $5F db $44, $1F, $45, $22, $09, $5C, $06, $0A db $5D, $0D, $77, $0F, $0E, $0D, $E6, $22 db $27, $12, $0D, $E6, $22, $27, $0F, $03 db $56, $60, $44, $01, $02, $00, $0F, $40 db $02, $0F, $3F, $02, $27, $03, $27, $5F db $44, $01, $00, $1F, $45, $22, $0B, $5C db $01, $03, $1F, $45, $22, $0D, $5C, $0F db $27, $02, $0D, $8A, $4C, $CE, $5B, $03 db $7D, $60, $44, $24, $0D, $19, $04, $10 db $00, $03, $27, $5F, $44, $19, $03, $04 db $06, $D5, $5D, $03, $27, $5F, $44, $19 db $03, $04, $10, $40, $11, $16, $5E, $0D db $2E, $55, $40, $11, $D4, $5D, $03, $27 db $5F, $44, $01, $00, $1F, $45, $22, $11 db $5C, $19, $04, $14, $01, $03, $08, $80 db $FD, $2A, $10, $0D, $69, $61, $03, $C5 db $60, $44, $24, $0D, $00, $03, $27, $5F db $44, $01, $07, $18, $2A, $00, $1F, $45 db $22, $19, $5C, $0D, $42, $20, $1B, $5C db $03, $F3, $60, $44, $00, $0D, $77, $0F db $0E, $0D, $E6, $22, $27, $10, $0D, $E6 db $22, $27, $11, $18, $03, $27, $5F, $44 db $09, $03, $19, $08, $02, $19, $07, $02 db $0A, $1F, $45, $22, $1E, $5C, $01, $00 db $1F, $45, $22, $20, $5C, $28, $1A, $3F db $0D, $F4, $23, $CA, $5B, $12, $7C, $5C db $0D, $F4, $23, $CC, $5B, $12, $CE, $5D db $06, $40, $5C, $01, $07, $0C, $0D, $77 db $0F, $0E, $09, $03, $19, $08, $02, $19 db $07, $02, $0A, $1F, $45, $22, $1E, $5C db $01, $00, $1F, $45, $22, $20, $5C, $06 db $40, $5C, $10, $5C, $12, $B9, $5E, $09 db $04, $19, $09, $02, $19, $0E, $02, $0A db $0C, $19, $09, $02, $19, $0E, $02, $19 db $09, $02, $19, $0E, $02, $0C, $04, $8E db $77, $0C, $01, $0F, $0C, $0D, $D1, $1F db $0A, $00, $0F, $27, $00, $06, $EB, $5E db $0D, $D1, $1F, $0A, $08, $0F, $27, $02 db $06, $EB, $5E, $0D, $D1, $1F, $F6, $08 db $0F, $27, $04, $0D, $0F, $20, $07, $07 db $00, $0F, $40, $02, $0F, $4C, $01, $04 db $8E, $77, $0C, $0D, $F9, $1F, $0D, $8D db $61, $22, $5C, $03, $1A, $61, $44, $19 db $0A, $08, $19, $0B, $08, $19, $0C, $08 db $19, $0D, $08, $06, $07, $5F, $00, $24 db $0E, $03, $63, $61, $44, $05, $10, $1B db $66, $49, $03, $1B, $33, $4E, $03, $01 db $8E, $5B, $CD, $3C, $23, $D0, $1E, $04 db $01, $D9, $7C, $C3, $46, $08, $01, $8E db $5B, $CD, $3C, $23, $38, $2E, $CD, $A4 db $0D, $01, $AA, $5B, $CD, $B9, $24, $B7 db $28, $12, $CB, $6F, $20, $16, $FA, $2C db $DD, $CB, $5F, $C8, $1E, $04, $01, $0A db $5D, $C3, $46, $08, $1E, $04, $01, $2A db $5D, $C3, $46, $08, $1E, $04, $01, $4C db $5D, $C3, $46, $08, $1E, $04, $01, $D9 db $7C, $C3, $46, $08, $01, $8E, $5B, $CD db $3C, $23, $38, $38, $62, $2E, $0F, $2A db $B6, $28, $29, $CD, $D3, $1E, $CD, $A4 db $0D, $01, $AA, $5B, $CD, $CD, $24, $CB db $77, $20, $13, $CB, $6F, $C8, $AF, $2E db $0D, $62, $22, $22, $22, $77, $1E, $04 db $01, $B9, $5D, $C3, $46, $08, $AF, $1E db $0F, $12, $1C, $12, $1E, $04, $01, $76 db $5D, $C3, $46, $08, $1E, $04, $01, $D9 db $7C, $C3, $46, $08, $01, $8E, $5B, $CD db $3C, $23, $38, $2B, $CD, $D3, $1E, $CD db $A4, $0D, $01, $AA, $5B, $CD, $CD, $24 db $CB, $7F, $20, $13, $CB, $6F, $C8, $AF db $2E, $0D, $62, $22, $22, $22, $77, $1E db $04, $01, $B9, $5D, $C3, $46, $08, $1E db $04, $01, $8B, $5D, $C3, $46, $08, $1E db $04, $01, $D9, $7C, $C3, $46, $08, $01 db $8E, $5B, $CD, $3C, $23, $38, $2B, $CD db $D3, $1E, $CD, $A4, $0D, $01, $AA, $5B db $CD, $CD, $24, $CB, $7F, $20, $13, $CB db $6F, $C8, $AF, $2E, $0D, $62, $22, $22 db $22, $77, $1E, $04, $01, $B9, $5D, $C3 db $46, $08, $1E, $04, $01, $9C, $5D, $C3 db $46, $08, $1E, $04, $01, $D9, $7C, $C3 db $46, $08, $62, $2E, $0D, $2A, $B6, $28 db $15, $CD, $E6, $1E, $CD, $A4, $0D, $01 db $8E, $5B, $CD, $3C, $23, $D0, $1E, $04 db $01, $D9, $7C, $C3, $46, $08, $1E, $04 db $01, $AD, $5D, $C3, $46, $08, $01, $8E db $5B, $CD, $3C, $23, $38, $17, $CD, $D3 db $1E, $CD, $A4, $0D, $01, $AA, $5B, $CD db $CD, $24, $CB, $7F, $C8, $1E, $04, $01 db $AD, $5D, $C3, $46, $08, $1E, $04, $01 db $D9, $7C, $C3, $46, $08, $01, $8E, $5B db $CD, $3C, $23, $38, $38, $CD, $D3, $1E db $CD, $A4, $0D, $01, $AA, $5B, $CD, $CD db $24, $CB, $7F, $C8, $1E, $0E, $21, $99 db $42, $3E, $1E, $CD, $CF, $05, $F0, $9A db $57, $62, $2E, $3F, $35, $28, $08, $1E db $04, $01, $F9, $5D, $C3, $46, $08, $2E db $40, $35, $2D, $36, $01, $1E, $04, $01 db $03, $5E, $C3, $46, $08, $1E, $04, $01 db $D9, $7C, $C3, $46, $08, $01, $8E, $5B db $CD, $3C, $23, $38, $1E, $62, $2E, $0F db $2A, $B6, $28, $0F, $CD, $D3, $1E, $CD db $A4, $0D, $01, $AA, $5B, $CD, $CD, $24 db $CB, $6F, $C8, $1E, $04, $01, $35, $5E db $C3, $46, $08, $1E, $04, $01, $D9, $7C db $C3, $46, $08, $01, $8E, $5B, $CD, $3C db $23, $38, $17, $CD, $EB, $21, $CD, $A4 db $0D, $01, $AA, $5B, $CD, $CD, $24, $CB db $7F, $C8, $1E, $04, $01, $4D, $5E, $C3 db $46, $08, $1E, $04, $01, $D9, $7C, $C3 db $46, $08, $CD, $D3, $1E, $CD, $A4, $0D db $01, $AE, $44, $CD, $5B, $25, $D8, $01 db $AE, $5B, $CD, $CD, $24, $CB, $7F, $20 db $0E, $CB, $6F, $C8, $AF, $1E, $0D, $12 db $1C, $12, $1E, $40, $3C, $12, $C9, $1E db $0E, $21, $99, $42, $3E, $1E, $CD, $CF db $05, $F0, $9A, $57, $62, $2E, $40, $35 db $28, $09, $2E, $27, $34, $21, $22, $5C db $C3, $93, $61, $1E, $04, $01, $17, $5F db $C3, $46, $08, $01, $AE, $44, $C3, $5B db $25, $C5, $06, $20, $1E, $04, $CD, $9C db $1F, $38, $0E, $06, $31, $1E, $04, $CD db $9C, $1F, $38, $0A, $21, $17, $5C, $18 db $08, $21, $13, $5C, $18, $03, $21, $15 db $5C, $C1, $C3, $F9, $20, $0A, $6F, $03 db $0A, $67, $03, $1E, $27, $1A, $5F, $07 db $07, $83, $85, $6F, $30, $01, $24, $CD db $F9, $20, $C3, $BE, $20, $FF, $02, $00 db $00, $00, $09, $7D, $04, $00, $00, $00 db $09, $7D, $04, $03, $02, $9B, $4D, $03 db $33, $4E, $03, $00, $00, $00, $2A, $4F db $03, $FF, $02, $9B, $4D, $03, $33, $4E db $03, $00, $00, $00, $2A, $4F, $03, $FF db $02, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $FF, $12, $00 db $00, $00, $33, $4E, $03, $00, $00, $00 db $2A, $4F, $03, $F9, $0A, $F9, $06, $FB db $04, $FB, $06, $FD, $02, $FD, $02, $00 db $02, $00, $80, $FF, $06, $00, $02, $00 db $C0, $FF, $06, $A0, $80, $E0, $C0, $80 db $60, $C0, $A0, $A0, $A0, $E0, $E0, $80 db $80, $E0, $E0, $20, $FF, $20, $FF, $20 db $FF, $00, $C0, $80, $FD, $10, $00, $00 db $00, $00, $00, $80, $FD, $10, $00, $00 db $00, $00, $00, $00, $FF, $08, $00, $FE db $20, $10, $0C, $10, $08, $10, $08, $10 db $08, $10, $08, $40, $FD, $16, $C0, $FC db $1A, $10, $08, $10, $10, $08, $08, $08 db $04, $08, $04, $C0, $00, $00, $01, $80 db $00, $C0, $00, $40, $00, $80, $00, $00 db $FF, $10, $C0, $00, $00, $01, $FA, $F8 db $08, $04, $08, $04, $10, $08, $04, $02 db $04, $02, $08, $04, $80, $FD, $14, $00 db $FD, $18, $10, $08, $20, $10, $00, $FE db $20, $08, $08, $10, $0C, $18, $00, $03 db $10, $0C, $30, $40, $50, $60, $70, $20 db $38, $38, $38, $50, $38, $68, $38, $80 db $38, $80, $38, $68, $38, $50, $38, $38 db $38, $20, $38, $14, $80, $02, $1C, $80 db $03, $00, $FF, $00, $00, $12, $80, $FF db $E0, $FE, $12, $40, $30, $00, $00, $14 db $00, $00, $12, $C0, $FD, $08, $00, $FD db $0C, $27, $0D, $69, $4C, $0E, $03, $C5 db $62, $C5, $62, $A9, $7C, $03, $2C, $68 db $44, $10, $5C, $12, $DD, $62, $19, $00 db $0C, $19, $01, $06, $19, $02, $0C, $19 db $01, $06, $06, $FC, $62, $19, $00, $08 db $19, $01, $04, $19, $02, $08, $19, $01 db $04, $06, $FC, $62, $28, $13, $40, $FC db $62, $13, $80, $08, $64, $13, $C0, $6D db $65, $06, $73, $66, $27, $0D, $03, $22 db $E0, $11, $1A, $63, $28, $1A, $3F, $0D db $F4, $23, $03, $62, $12, $96, $63, $0D db $F4, $23, $05, $62, $12, $30, $63, $06 db $F4, $63, $28, $10, $3F, $0D, $F4, $23 db $07, $62, $12, $30, $63, $0D, $F4, $23 db $09, $62, $12, $96, $63, $06, $F4, $63 db $0F, $3B, $00, $03, $2C, $68, $44, $01 db $00, $1F, $45, $22, $31, $62, $0D, $AD db $20, $2B, $62, $24, $0D, $03, $3B, $68 db $44, $01, $05, $1F, $45, $22, $33, $62 db $01, $06, $00, $03, $60, $68, $44, $01 db $05, $1F, $45, $22, $35, $62, $01, $07 db $00, $27, $03, $2C, $68, $44, $01, $03 db $1F, $45, $22, $37, $62, $0D, $E6, $22 db $27, $13, $01, $04, $1F, $45, $22, $39 db $62, $10, $3B, $12, $FA, $63, $18, $28 db $1A, $3F, $0D, $F4, $23, $13, $62, $12 db $B9, $62, $28, $13, $20, $08, $64, $13 db $E0, $6D, $65, $06, $73, $66, $03, $2C db $68, $44, $01, $00, $1F, $45, $22, $41 db $62, $24, $0D, $03, $94, $68, $44, $0D db $AD, $20, $3B, $62, $01, $05, $1F, $45 db $22, $43, $62, $01, $06, $00, $03, $2C db $68, $44, $01, $05, $1F, $45, $22, $45 db $62, $27, $01, $07, $1F, $45, $22, $47 db $62, $03, $B9, $68, $44, $19, $03, $06 db $0D, $E6, $22, $27, $14, $19, $04, $0A db $19, $03, $06, $0D, $E6, $22, $27, $14 db $19, $04, $0A, $00, $03, $2C, $68, $44 db $19, $02, $10, $19, $01, $06, $19, $00 db $10, $06, $7E, $63, $0F, $3B, $01, $06 db $33, $63, $03, $2C, $68, $44, $01, $00 db $1F, $45, $22, $49, $62, $06, $A1, $63 db $27, $0D, $2E, $55, $40, $12, $35, $64 db $03, $ED, $68, $44, $09, $04, $07, $00 db $00, $19, $00, $08, $0D, $D3, $20, $4B db $62, $19, $01, $04, $0D, $D3, $20, $4F db $62, $19, $02, $08, $0D, $D3, $20, $53 db $62, $19, $01, $04, $0A, $24, $23, $0D db $D3, $20, $5A, $62, $0D, $15, $21, $5E db $62, $03, $55, $69, $44, $19, $07, $20 db $0D, $03, $22, $E0, $11, $65, $64, $28 db $1A, $3F, $0D, $F4, $23, $0B, $62, $12 db $F9, $64, $0D, $F4, $23, $0D, $62, $12 db $44, $65, $06, $93, $64, $28, $10, $3F db $0D, $F4, $23, $0F, $62, $12, $93, $64 db $0D, $F4, $23, $11, $62, $12, $44, $65 db $06, $F9, $64, $0D, $5F, $20, $1E, $45 db $03, $21, $69, $44, $01, $07, $00, $0D db $5F, $20, $1E, $45, $03, $7B, $69, $44 db $01, $07, $00, $0F, $27, $00, $24, $3A db $0D, $E6, $22, $27, $15, $0D, $CA, $20 db $57, $62, $03, $AF, $69, $44, $19, $05 db $08, $19, $06, $08, $19, $07, $10, $01 db $02, $12, $C7, $64, $1F, $45, $22, $60 db $62, $01, $01, $1F, $45, $22, $62, $62 db $01, $00, $1F, $45, $22, $64, $62, $1F db $45, $22, $66, $62, $01, $01, $1F, $45 db $22, $68, $62, $01, $00, $1F, $45, $22 db $6A, $62, $11, $E1, $64, $18, $06, $4A db $65, $18, $28, $1A, $3F, $0D, $F4, $23 db $15, $62, $12, $B9, $62, $28, $13, $60 db $FC, $62, $13, $80, $6D, $65, $06, $73 db $66, $24, $0D, $0D, $AD, $20, $6C, $62 db $03, $AF, $69, $44, $19, $05, $08, $19 db $06, $10, $19, $05, $08, $03, $2C, $68 db $44, $01, $07, $1F, $45, $22, $72, $62 db $03, $AF, $69, $44, $24, $3A, $0D, $E6 db $22, $27, $16, $19, $05, $08, $19, $06 db $08, $19, $07, $10, $01, $02, $1F, $45 db $22, $60, $62, $01, $01, $1F, $45, $22 db $62, $62, $01, $00, $1F, $45, $22, $64 db $62, $06, $E1, $64, $0F, $27, $01, $06 db $96, $64, $0F, $27, $00, $0D, $D3, $20 db $5A, $62, $0D, $15, $21, $5E, $62, $03 db $E7, $69, $44, $19, $07, $20, $06, $96 db $64, $0D, $5F, $20, $1E, $45, $03, $0D db $6A, $44, $01, $07, $00, $27, $03, $2C db $68, $44, $01, $00, $1F, $45, $22, $79 db $62, $01, $03, $1F, $45, $22, $7B, $62 db $0F, $1F, $80, $24, $4E, $0D, $E6, $22 db $27, $19, $10, $46, $04, $E6, $72, $0B db $0F, $46, $00, $22, $5B, $66, $04, $19 db $1C, $01, $19, $1D, $01, $19, $1E, $01 db $19, $1F, $01, $19, $20, $01, $19, $21 db $01, $19, $22, $02, $19, $23, $01, $19 db $24, $01, $19, $25, $01, $19, $26, $01 db $19, $27, $01, $19, $28, $08, $24, $37 db $04, $CA, $78, $0C, $1A, $46, $01, $03 db $27, $09, $04, $0D, $96, $6B, $09, $05 db $0D, $AC, $6B, $05, $02, $0A, $0A, $0D db $DD, $6B, $24, $39, $04, $E6, $72, $0B db $0F, $46, $00, $19, $1B, $04, $19, $1A db $03, $19, $19, $02, $19, $18, $02, $19 db $17, $02, $19, $16, $02, $19, $15, $01 db $19, $14, $01, $19, $13, $01, $19, $07 db $01, $04, $CA, $78, $0C, $1A, $46, $27 db $08, $80, $FE, $0D, $5F, $20, $7D, $62 db $03, $41, $6A, $44, $19, $05, $10, $01 db $07, $00, $0D, $E6, $22, $27, $17, $03 db $2C, $68, $44, $1F, $45, $22, $80, $62 db $27, $10, $5C, $12, $3A, $66, $19, $02 db $0C, $19, $01, $08, $19, $00, $10, $06 db $43, $66, $19, $02, $08, $19, $01, $04 db $19, $00, $08, $18, $28, $1A, $3F, $0D db $F4, $23, $17, $62, $12, $B9, $62, $28 db $13, $60, $FC, $62, $13, $E0, $08, $64 db $06, $73, $66, $0F, $47, $00, $05, $05 db $0F, $47, $10, $05, $03, $0F, $47, $00 db $05, $05, $0F, $47, $10, $05, $03, $0F db $47, $00, $00, $27, $03, $2C, $68, $44 db $01, $00, $1F, $45, $22, $74, $62, $0D db $CA, $20, $76, $62, $24, $0D, $03, $70 db $6A, $44, $19, $05, $08, $19, $06, $08 db $19, $05, $08, $01, $07, $00, $03, $2C db $68, $44, $0D, $77, $0F, $0D, $24, $5C db $0D, $E6, $22, $27, $17, $10, $5C, $12 db $B9, $66, $19, $07, $20, $19, $02, $0C db $19, $01, $08, $19, $00, $10, $06, $C5 db $66, $19, $07, $10, $19, $02, $08, $19 db $01, $04, $19, $00, $08, $18, $28, $1A db $3F, $0D, $F4, $23, $19, $62, $12, $B9 db $62, $28, $13, $C0, $FC, $62, $13, $E0 db $08, $64, $06, $6D, $65, $01, $07, $0C db $10, $5C, $12, $F1, $66, $19, $02, $10 db $19, $01, $06, $19, $00, $10, $06, $B9 db $62, $19, $02, $08, $19, $01, $04, $19 db $00, $08, $06, $B9, $62, $09, $06, $19 db $05, $02, $19, $0E, $02, $0A, $0C, $06 db $B9, $62, $04, $CA, $78, $0C, $01, $0F db $0C, $03, $97, $6A, $44, $24, $3D, $04 db $CA, $78, $0C, $0D, $F9, $1F, $0D, $0F db $20, $07, $07, $88, $0D, $D1, $1F, $08 db $00, $0D, $8A, $21, $9B, $62, $10, $5C db $12, $43, $67, $19, $0D, $03, $19, $0C db $03, $19, $0B, $03, $19, $0C, $03, $06 db $33, $67, $00, $19, $0D, $02, $19, $0C db $02, $19, $0B, $02, $19, $0C, $02, $06 db $43, $67, $00, $03, $B4, $6A, $44, $06 db $15, $67, $24, $41, $0F, $60, $00, $01 db $0B, $0F, $27, $00, $0D, $8D, $61, $A1 db $62, $03, $D1, $6A, $44, $00, $24, $41 db $0F, $60, $00, $01, $0B, $0F, $26, $02 db $0F, $40, $02, $03, $0D, $6B, $44, $1F db $45, $22, $AB, $62, $16, $08, $00, $FF db $2A, $10, $04, $CA, $78, $0C, $0D, $F9 db $1F, $0D, $D1, $1F, $0C, $00, $0D, $0F db $20, $05, $10, $3F, $19, $08, $08, $03 db $2A, $6B, $44, $01, $09, $09, $04, $0F db $47, $10, $05, $02, $0F, $47, $00, $05 db $02, $0A, $0F, $1F, $80, $19, $0A, $08 db $16, $0D, $AD, $20, $AD, $62, $06, $8A db $67, $04, $46, $72, $0B, $0F, $46, $00 db $0D, $0F, $20, $04, $04, $BF, $0D, $D1 db $1F, $08, $08, $08, $00, $FE, $2A, $20 db $26, $C0, $00, $0F, $40, $02, $03, $36 db $6B, $44, $01, $00, $0D, $E6, $22, $27 db $18, $05, $04, $06, $E4, $67, $07, $00 db $00, $0D, $AD, $20, $B3, $62, $03, $7F db $6B, $44, $0D, $E6, $22, $27, $18, $05 db $04, $06, $FA, $67, $04, $52, $6F, $0B db $0F, $46, $00, $0F, $47, $10, $19, $04 db $03, $19, $05, $02, $19, $04, $02, $19 db $05, $02, $19, $04, $03, $16, $04, $52 db $6F, $0B, $0F, $47, $10, $19, $05, $08 db $19, $04, $08, $16, $01, $A5, $61, $CD db $3C, $23, $D0, $1E, $04, $01, $D9, $7C db $C3, $46, $08, $01, $A5, $61, $CD, $3C db $23, $38, $0D, $62, $2E, $0F, $2A, $B6 db $28, $0E, $CD, $D3, $1E, $C3, $A4, $0D db $1E, $04, $01, $D9, $7C, $C3, $46, $08 db $1E, $04, $01, $53, $63, $C3, $46, $08 db $01, $A5, $61, $CD, $3C, $23, $38, $24 db $CD, $D3, $1E, $CD, $A4, $0D, $01, $EB db $61, $CD, $CD, $24, $CB, $7F, $C8, $1E db $22, $21, $99, $42, $3E, $1E, $CD, $CF db $05, $F0, $9A, $57, $1E, $04, $01, $61 db $63, $C3, $46, $08, $1E, $04, $01, $D9 db $7C, $C3, $46, $08, $01, $A5, $61, $CD db $3C, $23, $38, $0D, $62, $2E, $0F, $2A db $B6, $28, $0E, $CD, $D3, $1E, $C3, $A4 db $0D, $1E, $04, $01, $D9, $7C, $C3, $46 db $08, $1E, $04, $01, $B6, $63, $C3, $46 db $08, $01, $A5, $61, $CD, $3C, $23, $38 db $24, $CD, $D3, $1E, $CD, $A4, $0D, $01 db $EB, $61, $CD, $CD, $24, $CB, $7F, $C8 db $1E, $22, $21, $99, $42, $3E, $1E, $CD db $CF, $05, $F0, $9A, $57, $1E, $04, $01 db $E4, $63, $C3, $46, $08, $1E, $04, $01 db $D9, $7C, $C3, $46, $08, $CD, $A4, $0D db $01, $A5, $61, $CD, $3C, $23, $38, $21 db $01, $EB, $61, $CD, $A5, $24, $B7, $28 db $10, $06, $40, $1E, $04, $CD, $9C, $1F db $C0, $1E, $04, $01, $35, $64, $C3, $46 db $08, $1E, $04, $01, $7B, $64, $C3, $46 db $08, $1E, $04, $01, $D9, $7C, $C3, $46 db $08, $01, $A5, $61, $CD, $3C, $23, $38 db $24, $CD, $D3, $1E, $CD, $A4, $0D, $01 db $EB, $61, $CD, $CD, $24, $CB, $7F, $C8 db $1E, $22, $21, $99, $42, $3E, $1E, $CD db $CF, $05, $F0, $9A, $57, $1E, $04, $01 db $35, $64, $C3, $46, $08, $1E, $04, $01 db $D9, $7C, $C3, $46, $08, $CD, $E6, $1E db $CD, $A4, $0D, $01, $A5, $61, $CD, $3C db $23, $38, $10, $01, $EB, $61, $CD, $A5 db $24, $B7, $C0, $1E, $04, $01, $87, $64 db $C3, $46, $08, $1E, $04, $01, $D9, $7C db $C3, $46, $08, $01, $A5, $61, $CD, $3C db $23, $38, $24, $CD, $D3, $1E, $CD, $A4 db $0D, $01, $EB, $61, $CD, $CD, $24, $CB db $7F, $C8, $1E, $22, $21, $99, $42, $3E db $1E, $CD, $CF, $05, $F0, $9A, $57, $1E db $04, $01, $48, $64, $C3, $46, $08, $1E db $04, $01, $D9, $7C, $C3, $46, $08, $01 db $A5, $61, $CD, $3C, $23, $38, $28, $CD db $D3, $1E, $CD, $A4, $0D, $01, $EB, $61 db $CD, $CD, $24, $CB, $7F, $C8, $1E, $22 db $21, $99, $42, $3E, $1E, $CD, $CF, $05 db $F0, $9A, $57, $62, $2E, $1F, $36, $44 db $2C, $36, $68, $2C, $36, $2C, $C9, $1E db $04, $01, $D9, $7C, $C3, $46, $08, $CD db $E6, $1E, $CD, $A4, $0D, $01, $A5, $61 db $CD, $3C, $23, $38, $10, $01, $EB, $61 db $CD, $A5, $24, $B7, $C0, $1E, $04, $01 db $61, $65, $C3, $46, $08, $1E, $04, $01 db $D9, $7C, $C3, $46, $08, $01, $A5, $61 db $CD, $3C, $23, $38, $24, $CD, $D3, $1E db $CD, $A4, $0D, $01, $EB, $61, $CD, $CD db $24, $CB, $7F, $C8, $1E, $22, $21, $99 db $42, $3E, $1E, $CD, $CF, $05, $F0, $9A db $57, $1E, $04, $01, $93, $64, $C3, $46 db $08, $1E, $04, $01, $D9, $7C, $C3, $46 db $08, $01, $A5, $61, $CD, $3C, $23, $38 db $1F, $CD, $EB, $21, $CD, $A4, $0D, $01 db $EB, $61, $CD, $CD, $24, $CB, $7F, $C8 db $1E, $0D, $CD, $7A, $0F, $F0, $9A, $57 db $1E, $04, $01, $1A, $66, $C3, $46, $08 db $1E, $04, $01, $D9, $7C, $C3, $46, $08 db $01, $A5, $61, $CD, $3C, $23, $38, $17 db $CD, $D3, $1E, $CD, $A4, $0D, $01, $EB db $61, $CD, $CD, $24, $CB, $7F, $C8, $1E db $04, $01, $96, $66, $C3, $46, $08, $1E db $04, $01, $D9, $7C, $C3, $46, $08, $CD db $C5, $21, $CD, $A4, $0D, $01, $C1, $61 db $CD, $5B, $25, $D8, $01, $EF, $61, $CD db $CD, $24, $B7, $C8, $1E, $04, $01, $6E db $67, $C3, $46, $08, $CD, $C5, $21, $CD db $A4, $0D, $01, $C1, $61, $CD, $5B, $25 db $D8, $01, $EF, $61, $CD, $CD, $24, $B7 db $C8, $1E, $04, $01, $5A, $67, $C3, $46 db $08, $CD, $D3, $1E, $CD, $A4, $0D, $01 db $C1, $61, $CD, $5B, $25, $D8, $01, $EF db $61, $CD, $CD, $24, $CB, $7F, $20, $0E db $CB, $6F, $C8, $AF, $1E, $0D, $12, $1C db $12, $1E, $27, $3C, $12, $C9, $1E, $27 db $1A, $3C, $FE, $02, $28, $07, $12, $21 db $A1, $62, $C3, $93, $61, $1E, $04, $01 db $6E, $67, $C3, $46, $08, $01, $C1, $61 db $CD, $5B, $25, $D8, $1E, $26, $1A, $B7 db $28, $03, $3D, $12, $C9, $1E, $47, $1A db $EE, $10, $12, $1E, $40, $1A, $1E, $26 db $12, $C9, $CD, $D3, $1E, $CD, $A4, $0D db $01, $CF, $61, $C3, $5B, $25, $CD, $D3 db $1E, $CD, $A4, $0D, $01, $DD, $61, $CD db $5B, $25, $D8, $01, $F3, $61, $CD, $CD db $24, $CB, $7F, $20, $0E, $CB, $6F, $C8 db $AF, $1E, $0D, $12, $1C, $12, $3C, $1E db $40, $12, $C9, $1E, $41, $21, $99, $42 db $3E, $1E, $CD, $CF, $05, $F0, $9A, $57 db $2E, $40, $62, $35, $20, $08, $1E, $04 db $01, $EE, $67, $C3, $46, $08, $2E, $0F db $62, $36, $00, $2C, $36, $FE, $C9, $62 db $2E, $0F, $2A, $B6, $28, $0C, $CD, $D3 db $1E, $CD, $A4, $0D, $01, $DD, $61, $C3 db $5B, $25, $62, $C3, $BA, $0B, $1E, $45 db $1A, $07, $38, $05, $21, $87, $62, $18 db $03, $21, $91, $62, $1E, $3B, $7D, $12 db $1C, $7C, $12, $C9, $C5, $1E, $3B, $1A db $6F, $1C, $1A, $67, $44, $4D, $21, $51 db $DB, $1E, $04, $0A, $86, $12, $1C, $23 db $7E, $CE, $00, $12, $03, $21, $53, $DB db $1E, $07, $0A, $86, $12, $1C, $23, $7E db $CE, $00, $12, $03, $1E, $3B, $79, $12 db $1C, $78, $12, $C1, $C9, $C5, $CD, $47 db $06, $0E, $00, $06, $34, $90, $38, $03 db $0C, $18, $FA, $79, $E0, $80, $21, $82 db $62, $85, $6F, $30, $01, $24, $06, $00 db $50, $7E, $21, $51, $DB, $86, $4F, $23 db $78, $8E, $47, $3E, $70, $21, $53, $DB db $86, $5F, $23, $7A, $8E, $57, $C5, $CD db $46, $16, $C1, $FE, $00, $20, $0B, $F0 db $80, $3C, $FE, $05, $38, $CE, $D6, $05 db $18, $CA, $F0, $9A, $57, $1E, $04, $79 db $12, $C1, $C9, $FF, $02, $00, $00, $00 db $09, $7D, $04, $00, $00, $00, $09, $7D db $04, $01, $02, $9B, $4D, $03, $33, $4E db $03, $00, $00, $00, $2A, $4F, $03, $FF db $02, $9B, $4D, $03, $33, $4E, $03, $00 db $00, $00, $2A, $4F, $03, $F9, $0E, $F9 db $06, $FD, $05, $FB, $04, $00, $02, $00 db $40, $FF, $06, $00, $02, $00, $80, $FF db $06, $C0, $80, $40, $60, $80, $A0, $C0 db $E0, $40, $60, $80, $A0, $C0, $E0, $40 db $60, $80, $80, $C0, $E0, $00, $FE, $40 db $00, $FD, $60, $08, $04, $04, $02, $08 db $04, $08, $04, $08, $04, $08, $02, $08 db $00, $01, $10, $80, $01, $0C, $00, $00 db $10, $08, $20, $C0, $00, $10, $0C, $80 db $FD, $10, $10, $08, $10, $08, $10, $08 db $08, $10, $08, $00, $01, $10, $80, $01 db $00, $01, $00, $FE, $10, $20, $01, $80 db $FD, $14, $90, $00, $00, $FF, $10, $A0 db $00, $80, $FE, $18, $00, $01, $80, $FF db $08, $20, $01, $80, $FF, $08, $80, $00 db $00, $FE, $20, $80, $00, $00, $FE, $20 db $10, $0C, $0D, $20, $6D, $03, $6F, $70 db $44, $0D, $1B, $6D, $0D, $69, $4C, $0E db $03, $EF, $6C, $EF, $6C, $A9, $7C, $27 db $08, $00, $FF, $2A, $20, $03, $6F, $70 db $44, $0D, $E6, $22, $27, $25, $19, $00 db $08, $24, $0D, $03, $7E, $70, $44, $19 db $01, $08, $19, $00, $08, $19, $02, $08 db $0D, $B2, $73, $18, $2A, $00, $29, $00 db $06, $DA, $6C, $AF, $EA, $5D, $DD, $C9 db $AF, $21, $5E, $DD, $22, $77, $C9, $27 db $0F, $27, $03, $0D, $E6, $22, $27, $25 db $03, $6F, $70, $44, $01, $00, $1F, $45 db $22, $83, $6C, $0D, $AD, $20, $7D, $6C db $03, $B6, $70, $44, $01, $01, $24, $0D db $00, $0D, $77, $0F, $0D, $03, $E3, $7D db $44, $01, $02, $1F, $45, $22, $85, $6C db $0D, $B2, $73, $12, $2B, $6D, $18, $2A db $00, $29, $00, $28, $1A, $3F, $0D, $F4 db $23, $69, $6C, $12, $EF, $6C, $28, $13 db $60, $7A, $6D, $13, $C0, $C8, $6E, $06 db $AE, $6F, $0D, $E6, $22, $27, $25, $0F db $40, $00, $27, $01, $00, $1F, $45, $22 db $87, $6C, $19, $01, $08, $19, $00, $08 db $01, $02, $1F, $45, $22, $89, $6C, $27 db $01, $00, $1F, $45, $22, $87, $6C, $19 db $01, $08, $19, $00, $08, $01, $02, $1F db $45, $22, $89, $6C, $27, $01, $00, $1F db $45, $22, $8B, $6C, $26, $80, $00, $08 db $80, $FE, $2A, $30, $03, $7E, $70, $44 db $19, $01, $08, $19, $00, $08, $18, $2A db $00, $03, $6F, $70, $44, $1F, $45, $22 db $8D, $6C, $10, $5C, $12, $F0, $6D, $19 db $03, $10, $19, $01, $04, $0D, $E6, $22 db $27, $1A, $24, $5C, $19, $04, $10, $19 db $09, $08, $19, $07, $10, $06, $06, $6E db $19, $03, $0C, $19, $01, $02, $0D, $E6 db $22, $27, $1A, $24, $5C, $19, $04, $0C db $19, $09, $04, $19, $07, $08, $0D, $B2 db $73, $27, $03, $05, $71, $44, $0D, $32 db $10, $0C, $19, $07, $10, $26, $C0, $00 db $2A, $FC, $03, $30, $71, $44, $24, $51 db $0D, $E6, $22, $27, $23, $0D, $E6, $22 db $27, $24, $09, $10, $0D, $E6, $22, $27 db $20, $19, $05, $02, $19, $06, $02, $0A db $0D, $B2, $73, $10, $5C, $12, $57, $6E db $0D, $9F, $21, $95, $6C, $0D, $42, $20 db $8F, $6C, $03, $58, $71, $44, $19, $07 db $08, $19, $09, $08, $01, $00, $00, $0B db $5D, $6E, $06, $40, $6E, $0F, $41, $20 db $0F, $3F, $00, $0F, $26, $08, $0D, $5F db $20, $9A, $6C, $0D, $9F, $21, $9A, $6C db $03, $EB, $71, $44, $24, $51, $0D, $E6 db $22, $27, $23, $0D, $E6, $22, $27, $24 db $09, $08, $0D, $E6, $22, $27, $20, $19 db $05, $02, $19, $06, $02, $0A, $0D, $B2 db $73, $0C, $0D, $E6, $22, $27, $25, $03 db $6F, $70, $44, $01, $02, $1F, $45, $22 db $98, $6C, $0D, $B2, $73, $18, $2A, $00 db $29, $00, $28, $1A, $3F, $0D, $F4, $23 db $6B, $6C, $12, $C8, $6E, $0D, $F4, $23 db $6D, $6C, $12, $27, $6D, $0D, $F4, $23 db $6F, $6C, $12, $AE, $6F, $06, $EF, $6C db $0D, $E6, $22, $27, $25, $0F, $40, $01 db $03, $6F, $70, $44, $27, $01, $00, $1F db $45, $22, $9D, $6C, $0D, $CA, $20, $9F db $6C, $01, $01, $03, $B5, $71, $44, $00 db $0D, $B2, $73, $03, $6F, $70, $44, $18 db $10, $5C, $12, $0E, $6F, $19, $02, $0C db $19, $03, $10, $19, $01, $04, $0D, $E6 db $22, $27, $1B, $24, $5C, $19, $04, $10 db $19, $09, $08, $06, $24, $6F, $19, $02 db $08, $19, $03, $10, $19, $01, $02, $0D db $E6, $22, $27, $1B, $24, $5C, $19, $04 db $0C, $19, $09, $04, $27, $2A, $08, $03 db $05, $71, $44, $19, $07, $10, $0D, $15 db $21, $A8, $6C, $1F, $45, $22, $A4, $6C db $03, $30, $71, $44, $26, $80, $00, $2A db $FC, $24, $51, $0D, $E6, $22, $27, $23 db $0D, $E6, $22, $27, $24, $09, $14, $0D db $E6, $22, $27, $20, $19, $05, $02, $19 db $06, $02, $0A, $0D, $B2, $73, $10, $5C db $12, $7A, $6F, $07, $00, $00, $29, $00 db $0D, $42, $20, $AA, $6C, $03, $58, $71 db $44, $19, $07, $08, $19, $09, $08, $01 db $00, $00, $0B, $5D, $6E, $06, $63, $6F db $03, $6F, $70, $44, $01, $02, $1F, $45 db $22, $A6, $6C, $18, $2A, $00, $29, $00 db $28, $1A, $3F, $0D, $F4, $23, $71, $6C db $12, $7A, $6D, $0D, $F4, $23, $73, $6C db $12, $27, $6D, $0D, $F4, $23, $75, $6C db $12, $AE, $6F, $06, $EF, $6C, $27, $03 db $05, $71, $44, $0D, $32, $10, $0C, $19 db $07, $10, $26, $C0, $00, $2A, $FC, $03 db $30, $71, $44, $24, $51, $0D, $E6, $22 db $27, $23, $0D, $E6, $22, $27, $24, $09 db $10, $0D, $E6, $22, $27, $20, $19, $05 db $02, $19, $06, $02, $0A, $0D, $B2, $73 db $0F, $40, $02, $29, $00, $08, $00, $00 db $06, $24, $6F, $03, $6F, $70, $44, $01 db $02, $1F, $45, $22, $A6, $6C, $18, $2A db $00, $29, $00, $28, $1A, $3F, $0D, $F4 db $23, $77, $6C, $12, $C8, $6E, $0D, $F4 db $23, $79, $6C, $12, $27, $6D, $0D, $F4 db $23, $7B, $6C, $12, $7A, $6D, $06, $EF db $6C, $01, $00, $0C, $01, $02, $1F, $45 db $22, $85, $6C, $06, $DA, $6C, $09, $04 db $19, $08, $02, $19, $09, $02, $0A, $0C db $06, $DA, $6C, $04, $EE, $7B, $0C, $01 db $0B, $0C, $0F, $3F, $00, $06, $43, $70 db $0F, $3F, $02, $0F, $40, $02, $0D, $0F db $20, $06, $06, $00, $0D, $CE, $72, $04 db $EE, $7B, $0C, $0D, $F9, $1F, $0D, $D1 db $1F, $10, $00, $01, $0A, $03, $92, $72 db $44, $00, $03, $C8, $72, $44, $1F, $45 db $22, $D8, $6C, $1B, $66, $49, $03, $01 db $2B, $6C, $CD, $3C, $23, $D0, $1E, $04 db $01, $D9, $7C, $C3, $46, $08, $01, $2B db $6C, $CD, $3C, $23, $38, $28, $CD, $D3 db $1E, $CD, $A4, $0D, $01, $55, $6C, $CD db $CD, $24, $CB, $7F, $C8, $1E, $22, $21 db $99, $42, $3E, $1E, $CD, $CF, $05, $F0 db $9A, $57, $62, $2E, $1F, $36, $44, $2C db $36, $70, $2C, $36, $6F, $C9, $1E, $04 db $01, $D9, $7C, $C3, $46, $08, $01, $2B db $6C, $CD, $3C, $23, $38, $3F, $62, $2E db $0F, $2A, $B6, $20, $04, $2E, $15, $36 db $00, $CD, $D3, $1E, $CD, $A4, $0D, $01 db $55, $6C, $CD, $CD, $24, $CB, $77, $28 db $08, $62, $2E, $0F, $36, $00, $2C, $36 db $00, $CB, $7F, $C8, $1E, $22, $21, $99 db $42, $3E, $1E, $CD, $CF, $05, $F0, $9A db $57, $62, $2E, $27, $35, $1E, $04, $01 db $49, $6D, $C3, $46, $08, $1E, $04, $01 db $D9, $7C, $C3, $46, $08, $01, $2B, $6C db $CD, $3C, $23, $38, $1B, $CD, $D3, $1E db $CD, $E6, $1E, $CD, $A4, $0D, $01, $55 db $6C, $CD, $CD, $24, $CB, $6F, $C8, $1E db $11, $1A, $2F, $3C, $12, $C3, $F9, $1E db $1E, $04, $01, $D9, $7C, $C3, $46, $08 db $01, $2B, $6C, $CD, $3C, $23, $38, $18 db $CD, $D3, $1E, $CD, $A4, $0D, $01, $55 db $6C, $CD, $CD, $24, $CB, $6F, $C8, $1E db $11, $1A, $2F, $3C, $12, $C3, $F9, $1E db $1E, $04, $01, $D9, $7C, $C3, $46, $08 db $01, $2B, $6C, $CD, $3C, $23, $30, $08 db $1E, $04, $01, $D9, $7C, $C3, $46, $08 db $CD, $C5, $21, $CD, $EB, $21, $CD, $A4 db $0D, $01, $55, $6C, $CD, $CD, $24, $CB db $7F, $20, $0C, $CB, $6F, $C8, $1E, $11 db $1A, $2F, $3C, $12, $C3, $F9, $1E, $1E db $22, $21, $99, $42, $3E, $1E, $CD, $CF db $05, $F0, $9A, $57, $1E, $40, $1A, $FE db $01, $38, $12, $28, $08, $1E, $04, $01 db $EB, $6F, $C3, $46, $08, $1E, $04, $01 db $80, $6F, $C3, $46, $08, $1E, $04, $01 db $92, $6E, $C3, $46, $08, $01, $2B, $6C db $CD, $3C, $23, $38, $26, $CD, $D3, $1E db $CD, $A4, $0D, $62, $2E, $0F, $2A, $B6 db $28, $11, $01, $55, $6C, $CD, $CD, $24 db $CB, $77, $C8, $62, $2E, $0F, $36, $00 db $2C, $36, $00, $1E, $04, $01, $E8, $6E db $C3, $46, $08, $1E, $04, $01, $D9, $7C db $C3, $46, $08, $01, $2B, $6C, $CD, $3C db $23, $30, $08, $1E, $04, $01, $D9, $7C db $C3, $46, $08, $CD, $D8, $21, $CD, $C5 db $21, $CD, $A4, $0D, $01, $55, $6C, $CD db $CD, $24, $CB, $6F, $28, $13, $1E, $3B db $1A, $2F, $C6, $01, $12, $1C, $1A, $2F db $CE, $00, $12, $1E, $45, $1A, $2F, $3C db $12, $62, $2E, $26, $35, $C0, $36, $08 db $CD, $3D, $20, $1E, $3C, $1A, $30, $05 db $07, $30, $2E, $18, $03, $07, $38, $29 db $62, $2E, $3F, $CB, $46, $20, $08, $CB db $C6, $2E, $11, $36, $00, $18, $1A, $CB db $86, $2E, $11, $1E, $41, $1A, $77, $2E db $3B, $7E, $2F, $C6, $01, $22, $7E, $2F db $CE, $00, $77, $1E, $45, $1A, $2F, $3C db $12, $CD, $2B, $20, $1E, $3A, $1A, $30 db $04, $07, $D0, $18, $02, $07, $D8, $62 db $2E, $3F, $CB, $4E, $20, $07, $CB, $CE db $2E, $12, $36, $00, $C9, $CB, $8E, $2E db $12, $1E, $41, $1A, $77, $2E, $39, $7E db $2F, $C6, $01, $22, $7E, $2F, $CE, $00 db $77, $C9, $CD, $D3, $1E, $CD, $A4, $0D db $01, $47, $6C, $CD, $5B, $25, $D8, $01 db $59, $6C, $CD, $CD, $24, $CB, $7F, $20 db $0B, $CB, $6F, $C8, $1E, $11, $1A, $2F db $3C, $C3, $F9, $1E, $62, $2E, $40, $35 db $28, $06, $2E, $3F, $34, $C3, $CE, $72 db $1E, $04, $01, $62, $70, $C3, $46, $08 db $01, $47, $6C, $C3, $5B, $25, $1E, $3F db $1A, $07, $5F, $07, $07, $83, $6F, $1E db $5C, $1A, $5F, $07, $07, $83, $85, $21 db $B0, $6C, $85, $6F, $30, $01, $24, $CD db $F9, $20, $C3, $BE, $20, $0D, $07, $73 db $0D, $D1, $1F, $FD, $08, $08, $00, $02 db $04, $52, $6F, $0B, $0F, $46, $00, $03 db $17, $73, $44, $19, $FF, $08, $16, $21 db $5D, $DD, $7E, $3C, $E6, $01, $77, $C0 db $1E, $45, $1A, $2F, $3C, $12, $C9, $CD db $A4, $0D, $01, $2B, $73, $CD, $CD, $24 db $CB, $7F, $C8, $1E, $04, $01, $35, $73 db $C3, $46, $08, $FD, $02, $FE, $02, $07 db $00, $00, $08, $00, $00, $08, $00, $00 db $2A, $E8, $26, $00, $FE, $0D, $32, $10 db $10, $03, $57, $49, $44, $19, $04, $02 db $19, $05, $03, $19, $04, $03, $16, $03 db $6A, $73, $44, $0D, $86, $73, $04, $EE db $7B, $0C, $0D, $0F, $20, $02, $02, $BF db $01, $FF, $00, $03, $78, $73, $44, $06 db $53, $73, $01, $76, $73, $CD, $E8, $24 db $01, $47, $6C, $C3, $5B, $25, $F6, $FE db $01, $84, $73, $CD, $E8, $24, $01, $47 db $6C, $C3, $5B, $25, $0A, $FE, $21, $5E db $DD, $7E, $B7, $28, $01, $23, $72, $C9 db $0D, $86, $73, $04, $EE, $7B, $0C, $03 db $A4, $73, $44, $0D, $0F, $20, $03, $02 db $BF, $01, $FF, $00, $01, $B0, $73, $CD db $E8, $24, $01, $47, $6C, $C3, $5B, $25 db $00, $0D, $C5, $21, $5E, $DD, $7E, $B7 db $28, $0D, $36, $00, $67, $2E, $00, $7E db $FE, $FF, $28, $03, $CD, $BA, $0B, $21 db $5F, $DD, $7E, $B7, $28, $0D, $36, $00 db $67, $2E, $00, $7E, $FE, $FF, $28, $03 db $CD, $BA, $0B, $F0, $9A, $57, $C1, $C9 db $FF, $02, $00, $00, $00, $09, $7D, $04 db $00, $00, $00, $09, $7D, $04, $04, $02 db $9B, $4D, $03, $33, $4E, $03, $00, $00 db $00, $2A, $4F, $03, $FF, $02, $D2, $77 db $04, $33, $4E, $03, $00, $00, $00, $2A db $4F, $03, $F9, $0A, $F7, $08, $F9, $08 db $F9, $06, $00, $00, $02, $00, $40, $FF db $07, $00, $00, $02, $00, $80, $FF, $07 db $00, $02, $00, $03, $80, $00, $C0, $00 db $0C, $80, $01, $05, $0A, $10, $0C, $10 db $08, $08, $04, $40, $28, $38, $28, $00 db $FF, $00, $FE, $20, $40, $10, $00, $01 db $10, $20, $01, $20, $10, $20, $10, $10 db $08, $00, $02, $80, $02, $10, $14, $00 db $FF, $10, $E0, $FF, $80, $FF, $08, $70 db $50, $18, $80, $02, $C0, $FF, $00, $FF db $10, $4C, $20, $80, $FE, $0C, $00, $FF db $10, $3C, $20, $0F, $60, $3F, $27, $03 db $D8, $77, $44, $0D, $69, $4C, $0E, $03 db $7E, $74, $7E, $74, $A9, $7C, $19, $00 db $04, $19, $01, $0C, $19, $00, $04, $19 db $02, $0C, $06, $6E, $74, $28, $13, $60 db $99, $74, $13, $A0, $5C, $75, $06, $E5 db $75, $27, $0D, $2A, $7B, $0D, $19, $55 db $30, $12, $AC, $74, $28, $13, $C0, $B4 db $74, $06, $52, $75, $28, $13, $40, $B4 db $74, $06, $52, $75, $0D, $38, $7B, $03 db $59, $78, $44, $0D, $44, $7B, $20, $74 db $19, $00, $04, $0D, $44, $7B, $24, $74 db $19, $01, $0C, $0D, $44, $7B, $20, $74 db $19, $00, $04, $0D, $44, $7B, $24, $74 db $19, $02, $0C, $0D, $44, $7B, $20, $74 db $19, $00, $04, $0D, $44, $7B, $24, $74 db $19, $01, $0C, $0D, $44, $7B, $20, $74 db $19, $00, $04, $0D, $44, $7B, $24, $74 db $19, $02, $0C, $28, $13, $40, $45, $75 db $0D, $44, $7B, $20, $74, $19, $00, $04 db $0D, $44, $7B, $24, $74, $19, $01, $0C db $0D, $44, $7B, $20, $74, $19, $00, $04 db $0D, $44, $7B, $24, $74, $19, $02, $0C db $28, $13, $80, $45, $75, $0D, $44, $7B db $20, $74, $19, $00, $04, $0D, $44, $7B db $24, $74, $19, $01, $0C, $0D, $44, $7B db $20, $74, $19, $00, $04, $0D, $44, $7B db $24, $74, $19, $02, $0C, $18, $29, $00 db $2A, $00, $28, $13, $80, $5C, $75, $06 db $E5, $75, $0D, $3E, $7B, $03, $ED, $77 db $44, $06, $BB, $74, $27, $0D, $2A, $7B db $0D, $74, $7B, $0D, $DA, $7B, $28, $74 db $03, $DF, $78, $44, $0F, $26, $10, $19 db $00, $04, $19, $01, $0C, $19, $00, $04 db $19, $02, $0C, $06, $6F, $75, $27, $18 db $01, $00, $03, $D8, $77, $44, $1F, $45 db $22, $2D, $74, $0D, $32, $10, $F8, $03 db $92, $79, $44, $19, $03, $10, $07, $00 db $00, $29, $00, $1F, $45, $22, $2F, $74 db $19, $00, $02, $26, $00, $04, $19, $04 db $02, $24, $3E, $0D, $E6, $22, $27, $1C db $01, $05, $0D, $D3, $20, $37, $74, $0D db $15, $21, $3B, $74, $0F, $60, $2D, $03 db $A5, $79, $44, $1F, $45, $22, $31, $74 db $08, $00, $FF, $0D, $42, $20, $3D, $74 db $03, $C1, $79, $44, $1F, $45, $22, $33 db $74, $03, $DE, $77, $44, $1F, $45, $22 db $35, $74, $06, $C4, $76, $03, $D8, $77 db $44, $27, $19, $00, $02, $19, $01, $06 db $19, $00, $02, $19, $02, $06, $27, $19 db $00, $02, $19, $01, $06, $19, $00, $02 db $19, $02, $06, $10, $5C, $12, $22, $76 db $27, $19, $00, $02, $19, $01, $06, $19 db $00, $02, $19, $02, $06, $27, $19, $00 db $02, $19, $01, $06, $19, $00, $02, $19 db $02, $06, $26, $00, $FE, $0D, $32, $10 db $20, $03, $F7, $79, $44, $19, $04, $10 db $01, $00, $03, $D8, $77, $44, $1F, $45 db $22, $47, $74, $24, $36, $22, $6E, $76 db $04, $03, $18, $7A, $44, $0D, $D3, $20 db $49, $74, $10, $5C, $12, $5B, $76, $19 db $03, $0A, $19, $00, $02, $19, $04, $0C db $06, $64, $76, $19, $03, $08, $19, $00 db $02, $19, $04, $06, $0D, $15, $21, $4D db $74, $03, $32, $7A, $44, $00, $05, $04 db $0D, $E6, $22, $27, $21, $06, $6E, $76 db $18, $29, $00, $2A, $00, $28, $13, $40 db $6E, $74, $13, $60, $99, $74, $13, $A0 db $5C, $75, $06, $E5, $75, $0D, $77, $0F db $0E, $0D, $E6, $22, $27, $1D, $0F, $60 db $2D, $03, $DE, $77, $44, $19, $06, $02 db $19, $08, $02, $19, $06, $02, $19, $08 db $02, $01, $06, $26, $C0, $FF, $0D, $CA db $20, $4F, $74, $0F, $40, $02, $03, $5E db $7A, $44, $00, $03, $DE, $77, $44, $1F db $45, $22, $57, $74, $08, $00, $00, $0F db $60, $3F, $03, $94, $7A, $44, $26, $00 db $FE, $19, $05, $02, $26, $00, $02, $05 db $04, $26, $00, $FE, $05, $02, $03, $D8 db $77, $44, $24, $4D, $19, $00, $04, $01 db $01, $1F, $45, $22, $43, $74, $19, $00 db $04, $01, $02, $1F, $45, $22, $45, $74 db $18, $29, $00, $2A, $00, $28, $13, $40 db $6E, $74, $13, $A0, $99, $74, $06, $5C db $75, $0F, $60, $3F, $01, $00, $0C, $09 db $08, $19, $08, $02, $19, $06, $02, $0A db $0C, $06, $6E, $74, $04, $1A, $7D, $0C db $01, $09, $0C, $0D, $0F, $20, $08, $0A db $08, $04, $1A, $7D, $0C, $0D, $F9, $1F db $26, $40, $02, $29, $00, $22, $49, $77 db $04, $03, $A3, $7A, $44, $19, $07, $10 db $0D, $32, $10, $F8, $05, $18, $29, $00 db $00, $05, $08, $0D, $E6, $22, $27, $21 db $06, $49, $77, $24, $19, $0D, $0F, $20 db $05, $05, $00, $01, $0A, $22, $3B, $5F db $1D, $0F, $40, $02, $26, $80, $FF, $08 db $80, $FE, $0D, $5F, $20, $59, $74, $03 db $C1, $7A, $44, $00, $22, $3B, $5F, $1D db $03, $EB, $7A, $44, $1F, $45, $22, $61 db $74, $1B, $66, $49, $03, $0D, $0F, $20 db $08, $0A, $00, $04, $1A, $7D, $0C, $0D db $F9, $1F, $01, $07, $26, $60, $FF, $0D db $CA, $20, $63, $74, $22, $3B, $5F, $1D db $03, $F1, $7A, $44, $00, $0D, $0F, $20 db $05, $05, $00, $0D, $F9, $1F, $26, $C0 db $FF, $0D, $CA, $20, $66, $74, $22, $3B db $5F, $1D, $03, $0F, $7B, $44, $01, $0A db $00, $22, $3B, $5F, $1D, $03, $EB, $7A db $44, $1F, $45, $22, $69, $74, $1B, $66 db $49, $03, $01, $0A, $1B, $9B, $4D, $03 db $01, $E0, $73, $C3, $5B, $25, $01, $E0 db $73, $CD, $3C, $23, $D0, $1E, $04, $01 db $D9, $7C, $C3, $46, $08, $CD, $A4, $0D db $01, $E0, $73, $CD, $5B, $25, $01, $0A db $74, $CD, $A5, $24, $CB, $6F, $C8, $62 db $2E, $43, $CB, $FE, $1E, $07, $1A, $21 db $53, $DB, $86, $FE, $65, $30, $2D, $FE db $1B, $38, $05, $CD, $2B, $20, $30, $24 db $62, $2E, $43, $1E, $45, $1A, $CB, $86 db $07, $38, $24, $1E, $0F, $62, $2E, $0D db $2A, $12, $1C, $3A, $12, $AF, $22, $77 db $62, $2E, $1F, $36, $44, $2C, $36, $78 db $2C, $36, $59, $C9, $62, $2E, $43, $1E db $45, $1A, $CB, $C6, $07, $38, $DC, $1E db $0F, $62, $2E, $0D, $2A, $2F, $C6, $01 db $12, $1C, $3A, $2F, $CE, $00, $12, $18 db $D4, $CD, $A4, $0D, $01, $E0, $73, $CD db $5B, $25, $01, $0A, $74, $CD, $CD, $24 db $CB, $77, $C2, $7F, $78, $CB, $7F, $20 db $0E, $1E, $07, $1A, $21, $53, $DB, $86 db $FE, $1B, $38, $03, $FE, $65, $D8, $62 db $2E, $43, $CB, $BE, $1E, $04, $1A, $21 db $51, $DB, $86, $FE, $1C, $38, $0F, $FE db $84, $30, $2F, $CD, $C0, $1E, $1E, $45 db $1A, $07, $38, $2B, $18, $05, $1E, $45 db $3E, $40, $12, $1E, $43, $1A, $0F, $38 db $24, $1E, $0D, $62, $2E, $0F, $2A, $12 db $1C, $3A, $12, $AF, $22, $77, $62, $2E db $1F, $36, $44, $2C, $36, $77, $2C, $36 db $ED, $C9, $1E, $45, $3E, $C0, $12, $1E db $43, $1A, $0F, $38, $DC, $1E, $0D, $62 db $2E, $0F, $2A, $2F, $C6, $01, $12, $1C db $3A, $2F, $CE, $00, $12, $18, $D4, $CD db $D8, $21, $CD, $C5, $21, $CD, $A4, $0D db $01, $E0, $73, $CD, $5B, $25, $01, $0A db $74, $CD, $CD, $24, $2E, $26, $62, $35 db $C0, $36, $10, $2E, $40, $35, $28, $1B db $06, $08, $1E, $07, $CD, $9C, $1F, $30 db $1A, $06, $40, $1E, $04, $CD, $9C, $1F db $30, $11, $06, $30, $1E, $04, $CD, $9C db $1F, $38, $08, $1E, $04, $01, $7E, $75 db $C3, $46, $08, $1E, $45, $1A, $E0, $80 db $1E, $43, $1A, $E0, $81, $CD, $74, $7B db $1E, $45, $1A, $21, $80, $FF, $BE, $28 db $28, $62, $2E, $3F, $CB, $46, $20, $0D db $CB, $C6, $2E, $11, $36, $00, $1E, $45 db $F0, $80, $12, $18, $14, $CB, $86, $2E db $11, $1E, $41, $1A, $77, $2E, $3B, $7E db $2F, $C6, $01, $22, $7E, $2F, $CE, $00 db $77, $CD, $2B, $20, $1E, $3A, $1A, $30 db $04, $07, $D0, $18, $02, $07, $D8, $62 db $2E, $3F, $CB, $4E, $20, $07, $CB, $CE db $2E, $12, $36, $00, $C9, $CB, $8E, $2E db $12, $1E, $41, $1A, $77, $2E, $39, $7E db $2F, $C6, $01, $22, $7E, $2F, $CE, $00 db $77, $C9, $CD, $E6, $1E, $CD, $A4, $0D db $01, $E0, $73, $CD, $5B, $25, $D8, $01 db $0A, $74, $C3, $CD, $24, $CD, $E6, $1E db $CD, $A4, $0D, $01, $E0, $73, $CD, $3C db $23, $38, $06, $01, $0A, $74, $C3, $CD db $24, $1E, $04, $01, $D9, $7C, $C3, $46 db $08, $01, $E0, $73, $CD, $3C, $23, $38 db $26, $CD, $EB, $21, $CD, $A4, $0D, $01 db $0A, $74, $CD, $CD, $24, $CB, $7F, $20 db $0A, $1E, $07, $1A, $21, $53, $DB, $86 db $FE, $65, $D8, $62, $2E, $1F, $36, $44 db $2C, $36, $77, $2C, $36, $DE, $C9, $1E db $04, $01, $D9, $7C, $C3, $46, $08, $CD db $E6, $1E, $CD, $A4, $0D, $01, $E0, $73 db $CD, $5B, $25, $01, $0A, $74, $CD, $CD db $24, $CB, $6F, $C8, $62, $2E, $1F, $36 db $44, $2C, $36, $77, $2C, $36, $D8, $C9 db $CD, $A4, $0D, $01, $E0, $73, $CD, $5B db $25, $01, $0A, $74, $CD, $CD, $24, $CB db $6F, $C8, $1E, $04, $01, $8D, $76, $C3 db $46, $08, $CD, $E6, $1E, $CD, $A4, $0D db $01, $E0, $73, $CD, $5B, $25, $01, $0A db $74, $CD, $CD, $24, $CB, $6F, $20, $0E db $62, $2E, $0D, $2A, $B6, $C0, $1E, $04 db $01, $78, $76, $C3, $46, $08, $1E, $04 db $01, $8D, $76, $C3, $46, $08, $01, $E0 db $73, $CD, $3C, $23, $38, $26, $CD, $D3 db $1E, $CD, $A4, $0D, $01, $0A, $74, $CD db $CD, $24, $CB, $7F, $C8, $62, $2E, $40 db $35, $28, $09, $21, $52, $74, $CD, $F9 db $20, $C3, $BE, $20, $1E, $04, $01, $BB db $76, $C3, $46, $08, $1E, $04, $01, $D9 db $7C, $C3, $46, $08, $CD, $A4, $0D, $01 db $E0, $73, $CD, $5B, $25, $01, $0A, $74 db $C3, $A5, $24, $CD, $E6, $1E, $CD, $A4 db $0D, $01, $FC, $73, $CD, $5B, $25, $D8 db $01, $0E, $74, $CD, $CD, $24, $CB, $6F db $C8, $1E, $04, $01, $53, $77, $C3, $46 db $08, $CD, $EB, $21, $CD, $A4, $0D, $01 db $FC, $73, $CD, $5B, $25, $D8, $CD, $25 db $1A, $CB, $7F, $C8, $2E, $40, $62, $35 db $28, $09, $21, $5C, $74, $CD, $F9, $20 db $C3, $BE, $20, $1E, $04, $01, $74, $77 db $C3, $46, $08, $01, $FC, $73, $C3, $5B db $25, $CD, $D3, $1E, $CD, $A4, $0D, $01 db $FC, $73, $CD, $5B, $25, $D8, $01, $0E db $74, $CD, $CD, $24, $CB, $7F, $C8, $1E db $04, $01, $A5, $77, $C3, $46, $08, $CD db $D3, $1E, $CD, $A4, $0D, $01, $FC, $73 db $CD, $5B, $25, $D8, $CD, $25, $1A, $CB db $7F, $C8, $1E, $04, $01, $C1, $77, $C3 db $46, $08, $CD, $2B, $20, $2E, $43, $62 db $30, $03, $CB, $86, $C9, $CB, $C6, $C9 db $62, $2E, $43, $CB, $FE, $C9, $62, $2E db $43, $CB, $BE, $C9, $0A, $6F, $03, $0A db $67, $03, $1E, $43, $1A, $07, $D2, $F0 db $20, $1E, $5C, $1A, $07, $85, $6F, $30 db $01, $24, $1E, $43, $1A, $0F, $1E, $0F db $38, $06, $2A, $12, $1C, $2A, $12, $C9 db $2A, $2F, $C6, $01, $12, $1C, $2A, $2F db $CE, $00, $12, $C9, $C5, $26, $A0, $2E db $04, $1E, $45, $1A, $07, $38, $2E, $2A db $D6, $30, $4F, $7E, $DE, $00, $38, $44 db $47, $79, $21, $51, $DB, $96, $5F, $23 db $78, $9E, $38, $38, $7B, $FE, $1C, $38 db $33, $1E, $04, $1A, $91, $1C, $1A, $98 db $30, $04, $3E, $40, $18, $02, $3E, $C0 db $1E, $45, $12, $C1, $C9, $2A, $C6, $30 db $4F, $7E, $CE, $00, $47, $79, $21, $51 db $DB, $96, $FE, $64, $38, $DB, $26, $A0 db $2E, $04, $2A, $D6, $30, $4F, $7E, $DE db $00, $47, $18, $CD, $26, $A0, $2E, $04 db $2A, $C6, $30, $4F, $7E, $CE, $00, $47 db $18, $BF, $0A, $6F, $03, $0A, $67, $03 db $2A, $1E, $11, $12, $1C, $12, $1E, $41 db $12, $1E, $45, $1A, $07, $1E, $3B, $38 db $07, $2A, $12, $1C, $3A, $12, $18, $0B db $2A, $2F, $C6, $01, $12, $1C, $3A, $2F db $CE, $00, $12, $1E, $43, $1A, $0F, $1E db $39, $38, $07, $2A, $12, $1C, $2A, $12 db $18, $0B, $2A, $2F, $C6, $01, $12, $1C db $2A, $2F, $CE, $00, $12, $1E, $5C, $1A db $85, $6F, $30, $01, $24, $1E, $40, $7E db $12, $AF, $1D, $12, $C9, $17, $FF, $0D db $0F, $44, $FF, $0D, $5F, $22, $0D, $72 db $22, $0D, $A7, $7E, $0D, $F6, $7E, $0F db $60, $2D, $0D, $D4, $7E, $0D, $4E, $4C db $0D, $AC, $7E, $12, $6B, $7C, $27, $0D db $5F, $20, $1E, $45, $10, $5B, $1E, $07 db $22, $48, $22, $48, $9A, $58, $8B, $5E db $DD, $66, $19, $70, $09, $77, $03, $0E db $7E, $44, $00, $10, $5B, $0E, $07, $F9 db $45, $54, $4E, $5D, $56, $40, $5C, $B9 db $62, $DA, $6C, $6B, $74, $16, $10, $5B db $0E, $07, $FA, $45, $55, $4E, $5D, $56 db $40, $5C, $07, $67, $DA, $6C, $C4, $76 db $16, $18, $03, $E3, $7D, $44, $10, $5B db $0E, $07, $F9, $45, $54, $4E, $5D, $56 db $8E, $5E, $E0, $66, $1C, $70, $6E, $74 db $16, $0D, $B2, $4C, $12, $C1, $7C, $10 db $5B, $0E, $07, $F9, $45, $54, $4E, $5D db $56, $40, $5C, $B9, $62, $DA, $6C, $6E db $74, $0D, $41, $4D, $0F, $40, $02, $10 db $5B, $0E, $07, $39, $46, $6A, $4E, $A3 db $56, $74, $5C, $EC, $62, $6E, $6D, $8D db $74, $0F, $41, $01, $1C, $F6, $7C, $04 db $10, $5B, $1E, $07, $25, $48, $69, $50 db $9D, $58, $AA, $5E, $FD, $66, $26, $70 db $0F, $77, $0F, $41, $00, $00, $03, $23 db $23, $40, $18, $0D, $72, $22, $0F, $60 db $3F, $0D, $E6, $22, $27, $04, $24, $34 db $1D, $0D, $7B, $22, $0F, $4B, $00, $0F db $4A, $00, $08, $00, $00, $0D, $16, $4D db $10, $46, $04, $83, $77, $0B, $0F, $46 db $00, $24, $11, $0F, $47, $10, $09, $04 db $19, $00, $02, $19, $01, $02, $19, $02 db $02, $19, $03, $02, $19, $04, $02, $19 db $05, $02, $19, $06, $02, $19, $07, $02 db $0A, $0F, $47, $00, $1A, $46, $10, $5B db $1E, $07, $31, $48, $75, $50, $AA, $58 db $C6, $5E, $0A, $67, $33, $70, $1C, $77 db $07, $00, $00, $08, $00, $FE, $0D, $5F db $20, $1E, $45, $03, $43, $7E, $44, $0F db $60, $00, $0F, $61, $40, $0F, $4C, $01 db $0D, $82, $22, $00, $03, $78, $7E, $44 db $24, $0E, $05, $B4, $0F, $1F, $80, $1B db $52, $43, $05, $17, $FF, $0D, $0F, $61 db $00, $0D, $0F, $20, $08, $08, $00, $0F db $4C, $01, $10, $5B, $0E, $26, $38, $48 db $40, $48, $95, $48, $9D, $48, $2F, $49 db $C2, $48, $A5, $48, $7C, $50, $B4, $50 db $F3, $50, $01, $51, $A6, $51, $B1, $58 db $B9, $58, $C1, $58, $CD, $5E, $D8, $5E db $E3, $5E, $23, $5F, $11, $67, $53, $67 db $85, $67, $B9, $67, $C1, $67, $04, $68 db $1E, $68, $3A, $70, $40, $70, $23, $77 db $85, $77, $33, $49, $CF, $51, $ED, $72 db $60, $4D, $2A, $5B, $4F, $73, $63, $73 db $90, $73, $16, $1E, $5B, $1A, $07, $21 db $00, $7E, $85, $6F, $30, $01, $24, $2A db $4F, $46, $CD, $3C, $23, $D0, $1E, $04 db $01, $D9, $7C, $CD, $46, $08, $37, $C9 db $23, $45, $68, $4D, $33, $55, $8E, $5B db $A5, $61, $2B, $6C, $E0, $73, $CD, $E3 db $7D, $D8, $CD, $EB, $21, $CD, $A4, $0D db $1E, $5B, $1A, $21, $35, $7E, $07, $85 db $6F, $30, $01, $24, $2A, $46, $4F, $CD db $CD, $24, $CB, $7F, $C8, $1E, $04, $01 db $91, $7C, $C3, $46, $08, $4D, $45, $92 db $4D, $6B, $55, $AA, $5B, $EB, $61, $55 db $6C, $0A, $74, $CD, $78, $7E, $D8, $CD db $EB, $21, $CD, $A4, $0D, $1E, $5B, $1A db $21, $6A, $7E, $07, $85, $6F, $30, $01 db $24, $2A, $46, $4F, $CD, $CD, $24, $CB db $7F, $C8, $1E, $04, $01, $74, $7D, $C3 db $46, $08, $4D, $45, $92, $4D, $6B, $55 db $AA, $5B, $EB, $61, $55, $6C, $0A, $74 db $1E, $5B, $1A, $07, $21, $99, $7E, $85 db $6F, $30, $01, $24, $2A, $4F, $46, $CD db $5B, $25, $D8, $FA, $2C, $DD, $CB, $5F db $C8, $1E, $03, $01, $33, $4E, $C3, $46 db $08, $3F, $45, $84, $4D, $41, $55, $9C db $5B, $B3, $61, $39, $6C, $EE, $73, $7A db $EA, $61, $DD, $C9, $C5, $1E, $5B, $1A db $21, $C6, $7E, $07, $85, $6F, $30, $01 db $24, $2A, $46, $4F, $CD, $91, $24, $E6 db $80, $1E, $27, $12, $C1, $C9, $4D, $45 db $92, $4D, $6B, $55, $AA, $5B, $EB, $61 db $55, $6C, $0A, $74, $1E, $5B, $1A, $07 db $21, $E8, $7E, $85, $6F, $30, $01, $24 db $1E, $5E, $2A, $12, $1C, $2A, $12, $C9 db $08, $08, $08, $0A, $06, $0C, $08, $0A db $07, $0B, $08, $08, $06, $0C, $AF, $EA db $60, $DD, $C9, $FF, $FF, $FF, $FF, $FF db $06, $04, $00, $00, $60, $04, $80, $00 db $00, $00, $10, $00, $00, $00, $04, $04 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $DF, $FF, $FF, $FF, $DF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $02, $00, $46, $00, $01, $00, $0C, $00 db $00, $00, $24, $20, $00, $00, $02, $02 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FD, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $80, $00, $01, $02, $40, $00, $82, $00 db $00, $41, $08, $00, $00, $10, $84, $02 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FB, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $16, $00, $40, $21, $00, $00, $00, $08 db $00, $00, $24, $08, $01, $00, $01, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $BF, $FF, $FF db $BF, $FF, $FF, $FF, $DF, $FF, $F9, $DF db $FF, $FF, $DF, $FF, $FF, $FF, $FF, $FF
exercises/exercise13/db_world.asm
Dark15/assembly
1
240764
<reponame>Dark15/assembly db 'world' times 512 - 5 db 0
programs/oeis/096/A096884.asm
neoneye/loda
22
241015
<filename>programs/oeis/096/A096884.asm ; A096884: a(n) = 101^n. ; 1,101,10201,1030301,104060401,10510100501,1061520150601,107213535210701,10828567056280801,1093685272684360901,110462212541120451001,11156683466653165551101 add $0,1 mov $1,5 lpb $0 sub $0,1 mul $1,101 lpe div $1,505 mov $0,$1
data/mapObjects/safarizoneentrance.asm
adhi-thirumala/EvoYellow
16
240991
SafariZoneEntranceObject: db $a ; border block db $4 ; warps db $5, $3, $4, $ff db $5, $4, $4, $ff db $0, $3, $0, SAFARI_ZONE_CENTER db $0, $4, $1, SAFARI_ZONE_CENTER db $0 ; signs db $2 ; objects object SPRITE_WHITE_PLAYER, $6, $2, STAY, LEFT, $1 ; person object SPRITE_WHITE_PLAYER, $1, $4, STAY, RIGHT, $2 ; person ; warp-to EVENT_DISP SAFARI_ZONE_ENTRANCE_WIDTH, $5, $3 EVENT_DISP SAFARI_ZONE_ENTRANCE_WIDTH, $5, $4 EVENT_DISP SAFARI_ZONE_ENTRANCE_WIDTH, $0, $3 ; SAFARI_ZONE_CENTER EVENT_DISP SAFARI_ZONE_ENTRANCE_WIDTH, $0, $4 ; SAFARI_ZONE_CENTER
CodeExecution/Invoke-ReflectivePEInjection_Resources/Shellcode/x64/GetFuncAddress.asm
g-goessel/PowerSploit
9,233
168704
[SECTION .text] global _start _start: ; Save state of rbx and stack push rbx mov rbx, rsp ; Set up stack for function call to GetProcAddress sub rsp, 0x20 and sp, 0xffc0 ; Call getprocaddress mov rcx, 0x4141414141414141 ; DllHandle, set by PS mov rdx, 0x4141414141414141 ; Ptr to FuncName string, set by PS mov rax, 0x4141414141414141 ; GetProcAddress address, set by PS call rax ; Store the result mov rcx, 0x4141414141414141 ; Ptr to buffer to save result,set by PS mov [rcx], rax ; Restore stack mov rsp, rbx pop rbx ret
source/regions/regions-contexts-environments-factories.adb
reznikmm/declarative-regions
0
12865
<reponame>reznikmm/declarative-regions -- SPDX-FileCopyrightText: 2022 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Regions.Contexts.Environments.Nodes; with Regions.Contexts.Environments.Package_Nodes; package body Regions.Contexts.Environments.Factories is type Environment_Node_Access is access all Regions.Contexts.Environments.Nodes.Environment_Node; type Package_Node_Access is access all Regions.Contexts.Environments.Package_Nodes.Package_Node; ------------------- -- Append_Entity -- ------------------- overriding procedure Append_Entity (Self : access Factory; Region : in out Regions.Region'Class; Symbol : Regions.Symbols.Symbol; Entity : Regions.Entities.Entity_Access) is Name : constant Selected_Entity_Name := Nodes.Base_Entity'Class (Entity.all).Name; Reg : Nodes.Base_Entity'Class renames Nodes.Base_Entity'Class (Region); Env : constant Environments.Environment_Node_Access := Reg.Env; Node : constant Nodes.Entity_Node_Access := Env.Nodes.Element (Reg.Name); Pkg : constant Package_Node_Access := Package_Node_Access (Node); List : Selected_Entity_Name_Lists.List; begin pragma Assert (Env = Nodes.Base_Entity'Class (Entity.all).Env); if Pkg.Names.Contains (Symbol) then List := Pkg.Names.Element (Symbol); end if; List.Prepend (Name); Pkg.Names.Insert (Symbol, List); end Append_Entity; -------------------- -- Create_Package -- -------------------- overriding function Create_Package (Self : access Factory; Environment : Regions.Environments.Environment; Name : Regions.Contexts.Selected_Entity_Name) return Regions.Entities.Packages.Package_Access is Env : constant Environments.Environment_Node_Access := Environment.Data; Node : constant Package_Node_Access := new Regions.Contexts.Environments.Package_Nodes.Package_Node; begin Env.Nodes.Insert (Name, Environments.Nodes.Entity_Node_Access (Node)); return Regions.Entities.Packages.Package_Access (Env.Get_Entity (Name)); end Create_Package; ------------------ -- Enter_Region -- ------------------ overriding function Enter_Region (Self : access Factory; Environment : Regions.Environments.Environment; Region : not null Regions.Entities.Packages.Package_Access) return Regions.Environments.Environment is Reg : Nodes.Base_Entity'Class renames Nodes.Base_Entity'Class (Region.all); Env : constant Environments.Environment_Node_Access := Environment.Data; Node : constant Environments.Environment_Node_Access := new Regions.Contexts.Environments.Nodes.Environment_Node' (Context => Self.Context, Counter => 1, Nodes => Env.Nodes, Cache => Nodes.Entity_Maps.Empty_Map, Nested => Env.Nested); begin Node.Nested.Prepend (Reg.Name); -- Shell we copy Region to Env??? return (Ada.Finalization.Controlled with Data => Node); end Enter_Region; ---------------------- -- Root_Environment -- ---------------------- overriding function Root_Environment (Self : access Factory) return Regions.Environments.Environment is Name : constant Selected_Entity_Name := Self.Context.Root_Name; Environment : constant Environment_Node_Access := new Regions.Contexts.Environments.Nodes.Environment_Node (Self.Context); Node : constant Package_Node_Access := new Regions.Contexts.Environments.Package_Nodes.Package_Node; -- A pseudo-package to keep Standard in it. begin Environment.Nodes.Insert (Name, Nodes.Entity_Node_Access (Node)); Environment.Nested.Prepend (Name); return (Ada.Finalization.Controlled with Data => Environments.Environment_Node_Access (Environment)); end Root_Environment; end Regions.Contexts.Environments.Factories;
2021/assembly-language-and-microcomputer-interface/exp-3/main.asm
Overloadlightning/BIT
6
10521
.386 .model flat,stdcall option casemap:none include msvcrt.inc includelib msvcrt.lib include user32.inc includelib user32.lib include kernel32.inc includelib kernel32.lib include windows.inc includelib masm32.lib include masm32.inc includelib gdi32.lib include gdi32.inc MAX_LINE_LENGTH equ 1024 ; Const value .const gc_szWindowClass byte "win32app", 0 gc_szWindowTitle byte "Compare Two Files", 0 gc_szClassButton byte "BUTTON", 0 gc_szClassEdit byte "EDIT", 0 gc_szClassStatic byte "STATIC", 0 gc_szFileMode byte "r", 0 gc_szErrorTypeWindow byte "Window Error", 0 gc_szErrorTypeFile byte "File Error", 0 gc_szInfoTypeFile byte "Success", 0 gc_szRegisterFailureMsg byte "Unable to register class, please try again later", 0 gc_szCreateFailureMsg byte "Unable to create window, please try again later", 0 gc_szSourceFileEditTitle byte "Source file's path:", 0 gc_szDestinationFileEditTitle byte "Destination file's path:", 0 gc_szOutputStaticTitle byte "Result:", 0 gc_szCompareButtonText byte "Do Compare", 0 gc_szOpenSourceFileFailureMsg byte "Unable to open source file, please check your input", 0 gc_szOpenDestinationFileFailureMsg byte "Unable to open destination file, please check your input", 0 ; Global variables .data ; Handles for windows and widgets g_hInstance dword 0 g_hWindow dword 0 g_hSourceFileEdit dword 0 g_hDestinationFileEdit dword 0 g_hCompareButton dword 0 g_hOutputStatic dword 0 ; Files paths ; C:\Users\Hyperzsb\Desktop\1.txt g_szSourceFilePath byte MAX_PATH dup(0) ; C:\Users\Hyperzsb\Desktop\2.txt g_szDestinationFilePath byte MAX_PATH dup(0) g_nSourceFileStatus dword 0 g_nDestinationFileStatus dword 0 ; Differences counter g_nCounter dword 0 g_nLineNumber dword 1 ; File lines g_szSourceLine byte MAX_LINE_LENGTH dup(0) g_szDestinationLine byte MAX_LINE_LENGTH dup(0) ; Output msg format g_szOutput byte 1048576 dup(0) g_szOutputTemp byte 4096 dup(0) g_szOutputTempFormat byte "No.%d: ", 0ah, "Line %d -> %s <-> %s", 0ah, 0 g_szCompareFinishedMsg byte 128 dup(0) g_szCompareFinishedMsgFormat byte "Comparsion finished, find %d differences", 0 g_szOutB byte "%s", 0ah, 0 .code Compare proc LOCAL pSourceFile:ptr FILE LOCAL pDestinationFile:ptr FILE ; Initialize global variables mov g_nSourceFileStatus, 0 mov g_nDestinationFileStatus, 0 mov g_nCounter, 0 mov g_nLineNumber, 1 invoke crt_memset, offset g_szOutput, 0, sizeof g_szOutput ; Open files invoke crt_fopen, offset g_szSourceFilePath, offset gc_szFileMode mov pSourceFile, eax invoke crt_fopen, offset g_szDestinationFilePath, offset gc_szFileMode mov pDestinationFile, eax CheckSourceFileLabel: cmp pSourceFile, 0 jne SourceFileValidLabel mov g_nSourceFileStatus, 1 invoke MessageBox, NULL, offset gc_szOpenSourceFileFailureMsg, offset gc_szErrorTypeFile, MB_ICONERROR jmp CheckDestinationFileLabel SourceFileValidLabel: mov g_nSourceFileStatus, 0 CheckDestinationFileLabel: cmp pDestinationFile, 0 jne DestinatioFileValidLabel mov g_nDestinationFileStatus, 1 invoke MessageBox, NULL, offset gc_szOpenDestinationFileFailureMsg, offset gc_szErrorTypeFile, MB_ICONERROR jmp CheckFileLabel DestinatioFileValidLabel: mov g_nDestinationFileStatus, 0 CheckFileLabel: mov eax, g_nSourceFileStatus or eax, g_nDestinationFileStatus cmp eax, 1 je ReturnLabel CompareLoop: invoke crt_feof, pSourceFile mov ecx, eax invoke crt_feof, pDestinationFile and ecx, eax cmp ecx, 0 jne CompareFinishedLabel invoke crt_memset, offset g_szSourceLine, 0, sizeof g_szSourceLine invoke crt_memset, offset g_szDestinationLine, 0, sizeof g_szDestinationLine invoke crt_fgets, offset g_szSourceLine, 1024, pSourceFile invoke crt_strlen, offset g_szSourceLine mov g_szSourceLine[eax - 1], 0 invoke crt_fgets, offset g_szDestinationLine, 1024, pDestinationFile invoke crt_strlen, offset g_szDestinationLine mov g_szDestinationLine[eax - 1], 0 invoke crt_strcmp, offset g_szSourceLine, offset g_szDestinationLine cmp eax, 0 je CompareLoopEnd add g_nCounter, 1 invoke crt_sprintf, offset g_szOutputTemp, offset g_szOutputTempFormat, g_nCounter, g_nLineNumber, offset g_szSourceLine, offset g_szDestinationLine invoke crt_strcat, offset g_szOutput, offset g_szOutputTemp invoke SetWindowTextA, g_hOutputStatic, offset g_szOutput CompareLoopEnd: add g_nLineNumber, 1 jmp CompareLoop CompareFinishedLabel: invoke SetWindowTextA, g_hOutputStatic, offset g_szOutput invoke crt_sprintf, offset g_szCompareFinishedMsg, offset g_szCompareFinishedMsgFormat, g_nCounter invoke MessageBox, NULL, offset g_szCompareFinishedMsg, offset gc_szInfoTypeFile, MB_ICONINFORMATION ReturnLabel: xor eax, eax ret Compare endp ; WinMain function WinMain proc hInstance:HINSTANCE, hPrevInstance:HINSTANCE, lpCmdLine:LPSTR, nCmdShow:DWORD LOCAL wcex:WNDCLASSEX LOCAL msg:MSG ; Initialize wcex for creating window mov wcex.cbSize, sizeof WNDCLASSEX mov wcex.style, CS_HREDRAW or CS_VREDRAW mov wcex.lpfnWndProc, offset WndProc mov wcex.cbClsExtra, 0 mov wcex.cbWndExtra, 0 push hInstance pop wcex.hInstance ; Set icon of window invoke LoadIcon, hInstance, IDI_APPLICATION mov wcex.hIcon, eax mov wcex.hIconSm, eax ; Set cursor of window invoke LoadCursor, NULL, IDC_ARROW mov wcex.hCursor, eax mov wcex.hbrBackground, COLOR_WINDOW + 1 mov wcex.lpszMenuName, NULL mov wcex.lpszClassName, offset gc_szWindowClass ; Register window class invoke RegisterClassEx, addr wcex cmp eax, 0 jne CreateWindowLabel invoke MessageBox, NULL, offset gc_szRegisterFailureMsg, offset gc_szErrorTypeWindow, MB_ICONERROR ret ; Create window CreateWindowLabel: invoke CreateWindowEx, NULL, offset gc_szWindowClass, offset gc_szWindowTitle, \ WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, \ 500, 600, NULL, NULL, hInstance, NULL mov g_hWindow, eax cmp eax, 0 jne ShowWindowLabel invoke MessageBox, NULL, offset gc_szCreateFailureMsg, offset gc_szErrorTypeWindow, MB_ICONERROR ret ; Show window ShowWindowLabel: invoke ShowWindow, g_hWindow, nCmdShow invoke UpdateWindow, g_hWindow GetMessageLoop: invoke GetMessage, addr msg, NULL, 0, 0 cmp eax, 0 je ReturnLabel invoke TranslateMessage, addr msg invoke DispatchMessage, addr msg jmp GetMessageLoop ReturnLabel: mov eax, msg.wParam ret WinMain endp ; WinProc function WndProc proc hWindow:HWND, unMessage:UINT, wParam:WPARAM, lParam:LPARAM LOCAL ps:PAINTSTRUCT LOCAL hdc:HDC WMCREATELabel: cmp unMessage, WM_CREATE jne WMPAINTLabel invoke CreateWindowEx, NULL, offset gc_szClassEdit, NULL, WS_CHILD or WS_VISIBLE or WS_BORDER or WS_TABSTOP, \ 20, 25, 300, 20, hWindow, NULL, NULL, NULL mov g_hSourceFileEdit, eax invoke CreateWindowEx, NULL, offset gc_szClassEdit, NULL, WS_CHILD or WS_VISIBLE or WS_BORDER or WS_TABSTOP, \ 20, 70, 300, 20, hWindow, NULL, NULL, NULL mov g_hDestinationFileEdit, eax invoke CreateWindowEx, NULL, offset gc_szClassStatic, NULL, WS_CHILD or WS_VISIBLE or WS_BORDER , \ 20, 115, 442, 425, hWindow, NULL, NULL, NULL mov g_hOutputStatic, eax invoke CreateWindowEx, NULL, offset gc_szClassButton, offset gc_szCompareButtonText, WS_CHILD or WS_VISIBLE or WS_TABSTOP or BS_DEFPUSHBUTTON, \ 350, 25, 110, 65, hWindow, NULL, NULL, NULL mov g_hCompareButton, eax jmp ReturnLabel WMPAINTLabel: cmp unMessage, WM_PAINT jne WMCOMMANDLabel invoke BeginPaint, hWindow, addr ps mov hdc, eax invoke crt_strlen, offset gc_szSourceFileEditTitle invoke TextOutA, hdc, 20, 10, offset gc_szSourceFileEditTitle, eax invoke crt_strlen, offset gc_szDestinationFileEditTitle invoke TextOutA, hdc, 20, 55, offset gc_szDestinationFileEditTitle, eax invoke crt_strlen, offset gc_szOutputStaticTitle invoke TextOutA, hdc, 20, 100, offset gc_szOutputStaticTitle, eax invoke EndPaint, hWindow, addr ps jmp ReturnLabel WMCOMMANDLabel: cmp unMessage, WM_COMMAND jne WMDESTROYLabel mov eax, lParam CommandCompareButtonLabel: cmp eax, g_hCompareButton jne CommandEndLabel invoke GetWindowTextA, g_hSourceFileEdit, offset g_szSourceFilePath, sizeof g_szSourceFilePath invoke GetWindowTextA, g_hDestinationFileEdit, offset g_szDestinationFilePath, sizeof g_szDestinationFilePath invoke Compare CommandEndLabel: jmp ReturnLabel WMDESTROYLabel: cmp unMessage, WM_DESTROY jne WMOTHERLabel invoke PostQuitMessage, 0 ret WMOTHERLabel: invoke DefWindowProc, hWindow, unMessage, wParam, lParam ret ReturnLabel: xor eax, eax ret WndProc endp start: invoke GetModuleHandle, NULL mov g_hInstance, eax invoke WinMain, g_hInstance, NULL, NULL, SW_SHOWDEFAULT ret end start
libsrc/graphics/pc88/pcalc.asm
jpoikela/z88dk
38
179224
<gh_stars>10-100 ; NEC PC8001 graphics library, by @Stosstruppe ; Adapted to z88dk by <NAME>, 2018 SECTION code_clib PUBLIC pcalc EXTERN base_graphics ; ; $Id: pcalc.asm $ ; ; ****************************************************************** ; ; Get absolute pixel address in map of virtual (x,y) coordinate. ; ; Design & programming by <NAME>, Copyright (C) InterLogic 1995 ; ; ****************************************************************** ; ; ; .pcalc ; point calc ; in : b=y c=x ; out: hl=addr a=bits push bc ld b,l ; y ld c,h ; x ld a, b ; de = y & $fc and $fc ld e, a ld d, 0 ld h, d ; hl = de * 30 ld l, e add hl, hl add hl, de add hl, hl add hl, de add hl, hl add hl, de add hl, hl ; %11110 = 30? ld e, c ; hl += x / 2 srl e add hl, de ld de, $f3c8 ; TVRAM, text video memory add hl, de push hl ld a, c and $01 add a, a add a, a ld e, a ld a, b and $03 or e ld e, a ld d, 0 ld hl, PCALC_DATA add hl, de ld a, (hl) pop hl ;ld d,h ;ld e,l pop bc ;and @00000111 ;xor @00000111 ret SECTION rodata_clib PCALC_DATA: defb $01,$02,$04,$08,$10,$20,$40,$80
oeis/108/A108484.asm
neoneye/loda-programs
11
168383
; A108484: Sum binomial(2n-2k,2k)3^k, k=0..floor(n/2). ; Submitted by <NAME> ; 1,1,4,19,55,220,793,2845,10480,37963,138259,503608,1831969,6669865,24276892,88362451,321640831,1170726484,4261339801,15510894949,56458080328,205502135851,748007984827,2722677076336,9910284168961 mul $0,2 seq $0,98576 ; a(n) = Sum_{k=0..floor(n/4)} C(n-2*k,2*k) * 3^k.
programs/oeis/314/A314057.asm
karttu/loda
0
16575
<reponame>karttu/loda<filename>programs/oeis/314/A314057.asm ; A314057: Coordination sequence Gal.6.635.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,5,11,15,21,27,31,37,43,47,53,58,63,69,73,79,85,89,95,101,105,111,116,121,127,131,137,143,147,153,159,163,169,174,179,185,189,195,201,205,211,217,221,227,232,237,243,247,253,259 mov $2,$0 add $2,1 mov $5,$0 lpb $2,1 mov $0,$5 sub $2,1 sub $0,$2 mov $7,2 mov $9,$0 lpb $7,1 mov $0,$9 sub $7,1 add $0,$7 sub $0,1 mul $0,2 cmp $10,0 add $4,$10 div $4,$4 cal $0,314244 ; Coordination sequence Gal.6.644.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. add $4,1 add $0,$4 add $0,4 mov $3,$0 mov $6,$7 lpb $6,1 sub $6,1 mov $8,$3 lpe lpe lpb $9,1 sub $8,$3 mov $9,0 lpe mov $3,$8 sub $3,6 add $1,$3 lpe
PRG/levels/Fortress/6-F3A.asm
narfman0/smb3_pp1
0
1258
; Original address was $B126 ; World 6 third fortress "Boo room" .word W6F3L ; Alternate level layout .word W6F3O ; Alternate object layout .byte LEVEL1_SIZE_01 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_02 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTEXIT .byte LEVEL4_BGBANK_INDEX(2) | LEVEL4_INITACT_NOTHING .byte LEVEL5_BGM_FORTRESS | LEVEL5_TIME_300 .byte $61, $00, $2F, $0F, $71, $00, $27, $0F, $01, $00, $5F, $00, $00, $E0, $0F, $07 .byte $01, $93, $0D, $06, $61, $11, $04, $62, $14, $02, $73, $09, $0E, $00, $E0, $68 .byte $99, $FF
c2000/C2000Ware_1_00_06_00/libraries/control/DCL/c28/source/DCL_index.asm
ramok/Themis_ForHPSDR
0
21802
<filename>c2000/C2000Ware_1_00_06_00/libraries/control/DCL/c28/source/DCL_index.asm ; DCL_index.asm - computes performance indices from TCM data ; ; Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ ; ALL RIGHTS RESERVED .if __TI_EABI__ .asg DCL_runITAE_C1, _DCL_runITAE_C1 .asg DCL_runIAE_C1, _DCL_runIAE_C1 .asg DCL_runIES_C1, _DCL_runIES_C1 .endif .global _DCL_runITAE_C1 .global _DCL_runIAE_C1 .global _DCL_runIES_C1 .sect "dclfuncs" ; 11/14/2017: [RP] changed AR7 to AR0 ; C prototype: float DCL_runITAE_C1(FDLOG *elog, float prd) ; argument 1 = *elog: address of input data [XAR4] ; argument 2 = prd : sample period in seconds [R0H] ; return = ITAE index [R0H] .align 2 _DCL_runITAE_C1: .asmfunc MOVL ACC, *+XAR4[2] ; ACC = elog.lptr SUBL ACC, *+XAR4[0] ; ACC = buffer length LSR AL, #1 ; AL = N/2 MOV AR0, AL ZERO R2H ZERO R3H MOVL XAR5, *XAR4 ;--- repeat loop RPTB _ITAE_END, AR0 MOV32 R1H, *XAR5++ ; R1H = data ABSF32 R1H, R1H ; R1H = abs(data) MPYF32 R1H, R1H, R3H ; R1H = abs(data) * time ADDF32 R3H, R3H, R0H ; R3H = time ADDF32 R2H, R2H, R1H ; R2H = cumulative index _ITAE_END: NOP MOV32 R0H, R2H LRETR .endasmfunc .page ; C prototype: float DCL_runIAE_C1(FDLOG *elog) ; argument 1 = *elog: address of input data [XAR4] ; return = IAE index [R0H] .align 2 _DCL_runIAE_C1: .asmfunc MOVL ACC, *+XAR4[2] ; ACC = elog.lptr SUBL ACC, *+XAR4[0] ; ACC = buffer length LSR AL, #1 ; AL = N/2 MOV AR0, AL ZERO R0H MOVL XAR5, *XAR4 ;--- repeat loop RPTB _IAE_END, AR0 MOV32 R1H, *XAR5++ ; R1H = data ABSF32 R1H, R1H ; R1H = abs(data) ADDF32 R0H, R0H, R1H ; R0H = cumulative index NOP NOP NOP _IAE_END: LRETR .endasmfunc .page ; C prototype: float DCL_runIES_C1(FDLOG *elog) ; argument 1 = *elog: address of input data [XAR4] ; return = IES index [R0H] .align 2 _DCL_runIES_C1: .asmfunc MOVL ACC, *+XAR4[2] ; ACC = elog.lptr SUBL ACC, *+XAR4[0] ; ACC = buffer length (N) in 16-bit words LSR AL, #1 ; AL = N in 32-bit words MOV AR0, AL ; AR7 = loop count ZERO R0H MOVL XAR5, *XAR4 ;--- repeat loop RPTB _IES_END, AR0 MOV32 R1H, *XAR5++ ; R1H = data MPYF32 R2H, R1H, R1H ; R2H = data^2 NOP ADDF32 R0H, R0H, R2H ; R0H = cumulative index NOP NOP _IES_END: LRETR .endasmfunc .end ; end of file
oeis/142/A142794.asm
neoneye/loda-programs
11
82598
; A142794: Primes congruent to 41 mod 60. ; Submitted by <NAME> ; 41,101,281,401,461,521,641,701,761,821,881,941,1061,1181,1301,1361,1481,1601,1721,1901,2081,2141,2381,2441,2621,2741,2801,2861,3041,3221,3461,3581,3701,3761,3821,3881,4001,4241,4421,4481,4721,5021,5081,5261,5381,5441,5501,5741,5801,5861,5981,6101,6221,6521,6581,6701,6761,7001,7121,7481,7541,7841,7901,8081,8501,8681,8741,8861,9041,9161,9221,9281,9341,9461,9521,9941,10061,10181,10301,10601,10781,11261,11321,11621,11681,11801,11981,12041,12101,12161,12281,12401,12641,12821,12941,13001,13121,13241 mov $1,4 mov $2,$0 pow $2,2 lpb $2 add $1,36 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,24 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 sub $2,1 lpe mov $0,$1 add $0,37
programs/oeis/060/A060511.asm
neoneye/loda
22
85103
; A060511: Hexagonal excess: smallest amount by which n exceeds a hexagonal number (2k^2-k, A000384). ; 0,0,1,2,3,4,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,9,10,11,12,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 mov $3,$0 mov $0,-3 lpb $2,4 add $0,4 sub $3,$0 trn $2,$3 lpe mov $0,$3
labs/trans-magic/grammars/Lang.g4
parrt/cs652
110
3275
grammar Lang; file : (fun|decl)+ ; fun : 'fun' ID '(' ')' '{' decl+ '}' ; decl : typename ID ';' ; typename : 'int' | ID ; ID : [a-zA-Z]+ ; WS : [ \r\t\n]+ -> skip;
libsrc/_DEVELOPMENT/math/float/math32/lm32/z80/asm_fpclassifyf.asm
jpoikela/z88dk
640
91172
<reponame>jpoikela/z88dk<gh_stars>100-1000 SECTION code_clib SECTION code_fp_math32 PUBLIC asm_fpclassify, asm_fpclassifyf EXTERN m32_fpclassify ; enter : dehl' = float x ; ; exit : dehl' = float x ; a = 0 if number ; = 1 if zero ; = 2 if nan ; = 3 if inf ; ; uses : af .asm_fpclassify .asm_fpclassifyf exx call m32_fpclassify exx ret
Driver/Mailbox/Data/VMTree/vmtreeStack.asm
steakknife/pcgeos
504
9869
<gh_stars>100-1000 COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved PROJECT: Clavin MODULE: VM Tree Data Driver FILE: vmtreeStack.asm AUTHOR: <NAME>, Jun 15, 1994 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- CL 6/15/94 Initial revision DESCRIPTION: Abstraction for stack of VM block handles. Each stack is a memory block with a header. $Id: vmtreeStack.asm,v 1.1 97/04/18 11:41:49 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ Movable segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VMTSAlloc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate a dword stack. CALLED BY: PASS: nothing RETURN: bx = stack handle DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- CL 6/15/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VMTSAlloc proc near uses ax,cx,ds .enter mov ax, DEFAULT_STACK_BLOCK_SIZE mov cx, ALLOC_DYNAMIC_NO_ERR_LOCK call MemAlloc ;bx = handle, ax = addr. mov ds, ax mov ds:[VMTSH_count], 0 call MemUnlock .leave ret VMTSAlloc endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VMTSPush %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Push element onto word stack. CALLED BY: VMTreeReadInitialize, VMTreeReadNextBlock PASS: bx = stack handle dx:ax = element to push RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- CL 6/15/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VMTSPush proc near uses bx,cx,ds,si .enter ; ; If we're about to overflow the stack, then expand the segment. ; push dx, ax ;element to push call MemLock ;ax = segment mov ds, ax mov cx, ds:[VMTSH_count] ;number of dword elements. inc cx ;check if there's room for one more. shl cx shl cx ;multiply by dword size add cx, size VMTStackHeader ;cx = bytes used. mov ax, MGIT_SIZE call MemGetInfo ;ax = size of block cmp cx, ax jbe pushElement ; ; expand block to fit more elements. ; push cx add ax, DEFAULT_STACK_BLOCK_SIZE mov ch, HAF_STANDARD_NO_ERR call MemReAlloc mov ds, ax pop cx pushElement: ; cx = offset of new element + size dword. pop dx, ax ;element to push inc ds:[VMTSH_count] sub cx, 4 ;cx = offset of new element mov si, cx movdw ds:[si], dxax call MemUnlock .leave ret VMTSPush endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VMTSPop %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Pop from the top of the stack CALLED BY: VMTreeReadNextBlock, etc. PASS: bx = stack handle RETURN: carry set if stack is empty, otherwise carry clear, and dx:ax = element. DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- CL 6/15/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VMTSPop proc near uses bx,cx,ds,si .enter call MemLock mov ds, ax tst ds:[VMTSH_count] jz emptyStack dec ds:[VMTSH_count] mov cx, ds:[VMTSH_count] ;offset for a word size element is 4*cx + size VMTStackHeader. shl cx shl cx add cx, size VMTStackHeader mov si, cx movdw dxax, ds:[si] clc unlockAndExit: call MemUnlock .leave ret emptyStack: stc jmp unlockAndExit VMTSPop endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VMTSFree %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Free the stack. Stack cannot be used after this is called. CALLED BY: PASS: bx = stack handle RETURN: nothing DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- CL 6/15/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VMTSFree proc near call MemFree ret VMTSFree endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VMTSGetCount %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Return the number of items pushed on the stack. CALLED BY: PASS: bx = stack handle RETURN: cx = count DESTROYED: nothing SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- CL 10/ 6/94 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VMTSGetCount proc near uses ax, ds .enter call MemLock mov ds, ax mov cx, ds:[VMTSH_count] call MemUnlock .leave ret VMTSGetCount endp Movable ends
libs/context/src/asm/jump_x86_64_ms_pe_masm.asm
dillonl/boost-cmake
0
99039
; Copyright <NAME> 2009. ; Distributed under the Boost Software License, Version 1.0. ; (See accompanying file LICENSE_1_0.txt or copy at ; http://www.boost.org/LICENSE_1_0.txt) ; ---------------------------------------------------------------------------------- ; | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | ; ---------------------------------------------------------------------------------- ; | 0x0 | 0x4 | 0x8 | 0xc | 0x10 | 0x14 | 0x18 | 0x1c | ; ---------------------------------------------------------------------------------- ; | R12 | R13 | R14 | R15 | ; ---------------------------------------------------------------------------------- ; ---------------------------------------------------------------------------------- ; | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | ; ---------------------------------------------------------------------------------- ; | 0x20 | 0x24 | 0x28 | 0x2c | 0x30 | 0x34 | 0x38 | 0x3c | ; ---------------------------------------------------------------------------------- ; | RDI | RSI | RBX | RBP | ; ---------------------------------------------------------------------------------- ; ---------------------------------------------------------------------------------- ; | 16 | 17 | 18 | 19 | | ; ---------------------------------------------------------------------------------- ; | 0x40 | 0x44 | 0x48 | 0x4c | | ; ---------------------------------------------------------------------------------- ; | RSP | RIP | | ; ---------------------------------------------------------------------------------- ; ---------------------------------------------------------------------------------- ; | 20 | 21 | 22 | 23 | 24 | 25 | | ; ---------------------------------------------------------------------------------- ; | 0x50 | 0x54 | 0x58 | 0x5c | 0x60 | 0x64 | | ; ---------------------------------------------------------------------------------- ; | sp | size | limit | | ; ---------------------------------------------------------------------------------- ; ---------------------------------------------------------------------------------- ; | 26 | 27 | | ; ---------------------------------------------------------------------------------- ; | 0x68 | 0x6c | | ; ---------------------------------------------------------------------------------- ; | fbr_strg | | ; ---------------------------------------------------------------------------------- ; ---------------------------------------------------------------------------------- ; | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | ; ---------------------------------------------------------------------------------- ; | 0x70 | 0x74 | 0x78 | 0x7c | 0x80 | 0x84 | 0x88 | 0x8c | ; ---------------------------------------------------------------------------------- ; | fc_mxcsr|fc_x87_cw| fc_xmm | SEE registers (XMM6-XMM15) | ; ---------------------------------------------------------------------------------- ; ---------------------------------------------------------------------------------- ; | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | ; ---------------------------------------------------------------------------------- ; | 0x90 | 0x94 | 0x98 | 0x9c | 0xa0 | 0xa4 | 0xa8 | 0xac | ; ---------------------------------------------------------------------------------- ; | SEE registers (XMM6-XMM15) | ; ---------------------------------------------------------------------------------- ; ---------------------------------------------------------------------------------- ; | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | ; ---------------------------------------------------------------------------------- ; | 0xb0 | 0xb4 | 0xb8 | 0xbc | 0xc0 | 0xc4 | 0xc8 | 0xcc | ; ---------------------------------------------------------------------------------- ; | SEE registers (XMM6-XMM15) | ; ---------------------------------------------------------------------------------- ; ---------------------------------------------------------------------------------- ; | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | ; ---------------------------------------------------------------------------------- ; | 0xd0 | 0xd4 | 0xd8 | 0xdc | 0xe0 | 0xe4 | 0xe8 | 0xec | ; ---------------------------------------------------------------------------------- ; | SEE registers (XMM6-XMM15) | ; ---------------------------------------------------------------------------------- ; ---------------------------------------------------------------------------------- ; | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | ; ---------------------------------------------------------------------------------- ; | 0xf0 | 0xf4 | 0xf8 | 0xfc | 0x100 | 0x104 | 0x108 | 0x10c | ; ---------------------------------------------------------------------------------- ; | SEE registers (XMM6-XMM15) | ; ---------------------------------------------------------------------------------- ; ---------------------------------------------------------------------------------- ; | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | ; ---------------------------------------------------------------------------------- ; | 0x110 | 0x114 | 0x118 | 0x11c | 0x120 | 0x124 | 0x128 | 0x12c | ; ---------------------------------------------------------------------------------- ; | SEE registers (XMM6-XMM15) | ; ---------------------------------------------------------------------------------- EXTERN _exit:PROC ; standard C library function .code jump_fcontext PROC EXPORT FRAME .endprolog mov [rcx], r12 ; save R12 mov [rcx+08h], r13 ; save R13 mov [rcx+010h], r14 ; save R14 mov [rcx+018h], r15 ; save R15 mov [rcx+020h], rdi ; save RDI mov [rcx+028h], rsi ; save RSI mov [rcx+030h], rbx ; save RBX mov [rcx+038h], rbp ; save RBP mov r10, gs:[030h] ; load NT_TIB mov rax, [r10+08h] ; load current stack base mov [rcx+050h], rax ; save current stack base mov rax, [r10+010h] ; load current stack limit mov [rcx+060h], rax ; save current stack limit mov rax, [r10+018h] ; load fiber local storage mov [rcx+068h], rax ; save fiber local storage test r9, r9 je nxt stmxcsr [rcx+070h] ; save MMX control and status word fnstcw [rcx+074h] ; save x87 control word ; save XMM storage ; save start address of SSE register block in R10 lea r10, [rcx+090h] ; shift address in R10 to lower 16 byte boundary ; == pointer to SEE register block and r10, -16 movaps [r10], xmm6 movaps [r10+010h], xmm7 movaps [r10+020h], xmm8 movaps [r10+030h], xmm9 movaps [r10+040h], xmm10 movaps [r10+050h], xmm11 movaps [r10+060h], xmm12 movaps [r10+070h], xmm13 movaps [r10+080h], xmm14 movaps [r10+090h], xmm15 ldmxcsr [rdx+070h] ; restore MMX control and status word fldcw [rdx+074h] ; restore x87 control word ; restore XMM storage ; save start address of SSE register block in R10 lea r10, [rdx+090h] ; shift address in R10 to lower 16 byte boundary ; == pointer to SEE register block and r10, -16 movaps xmm6, [r10] movaps xmm7, [r10+010h] movaps xmm8, [r10+020h] movaps xmm9, [r10+030h] movaps xmm10, [r10+040h] movaps xmm11, [r10+050h] movaps xmm12, [r10+060h] movaps xmm13, [r10+070h] movaps xmm14, [r10+080h] movaps xmm15, [r10+090h] nxt: lea rax, [rsp+08h] ; exclude the return address mov [rcx+040h], rax ; save as stack pointer mov rax, [rsp] ; load return address mov [rcx+048h], rax ; save return address mov r12, [rdx] ; restore R12 mov r13, [rdx+08h] ; restore R13 mov r14, [rdx+010h] ; restore R14 mov r15, [rdx+018h] ; restore R15 mov rdi, [rdx+020h] ; restore RDI mov rsi, [rdx+028h] ; restore RSI mov rbx, [rdx+030h] ; restore RBX mov rbp, [rdx+038h] ; restore RBP mov r10, gs:[030h] ; load NT_TIB mov rax, [rdx+050h] ; load stack base mov [r10+08h], rax ; restore stack base mov rax, [rdx+060h] ; load stack limit mov [r10+010h], rax ; restore stack limit mov rax, [rdx+068h] ; load fiber local storage mov [r10+018h], rax ; restore fiber local storage mov rsp, [rdx+040h] ; restore RSP mov r10, [rdx+048h] ; fetch the address to returned to mov rax, r8 ; use third arg as return value after jump mov rcx, r8 ; use third arg as first arg in context function jmp r10 ; indirect jump to caller jump_fcontext ENDP END
programs/oeis/083/A083706.asm
karttu/loda
1
83161
<gh_stars>1-10 ; A083706: a(n) = 2^(n+1)+n-1. ; 1,4,9,18,35,68,133,262,519,1032,2057,4106,8203,16396,32781,65550,131087,262160,524305,1048594,2097171,4194324,8388629,16777238,33554455,67108888,134217753,268435482,536870939,1073741852,2147483677,4294967326,8589934623,17179869216,34359738401,68719476770,137438953507,274877906980,549755813925,1099511627814,2199023255591,4398046511144,8796093022249,17592186044458,35184372088875,70368744177708,140737488355373,281474976710702,562949953421359,1125899906842672,2251799813685297,4503599627370546,9007199254741043 mov $1,2 pow $1,$0 mul $1,2 add $1,$0 sub $1,1
2021/applescript/jumpgates.applescript
rafimo/2_power_5
0
44
-- open iterm window, split and trigger commands in them -- cerner_2tothe5th_2021 tell application "iTerm" -- have a iterm profile called Jumpgates with your settings set varWindow to create window with profile "Jumpgates" tell varWindow set varTab to current tab tell varTab set varSession to current session write varSession text "ssh prod-jg-1" set anotherSession to split vertically with same profile varSession write anotherSession text "ssh staging-jg-1" set yetAnotherSession to split vertically with same profile varSession write yetAnotherSession text "ssh staging-jg-1" end tell end tell end tell
src/Lens/Non-dependent/Higher/Coherently/Coinductive.agda
nad/dependent-lenses
3
2485
------------------------------------------------------------------------ -- The coinductive type family Coherently ------------------------------------------------------------------------ -- This type family is used to define the lenses in -- Lens.Non-dependent.Higher.Coinductive and -- Lens.Non-dependent.Higher.Coinductive.Small. {-# OPTIONS --cubical --guardedness #-} import Equality.Path as P module Lens.Non-dependent.Higher.Coherently.Coinductive {e⁺} (eq : ∀ {a p} → P.Equality-with-paths a p e⁺) where open P.Derived-definitions-and-properties eq import Equality.Path.Univalence as EPU open import Prelude open import Bijection equality-with-J as B using (_↔_) import Bijection P.equality-with-J as PB open import Container.Indexed equality-with-J open import Container.Indexed.M.Codata eq import Container.Indexed.M.Function equality-with-J as F open import Equality.Path.Isomorphisms eq open import Equivalence equality-with-J as Eq using (_≃_) import Equivalence P.equality-with-J as PEq open import Function-universe equality-with-J hiding (id; _∘_) import Function-universe P.equality-with-J as PF open import H-level equality-with-J open import H-level.Closure equality-with-J open import H-level.Truncation.Propositional.One-step eq as O using (∥_∥¹; ∣_∣) open import Univalence-axiom equality-with-J import Univalence-axiom P.equality-with-J as PU import Lens.Non-dependent.Higher.Coherently.Not-coinductive eq as NC private variable a b ℓ p p₁ p₂ : Level A A₁ A₂ B C : Type a f q x y : A n : ℕ ------------------------------------------------------------------------ -- The type family -- Coherently P step f means that f and all variants of f built using -- step (in a certain way) satisfy the property P. -- -- <NAME> came up with a coinductive definition of lenses. -- <NAME> suggested that one could use a kind of indexed -- M-type to make it easier to prove that two variants of coinductive -- lenses are equivalent: the lemma Coherently-cong-≡ below is based -- on his idea, and Coherently is a less general variant of the M-type -- that he suggested. See also Coherently-with-restriction′ below, -- which is defined as an indexed M-type. record Coherently {A : Type a} {B : Type b} (P : {A : Type a} → (A → B) → Type p) (step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B) (f : A → B) : Type p where coinductive field property : P f coherent : Coherently P step (step f property) open Coherently public ------------------------------------------------------------------------ -- An equivalence -- Coherently is pointwise equivalent to NC.Coherently (assuming -- univalence). Coherently≃Not-coinductive-coherently : {B : Type b} {P : {A : Type a} → (A → B) → Type p} {step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B} {f : A → B} → Univalence (lsuc a ⊔ b ⊔ p) → Univalence (lsuc a ⊔ b) → Coherently P step f ≃ NC.Coherently P step f Coherently≃Not-coinductive-coherently {a = a} {B = B} {P = P} {step = step} {f = f} univ₁ univ₂ = block λ b → Coherently P step f ↝⟨ Eq.↔→≃ to from (_↔_.from ≡↔≡ ∘ to-from) (_↔_.from ≡↔≡ ∘ from-to) ⟩ M (CC step) (_ , f) ↝⟨ carriers-of-final-coalgebras-equivalent (M-coalgebra (CC step) , M-final univ₁ univ₂) (F.M-coalgebra b ext (CC step) , F.M-final b ext ext) _ ⟩ F.M (CC step) (_ , f) ↔⟨⟩ NC.Coherently P step f □ where CC = NC.Coherently-container P to : {step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B} {f : A → B} → Coherently P step f → M (CC step) (_ , f) to c .out-M .proj₁ = c .property to c .out-M .proj₂ _ = to (c .coherent) from : {step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B} {f : A → B} → M (CC step) (_ , f) → Coherently P step f from c .property = c .out-M .proj₁ from c .coherent = from (c .out-M .proj₂ _) to-from : {step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B} {f : A → B} → (c : M (CC step) (_ , f)) → to (from c) P.≡ c to-from c i .out-M .proj₁ = c .out-M .proj₁ to-from c i .out-M .proj₂ _ = to-from (c .out-M .proj₂ _) i from-to : {step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B} {f : A → B} → (c : Coherently P step f) → from (to c) P.≡ c from-to c i .property = c .property from-to c i .coherent = from-to (c .coherent) i ------------------------------------------------------------------------ -- Preservation lemmas private -- A preservation lemma for Coherently. -- -- The lemma does not use the univalence argument, instead it uses -- EPU.univ (and EPU.≃⇒≡) directly. Coherently-cong-≡ : Block "Coherently-cong-≡" → {A : Type a} {P₁ P₂ : {A : Type a} → (A → B) → Type p} {step₁ : {A : Type a} (f : A → B) → P₁ f → ∥ A ∥¹ → B} {step₂ : {A : Type a} (f : A → B) → P₂ f → ∥ A ∥¹ → B} {f : A → B} → Univalence p → (P₁≃P₂ : {A : Type a} (f : A → B) → P₁ f ≃ P₂ f) → ({A : Type a} (f : A → B) (x : P₂ f) → step₁ f (_≃_.from (P₁≃P₂ f) x) ≡ step₂ f x) → Coherently P₁ step₁ f P.≡ Coherently P₂ step₂ f Coherently-cong-≡ {a = a} {B = B} {p = p} ⊠ {P₁ = P₁} {P₂ = P₂} {step₁ = step₁} {step₂ = step₂} {f = f} _ P₁≃P₂′ step₁≡step₂ = P.cong (λ ((P , step) : ∃ λ (P : (A : Type a) → (A → B) → Type p) → {A : Type a} (f : A → B) → P A f → ∥ A ∥¹ → B) → Coherently (P _) step f) $ P.Σ-≡,≡→≡′ (P.⟨ext⟩ λ A → P.⟨ext⟩ λ (f : A → B) → EPU.≃⇒≡ (P₁≃P₂ f)) (P.implicit-extensionality P.ext λ A → P.⟨ext⟩ λ f → P.subst (λ P → {A : Type a} (f : A → B) → P A f → ∥ A ∥¹ → B) (P.⟨ext⟩ λ A → P.⟨ext⟩ λ (f : A → B) → EPU.≃⇒≡ (P₁≃P₂ f)) step₁ f P.≡⟨ P.trans (P.cong (_$ f) $ P.sym $ P.push-subst-implicit-application (P.⟨ext⟩ λ A → P.⟨ext⟩ λ (f : A → B) → EPU.≃⇒≡ (P₁≃P₂ f)) (λ P A → (f : A → B) → P A f → ∥ A ∥¹ → B) {f = const _} {g = step₁}) $ P.sym $ P.push-subst-application (P.⟨ext⟩ λ A → P.⟨ext⟩ λ (f : A → B) → EPU.≃⇒≡ (P₁≃P₂ f)) (λ P f → P A f → ∥ A ∥¹ → B) {f = const f} {g = step₁} ⟩ P.subst (λ P → P A f → ∥ A ∥¹ → B) (P.⟨ext⟩ λ A → P.⟨ext⟩ λ (f : A → B) → EPU.≃⇒≡ (P₁≃P₂ f)) (step₁ f) P.≡⟨⟩ P.subst (λ P → P → ∥ A ∥¹ → B) (EPU.≃⇒≡ (P₁≃P₂ f)) (step₁ f) P.≡⟨ P.sym $ PU.transport-theorem (λ P → P → ∥ A ∥¹ → B) (PF.→-cong₁ _) (λ _ → P.refl) EPU.univ (P₁≃P₂ f) (step₁ f) ⟩ PF.→-cong₁ _ (P₁≃P₂ f) (step₁ f) P.≡⟨⟩ step₁ f ∘ PEq._≃_.from (P₁≃P₂ f) P.≡⟨ P.⟨ext⟩ (_↔_.to ≡↔≡ ∘ step₁≡step₂ f) ⟩∎ step₂ f ∎) where P₁≃P₂ : {A : Type a} (f : A → B) → P₁ f PEq.≃ P₂ f P₁≃P₂ f = _↔_.to ≃↔≃ (P₁≃P₂′ f) -- A "computation rule". to-Coherently-cong-≡-property : (bl : Block "Coherently-cong-≡") {A : Type a} {B : Type b} {P₁ P₂ : {A : Type a} → (A → B) → Type p} {step₁ : {A : Type a} (f : A → B) → P₁ f → ∥ A ∥¹ → B} {step₂ : {A : Type a} (f : A → B) → P₂ f → ∥ A ∥¹ → B} {f : A → B} (univ : Univalence p) (P₁≃P₂ : {A : Type a} (f : A → B) → P₁ f ≃ P₂ f) (step₁≡step₂ : {A : Type a} (f : A → B) (x : P₂ f) → step₁ f (_≃_.from (P₁≃P₂ f) x) ≡ step₂ f x) (c : Coherently P₁ step₁ f) → PU.≡⇒→ (Coherently-cong-≡ bl univ P₁≃P₂ step₁≡step₂) c .property P.≡ _≃_.to (P₁≃P₂ f) (c .property) to-Coherently-cong-≡-property ⊠ {P₁ = P₁} {P₂ = P₂} {f = f} _ P₁≃P₂ step₁≡step₂ c = P.transport (λ _ → P₂ f) P.0̲ (_≃_.to (P₁≃P₂ f) (P.transport (λ _ → P₁ f) P.0̲ (c .property))) P.≡⟨ P.cong (_$ _≃_.to (P₁≃P₂ f) (P.transport (λ _ → P₁ f) P.0̲ (c .property))) $ P.transport-refl P.0̲ ⟩ _≃_.to (P₁≃P₂ f) (P.transport (λ _ → P₁ f) P.0̲ (c .property)) P.≡⟨ P.cong (λ g → _≃_.to (P₁≃P₂ f) (g (c .property))) $ P.transport-refl P.0̲ ⟩∎ _≃_.to (P₁≃P₂ f) (c .property) ∎ -- Another "computation rule". from-Coherently-cong-≡-property : (bl : Block "Coherently-cong-≡") {A : Type a} {B : Type b} {P₁ P₂ : {A : Type a} → (A → B) → Type p} {step₁ : {A : Type a} (f : A → B) → P₁ f → ∥ A ∥¹ → B} {step₂ : {A : Type a} (f : A → B) → P₂ f → ∥ A ∥¹ → B} {f : A → B} (univ : Univalence p) (P₁≃P₂ : {A : Type a} (f : A → B) → P₁ f ≃ P₂ f) (step₁≡step₂ : {A : Type a} (f : A → B) (x : P₂ f) → step₁ f (_≃_.from (P₁≃P₂ f) x) ≡ step₂ f x) (c : Coherently P₂ step₂ f) → PEq._≃_.from (PU.≡⇒≃ (Coherently-cong-≡ bl {step₁ = step₁} univ P₁≃P₂ step₁≡step₂)) c .property P.≡ _≃_.from (P₁≃P₂ f) (c .property) from-Coherently-cong-≡-property ⊠ {P₁ = P₁} {P₂ = P₂} {f = f} _ P₁≃P₂ step₁≡step₂ c = P.transport (λ _ → P₁ f) P.0̲ (_≃_.from (P₁≃P₂ f) (P.transport (λ _ → P₂ f) P.0̲ (c .property))) P.≡⟨ P.cong (_$ _≃_.from (P₁≃P₂ f) (P.transport (λ _ → P₂ f) P.0̲ (c .property))) $ P.transport-refl P.0̲ ⟩ _≃_.from (P₁≃P₂ f) (P.transport (λ _ → P₂ f) P.0̲ (c .property)) P.≡⟨ P.cong (λ g → _≃_.from (P₁≃P₂ f) (g (c .property))) $ P.transport-refl P.0̲ ⟩∎ _≃_.from (P₁≃P₂ f) (c .property) ∎ -- A preservation lemma for Coherently. -- -- The two directions of this equivalence compute the property -- fields in certain ways, see the "unit tests" below. -- -- Note that P₁ and P₂ have to target the same universe. A more -- general result is given below (Coherently-cong). Coherently-cong-≃ : {A : Type a} {P₁ P₂ : {A : Type a} → (A → B) → Type p} {step₁ : {A : Type a} (f : A → B) → P₁ f → ∥ A ∥¹ → B} {step₂ : {A : Type a} (f : A → B) → P₂ f → ∥ A ∥¹ → B} {f : A → B} → Univalence p → (P₁≃P₂ : {A : Type a} (f : A → B) → P₁ f ≃ P₂ f) → ({A : Type a} (f : A → B) (x : P₂ f) → step₁ f (_≃_.from (P₁≃P₂ f) x) ≡ step₂ f x) → Coherently P₁ step₁ f ≃ Coherently P₂ step₂ f Coherently-cong-≃ {P₁ = P₁} {P₂ = P₂} {step₁ = step₁} {step₂ = step₂} {f = f} univ P₁≃P₂ step₁≡step₂ = block λ bl → Eq.with-other-inverse (Eq.with-other-function (equiv bl) (to bl) (_↔_.from ≡↔≡ ∘ ≡to bl)) (from bl) (_↔_.from ≡↔≡ ∘ ≡from bl) where equiv : Block "Coherently-cong-≡" → Coherently P₁ step₁ f ≃ Coherently P₂ step₂ f equiv bl = _↔_.from ≃↔≃ $ PU.≡⇒≃ $ Coherently-cong-≡ bl univ P₁≃P₂ step₁≡step₂ to : Block "Coherently-cong-≡" → Coherently P₁ step₁ f → Coherently P₂ step₂ f to _ c .property = _≃_.to (P₁≃P₂ f) (c .property) to bl c .coherent = P.subst (Coherently P₂ step₂) (P.cong (step₂ f) $ to-Coherently-cong-≡-property bl univ P₁≃P₂ step₁≡step₂ c) $ _≃_.to (equiv bl) c .coherent ≡to : ∀ bl c → _≃_.to (equiv bl) c P.≡ to bl c ≡to bl c i .property = to-Coherently-cong-≡-property bl univ P₁≃P₂ step₁≡step₂ c i ≡to bl c i .coherent = lemma i where lemma : P.[ (λ i → Coherently P₂ step₂ (step₂ f (to-Coherently-cong-≡-property bl univ P₁≃P₂ step₁≡step₂ c i))) ] _≃_.to (equiv bl) c .coherent ≡ P.subst (Coherently P₂ step₂) (P.cong (step₂ f) $ to-Coherently-cong-≡-property bl univ P₁≃P₂ step₁≡step₂ c) (_≃_.to (equiv bl) c .coherent) lemma = PB._↔_.from (P.heterogeneous↔homogeneous _) P.refl from : Block "Coherently-cong-≡" → Coherently P₂ step₂ f → Coherently P₁ step₁ f from _ c .property = _≃_.from (P₁≃P₂ f) (c .property) from bl c .coherent = P.subst (Coherently P₁ step₁) (P.cong (step₁ f) $ from-Coherently-cong-≡-property bl univ P₁≃P₂ step₁≡step₂ c) $ _≃_.from (equiv bl) c .coherent ≡from : ∀ bl c → _≃_.from (equiv bl) c P.≡ from bl c ≡from bl c i .property = from-Coherently-cong-≡-property bl univ P₁≃P₂ step₁≡step₂ c i ≡from bl c i .coherent = lemma i where lemma : P.[ (λ i → Coherently P₁ step₁ (step₁ f (from-Coherently-cong-≡-property bl univ P₁≃P₂ step₁≡step₂ c i))) ] _≃_.from (equiv bl) c .coherent ≡ P.subst (Coherently P₁ step₁) (P.cong (step₁ f) $ from-Coherently-cong-≡-property bl univ P₁≃P₂ step₁≡step₂ c) (_≃_.from (equiv bl) c .coherent) lemma = PB._↔_.from (P.heterogeneous↔homogeneous _) P.refl -- Unit tests that ensure that Coherently-cong-≃ computes the -- property fields in certain ways. module _ {A : Type a} {P₁ P₂ : {A : Type a} → (A → B) → Type p} {step₁ : {A : Type a} (f : A → B) → P₁ f → ∥ A ∥¹ → B} {step₂ : {A : Type a} (f : A → B) → P₂ f → ∥ A ∥¹ → B} {f : A → B} {univ : Univalence p} {P₁≃P₂ : {A : Type a} (f : A → B) → P₁ f ≃ P₂ f} {step₁≡step₂ : {A : Type a} (f : A → B) (x : P₂ f) → step₁ f (_≃_.from (P₁≃P₂ f) x) ≡ step₂ f x} where _ : {c : Coherently P₁ step₁ f} → _≃_.to (Coherently-cong-≃ univ P₁≃P₂ step₁≡step₂) c .property ≡ _≃_.to (P₁≃P₂ f) (c .property) _ = refl _ _ : {c : Coherently P₂ step₂ f} → _≃_.from (Coherently-cong-≃ {step₁ = step₁} univ P₁≃P₂ step₁≡step₂) c .property ≡ _≃_.from (P₁≃P₂ f) (c .property) _ = refl _ -- A lemma involving Coherently and ↑. Coherently-↑ : {A : Type a} {P : {A : Type a} → (A → B) → Type p} {step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B} {f : A → B} → Coherently (↑ ℓ ∘ P) ((_∘ lower) ∘ step) f ≃ Coherently P step f Coherently-↑ {ℓ = ℓ} {P = P} {step = step} = Eq.↔→≃ to from (_↔_.from ≡↔≡ ∘ to-from) (_↔_.from ≡↔≡ ∘ from-to) where to : Coherently (↑ ℓ ∘ P) ((_∘ lower) ∘ step) f → Coherently P step f to c .property = lower (c .property) to c .coherent = to (c .coherent) from : Coherently P step f → Coherently (↑ ℓ ∘ P) ((_∘ lower) ∘ step) f from c .property = lift (c .property) from c .coherent = from (c .coherent) to-from : (c : Coherently P step f) → to (from c) P.≡ c to-from c i .property = c .property to-from c i .coherent = to-from (c .coherent) i from-to : (c : Coherently (↑ ℓ ∘ P) ((_∘ lower) ∘ step) f) → from (to c) P.≡ c from-to c i .property = c .property from-to c i .coherent = from-to (c .coherent) i -- A preservation lemma for Coherently. -- -- The two directions of this equivalence compute the property -- fields in certain ways, see the "unit tests" below. Coherently-cong : {A : Type a} {P₁ : {A : Type a} → (A → B) → Type p₁} {P₂ : {A : Type a} → (A → B) → Type p₂} {step₁ : {A : Type a} (f : A → B) → P₁ f → ∥ A ∥¹ → B} {step₂ : {A : Type a} (f : A → B) → P₂ f → ∥ A ∥¹ → B} {f : A → B} → Univalence (p₁ ⊔ p₂) → (P₁≃P₂ : {A : Type a} (f : A → B) → P₁ f ≃ P₂ f) → ({A : Type a} (f : A → B) (x : P₂ f) → step₁ f (_≃_.from (P₁≃P₂ f) x) ≡ step₂ f x) → Coherently P₁ step₁ f ≃ Coherently P₂ step₂ f Coherently-cong {p₁ = p₁} {p₂ = p₂} {P₁ = P₁} {P₂ = P₂} {step₁ = step₁} {step₂ = step₂} {f = f} univ P₁≃P₂ step₁≡step₂ = Coherently P₁ step₁ f ↝⟨ inverse Coherently-↑ ⟩ Coherently (↑ p₂ ∘ P₁) ((_∘ lower) ∘ step₁) f ↝⟨ Coherently-cong-≃ univ (λ f → ↑ p₂ (P₁ f) ↔⟨ B.↑↔ ⟩ P₁ f ↝⟨ P₁≃P₂ f ⟩ P₂ f ↔⟨ inverse B.↑↔ ⟩□ ↑ p₁ (P₂ f) □) ((_∘ lower) ∘ step₁≡step₂) ⟩ Coherently (↑ p₁ ∘ P₂) ((_∘ lower) ∘ step₂) f ↝⟨ Coherently-↑ ⟩□ Coherently P₂ step₂ f □ -- Unit tests that ensure that Coherently-cong computes the -- property fields in certain ways. module _ {A : Type a} {P₁ : {A : Type a} → (A → B) → Type p₁} {P₂ : {A : Type a} → (A → B) → Type p₂} {step₁ : {A : Type a} (f : A → B) → P₁ f → ∥ A ∥¹ → B} {step₂ : {A : Type a} (f : A → B) → P₂ f → ∥ A ∥¹ → B} {f : A → B} {univ : Univalence (p₁ ⊔ p₂)} {P₁≃P₂ : {A : Type a} (f : A → B) → P₁ f ≃ P₂ f} {step₁≡step₂ : {A : Type a} (f : A → B) (x : P₂ f) → step₁ f (_≃_.from (P₁≃P₂ f) x) ≡ step₂ f x} where _ : {c : Coherently P₁ step₁ f} → _≃_.to (Coherently-cong univ P₁≃P₂ step₁≡step₂) c .property ≡ _≃_.to (P₁≃P₂ f) (c .property) _ = refl _ _ : {c : Coherently P₂ step₂ f} → _≃_.from (Coherently-cong {step₁ = step₁} univ P₁≃P₂ step₁≡step₂) c .property ≡ _≃_.from (P₁≃P₂ f) (c .property) _ = refl _ -- Another preservation lemma for Coherently. Coherently-cong′ : {P : {A : Type a} → (A → B) → Type p} {step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B} → Univalence a → (A₁≃A₂ : A₁ ≃ A₂) → Coherently P step (f ∘ _≃_.to A₁≃A₂) ≃ Coherently P step f Coherently-cong′ {f = f} {P = P} {step = step} univ A₁≃A₂ = ≃-elim₁ univ (λ A₁≃A₂ → Coherently P step (f ∘ _≃_.to A₁≃A₂) ≃ Coherently P step f) Eq.id A₁≃A₂ ------------------------------------------------------------------------ -- Another lemma -- A "computation rule". subst-Coherently-property : ∀ {A : C → Type a} {B : Type b} {P : C → {A : Type a} → (A → B) → Type p} {step : (c : C) {A : Type a} (f : A → B) → P c f → ∥ A ∥¹ → B} {f : (c : C) → A c → B} {eq : x ≡ y} {c} → subst (λ x → Coherently (P x) (step x) (f x)) eq c .property ≡ subst (λ x → P x (f x)) eq (c .property) subst-Coherently-property {P = P} {step = step} {f = f} {eq = eq} {c = c} = elim¹ (λ eq → subst (λ x → Coherently (P x) (step x) (f x)) eq c .property ≡ subst (λ x → P x (f x)) eq (c .property)) (subst (λ x → Coherently (P x) (step x) (f x)) (refl _) c .property ≡⟨ cong property $ subst-refl _ _ ⟩ c .property ≡⟨ sym $ subst-refl _ _ ⟩∎ subst (λ x → P x (f x)) (refl _) (c .property) ∎) eq ------------------------------------------------------------------------ -- Coherently-with-restriction -- A variant of Coherently. An extra predicate Q is included, so that -- one can restrict the "f" functions (and their domains). record Coherently-with-restriction {A : Type a} {B : Type b} (P : {A : Type a} → (A → B) → Type p) (step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B) (f : A → B) (Q : {A : Type a} → (A → B) → Type q) (pres : {A : Type a} {f : A → B} {p : P f} → Q f → Q (step f p)) (q : Q f) : Type p where coinductive field property : P f coherent : Coherently-with-restriction P step (step f property) Q pres (pres q) open Coherently-with-restriction public -- Coherently P step f is equivalent to -- Coherently-with-restriction P step f Q pres q. Coherently≃Coherently-with-restriction : {P : {A : Type a} → (A → B) → Type p} {step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B} {f : A → B} {Q : {A : Type a} → (A → B) → Type q} {pres : {A : Type a} {f : A → B} {p : P f} → Q f → Q (step f p)} {q : Q f} → Coherently P step f ≃ Coherently-with-restriction P step f Q pres q Coherently≃Coherently-with-restriction {P = P} {step = step} {Q = Q} {pres = pres} = Eq.↔→≃ to (from _) (λ c → _↔_.from ≡↔≡ (to-from c)) (λ c → _↔_.from ≡↔≡ (from-to _ c)) where to : Coherently P step f → Coherently-with-restriction P step f Q pres q to c .property = c .property to c .coherent = to (c .coherent) from : ∀ q → Coherently-with-restriction P step f Q pres q → Coherently P step f from _ c .property = c .property from _ c .coherent = from _ (c .coherent) to-from : (c : Coherently-with-restriction P step f Q pres q) → to (from q c) P.≡ c to-from c i .property = c .property to-from c i .coherent = to-from (c .coherent) i from-to : ∀ q (c : Coherently P step f) → from q (to c) P.≡ c from-to _ c i .property = c .property from-to q c i .coherent = from-to (pres q) (c .coherent) i -- A container that is used to define Coherently-with-restriction′. Coherently-with-restriction-container : {B : Type b} (P : {A : Type a} → (A → B) → Type p) (step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B) → (Q : {A : Type a} → (A → B) → Type q) → ({A : Type a} {f : A → B} {p : P f} → Q f → Q (step f p)) → Container (∃ λ (A : Type a) → ∃ λ (f : A → B) → Q f) p lzero Coherently-with-restriction-container P step _ pres = λ where .Shape (_ , f , _) → P f .Position _ → ⊤ .index {o = A , f , q} {s = p} _ → ∥ A ∥¹ , step f p , pres q -- A variant of Coherently-with-restriction, defined using an indexed -- container. Coherently-with-restriction′ : {A : Type a} {B : Type b} (P : {A : Type a} → (A → B) → Type p) (step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B) → (f : A → B) → (Q : {A : Type a} → (A → B) → Type q) → ({A : Type a} {f : A → B} {p : P f} → Q f → Q (step f p)) → Q f → Type (lsuc a ⊔ b ⊔ p ⊔ q) Coherently-with-restriction′ P step f Q pres q = M (Coherently-with-restriction-container P step Q pres) (_ , f , q) -- Coherently-with-restriction P step f Q pres q is equivalent to -- Coherently-with-restriction′ P step f Q pres q. Coherently-with-restriction≃Coherently-with-restriction′ : {P : {A : Type a} → (A → B) → Type p} {step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B} {f : A → B} {Q : {A : Type a} → (A → B) → Type q} {pres : {A : Type a} {f : A → B} {p : P f} → Q f → Q (step f p)} {q : Q f} → Coherently-with-restriction P step f Q pres q ≃ Coherently-with-restriction′ P step f Q pres q Coherently-with-restriction≃Coherently-with-restriction′ {P = P} {step = step} {Q = Q} {pres = pres} = Eq.↔→≃ to (from _) (λ c → _↔_.from ≡↔≡ (to-from _ c)) (λ c → _↔_.from ≡↔≡ (from-to c)) where to : Coherently-with-restriction P step f Q pres q → Coherently-with-restriction′ P step f Q pres q to c .out-M .proj₁ = c .property to c .out-M .proj₂ _ = to (c .coherent) from : ∀ q → Coherently-with-restriction′ P step f Q pres q → Coherently-with-restriction P step f Q pres q from _ c .property = c .out-M .proj₁ from _ c .coherent = from _ (c .out-M .proj₂ _) to-from : ∀ q (c : Coherently-with-restriction′ P step f Q pres q) → to (from q c) P.≡ c to-from _ c i .out-M .proj₁ = c .out-M .proj₁ to-from q c i .out-M .proj₂ _ = to-from (pres q) (c .out-M .proj₂ _) i from-to : (c : Coherently-with-restriction P step f Q pres q) → from q (to c) P.≡ c from-to c i .property = c .property from-to c i .coherent = from-to (c .coherent) i ------------------------------------------------------------------------ -- H-levels -- I think that <NAME> suggested that one could prove that -- certain instances of Coherently have certain h-levels by using the -- result (due to Ahrens, Capriotti and Spadotti, see "Non-wellfounded -- trees in Homotopy Type Theory") that M-types for indexed containers -- have h-level n if all shapes have h-level n. The use of containers -- with "restrictions" is my idea. -- If P f has h-level n for every function f for which Q holds, then -- Coherently-with-restriction P step f Q pres q has h-level n -- (assuming univalence). H-level-Coherently-with-restriction : Univalence (lsuc a ⊔ b ⊔ p ⊔ q) → Univalence (lsuc a ⊔ b ⊔ q) → {B : Type b} {P : {A : Type a} → (A → B) → Type p} {step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B} {f : A → B} {Q : {A : Type a} → (A → B) → Type q} {pres : {A : Type a} {f : A → B} {p : P f} → Q f → Q (step f p)} {q : Q f} → ({A : Type a} {f : A → B} → Q f → H-level n (P f)) → H-level n (Coherently-with-restriction P step f Q pres q) H-level-Coherently-with-restriction {n = n} univ₁ univ₂ {B = B} {P = P} {step = step} {f = f} {Q = Q} {pres = pres} {q = q} = (∀ {A} {f : A → B} → Q f → H-level n (P f)) ↝⟨ (λ h (_ , _ , q) → h q) ⟩ (((_ , f , _) : ∃ λ A → ∃ λ (f : A → B) → Q f) → H-level n (P f)) ↝⟨ (λ h → H-level-M univ₁ univ₂ h) ⟩ H-level n (Coherently-with-restriction′ P step f Q pres q) ↝⟨ H-level-cong _ n (inverse Coherently-with-restriction≃Coherently-with-restriction′) ⟩□ H-level n (Coherently-with-restriction P step f Q pres q) □ -- If P f has h-level n, and (for any f and p) P (step f p) has -- h-level n when P f has h-level n, then Coherently P step f has -- h-level n (assuming univalence). H-level-Coherently : {B : Type b} {P : {A : Type a} → (A → B) → Type p} {step : {A : Type a} (f : A → B) → P f → ∥ A ∥¹ → B} {f : A → B} → Univalence (lsuc a ⊔ b ⊔ p) → H-level n (P f) → ({A : Type a} {f : A → B} {p : P f} → H-level n (P f) → H-level n (P (step f p))) → H-level n (Coherently P step f) H-level-Coherently {n = n} {P = P} {step = step} {f = f} univ h₁ h₂ = $⟨ H-level-Coherently-with-restriction univ univ id ⟩ H-level n (Coherently-with-restriction P step f (λ f → H-level n (P f)) h₂ h₁) ↝⟨ H-level-cong _ n (inverse Coherently≃Coherently-with-restriction) ⦂ (_ → _) ⟩□ H-level n (Coherently P step f) □ -- A variant of H-level-Coherently for type-valued functions. H-level-Coherently-→Type : {P : {A : Type a} → (A → Type f) → Type p} {step : {A : Type a} (F : A → Type f) → P F → ∥ A ∥¹ → Type f} {F : A → Type f} → Univalence (lsuc a ⊔ p ⊔ lsuc f) → Univalence (lsuc (a ⊔ f)) → ((a : A) → H-level n (F a)) → ({A : Type a} {F : A → Type f} → ((a : A) → H-level n (F a)) → H-level n (P F)) → ({A : Type a} {F : A → Type f} {p : P F} → ((a : A) → H-level n (F a)) → (a : A) → H-level n (step F p ∣ a ∣)) → H-level n (Coherently P step F) H-level-Coherently-→Type {a = a} {f = f} {n = n} {P = P} {step = step} {F = F} univ₁ univ₂ h₁ h₂ h₃ = $⟨ H-level-Coherently-with-restriction univ₁ univ₂ h₂ ⟩ H-level n (Coherently-with-restriction P step F (λ F → ∀ a → H-level n (F a)) h₃′ h₁) ↝⟨ H-level-cong _ n (inverse Coherently≃Coherently-with-restriction) ⦂ (_ → _) ⟩□ H-level n (Coherently P step F) □ where h₃′ : {A : Type a} {F : A → Type f} {p : P F} → ((a : A) → H-level n (F a)) → (a : ∥ A ∥¹) → H-level n (step F p a) h₃′ h = O.elim λ where .O.∣∣ʳ → h₃ h .O.∣∣-constantʳ _ _ → H-level-propositional ext n _ _
src/vulkan-math/vulkan-math-geometry.adb
zrmyers/VulkanAda
1
7112
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2020 <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. -------------------------------------------------------------------------------- -- -- This package provides GLSL geometry operations. -------------------------------------------------------------------------------- with Vulkan.Math.Exponential; use Vulkan.Math.Exponential; package body Vulkan.Math.Geometry is function Mag (x : in Vkm_GenFType) return Vkm_Float is magnitude : Vkm_Float := 0.0; begin for Index in x.data'Range loop magnitude := magnitude + x.data(index) * x.data(index); end loop; return Sqrt(magnitude); end Mag; ---------------------------------------------------------------------------- function Mag (x : in Vkm_GenDType) return Vkm_Double is magnitude : Vkm_Double := 0.0; begin for index in x.data'Range loop magnitude := magnitude + x.data(index) * x.data(index); end loop; return Sqrt(magnitude); end Mag; ---------------------------------------------------------------------------- function Dot (x, y : in Vkm_GenFType) return Vkm_Float is dot_product : Vkm_Float := 0.0; begin for index in x.data'Range loop dot_product := dot_product + x.data(index) * y.data(index); end loop; return dot_product; end Dot; ---------------------------------------------------------------------------- function Dot (x, y : in Vkm_GenDType) return Vkm_Double is dot_product : Vkm_Double := 0.0; begin for index in x.data'Range loop dot_product := dot_product + x.data(index) * y.data(index); end loop; return dot_product; end Dot; ---------------------------------------------------------------------------- function Cross (x, y : in Vkm_Vec3 ) return Vkm_Vec3 is cross_product : Vkm_Vec3 := Make_Vec3(0.0); begin cross_product.x(x.y*y.z - x.z * y.y) .y(x.z*y.x - x.x * y.z) .z(x.x*y.y - x.y * y.x); return cross_product; end Cross; ---------------------------------------------------------------------------- function Cross (x, y : in Vkm_Dvec3) return Vkm_Dvec3 is cross_product : Vkm_Dvec3 := Make_Dvec3(0.0); begin cross_product.x(x.y*y.z - x.z * y.y) .y(x.z*y.x - x.x * y.z) .z(x.x*y.y - x.y * y.x); return cross_product; end Cross; ---------------------------------------------------------------------------- function Refract(i, n : in Vkm_GenFType; eta : in Vkm_Float ) return Vkm_GenFType is dot_n_i : constant Vkm_Float := Dot(n, i); k : constant Vkm_Float := 1.0 - eta * eta * (1.0 - dot_n_i * dot_n_i); begin return (if k < 0.0 then GFT.Make_GenType(Last_Index => i.Last_Index, value => 0.0) else eta*i - (eta * dot_n_i + Sqrt(k)) * N); end Refract; ---------------------------------------------------------------------------- function Refract(i, n : in Vkm_GenDType; eta : in Vkm_Double ) return Vkm_GenDType is dot_n_i : constant Vkm_Double := Dot(n, i); k : constant Vkm_Double := 1.0 - eta * eta * (1.0 - dot_n_i * dot_n_i); begin return (if k < 0.0 then GDT.Make_GenType(Last_Index => i.Last_Index, value => 0.0) else eta*i - (eta * dot_n_i + Sqrt(k)) * N); end Refract; end Vulkan.Math.Geometry;
oeis/132/A132409.asm
neoneye/loda-programs
11
26237
<filename>oeis/132/A132409.asm<gh_stars>10-100 ; A132409: Ceiling(exp(n)/n^3). ; Submitted by <NAME> ; 3,1,1,1,2,2,4,6,12,23,45,95,202,439,969,2170,4917,11259,26022,60646,142406,336675,800921,1916170,4608314,11136187,27030852,65882702,161192928,395795355,975088103,2409758307,5972774016,14844843847,36991567401,92404654217,231361269280,580549857070,1459791979366,3677894794329,9283723299576,23475798260454,59464442982749,150868709081040,383366486227546,975601978774806,2486263049796353,6344704781627633,16212178365265321,41477644228696580,106244889403543042,272460173014094280,699487458306460219 mov $1,1 mov $2,1 mov $3,$0 add $0,1 mul $3,4 lpb $3 mul $1,$0 mul $2,$3 add $1,$2 div $1,$0 div $2,$0 sub $3,1 max $3,1 mov $5,$0 pow $5,3 lpe mul $1,$0 div $1,$2 add $1,1 mov $4,$5 cmp $4,0 add $5,$4 div $1,$5 mov $0,$1 add $0,1
oeis/333/A333787.asm
neoneye/loda-programs
11
175829
<filename>oeis/333/A333787.asm ; A333787: Fully multiplicative with a(2) = 2 and a(p) = p-1 for odd primes p. ; Submitted by <NAME> ; 1,2,2,4,4,4,6,8,4,8,10,8,12,12,8,16,16,8,18,16,12,20,22,16,16,24,8,24,28,16,30,32,20,32,24,16,36,36,24,32,40,24,42,40,16,44,46,32,36,32,32,48,52,16,40,48,36,56,58,32,60,60,24,64,48,40,66,64,44,48,70,32,72,72,32,72,60,48,78,64,16,80,82,48,64,84,56,80,88,32,72,88,60,92,72,64,96,72,40,64 add $0,1 mov $1,1 lpb $0 mov $3,$0 lpb $3 mov $4,$0 mov $6,$2 cmp $6,0 add $2,$6 mod $4,$2 cmp $4,0 cmp $4,0 mov $5,$2 add $2,1 cmp $5,1 max $4,$5 sub $3,$4 lpe lpb $0 dif $0,$2 sub $2,2 lpe mov $6,$2 cmp $6,0 add $2,$6 add $2,1 mul $1,$2 lpe mov $0,$1
oeis/319/A319443.asm
neoneye/loda-programs
11
103954
; A319443: Number of distinct Eisenstein primes in the factorization of n. ; Submitted by <NAME> ; 0,1,1,1,1,2,2,1,1,2,1,2,2,3,2,1,1,2,2,2,3,2,1,2,1,3,1,3,1,3,2,1,2,2,3,2,2,3,3,2,1,4,2,2,2,2,1,2,2,2,2,3,1,2,2,3,3,2,1,3,2,3,3,1,3,3,2,2,2,4,1,2,2,3,2,3,3,4,2,2,1,2,1,4,2,3,2,2,1,3,4,2,3,2,3,2,2,3,2,2 add $0,1 lpb $0 mov $3,$0 lpb $3 mov $4,$0 mov $6,$2 cmp $6,0 add $2,$6 mod $4,$2 cmp $4,0 cmp $4,0 mov $5,$2 add $2,1 cmp $5,1 max $4,$5 sub $3,$4 lpe lpb $0 dif $0,$2 lpe lpb $2 add $2,1 mod $2,3 add $7,1 lpe lpe mov $0,$7
source/options.ads
jquorning/Gauss
4
10680
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- with GNAT.Strings; with Setup; package Options is Show_Version : aliased Boolean; Show_Help : aliased Boolean; Be_Quiet : aliased Boolean; Default_Host_List_File : constant String := Setup.Get_Program_Name & ".hosts"; Default_TCP_IP_Port : constant String := "8080"; use GNAT.Strings; Web_Dir_Base : aliased String_Access := new String'(""); Host_List_File : aliased String_Access := new String'(Default_Host_List_File); TCP_IP_Port : aliased String_Access := new String'(Default_TCP_IP_Port); end Options;
programs/oeis/074/A074232.asm
neoneye/loda
22
2846
<gh_stars>10-100 ; A074232: Positive numbers that are not 3 or 6 (mod 9). ; 1,2,4,5,7,8,9,10,11,13,14,16,17,18,19,20,22,23,25,26,27,28,29,31,32,34,35,36,37,38,40,41,43,44,45,46,47,49,50,52,53,54,55,56,58,59,61,62,63,64,65,67,68,70,71,72,73,74,76,77,79,80,81,82,83,85,86,88,89,90,91 mov $2,$0 sub $0,1 add $2,1 mov $1,$2 lpb $0 sub $0,2 mov $2,$0 trn $0,1 trn $2,$0 trn $0,4 add $3,1 add $3,$2 lpe add $1,$3 mov $0,$1
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/tan.asm
jpoikela/z88dk
640
21593
<reponame>jpoikela/z88dk<filename>libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/tan.asm SECTION code_clib SECTION code_fp_math48 PUBLIC tan EXTERN cm48_sccz80_tan defc tan = cm48_sccz80_tan
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/volatile12.adb
best08618/asylo
7
27352
<reponame>best08618/asylo -- { dg-do compile } package body Volatile12 is procedure Proc (A : Arr) is begin null; end; end Volatile12;
cpu/interrupt.asm
BuzzHari/BuzzOs
0
93748
<filename>cpu/interrupt.asm [extern isr_handler] [extern irq_handler] ; Common Interrupt Service Routine code isr_common_stub: ; 1.Save CPU state pusha ; Pushes edi, esi, ebp, esp, ebx, edx, ecx, eax mov ax, ds ; Lower 16-bits of eax = ds. push eax ; Save the data segment descriptor. mov ax, 0x10 ; load the Kernel data segment descriptor. mov ds, ax mov es, ax mov fs, ax mov gs, ax ; 2. Call C handler call isr_handler ; 3. Restore State pop eax ; reload the original data segment descriptor. mov ds, ax mov es, ax mov fs, ax mov gs, ax popa add esp, 8 ; Cleans up the pushed error code and pushed ISR number iret ; Pops cs, the flags register(EFLAGS), ip from stack and resumes teh routine that was ; interrupted. ; Common IRQ code. Identiacl to ISR code except for the 'call' ; and the 'pop ebx' irq_common_stub: pusha mov ax, ds push eax mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax call irq_handler pop ebx mov ds, bx mov es, bx mov fs, bx mov gs, bx popa add esp, 8 sti iret ; ISRs global isr0 global isr1 global isr2 global isr3 global isr4 global isr5 global isr6 global isr7 global isr8 global isr9 global isr10 global isr11 global isr12 global isr13 global isr14 global isr15 global isr16 global isr17 global isr18 global isr19 global isr20 global isr21 global isr22 global isr23 global isr24 global isr25 global isr26 global isr27 global isr28 global isr29 global isr30 global isr31 ; IRQs global irq0 global irq1 global irq2 global irq3 global irq4 global irq5 global irq6 global irq7 global irq8 global irq9 global irq10 global irq11 global irq12 global irq13 global irq14 global irq15 ; We don't get any information about what iterrupt was called when our handler is run. ; We can't have just one common handler, so we write different handler for each interrupt we want ; handle. ; We do this by, pushing the interrupt number onto the stack, and call a common handler funciton. ; Some interrupts also push an error code onto the stack. We can't call a common function without ; a common stack frame, so for those that don't push error code, we push a dummy one. ; Intel Manual v3, page 188, Table 6-1. tells us that only 8, 10-14 push error codes. ; Rest would require a dummy error code. ; 0: Divide By Zero Exception isr0: push byte 0 push byte 0 jmp isr_common_stub ; 1: Debug Exception isr1: push byte 0 push byte 1 jmp isr_common_stub ; 2: Non Maskable Interrupt Exception isr2: push byte 0 push byte 2 jmp isr_common_stub ; 3: Int 3 Exception isr3: push byte 0 push byte 3 jmp isr_common_stub ; 4: INTO Exception isr4: push byte 0 push byte 4 jmp isr_common_stub ; 5: Out of Bounds Exception isr5: push byte 0 push byte 5 jmp isr_common_stub ; 6: Invalid Opcode Exception isr6: push byte 0 push byte 6 jmp isr_common_stub ; 7: Coprocessor Not Available Exception isr7: push byte 0 push byte 7 jmp isr_common_stub ; 8: Double Fault Exception (With Error Code!) isr8: push byte 8 jmp isr_common_stub ; 9: Coprocessor Segment Overrun Exception isr9: push byte 0 push byte 9 jmp isr_common_stub ; 10: Bad TSS Exception (With Error Code!) isr10: push byte 10 jmp isr_common_stub ; 11: Segment Not Present Exception (With Error Code!) isr11: push byte 11 jmp isr_common_stub ; 12: Stack Fault Exception (With Error Code!) isr12: push byte 12 jmp isr_common_stub ; 13: General Protection Fault Exception (With Error Code!) isr13: push byte 13 jmp isr_common_stub ; 14: Page Fault Exception (With Error Code!) isr14: push byte 14 jmp isr_common_stub ; 15: Reserved Exception isr15: push byte 0 push byte 15 jmp isr_common_stub ; 16: Floating Point Exception isr16: push byte 0 push byte 16 jmp isr_common_stub ; 17: Alignment Check Exception isr17: push byte 0 push byte 17 jmp isr_common_stub ; 18: Machine Check Exception isr18: push byte 0 push byte 18 jmp isr_common_stub ; 19: SIMD floating point isr19: push byte 0 push byte 19 jmp isr_common_stub ; 20: Reserved isr20: push byte 0 push byte 20 jmp isr_common_stub ; 21: Reserved isr21: push byte 0 push byte 21 jmp isr_common_stub ; 22: Reserved isr22: push byte 0 push byte 22 jmp isr_common_stub ; 23: Reserved isr23: push byte 0 push byte 23 jmp isr_common_stub ; 24: Reserved isr24: push byte 0 push byte 24 jmp isr_common_stub ; 25: Reserved isr25: push byte 0 push byte 25 jmp isr_common_stub ; 26: Reserved isr26: push byte 0 push byte 26 jmp isr_common_stub ; 27: Reserved isr27: push byte 0 push byte 27 jmp isr_common_stub ; 28: Reserved isr28: push byte 0 push byte 28 jmp isr_common_stub ; 29: Reserved isr29: push byte 0 push byte 29 jmp isr_common_stub ; 30: Reserved isr30: push byte 0 push byte 30 jmp isr_common_stub ; 31: Reserved isr31: push byte 0 push byte 31 jmp isr_common_stub ; IRQ handlers irq0: push byte 0 push byte 32 jmp irq_common_stub irq1: push byte 1 push byte 33 jmp irq_common_stub irq2: push byte 2 push byte 34 jmp irq_common_stub irq3: push byte 3 push byte 35 jmp irq_common_stub irq4: push byte 4 push byte 36 jmp irq_common_stub irq5: push byte 5 push byte 37 jmp irq_common_stub irq6: push byte 6 push byte 38 jmp irq_common_stub irq7: push byte 7 push byte 39 jmp irq_common_stub irq8: push byte 8 push byte 40 jmp irq_common_stub irq9: push byte 9 push byte 41 jmp irq_common_stub irq10: push byte 10 push byte 42 jmp irq_common_stub irq11: push byte 11 push byte 43 jmp irq_common_stub irq12: push byte 12 push byte 44 jmp irq_common_stub irq13: push byte 13 push byte 45 jmp irq_common_stub irq14: push byte 14 push byte 46 jmp irq_common_stub irq15: push byte 15 push byte 47 jmp irq_common_stub
alloy4fun_models/trashltl/models/12/F3gF7GQyte7spP3wa.als
Kaixi26/org.alloytools.alloy
0
1069
open main pred idF3gF7GQyte7spP3wa_prop13 { eventually all f:Trash | once f not in Trash } pred __repair { idF3gF7GQyte7spP3wa_prop13 } check __repair { idF3gF7GQyte7spP3wa_prop13 <=> prop13o }
system.asm
tonypdmtr/80x86
2
5907
;******************************************************************************* ; Program: SYSTEM ; Version: 1.08 (rewritten from scratch) ; Written: July 4, 1990 ; Updated: October 5, 1990 ; Author : <NAME> <<EMAIL>> ; Purpose: Display system specific information ;******************************************************************************* IDEAL %TITLE "SYSTEM ver. 1.08" MODEL SMALL STACK 1024 if1 include "dos.inc" include "bios.inc" include "kbd.inc" endif DATASEG IntFlag db 0 ; 1 if non-zero numbers already IntDblFlag db 0 ; 1 if non-zero numbers already CPUType dw 0 ; Type of CPU EMMSTRING db "EMMXXXX0" ; device name to compare to for EMS Msg1 db "SYSTEM 1.08, Copyright (c) 1990-2019",RETURN,LINEFEED db "by Tony G. Papadimitriou (",??date,")",RETURN,LINEFEED db "(Placed in the public domain)",RETURN,LINEFEED,RETURN,LINEFEED Msg1Len = $ - Msg1 Msg2 db "MS-DOS version........... " Msg2Len = $ - Msg2 Msg3 = $ Msg3Major db ? ; DOS version major db "." Msg3Minor db ?,? ; DOS version minor db RETURN,LINEFEED Msg3Len = $ - Msg3 Msg4 = $ db "Current video mode....... " Msg4VidMod db 3 dup('0') ; video mode db RETURN,LINEFEED db "Screen width............. " Msg4ScrWdt db 3 dup('0') ; screen width db " chars",RETURN,LINEFEED db "Screen length............ " Msg4ScrLen db 3 dup('0') db " lines",RETURN,LINEFEED db "Active video page........ " Msg4ActPag db 3 dup('0') ; display mode db RETURN,LINEFEED Msg4Len = $ - Msg4 Msg5 db "Disk drive installed",RETURN,LINEFEED Msg5Len = $ - Msg5 Msg6 db "Coprocessor installed",RETURN,LINEFEED Msg6Len = $ - Msg6 Msg7 db "Initial video mode....... " Msg7InMode db 3 dup('0') ; initial video mode db RETURN,LINEFEED Msg7Len = $ - Msg7 Msg8 db "Disk drives supported.... " Msg8Drives db 3 dup('0') ; disk drives attached db RETURN,LINEFEED Msg8Len = $ - Msg8 Msg9 db "DMA circuit installed",RETURN,LINEFEED Msg9Len = $ - Msg9 Msg10 db "Serial ports supported... " Msg10Ports db 3 dup('0') ; serial ports available db RETURN,LINEFEED Msg10Len = $ - Msg10 Msg11 db "Found serial printer",RETURN,LINEFEED Msg11Len = $ - Msg11 Msg12 db "Printer ports supported.. " Msg12Ports db 3 dup('0') db RETURN,LINEFEED Msg12Len = $ - Msg12 Msg13 db "Main memory.............. " Msg13Main db 5 dup('0') ; main memory in KB db " KB",RETURN,LINEFEED Msg13Len = $ - Msg13 Msg14 db "Extended memory.......... " Msg14Ext db 5 dup('0') ; extended memory in KB db " KB",RETURN,LINEFEED Msg14Len = $ - Msg14 Msg15 db "CPU...................... " Msg15Len = $ - Msg15 Msg86 db " 8086/8088",RETURN,LINEFEED Msg86Len = $ - Msg86 Msg286 db "80286",RETURN,LINEFEED Msg286Len = $ - Msg286 Msg386 db "80386",RETURN,LINEFEED Msg386Len = $ - Msg386 MsgNone db "Unknown",RETURN,LINEFEED MsgNoneLen = $ - MsgNone Msg16 db "Computer model (ID)...... " Msg16Model db ?,? ; HEX model number db " hex",RETURN,LINEFEED db "Computer submodel........ " Msg16Sub db ?,? ; HEX submodel number db " hex",RETURN,LINEFEED db "BIOS revision level...... " Msg16Rev db 3 dup('0') ; BIOS revision level db RETURN,LINEFEED Msg16Len = $ - Msg16 Msg17 db "PC Bus I/O channel",RETURN,LINEFEED Msg17Len = $ - Msg17 Msg18 db "Micro channel architecture",RETURN,LINEFEED Msg18Len = $ - Msg18 Msg19 db "EBDA allocated",RETURN,LINEFEED Msg19Len = $ - Msg19 Msg20 db "Wait for external event is supported",RETURN,LINEFEED Msg20Len = $ - Msg20 Msg21 db "Keyboard intercept called by INT 09h",RETURN,LINEFEED Msg21Len = $ - Msg21 Msg22 db "Real-time clock present",RETURN,LINEFEED Msg22Len = $ - Msg22 Msg23 db "Second interrupt chip present",RETURN,LINEFEED Msg23Len = $ - Msg23 Msg24 db "DMA channel 3 used by hard disk BIOS",RETURN,LINEFEED Msg24Len = $ - Msg24 Msg25 db " but emulated by software",RETURN,LINEFEED Msg25Len = $ - Msg25 Msg26 db "Machine is in Virtual 8086 Mode",RETURN,LINEFEED Msg26Len = $ - Msg26 Msg27 db "Expanded memory present",RETURN,LINEFEED Msg27Len = $ - Msg27 Msg28 db Bell,"Internal error in EMS software",RETURN,LINEFEED Msg28Len = $ - Msg28 Msg29 db Bell,"Malfunction in EMS hardware",RETURN,LINEFEED Msg29Len = $ - Msg29 Msg30 db Bell,"Undefined EMS function",RETURN,LINEFEED Msg30Len = $ - Msg30 Msg31 db "EMS free 16K pages....... " Msg31U db 5 dup('0') ; EMS unallocated pages db RETURN,LINEFEED db "EMS total 16K pages...... " Msg31A db 5 dup('0') ; EMS total pages db RETURN,LINEFEED Msg31Len = $ - Msg31 Msg32 db "EMS version number....... " Msg32Ver db ?,?,? ; EMS version db RETURN,LINEFEED Msg32Len = $ - Msg32 Msg33 db "Mouse driver installed",RETURN,LINEFEED Msg33Len = $ - Msg33 Msg34 db "Number of mouse buttons.. " Msg34Num db 5 dup('0') ; number of mouse buttons db RETURN,LINEFEED Msg34Len = $ - Msg34 Msg35 db "BIOS release date..... " Msg35Date db 8 dup('?') ; BIOS date db RETURN,LINEFEED Msg35Len = $ - Msg35 Msg36 db "DesqView is currently active",RETURN,LINEFEED Msg36Len = $ - Msg36 Msg37 db "DesqView version......... " Msg37Major db ? ; DV version major db "." Msg37Minor db ?,? ; DV version minor db RETURN,LINEFEED Msg37Len = $ - Msg37 BMsg1 db "IBM/AWARD BIOS",RETURN,LINEFEED BMsg1Len = $ - BMsg1 BMsg2 db "DEC BIOS",RETURN,LINEFEED BMsg2Len = $ - BMsg2 BMsg3 db "Phoenix/AMI BIOS",RETURN,LINEFEED BMsg3Len = $ - BMsg3 CODESEG P8086 ;******************************************************************************* ; Purpose: Call the various functions of the program ; Input : None ; Output : None proc Main mov ax,@data ; initialize DS mov ds,ax call ShwCprght call ShwCPU call ShwDosVer call ShwDspMode call ShwMemory call ShwConfig call DesqView mov ah,DOS_TERMINATE_EXE mov al,0 int DOS_FUNCTION endp Main ;******************************************************************************* ; Purpose: Display the program copyright message ; Input : None ; Output : None proc ShwCprght mov dx,offset Msg1 mov cx,Msg1Len call Write ret endp ShwCprght ;******************************************************************************* ; Purpose: Display the type of CPU of the machine ; Input : None ; Output : None proc ShwCPU mov dx,offset Msg15 mov cx,Msg15Len call Write call TestCPU ; AX holds type of processor mov [CPUType],ax ; save it for later use cmp ax,86 ; is it a 8086/8088? jne @@10 ; no, check next mov dx,offset Msg86 mov cx,Msg86Len call Write jmp short @@exit @@10: cmp ax,286 ; is it a 80286? jne @@20 ; no, check next mov dx,offset Msg286 mov cx,Msg286Len call Write jmp short @@exit @@20: cmp ax,386 ; is it a 80386? jne @@30 ; no, check next mov dx,offset Msg386 mov cx,Msg386Len call Write call V8086 jmp short @@exit @@30: mov dx,offset MsgNone mov cx,MsgNoneLen call Write @@exit: ret endp ShwCPU ;******************************************************************************* ; Purpose: Display the version of MS-DOS and OEM BIOS ; Input : None ; Output : None proc ShwDosVer mov dx,offset Msg2 mov cx,Msg2Len call Write mov ah,DOS_GET_DOS_VERSION int DOS_FUNCTION add al,'0' ; convert major to ASCII mov [Msg3Major],al mov al,ah ; copy AH to AL mov ah,0 ; zero high byte mov bl,10 ; divisor is 10 div bl ; divide minor version by 10 add ax,3030h ; convert both numbers to ASCII mov [Msg3Minor],al ; put first digit mov [Msg3Minor+1],ah ; put second digit mov dx,offset Msg3 mov cx,Msg3Len call Write ; OEM BIOS determination cmp bh,0 ; IBM? jne @@1 mov dx,offset BMsg1 mov cx,BMsg1Len call Write jmp short @@exit @@1: cmp bh,16h ; DEC? jne @@2 mov dx,offset BMsg2 mov cx,BMsg2Len call Write jmp short @@exit @@2: cmp bh,0FFh ; Phoenix? jne @@exit mov dx,offset BMsg3 mov cx,BMsg3Len call Write @@exit: ret endp ShwDosVer ;******************************************************************************* ; Purpose: Display the current video display mode ; Input : None ; Output : None proc ShwDspMode mov ah,INT10_GET_MODE int VIDEO_SERVICE mov di,offset Msg4VidMod call IntToStr mov al,ah mov di,offset Msg4ScrWdt call IntToStr mov al,bh mov di,offset Msg4ActPag call IntToStr push ds mov ax,40h mov ds,ax mov al,[84h] ; get screen length from BIOS data area pop ds inc al mov di,offset Msg4ScrLen call IntToStr mov dx,offset Msg4 mov cx,Msg4Len call Write ret endp ShwDspMode ;******************************************************************************* ; Purpose: Display the amounts of main and extended memory ; Input : None ; Output : None proc ShwMemory int 12h ; call BIOS memory determination mov di,offset Msg13Main call IntToStrDbl mov dx,offset Msg13 mov cx,Msg13Len call Write mov ah,88h ; call BIOS extended memory inquiry int 15h jc @@10 ; no extended, skip mov di,offset Msg14Ext call IntToStrDbl mov dx,offset Msg14 mov cx,Msg14Len call Write call TestExpanded ; check for expanded memory @@10: ret endp ShwMemory ;******************************************************************************* ; Purpose: Display the systen configuration as given by INT 11h ; Input : None ; Output : None proc ShwConfig call TestMouse ; check for mouse driver int 11h ; Call BIOS equipment determination test ax,1 ; is bit 0 set? jz @@10 ; no, skip mov dx,offset Msg5 mov cx,Msg5Len call Write @@10: test ax,2 ; is coprocessor installed? jz @@20 ; no, skip mov dx,offset Msg6 mov cx,offset Msg6Len call Write call CoTest ; a few extra tests about the 386 @@20: mov cl,3 mov bx,ax ; copy AX to BX shr bx,cl ; shift BX right 3 bits and bx,3 ; mask all but lower 2 bits push ax ; save AX mov al,bl ; argument must be in AL mov di,offset Msg7InMode call IntToStr pop ax ; restore AX mov dx,offset Msg7 mov cx,Msg7Len call Write test ax,1 ; is bit 0 set? jz @@25 ; no, skip mov cl,5 mov bx,ax ; copy AX to BX shr bx,cl ; shift BX right 5 bits and bx,3 ; mask all but lower 2 bits push ax ; save AX mov al,bl ; argument must be in AL inc al ; drives = number + 1 mov di,offset Msg8Drives call IntToStr pop ax ; restore AX mov dx,offset Msg8 mov cx,Msg8Len call Write @@25: test ax,0100h ; if 0, DMA is installed jne @@30 ; DMA not present, skip mov dx,offset Msg9 mov cx,Msg9Len call Write @@30: mov cl,8 mov bx,ax ; copy AX to BX shr bx,cl ; shift BX right 8 bits and bx,7 ; mask all but lower 3 bits push ax ; save AX mov al,bl ; argument must be in AL mov di,offset Msg10Ports call IntToStr pop ax ; restore AX mov dx,offset Msg10 mov cx,Msg10Len call Write test ax,2000h ; check for serial printer jz @@40 ; not found, skip mov dx,offset Msg11 mov cx,Msg11Len call Write @@40: mov cl,13 mov bx,ax ; copy AX to BX shr bx,cl ; shift BX right 13 bits and bx,3 ; mask all but lower 2 bits push ax ; save AX mov al,bl ; argument must be in AL mov di,offset Msg12Ports call IntToStr pop ax ; restore AX mov dx,offset Msg12 mov cx,Msg12Len call Write mov ah,0C0h ; Return System-Configuration Parms int 15h ; call BIOS function jnc @@sk1 ; call not supported by BIOS @@quit: jmp @@50 ; go to exit @@sk1: mov cx,[es:bx] ; get number of bytes that follow cmp cx,8 ; must be at least 8 jl @@quit ; if less than 8, skip next part mov al,[es:bx+2] ; get model number mov di,offset Msg16Model call HexVal mov al,[es:bx+3] ; get submodel number mov di,offset Msg16Sub call HexVal mov al,[es:bx+4] ; get BIOS revision level mov di,offset Msg16Rev call IntToStr mov dx,offset Msg16 mov cx,Msg16Len call Write ; get BIOS date push ds ; save Data Segment push es ; and Extra Segment push ds ; transfer DS pop es ; to ES mov ax,0F000h ; new segment mov ds,ax ; in DS mov si,0FFF5h ; offset within segment mov di,offset Msg35Date mov cx,8 ; 8 characters for MM/DD/YY rep movsb pop es ; restore Extra Segment pop ds ; and Data Segment mov dx,offset Msg35 mov cx,Msg35Len call Write ; end get BIOS date mov al,[es:bx+5] ; get feature information test al,00000010b ; bus type? jnz @@MicroCh mov dx,offset Msg17 mov cx,Msg17Len jmp short @@WrBus @@MicroCh: mov dx,offset Msg18 ; Micro channel architecture mov cx,Msg18Len @@WrBus: call Write test ax,00000100b ; check EBDA allocation jz @@T3 ; no, go to next test mov dx,offset Msg19 mov cx,Msg19Len call Write @@T3: test ax,00001000b ; check external event support jz @@T4 ; no, go to next test mov dx,offset Msg20 mov cx,Msg20Len call Write @@T4: test ax,00010000b ; check keyboard intercept jz @@T5 ; no, go to next test mov dx,offset Msg21 mov cx,Msg21Len call Write @@T5: test ax,00100000b ; check real-time clock presence jz @@T6 ; no, go to next test mov dx,offset Msg22 mov cx,Msg22Len call Write @@T6: test ax,01000000b ; check second interrupt chip jz @@T7 ; no, go to next test mov dx,offset Msg23 mov cx,Msg23Len call Write @@T7: test ax,10000000b ; check DMA channel 3 usage jz @@50 ; no, exit tests mov dx,offset Msg24 mov cx,Msg24Len call Write @@50: ret endp ShwConfig ;******************************************************************************* ; Purpose: If EMS is present, show information about it ; Input : None ; Output : None proc TestExpanded INT67_GET_PAGE_COUNT = 42h INT67_GET_VERSION = 46h mov ah,DOS_GET_VECTOR mov al,LIM_SERVICE int DOS_FUNCTION mov cx,8 ; compare all 8 characters of EMS name mov di,10 ; set up destination index mov si,offset EMMSTRING ; point to comparison string cld ; make sure direction is upward repe cmpsb jcxz @@001 ; if all 8 bytes compare, found jmp short @@exit ; else, get out @@001: mov dx,offset Msg27 mov cx,Msg27Len call Write mov ah,INT67_GET_PAGE_COUNT int LIM_SERVICE cmp ah,0 ; do we have errors? je @@CONT ; no, continue call Errors jmp short @@exit @@CONT: mov ax,bx ; unallocated pages mov di,offset Msg31U call IntToStrDbl mov ax,dx ; total EMS pages mov di,offset Msg31A call IntToStrDbl mov dx,offset Msg31 mov cx,Msg31Len call Write mov ah,INT67_GET_VERSION int LIM_SERVICE cmp ah,0 ; do we have errors? je @@CONT1 ; no, continue call Errors jmp short @@exit @@CONT1: mov di,offset Msg32Ver call HexVal mov al,[Msg32Ver+1] mov [Msg32Ver+2],al mov [Msg32Ver+1],'.' mov dx,offset Msg32 mov cx,Msg32Len call Write @@exit: ret Errors: cmp ah,80h ; internal error? jne @@E1 ; no, check next mov dx,offset Msg28 mov cx,Msg28Len call Write @@E1: cmp ah,81h ; hardware malfunction? jne @@E2 ; no, check next mov dx,offset Msg29 mov cx,Msg29Len call Write @@E2: cmp ah,84h ; undefined function? jne @@Done ; no, exit mov dx,offset Msg30 mov cx,Msg30Len call Write @@Done: ret endp TestExpanded ;******************************************************************************* ; Purpose: If mouse is present, show information about it ; Input : None ; Output : None proc TestMouse MOUSE_DEVICE = 33h INT33_GET_MOUSE_PARMS = 0 mov ax,INT33_GET_MOUSE_PARMS int MOUSE_DEVICE cmp ax,0 ; is driver installed? je @@exit ; no, get out mov dx,offset Msg33 mov cx,Msg33Len call Write mov di,offset Msg34Num mov ax,bx call IntToStrDbl mov dx,offset Msg34 mov cx,Msg34Len call Write @@exit: ret endp TestMouse ;******************************************************************************* ; Purpose: Determine whether DesqView is loaded ; Input : None ; Output : None proc DesqView mov cx,'DE' ; check for the presence of DV mov dx,'SQ' mov ax,2B01h int DOS_FUNCTION cmp al,0FFh ; if invalid not in DV je @@exit ; so, exit routine mov dx,offset Msg36 mov cx,Msg36Len call Write mov ax,bx ; get DV version in AX add ah,'0' ; convert major to ASCII mov [Msg37Major],ah mov ah,0 ; zero high byte mov bl,10 ; divisor is 10 div bl ; divide minor version by 10 add ax,3030h ; convert both numbers to ASCII mov [Msg37Minor],al ; put first digit mov [Msg37Minor+1],ah ; put second digit mov dx,offset Msg37 mov cx,Msg37Len call Write @@exit: ret endp DesqView ;******************************************************************************* ; Purpose: Write a string to standard output ; Input : DS:DX points to string to print ; : CX holds number of characters to print ; Output : none proc Write push ax ; save registers push bx mov ah,DOS_WRITE_TO_HANDLE mov bx,STDOUT int DOS_FUNCTION pop bx ; restore registers pop ax ret endp Write ;******************************************************************************* ; Purpose: Convert a byte value to an ASCII string ; Input : AL holds number to convert (0-255) ; : DS:DI points to a 3-byte string space ; Output : Nothing proc IntToStr push ax ; save registers push bx push cx push di mov [IntFlag],0 ; initialize flag mov cx,3 ; initialize counter mov ah,0 ; zero high byte mov bh,100 ; starting value to divide @@10: div bh add al,'0' ; convert quotient to ASCII cmp cx,1 ; is this the last digit? je @@11 ; yes, continue cmp al,'0' ; is the digit a '0'? jne @@101 ; no, go on cmp [IntFlag],1 ; is flag set? je @@11 ; yes, go on mov al,SPACE ; yes, make it a SPACE jmp short @@11 ; go on @@101: mov [IntFlag],1 ; set flag @@11: mov [di],al ; put it in string inc di ; point to next character push ax ; save remainder mov ah,0 ; zero high AX mov al,bh ; get divisor mov bh,10 ; get local divisor div bh ; divide by 10 mov bh,al ; get quotient in BH pop ax ; restore remainder mov al,ah ; continue with remainder mov ah,0 ; zero high byte loop @@10 pop di ; pop registers pop cx pop bx pop ax ret endp IntToStr ;******************************************************************************* ; Purpose: Convert a word value to an ASCII string ; Input : AX holds number to convert (0-65535) ; : DS:DI points to a 5-byte string space ; Output : Nothing proc IntToStrDbl push ax ; save registers push bx push cx push dx push di mov [IntDblFlag],0 ; initialize flag mov cx,5 ; initialize counter mov dx,0 ; zero high word mov bx,10000 ; starting value to divide @@10: div bx add al,'0' ; convert quotient to ASCII cmp cx,1 ; is this the last digit? je @@11 ; yes, continue cmp al,'0' ; is the digit a '0'? jne @@101 ; no, go on cmp [IntDblFlag],1 ; is flag set? je @@11 ; yes, go on mov al,SPACE ; yes, make it a SPACE jmp short @@11 ; go on @@101: mov [IntDblFlag],1 ; set flag @@11: mov [di],al ; put it in string inc di ; point to next character push dx ; save remainder mov dx,0 ; zero high AX mov ax,bx ; get divisor mov bx,10 ; get local divisor div bx ; divide by 10 mov bx,ax ; get quotient in BH pop dx ; restore remainder mov ax,dx ; continue with remainder mov dx,0 ; zero high byte loop @@10 pop di ; pop registers pop dx pop cx pop bx pop ax ret endp IntToStrDbl ;******************************************************************************* ; Purpose: Convert a binary number to a 2-byte ASCII hex string ; Input : DS:DI points to 2-byte string ; : AL holds the number ; Output : None proc HexVal push ax ; save registers push di mov [di+1],al ; save number and al,0f0h ; reset LSNibble shr al,1 ; shift MSN to LSN shr al,1 shr al,1 shr al,1 call @@000 ; convert to ASCII character mov [di],al ; save it in string inc di ; increment buffer pointer mov al,[di] ; get next value and al,0fh ; reset MSNibble call @@000 ; convert to ASCII character mov [di],al ; save it in string pop di ; restore registers pop ax ret ; return to caller @@000: cmp al,9 ; is character >9? ja @@001 ; yes, it is A-F add al,'0' ; else, convert to ASCII ret @@001: sub al,0ah ; if A-F, subtract 10 add al,'A' ; and convert to ASCII letter ret endp HexVal P386 ;******************************************************************************* ; Purpose: Return a unique value indicating the type of CPU used ; Input : None ; Output : AX holds 86, 286, or 386 depending on processor used proc TestCPU push sp ; start checks pop ax cmp sp,ax je @@286 mov ax,86 ; CPU is an 8086 or equivalent ret @@286: pushf pop ax or ax,4000H push ax popf pushf pop ax test ax,4000H jnz @@386 mov ax,286 ; CPU is an 80286 or equivalent ret @@386: mov ax,386 ; CPU is an 80386 or equivalent @@exit: ret endp TestCPU ;******************************************************************************* ; Purpose: Check whether in Virtual 8086 mode ; Input : None ; Output : None proc V8086 smsw ax ; store machine status word in AX test al,1 jz @@exit ; not in virtual mode mov dx,offset Msg26 mov cx,Msg26Len call Write @@exit: ret endp V8086 ;******************************************************************************* ; Purpose: Display information specific to the 386 processor environment ; Input : None ; Output : None proc CoTest cmp [CPUType],386 ; is the CPU a 386 or higher? jl @@exit ; no, exit routine mov eax,cr0 ; get control register of 386 machines test eax,4h ; check emulator bit jz @@exit ; no emulation mov dx,offset Msg25 mov cx,Msg25Len call Write @@exit: ret endp CoTest end main
src/Data/PropFormula/Views.agda
jonaprieto/agda-prop
13
8029
<filename>src/Data/PropFormula/Views.agda ------------------------------------------------------------------------------ -- Agda-Prop Library. -- Useful views. ------------------------------------------------------------------------------ open import Data.Nat using (ℕ) module Data.PropFormula.Views (n : ℕ) where ------------------------------------------------------------------------------ open import Data.PropFormula.Syntax n ------------------------------------------------------------------------------ data nView : PropFormula → Set where conj : (φ₁ φ₂ : PropFormula) → nView (φ₁ ∧ φ₂) disj : (φ₁ φ₂ : PropFormula) → nView (φ₁ ∨ φ₂) impl : (φ₁ φ₂ : PropFormula) → nView (φ₁ ⊃ φ₂) biimpl : (φ₁ φ₂ : PropFormula) → nView (φ₁ ⇔ φ₂) nconj : (φ₁ φ₂ : PropFormula) → nView (¬ (φ₁ ∧ φ₂)) ndisj : (φ₁ φ₂ : PropFormula) → nView (¬ (φ₁ ∨ φ₂)) nneg : (φ₁ : PropFormula) → nView (¬ ¬ φ₁) nimpl : (φ₁ φ₂ : PropFormula) → nView (¬ (φ₁ ⊃ φ₂)) nbiim : (φ₁ φ₂ : PropFormula) → nView (¬ (φ₁ ⇔ φ₂)) ntop : nView (¬ ⊤) nbot : nView (¬ ⊥) other : (φ₁ : PropFormula) → nView φ₁ n-view : (φ : PropFormula) → nView φ n-view (φ₁ ∧ φ₂) = conj _ _ n-view (φ₁ ∨ φ₂) = disj _ _ n-view (φ₁ ⊃ φ₂) = impl _ _ n-view (φ₁ ⇔ φ₂) = biimpl _ _ n-view (¬ (φ₁ ∧ φ₂)) = nconj _ _ n-view (¬ (φ₁ ∨ φ₂)) = ndisj _ _ n-view (¬ (φ₁ ⊃ φ₂)) = nimpl _ _ n-view (¬ (φ₁ ⇔ φ₂)) = nbiim _ _ n-view (¬ (¬ φ₁)) = nneg _ n-view (¬ ⊤) = ntop n-view (¬ ⊥) = nbot n-view φ₁ = other _ data ConjView : PropFormula → Set where conj : (φ₁ φ₂ : PropFormula) → ConjView (φ₁ ∧ φ₂) other : (φ : PropFormula) → ConjView φ conj-view : (φ : PropFormula) → ConjView φ conj-view (φ₁ ∧ φ₂) = conj _ _ conj-view φ = other _ data DisjView : PropFormula → Set where disj : (φ₁ φ₂ : PropFormula) → DisjView (φ₁ ∨ φ₂) other : (φ : PropFormula) → DisjView φ disj-view : (φ : PropFormula) → DisjView φ disj-view (φ₁ ∨ φ₂) = disj _ _ disj-view φ = other _ data dView : PropFormula → Set where conj : (φ₁ φ₂ : PropFormula) → dView (φ₁ ∧ φ₂) disj : (φ₁ φ₂ : PropFormula) → dView (φ₁ ∨ φ₂) other : (φ : PropFormula) → dView φ d-view : (φ : PropFormula) → dView φ d-view (φ₁ ∧ φ₂) = conj _ _ d-view (φ₁ ∨ φ₂) = disj _ _ d-view φ = other _ data dViewAux : PropFormula → Set where case₁ : (φ₁ φ₂ φ₃ : PropFormula) → dViewAux ((φ₁ ∨ φ₂) ∧ φ₃) case₂ : (φ₁ φ₂ φ₃ : PropFormula) → dViewAux (φ₁ ∧ (φ₂ ∨ φ₃)) other : (φ : PropFormula) → dViewAux φ d-view-aux : (φ : PropFormula) → dViewAux φ d-view-aux ((φ₁ ∨ φ₂) ∧ φ₃) = case₁ _ _ _ d-view-aux (φ₁ ∧ (φ₂ ∨ φ₃)) = case₂ _ _ _ d-view-aux φ = other _ data cViewAux : PropFormula → Set where case₁ : (φ₁ φ₂ φ₃ : PropFormula) → cViewAux ((φ₁ ∧ φ₂) ∨ φ₃) case₂ : (φ₁ φ₂ φ₃ : PropFormula) → cViewAux (φ₁ ∨ (φ₂ ∧ φ₃)) other : (φ : PropFormula) → cViewAux φ c-view-aux : (φ : PropFormula) → cViewAux φ c-view-aux ((φ ∧ ψ) ∨ φ₃) = case₁ _ _ _ c-view-aux (φ ∨ (ψ ∧ φ₃)) = case₂ _ _ _ c-view-aux φ = other _ data ImplView : PropFormula → Set where impl : (φ₁ φ₂ : PropFormula) → ImplView (φ₁ ⊃ φ₂) other : (φ : PropFormula) → ImplView φ impl-view : (φ : PropFormula) → ImplView φ impl-view (φ₁ ⊃ φ₂) = impl _ _ impl-view φ = other _ data BiimplView : PropFormula → Set where biimpl : (φ₁ φ₂ : PropFormula) → BiimplView (φ₁ ⇔ φ₂) other : (φ : PropFormula) → BiimplView φ biimpl-view : (φ : PropFormula) → BiimplView φ biimpl-view (φ₁ ⇔ φ₂) = biimpl _ _ biimpl-view φ = other _ data NegView : PropFormula → Set where neg : (φ : PropFormula) → NegView (¬ φ) pos : (φ : PropFormula) → NegView φ neg-view : (φ : PropFormula) → NegView φ neg-view (¬ φ) = neg _ neg-view φ = pos _ data PushNegView : PropFormula → Set where yes : (φ : PropFormula) → PushNegView φ no-∧ : (φ₁ φ₂ : PropFormula) → PushNegView (φ₁ ∧ φ₂) no-∨ : (φ₁ φ₂ : PropFormula) → PushNegView (φ₁ ∨ φ₂) no : (φ : PropFormula) → PushNegView φ push-neg-view : (φ : PropFormula) → PushNegView φ push-neg-view φ with n-view φ push-neg-view .(φ₁ ∧ φ₂) | conj φ₁ φ₂ = no-∧ _ _ push-neg-view .(φ₁ ∨ φ₂) | disj φ₁ φ₂ = no-∨ _ _ push-neg-view .(φ₁ ⊃ φ₂) | impl φ₁ φ₂ = yes _ push-neg-view .(φ₁ ⇔ φ₂) | biimpl φ₁ φ₂ = yes _ push-neg-view .(¬ (φ₁ ∧ φ₂)) | nconj φ₁ φ₂ = yes _ push-neg-view .(¬ (φ₁ ∨ φ₂)) | ndisj φ₁ φ₂ = yes _ push-neg-view .(¬ (¬ φ₁)) | nneg φ₁ = yes _ push-neg-view .(¬ (φ₁ ⊃ φ₂)) | nimpl φ₁ φ₂ = yes _ push-neg-view .(¬ (φ₁ ⇔ φ₂)) | nbiim φ₁ φ₂ = yes _ push-neg-view .(¬ ⊤) | ntop = yes _ push-neg-view .(¬ ⊥) | nbot = yes _ push-neg-view φ | other .φ = no _ data LiteralView : PropFormula → Set where yes : (φ : PropFormula) → LiteralView φ no : (φ : PropFormula) → LiteralView φ literal-view : (φ : PropFormula) → LiteralView φ literal-view φ with n-view φ literal-view .(φ₁ ∧ φ₂) | conj φ₁ φ₂ = no _ literal-view .(φ₁ ∨ φ₂) | disj φ₁ φ₂ = no _ literal-view .(φ₁ ⊃ φ₂) | impl φ₁ φ₂ = no _ literal-view .(φ₁ ⇔ φ₂) | biimpl φ₁ φ₂ = no _ literal-view .(¬ (φ₁ ∧ φ₂)) | nconj φ₁ φ₂ = no _ literal-view .(¬ (φ₁ ∨ φ₂)) | ndisj φ₁ φ₂ = no _ literal-view .(¬ (¬ φ₁)) | nneg φ₁ = no _ literal-view .(¬ (φ₁ ⊃ φ₂)) | nimpl φ₁ φ₂ = no _ literal-view .(¬ (φ₁ ⇔ φ₂)) | nbiim φ₁ φ₂ = no _ literal-view .(¬ ⊤) | ntop = yes _ literal-view .(¬ ⊥) | nbot = yes _ literal-view φ | other _ = yes _
ffight/lcs/boss/A1.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
6
96426
copyright zengfr site:http://github.com/zengfr/romhack 03D440 clr.b ($a1,A6) 03D444 clr.b ($a4,A6) copyright zengfr site:http://github.com/zengfr/romhack
programs/oeis/016/A016784.asm
neoneye/loda
22
167460
<gh_stars>10-100 ; A016784: a(n) = (3*n+1)^8. ; 1,65536,5764801,100000000,815730721,4294967296,16983563041,54875873536,152587890625,377801998336,852891037441,1785793904896,3512479453921,6553600000000,11688200277601,20047612231936,33232930569601,53459728531456,83733937890625,128063081718016,191707312997281,281474976710656,406067677556641,576480100000000,806460091894081,1113034787454976,1517108809906561,2044140858654976,2724905250390625,3596345248055296,4702525276151521,6095689385410816,7837433594376961,10000000000000000,12667700813876161,15938480745308416,19925626416901921,24759631762948096,30590228625390625,37588592026706176,45949729863572161,55895067029733376,67675234241018881,81573072100000000,97906861202319841,117033789351264256,139353667211683681,165312903998914816,195408755062890625,230193853492166656,270281038127131201,316348490636206336,369145194573386401,429496729600000000,498311414318121121,576586811427594496,665416609183179841,765997893392859136,879638824462890625,1007766734259732736,1151936657823500641,1313840315232157696,1495315559180183521,1698356304100000000,1925122952918976001,2177953337809371136,2459374191553118401,2772113166407885056,3119111417625390625,3503536769037500416,3928797478390152481,4398556620369715456,4916747105530914241,5487587353600000000,6115597639891380481,6805617133840466176,7562821648920027361,8392742123471896576,9301283852250390625,10294746488738365696,11379844838561358721,12563730464589807616,13854014124583882561,15258789062500000000,16786655174842630561,18446744073709551616,20248745068443234721,22202932088065597696,24320191566937890625,26612051316352024576,29090710405024191361,31769070071726162176,34660765693554192481,37780199833600000000,41142576392052822241,44763935885026099456,48661191875666868481,52852168582370492416,57355639689187890625,62191368383776973056 mul $0,3 add $0,1 pow $0,8
Logic.agda
cantsin/agda-experiments
0
3625
import Either open import Boolean module Logic where id : ∀ { A : Set } → A → A id x = x Rel : Set → Set₁ Rel X = X → X → Set Decidable : ∀ { X } → Rel X → Set Decidable R = ∀ x y → Either (R x y) (¬ (R x y)) where open Either modusPonens : { P Q : Set } → ( P → Q ) → P → Q modusPonens = id
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstclock_h.ads
persan/A-gst
1
18197
<gh_stars>1-10 pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h; with glib; with glib.Values; with System; with System; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstobject_h; -- limited -- with GStreamer.GST_Low_Level.glib_2_0_glib_gthread_h; -- limited with GStreamer.GST_Low_Level.glib_2_0_glib_glist_h; with glib; package GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h is -- unsupported macro: GST_TYPE_CLOCK (gst_clock_get_type ()) -- arg-macro: function GST_CLOCK (clock) -- return G_TYPE_CHECK_INSTANCE_CAST ((clock), GST_TYPE_CLOCK, GstClock); -- arg-macro: function GST_IS_CLOCK (clock) -- return G_TYPE_CHECK_INSTANCE_TYPE ((clock), GST_TYPE_CLOCK); -- arg-macro: function GST_CLOCK_CLASS (cclass) -- return G_TYPE_CHECK_CLASS_CAST ((cclass), GST_TYPE_CLOCK, GstClockClass); -- arg-macro: function GST_IS_CLOCK_CLASS (cclass) -- return G_TYPE_CHECK_CLASS_TYPE ((cclass), GST_TYPE_CLOCK); -- arg-macro: function GST_CLOCK_GET_CLASS (clock) -- return G_TYPE_INSTANCE_GET_CLASS ((clock), GST_TYPE_CLOCK, GstClockClass); -- arg-macro: function GST_CLOCK_CAST (clock) -- return (GstClock*)(clock); -- arg-macro: procedure GST_CLOCK_SLAVE_LOCK (clock) -- g_mutex_lock (GST_CLOCK_CAST (clock).slave_lock) -- arg-macro: procedure GST_CLOCK_SLAVE_UNLOCK (clock) -- g_mutex_unlock (GST_CLOCK_CAST (clock).slave_lock) -- unsupported macro: GST_TYPE_CLOCK_TIME G_TYPE_UINT64 -- unsupported macro: GST_CLOCK_TIME_NONE ((GstClockTime) -1) -- arg-macro: function GST_CLOCK_TIME_IS_VALID (time) -- return ((GstClockTime)(time)) /= GST_CLOCK_TIME_NONE; -- unsupported macro: GST_SECOND (G_USEC_PER_SEC * G_GINT64_CONSTANT (1000)) -- unsupported macro: GST_MSECOND (GST_SECOND / G_GINT64_CONSTANT (1000)) -- unsupported macro: GST_USECOND (GST_SECOND / G_GINT64_CONSTANT (1000000)) -- unsupported macro: GST_NSECOND (GST_SECOND / G_GINT64_CONSTANT (1000000000)) -- arg-macro: function GST_TIME_AS_SECONDS (time) -- return (time) / GST_SECOND; -- arg-macro: function GST_TIME_AS_MSECONDS (time) -- return (time) / G_GINT64_CONSTANT (1000000); -- arg-macro: function GST_TIME_AS_USECONDS (time) -- return (time) / G_GINT64_CONSTANT (1000); -- arg-macro: function GST_TIME_AS_NSECONDS (time) -- return time; -- arg-macro: function GST_CLOCK_DIFF (s, e) -- return GstClockTimeDiff)((e) - (s); -- arg-macro: function GST_TIMEVAL_TO_TIME (tv) -- return GstClockTime)((tv).tv_sec * GST_SECOND + (tv).tv_usec * GST_USECOND; -- arg-macro: procedure GST_TIME_TO_TIMEVAL (t, tv) -- G_STMT_START { (tv).tv_sec := ((GstClockTime) (t)) / GST_SECOND; (tv).tv_usec := (((GstClockTime) (t)) - ((GstClockTime) (tv).tv_sec) * GST_SECOND) / GST_USECOND; } G_STMT_END -- arg-macro: function GST_TIMESPEC_TO_TIME (ts) -- return GstClockTime)((ts).tv_sec * GST_SECOND + (ts).tv_nsec * GST_NSECOND; -- arg-macro: procedure GST_TIME_TO_TIMESPEC (t, ts) -- G_STMT_START { (ts).tv_sec := (t) / GST_SECOND; (ts).tv_nsec := ((t) - (ts).tv_sec * GST_SECOND) / GST_NSECOND; } G_STMT_END GST_TIME_FORMAT : aliased constant String := "u:%02u:%02u.%09u" & ASCII.NUL; -- gst/gstclock.h:230 -- arg-macro: procedure GST_TIME_ARGS (t) -- GST_CLOCK_TIME_IS_VALID (t) ? (guint) (((GstClockTime)(t)) / (GST_SECOND * 60 * 60)) : 99, GST_CLOCK_TIME_IS_VALID (t) ? (guint) ((((GstClockTime)(t)) / (GST_SECOND * 60)) mod 60) : 99, GST_CLOCK_TIME_IS_VALID (t) ? (guint) ((((GstClockTime)(t)) / GST_SECOND) mod 60) : 99, GST_CLOCK_TIME_IS_VALID (t) ? (guint) (((GstClockTime)(t)) mod GST_SECOND) : 999999999 GST_CLOCK_ENTRY_TRACE_NAME : aliased constant String := "GstClockEntry" & ASCII.NUL; -- gst/gstclock.h:253 -- arg-macro: function GST_CLOCK_ENTRY (entry) -- return (GstClockEntry *)(entry); -- arg-macro: function GST_CLOCK_ENTRY_CLOCK (entry) -- return (entry).clock; -- arg-macro: function GST_CLOCK_ENTRY_TYPE (entry) -- return (entry).type; -- arg-macro: function GST_CLOCK_ENTRY_TIME (entry) -- return (entry).time; -- arg-macro: function GST_CLOCK_ENTRY_INTERVAL (entry) -- return (entry).interval; -- arg-macro: function GST_CLOCK_ENTRY_STATUS (entry) -- return (entry).status; -- arg-macro: procedure GST_CLOCK_FLAGS (clock) -- GST_OBJECT_FLAGS(clock) -- arg-macro: function GST_CLOCK_COND (clock) -- return GST_CLOCK_CAST(clock).entries_changed; -- arg-macro: procedure GST_CLOCK_WAIT (clock) -- g_cond_wait(GST_CLOCK_COND(clock),GST_OBJECT_GET_LOCK(clock)) -- arg-macro: procedure GST_CLOCK_TIMED_WAIT (clock, tv) -- g_cond_timed_wait(GST_CLOCK_COND(clock),GST_OBJECT_GET_LOCK(clock),tv) -- arg-macro: procedure GST_CLOCK_BROADCAST (clock) -- g_cond_broadcast(GST_CLOCK_COND(clock)) -- GStreamer -- * Copyright (C) 1999,2000 <NAME> <<EMAIL>> -- * 2000 <NAME> <<EMAIL>> -- * 2005 <NAME> <<EMAIL>> -- * -- * gstclock.h: Header for clock subsystem -- * -- * 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. -- -- --- standard type macros --- --* -- * GstClockTime: -- * -- * A datatype to hold a time, measured in nanoseconds. -- subtype GstClockTime is GLIB.guint64; -- gst/gstclock.h:48 --* -- * GST_TYPE_CLOCK_TIME: -- * -- * The #GType of a #GstClockTime. -- --* -- * GstClockTimeDiff: -- * -- * A datatype to hold a time difference, measured in nanoseconds. -- subtype GstClockTimeDiff is GLIB.gint64; -- gst/gstclock.h:62 --* -- * GstClockID: -- * -- * A datatype to hold the handle to an outstanding sync or async clock callback. -- subtype GstClockID is System.Address; -- gst/gstclock.h:68 --* -- * GST_CLOCK_TIME_NONE: -- * -- * Constant to define an undefined clock time. -- --* -- * GST_CLOCK_TIME_IS_VALID: -- * @time: clock time to validate -- * -- * Tests if a given #GstClockTime represents a valid defined time. -- -- FIXME: still need to explicitly force types on the defines below --* -- * GST_SECOND: -- * -- * Constant that defines one GStreamer second. -- * -- * Value: 1000000000 -- * -- --* -- * GST_MSECOND: -- * -- * Constant that defines one GStreamer millisecond. -- * -- * Value: 1000000 -- * -- --* -- * GST_USECOND: -- * -- * Constant that defines one GStreamer microsecond. -- * -- * Value: 1000 -- * -- --* -- * GST_NSECOND: -- * -- * Constant that defines one GStreamer nanosecond -- * -- * Value: 1 -- * -- --* -- * GST_TIME_AS_SECONDS: -- * @time: the time -- * -- * Convert a #GstClockTime to seconds. -- * -- * Since: 0.10.16 -- --* -- * GST_TIME_AS_MSECONDS: -- * @time: the time -- * -- * Convert a #GstClockTime to milliseconds (1/1000 of a second). -- * -- * Since: 0.10.16 -- --* -- * GST_TIME_AS_USECONDS: -- * @time: the time -- * -- * Convert a #GstClockTime to microseconds (1/1000000 of a second). -- * -- * Since: 0.10.16 -- --* -- * GST_TIME_AS_NSECONDS: -- * @time: the time -- * -- * Convert a #GstClockTime to nanoseconds (1/1000000000 of a second). -- * -- * Since: 0.10.16 -- --* -- * GST_CLOCK_DIFF: -- * @s: the first time -- * @e: the second time -- * -- * Calculate a difference between two clock times as a #GstClockTimeDiff. -- * The difference is calculated as @e - @s. -- --* -- * GST_TIMEVAL_TO_TIME: -- * @tv: the timeval to convert -- * -- * Convert a #GTimeVal to a #GstClockTime. -- --* -- * GST_TIME_TO_TIMEVAL: -- * @t: The #GstClockTime to convert -- * @tv: The target timeval -- * -- * Convert a #GstClockTime to a #GTimeVal -- * -- * <note>on 32-bit systems, a timeval has a range of only 2^32 - 1 seconds, -- * which is about 68 years. Expect trouble if you want to schedule stuff -- * in your pipeline for 2038.</note> -- --* -- * GST_TIMESPEC_TO_TIME: -- * @ts: the timespec to convert -- * -- * Convert a struct timespec (see man pselect) to a #GstClockTime. -- --* -- * GST_TIME_TO_TIMESPEC: -- * @t: The #GstClockTime to convert -- * @ts: The target timespec -- * -- * Convert a #GstClockTime to a struct timespec (see man pselect) -- -- timestamp debugging macros --* -- * GST_TIME_FORMAT: -- * -- * A string that can be used in printf-like format strings to display a -- * #GstClockTime value in h:m:s format. Use GST_TIME_ARGS() to construct -- * the matching arguments. -- * -- * Example: -- * |[ -- * printf("%" GST_TIME_FORMAT "\n", GST_TIME_ARGS(ts)); -- * ]| -- --* -- * GST_TIME_ARGS: -- * @t: a #GstClockTime -- * -- * Format @t for the #GST_TIME_FORMAT format string. Note: @t will be -- * evaluated more than once. -- --* -- * GST_CLOCK_ENTRY_TRACE_NAME: -- * -- * The name used for tracing clock entry allocations. -- type GstClockEntry; --subtype GstClockEntry is u_GstClockEntry; -- gst/gstclock.h:255 type GstClock; type u_GstClock_u_gst_reserved_array is array (0 .. 3) of aliased GstClockTime; type anon_171 (discr : unsigned := 0) is record case discr is when 0 => priv : System.Address; -- gst/gstclock.h:479 when others => u_gst_reserved : aliased u_GstClock_u_gst_reserved_array; -- gst/gstclock.h:480 end case; end record; pragma Convention (C_Pass_By_Copy, anon_171); pragma Unchecked_Union (anon_171);--subtype GstClock is u_GstClock; -- gst/gstclock.h:256 type GstClockClass; type u_GstClockClass_u_gst_reserved_array is array (0 .. 2) of System.Address; --subtype GstClockClass is u_GstClockClass; -- gst/gstclock.h:257 -- skipped empty struct u_GstClockPrivate -- skipped empty struct GstClockPrivate -- --- prototype for async callbacks --- --* -- * GstClockCallback: -- * @clock: The clock that triggered the callback -- * @time: The time it was triggered -- * @id: The #GstClockID that expired -- * @user_data: user data passed in the gst_clock_id_wait_async() function -- * -- * The function prototype of the callback. -- * -- * Returns: %TRUE or %FALSE (currently unused) -- type GstClockCallback is access function (arg1 : access GstClock; arg2 : GstClockTime; arg3 : GstClockID; arg4 : System.Address) return GLIB.gboolean; pragma Convention (C, GstClockCallback); -- gst/gstclock.h:272 --* -- * GstClockReturn: -- * @GST_CLOCK_OK: The operation succeeded. -- * @GST_CLOCK_EARLY: The operation was scheduled too late. -- * @GST_CLOCK_UNSCHEDULED: The clockID was unscheduled -- * @GST_CLOCK_BUSY: The ClockID is busy -- * @GST_CLOCK_BADTIME: A bad time was provided to a function. -- * @GST_CLOCK_ERROR: An error occurred -- * @GST_CLOCK_UNSUPPORTED: Operation is not supported -- * @GST_CLOCK_DONE: The ClockID is done waiting (Since: 0.10.32) -- * -- * The return value of a clock operation. -- type GstClockReturn is (GST_CLOCK_OK, GST_CLOCK_EARLY, GST_CLOCK_UNSCHEDULED, GST_CLOCK_BUSY, GST_CLOCK_BADTIME, GST_CLOCK_ERROR, GST_CLOCK_UNSUPPORTED, GST_CLOCK_DONE); pragma Convention (C, GstClockReturn); -- gst/gstclock.h:297 --* -- * GstClockEntryType: -- * @GST_CLOCK_ENTRY_SINGLE: a single shot timeout -- * @GST_CLOCK_ENTRY_PERIODIC: a periodic timeout request -- * -- * The type of the clock entry -- type GstClockEntryType is (GST_CLOCK_ENTRY_SINGLE, GST_CLOCK_ENTRY_PERIODIC); pragma Convention (C, GstClockEntryType); -- gst/gstclock.h:309 --* -- * GST_CLOCK_ENTRY: -- * @entry: the entry to cast -- * -- * Cast to a clock entry -- --* -- * GST_CLOCK_ENTRY_CLOCK: -- * @entry: the entry to query -- * -- * Get the owner clock of the entry -- --* -- * GST_CLOCK_ENTRY_TYPE: -- * @entry: the entry to query -- * -- * Get the type of the clock entry -- --* -- * GST_CLOCK_ENTRY_TIME: -- * @entry: the entry to query -- * -- * Get the requested time of this entry -- --* -- * GST_CLOCK_ENTRY_INTERVAL: -- * @entry: the entry to query -- * -- * Get the interval of this periodic entry -- --* -- * GST_CLOCK_ENTRY_STATUS: -- * @entry: the entry to query -- * -- * The status of the entry -- --* -- * GstClockEntry: -- * @refcount: reference counter (read-only) -- * -- * All pending timeouts or periodic notifies are converted into -- * an entry. -- * Note that GstClockEntry should be treated as an opaque structure. It must -- * not be extended or allocated using a custom allocator. -- type GstClockEntry is record refcount : aliased GLIB.gint; -- gst/gstclock.h:364 clock : access GstClock; -- gst/gstclock.h:366 c_type : aliased GstClockEntryType; -- gst/gstclock.h:367 time : aliased GstClockTime; -- gst/gstclock.h:368 interval : aliased GstClockTime; -- gst/gstclock.h:369 status : aliased GstClockReturn; -- gst/gstclock.h:370 func : GstClockCallback; -- gst/gstclock.h:371 user_data : System.Address; -- gst/gstclock.h:372 destroy_data : GStreamer.GST_Low_Level.glib_2_0_glib_gtypes_h.GDestroyNotify; -- gst/gstclock.h:373 unscheduled : aliased GLIB.gboolean; -- gst/gstclock.h:374 woken_up : aliased GLIB.gboolean; -- gst/gstclock.h:375 end record; pragma Convention (C_Pass_By_Copy, GstClockEntry); -- gst/gstclock.h:363 --< protected > --* -- * GstClockFlags: -- * @GST_CLOCK_FLAG_CAN_DO_SINGLE_SYNC: clock can do a single sync timeout request -- * @GST_CLOCK_FLAG_CAN_DO_SINGLE_ASYNC: clock can do a single async timeout request -- * @GST_CLOCK_FLAG_CAN_DO_PERIODIC_SYNC: clock can do sync periodic timeout requests -- * @GST_CLOCK_FLAG_CAN_DO_PERIODIC_ASYNC: clock can do async periodic timeout callbacks -- * @GST_CLOCK_FLAG_CAN_SET_RESOLUTION: clock's resolution can be changed -- * @GST_CLOCK_FLAG_CAN_SET_MASTER: clock can be slaved to a master clock -- * @GST_CLOCK_FLAG_LAST: subclasses can add additional flags starting from this flag -- * -- * The capabilities of this clock -- -- padding subtype GstClockFlags is unsigned; GST_CLOCK_FLAG_CAN_DO_SINGLE_SYNC : constant GstClockFlags := 16; GST_CLOCK_FLAG_CAN_DO_SINGLE_ASYNC : constant GstClockFlags := 32; GST_CLOCK_FLAG_CAN_DO_PERIODIC_SYNC : constant GstClockFlags := 64; GST_CLOCK_FLAG_CAN_DO_PERIODIC_ASYNC : constant GstClockFlags := 128; GST_CLOCK_FLAG_CAN_SET_RESOLUTION : constant GstClockFlags := 256; GST_CLOCK_FLAG_CAN_SET_MASTER : constant GstClockFlags := 512; GST_CLOCK_FLAG_LAST : constant GstClockFlags := 4096; -- gst/gstclock.h:399 --* -- * GST_CLOCK_FLAGS: -- * @clock: the clock to query -- * -- * Gets the #GstClockFlags clock flags. -- --* -- * GST_CLOCK_COND: -- * @clock: the clock to query -- * -- * Gets the #GCond that gets signalled when the entries of the clock -- * changed. -- --* -- * GST_CLOCK_WAIT: -- * @clock: the clock to wait on -- * -- * Wait on the clock until the entries changed. -- --* -- * GST_CLOCK_TIMED_WAIT: -- * @clock: the clock to wait on -- * @tv: a #GTimeVal to wait. -- * -- * Wait on the clock until the entries changed or the specified timeout -- * occurred. -- --* -- * GST_CLOCK_BROADCAST: -- * @clock: the clock to broadcast -- * -- * Signal that the entries in the clock have changed. -- --* -- * GstClock: -- * -- * #GstClock base structure. The values of this structure are -- * protected for subclasses, use the methods to use the #GstClock. -- type GstClock is record object : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstobject_h.GstObject; -- gst/gstclock.h:448 slave_lock : access GStreamer.GST_Low_Level.glib_2_0_glib_gthread_h.GMutex; -- gst/gstclock.h:450 internal_calibration : aliased GstClockTime; -- gst/gstclock.h:453 external_calibration : aliased GstClockTime; -- gst/gstclock.h:454 rate_numerator : aliased GstClockTime; -- gst/gstclock.h:455 rate_denominator : aliased GstClockTime; -- gst/gstclock.h:456 last_time : aliased GstClockTime; -- gst/gstclock.h:457 entries : access GStreamer.GST_Low_Level.glib_2_0_glib_glist_h.GList; -- gst/gstclock.h:458 entries_changed : access GStreamer.GST_Low_Level.glib_2_0_glib_gthread_h.GCond; -- gst/gstclock.h:459 resolution : aliased GstClockTime; -- gst/gstclock.h:462 stats : aliased GLIB.gboolean; -- gst/gstclock.h:463 master : access GstClock; -- gst/gstclock.h:466 filling : aliased GLIB.gboolean; -- gst/gstclock.h:469 window_size : aliased GLIB.gint; -- gst/gstclock.h:470 window_threshold : aliased GLIB.gint; -- gst/gstclock.h:471 time_index : aliased GLIB.gint; -- gst/gstclock.h:472 timeout : aliased GstClockTime; -- gst/gstclock.h:473 times : access GstClockTime; -- gst/gstclock.h:474 clockid : GstClockID; -- gst/gstclock.h:475 ABI : aliased anon_171; -- gst/gstclock.h:481 end record; pragma Convention (C_Pass_By_Copy, GstClock); -- gst/gstclock.h:447 -- order: SLAVE_LOCK, OBJECT_LOCK --< protected > -- with LOCK --< private > -- with LOCK -- for master/slave clocks -- with SLAVE_LOCK --< private > --* -- * GstClockClass: -- * @parent_class: the parent class structure -- * @change_resolution: change the resolution of the clock. Not all values might -- * be acceptable. The new resolution should be returned. -- * @get_resolution: get the resolution of the clock. -- * @get_internal_time: get the internal unadjusted time of the clock. -- * @wait: perform a blocking wait for the given #GstClockEntry. Deprecated, -- * implement @wait_jitter instead. -- * @wait_async: perform an asynchronous wait for the given #GstClockEntry. -- * @unschedule: unblock a blocking or async wait operation. -- * @wait_jitter: perform a blocking wait on the given #GstClockEntry and return -- * the jitter. (Since: 0.10.10) -- * -- * GStreamer clock class. Override the vmethods to implement the clock -- * functionality. -- type GstClockClass is record parent_class : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstobject_h.GstObjectClass; -- gst/gstclock.h:502 change_resolution : access function (arg1 : access GstClock; arg2 : GstClockTime; arg3 : GstClockTime) return GstClockTime; -- gst/gstclock.h:508 get_resolution : access function (arg1 : access GstClock) return GstClockTime; -- gst/gstclock.h:509 get_internal_time : access function (arg1 : access GstClock) return GstClockTime; -- gst/gstclock.h:511 wait : access function (arg1 : access GstClock; arg2 : access GstClockEntry) return GstClockReturn; -- gst/gstclock.h:514 wait_async : access function (arg1 : access GstClock; arg2 : access GstClockEntry) return GstClockReturn; -- gst/gstclock.h:515 unschedule : access procedure (arg1 : access GstClock; arg2 : access GstClockEntry); -- gst/gstclock.h:516 wait_jitter : access function (arg1 : access GstClock; arg2 : access GstClockEntry; arg3 : access GstClockTimeDiff) return GstClockReturn; -- gst/gstclock.h:520 u_gst_reserved : u_GstClockClass_u_gst_reserved_array; -- gst/gstclock.h:522 end record; pragma Convention (C_Pass_By_Copy, GstClockClass); -- gst/gstclock.h:501 --< public > -- vtable -- waiting on an ID -- ABI added to replace the deprecated wait --< private > function gst_clock_get_type return GLIB.GType; -- gst/gstclock.h:525 pragma Import (C, gst_clock_get_type, "gst_clock_get_type"); function gst_clock_set_resolution (clock : access GstClock; resolution : GstClockTime) return GstClockTime; -- gst/gstclock.h:527 pragma Import (C, gst_clock_set_resolution, "gst_clock_set_resolution"); function gst_clock_get_resolution (clock : access GstClock) return GstClockTime; -- gst/gstclock.h:529 pragma Import (C, gst_clock_get_resolution, "gst_clock_get_resolution"); function gst_clock_get_time (clock : access GstClock) return GstClockTime; -- gst/gstclock.h:531 pragma Import (C, gst_clock_get_time, "gst_clock_get_time"); procedure gst_clock_set_calibration (clock : access GstClock; internal : GstClockTime; external : GstClockTime; rate_num : GstClockTime; rate_denom : GstClockTime); -- gst/gstclock.h:532 pragma Import (C, gst_clock_set_calibration, "gst_clock_set_calibration"); procedure gst_clock_get_calibration (clock : access GstClock; internal : access GstClockTime; external : access GstClockTime; rate_num : access GstClockTime; rate_denom : access GstClockTime); -- gst/gstclock.h:536 pragma Import (C, gst_clock_get_calibration, "gst_clock_get_calibration"); -- master/slave clocks function gst_clock_set_master (clock : access GstClock; master : access GstClock) return GLIB.gboolean; -- gst/gstclock.h:542 pragma Import (C, gst_clock_set_master, "gst_clock_set_master"); function gst_clock_get_master (clock : access GstClock) return access GstClock; -- gst/gstclock.h:543 pragma Import (C, gst_clock_get_master, "gst_clock_get_master"); function gst_clock_add_observation (clock : access GstClock; slave : GstClockTime; master : GstClockTime; r_squared : access GLIB.gdouble) return GLIB.gboolean; -- gst/gstclock.h:544 pragma Import (C, gst_clock_add_observation, "gst_clock_add_observation"); -- getting and adjusting internal/external time function gst_clock_get_internal_time (clock : access GstClock) return GstClockTime; -- gst/gstclock.h:549 pragma Import (C, gst_clock_get_internal_time, "gst_clock_get_internal_time"); function gst_clock_adjust_unlocked (clock : access GstClock; internal : GstClockTime) return GstClockTime; -- gst/gstclock.h:550 pragma Import (C, gst_clock_adjust_unlocked, "gst_clock_adjust_unlocked"); function gst_clock_unadjust_unlocked (clock : access GstClock; external : GstClockTime) return GstClockTime; -- gst/gstclock.h:551 pragma Import (C, gst_clock_unadjust_unlocked, "gst_clock_unadjust_unlocked"); -- creating IDs that can be used to get notifications function gst_clock_new_single_shot_id (clock : access GstClock; time : GstClockTime) return GstClockID; -- gst/gstclock.h:555 pragma Import (C, gst_clock_new_single_shot_id, "gst_clock_new_single_shot_id"); function gst_clock_new_periodic_id (clock : access GstClock; start_time : GstClockTime; interval : GstClockTime) return GstClockID; -- gst/gstclock.h:557 pragma Import (C, gst_clock_new_periodic_id, "gst_clock_new_periodic_id"); -- reference counting function gst_clock_id_ref (id : GstClockID) return GstClockID; -- gst/gstclock.h:562 pragma Import (C, gst_clock_id_ref, "gst_clock_id_ref"); procedure gst_clock_id_unref (id : GstClockID); -- gst/gstclock.h:563 pragma Import (C, gst_clock_id_unref, "gst_clock_id_unref"); -- operations on IDs function gst_clock_id_compare_func (id1 : Interfaces.C.Extensions.void_ptr; id2 : Interfaces.C.Extensions.void_ptr) return GLIB.gint; -- gst/gstclock.h:566 pragma Import (C, gst_clock_id_compare_func, "gst_clock_id_compare_func"); function gst_clock_id_get_time (id : GstClockID) return GstClockTime; -- gst/gstclock.h:568 pragma Import (C, gst_clock_id_get_time, "gst_clock_id_get_time"); function gst_clock_id_wait (id : GstClockID; jitter : access GstClockTimeDiff) return GstClockReturn; -- gst/gstclock.h:569 pragma Import (C, gst_clock_id_wait, "gst_clock_id_wait"); function gst_clock_id_wait_async (id : GstClockID; func : GstClockCallback; user_data : System.Address) return GstClockReturn; -- gst/gstclock.h:571 pragma Import (C, gst_clock_id_wait_async, "gst_clock_id_wait_async"); function gst_clock_id_wait_async_full (id : GstClockID; func : GstClockCallback; user_data : System.Address; destroy_data : GStreamer.GST_Low_Level.glib_2_0_glib_gtypes_h.GDestroyNotify) return GstClockReturn; -- gst/gstclock.h:574 pragma Import (C, gst_clock_id_wait_async_full, "gst_clock_id_wait_async_full"); procedure gst_clock_id_unschedule (id : GstClockID); -- gst/gstclock.h:578 pragma Import (C, gst_clock_id_unschedule, "gst_clock_id_unschedule"); function gst_clock_single_shot_id_reinit (clock : access GstClock; id : GstClockID; time : GstClockTime) return GLIB.gboolean; -- gst/gstclock.h:580 pragma Import (C, gst_clock_single_shot_id_reinit, "gst_clock_single_shot_id_reinit"); function gst_clock_periodic_id_reinit (clock : access GstClock; id : GstClockID; start_time : GstClockTime; interval : GstClockTime) return GLIB.gboolean; -- gst/gstclock.h:583 pragma Import (C, gst_clock_periodic_id_reinit, "gst_clock_periodic_id_reinit"); end GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h;
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/sqrt.asm
jpoikela/z88dk
0
91089
<gh_stars>0 SECTION code_fp_math32 PUBLIC _sqrt EXTERN cm32_sccz80_fssqrt defc _sqrt = cm32_sccz80_fssqrt
oeis/013/A013794.asm
neoneye/loda-programs
11
242872
<reponame>neoneye/loda-programs ; A013794: a(n) = 11^(4n+1). ; Submitted by <NAME> ; 11,161051,2357947691,34522712143931,505447028499293771,7400249944258160101211,108347059433883722041830251,1586309297171491574414436704891,23225154419887808141001767796309131,340039485861577398992406882305761986971,4978518112499354698647829163838661251242411,72890483685103052142902866787761839379440139451,1067189571633593786424240872639621090354383081702091,15624722518287446627037310616316692383878522699200314331,228761562390246506066453264733492693192365450838991802120171 mov $1,14641 pow $1,$0 mov $0,$1 mul $0,11
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43107a.ada
best08618/asylo
7
14880
-- C43107A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- CHECK THAT AN EXPRESSION ASSOCIATED WITH MORE THAN ONE RECORD -- COMPONENT IS EVALUATED ONCE FOR EACH ASSOCIATED COMPONENT. -- EG 02/14/84 WITH REPORT; PROCEDURE C43107A IS USE REPORT; BEGIN TEST("C43107A","CHECK THAT AN EXPRESSION WITH MORE THAN ONE " & "RECORD COMPONENT IS EVALUATED ONCE FOR EACH " & "ASSOCIATED COMPONENT"); BEGIN CASE_A : DECLARE TYPE T1 IS ARRAY(1 .. 2) OF INTEGER; TYPE R1 IS RECORD A : T1; B : INTEGER; C : T1; D : INTEGER; E : INTEGER; END RECORD; A1 : R1; CNTR : INTEGER := 0; FUNCTION FUN1 (A : T1) RETURN T1 IS BEGIN CNTR := IDENT_INT(CNTR+1); RETURN A; END FUN1; FUNCTION FUN2 (A : INTEGER) RETURN INTEGER IS BEGIN CNTR := CNTR+1; RETURN IDENT_INT(A); END FUN2; BEGIN A1 := (A | C => FUN1((-1, -2)), OTHERS => FUN2(-3)+1); IF CNTR /= 5 THEN FAILED ("CASE A : INCORRECT NUMBER OF EVALUATIONS" & " OF RECORD ASSOCIATED COMPONENTS"); END IF; IF A1.A /= (-1, -2) OR A1.C /= (-1, -2) OR A1.B /= -2 OR A1.D /= -2 OR A1.E /= -2 THEN FAILED ("CASE A : INCORRECT VALUES IN RECORD"); END IF; END CASE_A; CASE_B : DECLARE TYPE T2 IS ACCESS INTEGER; TYPE R2 IS RECORD A : T2; B : INTEGER; C : T2; D : INTEGER; E : INTEGER; END RECORD; B1 : R2; CNTR : INTEGER := 0; FUNCTION FUN3 RETURN INTEGER IS BEGIN CNTR := CNTR+1; RETURN IDENT_INT(2); END FUN3; BEGIN B1 := (A | C => NEW INTEGER'(-1), B | D | E => FUN3); IF B1.A = B1.C OR CNTR /= 3 THEN FAILED ("CASE B : INCORRECT NUMBER OF EVALUATION" & " OF RECORD ASSOCIATED COMPONENTS"); END IF; IF B1.B /= 2 OR B1.D /= 2 OR B1.E /= 2 OR B1.A = NULL OR B1.C = NULL OR B1.A = B1.C THEN FAILED ("CASE B : INCORRECT VALUES IN RECORD"); END IF; END CASE_B; END; RESULT; END C43107A;
3-mid/opengl/source/lean/model/opengl-model-sphere-lit_colored.ads
charlie5/lace-alire
1
12723
<gh_stars>1-10 with openGL.Font, openGL.Geometry; package openGL.Model.sphere.lit_colored -- -- Models a lit, colored sphere. -- is type Item is new Model.sphere.item with private; type View is access all Item'Class; --------- --- Forge -- function new_Sphere (Radius : in Real; lat_Count : in Positive := default_latitude_Count; long_Count : in Positive := default_longitude_Count; Color : in lucid_Color) return View; -------------- --- Attributes -- overriding function to_GL_Geometries (Self : access Item; Textures : access Texture.name_Map_of_texture'Class; Fonts : in Font.font_id_Map_of_font) return Geometry.views; private type Item is new Model.sphere.item with record Color : lucid_Color; end record; end openGL.Model.sphere.lit_colored;
src/ada/src/services/route_aggregator/uxas-comms-lmcp_net_client-service-route_aggregation.adb
VVCAS-Sean/OpenUxAS
88
18886
with Ada.Characters.Handling; with DOM.Core.Elements; with LMCP_Messages; with LMCP_Message_Conversions; with AFRL.CMASI.AirVehicleConfiguration; use AFRL.CMASI.AirVehicleConfiguration; with AFRL.CMASI.AirVehicleState; use AFRL.CMASI.AirVehicleState; with AFRL.CMASI.AutomationRequest; use AFRL.CMASI.AutomationRequest; with AFRL.Impact.ImpactAutomationRequest; use AFRL.Impact.ImpactAutomationRequest; with AFRL.Vehicles.GroundVehicleConfiguration; use AFRL.Vehicles.GroundVehicleConfiguration; with AFRL.Vehicles.GroundVehicleState; use AFRL.Vehicles.GroundVehicleState; with AFRL.Vehicles.SurfaceVehicleConfiguration; use AFRL.Vehicles.SurfaceVehicleConfiguration; with AFRL.Vehicles.SurfaceVehicleState; use AFRL.Vehicles.SurfaceVehicleState; with UxAS.Messages.Route.RoutePlanResponse; use UxAS.Messages.Route.RoutePlanResponse; with UxAS.Messages.Route.RouteRequest; use UxAS.Messages.Route.RouteRequest; with AFRL.CMASI.EntityConfiguration; use AFRL.CMASI.EntityConfiguration; with AFRL.CMASI.EntityState; use AFRL.CMASI.EntityState; with AVTAS.LMCP.Types; with UxAS.Messages.lmcptask.TaskPlanOptions; use UxAS.Messages.lmcptask.TaskPlanOptions; with UxAS.Messages.lmcptask.UniqueAutomationRequest; use UxAS.Messages.lmcptask.UniqueAutomationRequest; with Ada.Containers; use Ada.Containers; package body UxAS.Comms.LMCP_Net_Client.Service.Route_Aggregation is procedure Handle_AirVehicleConfig_Msg (This : in out Route_Aggregator_Service; Msg : EntityConfiguration_Any); procedure Handle_AirVehicleState_Msg (This : in out Route_Aggregator_Service; Msg : EntityState_Any); procedure Handle_GroundVehicleConfig_Msg (This : in out Route_Aggregator_Service; Msg : EntityConfiguration_Any); procedure Handle_GroundVehicleState_Msg (This : in out Route_Aggregator_Service; Msg : EntityState_Any); procedure Handle_ImpactAutomationRequest_Msg (This : in out Route_Aggregator_Service; Msg : ImpactAutomationRequest_Any); procedure Handle_RoutePlanResponse_Msg (This : in out Route_Aggregator_Service; Msg : RoutePlanResponse_Any); procedure Handle_RouteRequest_Msg (This : in out Route_Aggregator_Service; Msg : RouteRequest_Any); procedure Handle_SurfaceVehicleConfig_Msg (This : in out Route_Aggregator_Service; Msg : EntityConfiguration_Any); procedure Handle_SurfaceVehicleState_Msg (This : in out Route_Aggregator_Service; Msg : EntityState_Any); procedure Handle_TaskPlanOptions_Msg (This : in out Route_Aggregator_Service; Msg : TaskPlanOptions_Any); procedure Handle_UniqueAutomationRequest_Msg (This : in out Route_Aggregator_Service; Msg : UniqueAutomationRequest_Any); --------------- -- Configure -- --------------- overriding procedure Configure (This : in out Route_Aggregator_Service; XML_Node : DOM.Core.Element; Result : out Boolean) is Unused : Boolean; begin declare Attr_Value : constant String := DOM.Core.Elements.Get_Attribute (XML_Node, Name => "FastPlan"); use Ada.Characters.Handling; begin if Attr_Value = "" then This.Config.m_fastPlan := False; -- FastPlan is an optional parameter elsif To_Lower (Attr_Value) = "true" then This.Config.m_fastPlan := True; elsif To_Lower (Attr_Value) = "false" then This.Config.m_fastPlan := False; else -- malformed boolean value Result := False; return; end if; end; -- track states and configurations for assignment cost matrix calculation -- [EntityStates] are used to calculate costs from current position to first task -- [EntityConfigurations] are used for nominal speed values (all costs are in terms of time to arrive) -- addSubscriptionAddress(afrl::CMASI::EntityConfiguration::Subscription); This.Add_Subscription_Address (AFRL.CMASI.EntityConfiguration.Subscription, Unused); for Descendant of EntityConfiguration_Descendants loop This.Add_Subscription_Address (Descendant, Unused); end loop; -- addSubscriptionAddress(afrl::CMASI::EntityState::Subscription); This.Add_Subscription_Address (AFRL.CMASI.EntityState.Subscription, Unused); for Descendant of AFRL.CMASI.EntityState.EntityState_Descendants loop This.Add_Subscription_Address (Descendant, Unused); end loop; -- track requests to kickoff matrix calculation -- addSubscriptionAddress(UxAS::messages::task::UniqueAutomationRequest::Subscription); This.Add_Subscription_Address (UxAS.Messages.lmcptask.UniqueAutomationRequest.Subscription, Unused); -- subscribe to task plan options to build matrix -- addSubscriptionAddress(UxAS::messages::task::TaskPlanOptions::Subscription); This.Add_Subscription_Address (UxAS.Messages.lmcptask.TaskPlanOptions.Subscription, Unused); -- handle batch route requests -- addSubscriptionAddress(UxAS::messages::route::RouteRequest::Subscription); This.Add_Subscription_Address (UxAS.Messages.Route.RouteRequest.Subscription, Unused); -- listen for responses to requests from route planner(s) -- addSubscriptionAddress(UxAS::messages::route::RoutePlanResponse::Subscription); This.Add_Subscription_Address (UxAS.Messages.Route.RoutePlanResponse.Subscription, Unused); -- // Subscribe to group messages (whisper from local route planner) -- //TODO REVIEW DESIGN "RouteAggregator" "RoutePlanner" flip message addressing effecting session behavior -- return true; // may not have the proper fast plan value, but proceed anyway Result := True; end Configure; ------------ -- Create -- ------------ function Create return Any_Service is Result : Any_Service; begin Result := new Route_Aggregator_Service; Result.Construct_Service (Service_Type => Type_Name, Work_Directory_Name => Directory_Name); return Result; end Create; --------------------------------- -- Handle_AirVehicleConfig_Msg -- --------------------------------- procedure Handle_AirVehicleConfig_Msg (This : in out Route_Aggregator_Service; Msg : EntityConfiguration_Any) is Id : constant Common.Int64 := Common.Int64 (Msg.getID); begin -- { -- int64_t id = std::static_pointer_cast<afrl::CMASI::EntityConfiguration>(receivedLMCPMessage->m_object)->getID(); -- m_entityConfigurations[id] = std::static_pointer_cast<afrl::CMASI::EntityConfiguration>(receivedLMCPMessage->m_object); -- m_airVehicles.insert(id); -- } if not Contains (This.Config.m_airVehicles, Id) then This.Config.m_airVehicles := Add (This.Config.m_airVehicles, Id); end if; if not Contains (This.Config.m_entityStates, Int64_Sequences.First, Last (This.Config.m_entityStates), Id) then This.Config.m_entityStates := Add (This.Config.m_entityStates, Id); end if; end Handle_AirVehicleConfig_Msg; -------------------------------- -- Handle_AirVehicleState_Msg -- -------------------------------- procedure Handle_AirVehicleState_Msg (This : in out Route_Aggregator_Service; Msg : EntityState_Any) is use LMCP_Message_Conversions; Entity_State : constant LMCP_Messages.EntityState := As_EntityState_Message (Msg); Id : constant Common.Int64 := Entity_State.Id; begin -- { -- int64_t id = std::static_pointer_cast<afrl::CMASI::EntityState>(receivedLMCPMessage->m_object)->getID(); -- m_entityStates[id] = std::static_pointer_cast<afrl::CMASI::EntityState>(receivedLMCPMessage->m_object); -- m_airVehicles.insert(id); -- } if not Contains (This.Config.m_airVehicles, Id) then This.Config.m_airVehicles := Add (This.Config.m_airVehicles, Id); end if; if not Contains (This.Config.m_entityStates, Int64_Sequences.First, Last (This.Config.m_entityStates), Id) then This.Config.m_entityStates := Add (This.Config.m_entityStates, Id); end if; if ES_Maps.Has_Key (This.Config.m_entityStatesInfo, Id) then This.Config.m_entityStatesInfo := ES_Maps.Set (This.Config.m_entityStatesInfo, Id, Entity_State); else This.Config.m_entityStatesInfo := ES_Maps.Add (This.Config.m_entityStatesInfo, Id, Entity_State); end if; end Handle_AirVehicleState_Msg; ------------------------------------ -- Handle_GroundVehicleConfig_Msg -- ------------------------------------ procedure Handle_GroundVehicleConfig_Msg (This : in out Route_Aggregator_Service; Msg : EntityConfiguration_Any) is Id : constant Common.Int64 := Common.Int64 (Msg.getID); begin -- { -- int64_t id = std::static_pointer_cast<afrl::CMASI::EntityConfiguration>(receivedLMCPMessage->m_object)->getID(); -- m_entityConfigurations[id] = std::static_pointer_cast<afrl::CMASI::EntityConfiguration>(receivedLMCPMessage->m_object); -- m_groundVehicles.insert(id); -- } if not Contains (This.Config.m_groundVehicles, Id) then This.Config.m_groundVehicles := Add (This.Config.m_groundVehicles, Id); end if; if not Contains (This.Config.m_entityStates, Int64_Sequences.First, Last (This.Config.m_entityStates), Id) then This.Config.m_entityStates := Add (This.Config.m_entityStates, Id); end if; end Handle_GroundVehicleConfig_Msg; ----------------------------------- -- Handle_GroundVehicleState_Msg -- ----------------------------------- procedure Handle_GroundVehicleState_Msg (This : in out Route_Aggregator_Service; Msg : EntityState_Any) is use LMCP_Message_Conversions; Entity_State : constant LMCP_Messages.EntityState := As_EntityState_Message (Msg); Id : constant Common.Int64 := Entity_State.Id; begin -- { -- int64_t id = std::static_pointer_cast<afrl::CMASI::EntityState>(receivedLMCPMessage->m_object)->getID(); -- m_entityStates[id] = std::static_pointer_cast<afrl::CMASI::EntityState>(receivedLMCPMessage->m_object); -- m_groundVehicles.insert(id); -- } if not Contains (This.Config.m_groundVehicles, Id) then This.Config.m_groundVehicles := Add (This.Config.m_groundVehicles, Id); end if; if not Contains (This.Config.m_entityStates, Int64_Sequences.First, Last (This.Config.m_entityStates), Id) then This.Config.m_entityStates := Add (This.Config.m_entityStates, Id); end if; if ES_Maps.Has_Key (This.Config.m_entityStatesInfo, Id) then This.Config.m_entityStatesInfo := ES_Maps.Set (This.Config.m_entityStatesInfo, Id, Entity_State); else This.Config.m_entityStatesInfo := ES_Maps.Add (This.Config.m_entityStatesInfo, Id, Entity_State); end if; end Handle_GroundVehicleState_Msg; ---------------------------------------- -- Handle_ImpactAutomationRequest_Msg -- ---------------------------------------- procedure Handle_ImpactAutomationRequest_Msg (This : in out Route_Aggregator_Service; Msg : ImpactAutomationRequest_Any) is -- auto areq = std::shared_ptr<UxAS::messages::task::UniqueAutomationRequest>(); AReq : constant UniqueAutomationRequest_Any := new UxAS.Messages.lmcptask.UniqueAutomationRequest.UniqueAutomationRequest; begin -- auto sreq = std::static_pointer_cast<afrl::impact::ImpactAutomationRequest>(receivedLMCPMessage->m_object); -- Msg corresponds to sreq in this Ada version -- areq->setOriginalRequest(sreq->getTrialRequest()->clone()); AReq.setOriginalRequest (new AutomationRequest'(Msg.getTrialRequest.all)); -- m_uniqueAutomationRequests[m_autoRequestId++] = areq; -- areq->setRequestID(m_autoRequestId); AReq.setRequestID (AVTAS.LMCP.Types.Int64 (This.State.m_autoRequestId + 1)); -- //ResetTaskOptions(areq); // clear m_taskOptions and wait for refresh from tasks -- CheckAllTaskOptionsReceived(); Route_Aggregator.Handle_Unique_Automation_Request (This.Config, This.Mailbox, This.State, LMCP_Message_Conversions.As_UniqueAutomationRequest_Message (AReq)); end Handle_ImpactAutomationRequest_Msg; ---------------------------------- -- Handle_RoutePlanResponse_Msg -- ---------------------------------- procedure Handle_RoutePlanResponse_Msg (This : in out Route_Aggregator_Service; Msg : RoutePlanResponse_Any) is use LMCP_Message_Conversions; begin Route_Aggregator.Handle_Route_Plan_Response (This.Mailbox, This.State, As_RoutePlanResponse_Message (Msg)); end Handle_RoutePlanResponse_Msg; ----------------------------- -- Handle_RouteRequest_Msg -- ----------------------------- procedure Handle_RouteRequest_Msg (This : in out Route_Aggregator_Service; Msg : RouteRequest_Any) is use LMCP_Message_Conversions; begin Route_Aggregator.Handle_Route_Request (This.Config, This.Mailbox, This.State, As_RouteRequest_Message (Msg)); end Handle_RouteRequest_Msg; ------------------------------------- -- Handle_SurfaceVehicleConfig_Msg -- ------------------------------------- procedure Handle_SurfaceVehicleConfig_Msg (This : in out Route_Aggregator_Service; Msg : EntityConfiguration_Any) is Id : constant Common.Int64 := Common.Int64 (Msg.getID); begin -- { -- int64_t id = std::static_pointer_cast<afrl::CMASI::EntityConfiguration>(receivedLMCPMessage->m_object)->getID(); -- m_entityConfigurations[id] = std::static_pointer_cast<afrl::CMASI::EntityConfiguration>(receivedLMCPMessage->m_object); -- m_surfaceVehicles.insert(id); -- } if not Contains (This.Config.m_surfaceVehicles, Id) then This.Config.m_surfaceVehicles := Add (This.Config.m_surfaceVehicles, Id); end if; if not Contains (This.Config.m_entityStates, Int64_Sequences.First, Last (This.Config.m_entityStates), Id) then This.Config.m_entityStates := Add (This.Config.m_entityStates, Id); end if; end Handle_SurfaceVehicleConfig_Msg; ------------------------------------ -- Handle_SurfaceVehicleState_Msg -- ------------------------------------ procedure Handle_SurfaceVehicleState_Msg (This : in out Route_Aggregator_Service; Msg : EntityState_Any) is use LMCP_Message_Conversions; Entity_State : constant LMCP_Messages.EntityState := As_EntityState_Message (Msg); Id : constant Common.Int64 := Entity_State.Id; begin -- { -- int64_t id = std::static_pointer_cast<afrl::CMASI::EntityState>(receivedLMCPMessage->m_object)->getID(); -- m_entityStates[id] = std::static_pointer_cast<afrl::CMASI::EntityState>(receivedLMCPMessage->m_object); -- m_surfaceVehicles.insert(id); -- } if not Contains (This.Config.m_surfaceVehicles, Id) then This.Config.m_surfaceVehicles := Add (This.Config.m_surfaceVehicles, Id); end if; if not Contains (This.Config.m_entityStates, Int64_Sequences.First, Last (This.Config.m_entityStates), Id) then This.Config.m_entityStates := Add (This.Config.m_entityStates, Id); end if; if ES_Maps.Has_Key (This.Config.m_entityStatesInfo, Id) then This.Config.m_entityStatesInfo := ES_Maps.Set (This.Config.m_entityStatesInfo, Id, Entity_State); else This.Config.m_entityStatesInfo := ES_Maps.Add (This.Config.m_entityStatesInfo, Id, Entity_State); end if; end Handle_SurfaceVehicleState_Msg; -------------------------------- -- Handle_TaskPlanOptions_Msg -- -------------------------------- procedure Handle_TaskPlanOptions_Msg (This : in out Route_Aggregator_Service; Msg : TaskPlanOptions_Any) is begin Route_Aggregator.Handle_Task_Plan_Options (This.Mailbox, This.Config, This.State, LMCP_Message_Conversions.As_TaskPlanOption_Message (Msg)); end Handle_TaskPlanOptions_Msg; ---------------------------------------- -- Handle_UniqueAutomationRequest_Msg -- ---------------------------------------- procedure Handle_UniqueAutomationRequest_Msg (This : in out Route_Aggregator_Service; Msg : UniqueAutomationRequest_Any) is begin -- { -- auto areq = std::static_pointer_cast<UxAS::messages::task::UniqueAutomationRequest>(receivedLMCPMessage->m_object); -- m_uniqueAutomationRequests[m_autoRequestId++] = areq; -- //ResetTaskOptions(areq); // clear m_taskOptions and wait for refresh from tasks -- CheckAllTaskOptionsReceived(); -- } Route_Aggregator.Handle_Unique_Automation_Request (This.Config, This.Mailbox, This.State, LMCP_Message_Conversions.As_UniqueAutomationRequest_Message (Msg)); end Handle_UniqueAutomationRequest_Msg; ---------------- -- Initialize -- ---------------- overriding procedure Initialize (This : in out Route_Aggregator_Service; Result : out Boolean) is begin Result := True; -- per the C++ version Route_Aggregator_Communication.Initialize (This.Mailbox, Source_Group => Value (This.Message_Source_Group), Unique_Id => Common.Int64 (UxAS.Comms.LMCP_Net_Client.Unique_Entity_Send_Message_Id), Entity_Id => Common.UInt32 (This.Entity_Id), Service_Id => Common.UInt32 (This.Network_Id)); end Initialize; ----------------------------------- -- Process_Received_LMCP_Message -- ----------------------------------- overriding procedure Process_Received_LMCP_Message (This : in out Route_Aggregator_Service; Received_Message : not null Any_LMCP_Message; Should_Terminate : out Boolean) is begin -- if (UxAS::messages::route::isRoutePlanResponse(receivedLMCPMessage->m_object.get())) if Received_Message.Payload.all in RoutePlanResponse'Class then This.Handle_RoutePlanResponse_Msg (RoutePlanResponse_Any (Received_Message.Payload)); -- else if (UxAS::messages::route::isRouteRequest(receivedLMCPMessage->m_object.get())) elsif Received_Message.Payload.all in RouteRequest'Class then This.Handle_RouteRequest_Msg (RouteRequest_Any (Received_Message.Payload)); -- else if (std::dynamic_pointer_cast<afrl::CMASI::AirVehicleState>(receivedLMCPMessage->m_object)) elsif Received_Message.Payload.all in AirVehicleState'Class then This.Handle_AirVehicleState_Msg (EntityState_Any (Received_Message.Payload)); -- else if (afrl::vehicles::isGroundVehicleState(receivedLMCPMessage->m_object.get())) elsif Received_Message.Payload.all in GroundVehicleState'Class then This.Handle_GroundVehicleState_Msg (EntityState_Any (Received_Message.Payload)); -- else if (afrl::vehicles::isSurfaceVehicleState(receivedLMCPMessage->m_object.get())) elsif Received_Message.Payload.all in SurfaceVehicleState'Class then This.Handle_SurfaceVehicleState_Msg (EntityState_Any (Received_Message.Payload)); -- else if (std::dynamic_pointer_cast<afrl::CMASI::AirVehicleConfiguration>(receivedLMCPMessage->m_object)) elsif Received_Message.Payload.all in AirVehicleConfiguration'Class then This.Handle_AirVehicleConfig_Msg (EntityConfiguration_Any (Received_Message.Payload)); -- else if (afrl::vehicles::isGroundVehicleConfiguration(receivedLMCPMessage->m_object.get())) elsif Received_Message.Payload.all in GroundVehicleConfiguration'Class then This.Handle_GroundVehicleConfig_Msg (EntityConfiguration_Any (Received_Message.Payload)); -- else if (afrl::vehicles::isSurfaceVehicleConfiguration(receivedLMCPMessage->m_object.get())) elsif Received_Message.Payload.all in SurfaceVehicleConfiguration'Class then This.Handle_SurfaceVehicleConfig_Msg (EntityConfiguration_Any (Received_Message.Payload)); -- else if (UxAS::messages::task::isUniqueAutomationRequest(receivedLMCPMessage->m_object.get())) elsif Received_Message.Payload.all in UxAS.Messages.lmcptask.UniqueAutomationRequest.UniqueAutomationRequest'Class then This.Handle_UniqueAutomationRequest_Msg (UniqueAutomationRequest_Any (Received_Message.Payload)); -- else if (afrl::impact::isImpactAutomationRequest(receivedLMCPMessage->m_object.get())) elsif Received_Message.Payload.all in ImpactAutomationRequest'Class then This.Handle_ImpactAutomationRequest_Msg (ImpactAutomationRequest_Any (Received_Message.Payload)); -- else if (UxAS::messages::task::isTaskPlanOptions(receivedLMCPMessage->m_object.get())) elsif Received_Message.Payload.all in TaskPlanOptions'Class then This.Handle_TaskPlanOptions_Msg (TaskPlanOptions_Any (Received_Message.Payload)); end if; Should_Terminate := False; end Process_Received_LMCP_Message; --------------------------------- -- Registry_Service_Type_Names -- --------------------------------- function Registry_Service_Type_Names return Service_Type_Names_List is (Service_Type_Names_List'(1 => Instance (Service_Type_Name_Max_Length, Content => Type_Name))); ----------------------------- -- Package Executable Part -- ----------------------------- -- This is the executable part for the package, invoked automatically and only once. begin -- All concrete service subclasses must call this procedure in their -- own package like this, with their own params. Register_Service_Creation_Function_Pointers (Registry_Service_Type_Names, Create'Access); end UxAS.Comms.LMCP_Net_Client.Service.Route_Aggregation;
src/font.asm
fjpena/sword-of-ianna-msx2
43
103537
; Load font in VRAM (bank 0, address $6000) LoadFONT: ld hl, FONT ld de, $6000 call unpackVRAM ret LoadFONT_menu: ld hl, menu_font ld de, $6800 call unpackVRAM ret ; Print a string, terminated by 0 ; INPUT: ; IY: pointer to string ; B: X in chars ; C: Y in chars print_string: push iy call next_word pop iy ld a, d and a ret z ; return on NULL add a, b cp 32 jr c, print_str_nonextline print_str_nextline: ; go to next line ld b, 1 inc c ld a, c cp 24 jr nz, print_str_nonextline push iy push de call wait_till_read call clean_scorearea pop de pop iy ld bc, 256+21 print_str_nonextline: ; now print word call print_word jr print_string ret ; Print a string, terminated by 0 ; INPUT: ; IY: pointer to string ; B: X in chars ; C: Y in chars print_string_menu: push iy call next_word pop iy ld a, d and a ret z ; return on NULL add a, b cp 32 jr c, print_str_nonextline_menu print_str_nextline_menu: ; go to next line ld b, 2 inc c print_str_nonextline_menu: ; now print word call print_word_menu jr print_string_menu ret ; Print a string on screen, not controlling line breaks ; INPUT: ; IY: pointer to string ; B: X in chars ; C: Y in chars print_string2: ld a, (iy+0) and a ret z ; return on NULL push iy push bc call drawChar pop bc pop iy inc iy inc b jr nz, print_string2 ret ; Print a string on screen, directly on the front buffer, not controlling line breaks ; INPUT: ; IY: pointer to string ; B: X in chars ; C: Y in chars print_string3: ld a, (iy+0) and a ret z ; return on NULL push iy push bc call drawCharFront pop bc pop iy inc iy inc b jr nz, print_string3 ret ; Print a string on front buffer, with transparency ; INPUT: ; IY: pointer to string ; B: X in chars ; C: Y in chars print_string4: ld a, (iy+0) and a ret z ; return on NULL push iy push bc call drawCharTrans pop bc pop iy inc iy inc b jr nz, print_string4 ret ; Print a string on front buffer, with transparency and double size ; INPUT: ; IY: pointer to string ; B: X in chars ; C: Y in chars print_string_double: ld a, (iy+0) and a ret z ; return on NULL push iy push bc call drawCharTrans_Double pop bc pop iy inc iy inc b jr nz, print_string_double ret ; Find next word ; INPUT: ; IY: pointer to string ; OUTPUT: ; D: word length next_word: ld d, 0 next_word_loop: ld a, (iy+0) and a ret z cp ' ' jr z, next_word_finished cp ',' jr z, next_word_finished cp '.' jr z, next_word_finished inc d inc iy jr next_word_loop next_word_finished: inc d ret ; Print a word on screen ; INPUT: ; - B: X in chars ; - C: Y in chars ; - D: word length print_word: ld a, (iy+0) push de push iy push bc call drawChar pop bc push bc ld a, (wait_alternate) xor 1 ld (wait_alternate), a and a call z, waitforVBlank pop bc push bc ld de, $0101 call InvalidateTiles call TransferDirtyTiles pop bc pop iy pop de inc iy inc b ld a, d dec a ld d, a jr nz, print_word ret ; Print a word on screen, just for the menu ; INPUT: ; - B: X in chars ; - C: Y in chars ; - D: word length print_word_menu: halt ld a, (iy+0) push de push iy push bc ; call drawCharFront call drawCharTrans_front pop bc pop iy pop de inc iy inc b ld a, d dec a ld d, a jr nz, print_word_menu ret
src/date-tables.asm
ViGrey/calendar_dot_exe
2
101456
; Copyright (C) 2020-2021, <NAME> ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions ; are met: ; ; 1. Redistributions of source code must retain the above copyright ; notice, this list of conditions and the following disclaimer. ; 2. Redistributions in binary form must reproduce the above copyright ; notice, this list of conditions and the following disclaimer in the ; documentation and/or other materials provided with the distribution. ; ; THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND ; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ; ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE ; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ; OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ; SUCH DAMAGE. MonthOffsetsTable: .byte $07, $03, $03, $06 .byte $01, $04, $06, $02 .byte $05, $00, $03, $05 YearOffsetsTable: .byte $01, $02 .byte $02, $04 .byte $03, $06 .byte $04, $08 .byte $06, $00 .byte $07, $02 .byte $08, $04 .byte $09, $06 DaysPerMonthTable: .byte $03, $01, $02, $08, $03, $01, $03, $00 .byte $03, $01, $03, $00, $03, $01, $03, $01 .byte $03, $00, $03, $01, $03, $00, $03, $01
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1167.asm
ljhsiun2/medusa
9
6812
<reponame>ljhsiun2/medusa .global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0x6b0a, %r14 nop nop nop nop and %r11, %r11 movw $0x6162, (%r14) inc %rax lea addresses_UC_ht+0x176ba, %rcx cmp $29197, %r11 movl $0x61626364, (%rcx) nop nop nop cmp $48977, %r14 lea addresses_normal_ht+0x146ba, %rsi lea addresses_WT_ht+0xc3ba, %rdi nop nop nop nop nop add $12831, %r13 mov $45, %rcx rep movsl nop dec %rdi lea addresses_WT_ht+0x15fba, %r11 nop nop nop nop sub %rdi, %rdi mov $0x6162636465666768, %rsi movq %rsi, %xmm1 movups %xmm1, (%r11) nop nop and $30143, %rsi lea addresses_D_ht+0x1b0da, %rax clflush (%rax) nop nop nop xor $8047, %r14 mov (%rax), %si nop nop nop xor %rdi, %rdi lea addresses_normal_ht+0x3eba, %rcx nop lfence movw $0x6162, (%rcx) nop nop nop inc %r14 lea addresses_UC_ht+0x136ba, %rcx nop nop nop nop nop sub $10937, %rsi movb $0x61, (%rcx) nop nop nop cmp $1438, %r11 lea addresses_A_ht+0x1c0fa, %rdi inc %rax mov (%rdi), %r13w nop dec %rcx pop %rsi pop %rdi pop %rcx pop %rax pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r9 push %rbp push %rcx push %rdi push %rsi // REPMOV lea addresses_A+0x140ba, %rsi lea addresses_WC+0xffe2, %rdi inc %r9 mov $71, %rcx rep movsq nop nop nop sub $44746, %rsi // Faulty Load lea addresses_PSE+0x7eba, %rbp nop cmp $62694, %r15 movb (%rbp), %r9b lea oracles, %r12 and $0xff, %r9 shlq $12, %r9 mov (%r12,%r9,1), %r9 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_A'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WC'}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6}} {'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 */
programs/oeis/327/A327329.asm
karttu/loda
0
163327
<reponame>karttu/loda ; A327329: Twice the sum of all divisors of all positive integers <= n. ; 2,8,16,30,42,66,82,112,138,174,198,254,282,330,378,440,476,554,594,678,742,814,862,982,1044,1128,1208,1320,1380,1524,1588,1714,1810,1918,2014,2196,2272,2392,2504,2684,2768,2960,3048,3216,3372,3516,3612,3860,3974,4160,4304,4500,4608,4848,4992 mov $1,$0 cal $1,24916 ; a(n) = Sum_{k=1..n} k*floor(n/k); also Sum_{k=1..n} sigma(k) where sigma(n) = sum of divisors of n (A000203). mul $1,2
awa/plugins/awa-comments/src/model/awa-comments-models.adb
fuzzysloth/ada-awa
0
2662
----------------------------------------------------------------------- -- AWA.Comments.Models -- AWA.Comments.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-body.xhtml -- Ada Generator: https://ada-gen.googlecode.com/svn/trunk Revision 1095 ----------------------------------------------------------------------- -- Copyright (C) 2017 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Unchecked_Deallocation; with Util.Beans.Objects.Time; with ASF.Events.Faces.Actions; package body AWA.Comments.Models is use type ADO.Objects.Object_Record_Access; use type ADO.Objects.Object_Ref; use type ADO.Objects.Object_Record; pragma Warnings (Off, "formal parameter * is not referenced"); function Comment_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key is Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER, Of_Class => COMMENT_DEF'Access); begin ADO.Objects.Set_Value (Result, Id); return Result; end Comment_Key; function Comment_Key (Id : in String) return ADO.Objects.Object_Key is Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER, Of_Class => COMMENT_DEF'Access); begin ADO.Objects.Set_Value (Result, Id); return Result; end Comment_Key; function "=" (Left, Right : Comment_Ref'Class) return Boolean is begin return ADO.Objects.Object_Ref'Class (Left) = ADO.Objects.Object_Ref'Class (Right); end "="; procedure Set_Field (Object : in out Comment_Ref'Class; Impl : out Comment_Access) is Result : ADO.Objects.Object_Record_Access; begin Object.Prepare_Modify (Result); Impl := Comment_Impl (Result.all)'Access; end Set_Field; -- Internal method to allocate the Object_Record instance procedure Allocate (Object : in out Comment_Ref) is Impl : Comment_Access; begin Impl := new Comment_Impl; Impl.Create_Date := ADO.DEFAULT_TIME; Impl.Entity_Id := ADO.NO_IDENTIFIER; Impl.Version := 0; Impl.Entity_Type := 0; Impl.Status := AWA.Comments.Models.Status_Type'First; Impl.Format := AWA.Comments.Models.Format_Type'First; ADO.Objects.Set_Object (Object, Impl.all'Access); end Allocate; -- ---------------------------------------- -- Data object: Comment -- ---------------------------------------- procedure Set_Create_Date (Object : in out Comment_Ref; Value : in Ada.Calendar.Time) is Impl : Comment_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Time (Impl.all, 1, Impl.Create_Date, Value); end Set_Create_Date; function Get_Create_Date (Object : in Comment_Ref) return Ada.Calendar.Time is Impl : constant Comment_Access := Comment_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Create_Date; end Get_Create_Date; procedure Set_Message (Object : in out Comment_Ref; Value : in String) is Impl : Comment_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_String (Impl.all, 2, Impl.Message, Value); end Set_Message; procedure Set_Message (Object : in out Comment_Ref; Value : in Ada.Strings.Unbounded.Unbounded_String) is Impl : Comment_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Unbounded_String (Impl.all, 2, Impl.Message, Value); end Set_Message; function Get_Message (Object : in Comment_Ref) return String is begin return Ada.Strings.Unbounded.To_String (Object.Get_Message); end Get_Message; function Get_Message (Object : in Comment_Ref) return Ada.Strings.Unbounded.Unbounded_String is Impl : constant Comment_Access := Comment_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Message; end Get_Message; procedure Set_Entity_Id (Object : in out Comment_Ref; Value : in ADO.Identifier) is Impl : Comment_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Identifier (Impl.all, 3, Impl.Entity_Id, Value); end Set_Entity_Id; function Get_Entity_Id (Object : in Comment_Ref) return ADO.Identifier is Impl : constant Comment_Access := Comment_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Entity_Id; end Get_Entity_Id; procedure Set_Id (Object : in out Comment_Ref; Value : in ADO.Identifier) is Impl : Comment_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Key_Value (Impl.all, 4, Value); end Set_Id; function Get_Id (Object : in Comment_Ref) return ADO.Identifier is Impl : constant Comment_Access := Comment_Impl (Object.Get_Object.all)'Access; begin return Impl.Get_Key_Value; end Get_Id; function Get_Version (Object : in Comment_Ref) return Integer is Impl : constant Comment_Access := Comment_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Version; end Get_Version; procedure Set_Entity_Type (Object : in out Comment_Ref; Value : in ADO.Entity_Type) is Impl : Comment_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Entity_Type (Impl.all, 6, Impl.Entity_Type, Value); end Set_Entity_Type; function Get_Entity_Type (Object : in Comment_Ref) return ADO.Entity_Type is Impl : constant Comment_Access := Comment_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Entity_Type; end Get_Entity_Type; procedure Set_Status (Object : in out Comment_Ref; Value : in AWA.Comments.Models.Status_Type) is procedure Set_Field_Enum is new ADO.Objects.Set_Field_Operation (Status_Type); Impl : Comment_Access; begin Set_Field (Object, Impl); Set_Field_Enum (Impl.all, 7, Impl.Status, Value); end Set_Status; function Get_Status (Object : in Comment_Ref) return AWA.Comments.Models.Status_Type is Impl : constant Comment_Access := Comment_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Status; end Get_Status; procedure Set_Format (Object : in out Comment_Ref; Value : in AWA.Comments.Models.Format_Type) is procedure Set_Field_Enum is new ADO.Objects.Set_Field_Operation (Format_Type); Impl : Comment_Access; begin Set_Field (Object, Impl); Set_Field_Enum (Impl.all, 8, Impl.Format, Value); end Set_Format; function Get_Format (Object : in Comment_Ref) return AWA.Comments.Models.Format_Type is Impl : constant Comment_Access := Comment_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Format; end Get_Format; procedure Set_Author (Object : in out Comment_Ref; Value : in AWA.Users.Models.User_Ref'Class) is Impl : Comment_Access; begin Set_Field (Object, Impl); ADO.Objects.Set_Field_Object (Impl.all, 9, Impl.Author, Value); end Set_Author; function Get_Author (Object : in Comment_Ref) return AWA.Users.Models.User_Ref'Class is Impl : constant Comment_Access := Comment_Impl (Object.Get_Load_Object.all)'Access; begin return Impl.Author; end Get_Author; -- Copy of the object. procedure Copy (Object : in Comment_Ref; Into : in out Comment_Ref) is Result : Comment_Ref; begin if not Object.Is_Null then declare Impl : constant Comment_Access := Comment_Impl (Object.Get_Load_Object.all)'Access; Copy : constant Comment_Access := new Comment_Impl; begin ADO.Objects.Set_Object (Result, Copy.all'Access); Copy.Copy (Impl.all); Copy.Create_Date := Impl.Create_Date; Copy.Message := Impl.Message; Copy.Entity_Id := Impl.Entity_Id; Copy.Version := Impl.Version; Copy.Entity_Type := Impl.Entity_Type; Copy.Status := Impl.Status; Copy.Format := Impl.Format; Copy.Author := Impl.Author; end; end if; Into := Result; end Copy; procedure Find (Object : in out Comment_Ref; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean) is Impl : constant Comment_Access := new Comment_Impl; begin Impl.Find (Session, Query, Found); if Found then ADO.Objects.Set_Object (Object, Impl.all'Access); else ADO.Objects.Set_Object (Object, null); Destroy (Impl); end if; end Find; procedure Load (Object : in out Comment_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier) is Impl : constant Comment_Access := new Comment_Impl; Found : Boolean; Query : ADO.SQL.Query; begin Query.Bind_Param (Position => 1, Value => Id); Query.Set_Filter ("id = ?"); Impl.Find (Session, Query, Found); if not Found then Destroy (Impl); raise ADO.Objects.NOT_FOUND; end if; ADO.Objects.Set_Object (Object, Impl.all'Access); end Load; procedure Load (Object : in out Comment_Ref; Session : in out ADO.Sessions.Session'Class; Id : in ADO.Identifier; Found : out Boolean) is Impl : constant Comment_Access := new Comment_Impl; Query : ADO.SQL.Query; begin Query.Bind_Param (Position => 1, Value => Id); Query.Set_Filter ("id = ?"); Impl.Find (Session, Query, Found); if not Found then Destroy (Impl); else ADO.Objects.Set_Object (Object, Impl.all'Access); end if; end Load; procedure Save (Object : in out Comment_Ref; Session : in out ADO.Sessions.Master_Session'Class) is Impl : ADO.Objects.Object_Record_Access := Object.Get_Object; begin if Impl = null then Impl := new Comment_Impl; ADO.Objects.Set_Object (Object, Impl); end if; if not ADO.Objects.Is_Created (Impl.all) then Impl.Create (Session); else Impl.Save (Session); end if; end Save; procedure Delete (Object : in out Comment_Ref; Session : in out ADO.Sessions.Master_Session'Class) is Impl : constant ADO.Objects.Object_Record_Access := Object.Get_Object; begin if Impl /= null then Impl.Delete (Session); end if; end Delete; -- -------------------- -- Free the object -- -------------------- procedure Destroy (Object : access Comment_Impl) is type Comment_Impl_Ptr is access all Comment_Impl; procedure Unchecked_Free is new Ada.Unchecked_Deallocation (Comment_Impl, Comment_Impl_Ptr); pragma Warnings (Off, "*redundant conversion*"); Ptr : Comment_Impl_Ptr := Comment_Impl (Object.all)'Access; pragma Warnings (On, "*redundant conversion*"); begin Unchecked_Free (Ptr); end Destroy; procedure Find (Object : in out Comment_Impl; Session : in out ADO.Sessions.Session'Class; Query : in ADO.SQL.Query'Class; Found : out Boolean) is Stmt : ADO.Statements.Query_Statement := Session.Create_Statement (Query, COMMENT_DEF'Access); begin Stmt.Execute; if Stmt.Has_Elements then Object.Load (Stmt, Session); Stmt.Next; Found := not Stmt.Has_Elements; else Found := False; end if; end Find; overriding procedure Load (Object : in out Comment_Impl; Session : in out ADO.Sessions.Session'Class) is Found : Boolean; Query : ADO.SQL.Query; Id : constant ADO.Identifier := Object.Get_Key_Value; begin Query.Bind_Param (Position => 1, Value => Id); Query.Set_Filter ("id = ?"); Object.Find (Session, Query, Found); if not Found then raise ADO.Objects.NOT_FOUND; end if; end Load; procedure Save (Object : in out Comment_Impl; Session : in out ADO.Sessions.Master_Session'Class) is Stmt : ADO.Statements.Update_Statement := Session.Create_Statement (COMMENT_DEF'Access); begin if Object.Is_Modified (1) then Stmt.Save_Field (Name => COL_0_1_NAME, -- create_date Value => Object.Create_Date); Object.Clear_Modified (1); end if; if Object.Is_Modified (2) then Stmt.Save_Field (Name => COL_1_1_NAME, -- message Value => Object.Message); Object.Clear_Modified (2); end if; if Object.Is_Modified (3) then Stmt.Save_Field (Name => COL_2_1_NAME, -- entity_id Value => Object.Entity_Id); Object.Clear_Modified (3); end if; if Object.Is_Modified (4) then Stmt.Save_Field (Name => COL_3_1_NAME, -- id Value => Object.Get_Key); Object.Clear_Modified (4); end if; if Object.Is_Modified (6) then Stmt.Save_Field (Name => COL_5_1_NAME, -- entity_type Value => Object.Entity_Type); Object.Clear_Modified (6); end if; if Object.Is_Modified (7) then Stmt.Save_Field (Name => COL_6_1_NAME, -- status Value => Integer (Status_Type'Pos (Object.Status))); Object.Clear_Modified (7); end if; if Object.Is_Modified (8) then Stmt.Save_Field (Name => COL_7_1_NAME, -- format Value => Integer (Format_Type'Pos (Object.Format))); Object.Clear_Modified (8); end if; if Object.Is_Modified (9) then Stmt.Save_Field (Name => COL_8_1_NAME, -- author_id Value => Object.Author); Object.Clear_Modified (9); end if; if Stmt.Has_Save_Fields then Object.Version := Object.Version + 1; Stmt.Save_Field (Name => "version", Value => Object.Version); Stmt.Set_Filter (Filter => "id = ? and version = ?"); Stmt.Add_Param (Value => Object.Get_Key); Stmt.Add_Param (Value => Object.Version - 1); declare Result : Integer; begin Stmt.Execute (Result); if Result /= 1 then if Result /= 0 then raise ADO.Objects.UPDATE_ERROR; else raise ADO.Objects.LAZY_LOCK; end if; end if; end; end if; end Save; procedure Create (Object : in out Comment_Impl; Session : in out ADO.Sessions.Master_Session'Class) is Query : ADO.Statements.Insert_Statement := Session.Create_Statement (COMMENT_DEF'Access); Result : Integer; begin Object.Version := 1; Query.Save_Field (Name => COL_0_1_NAME, -- create_date Value => Object.Create_Date); Query.Save_Field (Name => COL_1_1_NAME, -- message Value => Object.Message); Query.Save_Field (Name => COL_2_1_NAME, -- entity_id Value => Object.Entity_Id); Session.Allocate (Id => Object); Query.Save_Field (Name => COL_3_1_NAME, -- id Value => Object.Get_Key); Query.Save_Field (Name => COL_4_1_NAME, -- version Value => Object.Version); Query.Save_Field (Name => COL_5_1_NAME, -- entity_type Value => Object.Entity_Type); Query.Save_Field (Name => COL_6_1_NAME, -- status Value => Integer (Status_Type'Pos (Object.Status))); Query.Save_Field (Name => COL_7_1_NAME, -- format Value => Integer (Format_Type'Pos (Object.Format))); Query.Save_Field (Name => COL_8_1_NAME, -- author_id Value => Object.Author); Query.Execute (Result); if Result /= 1 then raise ADO.Objects.INSERT_ERROR; end if; ADO.Objects.Set_Created (Object); end Create; procedure Delete (Object : in out Comment_Impl; Session : in out ADO.Sessions.Master_Session'Class) is Stmt : ADO.Statements.Delete_Statement := Session.Create_Statement (COMMENT_DEF'Access); begin Stmt.Set_Filter (Filter => "id = ?"); Stmt.Add_Param (Value => Object.Get_Key); Stmt.Execute; end Delete; -- ------------------------------ -- Get the bean attribute identified by the name. -- ------------------------------ overriding function Get_Value (From : in Comment_Ref; Name : in String) return Util.Beans.Objects.Object is Obj : ADO.Objects.Object_Record_Access; Impl : access Comment_Impl; begin if From.Is_Null then return Util.Beans.Objects.Null_Object; end if; Obj := From.Get_Load_Object; Impl := Comment_Impl (Obj.all)'Access; if Name = "create_date" then return Util.Beans.Objects.Time.To_Object (Impl.Create_Date); elsif Name = "message" then return Util.Beans.Objects.To_Object (Impl.Message); elsif Name = "entity_id" then return Util.Beans.Objects.To_Object (Long_Long_Integer (Impl.Entity_Id)); elsif Name = "id" then return ADO.Objects.To_Object (Impl.Get_Key); elsif Name = "entity_type" then return Util.Beans.Objects.To_Object (Long_Long_Integer (Impl.Entity_Type)); elsif Name = "status" then return AWA.Comments.Models.Status_Type_Objects.To_Object (Impl.Status); elsif Name = "format" then return AWA.Comments.Models.Format_Type_Objects.To_Object (Impl.Format); end if; return Util.Beans.Objects.Null_Object; end Get_Value; -- ------------------------------ -- Load the object from current iterator position -- ------------------------------ procedure Load (Object : in out Comment_Impl; Stmt : in out ADO.Statements.Query_Statement'Class; Session : in out ADO.Sessions.Session'Class) is begin Object.Create_Date := Stmt.Get_Time (0); Object.Message := Stmt.Get_Unbounded_String (1); Object.Entity_Id := Stmt.Get_Identifier (2); Object.Set_Key_Value (Stmt.Get_Identifier (3)); Object.Entity_Type := ADO.Entity_Type (Stmt.Get_Integer (5)); Object.Status := Status_Type'Val (Stmt.Get_Integer (6)); Object.Format := Format_Type'Val (Stmt.Get_Integer (7)); if not Stmt.Is_Null (8) then Object.Author.Set_Key_Value (Stmt.Get_Identifier (8), Session); end if; Object.Version := Stmt.Get_Integer (4); ADO.Objects.Set_Created (Object); end Load; -- ------------------------------ -- Get the bean attribute identified by the name. -- ------------------------------ overriding function Get_Value (From : in Comment_Info; Name : in String) return Util.Beans.Objects.Object is begin if Name = "id" then return Util.Beans.Objects.To_Object (Long_Long_Integer (From.Id)); elsif Name = "author" then return Util.Beans.Objects.To_Object (From.Author); elsif Name = "email" then return Util.Beans.Objects.To_Object (From.Email); elsif Name = "date" then return Util.Beans.Objects.Time.To_Object (From.Date); elsif Name = "format" then return AWA.Comments.Models.Format_Type_Objects.To_Object (From.Format); elsif Name = "comment" then return Util.Beans.Objects.To_Object (From.Comment); elsif Name = "status" then return AWA.Comments.Models.Status_Type_Objects.To_Object (From.Status); end if; return Util.Beans.Objects.Null_Object; end Get_Value; -- ------------------------------ -- Set the value identified by the name -- ------------------------------ overriding procedure Set_Value (Item : in out Comment_Info; Name : in String; Value : in Util.Beans.Objects.Object) is begin if Name = "id" then Item.Id := ADO.Identifier (Util.Beans.Objects.To_Long_Long_Integer (Value)); elsif Name = "author" then Item.Author := Util.Beans.Objects.To_Unbounded_String (Value); elsif Name = "email" then Item.Email := Util.Beans.Objects.To_Unbounded_String (Value); elsif Name = "date" then Item.Date := Util.Beans.Objects.Time.To_Time (Value); elsif Name = "format" then Item.Format := AWA.Comments.Models.Format_Type_Objects.To_Value (Value); elsif Name = "comment" then Item.Comment := Util.Beans.Objects.To_Unbounded_String (Value); elsif Name = "status" then Item.Status := AWA.Comments.Models.Status_Type_Objects.To_Value (Value); end if; end Set_Value; -- -------------------- -- Run the query controlled by <b>Context</b> and append the list in <b>Object</b>. -- -------------------- procedure List (Object : in out Comment_Info_List_Bean'Class; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class) is begin List (Object.List, Session, Context); end List; -- -------------------- -- The comment information. -- -------------------- procedure List (Object : in out Comment_Info_Vector; Session : in out ADO.Sessions.Session'Class; Context : in out ADO.Queries.Context'Class) is procedure Read (Into : in out Comment_Info); Stmt : ADO.Statements.Query_Statement := Session.Create_Statement (Context); Pos : Natural := 0; procedure Read (Into : in out Comment_Info) is begin Into.Id := Stmt.Get_Identifier (0); Into.Author := Stmt.Get_Unbounded_String (1); Into.Email := Stmt.Get_Unbounded_String (2); Into.Date := Stmt.Get_Time (3); Into.Format := AWA.Comments.Models.Format_Type'Val (Stmt.Get_Integer (4)); Into.Comment := Stmt.Get_Unbounded_String (5); Into.Status := AWA.Comments.Models.Status_Type'Val (Stmt.Get_Integer (6)); end Read; begin Stmt.Execute; Comment_Info_Vectors.Clear (Object); while Stmt.Has_Elements loop Object.Insert_Space (Before => Pos); Object.Update_Element (Index => Pos, Process => Read'Access); Pos := Pos + 1; Stmt.Next; end loop; end List; procedure Op_Create (Bean : in out Comment_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String); procedure Op_Create (Bean : in out Comment_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is begin Comment_Bean'Class (Bean).Create (Outcome); end Op_Create; package Binding_Comment_Bean_1 is new ASF.Events.Faces.Actions.Action_Method.Bind (Bean => Comment_Bean, Method => Op_Create, Name => "create"); procedure Op_Delete (Bean : in out Comment_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String); procedure Op_Delete (Bean : in out Comment_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is begin Comment_Bean'Class (Bean).Delete (Outcome); end Op_Delete; package Binding_Comment_Bean_2 is new ASF.Events.Faces.Actions.Action_Method.Bind (Bean => Comment_Bean, Method => Op_Delete, Name => "delete"); procedure Op_Save (Bean : in out Comment_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String); procedure Op_Save (Bean : in out Comment_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is begin Comment_Bean'Class (Bean).Save (Outcome); end Op_Save; package Binding_Comment_Bean_3 is new ASF.Events.Faces.Actions.Action_Method.Bind (Bean => Comment_Bean, Method => Op_Save, Name => "save"); procedure Op_Publish (Bean : in out Comment_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String); procedure Op_Publish (Bean : in out Comment_Bean; Outcome : in out Ada.Strings.Unbounded.Unbounded_String) is begin Comment_Bean'Class (Bean).Publish (Outcome); end Op_Publish; package Binding_Comment_Bean_4 is new ASF.Events.Faces.Actions.Action_Method.Bind (Bean => Comment_Bean, Method => Op_Publish, Name => "publish"); Binding_Comment_Bean_Array : aliased constant Util.Beans.Methods.Method_Binding_Array := (1 => Binding_Comment_Bean_1.Proxy'Access, 2 => Binding_Comment_Bean_2.Proxy'Access, 3 => Binding_Comment_Bean_3.Proxy'Access, 4 => Binding_Comment_Bean_4.Proxy'Access ); -- ------------------------------ -- This bean provides some methods that can be used in a Method_Expression. -- ------------------------------ overriding function Get_Method_Bindings (From : in Comment_Bean) return Util.Beans.Methods.Method_Binding_Array_Access is pragma Unreferenced (From); begin return Binding_Comment_Bean_Array'Access; end Get_Method_Bindings; -- ------------------------------ -- Set the value identified by the name -- ------------------------------ overriding procedure Set_Value (Item : in out Comment_Bean; Name : in String; Value : in Util.Beans.Objects.Object) is begin if Name = "create_date" then Item.Set_Create_Date (Util.Beans.Objects.Time.To_Time (Value)); elsif Name = "message" then Item.Set_Message (Util.Beans.Objects.To_String (Value)); elsif Name = "entity_id" then Item.Set_Entity_Id (ADO.Identifier (Util.Beans.Objects.To_Long_Long_Integer (Value))); elsif Name = "entity_type" then Item.Set_Entity_Type (ADO.Entity_Type (Util.Beans.Objects.To_Integer (Value))); elsif Name = "status" then Item.Set_Status (Status_Type_Objects.To_Value (Value)); elsif Name = "format" then Item.Set_Format (Format_Type_Objects.To_Value (Value)); end if; end Set_Value; end AWA.Comments.Models;
applescripts/filter-songs.applescript
Tyilo/play-song
0
2927
-- filters songs by the typed query -- -- load workflow configuration do shell script "bash ./compile-config.sh" set config to load script POSIX file ((do shell script "pwd") & "/config.scpt") -- constructs song result list as XML string on getSongResultListXml(query) global config -- search iTunes library for the given query tell application "iTunes" -- search Music playlist for songs matching query set theSongs to (search playlist 2 for query) -- inform user that no results were found (prompt to switch to iTunes instead) if length of theSongs is 0 then addResult({uid:"no-results", arg:"null", valid:"no", title:"No Songs Found", subtitle:("No songs matching '" & query & "'"), icon:defaultIconName of config}) of config else -- loop through the results to create the XML data set songIndex to 1 repeat with theSong in theSongs -- limit number of results if songIndex is greater than (resultLimit of config) then exit repeat -- get song information set songId to (get database ID of theSong) set songName to name of theSong set songArtist to artist of theSong set songAlbum to album of theSong set songKind to kind of theSong -- exclude digital booklets from results if songKind contains (songDescriptor of config) then set songArtworkPath to getSongArtworkPath(theSong) of config -- add song information to XML addResult({uid:("song-" & songId), arg:songId as text, valid:"yes", title:songName, subtitle:songArtist, icon:songArtworkPath}) of config set songIndex to songIndex + 1 end if end repeat end if end tell return getResultListXml() of config end getSongResultListXml createArtworkCache() of config getSongResultListXml("{query}")
programs/oeis/166/A166957.asm
neoneye/loda
22
177251
<filename>programs/oeis/166/A166957.asm ; A166957: a(n) = 841*n^3 + 261*n^2 + 28*n + 1. ; 1,1131,7829,25141,58113,111791,191221,301449,447521,634483,867381,1151261,1491169,1892151,2359253,2897521,3512001,4207739,4989781,5863173,6832961,7904191,9081909,10371161,11776993,13304451,14958581,16744429,18667041,20731463,22942741,25305921,27826049,30508171,33357333,36378581,39576961,42957519,46525301,50285353,54242721,58402451,62769589,67349181,72146273,77165911,82413141,87893009,93610561,99570843,105778901,112239781,118958529,125940191,133189813,140712441,148513121,156596899,164968821,173633933,182597281,191863911,201438869,211327201,221533953,232064171,242922901,254115189,265646081,277520623,289743861,302320841,315256609,328556211,342224693,356267101,370688481,385493879,400688341,416276913,432264641,448656571,465457749,482673221,500308033,518367231,536855861,555778969,575141601,594948803,615205621,635917101,657088289,678724231,700829973,723410561,746471041,770016459,794051861,818582293 mov $4,$0 mul $0,16 pow $0,2 add $0,1 mov $2,$4 mul $2,28 add $0,$2 mov $3,$4 mul $3,$4 mov $2,$3 mul $2,5 add $0,$2 mul $3,$4 mov $2,$3 mul $2,841 add $0,$2
src/interface/cl-vector_set.ads
flyx/OpenCLAda
8
5600
<gh_stars>1-10 -------------------------------------------------------------------------------- -- Copyright (c) 2013, <NAME> <<EMAIL>> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -------------------------------------------------------------------------------- with CL.Vector_Operations; generic type Base is private; type Base_Vector is array (Natural range <>) of aliased Base; with function "+" (Left, Right: Base) return Base is <>; with function "-" (Left, Right: Base) return Base is <>; with function "*" (Left, Right: Base) return Base is <>; with function "/" (Left, Right: Base) return Base is <>; --with function "=" (Left, Right: Base) return Boolean is <>; with function To_String (Values : Base) return String is <>; package CL.Vector_Set is pragma Preelaborate (CL.Vector_Set); -- TODO: GNAT has a bug that causes pragma Unchecked_Union -- not to be inherited to derived types. Therefore, accessing -- the records with named parameters is currently disabled. -- See http://stackoverflow.com/questions/14663316/derive-from-unchecked-union -- type Access_Kind is (Named, Indexed); package V2 is new Vector_Operations (Base => Base, Base_Vector => Base_Vector, Vector_Range => Range2); package V3 is new Vector_Operations (Base => Base, Base_Vector => Base_Vector, Vector_Range => Range3); package V4 is new Vector_Operations (Base => Base, Base_Vector => Base_Vector, Vector_Range => Range4); package V8 is new Vector_Operations (Base => Base, Base_Vector => Base_Vector, Vector_Range => Range8); package V16 is new Vector_Operations (Base => Base, Base_Vector => Base_Vector, Vector_Range => Range16); type R2 is record -- type R2 (Kind : Access_Kind := Access_Kind'First) is record -- case Kind is -- when Named => -- X, Y : Base; -- when Indexed => S : V2.Vector; -- end case; end record; type R3 is record -- type R3 (Kind : Access_Kind := Access_Kind'First) is record -- case Kind is -- when Named => -- X, Y, Z : Base; -- when Indexed => S : V3.Vector; -- end case; end record; type R4 is record -- type R4 (Kind : Access_Kind := Access_Kind'First) is record -- case Kind is -- when Named => -- X, Y, Z, W : Base; -- when Indexed => S : V4.Vector; -- end case; end record; type R8 is record -- type R8 (Kind : Access_Kind := Access_Kind'First) is record -- case Kind is -- when Named => -- S0, S1, S2, S3, S4, S5, S6, S7 : Base; -- when Indexed => S : V8.Vector; -- end case; end record; type R16 is record -- type R16 (Kind : Access_Kind := Access_Kind'First) is record -- case Kind is -- when Named => -- S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, SA, SB, SC, SD, SE, SF : Base; -- when Indexed => S : V16.Vector; -- end case; end record; -- pragma Unchecked_Union (R2); -- pragma Unchecked_Union (R3); -- pragma Unchecked_Union (R4); -- pragma Unchecked_Union (R8); -- pragma Unchecked_Union (R16); pragma Convention (C_Pass_By_Copy, R2); pragma Convention (C_Pass_By_Copy, R3); pragma Convention (C_Pass_By_Copy, R4); pragma Convention (C_Pass_By_Copy, R8); pragma Convention (C_Pass_By_Copy, R16); function CL_Vector (X, Y : Base) return R2; function CL_Vector (V : V2.Vector) return R2; function CL_Vector (X, Y, Z : Base) return R3; function CL_Vector (V : V3.Vector) return R3; function CL_Vector (X, Y, Z, W : Base) return R4; function CL_Vector (V : V4.Vector) return R4; function CL_Vector (S0, S1, S2, S3, S4, S5, S6, S7 : Base) return R8; function CL_Vector (V : V8.Vector) return R8; function CL_Vector (S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, SA, SB, SC, SD, SE, SF : Base) return R16; function CL_Vector (V : V16.Vector) return R16; pragma Inline (CL_Vector); function To_String (Value : R2) return String; function To_String (Value : R3) return String; function To_String (Value : R4) return String; function To_String (Value : R8) return String; function To_String (Value : R16) return String; pragma Inline (To_String); generic type Record_Type is new R2; type Record_Array is array (Integer range <>) of Record_Type; function Vector2_Array (List : V2.Vector_Array) return Record_Array; generic type Record_Type is new R3; type Record_Array is array (Integer range <>) of Record_Type; function Vector3_Array (List : V3.Vector_Array) return Record_Array; generic type Record_Type is new R4; type Record_Array is array (Integer range <>) of Record_Type; function Vector4_Array (List : V4.Vector_Array) return Record_Array; generic type Record_Type is new R8; type Record_Array is array (Integer range <>) of Record_Type; function Vector8_Array (List : V8.Vector_Array) return Record_Array; generic type Record_Type is new R16; type Record_Array is array (Integer range <>) of Record_Type; function Vector16_Array (List : V16.Vector_Array) return Record_Array; end CL.Vector_Set;
oeis/210/A210277.asm
neoneye/loda-programs
11
87958
<filename>oeis/210/A210277.asm ; A210277: a(n) = (3*n)!/3^n. ; Submitted by <NAME> ; 1,2,80,13440,5913600,5381376000,8782405632000,23361198981120000,94566133475573760000,553211880832106496000000,4492080472356704747520000000,49017582114356362204938240000000,699971072593008852286518067200000000,12794071264855015802092977232281600000000,293751876241071162816054757253185536000000000,8336678247721599600719634010845405511680000000000,288382373945185573388093579703164267460034560000000000,12011125874816979131614097594636791739710439424000000000000 mov $2,1 mov $5,24 lpb $0 sub $0,1 mov $3,$2 add $2,3 mov $4,2 mul $4,$3 add $6,$4 mul $5,$6 mul $5,$3 lpe mov $0,$5 div $0,24
3-mid/opengl/source/lean/model/opengl-model-sphere-colored.adb
charlie5/lace-alire
1
24974
<gh_stars>1-10 with openGL.Geometry .colored, openGL.Primitive.indexed; package body openGL.Model.sphere.colored is --------- --- Forge -- function new_Sphere (Radius : in Real; lat_Count : in Positive := openGL.Model.sphere.default_latitude_Count; long_Count : in Positive := openGL.Model.sphere.default_longitude_Count; Color : in openGL.lucid_Color) return View is Self : constant View := new Item; begin Self.Color := Color; Self.lat_Count := lat_Count; Self.long_Count := long_Count; Self.define (Radius); return Self; end new_Sphere; -------------- --- Attributes -- -- NB: - An extra vertex is required at the end of each latitude ring. -- - This last vertex has the same site as the rings initial vertex. -- - The last vertex has 's' texture coord of 1.0, whereas -- the initial vertex has 's' texture coord of 0.0. -- overriding function to_GL_Geometries (Self : access Item; Textures : access Texture.name_Map_of_texture'Class; Fonts : in Font.font_id_Map_of_font) return Geometry.views is pragma unreferenced (Textures, Fonts); lat_Count : Positive renames Self.lat_Count; long_Count : Positive renames Self.long_Count; Num_lat_strips : constant Positive := lat_Count - 1; lat_Spacing : constant Real := Degrees_180 / Real (lat_Count - 1); long_Spacing : constant Real := Degrees_360 / Real (long_Count); indices_Count : constant long_Index_t := long_Index_t (Num_lat_strips * (long_Count + 1) * 2); vertex_Count : constant Index_t := 1 + 1 -- North and south pole. + Index_t ((long_Count + 1) * (lat_Count - 2)); -- Each latitude ring. the_Sites : aliased Sites := (1 .. vertex_Count => <>); the_Indices : aliased Indices := (1 .. indices_Count => <>); the_Vertices : aliased Geometry.colored.Vertex_array := (1 .. vertex_Count => <>); Color : constant openGL.rgba_Color := to_rgba_Color (Self.Color); the_Geometry : constant Geometry.colored.view := Geometry.colored.new_Geometry; begin set_Sites: declare use linear_Algebra_3d; north_Pole : constant Site := (0.0, 0.5, 0.0); south_Pole : constant Site := (0.0, -0.5, 0.0); the_Site : Site := north_Pole; vert_Id : Index_t := 1; -- Start at '1' (not '0')to account for north pole. a, b : Real := 0.0; -- Angular 'cursors' used to track lat/long for texture coords. latitude_line_First : Site; begin the_Sites (the_Vertices'First) := north_Pole; the_Vertices (the_Vertices'First).Site := north_Pole; the_Vertices (the_Vertices'First).Color := Color; the_Sites (the_Vertices'Last) := south_Pole; the_Vertices (the_Vertices'Last).Site := south_Pole; the_Vertices (the_Vertices'Last).Color := Color; for lat_Id in 2 .. lat_Count - 1 loop a := 0.0; b := b + lat_Spacing; the_Site := the_Site * z_Rotation_from (lat_Spacing); latitude_line_First := the_Site; -- Store initial latitude lines 1st point. vert_Id := vert_Id + 1; the_Sites (vert_Id) := the_Site; -- Add 1st point on a line of latitude. the_Vertices (vert_Id).Site := the_Site; the_Vertices (vert_Id).Color := Color; for long_Id in 1 .. long_Count loop a := a + long_Spacing; if long_Id /= long_Count then the_Site := the_Site * y_Rotation_from (-long_Spacing); else the_Site := latitude_line_First; -- Restore the_Vertex back to initial latitude lines 1st point. end if; vert_Id := vert_Id + 1; the_Sites (vert_Id) := the_Site; -- Add each succesive point on a line of latitude. the_Vertices (vert_Id).Site := the_Site; the_Vertices (vert_Id).Color := Color; end loop; end loop; end set_Sites; for i in the_Vertices'Range loop the_Vertices (i).Site := the_Vertices (i).Site * Self.Radius; end loop; set_Indices: declare strip_Id : long_Index_t := 0; Upper : Index_t; Lower : Index_t; begin upper := 1; lower := 2; for lat_Strip in 1 .. num_lat_Strips loop for Each in 1 .. long_Count + 1 loop strip_Id := strip_Id + 1; the_Indices (strip_Id) := Upper; strip_Id := strip_Id + 1; the_Indices (strip_Id) := Lower; if lat_Strip /= 1 then Upper := Upper + 1; end if; if lat_Strip /= num_lat_Strips then Lower := Lower + 1; end if; end loop; if lat_Strip = 1 then Upper := 2; end if; Lower := Upper + Index_t (long_Count) + 1; end loop; end set_Indices; the_Geometry.is_Transparent (False); the_Geometry.Vertices_are (the_Vertices); declare the_Primitive : constant Primitive.indexed.view := Primitive.indexed.new_Primitive (Primitive.triangle_Strip, the_Indices); begin the_Geometry.add (Primitive.view (the_Primitive)); end; return (1 => Geometry.view (the_Geometry)); end to_GL_Geometries; end openGL.Model.sphere.colored;
oeis/061/A061238.asm
neoneye/loda-programs
11
243462
; A061238: Prime numbers == 2 (mod 9). ; Submitted by <NAME> ; 2,11,29,47,83,101,137,173,191,227,263,281,317,353,389,443,461,479,569,587,641,659,677,821,839,857,911,929,947,983,1019,1091,1109,1163,1181,1217,1289,1307,1361,1433,1451,1487,1523,1559,1613,1667,1721,1811,1847,1901,1973,2027,2063,2081,2099,2153,2207,2243,2297,2333,2351,2423,2441,2459,2477,2531,2549,2621,2657,2693,2711,2729,2801,2819,2837,2909,2927,2963,2999,3089,3251,3323,3359,3413,3449,3467,3539,3557,3593,3701,3719,3863,3881,3917,3989,4007,4079,4133,4241,4259 mov $1,10 mov $2,$0 pow $2,2 lpb $2 sub $2,1 mov $3,$1 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 add $1,9 mov $4,$0 max $4,1 cmp $4,$0 mul $2,$4 lpe mov $0,$1 sub $0,8
oeis/287/A287168.asm
neoneye/loda-programs
11
6106
; A287168: Number of non-attacking bishop positions on a cylindrical 3 X 2n chessboard. ; Submitted by <NAME> ; 1,16,144,1156,11664,118336,1218816,12574116,129868816,1341610384,13860823824,143206237476,1479580304400,15286786268224,157940749232704,1631820172890436,16859722986240016,174192150898142224,1799727414404326416,18594516209802790084,192115778508781642384,1984911677384063321664,20507812517365097718784,211883671726201681455844,2189150613038796842956816,22617978853843833512296336,233685596772682539623607184,2414404863135465466119350116,24945272295934625603453289744,257730846810103503813937692736 mov $3,$0 seq $0,61703 ; G.f.: 2*x*(2-2*x-3*x^2+2*x^3)/((1-3*x-x^2+x^3)*(1-x)). pow $0,2 pow $2,$3 add $0,$2
test/asset/agda-stdlib-1.0/Data/Product.agda
omega12345/agda-mode
0
9166
<gh_stars>0 ------------------------------------------------------------------------ -- The Agda standard library -- -- Products ------------------------------------------------------------------------ {-# OPTIONS --without-K --safe #-} module Data.Product where open import Function open import Level open import Relation.Nullary open import Agda.Builtin.Equality infixr 4 _,′_ infix 4 -,_ infixr 2 _×_ _-×-_ _-,-_ ------------------------------------------------------------------------ -- Definition open import Agda.Builtin.Sigma hiding (module Σ) public renaming (fst to proj₁; snd to proj₂) module Σ = Agda.Builtin.Sigma.Σ renaming (fst to proj₁; snd to proj₂) -- The syntax declaration below is attached to Σ-syntax, to make it -- easy to import Σ without the special syntax. infix 2 Σ-syntax Σ-syntax : ∀ {a b} (A : Set a) → (A → Set b) → Set (a ⊔ b) Σ-syntax = Σ syntax Σ-syntax A (λ x → B) = Σ[ x ∈ A ] B ∃ : ∀ {a b} {A : Set a} → (A → Set b) → Set (a ⊔ b) ∃ = Σ _ ∃-syntax : ∀ {a b} {A : Set a} → (A → Set b) → Set (a ⊔ b) ∃-syntax = ∃ syntax ∃-syntax (λ x → B) = ∃[ x ] B ∄ : ∀ {a b} {A : Set a} → (A → Set b) → Set (a ⊔ b) ∄ P = ¬ ∃ P ∄-syntax : ∀ {a b} {A : Set a} → (A → Set b) → Set (a ⊔ b) ∄-syntax = ∄ syntax ∄-syntax (λ x → B) = ∄[ x ] B ∃₂ : ∀ {a b c} {A : Set a} {B : A → Set b} (C : (x : A) → B x → Set c) → Set (a ⊔ b ⊔ c) ∃₂ C = ∃ λ a → ∃ λ b → C a b _×_ : ∀ {a b} (A : Set a) (B : Set b) → Set (a ⊔ b) A × B = Σ[ x ∈ A ] B _,′_ : ∀ {a b} {A : Set a} {B : Set b} → A → B → A × B _,′_ = _,_ ------------------------------------------------------------------------ -- Unique existence -- Parametrised on the underlying equality. ∃! : ∀ {a b ℓ} {A : Set a} → (A → A → Set ℓ) → (A → Set b) → Set (a ⊔ b ⊔ ℓ) ∃! _≈_ B = ∃ λ x → B x × (∀ {y} → B y → x ≈ y) ------------------------------------------------------------------------ -- Functions -- Sometimes the first component can be inferred. -,_ : ∀ {a b} {A : Set a} {B : A → Set b} {x} → B x → ∃ B -, y = _ , y <_,_> : ∀ {a b c} {A : Set a} {B : A → Set b} {C : ∀ {x} → B x → Set c} (f : (x : A) → B x) → ((x : A) → C (f x)) → ((x : A) → Σ (B x) C) < f , g > x = (f x , g x) map : ∀ {a b p q} {A : Set a} {B : Set b} {P : A → Set p} {Q : B → Set q} → (f : A → B) → (∀ {x} → P x → Q (f x)) → Σ A P → Σ B Q map f g (x , y) = (f x , g y) map₁ : ∀ {a b c} {A : Set a} {B : Set b} {C : Set c} → (A → B) → A × C → B × C map₁ f = map f id map₂ : ∀ {a b c} {A : Set a} {B : A → Set b} {C : A → Set c} → (∀ {x} → B x → C x) → Σ A B → Σ A C map₂ f = map id f zip : ∀ {a b c p q r} {A : Set a} {B : Set b} {C : Set c} {P : A → Set p} {Q : B → Set q} {R : C → Set r} → (_∙_ : A → B → C) → (∀ {x y} → P x → Q y → R (x ∙ y)) → Σ A P → Σ B Q → Σ C R zip _∙_ _∘_ (a , p) (b , q) = ((a ∙ b) , (p ∘ q)) swap : ∀ {a b} {A : Set a} {B : Set b} → A × B → B × A swap (x , y) = (y , x) _-×-_ : ∀ {a b i j} {A : Set a} {B : Set b} → (A → B → Set i) → (A → B → Set j) → (A → B → Set _) f -×- g = f -[ _×_ ]- g _-,-_ : ∀ {a b c d} {A : Set a} {B : Set b} {C : Set c} {D : Set d} → (A → B → C) → (A → B → D) → (A → B → C × D) f -,- g = f -[ _,_ ]- g curry : ∀ {a b c} {A : Set a} {B : A → Set b} {C : Σ A B → Set c} → ((p : Σ A B) → C p) → ((x : A) → (y : B x) → C (x , y)) curry f x y = f (x , y) curry′ : ∀ {a b c} {A : Set a} {B : Set b} {C : Set c} → (A × B → C) → (A → B → C) curry′ = curry uncurry : ∀ {a b c} {A : Set a} {B : A → Set b} {C : Σ A B → Set c} → ((x : A) → (y : B x) → C (x , y)) → ((p : Σ A B) → C p) uncurry f (x , y) = f x y uncurry′ : ∀ {a b c} {A : Set a} {B : Set b} {C : Set c} → (A → B → C) → (A × B → C) uncurry′ = uncurry
Bank_A/6_initacc.asm
ndf-zz/fv1testing
0
178758
; FV-1 Testing ; ; Program: ACC Init Val ; ; note: also writes into delay for use with program 7 ; ; Expected output: 0.0 skp RUN,output wrax REG1,0.0 ; store ACC init value output: ldax REG1 wrax DACL,0.0 ; Copy ADCL into delay memory for program 7 or 0x800000 ; load -1.0 wra 0,1.0 ; save to delay start not ; invert wra 0x3fff,1.0 ; save to delay middle, and keep ACC
apps/x64-guest/src/rom.asm
fengjixuchui/virt86-demos
14
161858
; Compile with NASM: ; $ nasm rom.asm -o rom.bin %define PAGE_PRESENT (1 << 0) %define PAGE_WRITE (1 << 1) %define CODE_SEG 0x0008 %define DATA_SEG 0x0010 ; This is where the ROM is loaded org 0xFFFF0000 ; Main code adapted from https://wiki.osdev.org/Entering_Long_Mode_Directly ALIGN 4 IDT: .Length dw 0 .Base dd 0 ; Function to switch directly to long mode from real mode. ; Identity maps the first 2MiB and last 64KiB. ; Uses Intel syntax. ; es:edi Should point to a valid page-aligned 16KiB buffer, for the PML4, PDPT, PD and a PT. ; ss:esp Should point to memory that can be used as a small (1 uint32_t) stack SwitchToLongMode: ; Zero out the 16KiB buffer. ; Since we are doing a rep stosd, count should be bytes/4. push di ; REP STOSD alters DI. mov ecx, 0x1000 xor eax, eax cld rep stosd pop di ; Get DI back. ; Build the Page Map Level 4. ; es:di points to the Page Map Level 4 table. lea eax, [es:di + 0x1000] ; Put the address of the Page Directory Pointer Table in to EAX. or eax, PAGE_PRESENT | PAGE_WRITE ; Or EAX with the flags - present flag, writable flag. mov [es:di], eax ; Store the value of EAX as the first PML4E. ; Build the Page Directory Pointer Table. lea eax, [es:di + 0x2000] ; Put the address of the Page Directory in to EAX. or eax, PAGE_PRESENT | PAGE_WRITE ; Or EAX with the flags - present flag, writable flag. mov [es:di + 0x1000], eax ; Store the value of EAX as the first PDPTE. mov [es:di + 0x1018], eax ; Store the value of EAX as the fourth PDPTE. ; Build the Page Directory. lea eax, [es:di + 0x3000] ; Put the address of the Page Table in to EAX. or eax, PAGE_PRESENT | PAGE_WRITE ; Or EAX with the flags - present flag, writeable flag. mov [es:di + 0x2000], eax ; Store to value of EAX as the first PDE. add eax, 0x1000 ; Move to the next entry mov [es:di + 0x2ff8], eax ; Store the value of EAX as the last PDE. push di ; Save DI for the time being. ; Build the RAM Page Table. lea di, [di + 0x3000] ; Point DI to the RAM page table. mov eax, PAGE_PRESENT | PAGE_WRITE ; Move the flags into EAX - and point it to 0x0000. .LoopRAMPageTable: mov [es:di], eax add eax, 0x1000 add di, 8 cmp eax, 0x200000 ; If we did all 2MiB, end. jb .LoopRAMPageTable pop di ; Restore DI. push di ; Build the ROM Page Table. lea di, [di + 0x4F80] ; Point DI to the ROM page table. mov eax, 0xFFFF0000 | PAGE_PRESENT | PAGE_WRITE ; Move the flags into EAX - and point it to 0xFFFF0000. .LoopROMPageTable: mov [es:di], eax add eax, 0x1000 add di, 8 cmp eax, 0xFFFF0000 ; If we did all 64KiB, end. jnb .LoopROMPageTable pop di ; Restore DI. ; Disable IRQs ;mov al, 0xFF ; Out 0xFF to 0xA1 and 0x21 to disable all IRQs. ;out 0xA1, al ;out 0x21, al nop nop o32 lidt [cs:IDT] ; Load a zero length IDT so that any NMI causes a triple fault. ; Enter long mode. mov eax, 10100000b ; Set the PAE and PGE bit. mov cr4, eax mov edx, edi ; Point CR3 at the PML4. mov cr3, edx mov ecx, 0xC0000080 ; Read from the EFER MSR. rdmsr or eax, 0x00000100 ; Set the LME bit. wrmsr mov ebx, cr0 ; Activate long mode - or ebx, 0x80000001 ; - by enabling paging and protection simultaneously. mov cr0, ebx o32 lgdt [cs:GDT.Pointer] ; Load GDT.Pointer defined below. jmp dword CODE_SEG:LongMode ; Load CS with 64 bit segment and flush the instruction cache ; Global Descriptor Table ALIGN 16 GDT: .Null: dq 0x0000000000000000 ; Null Descriptor - should be present. .Code: dq 0x00209B0000000000 ; 64-bit code descriptor (exec/read). dq 0x0000930000000000 ; 64-bit data descriptor (read/write). .End: ALIGN 4 dw 0 ; Padding to make the "address of the GDT" field aligned on a 4-byte boundary .Pointer: dw GDT.End - GDT ; 16-bit Size (Limit) of GDT. dd GDT ; 32-bit Base Address of GDT. (CPU will zero extend to 64-bit) [BITS 64] LongMode: ; Load segments mov ax, DATA_SEG mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax ; Put the stack at the top of RAM mov rsp, 0x200000 mov rbp, rsp ; Jump to program entry point in RAM mov rax, 0x10000 jmp rax ; Reset vector entry point [BITS 16] times 0xFFF0 - ($-$$) db 0 jmp SwitchToLongMode cli hlt times 0xFFFF - ($-$$) + 1 hlt
boot/disk_load.asm
aosmith/toy-os
10
98643
disk_load: push dx mov ah, 0x02 mov al, dh mov ch, 0x00 mov dh, 0x00 mov cl, 0x02 int 0x13 jc disk_error pop dx cmp dh, al jne disk_error ret disk_error: mov si, DISK_ERROR_MSG call print_r jmp $ DISK_ERROR_MSG db "Disk error!", 0
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_25.asm
ljhsiun2/medusa
9
175613
<reponame>ljhsiun2/medusa .global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_WT_ht+0x1a47b, %rsi lea addresses_A_ht+0x12125, %rdi clflush (%rsi) nop nop nop nop add $7425, %r13 mov $53, %rcx rep movsl nop nop nop sub $46241, %rcx lea addresses_WC_ht+0x18d3b, %rsi lea addresses_normal_ht+0xc33b, %rdi nop nop nop nop add $4948, %r9 mov $106, %rcx rep movsq nop nop nop nop nop dec %r13 lea addresses_WC_ht+0x1865b, %r9 nop nop sub $34711, %r10 movups (%r9), %xmm0 vpextrq $0, %xmm0, %rdi add $5153, %rcx lea addresses_UC_ht+0x27cb, %rsi nop sub %r8, %r8 movb (%rsi), %cl nop cmp %rcx, %rcx lea addresses_UC_ht+0x1c93b, %r10 nop nop nop nop sub $4468, %rdi movb $0x61, (%r10) nop nop sub $31394, %rsi lea addresses_WT_ht+0xbcfb, %rsi lea addresses_D_ht+0xa68b, %rdi inc %rax mov $29, %rcx rep movsb nop cmp %r8, %r8 lea addresses_A_ht+0x5969, %rsi lea addresses_A_ht+0x1ed23, %rdi sub %rax, %rax mov $103, %rcx rep movsq nop nop nop and %rsi, %rsi lea addresses_normal_ht+0x963b, %rsi lea addresses_UC_ht+0x1863b, %rdi nop nop nop nop nop inc %r8 mov $93, %rcx rep movsb nop nop cmp %rdi, %rdi lea addresses_D_ht+0x2c33, %rsi nop nop nop nop sub $62380, %rcx mov (%rsi), %r9w nop nop add %r8, %r8 lea addresses_WT_ht+0x1209b, %rdi nop nop nop nop nop add $5788, %rcx movb $0x61, (%rdi) nop nop nop add $27377, %rdi lea addresses_A_ht+0x17f97, %rsi lea addresses_A_ht+0x2f3b, %rdi nop inc %r9 mov $4, %rcx rep movsw nop nop nop nop and $49935, %r10 lea addresses_A_ht+0x1e07f, %rsi nop nop nop nop sub $11401, %rax movb $0x61, (%rsi) nop dec %r9 lea addresses_WC_ht+0x18415, %r10 clflush (%r10) nop nop nop nop nop sub %rcx, %rcx mov (%r10), %r13d and %rsi, %rsi lea addresses_D_ht+0xab3b, %r9 nop nop nop nop nop inc %rdi movb $0x61, (%r9) nop nop nop nop sub $24789, %rsi lea addresses_normal_ht+0x1e93b, %rsi lea addresses_D_ht+0x12292, %rdi clflush (%rsi) and %rax, %rax mov $63, %rcx rep movsw nop nop nop lfence pop %rsi pop %rdi pop %rcx pop %rax pop %r9 pop %r8 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %rbp push %rbx push %rcx push %rdi push %rdx // Load lea addresses_WC+0x15b3b, %rbx add %rdi, %rdi movb (%rbx), %r13b nop nop nop nop sub $25495, %rcx // Faulty Load lea addresses_WC+0x15b3b, %r13 nop nop and $31489, %rbp mov (%r13), %bx lea oracles, %rcx and $0xff, %rbx shlq $12, %rbx mov (%rcx,%rbx,1), %rbx pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 1, 'AVXalign': True}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': True}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': True, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}} {'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False}} {'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 11, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
source/context/webidl-arguments.ads
reznikmm/webidl
0
13649
<gh_stars>0 -- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Iterator_Interfaces; with League.Strings; with WebIDL.Types; package WebIDL.Arguments is pragma Preelaborate; type Argument is limited interface; function Assigned (Self : access Argument'Class) return Boolean is (Self /= null); type Argument_Access is access all Argument'Class with Storage_Size => 0; not overriding function Name (Self : Argument) return League.Strings.Universal_String is abstract; not overriding function Is_Optional (Self : Argument) return Boolean is abstract; not overriding function Has_Ellipsis (Self : Argument) return Boolean is abstract; not overriding function Get_Type (Self : Argument) return not null WebIDL.Types.Type_Access is abstract; type Cursor is record Index : Positive; Argument : Argument_Access; end record; function Has_Element (Self : Cursor) return Boolean is (Self.Argument.Assigned); package Iterators is new Ada.Iterator_Interfaces (Cursor, Has_Element); type Argument_Iterator_Access is access constant Iterators.Forward_Iterator'Class with Storage_Size => 0; end WebIDL.Arguments;
test/Succeed/Issue4769.agda
shlevy/agda
1,989
6924
<gh_stars>1000+ -- Andreas, 2020-06-21, issue #4769 -- Name and hiding ignored in subsequent face constraint patterns. -- Instead, we should throw a warning. open import Agda.Primitive.Cubical data S : Set where base : S foo : ∀ i j → Partial _ S foo i j (i = i0) {{agdaDoesNotSeeThisName = (j = i1)}} = base -- Expect: warning about name and "instance" flavor and argument.
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_450.asm
ljhsiun2/medusa
9
103116
<gh_stars>1-10 .global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_WC_ht+0x16bcf, %rsi lea addresses_WC_ht+0x1952f, %rdi nop nop nop nop nop sub %r8, %r8 mov $50, %rcx rep movsb nop cmp %rsi, %rsi lea addresses_WC_ht+0x1ce8f, %rsi lea addresses_normal_ht+0xe4af, %rdi nop nop nop nop nop sub $39193, %r15 mov $62, %rcx rep movsq nop nop nop nop xor $34626, %rsi lea addresses_WT_ht+0x147e7, %rax nop nop sub $3072, %r8 movb (%rax), %cl nop nop nop cmp $38603, %r8 lea addresses_A_ht+0x1cbff, %r15 nop nop nop nop nop dec %r14 mov (%r15), %di nop nop nop add $2396, %rdi lea addresses_A_ht+0x9067, %r15 dec %rsi movl $0x61626364, (%r15) nop sub $22751, %r15 lea addresses_normal_ht+0x157cf, %rsi lfence mov $0x6162636465666768, %r14 movq %r14, (%rsi) add $61220, %r8 pop %rsi pop %rdi pop %rcx pop %rax pop %r8 pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %r8 push %rcx push %rdi push %rsi // REPMOV lea addresses_D+0x10dcf, %rsi lea addresses_WC+0x2177, %rdi add %r10, %r10 mov $71, %rcx rep movsb nop nop nop mfence // Load lea addresses_A+0x10fcf, %rdi clflush (%rdi) nop nop nop xor %r15, %r15 movb (%rdi), %r11b nop xor %r10, %r10 // Faulty Load lea addresses_RW+0x19fcf, %r8 clflush (%r8) nop and %r11, %r11 movups (%r8), %xmm1 vpextrq $0, %xmm1, %rcx lea oracles, %r11 and $0xff, %rcx shlq $12, %rcx mov (%r11,%rcx,1), %rcx pop %rsi pop %rdi pop %rcx pop %r8 pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_D'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WC'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_RW'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'src': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1, 'same': True, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
oeis/226/A226310.asm
neoneye/loda-programs
11
102142
<reponame>neoneye/loda-programs ; A226310: a(n+5) = a(n+4)+a(n+3)+a(n+2)+a(n+1)+2*a(n) with a(0)=0, a(1)=a(2)=a(3)=a(4)=1. ; Submitted by <NAME> ; 0,1,1,1,1,4,9,17,33,65,132,265,529,1057,2113,4228,8457,16913,33825,67649,135300,270601,541201,1082401,2164801,4329604,8659209,17318417,34636833,69273665,138547332,277094665,554189329,1108378657,2216757313,4433514628,8867029257,17734058513,35468117025,70936234049,141872468100,283744936201,567489872401,1134979744801,2269959489601,4539918979204,9079837958409,18159675916817,36319351833633,72638703667265,145277407334532,290554814669065,581109629338129,1162219258676257,2324438517352513 mov $1,1 lpb $0 sub $0,1 add $2,$1 add $1,$3 add $1,$2 add $1,$3 sub $2,1 mod $2,2 add $1,$2 add $1,$3 sub $4,1 add $4,$2 add $3,$4 sub $4,$3 lpe mov $0,$1 sub $0,1
drivertc/HM_Mus.asm
bspruck/badapple
0
242727
<reponame>bspruck/badapple<gh_stars>0 ;**************************************************************** ; HandyMusic- Music Script Decode Commands * ;**************************************************************** ;Command Descriptions- * ; * ;0: Set Priority * ; Format: [0][Priority] (2 bytes) * ; Sets the priority of the track relative to * ; the sound effects. Higher priorities win out * ; when competing for channels, the same * ; priorities should never be used between sound * ; effects and instruments. A priority of zero * ; stops the track from decoding. * ; * ;1: Set Panning * ; Format: [1][Panning] (2 bytes) * ; Sets the panning of the instruments * ; played in the current channel. * ; * ;2: Note On * ; Format: [2][Instrument][Base Frequency Lo] * ; [Base Frequency Hi][Delay Lo] (5 bytes) * ; Plays a given instrument with the specified * ; base frequency, then waits for the given * ; one byte delay * ; * ;3: Note Off * ; Format: [3][Delay Lo] (2 bytes) * ; Forces the currently playing instrument into * ; the note off portion of its script, then waits * ; for the specified one byte delay. * ; * ;4: Set Base Frequency Adjustment * ; Format: [4][Base Frequency Adjustment Lo] * ; [Base Frequency Adjustment Hi] * ; [Base Frequency Adjustment Dec] (4 bytes) * ; Sets the Base Frequency Adjustment value, * ; which can be used for pitch slides, etc. * ; This value is initialized to zero on the * ; start of a song. * ; * ;5: Set Loop Point * ; Format: [5][Number of Times to Loop] (2 bytes) * ; Defines the location in the script following * ; this command as a loop point which will be * ; returned to the specified number of times. If * ; a negative number is used, the loop will * ; continue infinitely. * ; * ;6: Loop * ; Format: [6] (1 byte) * ; If the loop is not infinite, the loop counter * ; is decremented and unless the counter has * ; reached zero, the script decoder will continue * ; decoding at the loop point. * ; Loops may be four-deep. * ; * ;7: Wait * ; Format: [7][Delay Lo][Delay Hi] (3 bytes) * ; Stops decoding for the specified two byte delay.* ; * ;8: Play Sample * ; Format: [8][Sample Number] (2 bytes) * ; Plays back the specified PCM sample in * ; channel 0. Note that commands continue to * ; process while the sample is played, so delays * ; have to be added manually. Only call this * ; command in Track 0. * ; * ;9: Pattern Call * ; Format: [9][Address Lo][Address Hi] (3 Bytes) * ; Jumps to the address of the music script given, * ; and sets up the current position in the music * ; script as the destination for the Pattern * ; Return command. * ; * ;A: Pattern Return * ; Format: [A] (1 byte) * ; Returns to the portion of the music script * ; which was being played before the last Pattern * ; Call command. * ; * ;B: Short Note On * ; Format: [B][Base Frequency Lo][Base Frequency Hi] * ; [Delay Lo] (4 bytes) * ; Plays the last used instrument with the * ; specifiedbase frequency, then waits for * ; the given one byte delay. * ;C: Pattern Break * ; Format: [C] (1 byte) * ; Returns all channels to the lowest return * ; address found in their pattern call stack. * ; This effectively returns all channels to the * ; main script (all of them- not just the * ; currently decoding channel). * ;**************************************************************** HandyMusic_Mus_CommandTableLo dc.b <HandyMusic_Mus_SetPri,<HandyMusic_Mus_SetPan dc.b <HandyMusic_Mus_NoteOn,<HandyMusic_Mus_NoteOff dc.b <HandyMusic_Mus_SetFreqAdj,<HandyMusic_Music_SetLoop dc.b <HandyMusic_Mus_Loop,<HandyMusic_Mus_Wait dc.b <HandyMusic_Mus_Sampl,<HandyMusic_Mus_Call dc.b <HandyMusic_Mus_Ret,<HandyMusic_Mus_SNoteOn dc.b <HandyMusic_Mus_Break HandyMusic_Mus_CommandTableHi dc.b >HandyMusic_Mus_SetPri,>HandyMusic_Mus_SetPan dc.b >HandyMusic_Mus_NoteOn,>HandyMusic_Mus_NoteOff dc.b >HandyMusic_Mus_SetFreqAdj,>HandyMusic_Music_SetLoop dc.b >HandyMusic_Mus_Loop,>HandyMusic_Mus_Wait dc.b >HandyMusic_Mus_Sampl,>HandyMusic_Mus_Call dc.b >HandyMusic_Mus_Ret,>HandyMusic_Mus_SNoteOn dc.b >HandyMusic_Mus_Break ;**************************************************************** ; HandyMusic_Mus_GetBytes:: * ; Gets the next byte of the SFX script, returns in A. * ;**************************************************************** HandyMusic_Mus_GetBytes:: LDA (HandyMusic_Music_DecodePointer) INC HandyMusic_Music_DecodePointer bne .norollover INC HandyMusic_Music_DecodePointer + 1 .norollover rts ;**************************************************************** ; HandyMusic_Mus_SetPri:: * ; Sets the priority of the music script to a new specified* ; value, takes effect immediately. A priority setting of zero * ; will effectively disable the channel. Don't change the * ; priority of a channel in between a note on and off. * ;**************************************************************** HandyMusic_Mus_SetPri:: jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_Priority,X rts ;**************************************************************** ; HandyMusic_Mus_SetPan:: * ; Sets the stereo panning of the current channel, taking * ; effect when the next note on command is reached. Format of * ; panning is LLLLRRRR where 0000 is silent and 1111 is max. * ;**************************************************************** HandyMusic_Mus_SetPan:: jsr HandyMusic_Mus_GetBytes STA HandyMusic_Channel_Panning,X rts ;**************************************************************** ; HandyMusic_Mus_NoteOn:: * ; HandyMusic_Mus_SNoteOn:: * ; Plays a note on a given instrument at the specified * ; base frequency with the previously given panning and * ; frequency adjustment values. Then waits on a one byte delay. * ;**************************************************************** HandyMusic_Mus_NoteOn:: jsr HandyMusic_Mus_GetBytes ; Get instrument # in A,Y STA HandyMusic_Music_LastInstrument,X HandyMusic_Mus_SNoteOn:: LDA HandyMusic_Music_LastInstrument,X TAY LDA HandyMusic_Music_Priority,X ; See if music is still in control of CMP HandyMusic_Channel_Priority,X ; the channel. If so, play the note. bcs .playnote00 jsr HandyMusic_Mus_GetBytes ; Otherwise skip the playing and just set up jsr HandyMusic_Mus_GetBytes ; the delay. bra .playnote10 .playnote00 STA HandyMusic_Channel_Priority,X ; Set channel priority to music priority STZ HandyMusic_Channel_LoopDepth,X ; Reset Loop Depth STZ HandyMusic_Channel_DecodeDelay,X ; And decode delay STZ HandyMusic_Channel_BaseFreqDec,X jsr HandyMusic_Mus_GetBytes STA HandyMusic_Channel_BaseFreqLo,X jsr HandyMusic_Mus_GetBytes STA HandyMusic_Channel_BaseFreqHi,X ; Copy passed frequency LDA HandyMusic_Music_BasePitAdjLo,X STA HandyMusic_Channel_BasePitAdjLo,X LDA HandyMusic_Music_BasePitAdjHi,X STA HandyMusic_Channel_BasePitAdjHi,X LDA HandyMusic_Music_BasePitAdjDec,X STA HandyMusic_Channel_BasePitAdjDec,X ; Then set up frequency adjustment value LDA (HandyMusic_Instrument_AddrTableLoLo),Y ; Copy script pointer to work pointer STA HandyMusic_Channel_DecodePointer LDA (HandyMusic_Instrument_AddrTableHiLo),Y STA HandyMusic_Channel_DecodePointer + 1 jsr HandyMusic_Enqueue_IS ; Shared NoteOff, SFB, Vol, Freq in HandyMusic_EnqueueSFX LDA HandyMusic_Channel_NoWriteBack,X ; Writing disabled? bne .playnote10 LDA HandyMusic_Channel_Panning,X STA Lynx_Audio_Atten_0,X ; Set up panning .playnote10 jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_DecodeDelayLo,X STZ HandyMusic_Music_DecodeDelayHi,X ; Set up one byte delay rts ; We're done ;**************************************************************** ; HandyMusic_Mus_NoteOff:: * ; Forces a note into the note off portion of its script * ; if it still has control of the channel, then waits for a * ; one byte delay. If the note has lost control of the channel * ; only the delay is instated. * ;**************************************************************** HandyMusic_Mus_NoteOff:: LDA HandyMusic_Music_Priority,X ; See if music is still in control of CMP HandyMusic_Channel_Priority,X ; the channel. If not, just instate delay. bne .instatedelay LDA HandyMusic_Channel_NoteOffPLo,X STA HandyMusic_Channel_DecodePointerLo,X LDA HandyMusic_Channel_NoteOffPHi,X STA HandyMusic_Channel_DecodePointerHi,X ; Relocate decode pointer to note off STZ HandyMusic_Channel_DecodeDelay,X ; Force decode to happen .instatedelay jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_DecodeDelayLo,X STZ HandyMusic_Music_DecodeDelayHi,X ; Set up one byte delay rts ;**************************************************************** ; HandyMusic_Mus_SetFreqAdj:: * ; Sets the frequency adjustment value for the current * ; music track. This is useful for pitch bends, etc. * ;**************************************************************** HandyMusic_Mus_SetFreqAdj:: jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_BasePitAdjLo,X jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_BasePitAdjHi,X jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_BasePitAdjDec,X rts ;**************************************************************** ; HandyMusic_Music_SetLoop:: * ; Sets the current script decoding address as a loop * ; point, increases the current loop depth, and copies the loop * ; count. * ;**************************************************************** HandyMusic_Music_SetLoop:: INC HandyMusic_Music_LoopDepth,X ; Increase loop depth clc LDA HandyMusic_Channel_LoopAddrDepth,X ; Calculate depth into loop arrays ADC HandyMusic_Music_LoopDepth,X TAY jsr HandyMusic_Mus_GetBytes ; Get the number of times to loop HandyMusic_Music_LoopPush STA HandyMusic_Music_LoopCount-1,Y ; Store in the loop count (offset by -1) LDA HandyMusic_Music_DecodePointer STA HandyMusic_Music_LoopAddrLo-1,Y LDA HandyMusic_Music_DecodePointer + 1 STA HandyMusic_Music_LoopAddrHi-1,Y ; Store the current decode pointer rts ; That's it. ;**************************************************************** ; HandyMusic_Mus_Loop:: * ; Checks to see if a loop condition is valid, and loops * ; if it is. * ;**************************************************************** HandyMusic_Mus_Loop:: clc LDA HandyMusic_Channel_LoopAddrDepth,X ; Calculate depth into loop arrays ADC HandyMusic_Music_LoopDepth,X TAY LDA HandyMusic_Music_LoopCount-1,Y ; If negative, this is an infinite loop bmi .loop DEC STA HandyMusic_Music_LoopCount-1,Y ; Decrement count, if zero, the loop fails beq .noloop .loop LDA HandyMusic_Music_LoopAddrLo-1,Y STA HandyMusic_Music_DecodePointer LDA HandyMusic_Music_LoopAddrHi-1,Y STA HandyMusic_Music_DecodePointer + 1 ; Pull old decode address rts .noloop DEC HandyMusic_Music_LoopDepth,X ; Decrement loop depth, we're done. rts ;**************************************************************** ; HandyMusic_Mus_Wait:: * ; Waits on a two byte delay. * ;**************************************************************** HandyMusic_Mus_Wait:: jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_DecodeDelayLo,X jsr HandyMusic_Mus_GetBytes STA HandyMusic_Music_DecodeDelayHi,X rts ;**************************************************************** ; HandyMusic_Mus_Sampl:: * ; Grabs Channel 0 and plays back the selected sample. * ; Note that commands continue to process while the sample is * ; played, so delays have to be added manually. * ;**************************************************************** HandyMusic_Mus_Sampl:: PHX jsr HandyMusic_Mus_GetBytes ; jsr PlayPCMSample PLX rts ;**************************************************************** ; HandyMusic_Mus_Call:: * ; "JSR" to the specified location in the sound script. * ; Note that this is logged as an infinite loop. * ;**************************************************************** HandyMusic_Mus_Call:: jsr HandyMusic_Mus_GetBytes ; Fetch Pattern Address Lo PHA jsr HandyMusic_Mus_GetBytes ; Fetch Pattern Address Hi PHA INC HandyMusic_Music_LoopDepth,X ; Increase loop depth clc LDA HandyMusic_Channel_LoopAddrDepth,X ; Calculate depth into loop arrays ADC HandyMusic_Music_LoopDepth,X TAY LDA#$80 jsr HandyMusic_Music_LoopPush PLA STA HandyMusic_Music_DecodePointer + 1 PLA STA HandyMusic_Music_DecodePointer ; Set decode pointer to pattern address rts ;**************************************************************** ; HandyMusic_Mus_Ret:: * ; "rts" from the current location in the sound script. * ;**************************************************************** HandyMusic_Mus_Ret:: jsr HandyMusic_Mus_Loop ; "Loop" to return address DEC HandyMusic_Music_LoopDepth,X ; But force loop depth to decrement rts ;**************************************************************** ; HandyMusic_Mus_Break:: * ; Pattern break, returning all channels to the main * ; track (lowest CALL found, based upon $80 tags, if any). * ;**************************************************************** HandyMusic_Mus_Break:: jsr HandyMusic_BackupDecodePointer ; Temporary decode pointer will get trashed. PHX LDX#3 .checkNextTrack clc LDA HandyMusic_Channel_LoopAddrDepth,X TAY ADC HandyMusic_Music_LoopDepth,X STA .checkLoopPoint + 1 .checkLoopPoint CPY#0 ; Comparison value modified by STA above to stack top beq .trackDone LDA HandyMusic_Music_LoopCount,Y INY CMP#$80 ; Any loop count of $80 is a special tag for calls beq .foundBase ; So if we found one from the bottom up, that's our base call bra .checkLoopPoint ; Otherwise, check the next entry in the stack .foundBase TYA sec SBC HandyMusic_Channel_LoopAddrDepth,X STA HandyMusic_Music_LoopDepth,X jsr HandyMusic_Mus_Ret ; Force a RET on the lowest CALL STZ HandyMusic_Music_DecodeDelayLo,X STZ HandyMusic_Music_DecodeDelayHi,X ; Also force the track to proceed immediately. jsr HandyMusic_BackupDecodePointer ; Then back up the decode pointer .trackDone DEX bpl .checkNextTrack PLX LDA HandyMusic_Music_DecodePointerLo,X STA HandyMusic_Music_DecodePointer LDA HandyMusic_Music_DecodePointerHi,X STA HandyMusic_Music_DecodePointer + 1 ; Restore the temporary decode pointer rts * * EOF *
programs/oeis/124/A124861.asm
neoneye/loda
22
86065
; A124861: Expansion of 1/(1-x-3x^2-4x^3-2x^4). ; 1,1,4,11,29,80,219,597,1632,4459,12181,33280,90923,248405,678656,1854123,5065557,13839360,37809835,103298389,282216448,771029675,2106492245,5755043840,15723072171,42956232021,117358608384 add $0,1 seq $0,2605 ; a(n) = 2*(a(n-1) + a(n-2)), a(0) = 0, a(1) = 1. mul $0,6 sub $0,6 div $0,9 add $0,1
programs/oeis/122/A122606.asm
neoneye/loda
22
160720
<filename>programs/oeis/122/A122606.asm<gh_stars>10-100 ; A122606: n^(n+1) mod 7. ; 0,1,1,4,2,1,6,0,1,2,5,1,5,1,0,1,4,1,4,4,6,0,1,1,3,2,6,1,0,1,2,2,1,2,6,0,1,4,6,4,3,1,0,1,1,4,2,1,6,0,1,2,5,1,5,1,0,1,4,1,4,4,6,0,1,1,3,2,6,1,0,1,2,2,1,2,6,0,1,4,6,4,3,1,0,1,1,4,2,1,6,0,1,2,5,1,5,1,0,1 mov $1,$0 mov $2,$0 lpb $1 mul $0,$2 mod $0,7 sub $1,1 lpe
RecursiveDivision/division.asm
miguel2192/CSC211-Assembly
0
174367
<filename>RecursiveDivision/division.asm ######################################### <<<<<<< HEAD # Author: <NAME> # # division.asm - div(a,b) # # Example of a recursive program that # # uses addition to create division # ======= # # # mp.asm - mp(a,b) # # Example of a recursive program that # # uses addition to create multiplica # >>>>>>> origin/master # // Java Version: mp.java # # if(a<b) return 0; # # # # else return (1+div(a-b,b)); # ######################################### .text .globl __start __start: <<<<<<< HEAD la $a0,prompt # display "Enter the first number: " li $v0,4 syscall li $v0,5 # enter the first number syscall move $a0,$v0 # call method #############################changes############################## li $v0,5 # enter the second number syscall move $a1,$v0 # call method ======= la $a0,prompt # display "Enter factorial number: " li $v0,4 syscall li $v0,5 # enter the factorial number syscall move $a0,$v0 # call factorial method #############################changes############################## li $v0,5 # enter the factorial number syscall move $a1,$v0 # call factorial method >>>>>>> origin/master ##############################changes############################# jal dv move $t0,$v0 # save result in t0 <<<<<<< HEAD la $a0,ans # display "a / b = " ======= la $a0,ans # display "a x b = " >>>>>>> origin/master li $v0,4 syscall move $a0,$t0 # display returned result li $v0,1 syscall la $a0,endl # display crlf li $v0,4 syscall <<<<<<< HEAD ############################################################################### # WHILE LOOP # CREATES REPETITION ############################################################################### # Ask the user if that user wishes to repeat this program: 1-yes, 0-no la $a0,p4 li $v0,4 syscall # Enter an integer (1 or 0) la $v0,5 # Load address of the message area syscall # Compare input to 1 beqz $v0,eop # if it is 1 repeat j __start eop: li $v0,10 # End Of Program syscall # Call to system ################################################################################# ======= li $v0,10 # EOP syscall >>>>>>> origin/master ################ fact method #################### # a0 - holds a # # a1 - holds b # # v0 - holds the returned result, a / b # ################################################# dv: sub $sp,$sp,12 # push registers onto stack sw $a0,0($sp) sw $a1,4($sp) sw $ra,8($sp) bge $a0,$a1,notZero <<<<<<< HEAD li $v0,0 # mp(0) = 1, mp(1) = 1 j factret notZero: #move $s0,$a0 # save n sub $a0,$a0,$a1 # parameter = b-1 jal dv # compute div(n-1) #sub $v0,$a0,$v0 # substrcts instead of add addi $v0,$v0,1 ======= li $v0,0 # mp(0) = 1, mp(1) = 1 j factret notZero: #move $s0,$a0 # save n sub $a0,$a0,$a1 # parameter = b-1 jal dv # compute div(n-1) #sub $v0,$a0,$v0 # substrcts instead of add addi $v0,1 >>>>>>> origin/master factret: lw $a0,0($sp) # restore registers from stack lw $a1,4($sp) lw $ra,8($sp) add $sp,$sp,12 jr $ra # return .data prompt: .asciiz "Enter 2 numbers: " ans: .asciiz "a / b = " endl: .asciiz "\n" <<<<<<< HEAD p4: .asciiz "\nWould you like to repeat the program: (1-yes, 0-no)" ######### Sample Output############################################################ # Enter 2 numbers: **** user input : 100 # **** user input : 4 # a / b = 25 # # Would you like to repeat the program: (1-yes, 0-no)**** user input : 1 # Enter 2 numbers: **** user input : 10 # **** user input : 2 # a / b = 5 # # Would you like to repeat the program: (1-yes, 0-no)**** user input : 1 # Enter 2 numbers: **** user input : 15 # **** user input : 5 # a / b = 3 # # Would you like to repeat the program: (1-yes, 0-no)**** user input : 1 # Enter 2 numbers: **** user input : 25 # **** user input : 5 # a / b = 5 # # Would you like to repeat the program: (1-yes, 0-no)**** user input : 0 # # -- program is finished running -- ################################################################################# ======= ######### Sample Output########## # # # Enter factorial number: 5 # # n! = 120 # # # # Enter factorial number: 6 # # n! = 720 # # # ################################# >>>>>>> origin/master
courses/spark_for_ada_programmers/labs/answers/070_type_contracts/important_dates.ads
AdaCore/training_material
15
15906
<gh_stars>10-100 with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Important_Dates with SPARK_Mode => On is function Leap_Year (Year : Positive) return Boolean is ((Year mod 4 = 0 and then Year mod 100 /= 0) or else (Year mod 400 = 0)); function Valid_Date (Year : Positive; Month : Positive; Day : Positive) return Boolean is (case Month is when 4 | 6 | 9 | 11 => Day <= 30, when 2 => (if Leap_Year (Year) then Day <= 28 else Day <= 29), when others => Day <= 31); type Date_T is record Year : Positive := Positive'First; Month : Positive := Positive'First; Day : Positive := Positive'First; end record with Dynamic_Predicate => Valid_Date (Date_T.Year, Date_T.Month, Date_T.Day); function "=" (L, R : Date_T) return Boolean; type Calendar_T is private; function Is_Full (Calendar : Calendar_T) return Boolean with Ghost; procedure Add_Event (Calendar : in out Calendar_T; Description : String; Date : Date_T) with Pre => not Is_Full (Calendar); procedure Remove_Event (Calendar : in out Calendar_T; Description : String; Date : Date_T); procedure Print_Events (Calendar : Calendar_T; Number_Of_Events : Positive; Date : Date_T); private type Event_T is record Description : Unbounded_String := To_Unbounded_String (""); Date : Date_T; end record; function ">=" (L, R : Event_T) return Boolean; subtype Count_T is Integer range 0 .. 1_000; subtype Index_T is Integer range 1 .. 1_000; type Event_List_T is array (Index_T) of Event_T; function Is_Sorted (List : Event_List_T; Used : Count_T) return Boolean is (for all K in List'First .. List'First + Used - 1 => K = List'First or else List (K) >= List (K - 1)); type Calendar_T is record List : Event_List_T; In_Use : Count_T := 0; end record with Type_Invariant => Is_Sorted (Calendar_T.List, Calendar_T.In_Use); function Is_Full (Calendar : Calendar_T) return Boolean is (Calendar.In_Use = Calendar.List'Length); end Important_Dates;
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/日本_Ver3/asm/zel_char.asm
prismotizm/gigaleak
0
18114
Name: zel_char.asm Type: file Size: 178340 Last-Modified: '2016-05-13T04:36:32Z' SHA-1: 61A784601DB2AAAAEC66114E658A326E64B79B30 Description: null
source/contexts/repl/program-repl_contexts.ads
optikos/oasis
0
17524
<filename>source/contexts/repl/program-repl_contexts.ads<gh_stars>0 -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- -- -- REPL is abbreviation for "Read, Execute, Print Loop", a kind of an -- interactive programming environment. -- -- This package provides a support for building REPL. with Program.Contexts; with Program.Compilation_Unit_Vectors; package Program.REPL_Contexts is type REPL_Context is new Program.Contexts.Context with private; -- Context for REPL environment. -- -- Context contains user input as sequence of cells. Each cell is -- a declaration, a statement or an expression. Sequence of cells is -- converted to corresponding Ada code. This code is wrapped into a main -- subprogram - a library level procedure. Compilation unit for main -- and any its dependency are available through OASIS Context API. procedure Initialize (Self : in out REPL_Context'Class; Main_Name : Program.Text := "Main"); -- Initialize the context. Use Main_Name for the top level procedure. -- This procedure will contain a code corresponding to the input. function Cell_Count (Self : REPL_Context'Class) return Natural; -- Total number of cells in the context. function Is_Valid_Cell (Self : REPL_Context'Class; Index : Positive) return Boolean; -- Return status of the cell with given index. Invalid cells have no -- corresponding Ada code. procedure Append_Cell (Self : in out REPL_Context'Class; Text : Program.Text); -- Create new cell and append it to cell list as last element. procedure Update_Cell (Self : in out REPL_Context'Class; Index : Positive; Text : Program.Text); -- Replace text of the cell with given index. procedure Delete_Cell (Self : in out REPL_Context'Class; Index : Positive); -- Drop the cell with given index from cell list. private type REPL_Context is new Program.Contexts.Context with null record; overriding function Library_Unit_Declarations (Self : REPL_Context) return Program.Compilation_Unit_Vectors.Compilation_Unit_Vector_Access; overriding function Compilation_Unit_Bodies (Self : REPL_Context) return Program.Compilation_Unit_Vectors.Compilation_Unit_Vector_Access; end Program.REPL_Contexts;
src/examples/Rejuvenation_Examples/src/rejuvenation_examples.adb
selroc/Renaissance-Ada
1
27079
with Examples.Ast; with Examples.Factory; with Examples.Finder; with Examples.Match_Patterns; with Examples.Navigation; with Examples.Text_Rewrites; with Examples.Visitor; procedure Rejuvenation_Examples is Root_Folder : constant String := ""; Project_Name : constant String := Root_Folder & "rejuvenation_examples.gpr"; File_Name : constant String := Root_Folder & "src/rejuvenation_examples.adb"; begin -- Parsing -------- Examples.Factory.Demo (Project_Name, File_Name); -- Code analysis -------- Examples.Ast.Demo (Project_Name, File_Name); Examples.Visitor.Demo (File_Name); Examples.Match_Patterns.Demo; Examples.Finder.Demo (File_Name); Examples.Navigation.Demo (File_Name); -- Code manipulation -------- Examples.Text_Rewrites.Demo (File_Name); end Rejuvenation_Examples;
source/nodes/program-nodes-quantified_expressions.ads
optikos/oasis
0
10891
<filename>source/nodes/program-nodes-quantified_expressions.ads<gh_stars>0 -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Loop_Parameter_Specifications; with Program.Elements.Generalized_Iterator_Specifications; with Program.Elements.Element_Iterator_Specifications; with Program.Elements.Expressions; with Program.Elements.Quantified_Expressions; with Program.Element_Visitors; package Program.Nodes.Quantified_Expressions is pragma Preelaborate; type Quantified_Expression is new Program.Nodes.Node and Program.Elements.Quantified_Expressions.Quantified_Expression and Program.Elements.Quantified_Expressions.Quantified_Expression_Text with private; function Create (For_Token : not null Program.Lexical_Elements .Lexical_Element_Access; All_Token : Program.Lexical_Elements.Lexical_Element_Access; Some_Token : Program.Lexical_Elements.Lexical_Element_Access; Parameter : Program.Elements.Loop_Parameter_Specifications .Loop_Parameter_Specification_Access; Generalized_Iterator : Program.Elements .Generalized_Iterator_Specifications .Generalized_Iterator_Specification_Access; Element_Iterator : Program.Elements.Element_Iterator_Specifications .Element_Iterator_Specification_Access; Arrow_Token : not null Program.Lexical_Elements .Lexical_Element_Access; Predicate : not null Program.Elements.Expressions .Expression_Access) return Quantified_Expression; type Implicit_Quantified_Expression is new Program.Nodes.Node and Program.Elements.Quantified_Expressions.Quantified_Expression with private; function Create (Parameter : Program.Elements.Loop_Parameter_Specifications .Loop_Parameter_Specification_Access; Generalized_Iterator : Program.Elements .Generalized_Iterator_Specifications .Generalized_Iterator_Specification_Access; Element_Iterator : Program.Elements.Element_Iterator_Specifications .Element_Iterator_Specification_Access; Predicate : not null Program.Elements.Expressions .Expression_Access; Is_Part_Of_Implicit : Boolean := False; Is_Part_Of_Inherited : Boolean := False; Is_Part_Of_Instance : Boolean := False; Has_All : Boolean := False; Has_Some : Boolean := False) return Implicit_Quantified_Expression with Pre => Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance; private type Base_Quantified_Expression is abstract new Program.Nodes.Node and Program.Elements.Quantified_Expressions.Quantified_Expression with record Parameter : Program.Elements.Loop_Parameter_Specifications .Loop_Parameter_Specification_Access; Generalized_Iterator : Program.Elements .Generalized_Iterator_Specifications .Generalized_Iterator_Specification_Access; Element_Iterator : Program.Elements.Element_Iterator_Specifications .Element_Iterator_Specification_Access; Predicate : not null Program.Elements.Expressions .Expression_Access; end record; procedure Initialize (Self : aliased in out Base_Quantified_Expression'Class); overriding procedure Visit (Self : not null access Base_Quantified_Expression; Visitor : in out Program.Element_Visitors.Element_Visitor'Class); overriding function Parameter (Self : Base_Quantified_Expression) return Program.Elements.Loop_Parameter_Specifications .Loop_Parameter_Specification_Access; overriding function Generalized_Iterator (Self : Base_Quantified_Expression) return Program.Elements.Generalized_Iterator_Specifications .Generalized_Iterator_Specification_Access; overriding function Element_Iterator (Self : Base_Quantified_Expression) return Program.Elements.Element_Iterator_Specifications .Element_Iterator_Specification_Access; overriding function Predicate (Self : Base_Quantified_Expression) return not null Program.Elements.Expressions.Expression_Access; overriding function Is_Quantified_Expression_Element (Self : Base_Quantified_Expression) return Boolean; overriding function Is_Expression_Element (Self : Base_Quantified_Expression) return Boolean; type Quantified_Expression is new Base_Quantified_Expression and Program.Elements.Quantified_Expressions.Quantified_Expression_Text with record For_Token : not null Program.Lexical_Elements.Lexical_Element_Access; All_Token : Program.Lexical_Elements.Lexical_Element_Access; Some_Token : Program.Lexical_Elements.Lexical_Element_Access; Arrow_Token : not null Program.Lexical_Elements.Lexical_Element_Access; end record; overriding function To_Quantified_Expression_Text (Self : aliased in out Quantified_Expression) return Program.Elements.Quantified_Expressions .Quantified_Expression_Text_Access; overriding function For_Token (Self : Quantified_Expression) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function All_Token (Self : Quantified_Expression) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Some_Token (Self : Quantified_Expression) return Program.Lexical_Elements.Lexical_Element_Access; overriding function Arrow_Token (Self : Quantified_Expression) return not null Program.Lexical_Elements.Lexical_Element_Access; overriding function Has_All (Self : Quantified_Expression) return Boolean; overriding function Has_Some (Self : Quantified_Expression) return Boolean; type Implicit_Quantified_Expression is new Base_Quantified_Expression with record Is_Part_Of_Implicit : Boolean; Is_Part_Of_Inherited : Boolean; Is_Part_Of_Instance : Boolean; Has_All : Boolean; Has_Some : Boolean; end record; overriding function To_Quantified_Expression_Text (Self : aliased in out Implicit_Quantified_Expression) return Program.Elements.Quantified_Expressions .Quantified_Expression_Text_Access; overriding function Is_Part_Of_Implicit (Self : Implicit_Quantified_Expression) return Boolean; overriding function Is_Part_Of_Inherited (Self : Implicit_Quantified_Expression) return Boolean; overriding function Is_Part_Of_Instance (Self : Implicit_Quantified_Expression) return Boolean; overriding function Has_All (Self : Implicit_Quantified_Expression) return Boolean; overriding function Has_Some (Self : Implicit_Quantified_Expression) return Boolean; end Program.Nodes.Quantified_Expressions;
src/bootloader/print_pm.asm
batthomas/MythOS
0
104560
[BITS 32] print_pm: pusha mov edx, 0xb8000 .loop: mov al, [ebx] mov ah, 0x0f cmp al, 0 je .done mov [edx], ax add ebx, 1 add edx, 2 jmp .loop .done: popa ret
theories/alloy/PWSProp.als
pascalpoizat/fbpmn
27
5142
<reponame>pascalpoizat/fbpmn module PWSProp open PWSDefs open PWSSyntax open PWSSemantics /* Each process (individually) reaches an end state. */ pred SimpleTermination { all p : Process | some s: State, n : EndEvent | n in p.contains && s.nodemarks[n] >= 1 } /* There is a state where all processes have correctly terminated (Note the inversion all proc / some state w.r.t. SimpleTermination) */ pred CorrectTermination { some s : State | all p : Process | some n: EndEvent { n in p.contains && s.nodemarks[n] >= 1 all nn : p.^contains - n | (nn in EndEvent or s.nodemarks[nn] = 0) all e : Edge | e.source = p && e.target = p => s.edgemarks[e] = 0 } } /* CorrectTermination as above and the network is empty. */ pred EmptyNetTermination { some s : State { all p : Process | some n: EndEvent { n in p.contains && s.nodemarks[n] >= 1 all nn : p.contains - n | s.nodemarks[nn] = 0 all e : Edge | e.source = p && e.target = p => s.edgemarks[e] = 0 } all e : MessageFlow | s.edgemarks[e] = 0 } } /* No marking is above 1. */ pred Safe { all s: State, n : Node | s.nodemarks[n] <= 1 all s: State, e : Edge | s.edgemarks[e] <= 1 }
extern/gnat_sdl/gnat_sdl2/src/ia32intrin_h.ads
AdaCore/training_material
15
11334
<gh_stars>10-100 pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package ia32intrin_h is -- Copyright (C) 2009-2017 Free Software Foundation, Inc. -- This file is part of GCC. -- GCC is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3, or (at your option) -- any later version. -- GCC is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- Under Section 7 of GPL version 3, you are granted additional -- permissions described in the GCC Runtime Library Exception, version -- 3.1, as published by the Free Software Foundation. -- You should have received a copy of the GNU General Public License and -- a copy of the GCC Runtime Library Exception along with this program; -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- <http://www.gnu.org/licenses/>. -- 32bit bsf -- skipped func __bsfd -- 32bit bsr -- skipped func __bsrd -- 32bit bswap -- skipped func __bswapd -- 32bit accumulate CRC32 (polynomial 0x11EDC6F41) value. -- skipped func __crc32b -- skipped func __crc32w -- skipped func __crc32d -- 32bit popcnt -- skipped func __popcntd -- rdpmc -- skipped func __rdpmc -- rdtsc -- skipped func __rdtsc -- rdtscp -- skipped func __rdtscp -- 8bit rol -- skipped func __rolb -- 16bit rol -- skipped func __rolw -- 32bit rol -- skipped func __rold -- 8bit ror -- skipped func __rorb -- 16bit ror -- skipped func __rorw -- 32bit ror -- skipped func __rord -- Pause -- skipped func __pause -- 64bit bsf -- skipped func __bsfq -- 64bit bsr -- skipped func __bsrq -- 64bit bswap -- skipped func __bswapq -- 64bit accumulate CRC32 (polynomial 0x11EDC6F41) value. -- skipped func __crc32q -- 64bit popcnt -- skipped func __popcntq -- 64bit rol -- skipped func __rolq -- 64bit ror -- skipped func __rorq -- Read flags register -- skipped func __readeflags -- Write flags register -- skipped func __writeeflags -- Read flags register -- Write flags register -- On LP64 systems, longs are 64-bit. Use the appropriate rotate -- * function. end ia32intrin_h;
alloy4fun_models/trashltl/models/4/c57tEijYfAmsHeSKX.als
Kaixi26/org.alloytools.alloy
0
972
open main pred idc57tEijYfAmsHeSKX_prop5 { some f : File | eventually always f in Trash } pred __repair { idc57tEijYfAmsHeSKX_prop5 } check __repair { idc57tEijYfAmsHeSKX_prop5 <=> prop5o }
ga_lib/src/gl_enums_feedback.ads
rogermc2/GA_Ada
3
4881
<gh_stars>1-10 -- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" private with GL.Low_Level; package GL_Enums_Feedback is pragma Preelaborate; type Feed_Back_Mode is (Feed_Back_2D, Feed_back_3D , Color_3D, Color_Texture_3D, Color_Texture_4D); type Feed_Back_Token is (Pass_Through_Token, Point_Token, Line_Token, Polygon_Token, Bitmap_Token, Draw_Pixel_Token, Copy_Pixel_Token, Line_Reset_Token); private for Feed_Back_Mode use (Feed_Back_2D => 16#0600#, Feed_back_3D => 16#0601#, Color_3D => 16#0602#, Color_Texture_3D => 16#0603#, Color_Texture_4D => 16#0604#); for Feed_Back_Mode'Size use GL.Low_Level.Enum'Size; for Feed_Back_Token use (Pass_Through_Token => 16#0700#, Point_Token => 16#0701#, Line_Token => 16#0702#, Polygon_Token => 16#0703#, Bitmap_Token => 16#0704#, Draw_Pixel_Token => 16#0705#, Copy_Pixel_Token => 16#0706#, Line_Reset_Token => 16#0707#); for Feed_Back_Token'Size use GL.Low_Level.Enum'Size; end GL_Enums_Feedback;
test/Fail/Issue5856.agda
KDr2/agda
0
10556
<reponame>KDr2/agda<filename>test/Fail/Issue5856.agda -- Andreas, 2022-03-28, issue #5856, reported by <NAME>. -- Patterns in path-lambdas were simply ignored, but should be illegal. {-# OPTIONS --cubical #-} -- {-# OPTIONS -v tc.term.lambda:30 #-} open import Agda.Builtin.Cubical.Path postulate A E : Set a : A data C : Set where c : E → C p : a ≡ a p = λ (c e) → a -- WAS: accepted. -- Expected error: -- Patterns are not allowed in Path-lambdas -- when checking that the expression λ .patternInTele0 @ (c e) → a has type a ≡ a
elaborability.agda
hazelgrove/hazelnut-agda
0
15242
<gh_stars>0 open import Nat open import Prelude open import dynamics-core open import contexts open import htype-decidable open import lemmas-matching open import lemmas-consistency open import disjointness open import typed-elaboration module elaborability where mutual elaborability-synth : {Γ : tctx} {e : hexp} {τ : htyp} → holes-unique e → Γ ⊢ e => τ → Σ[ d ∈ ihexp ] Σ[ Δ ∈ hctx ] (Γ ⊢ e ⇒ τ ~> d ⊣ Δ) elaborability-synth HUNum SNum = _ , _ , ESNum elaborability-synth (HUPlus hu1 hu2 hd) (SPlus wt1 wt2) with elaborability-ana hu1 wt1 | elaborability-ana hu2 wt2 ... | _ , _ , _ , D1 | _ , _ , _ , D2 = _ , _ , ESPlus hd (elab-ana-disjoint hd D1 D2) D1 D2 elaborability-synth (HUAsc hu) (SAsc wt) with elaborability-ana hu wt ... | _ , _ , _ , D = _ , _ , ESAsc D elaborability-synth HUVar (SVar x) = _ , _ , ESVar x elaborability-synth (HULam2 hu) (SLam apt wt) with elaborability-synth hu wt ... | _ , _ , D = _ , _ , ESLam apt D elaborability-synth (HUAp hu1 hu2 hd) (SAp wt1 m wt2) with elaborability-ana hu1 (ASubsume wt1 (~sym (▸arr-consist m))) | elaborability-ana hu2 wt2 ... | _ , _ , _ , D1 | _ , _ , _ , D2 = _ , _ , ESAp hd (elab-ana-disjoint hd D1 D2) wt1 m D1 D2 elaborability-synth (HUPair hu1 hu2 hd) (SPair wt1 wt2) with elaborability-synth hu1 wt1 | elaborability-synth hu2 wt2 ... | _ , _ , D1 | _ , _ , D2 = _ , _ , ESPair hd (elab-synth-disjoint hd D1 D2) D1 D2 elaborability-synth (HUFst hu) (SFst wt m) with elaborability-ana hu (ASubsume wt (~sym (▸prod-consist m))) ... | _ , _ , _ , D = _ , _ , ESFst wt m D elaborability-synth (HUSnd hu) (SSnd wt m) with elaborability-ana hu (ASubsume wt (~sym (▸prod-consist m))) ... | _ , _ , _ , D = _ , _ , ESSnd wt m D elaborability-synth HUHole SEHole = _ , _ , ESEHole elaborability-synth (HUNEHole hu hnn) (SNEHole wt) with elaborability-synth hu wt ... | _ , _ , D = _ , _ , ESNEHole (elab-new-disjoint-synth hnn D) D elaborability-ana : {Γ : tctx} {e : hexp} {τ : htyp} → holes-unique e → Γ ⊢ e <= τ → Σ[ d ∈ ihexp ] Σ[ Δ ∈ hctx ] Σ[ τ' ∈ htyp ] (Γ ⊢ e ⇐ τ ~> d :: τ' ⊣ Δ) elaborability-ana {e = e} hu (ASubsume wt con) with elaborability-synth hu wt elaborability-ana {e = N x} hu (ASubsume wt con) | _ , _ , wt' = _ , _ , _ , EASubsume (λ _ ()) (λ _ _ ()) wt' con elaborability-ana {e = e ·+ e₁} hu (ASubsume wt con) | _ , _ , wt' = _ , _ , _ , EASubsume (λ _ ()) (λ _ _ ()) wt' con elaborability-ana {e = e ·: x} hu (ASubsume wt con) | _ , _ , wt' = _ , _ , _ , EASubsume (λ _ ()) (λ _ _ ()) wt' con elaborability-ana {e = X x} hu (ASubsume wt con) | _ , _ , wt' = _ , _ , _ , EASubsume (λ _ ()) (λ _ _ ()) wt' con elaborability-ana {e = ·λ x ·[ x₁ ] e} hu (ASubsume wt con) | _ , _ , wt' = _ , _ , _ , EASubsume (λ _ ()) (λ _ _ ()) wt' con elaborability-ana {e = e ∘ e₁} hu (ASubsume wt con) | _ , _ , wt' = _ , _ , _ , EASubsume (λ _ ()) (λ _ _ ()) wt' con elaborability-ana {e = ⟨ e , e₁ ⟩} hu (ASubsume wt con) | _ , _ , wt' = _ , _ , _ , EASubsume (λ _ ()) (λ _ _ ()) wt' con elaborability-ana {e = fst e} hu (ASubsume wt con) | _ , _ , wt' = _ , _ , _ , EASubsume (λ _ ()) (λ _ _ ()) wt' con elaborability-ana {e = snd e} hu (ASubsume wt con) | _ , _ , wt' = _ , _ , _ , EASubsume (λ _ ()) (λ _ _ ()) wt' con elaborability-ana {e = ⦇-⦈[ u ]} hu (ASubsume wt con) | _ , _ , wt' = _ , _ , _ , EAEHole elaborability-ana {e = ⦇⌜ e ⌟⦈[ u ]} (HUNEHole hu hnn) (ASubsume (SNEHole wt) con) | _ , _ , ESNEHole apt wt' with elaborability-synth hu wt ... | _ , _ , wt'' = _ , _ , _ , EANEHole (elab-new-disjoint-synth hnn wt'') wt'' elaborability-ana (HULam1 hu) (ALam apt m wt) with elaborability-ana hu wt ... | _ , _ , _ , wt' = _ , _ , _ , EALam apt m wt' elaborability-ana (HUInl hu) (AInl m wt) with elaborability-ana hu wt ... | _ , _ , _ , wt' = _ , _ , _ , EAInl m wt' elaborability-ana (HUInr hu) (AInr m wt) with elaborability-ana hu wt ... | _ , _ , _ , wt' = _ , _ , _ , EAInr m wt' elaborability-ana (HUCase hu hu1 hu2 hd1 hd2 hd12) (ACase apt1 apt2 m wt wt1 wt2) with elaborability-synth hu wt | elaborability-ana hu1 wt1 | elaborability-ana hu2 wt2 ... | _ , _ , wt' | _ , _ , _ , wt1' | _ , _ , _ , wt2' = _ , _ , _ , EACase hd1 hd2 hd12 (elab-synth-ana-disjoint hd1 wt' wt1') (elab-synth-ana-disjoint hd2 wt' wt2') (elab-ana-disjoint hd12 wt1' wt2') apt1 apt2 wt' m wt1' wt2'
data/pokemon/base_stats/croconaw.asm
Karkino/KarkCrystal16
0
177306
db 0 ; species ID placeholder db 70, 88, 76, 48, 63, 60 ; hp atk def spd sat sdf db WATER, WATER ; type db 45 ; catch rate db 143 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/croconaw/front.dimensions" db 0, 0, 0, 0 ; padding db GROWTH_MEDIUM_SLOW ; growth rate dn EGG_MONSTER, EGG_WATER_1 ; egg groups ; tm/hm learnset tmhm DYNAMICPUNCH, HEADBUTT, CURSE, ROAR, TOXIC, ROCK_SMASH, SNORE, HYPER_BEAM, ICY_WIND, PROTECT, RAIN_DANCE, IRON_HEAD, EARTHQUAKE, RETURN, DIG, ICE_PUNCH, SWAGGER, SLEEP_TALK, PURSUIT, REST, ATTRACT, CUT, SURF, STRENGTH, WHIRLPOOL, ICE_BEAM ; end
Kernel/Source/Kernel/Bootloader/Bootloader.asm
Rohfel/Spark
0
96639
<reponame>Rohfel/Spark ; Copyright <NAME>. All rights reserved. [org 0x7c00] mov [BootDisk], dl mov bp, 0x7c00 mov sp, bp call ReadDisk jmp ProgramSpace %include "Kernel/Bootloader/DiskRead.asm" %include "Kernel/Utilities/Print.asm" times 510-($-$$) db 0 dw 0xaa55
oeis/156/A156372.asm
neoneye/loda-programs
11
28694
<filename>oeis/156/A156372.asm<gh_stars>10-100 ; A156372: Denominator of Euler(n, 1/15). ; Submitted by <NAME> ; 1,30,225,13500,50625,1518750,11390625,1366875000,2562890625,76886718750,576650390625,34599023437500,129746337890625,3892390136718750,29192926025390625,7006302246093750000,6568408355712890625,197052250671386718750,1477891880035400390625,88673512802124023437500,332525673007965087890625,9975770190238952636718750,74818276426792144775390625,8978193171215057373046875000,16834112196028232574462890625,505023365880846977233886718750,3787675244106352329254150390625,227260514646381139755249023437500 add $0,1 mov $2,$0 mov $3,15 pow $3,$0 lpb $0 lpb $2 dif $2,2 mov $0,$2 mul $3,2 lpe lpe mov $0,$3 div $0,15
programs/oeis/037/A037667.asm
neoneye/loda
22
244277
; A037667: Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 3,2,0. ; 3,14,56,227,910,3640,14563,58254,233016,932067,3728270,14913080,59652323,238609294,954437176,3817748707,15270994830,61083979320,244335917283,977343669134,3909374676536,15637498706147,62549994824590 mov $1,4 pow $1,$0 mul $1,32 div $1,9 mov $0,$1
programs/oeis/278/A278313.asm
karttu/loda
0
241984
<gh_stars>0 ; A278313: Number of letters "I" in Roman numeral representation of n. ; 1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,1,0 add $0,6 mov $1,$0 mod $1,5 mov $2,2 lpb $2,1 trn $1,3 gcd $2,$1 lpe
programs/oeis/098/A098096.asm
neoneye/loda
22
6203
<filename>programs/oeis/098/A098096.asm ; A098096: Numbers of the form p^2 * 2^p for p prime. ; 16,72,800,6272,247808,1384448,37879808,189267968,4437573632,451508436992,2063731785728,188153927303168,3696558092582912,16263975998062592,310889111776919552,25301222706567446528,2006659878768217161728,8580041837284155195392,662459473175057417633792,11902724720072940761120768,50330981974424678687571968,3772453020107450339670622208,66626319770601443076406771712,4902861525589748578737981489152,1490915562193426304835310057422848,25862607545856336249335738796081152,107588041742570285763828194446671872 seq $0,40 ; The prime numbers. mov $1,$0 add $2,$0 mul $0,$2 lpb $1 mul $0,2 sub $1,1 lpe
src/math/pow_int/src/pow_int.asm
nikAizuddin/lib80386
4
87400
<reponame>nikAizuddin/lib80386<gh_stars>1-10 ; 1 2 3 4 5 6 7 ;234567890123456789012345678901234567890123456789012345678901234567890 ;===================================================================== ; ; FUNCTION NAME: pow_int ; FUNCTION PURPOSE: <See doc/description file> ; ; AUTHOR: <NAME> ; EMAIL: <EMAIL> ; DATE CREATED: 08-NOV-2014 ; ; CONTRIBUTORS: --- ; ; LANGUAGE: x86 Assembly Language ; SYNTAX: Intel ; ASSEMBLER: NASM ; ARCHITECTURE: i386 ; KERNEL: Linux 32-bit ; FORMAT: elf32 ; ; INCLUDE FILES: --- ; ; VERSION: 0.1.11 ; STATUS: Alpha ; BUGS: --- <See doc/bugs/index file> ; ; REVISION HISTORY: <See doc/revision_history/index file> ; ; MIT Licensed. See /LICENSE file. ; ;===================================================================== global pow_int section .text pow_int: ;parameter 1: x:32bit ;parameter 2: y:32bit ;returns = result (EAX) .setup_stackframe: sub esp, 4 ;reserve 4 bytes mov [esp], ebp ;store ebp to stack mov ebp, esp ;store current stack ptr to ebp .get_arguments: add ebp, 8 ;+8 offset to get arguments mov eax, [ebp ] ;get x the base value mov ebx, [ebp + 4] ;get y the power value .set_local_variables: sub esp, 16 ;reserve 16 bytes mov [esp ], eax ;x mov [esp + 4], ebx ;y mov [esp + 8], ebx ;i = y mov dword [esp + 12], 1 ;result = 1 .loop_1: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 001: result = result * x; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 12] ;eax = result mov ebx, [esp ] ;ebx = x xor edx, edx mul ebx ;eax *= ebx mov [esp + 12], eax ;result = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 002: --i; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 8] ;eax = i sub eax, 1 mov [esp + 8], eax ;i = eax ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 003: if i != 0, then ; goto .loop_1; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 8] ;eax = i cmp eax, 0 jne .loop_1 .endloop_1: .return: ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; 004: return result; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mov eax, [esp + 12] ;eax = result .clean_stackframe: sub ebp, 8 ;-8 offset due to arguments mov esp, ebp ;restore stack ptr to initial val mov ebp, [esp] ;restore ebp to initial value add esp, 4 ;restore 4 bytes ret
src/nso-types-report_objects-observation_report.ads
SSOCsoft/Log_Reporter
0
18380
With NSO.JSON, Ada.Containers.Ordered_Maps, Ada.Calendar, Gnoga.Gui.Base, Gnoga.Gui.Element.Form, Gnoga.Gui.Element.Common; Limited with Report_Form; Package NSO.Types.Report_Objects.Observation_Report with Elaborate_Body is Package Instrument_Mode_Pkg is new Ada.Containers.Indefinite_Ordered_Maps( "<" => Ada.Strings.Less_Case_Insensitive, "=" => String_Set."=", Key_Type => String, Element_Type => String_Set.Set ); ------------------- -- REPORT DATA -- ------------------- Subtype Report_Data is Instrument_Mode_Pkg.Map; -- record -- Frequency : String_Vector.Vector:= String_Vector.Empty_Vector; -- End record; ------------------ -- REPORT MAP -- ------------------ Package Report_Map is new Ada.Containers.Indefinite_Ordered_Maps( "=" => Instrument_Mode_Pkg."=", "<" => Ada.Calendar."<", Key_Type => Ada.Calendar.Time, Element_Type => Report_Data ); ---------------------------------------- -- OBSERVATION REPORT GNOGA ELEMENT -- ---------------------------------------- Type Observation_Report is new Abstract_Report with record --Gnoga.Gui.Element.Common.DIV_Type with Date : Gnoga.Gui.Element.Form.Date_Type; Time : Gnoga.Gui.Element.Form.Time_Type; end record; overriding procedure Create (Report : in out Observation_Report; Parent : in out Gnoga.Gui.Base.Base_Type'Class; Content : in String := ""; ID : in String := "" ); overriding procedure Add_Self( Self : in Observation_Report; Form : in out Gnoga.Gui.Element.Form.Form_Type'Class ); Function Report( Data : JSON.Instance'Class ) return Report_Map.Map; Function Report( Object : Report_Map.Map ) return String; Private Overriding Function Get_Name( Self : Observation_Report ) return String; End NSO.Types.Report_Objects.Observation_Report;
src/utilities/commandline_args.adb
SKNZ/BoiteMaker
0
19448
<gh_stars>0 with gnat.command_line; use gnat.command_line; package body commandline_args is procedure initialize is procedure validate_int_initialization(x : integer; name : string) is begin if x = int_no_value then raise argument_missing with name; end if; end; procedure int_exception(name : string; text : in string; val : in out integer) is begin val := integer'value(text); exception when constraint_error => raise argument_missing with name; end; begin -- Boucle d'obtention des paramètres loop case getopt("t: w: l: q: h: b: f: r: -fill: -border: -show-debug -log: -help -pattern:") is when 't' => int_exception("t", parameter, t); when 'w' => int_exception("w", parameter, w); when 'l' => int_exception("l", parameter, l); when 'q' => int_exception("q", parameter, q); when 'h' => int_exception("h", parameter, h); when 'b' => int_exception("b", parameter, b); when 'f' => f := to_unbounded_string(parameter); when '-' => if full_switch = "-fill" then fill_color := to_unbounded_string(parameter); elsif full_switch = "-border" then border_color := to_unbounded_string(parameter); elsif full_switch = "-help" then show_help := true; elsif full_switch = "-show-debug" then show_debug := true; elsif full_switch = "-log" then log_file := to_unbounded_string(parameter); elsif full_switch = "-pattern" then pattern := to_unbounded_string(parameter); end if; when others => exit; end case; end loop; -- Vérification de la validité des paramètres saisis validate_int_initialization(t, "t"); validate_int_initialization(w, "w"); validate_int_initialization(l, "l"); validate_int_initialization(q, "q"); validate_int_initialization(h, "h"); validate_int_initialization(b, "b"); if f = null_unbounded_string then raise argument_missing with "f"; end if; end; -- obtient le paramètre t function get_t return integer is begin return t; end; -- obtient le paramètre l function get_l return integer is begin return l; end; -- obtient le paramètre w function get_w return integer is begin return w; end; -- obtient le paramètre q function get_q return integer is begin return q; end; -- obtient le paramètre h function get_h return integer is begin return h; end; -- obtient le paramètre b function get_b return integer is begin return b; end; -- obtient le paramètre f function get_f return string is begin return to_string(f); end; -- obtient le paramètre fill function get_fill_color return string is begin return to_string(fill_color); end; -- obtient le paramètre border function get_border_color return string is begin return to_string(border_color); end; -- obtient le paramètre help function get_show_help return boolean is begin return show_help; end; -- obtient le paramètre debug function get_show_debug return boolean is begin return show_debug; end; -- obtient le paramètre log function get_log_file return string is begin return to_string(log_file); end; -- obtient le paramètre pattern function get_pattern return string is begin return to_string(pattern); end; end commandline_args;
Practice/Final/Lab 5/4. Write an ASM code to read a letter and print if it is Upper case or Lower case.asm
WardunIslam/CSE331L_Section_7_Summer_2020_NSU
0
19242
<reponame>WardunIslam/CSE331L_Section_7_Summer_2020_NSU .MODEL SMALL .STACK 100H .DATA PROMPT DB 'Enter the letter : $' MSG_1 DB 'The input letter is: $' MSG_2 DB 'The input is not letter!$' MSG_3 DB "'Uppercase'$" MSG_4 DB "'Lowercase'$" .CODE MAIN PROC MOV AX, @DATA MOV DS, AX JMP @INPUT @ERROR_PRINT: CALL NEWLINE MOV AH, 09H MOV DX, OFFSET MSG_2 INT 21H CALL NEWLINE @INPUT: MOV AH, 09H LEA DX, PROMPT INT 21H MOV AH, 01H INT 21H CMP AL, 41H JL @ERROR_PRINT CMP AL, 5AH JLE @UPPERCASE CMP AL, 61H JL @ERROR_PRINT CMP AL, 7AH JLE @LOWERCASE @UPPERCASE: MOV BX, OFFSET MSG_3 JMP @DISPLAY @LOWERCASE: LEA BX, MSG_4 @DISPLAY: CALL NEWLINE MOV AH, 09H MOV DX, OFFSET MSG_1 INT 21H MOV DX, BX INT 21H MOV AH, 4CH INT 21H MAIN ENDP NEWLINE PROC PUSH AX PUSH DX MOV AH, 02H MOV DL, 0DH INT 21H MOV DL, 0AH INT 21H POP DX POP AX RET NEWLINE ENDP END MAIN
src/firmware-tests/Platform/Motor/EnableMotorVddDummy.asm
pete-restall/Cluck2Sesame-Prototype
1
27293
<reponame>pete-restall/Cluck2Sesame-Prototype<gh_stars>1-10 #include "Platform.inc" radix decimal EnableMotorVddDummy code global enableMotorVdd enableMotorVdd: return end
src/ado-parameters.ads
My-Colaborations/ada-ado
0
2148
<gh_stars>0 ----------------------------------------------------------------------- -- ADO Parameters -- Parameters for queries -- Copyright (C) 2010, 2011, 2012, 2013, 2015, 2017, 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. ----------------------------------------------------------------------- with Ada.Strings.Unbounded; with Ada.Finalization; with Ada.Calendar; with Ada.Containers.Indefinite_Vectors; with ADO.Utils; with ADO.Dialects; -- == Query Parameters == -- Query parameters are represented by the <tt>Parameter</tt> type which can represent almost -- all database types including boolean, numbers, strings, dates and blob. Parameters are -- put in a list represented by the <tt>Abstract_List</tt> or <tt>List</tt> types. -- -- A parameter is added by using either the <tt>Bind_Param</tt> or the <tt>Add_Param</tt> -- operation. The <tt>Bind_Param</tt> operation allows to specify either the parameter name -- or its position. The <tt>Add_Param</tt> operation adds the parameter at end of the list -- and uses the last position. In most cases, it is easier to bind a parameter with a name -- as follows: -- -- Query.Bind_Param ("name", "Joe"); -- -- and the SQL can use the following construct: -- -- SELECT * FROM user WHERE name = :name -- -- When the <tt>Add_Param</tt> is used, the parameter is not associated with any name but it -- as a position index. Setting a parameter is easier: -- -- Query.Add_Param ("Joe"); -- -- but the SQL cannot make any reference to names and must use the <tt>?</tt> construct: -- -- SELECT * FROM user WHERE name = ? -- -- === Parameter Expander === -- The parameter expander is a mechanism that allows to replace or inject values in the SQL -- query by looking at an operation provided by the <tt>Expander</tt> interface. Such expander -- is useful to replace parameters that are global to a session or to an application. -- package ADO.Parameters is use Ada.Strings.Unbounded; type Token is new String; type Parameter_Type is (T_NULL, T_STRING, T_TOKEN, T_LIST, T_DATE, T_LONG_INTEGER, T_INTEGER, T_BOOLEAN, T_LONG_FLOAT, T_BLOB); type Parameter (T : Parameter_Type; Len : Natural; Value_Len : Natural) is record Position : Natural := 0; Name : String (1 .. Len); case T is when T_NULL => null; when T_LONG_INTEGER => Long_Num : Long_Long_Integer := 0; when T_INTEGER => Num : Integer; when T_BOOLEAN => Bool : Boolean; when T_LONG_FLOAT => Float : Long_Float; when T_DATE => Time : Ada.Calendar.Time; when T_BLOB => Data : ADO.Blob_Ref; when others => Str : String (1 .. Value_Len); end case; end record; type Expander is limited interface; type Expander_Access is access all Expander'Class; -- Expand the name from the given group into a target parameter value to be used in -- the SQL query. The expander can look in a cache or in some configuration to find -- the value associated with the name and return it. The Expander can return a -- T_NULL when a value is not found or it may also raise some exception. function Expand (Instance : in Expander; Group : in String; Name : in String) return Parameter is abstract; type Abstract_List is abstract new Ada.Finalization.Controlled with private; type Abstract_List_Access is access all Abstract_List'Class; -- Set the SQL dialect description object. procedure Set_Dialect (Params : in out Abstract_List; D : in ADO.Dialects.Dialect_Access); -- Set the cache expander to be used when expanding the SQL. procedure Set_Expander (Params : in out Abstract_List; Expander : in ADO.Parameters.Expander_Access); -- Get the SQL dialect description object. function Get_Dialect (From : in Abstract_List) return ADO.Dialects.Dialect_Access; -- Add the parameter in the list. procedure Add_Parameter (Params : in out Abstract_List; Param : in Parameter) is abstract; -- Set the parameters from another parameter list. procedure Set_Parameters (Parameters : in out Abstract_List; From : in Abstract_List'Class) is abstract; -- Return the number of parameters in the list. function Length (Params : in Abstract_List) return Natural is abstract; -- Return the parameter at the given position function Element (Params : in Abstract_List; Position : in Natural) return Parameter is abstract; -- Execute the <b>Process</b> procedure with the given parameter as argument. procedure Query_Element (Params : in Abstract_List; Position : in Natural; Process : not null access procedure (Element : in Parameter)) is abstract; -- Clear the list of parameters. procedure Clear (Parameters : in out Abstract_List) is abstract; -- Operations to bind a parameter procedure Bind_Param (Params : in out Abstract_List; Name : in String; Value : in Boolean); procedure Bind_Param (Params : in out Abstract_List; Name : in String; Value : in Long_Long_Integer); procedure Bind_Param (Params : in out Abstract_List; Name : in String; Value : in Identifier); procedure Bind_Param (Params : in out Abstract_List; Name : in String; Value : in Integer); procedure Bind_Param (Params : in out Abstract_List; Name : in String; Value : in ADO.Entity_Type); procedure Bind_Param (Params : in out Abstract_List; Name : in String; Value : in String); procedure Bind_Param (Params : in out Abstract_List; Name : in String; Value : in Unbounded_String); procedure Bind_Param (Params : in out Abstract_List; Name : in String; Value : in Ada.Calendar.Time); procedure Bind_Param (Params : in out Abstract_List; Name : in String; Value : in Token); procedure Bind_Param (Params : in out Abstract_List; Name : in String; Value : in ADO.Blob_Ref); procedure Bind_Param (Params : in out Abstract_List; Name : in String; Value : in ADO.Utils.Identifier_Vector); procedure Bind_Param (Params : in out Abstract_List; Position : in Natural; Value : in Boolean); procedure Bind_Param (Params : in out Abstract_List; Position : in Natural; Value : in Long_Long_Integer); procedure Bind_Param (Params : in out Abstract_List; Position : in Natural; Value : in Long_Float); procedure Bind_Param (Params : in out Abstract_List; Position : in Natural; Value : in Identifier); procedure Bind_Param (Params : in out Abstract_List; Position : in Natural; Value : in Integer); procedure Bind_Param (Params : in out Abstract_List; Position : in Natural; Value : in Entity_Type); procedure Bind_Param (Params : in out Abstract_List; Position : in Natural; Value : in String); procedure Bind_Param (Params : in out Abstract_List; Position : in Natural; Value : in Unbounded_String); procedure Bind_Param (Params : in out Abstract_List; Position : in Natural; Value : in Ada.Calendar.Time); procedure Bind_Param (Params : in out Abstract_List; Position : in Natural; Value : in ADO.Blob_Ref); procedure Bind_Null_Param (Params : in out Abstract_List; Position : in Natural); procedure Bind_Null_Param (Params : in out Abstract_List; Name : in String); procedure Add_Param (Params : in out Abstract_List; Value : in Boolean); procedure Add_Param (Params : in out Abstract_List; Value : in Long_Long_Integer); procedure Add_Param (Params : in out Abstract_List; Value : in Identifier); procedure Add_Param (Params : in out Abstract_List; Value : in Integer); procedure Add_Param (Params : in out Abstract_List; Value : in String); procedure Add_Param (Params : in out Abstract_List; Value : in Unbounded_String); procedure Add_Param (Params : in out Abstract_List; Value : in Ada.Calendar.Time); -- Add a null parameter. procedure Add_Null_Param (Params : in out Abstract_List); -- Expand the SQL string with the query parameters. The following parameters syntax -- are recognized and replaced: -- <ul> -- <li>? is replaced according to the current parameter index. The index is incremented -- after each occurrence of ? character. -- <li>:nnn is replaced by the parameter at index <b>nnn</b>. -- <li>:name is replaced by the parameter with the name <b>name</b> -- <li>$group[var-name] is replaced by using the expander interface. -- </ul> -- Parameter strings are escaped. When a parameter is not found, an empty string is used. -- Returns the expanded SQL string. function Expand (Params : in Abstract_List'Class; SQL : in String) return String; -- ------------------------------ -- List of parameters -- ------------------------------ -- The <b>List</b> is an implementation of the parameter list. type List is new Abstract_List with private; procedure Add_Parameter (Params : in out List; Param : in Parameter); procedure Set_Parameters (Params : in out List; From : in Abstract_List'Class); -- Return the number of parameters in the list. function Length (Params : in List) return Natural; -- Return the parameter at the given position function Element (Params : in List; Position : in Natural) return Parameter; -- Execute the <b>Process</b> procedure with the given parameter as argument. procedure Query_Element (Params : in List; Position : in Natural; Process : not null access procedure (Element : in Parameter)); -- Clear the list of parameters. procedure Clear (Params : in out List); private function Compare_On_Name (Left, Right : in Parameter) return Boolean; package Parameter_Vectors is new Ada.Containers.Indefinite_Vectors (Index_Type => Positive, Element_Type => Parameter, "=" => Compare_On_Name); type Abstract_List is abstract new Ada.Finalization.Controlled with record Dialect : ADO.Dialects.Dialect_Access := null; Expander : Expander_Access; end record; type List is new Abstract_List with record Params : Parameter_Vectors.Vector; end record; end ADO.Parameters;