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 |
|---|---|---|---|---|
source/web/fastcgi/matreshka-fastcgi-server.adb | svn2github/matreshka | 24 | 26891 | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
coverage/IN_CTS/0456-COVERAGE-brw-fs-2792/work/variant/1_spirv_asm/shader.frag.asm | asuonpaa/ShaderTests | 0 | 83639 | <filename>coverage/IN_CTS/0456-COVERAGE-brw-fs-2792/work/variant/1_spirv_asm/shader.frag.asm<gh_stars>0
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 120
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logi... |
joystick/lumen-joystick.adb | darkestkhan/lumen | 8 | 30732 | <filename>joystick/lumen-joystick.adb
-- Lumen.Joystick -- Support (Linux) joysticks under Lumen
--
-- <NAME>, NiEstu, Phoenix AZ, Summer 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or wi... |
dv3/dv3/flbuf.asm | olifink/smsqe | 0 | 8553 | ; DV3 File Buffer Handling V3.00 1992 <NAME>
;
; These are for use by the format dependent routines.
; They are the file analogues of dv3_drloc / dv3_drnew
; They are derived from dv3_albf and dv3_lcbf
section dv3
xdef dv3_fbnew
xdef dv3_fbloc
xdef dv3_fbupd
x... |
libsrc/psg/saa1099/etracker/saa_etracker_init.asm | ahjelm/z88dk | 640 | 165178 | <reponame>ahjelm/z88dk
SECTION code_clib
PUBLIC saa_etracker_init
PUBLIC _saa_etracker_init
EXTERN asm_etracker_init
saa_etracker_init:
_saa_etracker_init:
pop bc
pop hl
push hl
push bc
jp asm_etracker_init
|
data/pokemon/dex_entries/skuntank.asm | AtmaBuster/pokeplat-gen2 | 6 | 171431 | <reponame>AtmaBuster/pokeplat-gen2
db "SKUNK@" ; species name
db "It attacks by"
next "spraying repugnant"
next "fluids from its"
page "tail, but the"
next "scent dulls after"
next "a few squirts.@"
|
bool-to-string.agda | rfindler/ial | 29 | 15778 | <filename>bool-to-string.agda
module bool-to-string where
open import bool
open import string
𝔹-to-string : 𝔹 → string
𝔹-to-string tt = "tt"
𝔹-to-string ff = "ff" |
kernel/arch/x86_64/smp_start.asm | jasonwer/WingOS | 549 | 240748 | <reponame>jasonwer/WingOS
[bits 16]
TRAMPOLINE_BASE equ 0x1000
; --- 16 BIT ---
global nstack
extern cpuupstart
global trampoline_start
trampoline_start:
cli
mov ax, 0x0
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
mov al, 'a'
mov dx, 0x3F8 ; these are used for debugging... |
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-8650U_0xd2_notsx.log_21_1450.asm | ljhsiun2/medusa | 9 | 10134 | <filename>Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-8650U_0xd2_notsx.log_21_1450.asm<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xb931, %r8
nop
dec %r10
mov (%r8), %ax
xor $23360, %r8
lea addresses_D_h... |
oeis/075/A075062.asm | neoneye/loda-programs | 11 | 165198 | <filename>oeis/075/A075062.asm<gh_stars>10-100
; A075062: Row sums of triangle in A075059.
; Submitted by <NAME>
; 2,7,24,58,315,381,2968,6756,22725,25255,304986,332718,4684771,5045145,5405520,11531656,208288233,220540491,4423058830,4655851410,4888643991,5121436573,123147264516,128501493420,669278610325,696049754751
m... |
agda-stdlib/src/Algebra/Properties/AbelianGroup.agda | DreamLinuxer/popl21-artifact | 5 | 6959 | <gh_stars>1-10
------------------------------------------------------------------------
-- The Agda standard library
--
-- Some derivable properties
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Algebra
module Algebra.Properties.AbelianGroup
... |
alloy4fun_models/trashltl/models/16/JPDY5qe3CWNtEKfbQ.als | Kaixi26/org.alloytools.alloy | 0 | 2766 | <gh_stars>0
open main
pred idJPDY5qe3CWNtEKfbQ_prop17 {
all t : Trash | t not in File'
}
pred __repair { idJPDY5qe3CWNtEKfbQ_prop17 }
check __repair { idJPDY5qe3CWNtEKfbQ_prop17 <=> prop17o } |
programs/oeis/154/A154117.asm | neoneye/loda | 22 | 93445 | ; A154117: Expansion of (1 - x + 3*x^2)/((1-x)*(1-2*x)).
; 1,2,7,17,37,77,157,317,637,1277,2557,5117,10237,20477,40957,81917,163837,327677,655357,1310717,2621437,5242877,10485757,20971517,41943037,83886077,167772157,335544317,671088637,1342177277,2684354557,5368709117,10737418237,21474836477,42949672957,85899345917,171... |
src/xplode.asm | dshadoff/Star-Spores_TRS-80_Mod1 | 1 | 177215 | <reponame>dshadoff/Star-Spores_TRS-80_Mod1
ORG 6E40H
SHPPOS EQU 60F5H
RNDNO EQU 6109H
CONTER EQU 6107H
SET EQU 66F3H
STARTX EQU 676BH
STARTY EQU 676DH
REVERS EQU 5B2DH
STORS1 EQU 6777H
ED00H EQU 6249H
SOUND EQU 5E2AH
SOUND1 EQU 5E2FH
SOUND2 EQU 5E39H
SHPPS1 EQU 60FAH
SHEET EQU 555AH
P1OR2F EQU 60F1H
NOPLAY EQU 6100H
D... |
_inc/SBZ pallet script 2.asm | vladjester2020/Sonic1TMR | 0 | 240247 | <reponame>vladjester2020/Sonic1TMR<gh_stars>0
; ---------------------------------------------------------------------------
; Scrap Brain Zone 2 pallet cycling script
; ---------------------------------------------------------------------------
dc.w 6
dc.b 7, 8
dc.w Pal_SBZCyc1
dc.w $FB50
dc.b $D, 8
dc.w ... |
snapgear_linux/lib/libgmp/mpn/x86/k6/aorsmul_1.asm | impedimentToProgress/UCI-BlueChip | 0 | 176626 | # AMD K6 mpn_addmul_1/mpn_submul_1 -- add or subtract mpn multiple.
#
# K6: 7.65 to 8.5 cycles/limb (at 16 limbs/loop and depending on the data),
# PIC adds about 6 cycles at the start.
# Copyright (C) 1999, 2000 Free Software Foundation, Inc.
#
# This file is part of the GNU MP Library.
#
# The GNU MP Library is fre... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_709.asm | ljhsiun2/medusa | 9 | 247768 | <filename>Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_709.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x140f2, %rsi
lea addresses_UC_ht+0x8a02, %rdi
nop
nop
nop
add %rax, %rax
mov $28, %r... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c49024a.ada | best08618/asylo | 7 | 20749 | -- C49024A.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.
-- Unlimit... |
programs/oeis/297/A297402.asm | neoneye/loda | 22 | 22679 | ; A297402: a(n) = gcd_{k=1..n} (prime(k+1)^n-1)/2.
; 1,4,1,8,1,4,1,16,1,4,1,8,1,4,1,32,1,4,1,8,1,4,1,16,1,4,1,8,1,4,1,64,1,4,1,8,1,4,1,16,1,4,1,8,1,4,1,32,1,4,1,8,1,4,1,16,1,4,1,8,1,4,1,128,1,4,1,8,1,4,1,16,1,4,1,8,1,4,1,32,1,4,1,8,1,4,1,16,1,4,1,8,1,4,1,64,1,4,1,8
mov $1,2
sub $2,$0
sub $0,7
pow $0,4
sub $1,$2
sub $1... |
Disassembly/Md5_5_InlineRotate.asm | bretcope/blog-md5 | 0 | 81692 | <reponame>bretcope/blog-md5
Md5DotNet.Md5_5_InlineRotate.GetDigest(Byte*, Int32, Md5DotNet.Md5Digest*)
Begin 00007ffe8d3578f0, size fbc
c:\code\blog\md5\Md5DotNet\Md5DotNet\Md5_5_InlineRotate.cs @ 21:
>>> 00007ffe`8d3578f0 4157 push r15
00007ffe`8d3578f2 4156 push r14
00007ffe`8d3578f4 4155... |
examples/SPARK2005/packages/polypaver-interval.ads | michalkonecny/polypaver | 1 | 22665 | <gh_stars>1-10
package PolyPaver.Interval is
--# function Hull(Low,High : Float) return Float;
--# function Contained_In(Object,Subject : Float) return Boolean;
end PolyPaver.Interval;
|
filters/playsongby.applescript | andreifilip123/play-song | 0 | 1555 | <filename>filters/playsongby.applescript
-- playsongby filter --
on loadConfig()
return (load script POSIX file (do shell script "./resources/compile-config.sh"))
end loadConfig
on getArtistResultListFeedback(query)
global config
set query to trimWhitespace(query) of config
set musicApplication to musicApplicat... |
fe-helper.applescript | Army-U/alfred-fe-helper | 1 | 1786 | <filename>fe-helper.applescript
to getRecordValue(theKey, theList)
run script "on run{theKey,theList}
return (" & theKey & " of theList )
end" with parameters {theKey, theList}
end getRecordValue
on run argv
set FE_HELPER_ID to (system attribute "FE_HELPER_ID")
set apps to {json:"json-format", encode:"en-dec... |
src/main/antlr4/org/entityc/compiler/transform/template/TemplateGrammer.g4 | entityc/entity-compiler | 1 | 686 | <filename>src/main/antlr4/org/entityc/compiler/transform/template/TemplateGrammer.g4<gh_stars>1-10
/*
* Copyright (c) 2019-2022 The EntityC Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.md file in the project root.
*/
parser grammar Temp... |
src/sound/alarm_musics/alarm_one/main.asm | Gegel85/RunnerGB | 0 | 83162 | include "src/sound/alarm_musics/alarm_one/channel1.asm"
include "src/sound/alarm_musics/alarm_one/channel2.asm"
include "src/sound/alarm_musics/alarm_one/channel3.asm"
include "src/sound/alarm_musics/alarm_one/channel4.asm"
AlarmOneTheme::
db $A0
db %100
dw musicChan1AlarmOneTheme
dw musicChan2AlarmOneTheme
dw mu... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_575.asm | ljhsiun2/medusa | 9 | 170089 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1867, %rsi
lea addresses_WC_ht+0xf867, %rdi
nop
xor %r12, %r12
mov $33, %rcx
rep movsq
nop
nop
nop
nop
add $49162, %r12
lea addresses_D_ht+0xfc37, %r13
nop
nop
nop
nop
and $29776, %rbp... |
code/S01E04/asm/04_flexible.asm | fcatrin/bitabit | 2 | 97662 | org $2000
lda #64
sta 202
lda #156
sta 203
ldy #0
lda #35
loop sta (202),y ; a is stored where 202 points at
iny
bne loop
inc 203
ldx 203
cpx #160 ; page 160 = 40960 (40000 + 40*24)
bne loop
halt jmp halt
|
programs/oeis/199/A199486.asm | neoneye/loda | 22 | 240514 | ; A199486: (9*7^n+1)/2.
; 5,32,221,1544,10805,75632,529421,3705944,25941605,181591232,1271138621,8897970344,62285792405,436000546832,3052003827821,21364026794744,149548187563205,1046837312942432,7327861190597021,51295028334179144,359065198339254005,2513456388374778032,17594194718623446221,123159363030364123544,86211554... |
src/Examples/ProducerConsumer.agda | lisandrasilva/agda-liveness | 0 | 3270 | <reponame>lisandrasilva/agda-liveness
{-
Copyright 2019 <NAME>
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 applica... |
source/strings/a-chacon.adb | ytomino/drake | 33 | 27301 | <reponame>ytomino/drake<filename>source/strings/a-chacon.adb<gh_stars>10-100
package body Ada.Characters.Conversions is
use type System.UTF_Conversions.From_Status_Type;
use type System.UTF_Conversions.To_Status_Type;
function Is_Wide_Character (Item : Character) return Boolean is
begin
return Charac... |
alloy4fun_models/trashltl/models/9/K7s3yzmhQGpXacQvp.als | Kaixi26/org.alloytools.alloy | 0 | 2350 | <filename>alloy4fun_models/trashltl/models/9/K7s3yzmhQGpXacQvp.als
open main
pred idK7s3yzmhQGpXacQvp_prop10 {
always all f: File | always (eventually f in Protected implies f in Protected)
}
pred __repair { idK7s3yzmhQGpXacQvp_prop10 }
check __repair { idK7s3yzmhQGpXacQvp_prop10 <=> prop10o } |
tools-src/gnu/gcc/gcc/ada/86numaux.adb | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 3447 | <filename>tools-src/gnu/gcc/gcc/ada/86numaux.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- ... |
source/environment/machine-pc-freebsd/s-envblo.adb | ytomino/drake | 33 | 24957 | <gh_stars>10-100
function System.Environment_Block return C.char_ptr_ptr is
environ : C.char_ptr_ptr
with Import, Convention => C;
begin
return environ;
end System.Environment_Block;
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_21829_1670.asm | ljhsiun2/medusa | 9 | 178277 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r8
push %rbp
push %rdx
lea addresses_UC_ht+0x1445f, %r8
nop
nop
inc %r11
movw $0x6162, (%r8)
cmp %r15, %r15
lea addresses_WC_ht+0x620b, %rbp
nop
nop
nop
nop
xor $63249, %rdx
mov (%rbp), %r15
nop
nop
nop
nop
xor %rdx, %rdx
pop %rdx
pop %rbp
pop %r8
p... |
P6/data_P6_2/ALUTest185.asm | alxzzhou/BUAA_CO_2020 | 1 | 96842 | lw $1,16($0)
subu $4,$3,$3
srl $1,$1,27
xori $4,$0,23515
andi $5,$1,27001
xor $1,$3,$3
and $1,$5,$3
sltu $4,$4,$3
addu $3,$1,$3
lbu $4,13($0)
sw $3,12($0)
slt $6,$6,$3
sltu $4,$3,$3
sllv $1,$3,$3
sb $1,7($0)
srav $4,$1,$3
lw $3,8($0)
subu $4,$5,$3
sltu $3,$3,$3
srav $4,$4,$3
addu $2,$2,$3
addu $3,$0,$3
srlv $1,$4,$3
sl... |
libsrc/_DEVELOPMENT/font/fzx/fonts/ao/GenevaMono/_ff_ao_GenevaMonoBold.asm | jpoikela/z88dk | 640 | 241107 |
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_ao_GenevaMonoBold
_ff_ao_GenevaMonoBold:
BINARY "font/fzx/fonts/ao/GenevaMono/GenevaMonoBold.fzx"
|
test/asset/agda-stdlib-1.0/Algebra/Properties/BooleanAlgebra/Expression.agda | omega12345/agda-mode | 0 | 9875 | ------------------------------------------------------------------------
-- The Agda standard library
--
-- Boolean algebra expressions
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Algebra
module Algebra.Properties.BooleanAlgebra.Expression
... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_969.asm | ljhsiun2/medusa | 9 | 17147 | <filename>Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_969.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x14cd6, %rsi
lea addresses_UC_ht+0x138a6, %rdi
nop
nop
nop
nop
sub %r11, %r11
mov $25, %rcx
rep m... |
source/numerics/i386/nosimd/a-nusfge.adb | ytomino/drake | 33 | 24905 | package body Ada.Numerics.SFMT.Generating is
-- no SIMD version
use type Unsigned_32;
use type Unsigned_64;
procedure rshift128 (
Out_Item : out w128_t;
In_Item : w128_t;
shift : Integer)
with Convention => Intrinsic;
procedure lshift128 (
Out_Item : out w128_t;
In_I... |
Working Disassembly/Levels/DEZ/Misc Object Data/Map - Hang Carrier.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 5 | 94561 | dc.w word_47180-Map_DEZHangCarrier
word_47180: dc.w 4 ; DATA XREF: ROM:0004717Eo
dc.b $EC, $B, 0, 0, $FF, $E8
dc.b $EC, $B, 8, 0, 0, 0
dc.b $C, 4, 0, $C, $FF, $F0
dc.b $C, 4, 8, $C, 0, 0
|
oeis/109/A109916.asm | neoneye/loda-programs | 22 | 14880 | <filename>oeis/109/A109916.asm
; A109916: a(n) = n-th digit after decimal point in e^n.
; 7,8,5,1,5,3,4,4,5,7,1,0,3,4,1,0,3,3,7,4,5,4,7,2,9,9,9,0,4,5,0,1,4,1,2,7,3,5,1,6,5,1,9,9,4,5,2,2,0,8,3,0,9,9,8,7,4,7,3,2,3,0,7,1,9,1,4,2,4,7,5,2,4,6,0,7,7,2,3,3,8,1,5,2,3,5,6,2,1,9,2,2,1,5,8,4,2,6,0,6
add $0,1
mov $2,1
mov $3,$0
m... |
src/generator/specs.ads | Roldak/OpenGLAda | 79 | 21061 | <gh_stars>10-100
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
private with Ada.Containers.Vectors;
private with Ada.Containers.Indefinite_Vectors;
private with Ada.Strings.Unbounded;
package Specs is
-- This package implements parsing and applying .... |
oeis/053/A053088.asm | neoneye/loda-programs | 11 | 89012 | <reponame>neoneye/loda-programs
; A053088: a(n) = 3*a(n-2) + 2*a(n-3) for n > 2, a(0)=1, a(1)=0, a(2)=3.
; Submitted by <NAME>
; 1,0,3,2,9,12,31,54,117,224,459,906,1825,3636,7287,14558,29133,58248,116515,233010,466041,932060,1864143,3728262,7456549,14913072,29826171,59652314,119304657,238609284,477218599,954437166,1908... |
oeis/016/A016758.asm | neoneye/loda-programs | 11 | 88915 | ; A016758: a(n) = (2*n+1)^6.
; 1,729,15625,117649,531441,1771561,4826809,11390625,24137569,47045881,85766121,148035889,244140625,387420489,594823321,887503681,1291467969,1838265625,2565726409,3518743761,4750104241,6321363049,8303765625,10779215329,13841287201,17596287801,22164361129,27680640625,34296447249,42180533641,... |
programs/oeis/047/A047292.asm | karttu/loda | 1 | 94633 | <gh_stars>1-10
; A047292: Numbers that are congruent to {2, 4, 6} mod 7.
; 2,4,6,9,11,13,16,18,20,23,25,27,30,32,34,37,39,41,44,46,48,51,53,55,58,60,62,65,67,69,72,74,76,79,81,83,86,88,90,93,95,97,100,102,104,107,109,111,114,116,118,121,123,125,128,130,132,135,137,139,142,144,146,149,151,153,156,158,160,163,165,167,170... |
Task/System-time/Ada/system-time.ada | LaudateCorpus1/RosettaCodeData | 1 | 27644 | with Ada.Calendar; use Ada.Calendar;
with Ada.Calendar.Formatting; use Ada.Calendar.Formatting;
with Ada.Calendar.Time_Zones; use Ada.Calendar.Time_Zones;
with Ada.Text_Io; use Ada.Text_Io;
procedure System_Time is
Now : Time := Clock;
begin
Put_line(Image(Date => Now, Time_Zone => -7*60));
end System_Time;
|
oeis/178/A178294.asm | neoneye/loda-programs | 11 | 2735 | ; A178294: Number of collinear point triples in a 4 X 4 X 4 X... n-dimensional cubic grid
; Submitted by <NAME>
; 0,4,44,376,2960,22624,171584,1303936,9969920,76793344
mov $1,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
mul $2,2
mul $3,6
add $3,$1
mul $1,8
mul $2,2
lpe
mov $0,$2
|
USqlParser/Grammar/USqlParser.g4 | npenin/usql-parser | 1 | 3489 | parser grammar USqlParser;
options { tokenVocab=USqlLexer; }
prog
: createDatabaseStatement prog
| createManagedTableWithSchemaStatement prog
| alterTableStatement prog
| alterTableAddDropPartitionStatement prog
| dropTableStatement prog
| createSchemaStatement prog
| declareVariableStatement prog
| useDataba... |
c2000/C2000Ware_1_00_06_00/libraries/control/DCL/c28/source/DCL_futils.asm | ramok/Themis_ForHPSDR | 0 | 87216 | ; DCL_futils.asm - fast update function utilities for FPU32
;
; Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
; ALL RIGHTS RESERVED
; set symbols below to '1' to enable assembly
FU_PID .set 1
FU_PI .set 1
FU_PI2 .set 1
FU_DF11 .set 1
FU_DF13 .set 1
FU_DF22 .set 1
FU... |
ee/hot/do.asm | olifink/smsqe | 0 | 246524 | <reponame>olifink/smsqe
; Procedure to do a HOTKEY operation 1988 <NAME> QJUMP
section hotkey
xdef hot_do
xref hot_thus
xref hot_thfr
xref hot_fitem
xref hk_do
xref ut_gxnm1
;+++
; Do a hotkey operation
;
; HOT_DO key or name
;---
ho... |
alloy4fun_models/trainstlt/models/4/diMn5pHonJP3y5ao2.als | Kaixi26/org.alloytools.alloy | 0 | 2176 | open main
pred iddiMn5pHonJP3y5ao2_prop5 {
all t:Train |{
always (t.pos in Exit implies no t.pos')
always (t.pos in Entry implies (t.pos'in (t.pos.prox) ))
}
}
pred __repair { iddiMn5pHonJP3y5ao2_prop5 }
check __repair { iddiMn5pHonJP3y5ao2_prop5 <=> prop5o } |
Task/Pig-the-dice-game/Ada/pig-the-dice-game-1.ada | mullikine/RosettaCodeData | 1 | 5760 | package Pig is
type Dice_Score is range 1 .. 6;
type Player is tagged private;
function Recent(P: Player) return Natural;
function All_Recent(P: Player) return Natural;
function Score(P: Player) return Natural;
type Actor is abstract tagged null record;
function Roll_More(A: Actor; Self, Opponen... |
Transynther/x86/_processed/NC/_zr_/i3-7100_9_0x84_notsx.log_21829_737.asm | ljhsiun2/medusa | 9 | 3006 | <reponame>ljhsiun2/medusa<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x453c, %rsi
lea addresses_D_ht+0x1cc3c, %rdi
nop
nop
nop
and $61138, %r12
mov $48, %rcx
rep movsw
nop
nop
nop
nop
add $28316, %r10
lea ... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_656_136.asm | ljhsiun2/medusa | 9 | 247819 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x9adb, %r13
nop
and %r14, %r14
movb (%r13), %bl
nop
nop
nop
nop
add $6817, %r15
lea addresses_WC_ht+0x121db, %rsi
lea addresses_UC_ht+0x13adb, %rdi
clflush (%rd... |
hello_world.adb | charlesincharge/EmbeddedAda | 0 | 223 | -- Lines starting with `--` are treated as comments.
-- Compile with `gnatmake hello_world.adb`, then run the executable with
-- `./hello_world`
-- Import the Ada.Text_IO package
with Ada.Text_IO;
-- `procedure` indicates the start of the subprogram
procedure Hello_World is
-- Declare variables here
begin
-- Fu... |
tocompiler/src/PlayScript.g4 | Hpbbs/Tolang | 0 | 4003 | <filename>tocompiler/src/PlayScript.g4<gh_stars>0
/*
[The "BSD licence"]
版权说明
本文件的大部分内容来自:https://github.com/antlr/grammars-v4/blob/master/java/JavaParser.g4
在此基础上进行了一些修改。
修改者:宫文学 2019年
原文件采用BSD licence,本文件仍然采用BSD licence.
原文件的版权声明如下:
*/
/*
[The "BSD licence"]
Copyright (c) 2013 <NAME>, <NAME>
Copyright (c... |
oeis/021/A021408.asm | neoneye/loda-programs | 11 | 97415 | ; A021408: Decimal expansion of 1/404.
; Submitted by <NAME>(s4)
; 0,0,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2
mov $1,2
pow $1,$0
div $0,2
mod $0,2
div $1,2
trn $1,1... |
lockPuzzle.als | JustAnotherSystemsEngineer/AlloyCodePuzzle | 0 | 1256 | enum Digit {N0,N1,N2,N3,N4,N5,N6,N7,N8,N9}
let sequence[a,b,c] = 0->a + 1->b + 2->c
one sig Code {c1, c2, c3: Digit}
fun match[code: Code, d: Digit]: Int { #((code.c1 + code.c2 + code.c3) & d) }
pred hint(code: Code, d1,d2,d3: Digit, correct, wellPlaced:Int) {
// The intersection of each guessed digit wi... |
src/latin_utils/latin_utils-dictionary_package-kind_entry_io.adb | spr93/whitakers-words | 204 | 18559 | -- WORDS, a Latin dictionary, by <NAME> (USAF, Retired)
--
-- Copyright <NAME> (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-- (c). Permission i... |
source/PFH.asm | stuij/rath | 25 | 14107 | # SYSTEM VARIABLES & CONSTANTS ==================
#C BL -- char an ASCII space
head bl,2,"bl",docon,storedest
.word 0x20
#Z tibsize -- n size of TIB
head tibsize,7,"tibsize",docon,bl
.word 124 /* 2 chars safety zone */
#X tib -- a-addr Terminal Input ... |
extern/game_support/stm32f4/src/stm32f4-sdram.ads | AdaCore/training_material | 15 | 23158 | with STM32F4.FMC; use STM32F4.FMC;
package STM32F4.SDRAM is
Bank_Address : constant := 16#D000_0000#;
procedure Initialize;
private
SDRAM_MEMORY_WIDTH : constant := FMC_SDMemory_Width_16b;
SDRAM_CAS_LATENCY : constant := FMC_CAS_Latency_3;
SDCLOCK_PERIOD : constant := FMC_SDClock_Period_2;
S... |
libsrc/_DEVELOPMENT/font/fzx/z80/__fzx_puts_single_spacing.asm | meesokim/z88dk | 0 | 166629 |
SECTION code_font_fzx
PUBLIC __fzx_puts_single_spacing
__fzx_puts_single_spacing:
; enter : ix = struct fzx_state *
;
; exit : de = font_height
; hl = y + font_height
;
; uses : f, de, hl
ld l,(ix+3)
ld h,(ix+4) ; hl = struct fzx_font *
ld e,(hl)
ld d,... |
programs/oeis/324/A324903.asm | neoneye/loda | 22 | 86871 | <filename>programs/oeis/324/A324903.asm
; A324903: a(n) = 1 if A007814(sigma(n)) > A007814(n), 0 otherwise. Here A007814(n) gives the 2-adic valuation of n.
; 0,0,1,0,1,1,1,0,0,0,1,0,1,1,1,0,1,0,1,0,1,1,1,0,0,0,1,1,1,1,1,0,1,0,1,0,1,1,1,0,1,1,1,0,1,1,1,0,0,0,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,0,1,1,1,0,1,0,1,0,1,1,1,0,0... |
msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/opt56.adb | TUDSSL/TICS | 7 | 6246 | <gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-O3" }
package body Opt56 is
function F (Values : Vector) return Boolean is
Result : Boolean := True;
begin
for I in Values'Range loop
Result := Result and Values (I) >= 0.0;
end loop;
return Result;
end;
end Opt56;
|
test/Succeed/Issue1391.agda | shlevy/agda | 1,989 | 17279 | <gh_stars>1000+
-- Andreas, 2014-01-09, extend parser of typed bindings to allow hiding
postulate
_≡_ : ∀{A : Set} (a b : A) → Set
List : Set → Set
_++_ : ∀{A : Set} (xs ys : List A) → List A
assoc : ∀{A : Set} (xs {ys} {zs} : List A) → ((xs ++ ys) ++ zs) ≡ (xs ++ (ys ++ zs))
assoc1 : ∀{A : Set} (xs {ys ... |
pixy/src/host/pantilt_in_ada/specs/x86_64_linux_gnu_bits_timex_h.ads | GambuzX/Pixy-SIW | 1 | 15586 | <filename>pixy/src/host/pantilt_in_ada/specs/x86_64_linux_gnu_bits_timex_h.ads
--
-- Copyright (c) 2015, <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 n... |
2IMA/SystemesConcurrents/tp6/gtkada-builder.ads | LagOussama/enseeiht | 1 | 23986 | <filename>2IMA/SystemesConcurrents/tp6/gtkada-builder.ads
-----------------------------------------------------------------------
-- GtkAda - Ada95 binding for Gtk+/Gnome --
-- --
-- Copyright (C) 2011, AdaC... |
source/nodes/program-nodes-root_types.ads | reznikmm/gela | 0 | 1159 | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Root_Types;
with Program.Element_Visitors;
package Program.Nodes.Root_Types is
pragma Preelaborate;
type Root_Type is
new Program.Nodes... |
oeis/163/A163627.asm | neoneye/loda-programs | 11 | 29011 | <reponame>neoneye/loda-programs
; A163627: Numbers n such that 42n + 5 is prime.
; Submitted by <NAME>
; 0,1,2,3,4,6,9,11,12,14,16,17,18,21,22,23,24,26,28,29,31,34,37,38,43,47,49,54,56,57,58,62,64,66,67,68,69,79,81,82,83,84,86,87,88,93,97,102,104,106,109,113,114,116,117,119,121,123,126,128,131,133,136,138,139,141,143,1... |
programs/oeis/195/A195176.asm | neoneye/loda | 22 | 241959 | <reponame>neoneye/loda<gh_stars>10-100
; A195176: a(n) = 3*n - floor(n*sqrt(2)).
; 0,2,4,5,7,8,10,12,13,15,16,18,20,21,23,24,26,27,29,31,32,34,35,37,39,40,42,43,45,46,48,50,51,53,54,56,58,59,61,62,64,66,67,69,70,72,73,75,77,78,80,81,83,85,86,88,89,91,92,94,96,97,99,100,102,104,105,107,108,110,112,113,115,116,118,119,12... |
oeis/064/A064328.asm | neoneye/loda-programs | 11 | 99354 | <gh_stars>10-100
; A064328: Generalized Catalan numbers C(-6; n).
; Submitted by <NAME>
; 1,1,-5,61,-917,15421,-277733,5239117,-102188021,2044131037,-41706059525,864547613293,-18157111255829,385517710342909,-8261602828082213,178459989617336461,-3881680470161846837,84943651197028125469,-1868825086212694832453,4131213842... |
boot/print.asm | EmilNorden/tunaos | 0 | 170355 | ; ===== print_string =====
; prints a null-terminated string
; Input:
; BX - a pointer to the string to print
print_string:
pusha
mov ah, 0x0e ; BIOS tele-type output
print_string_loop:
mov cx, [bx]
cmp cl, 0
je print_string_stop
mov al, cl
int 0x10
add bx, 1
jmp print_string_loop
print_string_stop:
... |
tests/src/test_utils-abstract_encoder-cobs_stream.adb | Fabien-Chouteau/COBS | 0 | 11423 | package body Test_Utils.Abstract_Encoder.COBS_Stream is
-------------
-- Receive --
-------------
overriding
procedure Receive (This : in out Instance; Data : Storage_Element)
is
begin
This.Encoder.Push (Data);
end Receive;
------------------
-- End_Of_Frame --
---------------... |
messagematch/src/main/antlr4/org/forwoods/messagematch/matchgrammar/Matcher.g4 | tomforwood/messagematch | 0 | 4255 | grammar Matcher;
@header {
}
INT:'$Int';
NUM:'$Num';
STRING:'$String';
INSTANT:'$Instant';
TIME:'$Time';
DATE:'$Date';
RE : '^'(RESC | RSAFE)* '^' ;
NUMBER : '-'?[0-9]+('.'[0-9]+)?EXP?;
IDENTIFIER : [a-zA-Z][a-zA-Z0-9]*;
multMatcher: matcher (LineFeed matcher)*;
matcher: (
typeMatcher | regexpMatcher
) ;
typeM... |
strlib.asm | traidna/MUMPS-TI99-4A | 0 | 26281 | <reponame>traidna/MUMPS-TI99-4A
; string routines in TMS9900 ASM
; strlen
; counts bytes in a string passed on the stack
; returned in on the stack
strlen:
;mov r11,*r10+
pop r6
push r11
clr r7 ; lenght counter
slloop:
clr r3 ; clear r3 holding char
movb *r6+,r3 ; get next char
ci ... |
Common/RFID_Emulator_rs232.asm | kbembedded/EM4100_Cloner | 66 | 176532 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; ;;
; RFID Emulator - RS232 LIBRARY ... |
aunit/aunit-tests.ads | btmalone/alog | 0 | 295 | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
libsrc/_DEVELOPMENT/target/zx/zx_crt.asm | meesokim/z88dk | 0 | 92672 | <gh_stars>0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; SELECT CRT0 FROM -STARTUP=N COMMANDLINE OPTION ;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
INCLUDE "zcc_opt.def"
IFNDEF startup
; startup undefined so select a default
defc startup = 0
ENDIF
... |
seedtag.asm | joshuadhowe/z3randomizer | 0 | 164761 | <gh_stars>0
;--------------------------------------------------------------------------------
; GenerateSeedTags
;--------------------------------------------------------------------------------
GenerateSeedTags:
PHA : PHX : PHY : PHP
REP #$20 ; set 16-bit accumulator
LDA $00 : PHA
LDA $02 : PHA
LDA $04 : PHA
... |
ZORTON.reko/ZORTON_2057.asm | 0xLiso/dePIXELator | 0 | 86969 | <filename>ZORTON.reko/ZORTON_2057.asm
;;; Segment 2057 (2057:0000)
;; fn2057_0000: 2057:0000
;; Called from:
;; 2057:007C (in fn2057_005C)
;; 2057:0083 (in fn2057_005C)
;; 2057:0092 (in fn2057_005C)
;; 2057:0329 (in fn2057_0283)
;; 2057:0334 (in fn2057_0283)
;; 2057:0347 (in fn2057_0283)
;; ... |
src/main/antlr4/com/github/kristinjeanna/scedsl/SceDsl.g4 | kristinjeanna/string-collection-eval-dsl | 0 | 2492 | <reponame>kristinjeanna/string-collection-eval-dsl<gh_stars>0
grammar SceDsl;
expression
: function
| explicitBoolean
| quotedString
;
function
: and
| or
| xor
| not
| contains
| startsWith
| endsWith
;
explicitBoolean
: booleanTrue
| booleanFalse
;
and
... |
oeis/067/A067274.asm | neoneye/loda-programs | 11 | 166854 | <reponame>neoneye/loda-programs
; A067274: Number of ordered integer pairs (b,c), with -n<=b<=n, -n<=c<=n, such that both roots of x^2+bx+c=0 are integers.
; Submitted by <NAME>(s1)
; 1,4,10,16,25,31,41,47,57,66,76,82,96,102,112,122,135,141,155,161,175,185,195,201,219,228,238,248,262,268,286,292,306,316,326,336,357,363... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_22.asm | ljhsiun2/medusa | 9 | 14674 | <filename>Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_22.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x10d18, %rsi
lea addresses_UC_ht+0x10798, %rdi
nop
nop
cmp $23264, %r14
mov $65, %rcx
rep movsq
nop
nop
nop
nop
nop
sub ... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1652.asm | ljhsiun2/medusa | 9 | 21583 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x26e6, %r8
clflush (%r8)
nop
nop
nop
xor $53667, %rsi
mov $0x6162636465666768, %r13
movq %r13, (%r8)
nop
nop
nop
nop
dec %rbp
lea addresses_UC_ht+0xabe6, %rsi
lea addresse... |
src/vulkan-math/vulkan-math-bvec4.ads | zrmyers/VulkanAda | 1 | 7003 | <reponame>zrmyers/VulkanAda
--------------------------------------------------------------------------------
-- 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
... |
examples/font.asm | crgimenes/assembly | 1 | 12375 | ;nasm -f bin -o font.com font.asm
org 100h
section .text
start:
;mov ax,0003h ; set screen mode to normal
;int 10h ; (80x25) text
;push ds ;
;pop es ; make sure ES = DS
mov bp,font ;
mov cx,1 ; change 1 bitmap
mov dx,0041h ; A 41h ... |
src/extras/media/spectrum/tbblue/raster/readline/readline_bin.asm | chipsi007/zesarux | 0 | 161903 | ;Compilar con pasmo --tapbas readline_bin.asm readline_bin.tap
reg_port equ 243BH
value_port equ 253BH
lineas equ 23298
;Puedes leer la linea raster que retorna tbblue desde 23296 y 23297
;se puede poner una pausa modificando 23298 y generando de esa manera que el raster se desplaza hacia abajo
;ver programa ... |
3-mid/impact/source/3d/collision/shapes/impact-d3-shape-convex-internal.ads | charlie5/lace | 20 | 4373 | <reponame>charlie5/lace
with impact.d3.Shape.convex,
impact.d3.collision.Margin;
package impact.d3.Shape.convex.internal
--
-- The impact.d3.Shape.convex.internal is an internal base class, shared by most convex shape implementations.
--
-- The impact.d3.Shape.convex.internal uses a default collision margin ... |
src/fot/FOTC/Program/SortList/PropertiesI.agda | asr/fotc | 11 | 458 | <reponame>asr/fotc
------------------------------------------------------------------------------
-- Properties stated in the Burstall's paper
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS... |
src/util/icon/gotolab.asm | olifink/qspread | 0 | 244505 | <filename>src/util/icon/gotolab.asm
* Sprite gotolab
*
* Mode 4
* +----|---------------+
* - g gg gg w w -
* |g g g ww ww |
* |g gg gg wwwww |
* |g g g g wwwww |
* | g g g wwwww |
* | wwwwwwwww |
* | wwwwwww |
* | wwwww |
* | www |
* | w |
* | |
* |... |
Task/XML-Input/Ada/xml-input-4.ada | LaudateCorpus1/RosettaCodeData | 1 | 4400 | with Ada.Text_IO;
with Sax.Readers;
with Input_Sources.Strings;
with Unicode.CES.Utf8;
with DOM.Readers;
with DOM.Core.Documents;
with DOM.Core.Nodes;
with DOM.Core.Attrs;
procedure Extract_Students is
Sample_String : String :=
"<Students>" &
"<Student Name=""April"" Gender=""F"" DateOfBirth=""1989-01-02"" />" &... |
processor/processor-nova_math_p.adb | SMerrony/dgemua | 2 | 15879 | <reponame>SMerrony/dgemua
-- MIT License
-- Copyright (c) 2021 <NAME>
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to u... |
programs/oeis/115/A115067.asm | karttu/loda | 1 | 18251 | <gh_stars>1-10
; A115067: a(n) = (3*n^2 - n - 2)/2.
; 0,4,11,21,34,50,69,91,116,144,175,209,246,286,329,375,424,476,531,589,650,714,781,851,924,1000,1079,1161,1246,1334,1425,1519,1616,1716,1819,1925,2034,2146,2261,2379,2500,2624,2751,2881,3014,3150,3289,3431,3576,3724,3875,4029,4186,4346,4509,4675,4844,5016,5191,5369,5... |
Chapter_4/Program 4.4/x86:64/Program_4.4_MASM.asm | chen150182055/Assembly | 272 | 92922 | ; Program 4.4
; Array - MASM (64-bit)
; Copyright (c) 2019 Hall & Slonka
extrn ExitProcess : proc
.data
array DWORD 1, 2, 3, 4
.code
_main PROC
; Load using byte offsets
lea rsi, array
mov eax, DWORD PTR [rsi]
mov ebx, DWORD PTR [rsi + 4]
; Save using indices
mov rdx, 2
mov DWORD PTR [rsi + rdx * 4], 10
mov rdx, 3... |
Assembly Tests/shiftTest.asm | idn0971/289-CPU | 2 | 3114 | <reponame>idn0971/289-CPU
addi t0, zero, 1
sll t1, t0, t0
slli t2, t1, 1
srl t3, t2, t0
srli t4, t3, 1
auipc t5, 0
#end : jal end |
MC_libks.asm | Kannagi/Super-Kannagi-Sound | 11 | 13275 |
.include "LKS/MC_OAM.asm"
.include "LKS/MC_Joypad.asm"
.include "LKS/MC_Printf.asm"
.include "LKS/MC_Load.asm"
.include "LKS/MC_Clear.asm"
.include "LKS/MC_BG.asm"
.include "LKS/MC_DMA.asm"
.include "LKS/MC_PAL.asm"
.include "LKS/variable.asm"
|
03_stack/stack.asm | mandm-pt/OperatingSystem | 0 | 172960 | <reponame>mandm-pt/OperatingSystem
;
;
;
jmp $ ; Jump forever
the_secret:
db "X"
times 510-($-$$) db 0 ; Padding and magic BIOS number.
dw 0xaa55 |
src/setup/ss_xy.asm | furrtek/GB303 | 90 | 173379 | <filename>src/setup/ss_xy.asm
setscreen_xy:
call write_pattinfo
ld hl,$9800+(32*2)+2
ld b,15
-:
ld c,16
--:
ld a,T_GRID
ldi (hl),a
dec c
jr nz,--
ld a,l
add 16
ld l,a
jr nc,+
inc h
+:
dec b
jr nz,-
ld de,te... |
load.asm | funkacer/ZX80 | 0 | 97952 | DEVICE ZXSPECTRUM48
org $8000
start:
ld a,$D6
ld ($5800),a
ret
; Deployment: Snapshot
SAVESNA "load.sna", start
|
programs/oeis/132/A132352.asm | jmorken/loda | 1 | 162149 | <reponame>jmorken/loda<gh_stars>1-10
; A132352: Partial sums of A132351.
; 1,3,6,9,13,18,24,30,36,43,51,60,70,81,93,105,118,132,147,163,180,198,217,237,257,278,299,321,344,368,393,418,444,471,499,527,556,586,617,649,682,716,751,787,824,862,901,941,981,1022,1064,1107,1151,1196,1242,1289,1337
mov $30,$0
mov $32,$0
add $... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.