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 |
|---|---|---|---|---|
Keyboard-Maestro/Refactor-Macro.applescript | boisy/AppleScripts | 116 | 2289 | use AppleScript version "2.4" -- Yosemite (10.10) or later
use framework "Foundation"
use scripting additions
use kl : script "Kevin's Library"
use script "Dialog Toolkit Plus" version "1.1.0"
try
set accViewWidth to 400
set {theButtons, minWidth} to create buttons {"Cancel", "OK"} default button "OK" cancel button... |
Lala.g4 | alizand1992/cmpe-152-project-4 | 0 | 1514 | <reponame>alizand1992/cmpe-152-project-4<gh_stars>0
grammar Lala;
program : block;
block : OFB decls stmts CFB;
decls : | decls decl;
decl : type ID SEMI;
type : INT | FLOAT;
stmts : | stmts stmt;
stmt : IF OB allexpr CB stmt | IF OB allexpr CB stmt ELSE stmt | WHILE OB allexpr CB stmt | DO stmt WHILE OB allexpr CB ... |
grammar/Aremelle.g4 | gene-levitzky/caremelle | 0 | 7121 | grammar Aremelle;
program
: importStatement* function?
;
importStatement
: IMPORT String DOT
;
function
: DEFINE Identifier COLON functionBody DOT
;
functionBody
: function* ( expression | rewriteRules )
;
rewriteRules
: rewriteRule (SEMICOLON... |
source/amf/mofext/amf-internals-factories-mof_factories.ads | svn2github/matreshka | 24 | 25676 | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
libsrc/fcntl/nc100/creat.asm | meesokim/z88dk | 0 | 93644 | <filename>libsrc/fcntl/nc100/creat.asm
;
; create a file on an Amstrad NC100
;
PUBLIC creat
.creat pop de
pop bc ; don't care
pop hl
push hl
push bc
push de
call 0xB8A5
ret c
ld hl, 0xffff
ret
|
src/cola/parser/CoLa.g4 | Wolff09/seal | 7 | 3306 | grammar CoLa;
/* Parser rules: programs */
program : opts* struct_decl* var_decl* function* EOF ;
opts : '#' ident=Identifier str=String #option ;
struct_decl : ('struct' || 'class') name=Identifier '{' field_decl* '}' (';')? ;
typeName : VoidType #nameVoid
| BoolType #nameBool
| IntType ... |
src/bitmap.asm | Mario-Kart-Felix/9os | 13 | 86877 | ;-----------------------------------------------------------------------------------------------------
;
; Bitmap rendering here
;
;-----------------------------------------------------------------------------------------------------
;--------------------------------------------
;
; Bitmap structure:
;
; struct... |
alloy4fun_models/trashltl/models/11/aoDa5gZQuHptNqN6c.als | Kaixi26/org.alloytools.alloy | 0 | 1881 | <reponame>Kaixi26/org.alloytools.alloy
open main
pred idaoDa5gZQuHptNqN6c_prop12 {
always( all f: File | f not in Trash and eventually f in Trash and after always f in Trash)
}
pred __repair { idaoDa5gZQuHptNqN6c_prop12 }
check __repair { idaoDa5gZQuHptNqN6c_prop12 <=> prop12o } |
programs/oeis/184/A184049.asm | neoneye/loda | 22 | 89285 | ; A184049: T(n,k) is the number of order-preserving and order-decreasing partial isometries (of an n-chain) of height k (height of alpha = |Im(alpha)|).
; 1,1,1,1,3,1,1,6,4,1,1,10,10,5,1,1,15,20,15,6,1,1,21,35,35,21,7,1,1,28,56,70,56,28,8,1,1,36,84,126,126,84,36,9,1,1,45,120,210,252,210,120,45,10,1,1,55,165,330,462,462... |
src/spark_unbound.ads | mhatzl/spark_unbound | 8 | 9729 | with Ada.Numerics.Big_Numbers.Big_Integers; use Ada.Numerics.Big_Numbers.Big_Integers;
--- @summary
--- The `Spark_Unbound` package contains various unbound generic data structures.
--- All data structures are formally proven by Spark and `Storage_Error` for heap allocation is handled internally.
---
--- @description
... |
examples/m68k/amiga_hello_world.asm | rakati/ppci-mirror | 161 | 20126 | <filename>examples/m68k/amiga_hello_world.asm
; Roughly taken from:
; https://github.com/Sakura-IT/Amiga-programming-examples/blob/master/ASM/HelloWorld/helloworld.s
; See also:
; http://amigadev.elowar.com/read/ADCD_2.1/Includes_and_Autodocs_2._guide/node0367.html
; open library
lea dosname, a1
moveq #36, d0 ; vers... |
oeis/044/A044388.asm | neoneye/loda-programs | 11 | 82787 | ; A044388: Numbers n such that string 5,6 occurs in the base 10 representation of n but not of n-1.
; Submitted by <NAME>
; 56,156,256,356,456,556,560,656,756,856,956,1056,1156,1256,1356,1456,1556,1560,1656,1756,1856,1956,2056,2156,2256,2356,2456,2556,2560,2656,2756,2856,2956,3056,3156,3256,3356,3456,3556
add $0,1
mul... |
programs/oeis/039/A039737.asm | neoneye/loda | 22 | 23995 | <reponame>neoneye/loda
; A039737: a(n)=number of primes q<p having (p mod q)=3, where p=n-th prime.
; 0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,2,1,1,1,1,1,1,1,1,2,1,0,1,1,1,1,2,1,1,2,1,1,1,2,1,1,1,2,1,1,2,1,2,1,1,2,2,1,1,1,2,2,1,2,2,1,1,1,1,1,2,1,2,2,1,2,1,1,1,2,1,2,1,2,1,2,1,1,1,2
seq $0,40 ; The prime numbers.
trn $0... |
src/Editor.agda | cruhland/agda-editor | 0 | 5686 | module Editor where
open import Agda.Builtin.FromNat
open import BasicIO
open import Data.Bool
open import Data.Char
open import Data.List hiding (_++_)
open import Data.String
open import Data.Unit
open import Function
open import Int
open import Terminal
readTimeout : Int
readTimeout = 0
readMinChars : Int
readMin... |
test/Fail/Issue1944-instance.agda | shlevy/agda | 1,989 | 9586 | <reponame>shlevy/agda
-- Andreas, Issue 1944, <NAME> 2016-04-28
-- A reason why issue 1098 (automatic opening of record modules)
-- cannot easily be fixed
data Bool : Set where
true false : Bool
if_then_else_ : ∀{A : Set} → Bool → A → A → A
if true then t else e = t
if false then t else e = e
record Testable (A ... |
vendor/stdlib/src/Algebra/Props/Lattice.agda | isabella232/Lemmachine | 56 | 7776 | ------------------------------------------------------------------------
-- Some derivable properties
------------------------------------------------------------------------
open import Algebra
module Algebra.Props.Lattice (l : Lattice) where
open Lattice l
open import Algebra.Structures
import Algebra.FunctionProp... |
mugene-project/mugene/src/commonAntlr/antlr/MugeneParser.g4 | atsushieno/mugene-ng | 2 | 3840 | <reponame>atsushieno/mugene-ng<filename>mugene-project/mugene/src/commonAntlr/antlr/MugeneParser.g4<gh_stars>1-10
parser grammar MugeneParser;
options { tokenVocab=MugeneLexer; }
expressionOrOperationUses :
operationUses
| expression
;
operationUses :
operationUse+
;
operationUse :
canBeIdentifier argument... |
oeis/165/A165563.asm | neoneye/loda-programs | 11 | 104524 | ; A165563: a(n) = 1 + 2*n + n^2 + 2*n^3 + n^4.
; 1,7,41,151,409,911,1777,3151,5201,8119,12121,17447,24361,33151,44129,57631,74017,93671,117001,144439,176441,213487,256081,304751,360049,422551,492857,571591,659401,756959,864961,984127,1115201,1258951,1416169,1587671,1774297,1976911,2196401,2433679,2689681,2965367,326172... |
ESEMPI/11 PROGRAMMA TRASFERIMENTO.asm | Porchetta/py-pdp8-tk | 8 | 640 | <reponame>Porchetta/py-pdp8-tk<gh_stars>1-10
ORG 100 /Trasferisce i dati da X+i a Y+i con i = (0,1,2,3)
BUN L
SBR, ISZ L
ISZ N
L, LDA X
N, STA Y
ISZ CNT
BUN SBR
HLT
CNT, DEC -4
X, DEC 10
DEC 20
DEC 30
DEC 40
Y, DEC 0
DEC 0
DEC 0
DEC 0
END
|
oeis/078/A078711.asm | neoneye/loda-programs | 11 | 167950 | <gh_stars>10-100
; A078711: Sequence is S(infinity), where S(1)={1,2,3}, S(n+1)=S(n)S'(n) and S'(n) is obtained from S(n) by changing last term using the cyclic permutation 1->2->3->1.
; Submitted by <NAME>(s1)
; 1,2,3,1,2,1,1,2,3,1,2,2,1,2,3,1,2,1,1,2,3,1,2,3,1,2,3,1,2,1,1,2,3,1,2,2,1,2,3,1,2,1,1,2,3,1,2,1,1,2,3,1,2,1... |
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_146_1894.asm | ljhsiun2/medusa | 9 | 17530 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x108dc, %rbx
cmp $33654, %rdx
movl $0x61626364, (%rbx)
nop
nop
nop
nop
nop
xor %rcx, %rcx
lea addresses_UC_ht+0x183e7, %rsi
lea addresses_WT_ht+0xdb07, %rdi
cmp... |
programs/oeis/304/A304377.asm | neoneye/loda | 22 | 94342 | ; A304377: a(n) = 102*2^n - 96 (n>=1).
; 108,312,720,1536,3168,6432,12960,26016,52128,104352,208800,417696,835488,1671072,3342240,6684576,13369248,26738592,53477280,106954656,213909408,427818912,855637920,1711275936,3422551968,6845104032,13690208160,27380416416,54760832928,109521665952,219043332000,438086664096,8761733... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1647.asm | ljhsiun2/medusa | 9 | 170692 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xc515, %rbp
nop
nop
and $27626, %rax
and $0xffffffffffffffc0, %rbp
movntdqa (%rbp), %xmm1
vpextrq $1, %xmm1, %r9
nop
nop
nop
nop
nop
sub $41447, %rax
lea addresses_UC_ht+0x16d... |
src/CORE32/ldexp.asm | masscry/dmc | 86 | 12852 | ;_ ldexp.asm Modified by: <NAME> */
; Written by <NAME>
; Copyright (C) 1984-1991 by <NAME>
; All rights reserved
include macros.asm
include flthead.asm
.287
if _FLAT
begcode double
else
ifdef _MT
extrn __FEEXCEPT:near
endif
begdata
extrn __8087:word
ifndef _MT
e... |
gstack.adb | tyudosen/DualStack | 0 | 19176 | with Ada.Text_IO; use Ada.Text_IO;
package body gstack is
stack : entries(1..max);
ttop: integer range 0.. max + 1;
stop: integer range 0..max +1;
procedure tpush(x: in item) is
begin
if ttop < (stop -1) then
ttop := ttop + 1;
stack(ttop) := x;
else
... |
orka_plugin_terrain/src/orka-features-terrain-spheres.adb | onox/orka | 52 | 8641 | <filename>orka_plugin_terrain/src/orka-features-terrain-spheres.adb
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of th... |
programs/oeis/170/A170836.asm | karttu/loda | 0 | 9614 | <reponame>karttu/loda
; A170836: First differences of A170837.
; 0,1,4,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16
mov $1,$0
lpb $0,1
mov $0,2
mov $1... |
programs/oeis/053/A053388.asm | neoneye/loda | 22 | 21932 | <filename>programs/oeis/053/A053388.asm
; A053388: A053398(8, n).
; 3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,6,6,6,6,6,6,6,6,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,3,3,3,3
div $0,8
add $0,1
lpb $0
dif $0,2
add $1,1
lpe
... |
word_lists.ads | cborao/Ada-P1-words | 0 | 17639 | with Ada.Strings.Unbounded;
package Word_Lists is
package ASU renames Ada.Strings.Unbounded;
type Cell;
type Word_List_Type is access Cell;
type Cell is record
Word: ASU.Unbounded_String;
Count: Natural := 0;
Next: Word_List_Type;
end record;
Word_List_Error: except... |
awa/plugins/awa-tags/regtests/awa-tags-modules-tests.adb | twdroeger/ada-awa | 81 | 12154 | -----------------------------------------------------------------------
-- awa-tags-modules-tests -- Unit tests for tags module
-- Copyright (C) 2013, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance w... |
Cubical/Algebra/Group.agda | Schippmunk/cubical | 0 | 7639 | <filename>Cubical/Algebra/Group.agda<gh_stars>0
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Algebra.Group where
open import Cubical.Algebra.Group.Base public
open import Cubical.Algebra.Group.Properties public
open import Cubical.Algebra.Group.Morphism public
open import Cubical.Algebra.Group.Mor... |
fiat-amd64/66.82_ratio12314_seed31939672603401_mul_p224.asm | dderjoel/fiat-crypto | 491 | 7196 | <filename>fiat-amd64/66.82_ratio12314_seed31939672603401_mul_p224.asm
SECTION .text
GLOBAL mul_p224
mul_p224:
sub rsp, 0xc0 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0x90 ], rbx; saving to stack
mov [ rsp + 0x98 ], rbp; saving to stack
mov [ rsp + 0xa0 ], r12; saving to stack
mov [ rsp + 0xa8 ], r13; saving ... |
ejercicios6/interseccion.adb | iyan22/AprendeAda | 0 | 27134 | <filename>ejercicios6/interseccion.adb
with Datos, Posicion;
use Datos;
function Interseccion (L1, L2 : in Lista ) return Lista is
-- pre:
-- post: se ha insertado el nuevo valor en L de manera ordenada
LI : Lista;
Num : Integer;
begin
crear_lista_vacia(LI);
while L1 /= null loop
while L2 /= null... |
projects/batfish/src/main/antlr4/org/batfish/grammar/f5_bigip_structured/F5BigipStructuredLexer.g4 | yrll/batfish-repair | 0 | 7558 | <filename>projects/batfish/src/main/antlr4/org/batfish/grammar/f5_bigip_structured/F5BigipStructuredLexer.g4
lexer grammar F5BigipStructuredLexer;
options {
superClass = 'org.batfish.grammar.f5_bigip_structured.parsing.F5BigipStructuredBaseLexer';
}
tokens {
BACKSLASH_CARRIAGE_RETURN,
BACKSLASH_CHAR,
BACKSLAS... |
src/main/antlr4/botGrammar/BotOperations.g4 | marvin1997/Refactoring-Bot | 54 | 7915 | grammar BotOperations;
@parser::members
{
public java.util.HashMap<String, Double> memory = new java.util.HashMap<String, Double>();
@Override
public void notifyErrorListeners(Token offendingToken, String msg, RecognitionException ex)
{
throw new RuntimeException(msg);
}
}
@lexer::members
{
@Overr... |
test/interaction/Issue3353.agda | cruhland/agda | 1,989 | 7465 | <reponame>cruhland/agda
-- Andreas, 2018-11-23, 2019-07-22, issue #3353
--
-- Preserved names of named arguments under case splitting.
-- {-# OPTIONS -v tc.lhs:40 #-}
-- {-# OPTIONS -v interaction.case:60 -v reify:30 #-}
open import Agda.Builtin.Nat
test : {m n : Nat} → Nat
test {m} {n = n} = {!n!} -- C-c C-c
-- S... |
ADL/drivers/stm32g474/stm32-timers.adb | JCGobbi/Nucleo-STM32G474RE | 0 | 23830 | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- ... |
src/metadslx.soal.runtime/src/generated/resources/SoalParser.g4 | balazssimon/soal-java | 0 | 6038 | <reponame>balazssimon/soal-java<gh_stars>0
parser grammar SoalParser;
options {
tokenVocab=SoalLexer;
}
@header {
import metadslx.core.ResolutionLocation;
}
main : namespaceDeclaration*;
qualifiedName : identifier (TDot identifier)*;
identifierList... |
wof/lcs/base/32A.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 176754 | <gh_stars>1-10
copyright zengfr site:http://github.com/zengfr/romhack
001658 move.w A0, -(A4) [base+32A]
00165A move.w A4, ($32a,A5) [base+50A, base+50C, base+50E]
00165E addq.w #1, ($31e,A5) [base+32A]
01A68E move.w D0, ($31e,A5) [base+32A]
021CE4 move.w D0, ($31e,A5) [base+32A]
copyright zengfr site:http:/... |
test-roms/multiply.asm | martinkauppinen/gibberish | 1 | 19490 | SECTION "Header", ROM0[$100]
jp start
ds $150 - @, 0 ; Header
start:
ld de, $dead ; Values to check that stack
ld hl, $beef ; popping works as intended
ld a, $0
ld b, $1
call multiply
ld a, $2
ld b, $2
call multiply
ld a, $5
ld b, $3
call multiply
ld a, $F
... |
src/intel/tools/tests/gen7/halt.asm | PWN-Hunter/mesa3d | 0 | 92828 | <filename>src/intel/tools/tests/gen7/halt.asm<gh_stars>0
(-f0.1.any4h) halt(8) JIP: 72 UIP: 74 { align1 1Q };
halt(8) JIP: 2 UIP: 2 { align1 1Q };
(-f0.1.any4h) halt(16) JIP: 76 UIP: 78 { align1 1H };
halt(16) JIP: 2 ... |
libsrc/_DEVELOPMENT/arch/zx/bifrost2/c/sdcc/BIFROST2_drawTileH_callee.asm | jpoikela/z88dk | 640 | 90934 | <filename>libsrc/_DEVELOPMENT/arch/zx/bifrost2/c/sdcc/BIFROST2_drawTileH_callee.asm
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST*2 ENGINE
;
; See "bifrost2.h" for further details
; ----------------------------------------------------------------
; void BI... |
src/compiling/ANTLR/grammar/SpecifyPathDelays.g4 | jecassis/VSCode-SystemVerilog | 75 | 5683 | <filename>src/compiling/ANTLR/grammar/SpecifyPathDelays.g4
grammar SpecifyPathDelays;
import SystemTimingChecks;
path_delay_value : list_of_path_delay_expressions | '(' list_of_path_delay_expressions ')' ;
list_of_path_delay_expressions : t_path_delay_expression
| trise_path_delay_expression ',' tfall_path_delay_exp... |
src/sound.ads | JeremyGrosser/the_grid | 0 | 5815 | <filename>src/sound.ads
with RP.PWM;
package Sound is
type Octaves is range 0 .. 11;
type Notes is (C, Cs, D, Ds, E, F, Fs, G, Gs, A, As, B);
subtype Milliseconds is Natural;
procedure Initialize;
procedure Update;
procedure Play
(Note : Notes;
Octave : Octaves;
Length : Mill... |
oeis/293/A293639.asm | neoneye/loda-programs | 11 | 1072 | ; A293639: a(n) is the greatest integer k such that k/Fibonacci(n) < 2/5.
; Submitted by <NAME>
; 0,0,0,0,1,2,3,5,8,13,22,35,57,93,150,244,394,638,1033,1672,2706,4378,7084,11462,18547,30010,48557,78567,127124,205691,332816,538507,871323,1409831,2281154,3690986,5972140,9663126,15635267,25298394,40933662,66232056,1071657... |
src/_test/scenarios/apsepp_test_node_class_early_test_case.ads | thierr26/ada-apsepp | 0 | 12815 | <reponame>thierr26/ada-apsepp
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Ada.Tags; use Ada.Tags;
with Apsepp.Test_Node_Class.Testing; use Apsepp.Test_Node_Class.Testing;
with Apsepp.Abstract_Early_Test_Case; use Apsepp.Abstract_Early_Test_Case;... |
Transynther/x86/_processed/NC/_st_zr_sm_/i7-7700_9_0xca.log_21829_1678.asm | ljhsiun2/medusa | 9 | 22425 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x18542, %rsi
lea addresses_A_ht+0x1d602, %rdi
nop
nop
nop
nop
xor %r9, %r9
mov $4, %rcx
rep movsq
inc %r10
lea addresses_A_ht+0xc842, %rsi
lea addresses_WC_ht+0x1142, %rdi
nop... |
FormalAnalyzer/models/apps/ItsTooHot.als | Mohannadcse/IoTCOM_BehavioralRuleExtractor | 0 | 4604 | module app_ItsTooHot
open IoTBottomUp as base
open cap_runIn
open cap_now
open cap_temperatureMeasurement
open cap_switch
open cap_userInput
one sig app_ItsTooHot extends IoTApp {
temperatureSensor1 : one cap_temperatureMeasurement,
switch1 : one cap_switch,
sendPushMessage : one cap_userInput,
} {
... |
programs/oeis/184/A184654.asm | neoneye/loda | 22 | 160910 | <gh_stars>10-100
; A184654: floor(n*sqrt(3)-2/3); complement of A184655.
; 1,2,4,6,7,9,11,13,14,16,18,20,21,23,25,27,28,30,32,33,35,37,39,40,42,44,46,47,49,51,53,54,56,58,59,61,63,65,66,68,70,72,73,75,77,79,80,82,84,85,87,89,91,92,94,96,98,99,101,103,104,106,108,110,111,113,115,117,118,120,122,124,125,127,129,130,132,1... |
spec/assert_x_not_equal_spec.asm | andrzejsliwa/64spec | 53 | 12175 | <filename>spec/assert_x_not_equal_spec.asm
.import source "64spec.asm"
sfspec: :init_spec()
assert_x_not_equal_works_for_all_values_of_x: {
.var x = floor(random()*256)
.print "x = " + x + " in assert_x_not_equal_works_for_all_values_of_x test"
.for (var expected = 0;expected < 256; expected++) {
.if (x... |
src/boot.asm | drdanick/apricot-os | 0 | 80724 | <filename>src/boot.asm
; asmsyntax=apricos
; ===================================
; == ==
; == ApricotOS Stage 1 Bootloader ==
; == ==
; == Revision 1 ==
; == ==
; == (C) 2014-17 <NAME> ==
; == ... |
forktest.asm | kishan1468/memory-management-in-xv6 | 0 | 93753 | <reponame>kishan1468/memory-management-in-xv6
_forktest: file format elf32-i386
Disassembly of section .text:
00001000 <main>:
printf(1, "fork test OK\n");
}
int
main(void)
{
1000: f3 0f 1e fb endbr32
1004: 55 push %ebp
1005: 89 e5 mov %esp,%ebp
... |
gb_02/src_bug/lists.adb | gerr135/gnat_bugs | 0 | 8057 | <filename>gb_02/src_bug/lists.adb
package body Lists is
function Has_Element (Position : Cursor) return Boolean is
begin
return Position /= No_Element;
end Has_Element;
end Lists;
|
bootdict/tc/h-dot-8.asm | ikysil/ikforth | 8 | 163234 | <filename>bootdict/tc/h-dot-8.asm
; Output the value on the top of the data stack in hexadecimal representation.
; S: a --
$COLON 'H.8',$HOUT8
CW $SPLIT8, $HOUT2, $HOUT2, $HOUT2, $HOUT2
$END_COLON
|
oeis/288/A288023.asm | neoneye/loda-programs | 11 | 173339 | <filename>oeis/288/A288023.asm<gh_stars>10-100
; A288023: Number of steps to reach 1 in the Collatz 3x+1 problem starting with the n-th triangular number, or -1 if 1 is never reached.
; Submitted by Jon Maiga
; 0,7,8,6,17,7,18,21,16,112,27,35,92,38,20,15,36,124,106,39,127,109,16,16,24,81,107,40,27,35,110,30,43,74,38,11... |
notes/FOT/FOTC/Program/GCD/GCD00-SL.agda | asr/fotc | 11 | 1639 | ------------------------------------------------------------------------------
-- In the Agda standard library, gcd 0 0 = 0.
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-pol... |
session_07/02-maxmmin/max.asm | DigiOhhh/LabArchitettura2-2017-2018 | 1 | 4774 | <reponame>DigiOhhh/LabArchitettura2-2017-2018
# INPUT
# $a0: base address array
# $a1: dimensione array
# $a2: passo
# OUTPUT
# $v0: massimo tra i numeri considerati
.text
.globl max
max:
mul $t0, $a2, 4 #t0=offset tra el. (passo)
move $t1, $a0 #t1=indirizzo prossimo el.
lw $t2, 0($t1) #t2=el. considerato
j ... |
src/boot/init.asm | robey/funos | 5 | 22471 | <reponame>robey/funos
;
; bootstrap:
; this is launched by the (multiboot-compatible) bootloader. it runs in old
; "short" mode (32 bits), initializes the basic hardware, and then loads the
; 64-bit kernel and jumps into it in "long" mode (64 bits).
;
; sometimes multiboot is called a "stage 2 loader", so i guess we ar... |
lib.asm | jorgicor/altair | 0 | 9837 | <filename>lib.asm<gh_stars>0
; ----------------------------------------------------------------------------
; Altair, CIDLESA's 1981 arcade game remade for the ZX Spectrum and
; Amstrad CPC.
; ----------------------------------------------------------------------------
; -----------------
; 'jphl' Juml to HL
; -------... |
source/distributed/a-proces.adb | ytomino/drake | 33 | 5539 | <filename>source/distributed/a-proces.adb
with Ada.Streams.Naked_Stream_IO;
with Ada.Streams.Stream_IO.Naked;
with System.Unwind.Occurrences;
package body Ada.Processes is
-- implementation
function Image (Command : Command_Type) return String is
Native_Command : System.Native_Processes.Command_Type
... |
videocodec/libvpx_internal/libvpx/vp8/encoder/ppc/fdct_altivec.asm | Omegaphora/hardware_intel_common_omx-components | 49 | 246731 | ;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
programs/oeis/051/A051490.asm | neoneye/loda | 22 | 98794 | ; A051490: a(n) = n^(n+2)*(n+2)^n.
; 0,3,256,30375,5308416,1313046875,440301256704,193010051319183,107374182400000000,73994897046174912819,61917364224000000000000,61870237399093306018139447,72790360926157879387298463744,99617732553594016079725341796875
mov $1,$0
add $1,2
mov $2,$0
pow $0,$1
pow $1,$2
mul $1,$0
mov $0,... |
RMonads/Restriction.agda | jmchapman/Relative-Monads | 21 | 9904 | <filename>RMonads/Restriction.agda
module RMonads.Restriction where
open import Library
open import Categories
open import Functors
open import Naturals
open import Monads
open import RMonads
open Cat
open Fun
restrictM : ∀{a b c d}{C : Cat {a}{b}}{D : Cat {c}{d}}(J : Fun C D) →
Monad D → RMonad J
restr... |
misc/excel_to_tab.scpt | widdowquinn/scripts | 15 | 3485 | <gh_stars>10-100
# excel_to_tab.scpt
#
# This script takes as input an Excel workbook containing one or more
# worksheets. It creates a new directory with the same name as the workbook,
# with the appended string _extracted. This directory contains a set of
# tab-separated plaintext files, one per worksheet. Each file ... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_1108.asm | ljhsiun2/medusa | 9 | 174954 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x6c2b, %rsi
lea addresses_UC_ht+0x1401f, %rdi
nop
nop
nop
nop
nop
and %r11, %r11
mov $84, %rcx
rep movsb
dec %r14
lea addresses_A_ht+0x12c8f, %rsi
nop
nop
nop
nop
nop
add %rdi... |
src/intro.asm | fjpena/sword-of-ianna-zx | 67 | 93388 | <gh_stars>10-100
intro_var: db 0
number_screens: db 0
menu_string_list: dw 0
menu_screen_list: dw 0
menu_attr_list: dw 0
menu_cls_loop: db 0
load_buffer: EQU $AC80 ; using the tiles/superfiles buffer to load stuff
screen_buffer: EQU $7800 ; strings/scripts level for screen bitmap buffer
attr_buffer: EQU $BE00 ... |
payloads/x64/src/kernel/find_process_name.asm | kurobeats/MS17-010 | 2 | 82244 | ;
; Windows x64 Kernel Find Process by Name Shellcode
;
; Author: <NAME> <<EMAIL>> (@zerosum0x0)
; Copyright: (c) 2017 RiskSense, Inc.
; License: Apache 2.0
;
; Arguments: r10d = process hash, r15 = nt!, rdx = *PEPROCESS
; Clobbers: RAX, RCX, RDX, R8, R9, R10, R11
;
[BITS 64]
[ORG 0]
find_process_name:
xor ecx, ecx... |
programs/oeis/174/A174989.asm | karttu/loda | 0 | 162589 | ; A174989: Partial sums of A003602.
; 1,2,4,5,8,10,14,15,20,23,29,31,38,42,50,51,60,65,75,78,89,95,107,109,122,129,143,147,162,170,186,187,204,213,231,236,255,265,285,288,309,320,342,348,371,383,407,409,434,447,473,480,507,521,549,553,582,597
mov $1,$0
mov $2,$0
add $2,2
lpb $2,1
add $1,$3
add $3,4
mov $4,4
lp... |
rts/src/common/s-atacco.ads | ScottWLoyd/bare-metal-ada-tools | 7 | 16667 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S... |
COR1.asm | ELASRIYASSINE/DSP-DIGITAL-SIGNAL-PROCESSING-CODES- | 0 | 15118 | <filename>COR1.asm<gh_stars>0
.text
x .int 0,1,2,3,4,5,6,7
adr_x .word x
ldi @adr_x,AR0
ldi @adr_x,AR1
addi 1,AR0
ldi 0,R2
ldi 0,R0
ldi 6,RC
Rpts RC
mpyi *AR0++,*AR1++,R0
||addi R0,R2
addi R0,R2
sti R2,@30h
.end |
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca.log_21829_224.asm | ljhsiun2/medusa | 9 | 80157 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x11587, %r14
clflush (%r14)
nop
and $58583, %r13
mov $0x6162636465666768, %r9
movq %r9, %xmm7
movups %xmm7, (%r14)
nop
nop
add $60388, %rax
lea addresses_A_ht+0... |
sieve.asm | Sprigg-Matthew/sieve | 0 | 89202 | <gh_stars>0
;
; file: sieve
; Author: <NAME>
; Description: Finds all multiples of a given
; prime within a certain range and mark
; them as non-prime.
;
;
%include "asm_io.inc"
%define prime [ebp+8]
%define range [ebp+12]
%define array [ebp+16]
;--------------------------------------------------------
; initialize... |
asm/startup.asm | yoo2001818/rust-pc-emu | 0 | 16684 | <gh_stars>0
bits 16
org 0xffff
; Do long jump to 7c00:0000
; Replace CS to 0x7c00, IP to 0x0000
jmp 0x7c00:0x0000
|
msp430x2/msp430g2553/startup.ads | ekoeppen/MSP430_Generic_Ada_Drivers | 0 | 29399 | <filename>msp430x2/msp430g2553/startup.ads
package Startup is
pragma Preelaborate;
procedure Reset_Handler with Export => True, External_Name => "_start_rom";
end Startup;
|
libsrc/stdio/pc88/generic_console.asm | jpoikela/z88dk | 0 | 103924 | <gh_stars>0
SECTION code_clib
PUBLIC generic_console_cls
PUBLIC generic_console_vpeek
PUBLIC generic_console_printc
PUBLIC generic_console_scrollup
PUBLIC generic_console_set_ink
PUBLIC generic_console_set_paper
PUBLIC generic_... |
libsrc/_DEVELOPMENT/env/esxdos/z80/asm_tmpnam.asm | jpoikela/z88dk | 640 | 18933 | ; char *tmpnam(char *s)
INCLUDE "config_private.inc"
SECTION code_env
PUBLIC asm_tmpnam
EXTERN __ENV_TMPNAM_TEMPLATE
EXTERN asm_env_tmpnam, asm_strcpy
asm_tmpnam:
; Return an unused filename in the /tmp directory
;
; enter : hl = char *s (0 = use internal static memory)
;
; exit : success
;
... |
src/third_party/nasm/rdoff/test/rdfseg.asm | Mr-Sheep/naiveproxy | 2,219 | 1524 | ;; program to test inter-segment production and linkage of RDF objects
;; [1] should produce segment base ref
;; [2] should produce standard relocation
[GLOBAL _main]
[EXTERN _puts: far]
[BITS 16]
_main:
mov ax, seg _message ; 0000 [1]
mov ds, ax ; 0003
mov dx, _message ; 0005 [2]
call far _puts ; 0008 [2... |
unittests/ASM/X87_F64/FLDCW_F64.asm | Seas0/FEX | 0 | 243359 | %ifdef CONFIG
{
"Env": { "FEX_X87REDUCEDPRECISION" : "1" },
"RegData": {
"RAX": "0x3",
"RBX": "0x2"
}
}
%endif
lea rbp, [rel data]
mov rdx, 0xe0000000
mov rcx, 0xe0004000
; save fcw
fnstcw [rdx]
; set rounding to truncate
mov eax, 0
mov ax, [rdx]
or ah, 0xc
mov [rdx+8], ax
fldcw [rdx+8]
fld dword [rbp]... |
汇编语言/第6章/1.asm | jckling/only-python | 1 | 176436 | assume cs:code,ds:data,ss:stack
data segment
dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h
data ends
stack segment
dw 0,0,0,0,0,0,0,0
stack ends
code segment
start: mov ax,stack
mov ss,ax
mov sp,16
mov ax,data
mov ds,ax
push ds:[0]
push ds:[2]
pop ds:[2]
pop ds:[0]
mov ax,4c00h
int 21h
code end... |
programs/oeis/131/A131509.asm | jmorken/loda | 1 | 164044 | ; A131509: a(n) = (n + 1)*(n^2 + 2)*(n^3 + 3)/6.
; 1,4,33,220,1005,3456,9709,23528,50985,101260,187561,328164,547573,877800,1359765,2044816,2996369,4291668,6023665,8303020,11260221,15047824,19842813,25849080,33300025,42461276,53633529,67155508,83407045,102812280,125842981
mov $1,$0
add $0,1
pow $0,2
pow $1,3
add $1,1
... |
source/web/spikedog/api/spikedog-http_sessions.adb | svn2github/matreshka | 24 | 10966 | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming9.ads | best08618/asylo | 7 | 19079 | <reponame>best08618/asylo<gh_stars>1-10
package Renaming9 is
pragma Elaborate_Body;
type Object is tagged null record;
type Pointer is access all Object'Class;
type Derived is new Object with record
I : Integer;
end record;
Ptr : Pointer := new Derived;
Obj : Derived renames Derived (Ptr.all);
... |
src/asm/constants.asm | Threetwosevensixseven/nget | 3 | 9671 | <reponame>Threetwosevensixseven/nget<filename>src/asm/constants.asm<gh_stars>1-10
; constants.asm
; Application
CoreMinVersion equ $3007 ; 3.00.07
DotBank1: equ 30
ResetWait equ 5
DisableScroll equ false
//NGetServer equ "192.168.1.3"
NG... |
FormalAnalyzer/models/apps/AutoHumidityVent.als | Mohannadcse/IoTCOM_BehavioralRuleExtractor | 0 | 1125 | module app_AutoHumidityVent
open IoTBottomUp as base
open cap_runIn
open cap_now
open cap_relativeHumidityMeasurement
open cap_switch
open cap_energyMeter
one sig app_AutoHumidityVent extends IoTApp {
humidity_sensor : one cap_relativeHumidityMeasurement,
fans : set cap_switch,
emeters : some cap_ene... |
ffight/lcs/boss/61.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 170876 | copyright zengfr site:http://github.com/zengfr/romhack
03D450 move.b #$28, ($61,A6)
03D456 move.w #$17, D0 [boss+61]
03D568 jmp $3270.w [boss+61]
03E9CA move.b #$28, ($61,A6)
03E9D0 bsr $3f270 [boss+61]
03F2CE lea ($61e,PC) ; ($3f8ee), A1 [boss+61]
copyright zengfr site:http://github.com/zengfr/... |
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_223.asm | ljhsiun2/medusa | 9 | 166717 | <filename>Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_223.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x16819, %rsi
nop
nop
nop
nop
sub $22005, %rbx
mov $0x6162636465666768, %r11
movq %r1... |
programs/oeis/135/A135561.asm | neoneye/loda | 22 | 92106 | ; A135561: a(n) = 2^A135560(n) - 1.
; 3,7,1,15,1,3,1,31,1,3,1,7,1,3,1,63,1,3,1,7,1,3,1,15,1,3,1,7,1,3,1,127,1,3,1,7,1,3,1,15,1,3,1,7,1,3,1,31,1,3,1,7,1,3,1,15,1,3,1,7,1,3,1,255,1,3,1,7,1,3,1,15,1,3,1,7,1,3,1,31,1,3,1,7,1,3,1,15,1,3,1,7,1,3,1,63,1,3,1,7
add $0,1
mov $1,$0
lpb $1
div $0,$1
bin $0,$1
mov $2,1
lpb... |
pocs/linux/kvm_vma/kernel_code.asm | ashdoeshax/security-research | 1,129 | 97504 | <gh_stars>1000+
BITS 64
; Linux chief-vm 5.8.0-41-generic #46~20.04.1-Ubuntu SMP Mon Jan 18 17:52:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
;ffffffff810d1e10 T commit_creds
;ffffffff810d22a0 T prepare_kernel_cred
;ffffffff8119d740 t __seccomp_filter
push rax
mov rax, [rsp + 8] ; Grab return addr
; Offset to __... |
alloy4fun_models/trashltl/models/18/PtuRC6uK7KWcvo3EH.als | Kaixi26/org.alloytools.alloy | 0 | 4323 | <reponame>Kaixi26/org.alloytools.alloy
open main
pred idPtuRC6uK7KWcvo3EH_prop19 {
all f : Protected | f in Protected until f in Trash
}
pred __repair { idPtuRC6uK7KWcvo3EH_prop19 }
check __repair { idPtuRC6uK7KWcvo3EH_prop19 <=> prop19o } |
tests/relocate/relocation_temporary_labels_consistency.asm | fengjixuchui/sjasmplus | 220 | 247635 | ORG $1000
RELOCATE_START
dw relocate_count
dw relocate_size
; these ahead of RELOCATE_TABLE will refresh the table content to keep it consistent
1:
jp 1B
jp 1B
jp 1F
jp 1F
1:
; emit intetionally table ahead of labels "3B"/"3F" to break table consistency
... |
src/main.adb | kqr/qweyboard | 33 | 7239 | <filename>src/main.adb
with Unicode_Strings; use Unicode_Strings;
with Ada.Command_Line;
with Ada.Task_Termination;
with Ada.Task_Identification;
with Configuration;
with Logging;
with Qweyboard.Emulation;
with Input_Backend;
with Output_Backend;
procedure Main is
use Logging;
Settings : Configuration.Settings... |
test/asset/agda-stdlib-1.0/Data/List/Relation/Binary/Sublist/Setoid.agda | omega12345/agda-mode | 0 | 13458 | ------------------------------------------------------------------------
-- The Agda standard library
--
-- An inductive definition of the sublist relation with respect to a
-- setoid. This is a generalisation of what is commonly known as Order
-- Preserving Embeddings (OPE).
-------------------------------------------... |
idrougge-applescript/day_01_2.applescript | tomasskare/advent_of_code_2019 | 9 | 267 | set the_file to choose file
set sum to 0
repeat with mass in paragraphs of (read the_file)
set sum to sum + (calculate_fuel for mass)
end repeat
return sum
on calculate_fuel for mass
set fuel to mass div 3 - 2
if fuel is greater than 0 then
return fuel + (calculate_fuel for fuel)
else
return 0
end if
end calc... |
src/Sessions/Semantics/Expr.agda | laMudri/linear.agda | 34 | 10089 | module Sessions.Semantics.Expr where
open import Prelude
open import Data.Fin
open import Relation.Unary.PredicateTransformer hiding (_⊔_)
open import Relation.Ternary.Separation.Morphisms
open import Relation.Ternary.Separation.Monad
open import Relation.Ternary.Separation.Monad.Reader
open import Sessions.Syntax.T... |
example_relationships/src/one_to_many_associative.adb | cortlandstarrett/mcada | 0 | 6604 | -- *************************************************************************************
--
-- The recipient is warned that this code should be handled in accordance
-- with the HM Government Security Classification indicated throughout.
--
-- This code and its contents shall not be used for other than UK Governme... |
awa/awaunit/awa-tests-helpers-users.ads | fuzzysloth/ada-awa | 0 | 16394 | <reponame>fuzzysloth/ada-awa
-----------------------------------------------------------------------
-- users-tests-helpers -- Helpers for user creation
-- Copyright (C) 2011, 2012, 2013, 2014, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you m... |
libsrc/stdio/ansi/nascom/f_ansi_attr.asm | meesokim/z88dk | 0 | 17768 | ;
; ANSI Video handling for the NASCOM1/2
; By <NAME>
;
; Text Attributes
; m - Set Graphic Rendition
;
; $Id: f_ansi_attr.asm,v 1.3 2015/01/19 01:33:18 pauloscustodio Exp $
;
PUBLIC ansi_attr
.ansi_attr
ret |
assembly/fibof0.asm | mohsend/Magnificent-University-projects | 0 | 166082 | <reponame>mohsend/Magnificent-University-projects
; writes fibonacci series to data segment. starting from 0
;------------
; stack segment :
STSEG SEGMENT
DB 64 DUP (?)
STSEG ENDS
;------------
; data segment :
DTSEG SEGMENT
; place program data here
DW 20 DUP (0000H)
DTSEG ENDS
;------------
; code segment :
CDS... |
oeis/037/A037555.asm | neoneye/loda-programs | 11 | 166219 | <gh_stars>10-100
; A037555: Base 6 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,1.
; Submitted by <NAME>(s4)
; 2,13,79,476,2857,17143,102860,617161,3702967,22217804,133306825,799840951,4799045708,28794274249,172765645495,1036593872972,6219563237833,37317379426999,223904276561... |
tools/scitools/conf/understand/ada/ada12/s-imgenu.ads | brucegua/moocos | 1 | 28457 | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.