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 |
|---|---|---|---|---|
test/error_missing_text_section.asm | yurirocha15/sbTradutor | 0 | 85196 | SECTION DATA
; Erro por não ter declarado SECTION TEXT
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/ice_type.adb | best08618/asylo | 7 | 3169 | <reponame>best08618/asylo
-- { dg-do compile }
with ICE_Types; use ICE_Types;
procedure ICE_Type is
type Local_Float_T is new Float_View_T;
LF : Local_Float_T;
begin
Initialize (Float_View_T (LF));
end;
|
Week3-Task-Code/1.asm | mdabdullahibnaharun/Assembly-Language | 0 | 102169 | include 'emu8086.inc'
.model small
.stack 100h
.data
.code
main proc
;EQN- 3a+b-2c
;a=2
;b=3
;c=1
;output = 7
call scan_num
mov bx,cx
add bx,cx ;2a
add bx,cx ;3a
;\n
MOV AH, 2 ; carriage retu... |
With.agda | mathijsb/generic-in-agda | 6 | 13290 | module With where
open import Reflection
open import Function using (_∘_ ; _$_ ; _∋_ ; id ; const)
open import Data.List
open import Data.Nat hiding (_+_)
open import Relation.Binary using (Setoid ; Decidable)
open import Relation.Nullary
open import Relation.Binary.PropositionalEquality hiding ( [_] ; subst )
open i... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1513.asm | ljhsiun2/medusa | 9 | 88416 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x8859, %rbx
nop
nop
nop
nop
nop
sub $50878, %rax
vmovups (%rbx), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %r14
nop
nop
add $62... |
src/Pf/Ip.agda | mietek/formal-logic | 26 | 4600 | -- Intuitionistic propositional logic, PHOAS approach, final encoding
module Pf.Ip where
-- Types
infixl 2 _&&_
infixl 1 _||_
infixr 0 _=>_
data Ty : Set where
UNIT : Ty
_=>_ : Ty -> Ty -> Ty
_&&_ : Ty -> Ty -> Ty
_||_ : Ty -> Ty -> Ty
FALSE : Ty
infixr 0 _<=>_
_<=>_ : Ty -> T... |
src/items.adb | thindil/steamsky | 80 | 8387 | -- Copyright 2016-2021 <NAME>
--
-- This file is part of Steam Sky.
--
-- Steam Sky is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) a... |
alloy4fun_models/trainstlt/models/6/iyeFBBPDHr2zATriH.als | Kaixi26/org.alloytools.alloy | 0 | 4774 | open main
pred idiyeFBBPDHr2zATriH_prop7 {
eventually all t : Train | t.pos = Exit
}
pred __repair { idiyeFBBPDHr2zATriH_prop7 }
check __repair { idiyeFBBPDHr2zATriH_prop7 <=> prop7o } |
alloy4fun_models/trashltl/models/11/jwDPw44gCoLZjsYpo.als | Kaixi26/org.alloytools.alloy | 0 | 1341 | <filename>alloy4fun_models/trashltl/models/11/jwDPw44gCoLZjsYpo.als
open main
pred idjwDPw44gCoLZjsYpo_prop12 {
always all f:File | eventually f in Trash && f in Trash until f not in Trash
}
pred __repair { idjwDPw44gCoLZjsYpo_prop12 }
check __repair { idjwDPw44gCoLZjsYpo_prop12 <=> prop12o } |
oeis/220/A220083.asm | neoneye/loda-programs | 11 | 171705 | <filename>oeis/220/A220083.asm
; A220083: a(n) = (15*n^2 + 9*n + 2)/2.
; 1,13,40,82,139,211,298,400,517,649,796,958,1135,1327,1534,1756,1993,2245,2512,2794,3091,3403,3730,4072,4429,4801,5188,5590,6007,6439,6886,7348,7825,8317,8824,9346,9883,10435,11002,11584,12181,12793,13420,14062,14719,15391,16078,16780,17497,18229,1... |
src/static/antlr4/grammars/CommentB1.g4 | jlenoble/ecmascript-parser | 0 | 7606 | /* Source: ECMAScript® 2018 Language Specification - Annex A-1 */
lexer grammar CommentB1;
// Comment::
// MultiLineComment
// SingleLineComment
// SingleLineHTMLOpenComment
// SingleLineHTMLCloseComment
// SingleLineDelimitedComment
// MultiLineComment::
// /* FirstCommentLine[opt] LineTerminator ... |
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48_notsx.log_21829_1460.asm | ljhsiun2/medusa | 9 | 173734 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x19cc4, %r13
nop
nop
nop
xor %rcx, %rcx
mov (%r13), %edx
nop
and $36900, %r11
lea addresses_UC_ht+0x12452, %rsi
lea addresses_WT_ht+0x284, %rdi
nop
n... |
main.ads | vfinotti/cortex-m0-blinky-ada | 0 | 29867 | -------------------------------------------------------------------------------
-- Title : Blinky example status file
--
-- File : main.ads
-- Author : <NAME>
-- Created on : 2019-04-25 14:53:55
-- Description :
--
--
--
---------------------------------------------------------------------... |
notes/strict-evaluation/StrictApplication.agda | asr/fotc | 11 | 6798 | <gh_stars>10-100
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# OPTIONS --without-K #-}
module StrictApplication where
open import Data.Nat
{-# NON_TERMINATING #-}
loop : ℕ
loop = loop
foo : ℕ
foo = (λ _ → 0) loop
|
08/FunctionCalls/FibonacciElement/FibonacciElement.asm | gabrieljablonski/ESC-College-Course-Work | 0 | 179521 | <reponame>gabrieljablonski/ESC-College-Course-Work
// Bootstrap
@256
D=A
@SP
M=D
@300
D=A
@LCL
M=D
@400
D=A
@ARG
M=D
@6
D=A
@ARG
A=M
M=D
@3000
D=A
@ARG
A=M+1
M=D
@Sys.init
0;JMP
// function Main.fibonacci 0
(Main.fibonacci)
@Main.fibonacci.locals
M=0
(Main.fibonacci.locals_loop)
@0
D=A
@Mai... |
oeis/021/A021629.asm | neoneye/loda-programs | 11 | 178979 | <reponame>neoneye/loda-programs<gh_stars>10-100
; A021629: Expansion of 1/((1-x)(1-3x)(1-7x)(1-12x)).
; Submitted by <NAME>
; 1,23,366,5062,65555,820701,10087792,122732444,1484551749,17896987459,215340503378,2588122883346,31085733296983,373226612833097,4480104054056724,53770941570620968,645319149365603657,7744304746208... |
install/instclas.asm | DigitalMars/optlink | 28 | 101161 | <reponame>DigitalMars/optlink
TITLE INSTCLASS - Copyright (C) 1994 SLR Systems
INCLUDE MACROS
INCLUDE SEGMENTS
INCLUDE CLASSES
PUBLIC INSTALL_CLASS,INSTALL_CLASS_SYMBOL,SEARCH_CLASS_SYMBOL
.DATA
EXTERNDEF SYMBOL_TEXT:BYTE
EXTERNDEF CLASS_HASH_TABLE_PTR:DWORD,SYMBOL_LENGTH:DWORD,SYMBOL_HASH:DWORD,C... |
programs/oeis/323/A323351.asm | karttu/loda | 1 | 898 | ; A323351: Number of ways to fill a (not necessarily square) matrix with n zeros and ones.
; 1,2,8,16,48,64,256,256,1024,1536,4096,4096,24576,16384,65536,131072,327680,262144,1572864,1048576,6291456,8388608,16777216,16777216,134217728,100663296,268435456,536870912,1610612736,1073741824,8589934592,4294967296,25769803776... |
Examples/hello.asm | ovcharik/pdp11-asm | 2 | 21662 | # acd address: 0177566
# acd check address: 0177564
# stack start: 0200
# push: MOVW <data>, -(R6)
# pop: MOVW (R6)+, <data>
.SECTION .DATA
HELLO_STR: .STRING "HELLO, WORLD!"
.SECTION .CODE
.GLOBAL MAIN
MAIN:
# init stack
MOVW 0200, R6
MOVW HELLO_STR, -(R6)
JSR R5, (PUTS)... |
Data/Binary/FromZeroed.agda | oisdk/agda-playground | 6 | 13680 | {-# OPTIONS --cubical --safe #-}
module Data.Binary.FromZeroed where
open import Data.Binary.Definition
open import Prelude
inc-z : 𝔹 → 𝔹
inc-z 0ᵇ = 2ᵇ 0ᵇ
inc-z (1ᵇ xs) = 2ᵇ xs
inc-z (2ᵇ xs) = 1ᵇ inc-z xs
toZ : 𝔹 → 𝔹
toZ 0ᵇ = 0ᵇ
toZ (1ᵇ xs) = 2ᵇ toZ xs
toZ (2ᵇ xs) = 1ᵇ inc-z (toZ xs)
ones : ℕ → 𝔹 → 𝔹
ones ze... |
oeis/142/A142767.asm | neoneye/loda-programs | 11 | 165187 | ; A142767: Primes congruent to 40 mod 59.
; Submitted by <NAME>
; 571,1279,1987,2341,2459,3049,3167,4111,4229,4583,4937,5527,5881,6353,7297,8123,8713,8831,9067,9421,9539,10247,10601,10837,12253,13669,14731,15439,16619,17209,17327,17681,18743,18979,19333,19687,20749,21221,21929,22283,22637,23227,23581,24407,25469,26177,... |
programs/oeis/338/A338200.asm | karttu/loda | 0 | 753 | ; A338200: The number of similarity classes of pointed reflection spaces of residue two in an n-dimensional vector space over GF(2).
; 0,0,1,2,4,6,9,12,17,21,27,33,41,48,58,67,79,90,104,117,134,149,168,186,208,228,253,276,304,330,361,390,425,457,495,531,573,612,658,701,751,798,852,903,962,1017,1080,1140,1208,1272,1345,... |
FreeReader.agda | mb64/cubical-free-monads | 1 | 1186 | <reponame>mb64/cubical-free-monads
{-# OPTIONS --cubical --safe #-}
module FreeReader where
open import Cubical.Core.Everything
open import Cubical.Foundations.Prelude
open import Function.Base using (id; _$_)
open import Class
open Functor
variable
A B C : Set
-- The Reader monad, as a free monad
data FreeReade... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c46024a.ada | best08618/asylo | 7 | 17425 | -- C46024A.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... |
test/Succeed/Issue473b.agda | redfish64/autonomic-agda | 3 | 8837 | -- <NAME>, 2015-06-03
-- Issue 473 was not fixed for records without constructor
record _×_ A B : Set where
constructor _,_
field
fst : A
snd : B
open _×_
data Nat : Set where
zero : Nat
suc : Nat → Nat
data Zero : Nat → Set where
zero : Zero zero
data Zero₂ : Nat → Nat → Set where
zero : Zero₂... |
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-tty.adb | djamal2727/Main-Bearing-Analytical-Model | 0 | 22093 | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
8088/xtserver/grabdos/grabdos.asm | reenigne/reenigne | 92 | 80319 | <filename>8088/xtserver/grabdos/grabdos.asm
%include "../../defaults_com.asm"
start:
initSerial
mov ax,0
mov ds,ax
mov si,ax
mov cx,ax
mov dl,0x10
cld
mov al,4
call printCharNoScreen
mov al,cl
call printCharEscaped
mov al,ch
call printCharEscaped
mov al,dl
call printCharEscaped
.loopTop... |
src/jason-tickets-modules.ads | stcarrez/jason | 2 | 13910 | <gh_stars>1-10
-----------------------------------------------------------------------
-- jason-tickets-modules -- Module tickets
-- Copyright (C) 2016 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except i... |
src/natools-web-comments.ads | faelys/natools-web | 1 | 11716 | ------------------------------------------------------------------------------
-- Copyright (c) 2015-2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
firmware/coreboot/src/console/hw-debug_sink.adb | fabiojna02/OpenCellular | 1 | 28378 | --
-- This file is part of the coreboot project.
--
-- Copyright (C) 2015 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; version 2 of the License.
--
-- This ... |
engine/interior/itfdump.asm | ClayHanson/B4v21-Public-Repo | 1 | 81150 | ;-----------------------------------------------------------------------------
; Torque Game Engine
; Copyright (C) <EMAIL>, Inc.
;-----------------------------------------------------------------------------
segment .data
storeebp dd 0
srcPoints dd 0
srcColors dd 0
srcIndices dd 0
numPoints dd 0
two55 dd 0x43... |
misc/adc_sbb.asm | a1393323447/x86-Assambely | 3 | 7870 | <reponame>a1393323447/x86-Assambely<filename>misc/adc_sbb.asm<gh_stars>1-10
; adc -> add with carry
; = 被加数 + 加数 + CF
; sbb -> sub with carry
; = 被减数 - 减数 - CF
; 将两个32的数字相加
; 一个32位数字 -> 两个16位寄存器储存
; eg: 0x 0001 f000 + 0x 0010 1000
; [ BX ] [ AX ] [ DX ] [ CX ]
mov bx, 0x0001
mov ax, 0xf000
... |
inc/print_on_screen.asm | moonorongo/looptap64 | 0 | 91179 | updateScore:
{
// backup registers
pha
txa
pha
tya
pha
lda score // get score
//lda start_angle // for testing only
ldy #$2f
ldx #$3a
sec
l100:
iny
sbc #100
bcs l100
l10:
dex
adc #10
bmi l10 ... |
programs/oeis/010/A010977.asm | karttu/loda | 1 | 165074 | <reponame>karttu/loda<filename>programs/oeis/010/A010977.asm
; A010977: a(n) = binomial coefficient C(n,24).
; 1,25,325,2925,20475,118755,593775,2629575,10518300,38567100,131128140,417225900,1251677700,3562467300,9669554100,25140840660,62852101650,151584480450,353697121050,800472431850,1761039350070,3773655750150,78903... |
programs/oeis/167/A167185.asm | neoneye/loda | 22 | 174711 | ; A167185: Largest prime power <= n that is not prime.
; 1,1,1,4,4,4,4,8,9,9,9,9,9,9,9,16,16,16,16,16,16,16,16,16,25,25,27,27,27,27,27,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,64,64,64,64,64,64,64,64,64,64,64
lpb $0
mov $2,$0
seq $2,268340 ; Characteristic fun... |
src/siphash24.ads | jhumphry/SPARK_SipHash | 5 | 26046 | -- SipHash24
-- An instantiation of SipHash with recommended parameters.
-- The key must be set with SetKey before use, or there will be no protection
-- from hash flooding attacks.
-- Copyright (c) 2015, <NAME> - see LICENSE file for details
pragma Spark_Mode;
with SipHash;
pragma Elaborate_All(SipHash);
package ... |
programs/oeis/256/A256535.asm | neoneye/loda | 22 | 83729 | ; A256535: The largest number of T-tetrominoes that fit within an n X n square.
; 0,0,1,4,5,8,11,16,19,24,29,36,41,48,55,64,71,80,89,100,109,120,131,144,155,168,181,196,209,224,239,256,271,288,305,324,341,360,379,400,419,440,461,484,505,528,551,576,599,624,649,676,701,728,755,784,811,840,869,900,929,960,991,1024,1055,1... |
programs/oeis/158/A158218.asm | karttu/loda | 1 | 171660 | <filename>programs/oeis/158/A158218.asm<gh_stars>1-10
; A158218: 169n^2 - 2n.
; 167,672,1515,2696,4215,6072,8267,10800,13671,16880,20427,24312,28535,33096,37995,43232,48807,54720,60971,67560,74487,81752,89355,97296,105575,114192,123147,132440,142071,152040,162347,172992,183975,195296,206955,218952,231287,243960,256971,... |
oeis/021/A021434.asm | neoneye/loda-programs | 11 | 20361 | <gh_stars>10-100
; A021434: Expansion of 1/((1-x)(1-3x)(1-5x)(1-8x)).
; Submitted by <NAME>(s3)
; 1,17,194,1882,16827,143835,1197868,9822164,79783253,644325253,5184986742,41632083246,333818409679,2674358387471,21413929824416,171406773741928,1371730930238505,10976231337133689,87821770754328490,702633768064315010,5621368... |
Mid-Term/Solution/4.asm | NasirSunny50/CSE331L-Section-1-Fall20-NSU | 0 | 8887 | <gh_stars>0
.MODEL SMALL
.STACK 100H
.data
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
MOV CX, 1
MOV AH, 2
MOV DL, 42
@LOOP:
INT 21H
INC DL
DEC CX
JNZ @LOOP
MOV AH, 4CH
INT 21H
MAIN ENDP
END MAIN
|
Task/MD5/Ada/md5.ada | LaudateCorpus1/RosettaCodeData | 1 | 15771 | with Ada.Text_IO; use Ada.Text_IO;
with GNAT.MD5;
procedure MD5_Digest is
begin
Put(GNAT.MD5.Digest("Foo bar baz"));
end MD5_Digest;
|
examples/dll_client.adb | ytomino/drake | 33 | 27662 | with Ada.IO_Exceptions;
with Interfaces.C.Strings;
with System.Program.Dynamic_Linking;
with System.Storage_Elements.Formatting;
procedure dll_client is
begin
Ada.Debug.Put (System.Program.Full_Name);
Ada.Debug.Put (System.Storage_Elements.Formatting.Image (System.Program.Load_Address));
use_zlib : declare
zlib : ... |
programs/oeis/246/A246297.asm | jmorken/loda | 1 | 178301 | <gh_stars>1-10
; A246297: Numbers k such that sin(k) > sin(k+1) < sin(k+2).
; 4,10,16,23,29,35,41,48,54,60,67,73,79,85,92,98,104,111,117,123,129,136,142,148,155,161,167,173,180,186,192,198,205,211,217,224,230,236,242,249,255,261,268,274,280,286,293,299,305,312,318,324,330,337,343,349,356,362,368,374,381,387,393,400,406... |
libsrc/sprites/software/sp1/spectrum/collision/SP1IsPt8InRect.asm | dex4er/deb-z88dk | 1 | 245522 | <gh_stars>1-10
; SP1IsPt8InRect
; 05.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
; uses rectangles library
XLIB SP1IsPt8InRect
LIB RIsPtInRect8
; Determines if a pixel coordinate lies within an 8-bit
; rectangle described using character coordinates. The
; pixel coordinate is divided by 8 to change ... |
alloy4fun_models/trashltl/models/5/rmF6ZHHvcvMitEw99.als | Kaixi26/org.alloytools.alloy | 0 | 862 | <gh_stars>0
open main
pred idrmF6ZHHvcvMitEw99_prop6 {
all f : File | always f in Trash implies f in Trash'
}
pred __repair { idrmF6ZHHvcvMitEw99_prop6 }
check __repair { idrmF6ZHHvcvMitEw99_prop6 <=> prop6o } |
parser/src/main/antlr/com/neptune/jagintellij/parser/ClientScriptLexer.g4 | Rune-Status/jagintellig | 3 | 3344 | lexer grammar ClientScriptLexer;
@members {
private int stringDepth = 0;
boolean inString() {
return stringDepth > 0;
}
private java.util.Set<String> types = new java.util.HashSet<String>() {{
add("int");
add("string");
}};
private java.util.Set<String> defTypes = new java.util.HashSet<String>() {{
a... |
day01/tests/day-test.adb | jwarwick/aoc_2020 | 3 | 12435 | <reponame>jwarwick/aoc_2020
with AUnit.Assertions; use AUnit.Assertions;
package body Day.Test is
procedure Test_Part1 (T : in out AUnit.Test_Cases.Test_Case'Class) is
pragma Unreferenced (T);
expenses : constant Expense_Vector.Vector := load_file("test1.txt");
product : constant Expense := match... |
bin/JWASM/Samples/Win32Tls.asm | Abd-Beltaji/ASMEMU | 3 | 15655 |
;--- sample demonstrates how to
;--- + define static TLS variables ( "__declspec(thread)" in MSC) in assembly.
;--- + access static thread variables.
;--- + use OPTION CODEVIEW to make debugger access the items correctly.
;--- from an assembly point of view, there is not much gained with
;--- static TLS. Unlike in ... |
oeis/042/A042747.asm | neoneye/loda-programs | 11 | 162053 | ; A042747: Denominators of continued fraction convergents to sqrt(904).
; Submitted by <NAME>(s1.)
; 1,15,901,13530,812701,12204045,733055401,11008035060,661215159001,9929235420075,596415340363501,8956159340872590,537965975792718901,8078445796231656105,485244713749692085201,7286749152041612934120,4376901938362464681324... |
programs/oeis/314/A314205.asm | jmorken/loda | 1 | 244369 | <reponame>jmorken/loda
; A314205: Coordination sequence Gal.5.133.5 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,5,11,17,22,26,31,37,43,48,53,59,65,70,74,79,85,91,96,101,107,113,118,122,127,133,139,144,149,155,161,166,170,175,18... |
Task/History-variables/Ada/history-variables-2.ada | LaudateCorpus1/RosettaCodeData | 1 | 6476 | package body History_Variables is
-- set and get
procedure Set(V: in out Variable; Item: Item_Type) is
begin
V.History.Prepend(Item);
end Set;
function Get(V: Variable) return Item_Type is
begin
return V.History.First_Element;
end Get;
-- number of items in history (including the ... |
programs/oeis/016/A016195.asm | neoneye/loda | 22 | 177272 | ; A016195: a(n) = 11^n - 10^n.
; 0,1,21,331,4641,61051,771561,9487171,114358881,1357947691,15937424601,185311670611,2138428376721,24522712143931,279749833583241,3177248169415651,35949729863572161,405447028499293771
mov $1,11
pow $1,$0
mov $2,10
pow $2,$0
sub $1,$2
mov $0,$1
|
extern/game_support/stm32f4/src/stm32f4-lcd.adb | AdaCore/training_material | 15 | 3609 | <filename>extern/game_support/stm32f4/src/stm32f4-lcd.adb<gh_stars>10-100
with Ada.Real_Time; use Ada.Real_Time;
with STM32F4.SDRAM; use STM32F4.SDRAM;
package body STM32F4.LCD is
function As_Word is new Ada.Unchecked_Conversion
(Source => System.Address, Target => Word);
------------------... |
src/arch/x86/mach-i386/atomic.asm | NightfallDM/xbook2 | 0 | 15018 | <gh_stars>0
[section .text]
[bits 32]
;lock 锁定的是内存地址,所以操作对象值必须时内存才行
; void __atomic_add(int *a, int b);
global __atomic_add
__atomic_add:
mov eax, [esp + 4] ; a
mov ebx, [esp + 8] ; b
; 通过lock前缀,让运算时原子运算
lock add [eax], ebx ; *a += b
ret
; void __atomic_sub(int *a, int b);
global __atomic_sub
__atomic_sub:
mov e... |
src/test/asm/pe64_console.asm | dykstrom/fasm-ant | 0 | 169374 | format pe64 console
entry main
include 'win64a.inc'
section '.idata' import data readable
library msvcrt,'msvcrt.dll'
import msvcrt,\
exit,'exit',\
printf,'printf'
section '.data' data readable writeable
msg db "Hello, world!",10,0
section '.code' code readable executable
main:
mov rcx, ms... |
programs/oeis/277/A277369.asm | jmorken/loda | 1 | 2849 | ; A277369: a(0) = 5, a(1) = 8; for n>1, a(n) = 2*a(n-1) + a(n-2).
; 5,8,21,50,121,292,705,1702,4109,9920,23949,57818,139585,336988,813561,1964110,4741781,11447672,27637125,66721922,161080969,388883860,938848689,2266581238,5472011165,13210603568,31893218301,76997040170,185887298641,448771637452,1083430573545,26156327845... |
programs/oeis/337/A337313.asm | jmorken/loda | 1 | 7957 | <gh_stars>1-10
; A337313: a(n) is the number of n-digit positive integers with exactly three distinct base 10 digits.
; 0,0,648,3888,16200,58320,195048,625968,1960200,6045840,18468648,56068848,169533000,511252560,1539065448,4627812528,13904670600,41756478480,125354369448,376232977008,1129038669000,3387795483600,1016474... |
programs/oeis/185/A185277.asm | neoneye/loda | 22 | 19597 | ; A185277: a(n) = n^9 + 9^n.
; 1,10,593,20412,268705,2012174,10609137,45136576,177264449,774840978,4486784401,33739007300,287589316833,2552470327702,22897453501745,205929575454024,1853088908328577,16677300287543066,150094833656289489,1350852040360689868,12157665971056928801,109418989925792405790,984770903390880450673,8... |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/dcallee1.asm | meesokim/z88dk | 0 | 166065 | <reponame>meesokim/z88dk
SECTION code_fp_math48
PUBLIC dcallee1
EXTERN cm48_sdcciyp_dcallee1
defc dcallee1 = cm48_sdcciyp_dcallee1
|
src/tom/library/sl/ada/nostrategy.ads | rewriting/tom | 36 | 14820 | with ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage;
use ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage;
package NoStrategy is
ARG : constant Integer := 0;
type No is new AbstractStrategyCombinator and Object with null record;
------------... |
source/RASCAL-ToolboxWindow.adb | bracke/Meaning | 0 | 11586 | --------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sccz80/fma_callee.asm | meesokim/z88dk | 0 | 535 | <gh_stars>0
SECTION code_fp_math48
PUBLIC fma_callee
EXTERN cm48_sccz80_fma_callee
defc fma_callee = cm48_sccz80_fma_callee
|
programs/test.asm | bogas04/asm8085 | 1 | 80545 | <reponame>bogas04/asm8085
# ORG 2000
JMP 4000
# ORG 4000
MOV C,D
|
examples/bubblesort.asm | dalehumby/d8 | 0 | 86518 | ; Implementation of bubble sort (Descending)
; https://en.wikipedia.org/wiki/Bubble_sort
.define SPPS 0x0002 ; Stack pointer page select
.define TOPSTACK 0x0F
.reset Init
.origin TOPSTACK+1
.array mylist { 5, 1, 4, 2, 8 }
Init:
CLR PAGE
ST PAGE, SPPS ... |
src/IO-monad.agda | nad/equality | 3 | 11889 | ------------------------------------------------------------------------
-- IO
------------------------------------------------------------------------
{-# OPTIONS --without-K #-}
module IO-monad where
open import Monad.Raw
open import Prelude
open import String
-----------------------------------------------------... |
test/interaction/Issue1006.agda | shlevy/agda | 1,989 | 3933 |
record Σ (A : Set) (B : A → Set) : Set where
constructor _,_
field
proj₁ : A
proj₂ : B proj₁
data ⊤ : Set where tt : ⊤
id : ⊤ → ⊤
id tt = tt
data Foo : ⊤ → Set where
foo : {x : ⊤} → Foo (id x)
test : {x : Σ ⊤ Foo} → Set
test {x₁ , x₂} = {!x₂!}
|
vendor/stdlib/src/Algebra/FunctionProperties.agda | isabella232/Lemmachine | 56 | 4691 | <filename>vendor/stdlib/src/Algebra/FunctionProperties.agda
------------------------------------------------------------------------
-- Properties of functions, such as associativity and commutativity
------------------------------------------------------------------------
-- These properties can (for instance) be use... |
Task/Remove-duplicate-elements/Ada/remove-duplicate-elements-3.ada | djgoku/RosettaCodeData | 0 | 4566 | <reponame>djgoku/RosettaCodeData
w←1 2 3 1 2 3 4 1
((⍳⍨w)=⍳⍴w)/w
1 2 3 4
|
Applescript/Next_Turn.applescript | dustindmiller/QTableTop | 1 | 3849 | on getPositionOfItemInList(theItem, theList)
repeat with a from 1 to count of theList
set lastItem to item -1 of theList
if item a of theList is theItem then return a
if item -1 of theList is theItem then return false
end repeat
return 0
end getPositionOfItemInList
tell application id "com.figure53.QLab.4" t... |
programs/oeis/081/A081594.asm | neoneye/loda | 22 | 92082 | <reponame>neoneye/loda
; A081594: Let n = 10x + y where 0 <= y <= 9, x >= 0. Then a(n) = 2x+y.
; 0,1,2,3,4,5,6,7,8,9,2,3,4,5,6,7,8,9,10,11,4,5,6,7,8,9,10,11,12,13,6,7,8,9,10,11,12,13,14,15,8,9,10,11,12,13,14,15,16,17,10,11,12,13,14,15,16,17,18,19,12,13,14,15,16,17,18,19,20,21,14,15,16,17,18,19,20,21,22,23,16,17,18,19,2... |
gfx/pokemon/shedinja/anim_idle.asm | Ebernacher90/pokecrystal-allworld | 0 | 165159 | frame 1, 14
frame 2, 10
endanim
|
programs/oeis/117/A117905.asm | karttu/loda | 0 | 167703 | <gh_stars>0
; A117905: Expansion of (1+2x+2x^2)/((1-x^3)(1+x-x^3-x^4)).
; 1,1,1,1,3,1,2,4,2,2,6,2,3,7,3,3,9,3,4,10,4,4,12,4,5,13,5,5,15,5,6,16,6,6,18,6,7,19,7,7,21,7,8,22,8,8,24,8,9,25,9,9,27,9,10,28,10,10,30,10,11,31,11,11,33,11,12,34,12,12,36
mov $1,3
mov $2,$0
mov $3,$0
sub $3,1
lpb $2,1
gcd $1,$3
add $4,$2
l... |
base/mvdm/wow16/mmsystem/bwinexec.asm | npocmaka/Windows-Server-2003 | 17 | 89529 | PAGE 58,132
;******************************************************************************
TITLE bwinexec.asm - WinExec with binary command line
;******************************************************************************
;
; Copyright (C) Microsoft Corporation 1985-1990. All rights reserved.
;
; ... |
packager/third_party/boringssl/win-x86_64/crypto/cipher_extra/aes128gcmsiv-x86_64.asm | ivanvgdev/shaka-packager | 2,151 | 240560 | default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .data data align=8
ALIGN 16
one:
DQ 1,0
two:
DQ 2,0
three:
DQ 3,0
four:
DQ 4,0
five:
DQ 5,0
six:
DQ 6,0
seven:
DQ 7,0
eight:
DQ 8,0
OR_MASK:
DD 0x00000000,0x00000000,0x00000000,0x80000000
poly:
DQ 0x1,0xc200000000000000
mask:
DD 0x0c0f0e0... |
alloy4fun_models/trashltl/models/10/a5FD4nsczCrzBQiSx.als | Kaixi26/org.alloytools.alloy | 0 | 4438 | open main
pred ida5FD4nsczCrzBQiSx_prop11 {
all a : File - (File & Protected) | (a not in Protected) implies after (a in Protected)
}
pred __repair { ida5FD4nsczCrzBQiSx_prop11 }
check __repair { ida5FD4nsczCrzBQiSx_prop11 <=> prop11o } |
tests/combat-test_data-tests-guns_container-test_data.adb | thindil/steamsky | 80 | 10621 | <gh_stars>10-100
-- This package is intended to set up and tear down the test environment.
-- Once created by GNATtest, this package will never be overwritten
-- automatically. Contents of this package can be modified in any way
-- except for sections surrounded by a 'read only' marker.
package body Combat.Test_D... |
programs/oeis/055/A055808.asm | neoneye/loda | 22 | 177742 | ; A055808: a(n) and floor(a(n)/4) are both squares; i.e., squares that remain squares when written in base 4 and last digit is removed.
; 0,1,4,16,36,64,100,144,196,256,324,400,484,576,676,784,900,1024,1156,1296,1444,1600,1764,1936,2116,2304,2500,2704,2916,3136,3364,3600,3844,4096,4356,4624,4900,5184,5476,5776,6084,640... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1128.asm | ljhsiun2/medusa | 9 | 104840 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x6f85, %rsi
lea addresses_D_ht+0x554d, %rdi
clflush (%rsi)
nop
nop
nop
nop
dec %rbx
mov $45, %rcx
rep movsw
nop
xor %rbp, %rbp
lea addresses_D_ht+0x139cd, %rsi
lea addresses_D... |
oeis/315/A315318.asm | neoneye/loda-programs | 11 | 246298 | <gh_stars>10-100
; A315318: Coordination sequence Gal.6.622.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by <NAME>
; 1,6,10,16,21,26,31,36,41,46,52,56,62,68,72,78,83,88,93,98,103,108,114,118,124,130,134,140,145,150,155... |
oeis/061/A061041.asm | neoneye/loda-programs | 11 | 29983 | ; A061041: Numerator of 1/16 - 1/n^2.
; 0,9,5,33,3,65,21,105,1,153,45,209,15,273,77,345,3,425,117,513,35,609,165,713,3,825,221,945,63,1073,285,1209,5,1353,357,1505,99,1665,437,1833,15,2009,525,2193,143,2385,621,2585,21,2793,725,3009,195,3233,837,3465,14,3705,957,3953,255,4209,1085,4473,18,4745,1221,5025,323,5313,1365,5... |
examples/F38x/ADCtemp/F38x_ADC_temp.asm | FSXAC/ELEC291P2 | 0 | 164611 | <reponame>FSXAC/ELEC291P2<filename>examples/F38x/ADCtemp/F38x_ADC_temp.asm
;--------------------------------------------------------
; File Created by C51
; Version 1.0.0 #1069 (Apr 23 2015) (MSVC)
; This file was generated Sun Feb 26 16:15:45 2017
;--------------------------------------------------------
$name F38x_AD... |
bug-reports/array_len/src/constants.adb | TUM-EI-RCS/StratoX | 12 | 21201 | <filename>bug-reports/array_len/src/constants.adb<gh_stars>10-100
package body constants with SPARK_Mode is
type Buffer_Wrap_Idx is mod BUFLEN;
head : Arr_T (0 .. 3); -- THIS must come before procedure, otherwise checks fail
procedure readFromDev (data : out UBX_Data) is
data_rx : Arr_T (0 .. BUFLEN ... |
case-studies/performance/verification/alloy/ppc/tests/safe506.als | uwplse/memsynth | 19 | 1663 | module tests/safe506
open program
open model
/**
PPC safe506
"SyncsWW Rfe DpdR Fri Rfe SyncdRR Fre"
Cycle=SyncsWW Rfe DpdR Fri Rfe SyncdRR Fre
Relax=
Safe=Fri Fre DpdR ACSyncdRR BCSyncsWW
{
0:r2=y; 0:r5=x;
1:r2=x; 1:r4=y;
2:r2=y;
}
P0 | P1 | P2 ;
lwz r1,0(r2) | lwz r1,0(r2) | li r1,1... |
src/vision-display.adb | faelys/vision-test | 1 | 19164 | ------------------------------------------------------------------------------
-- Copyright (c) 2016, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/mapedit.asm | prismotizm/gigaleak | 0 | 7292 | <filename>other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/mapedit.asm
Name: mapedit.asm
Type: file
Size: 21861
Last-Modified: '1992-11-18T01:48:29Z'
SHA-1: D20C7F3D6D95A6E3BB3E67B45308B94F63DDFB02
Description: null
|
src/algebra.agda | pcapriotti/agda-base | 20 | 10008 | {-# OPTIONS --without-K #-}
module algebra where
open import algebra.semigroup public
open import algebra.monoid public
open import algebra.group public
|
test/Succeed/Issue2754.agda | shlevy/agda | 1,989 | 1666 | <reponame>shlevy/agda
-- Andreas, 2017-09-18, issue #2754 reported by nad.
-- Command line options
--
-- --ignore-interfaces -v tc:10
--
-- caused internal error when processing Agda.Primitive.
--
-- Reason: trying to debug print levels while level built-ins
-- are not yet bound.
--
-- Should work now, printing
--
--... |
src/common/sp-interactive.adb | jquorning/septum | 236 | 11935 | <reponame>jquorning/septum
-------------------------------------------------------------------------------
-- Copyright 2021, The Septum Developers (see AUTHORS file)
-- 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... |
ada/src/objects.ads | alkalinin/raytracer | 45 | 16170 | <filename>ada/src/objects.ads
--
-- Raytracer implementation in Ada
-- by <NAME> (github: johnperry-math)
-- 2021
--
-- specification for Objects that may appear in the scene
--
-- local packages
with Bitmap; use Bitmap;
with Cameras; use Cameras;
with Colors; use Colors;
with Lights; use Lights;
with Rays; use... |
agda/Data/List/Membership.agda | oisdk/combinatorics-paper | 6 | 13587 | <filename>agda/Data/List/Membership.agda
{-# OPTIONS --cubical --safe #-}
module Data.List.Membership where
open import Data.List
open import Data.Fin
open import Data.Fin.Properties
open import Prelude
open import Relation.Nullary
open import Path.Reasoning
open import Data.List.Relation.Unary as Relation using (mod... |
llvm-gcc-4.2-2.9/gcc/ada/get_targ.adb | vidkidz/crossbridge | 1 | 6025 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
app/src/modules/Folder/post.asm | whxru/Mini-C | 0 | 11001 | .DATA
.TEXT 0x0000
start: nop
addi $30,$0,0xbffc
sll $30,$30,16
srl $30,$30,16
addi $t0,$0,0
addi $t1,$0,0xfffc
sll $t1,$t1,16
srl $t1,$t1,16
addi $t2,$0,0x55aa
addi $t3,$0,0xaa55
addi $s1,$0,0x0300
addi $t8,$0,1
sw $t8,0xfc60($0)
sll $t8,$t8,1
chkram: addi $s0,$0,0xe1
lw $t7... |
Data/Vec/Iterated.agda | oisdk/agda-playground | 6 | 15912 | <reponame>oisdk/agda-playground
{-# OPTIONS --without-K --safe #-}
module Data.Vec.Iterated where
open import Data.Unit.UniversePolymorphic
open import Level
open import Data.Nat.Base
open import Function
private
variable
n m : ℕ
mutual
Vec : Type a → ℕ → Type a
Vec A zero = Vec⁰
Vec A (suc n) = V... |
alloy4fun_models/trashltl/models/17/2Qm2j7aMzHwjwxytv.als | Kaixi26/org.alloytools.alloy | 0 | 1189 | <gh_stars>0
open main
pred id2Qm2j7aMzHwjwxytv_prop18 {
always all f: File | f in Protected and f in Trash implies f not in Protected
}
pred __repair { id2Qm2j7aMzHwjwxytv_prop18 }
check __repair { id2Qm2j7aMzHwjwxytv_prop18 <=> prop18o } |
oeis/307/A307233.asm | neoneye/loda-programs | 11 | 175724 | ; A307233: a(n) = Product_{k=1..n} (k^2 + k + 1) mod n.
; Submitted by <NAME>
; 0,1,0,1,3,3,0,1,0,9,3,9,0,7,12,1,3,9,0,1,0,9,3,9,18,13,0,21,3,9,0,1,27,9,7,9,0,19,0,1,3,21,0,37,18,9,3,33,0,49,27,13,3,27,12,49,0,9,3,21,0,31,0,1,13,3,0,13,27,49,3,9,0,37,57,57,42
add $0,1
mov $2,$0
seq $0,130032 ; Row sums of unsigned tri... |
ArmPkg/Library/ArmSmcPsciResetSystemLib/Arm/Reset.asm | BenjaminYou/edk2 | 3 | 7339 | <reponame>BenjaminYou/edk2
;/** @file
; ResetSystemLib implementation using PSCI calls
;
; Copyright (c) 2018, Linaro Ltd. All rights reserved.<BR>
;
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;**/
INCLUDE AsmMacroExport.inc
PRESERVE8
IMPORT ArmDisableMmu
RVCT_ASM_EXPORT DisableMmuAndReenterPei
push... |
samples/upload_servlet.adb | My-Colaborations/ada-servlet | 6 | 25521 | <gh_stars>1-10
-----------------------------------------------------------------------
-- upload_servlet -- Servlet example to upload files on the server
-- Copyright (C) 2012, 2015, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use ... |
libsrc/input/spectrum/in_MouseSimInit.asm | meesokim/z88dk | 0 | 14014 | ; void in_MouseSimInit(struct in_UDM *u)
; CALLER linkage for function pointers
PUBLIC in_MouseSimInit
EXTERN in_MouseSimInit_fastcall
.in_MouseSimInit
pop de
pop hl
push hl
push de
jp in_MouseSimInit_fastcall
|
u7-common/patch-itemLabels.asm | JohnGlassmyer/UltimaHacks | 68 | 245048 | [bits 16]
startPatch EXE_LENGTH, itemLabels
%macro produceTextOrBarkWithShape 0
callVarArgsEopFromOverlay getKeyboardShiftBits, 0
%%tryShift:
test ax, KeyboardShiftBit_RIGHT_SHIFT | KeyboardShiftBit_LEFT_SHIFT
jz .notShift
mov ax, ItemLabelType_WEIGHT
jmp %%haveLabelType
.notShift:
... |
oeis/179/A179552.asm | neoneye/loda-programs | 11 | 96695 | ; A179552: Decimal expansion of the volume of pentagonal pyramid with edge length 1.
; Submitted by <NAME>
; 3,0,1,5,0,2,8,3,2,3,9,5,8,2,4,5,7,0,6,8,3,7,1,5,5,6,9,5,3,0,4,6,9,8,4,3,1,4,3,3,5,9,0,9,8,3,1,7,1,4,6,9,0,5,1,7,7,9,5,4,0,5,1,8,9,2,1,0,5,0,3,8,5,6,8,2,4,1,8,7,0,8,0,8,9,3,3,9,3,3,6,8,2,4,4,9,2,6,1,4
mov $3,$0
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.