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 |
|---|---|---|---|---|
programs/oeis/258/A258632.asm | neoneye/loda | 22 | 25078 | ; A258632: Number of length 1 1..(n+1) arrays with every leading partial sum divisible by 2, 3, 5 or 7
; 1,2,3,4,5,6,7,8,9,9,10,10,11,12,13,13,14,14,15,16,17,17,18,19,20,21,22,22,23,23,24,25,26,27,28,28,29,30,31,31,32,32,33,34,35,35,36,37,38,39,40,40,41,42,43,44,45,45,46,46,47,48,49,50,51,51,52,53,54,54,55,55,56,57,58,... |
Structure/Category/NaturalTransformation/Equiv.agda | Lolirofle/stuff-in-agda | 6 | 2686 | <gh_stars>1-10
module Structure.Category.NaturalTransformation.Equiv where
import Function.Equals
open Function.Equals.Dependent
import Lvl
open import Logic
open import Logic.Predicate
open import Structure.Category
open import Structure.Category.Functor
open import Structure.Category.NaturalTransfor... |
src/asf-events-faces.ads | jquorning/ada-asf | 12 | 12977 | <filename>src/asf-events-faces.ads
-----------------------------------------------------------------------
-- asf-events -- ASF Events
-- Copyright (C) 2010, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compl... |
Groups/Subgroups/Normal/Examples.agda | Smaug123/agdaproofs | 4 | 2326 | {-# OPTIONS --safe --warning=error --without-K #-}
open import Groups.Definition
open import Setoids.Setoids
open import Sets.EquivalenceRelations
open import Groups.Subgroups.Normal.Definition
module Groups.Subgroups.Normal.Examples {a b : _} {A : Set a} {S : Setoid {a} {b} A} {_+_ : A → A → A} (G : Group S _+_) wh... |
snippets/mod320.test.i.asm | ped7g/ZXSpectrumNextMisc | 15 | 97789 | <gh_stars>10-100
MODULE mod320
test:
ld hl,0 ; value to "mod 320"
ld de,0 ; expected result
.loop:
push hl
push de
;call hlMod320
;call hlMod320_unrolled
ex de,hl ; LUT variant takes input in DE and returns result in DE
call deMod... |
programs/oeis/075/A075091.asm | neoneye/loda | 22 | 10407 | ; A075091: Sum of Lucas numbers and reflected Lucas numbers (comment to A061084).
; 4,0,6,0,14,0,36,0,94,0,246,0,644,0,1686,0,4414,0,11556,0,30254,0,79206,0,207364,0,542886,0,1421294,0,3720996,0,9741694,0,25504086,0,66770564,0,174807606,0,457652254,0,1198149156,0,3136795214,0
mov $1,2
mov $2,1
lpb $0
sub $0,2
add ... |
functions/compare.asm | perrada69/CalmCommander | 28 | 21551 |
; Porovnání adresářů
;
; Porovnává dva adresáře - v levém a pravém panelu. Společné soubory se označují.
compare_dirs
call savescr
call compare.deselect
call prohod_okno
call compare.deselect
call prohod_okno
ld hl,10 * 256 + 10
ld bc,60 * 256 + 1
ld a,16
call window
ld hl,11*256... |
sources/ippcp/asm_intel64/pcpbnusqrschoolm7as.asm | dongbinghua/ipp-crypto | 233 | 167367 | ;===============================================================================
; Copyright 2015-2021 Intel Corporation
;
; 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.apa... |
source/required/s-stratt.ads | ytomino/drake | 33 | 9236 | pragma License (Unrestricted);
-- implementation unit required by compiler
with Ada.IO_Exceptions;
with Ada.Streams;
with System.Unsigned_Types;
package System.Stream_Attributes is
pragma Preelaborate;
-- required for 'Read/'Write attributes by compiler (s-stratt.ads)
type Thin_Pointer is record
P1 :... |
source/nodes/program-nodes-record_representation_clauses.adb | optikos/oasis | 0 | 10968 | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Record_Representation_Clauses is
function Create
(For_Token : not null Program.Lexical_Elements
... |
programs/oeis/021/A021032.asm | neoneye/loda | 22 | 171516 | <gh_stars>10-100
; A021032: Decimal expansion of 1/28.
; 0,3,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5,7,1,4,2,8,5
add $0,2
mov $1,10
pow $1,$0
mul $1,4
div $1,1120
mod $1,10
mov ... |
programs/oeis/312/A312895.asm | karttu/loda | 1 | 91242 | ; A312895: Coordination sequence Gal.4.58.3 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,4,9,13,17,21,26,30,34,39,43,47,51,56,60,64,69,73,77,81,86,90,94,99,103,107,111,116,120,124,129,133,137,141,146,150,154,159,163,167,171,176,... |
Task/Bitmap-Bresenhams-line-algorithm/Ada/bitmap-bresenhams-line-algorithm-1.ada | LaudateCorpus1/RosettaCodeData | 1 | 9634 | procedure Line (Picture : in out Image; Start, Stop : Point; Color : Pixel) is
DX : constant Float := abs Float (Stop.X - Start.X);
DY : constant Float := abs Float (Stop.Y - Start.Y);
Err : Float;
X : Positive := Start.X;
Y : Positive := Start.Y;
Step_X : Integer := 1;
Step_Y : Integer := 1;... |
test/Succeed/Issue2880.agda | cruhland/agda | 1,989 | 11652 | <reponame>cruhland/agda
module Issue2880 where
app : {A : Set} → (A → A) → (A → A)
app f x = f x
{-# COMPILE GHC app = \ A f x -> f (app A f x) #-}
mutual
id : {A : Set} → A → A
id x = x
{-# COMPILE GHC id = id' #-}
id' : {A : Set} → A → A
id' x = x
{-# COMPILE GHC id' = id #-}
|
programs/oeis/040/A040200.asm | jmorken/loda | 1 | 178565 | <reponame>jmorken/loda<gh_stars>1-10
; A040200: Continued fraction for sqrt(215).
; 14,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1
mov $1,5
mov $3,24
lpb $0
gcd $0,4
mov $3,... |
libsrc/_DEVELOPMENT/math/float/math48/z80/am48_double32.asm | meesokim/z88dk | 0 | 16377 |
SECTION code_fp_math48
PUBLIC am48_double32
EXTERN am48_double32u, l_neg_dehl
am48_double32:
; 32-bit signed long to double
;
; enter : DEHL = 32-bit integer n
;
; exit : AC = AC' (AC' saved)
; AC'= (double)(n)
;
; uses : af, bc, de, hl, af', bc', de', hl'
ld a,d
or a
jp... |
Univalence/SEquivSCPermEquiv.agda | JacquesCarette/pi-dual | 14 | 8100 | {-# OPTIONS --without-K #-}
module SEquivSCPermEquiv where
open import Level using (Level; _⊔_)
open import Data.Fin using (Fin)
open import Data.Product using (_,_; proj₁; proj₂)
open import Data.Vec using (tabulate)
open import Function using (_∘_; id)
open import Data.Vec.Properties ... |
programs/oeis/313/A313538.asm | neoneye/loda | 22 | 7754 | <reponame>neoneye/loda<gh_stars>10-100
; A313538: Coordination sequence Gal.5.110.4 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,10,14,19,23,28,32,37,42,47,52,56,61,65,70,74,79,84,89,94,98,103,107,112,116,121,126,131,136,140,1... |
src/minirest.adb | mosteo/minirest | 2 | 26695 | with AAA.Processes;
with Ada.Strings.Unbounded;
with Ada.Integer_Text_IO;
with GNAT.OS_Lib;
package body Minirest is
package OS renames GNAT.OS_Lib;
------------------
-- Code_To_Kind --
------------------
function Code_To_Kind (Code : Integer) return Status_Kinds
is (case Code is
when 1... |
programs/oeis/050/A050493.asm | jmorken/loda | 1 | 5776 | ; A050493: a(n) = sum of binary digits of n-th triangular number.
; 0,1,2,2,2,4,3,3,2,4,5,2,4,5,4,4,2,4,5,6,4,6,7,3,4,4,7,6,5,6,5,5,2,4,5,6,5,8,6,4,5,7,6,6,8,4,5,4,4,5,8,6,5,7,7,3,6,7,8,7,6,7,6,6,2,4,5,6,5,8,7,8,4,6,8,5,8,9,4,5,5,8,7,8,8,7,8,8,7,8,12,5,6,5,6,5,4,5,8,7,8,7,5,7,6,9,7,6,10,9,9,4,6,6,8,6,5,10,9,8,7,8,9,8,7... |
oeis/074/A074867.asm | neoneye/loda-programs | 11 | 1020 | ; A074867: a(n) = M(a(n-1)) + M(a(n-2)) where a(1)=a(2)=1 and M(k) is the product of the digits of k in base 10.
; Submitted by <NAME>
; 1,1,2,3,5,8,13,11,4,5,9,14,13,7,10,7,7,14,11,5,6,11,7,8,15,13,8,11,9,10,9,9,18,17,15,12,7,9,16,15,11,6,7,13,10,3,3,6,9,15,14,9,13,12,5,7,12,9,11,10,1,1,2,3,5,8,13,11,4,5,9,14,13,7,10,... |
alloy4fun_models/trashltl/models/9/bFjffW9XTBkrfxBQq.als | Kaixi26/org.alloytools.alloy | 0 | 4998 | open main
pred idbFjffW9XTBkrfxBQq_prop10 {
always Protected in Protected'
}
pred __repair { idbFjffW9XTBkrfxBQq_prop10 }
check __repair { idbFjffW9XTBkrfxBQq_prop10 <=> prop10o } |
src/converter/cvt_string2int/src/cvt_string2int.asm | nikAizuddin/lib80386 | 4 | 24836 | ; 1 2 3 4 5 6 7
;234567890123456789012345678901234567890123456789012345678901234567890
;=====================================================================
;
; FUNCTION: cvt_string2int
; FUNCTION PURPOSE: <See doc/description file>
;
; ... |
3-mid/impact/source/3d/collision/narrowphase/impact-d3-collision-convex_raycast-continuous_convex.adb | charlie5/lace | 20 | 22374 | with impact.d3.Transform;
with impact.d3.Vector;
with impact.d3.Transform_Util;
with impact.d3.Scalar;
with impact.d3.collision.Detector.discrete.gjk_pair;
with impact.d3.collision.Detector.discrete;
-- #include "impact.d3.collision.convex_Raycast.continuous_convex.h"
-- #include "BulletCollision/CollisionShapes/i... |
Structure/Operator/Vector/Subspace/Proofs.agda | Lolirofle/stuff-in-agda | 6 | 3835 | import Lvl
open import Structure.Operator.Vector
open import Structure.Setoid
open import Type
module Structure.Operator.Vector.Subspace.Proofs
{ℓᵥ ℓₛ ℓᵥₑ ℓₛₑ}
{V : Type{ℓᵥ}} ⦃ equiv-V : Equiv{ℓᵥₑ}(V) ⦄
{S : Type{ℓₛ}} ⦃ equiv-S : Equiv{ℓₛₑ}(S) ⦄
{_+ᵥ_ : V → V → V}
{_⋅ₛᵥ_ : S → V → V}
{_+ₛ_ _⋅ₛ_ : S → ... |
deBruijn/Substitution/Data.agda | nad/dependently-typed-syntax | 5 | 13657 | <filename>deBruijn/Substitution/Data.agda
------------------------------------------------------------------------
-- Parallel substitutions (defined using an inductive family)
------------------------------------------------------------------------
open import Data.Universe.Indexed
module deBruijn.Substitution.Data
... |
events.asm | kieranhj/stniccc-archie | 3 | 11245 | <gh_stars>1-10
; ============================================================================
; Events system
; ============================================================================
;.equ TRACK_SPEED, 4
.macro do_event pattern, temp, func, data
; .long \temp*TRACK_SPEED+\pattern*64*TRACK_SPEED
.long \te... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_475.asm | ljhsiun2/medusa | 9 | 88722 | <reponame>ljhsiun2/medusa<filename>Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_475.asm<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x15b71, %r14
nop
cmp %rax, %rax
movw $0x6... |
Transynther/x86/_processed/US/_ht_st_zr_un_/i7-7700_9_0xca.log_21829_1403.asm | ljhsiun2/medusa | 9 | 7739 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xd70f, %rsi
lea addresses_UC_ht+0x103bf, %rdi
nop
nop
nop
sub %r13, %r13
mov $6, %rcx
rep movsl
nop
nop
nop
and %r10, %r10
lea addresses_D_ht+0x93bf, %rbx
nop
nop
nop
and $248... |
programs/oeis/011/A011930.asm | karttu/loda | 1 | 176052 | <filename>programs/oeis/011/A011930.asm
; A011930: a(n) = floor(n(n-1)(n-2)(n-3)/20).
; 0,0,0,0,1,6,18,42,84,151,252,396,594,858,1201,1638,2184,2856,3672,4651,5814,7182,8778,10626,12751,15180,17940,21060,24570,28501,32886,37758,43152,49104,55651,62832,70686,79254,88578,98701,109668,121524,134316,148092,162901,178794,19... |
test/interaction/Issue2183.agda | pthariensflame/agda | 3 | 3464 | <reponame>pthariensflame/agda<gh_stars>1-10
-- Andreas, 2016-09-22, issue #2183, issue reported by Ulf
open import Agda.Builtin.Nat
open import Agda.Builtin.Equality
module _ (n : Nat) where
foo : (m : Nat) → n ≡ m → Nat
foo m refl = {!m!}
-- Splitting on m fails currently, as it internally is .n
-- We may be d... |
test/src/basic_test_window.adb | Fabien-Chouteau/Giza | 7 | 21595 | <reponame>Fabien-Chouteau/Giza
with Giza.Colors; use Giza.Colors;
with Giza.Window; use Giza.Window;
with Giza.Widget.Button; use Giza.Widget.Button;
with Giza.GUI;
use Giza;
package body Basic_Test_Window is
-------------
-- On_Init --
-------------
overriding procedure On_Init
(This ... |
programs/oeis/022/A022334.asm | jmorken/loda | 1 | 174941 | <filename>programs/oeis/022/A022334.asm
; A022334: Index of 5^n within sequence of numbers of form 2^i * 5^j.
; 1,4,9,16,26,38,52,69,88,109,133,159,187,218,251,286,324,364,406,451,498,547,599,653,709,768,829,892,958,1026,1096,1168,1243,1320,1399,1481,1565,1651,1740,1831,1924,2020,2118,2218,2321,2426,2533,2643,2755,2869... |
data/wildPokemon/pokemontower3.asm | etdv-thevoid/pokemon-rgb-enhanced | 9 | 27681 | TowerMons3:
db $0A
db 20,GASTLY
db 21,GASTLY
db 22,GASTLY
db 23,GASTLY
db 19,GASTLY
db 18,GASTLY
db 24,GASTLY
db 20,CUBONE
db 22,CUBONE
db 25,HAUNTER
db $00
|
programs/oeis/092/A092807.asm | neoneye/loda | 22 | 98397 | <filename>programs/oeis/092/A092807.asm
; A092807: Expansion of (1-6*x+4*x^2)/((1-2*x)*(1-6*x)).
; 1,2,8,40,224,1312,7808,46720,280064,1679872,10078208,60467200,362799104,2176786432,13060702208,78364180480,470185017344,2821109972992,16926659575808,101559956930560,609359740534784
mov $1,$0
seq $0,181565 ; a(n) = 3*2^n ... |
source/league/regexp/matreshka-internals-regexps-compiler-parser.adb | svn2github/matreshka | 24 | 18761 | <reponame>svn2github/matreshka<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
sbsext/ed/modi.asm | olifink/smsqe | 0 | 104893 | * ED - start, end and abort modification 1985 <NAME> QJUMP
*
section ed
*
xdef ed_sttmd
xdef ed_endmd
xdef ed_abtmd
xdef ed_getln
*
xref ed_fline
xref ed_xplin
xref ed_rewrt
xref ed_wrall
xref ed_snorm
xref ed_shigh
xref ed_putln
xref ed_dline
xref ed_dscr
xref ed_trap3
*
include dev8_sbsext_ed_ke... |
data/mapObjects/PowerPlant.asm | AmateurPanda92/pokemon-rby-dx | 9 | 29606 | <filename>data/mapObjects/PowerPlant.asm
PowerPlant_Object:
db $2e ; border block
db 3 ; warps
warp 4, 35, 3, -1
warp 5, 35, 3, -1
warp 0, 11, 3, -1
db 0 ; signs
db 14 ; objects
object SPRITE_BALL, 9, 20, STAY, NONE, 1, VOLTORB, 40
object SPRITE_BALL, 32, 18, STAY, NONE, 2, VOLTORB, 40
object SPRITE_BALL, ... |
libsrc/_DEVELOPMENT/arch/ts2068/display/z80/asm_tshc_aaddrpup.asm | jpoikela/z88dk | 640 | 85224 | ; ===============================================================
; May 2017
; ===============================================================
;
; void *tshc_aaddrpup(void *aaddr)
;
; Modify attribute address to move up one pixel.
;
; ===============================================================
SECTION code_clib
SE... |
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_interfaces_videoorientation_h.ads | persan/A-gst | 1 | 15446 | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
with glib;
with System;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_interfaces_videoorientation_h is
-- unsupported macro: GST_TYPE_VIDEO_ORIENTATION (gst_video... |
_lessons/06-dynamic/code/family-state.als | HanielB/2021.1-fm | 0 | 1781 |
sig State {
successor : set State
}
abstract sig Person {
spouse: Person lone -> State,
}
sig Man, Woman extends Person {}
pred getMarried [p,q: Person, s,s': State] {
-- Pre-condition
-- they must not be married
no (p+q).spouse.s
-- Post-condition
-- After marriage they are each other's spouses
... |
source/features/screen - 1k bug.asm | shoaib-jamal/MichalOS | 0 | 164943 | <filename>source/features/screen - 1k bug.asm
; ==================================================================
; SCREEN HANDLING SYSTEM CALLS
; ==================================================================
; ------------------------------------------------------------------
; os_putchar -- Puts a character on... |
oeis/021/A021380.asm | neoneye/loda-programs | 11 | 19030 | <filename>oeis/021/A021380.asm
; A021380: Decimal expansion of 1/376.
; 0,0,2,6,5,9,5,7,4,4,6,8,0,8,5,1,0,6,3,8,2,9,7,8,7,2,3,4,0,4,2,5,5,3,1,9,1,4,8,9,3,6,1,7,0,2,1,2,7,6,5,9,5,7,4,4,6,8,0,8,5,1,0,6,3,8,2,9,7,8,7,2,3,4,0,4,2,5,5,3,1,9,1,4,8,9,3,6,1,7,0,2,1,2,7,6,5,9,5
seq $0,173833 ; 10^n - 3.
div $0,376
mod $0,10
|
computer architecture/ProjOrgArq/in/teste2.asm | MarceloHeredia/College | 0 | 173863 | .text
.globl main
main: lui $1,0x00001001
ori $8 , $1, 0x00000000
lw $9,0x00000000($8)
beq $8,$9,L_1
j L_1
addu $12,$9,$11
lui $1,0x00001001
ori $13,$1,0x00000008
L_4:sw $12,0x00000000($13)
beq $9, $10, main
and $21,$20,$19
L_5:sll $22,$23,0x00000005
srl $24,$25,0x00000009
sll $24,$25,0x00000009
slt $14,$15,$... |
agda/Heapsort/Impl1/Correctness/Order.agda | bgbianchi/sorting | 6 | 8024 | open import Relation.Binary.Core
module Heapsort.Impl1.Correctness.Order {A : Set}
(_≤_ : A → A → Set)
(tot≤ : Total _≤_)
(trans≤ : Transitive _≤_) where
open import Data.List
open import Function using (_∘_)
open import Heapsort.Impl1 _≤_ tot≤ trans≤
open impor... |
8088/demo/popcorn/popcorn.asm | reenigne/reenigne | 92 | 93113 | <reponame>reenigne/reenigne
org 0x100
%include "../../defaults_common.asm"
|
src/Section3.agda | mietek/coquand | 4 | 5699 | <filename>src/Section3.agda
module Section3 where
open import Section1 public
-- 3. The calculus of proof trees
-- ==============================
--
-- We define the set of proof trees of implicational logic in the ordinary style à la Church,
-- except that we use explicit substitutions.
-- 3.1. Definition of type... |
src/keystore-passwords-files.ads | thierr26/ada-keystore | 25 | 16384 | <reponame>thierr26/ada-keystore
-----------------------------------------------------------------------
-- keystore-passwords-files -- File based password provider
-- Copyright (C) 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use th... |
1A/S5/PIM/projet/src/test_arbre_genealogique.adb | MOUDDENEHamza/ENSEEIHT | 4 | 25718 | --------------------------------------------------------------------------------
-- Fichier : display_shell.adb
-- Auteur : <NAME> & <NAME>
-- Objectif : Test du module Arbre_Genealogique
-- Crée : Dimanche Nov 10 2019
--------------------------------------------------------------------------------
with Ad... |
Cypress/PSoC/USER_COMPONENTS/LED_SegDriver/TestBench.cydsn/codegentemp/KeilStart.a51 | RyanTruran/EmbeddedSystems.Playground | 26 | 160031 | ;*******************************************************************************
; FILENAME: KeilStart.a51
; Version 2.40
;
; DESCRIPTION:
; Bootup Code for PSoC3 chips using the Keil toolchain.
;
; NOTE:
;
;
;
;*******************************************************************************
; Copyright ... |
test/Succeed/LocalOpenImplicit.agda | shlevy/agda | 1,989 | 7535 | module LocalOpenImplicit where
record Id (a : Set) : Set where
field id : a -> a
foo : {a b : Set} -> Id a -> Id b -> (a -> b) -> a -> b
foo id1 id2 f x = id id2 (f (id id1 x))
where open Id
|
src/opencl/opencl_api_spec.ads | sebsgit/textproc | 0 | 14986 | <gh_stars>0
with System;
with Interfaces.C;
with dl_loader;
package opencl_api_spec is
pragma Elaborate_Body;
function Load_From(h: dl_loader.Handle) return Boolean;
clGetPlatformIDs: System.Address;
clGetPlatformInfo: System.Address;
clGetDeviceIDs: System.Address;
clGetDeviceInfo: System.Address;... |
libsrc/stdio/ansi/x1/f_ansi_scrollup.asm | jpoikela/z88dk | 0 | 161080 | <reponame>jpoikela/z88dk<filename>libsrc/stdio/ansi/x1/f_ansi_scrollup.asm
;
; ANSI Video handling for the Commodore 128 (Z80 mode)
; By <NAME> - 22/08/2001
;
; Scrollup
;
;
; $Id: f_ansi_scrollup.asm,v 1.6 2016-07-20 05:45:02 stefano Exp $
;
SECTION code_clib
PUBLIC ansi_SCROLLUP
EXTERN __x1_attr
EXTERN... |
Ada/src/Problem_74.adb | Tim-Tom/project-euler | 0 | 2669 | <gh_stars>0
with Ada.Text_IO;
package body Problem_74 is
package IO renames Ada.Text_IO;
factorial_cache : constant Array(0 .. 9) of Integer := (1, 1, 2, 6, 24, 120, 720, 5_040, 40_320, 362_880);
type count is new Integer range -1 .. 127;
for count'size use 8;
type count_cache_array is Array(Positive ran... |
tests/support/usb_testing-udc_stub.adb | JeremyGrosser/usb_embedded | 0 | 1721 | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore --
-- ... |
src/drivers/oscctrl_u2401/sam-oscillators_controller.adb | Fabien-Chouteau/samd51-hal | 1 | 22176 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, AdaCore --
-- --
-- ... |
Task/Old-lady-swallowed-a-fly/Ada/old-lady-swallowed-a-fly.ada | LaudateCorpus1/RosettaCodeData | 1 | 6845 | with Ada.Text_IO, Ada.Containers.Indefinite_Doubly_Linked_Lists; use Ada.Text_IO;
procedure Swallow_Fly is
package Strings is new Ada.Containers.Indefinite_Doubly_Linked_Lists(String);
Lines, Animals: Strings.List;
procedure Swallow(Animal: String;
Second_Line: String;
... |
Scripts Pack Source Items/Scripts Pack/Dock/Dock Window Suck Effect.applescript | Phorofor/ScriptsPack.macOS | 1 | 2337 | # Scripts Pack - Tweak various preference variables in macOS
# <Phorofor, https://github.com/Phorofor/>
-- Change to the hidden 'Suck' effect for the Dock
-- Versions compatible:
-- Preference Identifier: com.apple.dock
-- Preference Key: mineffect
-- Preference location: ~/Library/Preferences/com.apple.dock.plist
--... |
user/sleep.asm | joshiamey/xv6-riscv-fall19 | 1 | 15206 | <filename>user/sleep.asm
user/_sleep: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <main>:
#include "user/user.h"
int
main(int argc, char *argv[])
{
0: 1101 addi sp,sp,-32
2: ec06 sd ra,24(sp)
4: e822 sd s0,16(sp)
6: e... |
rust.g4 | adtac/testlr | 0 | 7037 | <filename>rust.g4<gh_stars>0
grammar rust;
fragment XID_Start :
'\u0041' .. '\u005a'
| '_'
| '\u0061' .. '\u007a'
| '\u00aa'
| '\u00b5'
| '\u00ba'
| '\u00c0' .. '\u00d6'
| '\u00d8' .. '\u00f6'
| '\u00f8' .. '\u0236'
| '\u0250' .. '\u02c1'
| '\u02c6' .. '\u02d1'
| '\u02... |
proglangs-learning/Agda/general-exercises/RunningHaskellCode.agda | helq/old_code | 0 | 8063 | module general-exercises.RunningHaskellCode where
-- To compile code: stack exec -- agda general-exercises/RunningHaskellCode.agda -c
open import Data.String using (String)
open import Agda.Builtin.Unit using (⊤)
-- Working directly with Haskell code, kinda dangerous stuff
--
-- This didn't actually work because all... |
programs/oeis/036/A036741.asm | neoneye/loda | 22 | 83375 | <gh_stars>10-100
; A036741: Values increase, Roman numerals increase lexicographically.
; 1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,30,31,32,33,34,35,36,37,38
add $0,1
mov $1,20
mul $1,$0
div $1,18
mov $0,$1
|
Working Disassembly/General/Sprites/Tails/Anim - Tails Tail.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 0 | 23750 | <reponame>TeamASM-Blur/Sonic-3-Blue-Balls-Edition
dc.w AniTails_Tail00-AniTails_Tail
dc.w AniTails_Tail01-AniTails_Tail
dc.w AniTails_Tail02-AniTails_Tail
dc.w AniTails_Tail03-AniTails_Tail
dc.w AniTails_Tail04-AniTails_Tail
dc.w AniTails_Tail05-AniTails_Tail
dc.w AniTails_Tail06-AniTails_Tail
dc.w AniT... |
test/Succeed/Issue2260.agda | cruhland/agda | 1,989 | 10316 | -- Andreas, 2016-10-14, issue #2260 testcase by Nisse
-- {-# OPTIONS -v tc.meta:40 #-}
data D : Set → Set₁ where
d : (A : Set) → D A
postulate
A : Set
f : (A : Set) → D A → D A
B : Set₁
B = Set
where
abstract
A′ : Set
A′ = A
x : D A′
x = f _ (d A′)
-- WAS: internal error
-- should check
|
oeis/246/A246930.asm | neoneye/loda-programs | 11 | 22568 | ; A246930: Prime(12*n).
; 37,89,151,223,281,359,433,503,593,659,743,827,911,997,1069,1163,1249,1321,1439,1511,1601,1693,1783,1877,1987,2069,2143,2267,2347,2423,2543,2657,2713,2801,2903,3011,3119,3221,3323,3413,3527,3607,3697,3797,3907,4003,4093,4211,4283,4409,4513,4621,4721,4813,4937,5011,5113,5233,5351,5443,5531,5653,... |
PROGS/relativo.asm | carlos-santiago-2017/HC12-MicrocontrollerNotes | 0 | 16675 | ORG $0100
UNO BRA TRES
DOS BRA UNO
TRES BRA CUATRO
CUATRO BRA DOS
|
test/asset/agda-stdlib-1.0/Data/Nat/DivMod.agda | omega12345/agda-mode | 0 | 99 | ------------------------------------------------------------------------
-- The Agda standard library
--
-- Natural number division
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.Nat.DivMod where
open import Agda.Builtin.Nat using (div-helper; ... |
libsrc/_DEVELOPMENT/string/c/sdcc_iy/index.asm | meesokim/z88dk | 0 | 176941 | <filename>libsrc/_DEVELOPMENT/string/c/sdcc_iy/index.asm
; BSD
; char *index(const char *s, int c)
SECTION code_string
PUBLIC _index
EXTERN _strchr
defc _index = _strchr
|
src/imagethresholds.adb | sebsgit/textproc | 0 | 7286 | with PixelArray;
with Ada.Containers.Vectors;
with Ada.Text_IO;
package body ImageThresholds is
function isBinary(image: PixelArray.ImagePlane) return Boolean is
function checkPixel(px: Pixel) return Boolean is
begin
return (px = 255 or px = 0);
end checkPixel;
begin
return image... |
solutions/67 - Decimal Doubler/size-20_speed-219.asm | michaelgundlach/7billionhumans | 45 | 19081 | -- 7 Billion Humans (2053) --
-- 67: Decimal Doubler --
-- Author: Tiza59
-- Size: 20
-- Speed: 219
step s
if s != button:
pickup c
mem3 = set myitem
step s
a:
drop
step se
step nw
mem3 = calc mem3 x 2
if e >= 5:
mem3 = calc mem3 + 1
else:
mem3 = calc mem3 + 0
endif
if mem3 >= 10:
mem3 = calc mem3 -... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1375.asm | ljhsiun2/medusa | 9 | 174597 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x43f8, %r11
clflush (%r11)
nop
nop
nop
nop
nop
add %rbp, %rbp
movl $0x61626364, (%r11)
nop
nop
nop
sub %r14, %r14
lea addresses_UC_ht+0xfea0, %rsi
lea addresses_D_ht+0x13... |
0x24.asm | SpeedStepper/XchgRaxRax | 53 | 28357 | ;
; $Id: 0x24.asm,v 1.1.1.1 2016/03/27 08:40:13 raptor Exp $
;
; 0x24 explanation - from xchg rax,rax by <EMAIL>
; Copyright (c) 2016 <NAME> <<EMAIL>>
;
; This snippet is similar to the previous snippet 0x23. It
; illustrates a clever/convoluted way to determine if the
; value contained in rax is even or odd. If the r... |
test/asm/logic_full.asm | xdrie/irre-tools | 1 | 163333 | <reponame>xdrie/irre-tools<filename>test/asm/logic_full.asm
%entry: main
s4:
set r0 #4 ; progress
ret ; done
s3:
; test !=
set r0 #3 ; progress
set r1 #2
set r2 #3
cmp r1 r2
bne ::s4
s2:
; test >
set r0 #2 ; progress
set r1 #5
set r2 #2
cmp r1 r2
bg... |
tests/add_2_numbers.asm | AverageAssemblyProgrammer/Hustle | 1 | 98785 | global _start
section .text
_start:
section .data
number: db "69", 10 ; hardcoded newlines as newlines not supported yet
section .text
mov rax, 1 ; syscall for write
mov rdi, 1 ; file handle 1 is stdout
mov rsi, number ; ardr... |
source/league/league-base_codecs.adb | svn2github/matreshka | 24 | 9051 | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
src/hitbox.asm | howprice/specnext-invaders | 17 | 99196 | <filename>src/hitbox.asm
STRUCT Hitbox
x0 BYTE 0 ; min X
x1 BYTE 0 ; max X (inclusive)
y0 BYTE 0 ; min Y
y1 BYTE 0 ; max Y (inclusive)
ENDS
;
; Transform a sprite's hitbox from pattern space to screenspace
; IX = address of sprite attributes struct
; DE = address of pattern-spa... |
src/frontend/Experimental_Ada_ROSE_Connection/parser/asis_adapter/source/asis_adapter-element-associations.ads | ouankou/rose | 488 | 9868 | <gh_stars>100-1000
package Asis_Adapter.Element.Associations is
procedure Do_Pre_Child_Processing
(Element : in Asis.Element;
State : in out Class);
private
-- For debuggng:
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & "Associations";
end ... |
src/botio.ads | Hamster-Furtif/JeremyPlusPlus | 0 | 6578 | with ada.Strings.Unbounded, utils, montecarlo, ada.Integer_Text_IO, opstrat;
use ada.Strings.Unbounded, utils, montecarlo, ada.Integer_Text_IO, opstrat;
package botIO is
type T_prefix is (settings, update_game, update_hand, action);
type T_params is Array(0..7) of Unbounded_String;
type T_command is
r... |
asm/subtitles/originais/020f126c_eu.asm | Iemnur/megaman-zx-traducao-ptbr | 10 | 93085 | 01FF8ECC B410 push r4
01FF8ECE B081 add sp,-4h
01FF8ED0 4817 ldr r0,=27E00FCh ; ok
01FF8ED2 6800 ldr r0,[r0]
01FF8ED4 2802 cmp r0,2h
01FF8ED6 D127 bne 1FF8F28h
01FF8ED8 4B16 ldr r3,=27E029Ch ; ok
01FF8EDA 7E99 ldrb r1,[r3,1Ah]
01FF8... |
oeis/165/A165148.asm | neoneye/loda-programs | 11 | 83416 | ; A165148: a(n) = (3*8^n-4^n)/2.
; Submitted by <NAME>(s2.)
; 1,10,88,736,6016,48640,391168,3137536,25133056,201195520,1610088448,12882804736,103070826496,824600166400,6596935548928,52776021262336,422210317582336,3377691130593280,27021563404484608,216172644674830336,1729381707154456576,13835055856258908160,110680455646... |
src/SlimShader.Tests/Shaders/HlslCrossCompiler/vs5/mad_imm.asm | tgjones/slimshader | 125 | 161369 | <reponame>tgjones/slimshader
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714
//
//
///
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION 0 xyzw 0... |
wc.asm | monamansouri/os2-1 | 0 | 166455 | <reponame>monamansouri/os2-1<filename>wc.asm
_wc: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
printf(1, "%d %d %d %s\n", l, w, c, name);
}
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: f... |
oeis/209/A209267.asm | neoneye/loda-programs | 11 | 105306 | ; A209267: 1 + 2*n^2 + 3*n^3 + 4*n^4 + 5*n^5 + 6*n^6 + 7*n^7 + 8*n^8.
; 1,36,3585,73810,669921,3784176,15721201,52683870,150652545,381367036,876543201,1862778666,3709924705,6996023880,12592235601,21771494326,36344967681,58830704340,92659184065,142420804866,214160664801,315726318496,457174511025,651243214350,91389561408... |
programs/oeis/248/A248423.asm | neoneye/loda | 22 | 245398 | ; A248423: Multiples of 4 with digits backwards.
; 0,4,8,21,61,2,42,82,23,63,4,44,84,25,65,6,46,86,27,67,8,48,88,29,69,1,401,801,211,611,21,421,821,231,631,41,441,841,251,651,61,461,861,271,671,81,481,881,291,691,2
mul $0,4
seq $0,4086 ; Read n backwards (referred to as R(n) in many sequences).
|
programs/oeis/173/A173173.asm | neoneye/loda | 22 | 13213 | ; A173173: a(n) = ceiling(Fibonacci(n)/2).
; 0,1,1,1,2,3,4,7,11,17,28,45,72,117,189,305,494,799,1292,2091,3383,5473,8856,14329,23184,37513,60697,98209,158906,257115,416020,673135,1089155,1762289,2851444,4613733,7465176,12078909,19544085,31622993,51167078,82790071,133957148,216747219,350704367,567451585,918155952,148560... |
Lab01/Ex2.asm | frr0/Assembly-MIPS | 0 | 87954 | <filename>Lab01/Ex2.asm
.data
var1: .byte 'm'
var2: .byte 'i'
var3: .byte 'p'
var4: .byte 's'
var5: .byte 0
.text
.globl main
.ent main
main: lb $t1, var1 # caricamento dati
lb $t2, var2
lb $t3, var3
lb ... |
asm (HLQ.RIFASM)/rifwait.asm | jcnnrts/RIF | 0 | 81133 | ***********************************************************************
* Project: FMT *
* *
* This program is an assembler module that will issue a WAIT SVC on *
* an ECB list. The ECBs should b... |
AllocParser/grammar/Alloc.g4 | CassieEllen/AllocTools | 0 | 6485 | /*
* @author "<NAME>"
*/
grammar Alloc; // Define a grammar called Hello
/*
* By default, Antlr puts generated java files into the default java package.
* That's not really best practice and makes
*/
@header {
package com.cenicol.antlr4.alloc.parser;
//import com.cenicol.mainframe.... |
src/ada/src/comms/uxas-comms-transport-zeromq_fabric.ads | VVCAS-Sean/OpenUxAS | 88 | 17144 | <filename>src/ada/src/comms/uxas-comms-transport-zeromq_fabric.ads<gh_stars>10-100
-- see OpenUxAS\src\Communications\ZeroMqFabric.h
with UxAS.Comms.Transport.ZeroMQ_Socket_Configurations; use UxAS.Comms.Transport.ZeroMQ_Socket_Configurations;
with ZMQ.Sockets; use ZMQ.Sockets;
with ZMQ.Contexts; use ZMQ.Contexts;
p... |
alloy4fun_models/trashltl/models/7/7frH28yQHsJtwe4Jx.als | Kaixi26/org.alloytools.alloy | 0 | 3535 | open main
pred id7frH28yQHsJtwe4Jx_prop8 {
all f,g: File| f->g in link implies eventually always f in Trash
}
pred __repair { id7frH28yQHsJtwe4Jx_prop8 }
check __repair { id7frH28yQHsJtwe4Jx_prop8 <=> prop8o } |
stm32f1/stm32gd-i2c-peripheral.adb | ekoeppen/STM32_Generic_Ada_Drivers | 1 | 2247 | <gh_stars>1-10
package body STM32GD.I2C.Peripheral is
procedure Init is
begin
null;
end Init;
function Master_Transmit (Address : I2C_Address; Data : Byte;
Restart : Boolean := False) return Boolean is
begin
return False;
end Master_Transmit;
function Master_Receive (Address : ... |
legend-engine-xt-persistence-grammar/src/main/antlr4/org/finos/legend/engine/language/pure/grammar/from/antlr4/PersistenceLexerGrammar.g4 | PrateekGarg-gs/legend-engine | 0 | 6918 | lexer grammar PersistenceLexerGrammar;
import M3LexerGrammar;
// -------------------------------------- KEYWORD --------------------------------------
// COMMON
TRUE: 'true';
FALSE: 'false';
IMPORT: 'import... |
OpenWebpage.scpt | hascong/ExerciseForAppleScript | 0 | 4654 | <filename>OpenWebpage.scpt
-- Open web page given as input argument
-- Example of usage: osascript OpenWebpage.scpt "http://www.google.com"
on run arg
tell application "Safari"
if not (exists document 1) then reopen
set URL of document 1 to item 1 of arg
delay 5
close window 1
end tell
end run
|
Projects/Shark/I386/CmpI386.asm | Sankds03/Shark | 740 | 241873 | ;
;
; Copyright (c) 2015 - 2021 by blindtiger. All rights reserved.
;
; The contents of this file are subject to the Mozilla Public 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.mozilla.org/MPL/
;
;... |
libsrc/_DEVELOPMENT/alloc/malloc/c/sccz80/heap_free_unlocked_callee.asm | jpoikela/z88dk | 640 | 86923 |
; void heap_free_unlocked_callee(void *heap, void *p)
SECTION code_clib
SECTION code_alloc_malloc
PUBLIC heap_free_unlocked_callee
EXTERN asm_heap_free_unlocked
heap_free_unlocked_callee:
pop af
pop hl
pop de
push af
jp asm_heap_free_unlocked
|
Definition/Typed/Consequences/Injectivity.agda | loic-p/logrel-mltt | 0 | 16855 | <gh_stars>0
{-# OPTIONS --without-K --safe #-}
module Definition.Typed.Consequences.Injectivity where
open import Definition.Untyped hiding (wk)
import Definition.Untyped as U
open import Definition.Untyped.Properties
open import Definition.Typed
open import Definition.Typed.Weakening
open import Definition.Typed.Pr... |
src/spread/monitor.asm | olifink/qspread | 0 | 244313 | * Spreadsheet 28/12-91
* - monitor cell operations
section prog
include win1_keys_wman
include win1_keys_wstatus
include win1_keys_wwork
include win1_keys_err
include win1_keys_jcb
include win1_keys_qdos_sms
include win1_keys_qdos_io
include win1_mac_oli
include win1_spread_ke... |
commands/apps/notes/create-note.applescript | daviddzhou/script-commands | 3,305 | 4348 | #!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Create Note
# @raycast.mode silent
# Optional parameters:
# @raycast.icon ./images/notes.png
# @raycast.argument1 { "type": "text", "placeholder": "Note Name" }
# @raycast.argument2 { "type": "text", "placeholder": "Text" }
# @ray... |
alloy4fun_models/trashltl/models/11/ZeSAzM38CHxhyaZNr.als | Kaixi26/org.alloytools.alloy | 0 | 1710 | <gh_stars>0
open main
pred idZeSAzM38CHxhyaZNr_prop12 {
always all f: File | f not in Trash until f in Trash
}
pred __repair { idZeSAzM38CHxhyaZNr_prop12 }
check __repair { idZeSAzM38CHxhyaZNr_prop12 <=> prop12o } |
oeis/128/A128971.asm | neoneye/loda-programs | 11 | 179409 | <filename>oeis/128/A128971.asm<gh_stars>10-100
; A128971: A130125 * A000012.
; Submitted by <NAME>
; 1,2,2,5,4,4,10,10,8,8,21,20,20,16,16,42,42,40,40,32,32,85,84,84,80,80,64,64,170,170,168,168,160,160,128
seq $0,130328 ; Triangle of differences between powers of 2, read by rows.
seq $0,265263 ; Change every other 1 bi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.