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 |
|---|---|---|---|---|
src/gnat/atree.ads | My-Colaborations/dynamo | 15 | 25702 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
tests/src/test_placeholders.adb | TNO/Rejuvenation-Ada | 1 | 18320 | <reponame>TNO/Rejuvenation-Ada
with Ada.Containers; use Ada.Containers;
with AUnit.Assertions; use AUnit.Assertions;
with Libadalang.Analysis; use Libadalang.Analysis;
with Libadalang.Common; use Libadalang.Common;
with Missing.AUnit.Assertions; use Missing.AUnit.Assertions;... |
programs/oeis/156/A156637.asm | neoneye/loda | 22 | 242591 | ; A156637: Pell numbers A000129 mod 9. Period 24: repeat 0,1,2,5,3,2,7,7,3,4,2,8,0,8,7,4,6,7,2,2,6,5,7,1.
; 0,1,2,5,3,2,7,7,3,4,2,8,0,8,7,4,6,7,2,2,6,5,7,1,0,1,2,5,3,2,7,7,3,4,2,8,0,8,7,4,6,7,2,2,6,5,7,1,0,1,2,5,3,2,7,7,3,4,2,8,0,8,7,4,6,7,2,2,6,5,7,1,0,1,2,5,3,2,7,7,3,4,2,8,0,8,7,4,6,7,2,2,6,5,7,1
seq $0,163271 ; Num... |
windows/x86-64/MessageBox/MessageBox.asm | a-rey/0xDEADBEEF | 0 | 177685 | <reponame>a-rey/0xDEADBEEF
; position independent non-NULL shellcode
BITS 64
section .text
global _start
_start:
jmp start ; jump to program start (keeps PIC offsets from having NULLs)
; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; get_address(1, 2, 3... |
includes/library.asm | matthewtillett/z80-boilerplate | 1 | 164702 |
; Clear entire screen
; Version : v1.0
; Created : 01/01/1971
; Author : Unknown
; Usage :
fn_ClearScreen:
push hl
push bc
push de
xor a
ld (SCREEN_RAM)... |
Cubical/HITs/PropositionalTruncation/MagicTrick.agda | oisdk/cubical | 0 | 6215 | {-
Based on <NAME>' blog post:
The Truncation Map |_| : ℕ -> ‖ℕ‖ is nearly Invertible
https://homotopytypetheory.org/2013/10/28/the-truncation-map-_-ℕ-‖ℕ‖-is-nearly-invertible/
Defines [recover], which definitionally satisfies `recover ∣ x ∣ ≡ x` ([recover∣∣]) for homogeneous types
Also see the follow-up post by... |
unit_names.ads | annexi-strayline/AURA | 13 | 30437 | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
scripts/checkmate/spectre.als | eskang/alloy-maxsat-benchmark | 0 | 1505 | <reponame>eskang/alloy-maxsat-benchmark
module SpectreMeltdown
open checkmate
fact { no coh }
fact { no ucoh_inter }
fact { no ucoh_intra }
////////////////////////////////////////////////////////////////////////////////////
// Pipeline module
//////////////////////////////////////////////////////////////////////////... |
win64_examples/WindowWorkSample.asm | rgimad/fasm_programs | 8 | 10470 | <filename>win64_examples/WindowWorkSample.asm
format PE64 GUI 5.0
entry start
; from chapter 5 of <NAME> book
include 'win64a.inc'
section '.data' data readable writeable
main_hwnd dq ?
msg MSG
wc WNDCLASS
hInst dq ?
szTitleName db 'Window work sample Win64',0
szC... |
oeis/217/A217530.asm | neoneye/loda-programs | 11 | 173074 | ; A217530: n^4/2-5*n^3/2+21*n-30.
; 0,6,22,75,204,460,906,1617,2680,4194,6270,9031,12612,17160,22834,29805,38256,48382,60390,74499,90940,109956,131802,156745,185064,217050,253006,293247,338100,387904,443010,503781,570592,643830,723894,811195,906156,1009212,1120810,1241409,1371480,1511506,1661982,1823415,1996324,2181240... |
data/phone/text/parry_overworld.asm | Dev727/ancientplatinum | 28 | 103179 | <reponame>Dev727/ancientplatinum
ParryAskNumber1Text:
text "Sheesh, the way"
line "you attacked! That"
para "was something! We"
line "should meet again!"
para "How about giving"
line "me your number?"
done
ParryAskNumber2Text:
text "So you want to"
line "register my phone"
para "number for a re-"
line "m... |
source/machine-w64-mingw32/s-zetews.adb | ytomino/drake | 33 | 21545 | with System.Address_To_Named_Access_Conversions;
with System.Storage_Elements;
with C.string;
with C.winnls;
package body System.Zero_Terminated_WStrings is
pragma Suppress (All_Checks);
use type Storage_Elements.Storage_Offset;
package LPSTR_Conv is
new Address_To_Named_Access_Conversions (C.char, C.wi... |
src/main-draw_curve.adb | alkhimey/Ada_Curve | 5 | 12072 | <filename>src/main-draw_curve.adb
-- The MIT License (MIT)
--
-- Copyright (c) 2016-2017 <EMAIL>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including with... |
oeis/007/A007450.asm | neoneye/loda-programs | 11 | 164610 | <filename>oeis/007/A007450.asm<gh_stars>10-100
; A007450: Decimal expansion of 1/17.
; 0,5,8,8,2,3,5,2,9,4,1,1,7,6,4,7,0,5,8,8,2,3,5,2,9,4,1,1,7,6,4,7,0,5,8,8,2,3,5,2,9,4,1,1,7,6,4,7,0,5,8,8,2,3,5,2,9,4,1,1,7,6,4,7,0,5,8,8,2,3,5,2,9,4,1,1,7,6,4,7,0,5,8,8,2,3,5,2,9,4,1,1,7,6,4,7,0,5,8,8
add $0,1
mov $2,10
pow $2,$0
div... |
Task/Same-Fringe/Ada/same-fringe-3.ada | LaudateCorpus1/RosettaCodeData | 1 | 641 | <reponame>LaudateCorpus1/RosettaCodeData
generic
with procedure Process_Data(Item: Data);
with function Stop return Boolean;
with procedure Finish;
package Bin_Trees.Traverse is
task Inorder_Task is
entry Run(Tree: Tree_Type);
-- this will call each Item in Tree and, at t... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pack18_pkg.ads | best08618/asylo | 7 | 90 | with GNAT.Dynamic_Tables;
package Pack18_Pkg is
type String_Access is access String;
type Rec is record
S : String_Access;
B : Boolean;
N : Natural;
end record;
pragma Pack (Rec);
package Attributes_Tables is new GNAT.Dynamic_Tables
(Table_Component_Type => Rec,
Table_Ind... |
OvmfPkg/CpuHotplugSmm/PostSmmPen.nasm | nicklela/edk2 | 3,012 | 84767 | <reponame>nicklela/edk2
;------------------------------------------------------------------------------
; @file
; Pen any hot-added CPU in a 16-bit, real mode HLT loop, after it leaves SMM by
; executing the RSM instruction.
;
; Copyright (c) 2020, Red Hat, Inc.
;
; SPDX-License-Identifier: BSD-2-Clause-Patent
... |
src/gen/cups-cups_ipp_h.ads | persan/a-cups | 0 | 12560 | <gh_stars>0
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
with CUPS.stdio_h;
with Interfaces.C_Streams;
with Interfaces.C.Strings;
with CUPS.time_h;
private package CUPS.cups_ipp_h is
-- unsupported macro: IPP_VERSION "\002\001"
IPP_PORT : constant := 631; -- ... |
Docs/MCB/MCB.g4 | CoCo3-org/Retro.BASIC | 0 | 7515 | <reponame>CoCo3-org/Retro.BASIC
grammar MCB;
// ----- PARSER -----
program
: line* EOF
;
line
: integerLiteral COLON* statement (COLON+ statement?)* CR
;
statement
: commentStatement
| printStatement
| assignmentStatement
;
commentStatement
: COMMENT_REM
;
printStatement
: PRINT
| PRINT printCommaOrS... |
Transynther/x86/_processed/NONE/_zr_xt_/i3-7100_9_0x84_notsx.log_21829_1998.asm | ljhsiun2/medusa | 9 | 95535 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x100c8, %rsi
lea addresses_D_ht+0x18091, %rdi
nop
nop
nop
and $13090, %rdx
mov $70, %rcx
rep movsl
nop
cmp $20499, %rbp
lea addresses_normal_ht+0x1a361, %rs... |
internal/well-typed-quoted-syntax.agda | JasonGross/lob | 19 | 15186 | <reponame>JasonGross/lob<filename>internal/well-typed-quoted-syntax.agda
{-# OPTIONS --without-K #-}
module well-typed-quoted-syntax where
open import common
open import well-typed-syntax
open import well-typed-syntax-helpers public
open import well-typed-quoted-syntax-defs public
open import well-typed-syntax-context-... |
source/containers/a-cndlli.ads | ytomino/drake | 33 | 4921 | pragma License (Unrestricted);
-- implementation unit
with System;
package Ada.Containers.Naked_Doubly_Linked_Lists is
pragma Preelaborate;
Node_Size : constant := Standard'Address_Size * 2;
type Node is limited private;
type Node_Access is access Node;
function Next (Position : not null Node_Access)... |
extern/gnat_sdl/gnat_sdl2/src/sdl_version_h.ads | AdaCore/training_material | 15 | 13066 | <filename>extern/gnat_sdl/gnat_sdl2/src/sdl_version_h.ads
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_stdinc_h;
with Interfaces.C.Strings;
package SDL_version_h is
SDL_MAJOR_VERSION : constant := 2; -- ..\SDL2_tmp\SDL_version.h:60
SDL_MINOR_VERSION : constant := ... |
Core/compiler/src/main/resources/BringIOSSimulatorToFront.scpt | bugvm/robovm | 29 | 1040 | <reponame>bugvm/robovm
#!/usr/bin/osascript
on run argv
repeat 30 times
try
if application "Simulator" is running then
tell application "System Events" to set frontmost of process "Simulator" to true
end if
if application "iOS Simulator" is running then
... |
SaveMailAttachmentsToLocalFolder.applescript | thecesrom/AppleScript | 0 | 2405 | <reponame>thecesrom/AppleScript
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
-- set up the attachment folder path
tell application "Finder"
--set attachmentsFolder to (path to documents folder as text) as text
set folderName to "Box"
--set hom... |
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-cgcaso.adb | djamal2727/Main-Bearing-Analytical-Model | 0 | 6915 | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
src/ggt/group/Facts.agda | zampino/ggt | 2 | 6062 | open import Algebra.Bundles using (Group)
module GGT.Group.Facts
{a b ℓ}
(G : Group a ℓ)
where
open import Relation.Unary using (Pred)
open import Relation.Binary
open import GGT.Group.Structures
open import Algebra.Bundles using (Group)
open import Algebra.Properties.Group G
open Group G
open import Relation.B... |
programs/oeis/098/A098823.asm | jmorken/loda | 1 | 170622 | ; A098823: a(n) = 16*(8*prime(n) + 7).
; 368,496,752,1008,1520,1776,2288,2544,3056,3824,4080,4848,5360,5616,6128,6896,7664,7920,8688,9200,9456,10224,10736,11504,12528,13040,13296,13808,14064,14576,16368,16880,17648,17904,19184,19440,20208,20976
cal $0,40 ; The prime numbers.
mul $0,8
add $0,7
mov $1,$0
mul $1,16
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_563.asm | ljhsiun2/medusa | 9 | 12165 | <filename>Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_563.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1d297, %r14
nop
nop
nop
nop
inc %rdx
and $0xffffffffffffffc0, %r14
vmovntdqa ... |
Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_21829_384.asm | ljhsiun2/medusa | 9 | 245531 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x148e0, %rsi
clflush (%rsi)
nop
dec %rbp
movb (%rsi), %cl
nop
nop
nop
nop
nop
xor %rax, %rax
lea addresses_A_ht+0x17831, %rsi
nop
nop
cmp %rbx, %rbx
mov (%rsi)... |
libsrc/fcntl/newbrain/readbyte.asm | meesokim/z88dk | 0 | 9267 | ;
; Grundy Newbrain Specific libraries
;
; <NAME> - 30/05/2007
;
;
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
;
; fcntl input function
;
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
;
; int __LIB__ __FASTCALL__ readbyte(int handle);
;
; - - - - - - - - - - - - - - - - - - - - - ... |
decreasoner.macosx/software/relsat-dist/gmp-3.1/mpn/x86/k6/mmx/popham.asm | problem-frames/openpf | 1 | 162445 | dnl AMD K6-2 mpn_popcount, mpn_hamdist -- mpn bit population count and
dnl hamming distance.
dnl
dnl popcount hamdist
dnl K6-2: 9.0 11.5 cycles/limb
dnl K6: 12.5 13.0
dnl Copyright (C) 2000 Free Software Foundation, Inc.
dnl
dnl This file is part of the GNU MP Library.
dnl
dnl T... |
Library/Kernel/Thread/threadSem.asm | steakknife/pcgeos | 504 | 19208 | <reponame>steakknife/pcgeos
COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Thread
FILE: threadSem.asm
ROUTINES:
Name Description
---- -----------
GLB ThreadBlockOnQueue Block on a q... |
programs/oeis/014/A014900.asm | neoneye/loda | 22 | 94259 | ; A014900: a(1)=1, a(n)=17*a(n-1)+n.
; 1,19,326,5546,94287,1602885,27249052,463233892,7874976173,133874594951,2275868114178,38689757941038,657725884997659,11181340044960217,190082780764323704,3231407272993502984,54933923640889550745,933876701895122362683,15875903932217080165630,269890366847690362815730,4588136236410736... |
src/fmt-generic_mod_int_argument.ads | likai3g/afmt | 0 | 3063 | generic
type Mod_Int_Type is mod <>;
package Fmt.Generic_Mod_Int_Argument is
function To_Argument (X : Mod_Int_Type) return Argument_Type'Class
with Inline;
function "&" (Args : Arguments; X : Mod_Int_Type) return Arguments
with Inline;
private
type Digit_Style is (DS_Lowercase, DS_Uppercase);... |
src/Fragment/Examples/Semigroup/Arith/Atomic.agda | yallop/agda-fragment | 18 | 12327 | {-# OPTIONS --without-K --safe #-}
module Fragment.Examples.Semigroup.Arith.Atomic where
open import Fragment.Examples.Semigroup.Arith.Base
-- Fully dynamic associativity
dyn-assoc₁ : ∀ {m n o} → (m + n) + o ≡ m + (n + o)
dyn-assoc₁ = fragment SemigroupFrex +-semigroup
dyn-assoc₂ : ∀ {m n o p} → ((m + n) + o) + p ... |
tier-1/gmp/applet/test/minimal/minimal.adb | charlie5/cBound | 2 | 24330 | <gh_stars>1-10
with GMP.discrete;
procedure Minimal
is
use GMP, gmp.Discrete;
Distance : discrete.Integer;
begin
define (Distance);
destroy (Distance);
end;
|
Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca_notsx.log_21829_1883.asm | ljhsiun2/medusa | 9 | 172458 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xc042, %r9
nop
nop
nop
nop
xor $23266, %rbx
movb (%r9), %r10b
nop
nop
nop
nop
dec %rdx
lea addresses_A_ht+0x169c2, %rbx
nop
and %r8, %r8
mov $0x6162636465666768, %r11... |
test/Succeed/WarningOnImport/Impo.agda | cruhland/agda | 1,989 | 7374 | <gh_stars>1000+
module WarningOnImport.Impo where
B = Set
A = B
{-# WARNING_ON_USAGE A "Deprecated: Use B instead" #-}
{-# WARNING_ON_IMPORT "Deprecated: Use Impossible instead" #-}
|
alloy4fun_models/trashltl/models/10/A2ige6mbXYD9LqpQi.als | Kaixi26/org.alloytools.alloy | 0 | 4411 | <filename>alloy4fun_models/trashltl/models/10/A2ige6mbXYD9LqpQi.als<gh_stars>0
open main
pred idA2ige6mbXYD9LqpQi_prop11 {
always after ((File & Protected) in Protected)
}
pred __repair { idA2ige6mbXYD9LqpQi_prop11 }
check __repair { idA2ige6mbXYD9LqpQi_prop11 <=> prop11o } |
testsuite/tests/Q612-015__Ada_runtime_fullpath/a-cohamb.adb | AdaCore/style_checker | 2 | 1849 | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
Kernel/idt.asm | heyimnowi/arqui-os | 0 | 82976 | GLOBAL _irq00handler
GLOBAL _irq01handler
GLOBAL _int80handler
GLOBAL _sti
GLOBAL _cli
GLOBAL picMasterMask
GLOBAL picSlaveMask
EXTERN keyboardHandler
EXTERN timertickHandler
EXTERN syscallHandler
EXTERN _vWrite
%macro pushaq 0
push rax ;save current rax
push rbx ;save current rbx
push rcx ... |
Task/Sorting-algorithms-Gnome-sort/Ada/sorting-algorithms-gnome-sort-2.ada | LaudateCorpus1/RosettaCodeData | 1 | 13172 | procedure Gnome_Sort(Item : in out Collection) is
procedure Swap(Left, Right : in out Element_Type) is
Temp : Element_Type := Left;
begin
Left := Right;
Right := Temp;
end Swap;
I : Integer := Index'Pos(Index'Succ(Index'First));
J : Integer := I + 1;
begin
while I <= Index'Pos(Index... |
interfacing 7 segment display with proteous/source_code_in_emu8086.asm | L12161/assembly_habijabi | 0 | 13920 | ; Main.asm file generated by New Project wizard
;
; Created: Fri May 28 2021
; Processor: 8086
; Compiler: MASM32
;
; Before starting simulation set Internal Memory Size
; in the 8086 model properties to 0x10000
;====================================================================
DATA SEGMENT
P_A EQU... |
src/ewok-sleep.ads | vdh-anssi/ewok-kernel | 65 | 14719 | <filename>src/ewok-sleep.ads
--
-- Copyright 2018 The wookey project team <<EMAIL>>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of ... |
alloy4fun_models/trashltl/models/5/aBg7pDvBCGpDMJbHT.als | Kaixi26/org.alloytools.alloy | 0 | 4219 | open main
pred idaBg7pDvBCGpDMJbHT_prop6 {
}
pred __repair { idaBg7pDvBCGpDMJbHT_prop6 }
check __repair { idaBg7pDvBCGpDMJbHT_prop6 <=> prop6o } |
oeis/167/A167469.asm | neoneye/loda-programs | 11 | 13058 | <filename>oeis/167/A167469.asm
; A167469: a(n) = 3*n*(5*n-1)/2.
; 6,27,63,114,180,261,357,468,594,735,891,1062,1248,1449,1665,1896,2142,2403,2679,2970,3276,3597,3933,4284,4650,5031,5427,5838,6264,6705,7161,7632,8118,8619,9135,9666,10212,10773,11349,11940,12546,13167,13803,14454,15120,15801,16497,17208,17934,18675,19431... |
Source/eu.modelwriter.core.alloyinecore/src/test/resources/kodkod/pigeonhole.als | ModelWriter/AlloyInEcore | 2 | 4556 | sig Pigeon { hole: Hole }
sig Hole {}
fact {no disj p1, p2: Pigeon | p1.hole = p2.hole}
pred aPigeonPerHole() {
// holes are not shared
-- all p1, p2: Pigeon | p1 != p2 implies p1.hole != p2.hole
-- all p1, p2: Pigeon, h1, h2: Hole | p1 != p2 => p1.hole != p2.hole
-- no disj p1, p2: Pigeon | p1.hole = p2.ho... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c95085a.ada | best08618/asylo | 7 | 20395 | -- C95085A.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... |
Task/Death-Star/Ada/death-star.ada | mullikine/RosettaCodeData | 1 | 22368 | <reponame>mullikine/RosettaCodeData
with Ada.Numerics.Elementary_Functions;
with Ada.Numerics.Generic_Real_Arrays;
with SDL.Video.Windows.Makers;
with SDL.Video.Renderers.Makers;
with SDL.Video.Palettes;
with SDL.Events.Events;
procedure Death_Star is
Width : constant := 400;
Height : constant := 400;
p... |
src/ui/ships-ui-crew-inventory.adb | thindil/steamsky | 80 | 27960 | <filename>src/ui/ships-ui-crew-inventory.adb<gh_stars>10-100
-- Copyright (c) 2020-2021 <NAME> <<EMAIL>>
--
-- 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, either version 3 of the License, or... |
oeis/287/A287324.asm | neoneye/loda-programs | 11 | 165476 | ; A287324: a(n) = A008412(n-1) + A008412(n-2) for n>1, a(0)=0, a(1)=1.
; Submitted by <NAME>
; 0,1,9,40,120,280,552,968,1560,2360,3400,4712,6328,8280,10600,13320,16472,20088,24200,28840,34040,39832,46248,53320,61080,69560,78792,88808,99640,111320,123880,137352,151768,167160,183560,201000,219512,239128,259880,281800,304... |
SLIDE_Video.asm | XlogicX/CactusCon2017 | 2 | 3650 | %include 'textmode.h'
call draw_border
mov di, 160 * 2 + 8 ;where to place cursor
mov si, line01 ;fetch the text
mov ah, 0x0A ;color
call slide_line
mov di, 160 * 4 + 16 ;where to place cursor
mov si, line02 ;fetch the text
mov ah, 0x0E
call slide_line
mov di, 160 * 6 + 16 ;where to place cursor
mov si... |
src/libraries/Rewriters_Lib/src/rewriters_context_utils.adb | Fabien-Chouteau/Renaissance-Ada | 0 | 26445 | <reponame>Fabien-Chouteau/Renaissance-Ada
with Ada.Assertions; use Ada.Assertions;
with Libadalang.Common; use Libadalang.Common;
package body Rewriters_Context_Utils is
function Combine_Contexts (C1, C2 : Ada_Node) return Ada_Node
is
begin
if Is_Reflexive_Ancestor (C1, C2)
then
retur... |
core/zxaritm.asm | freemanix/zxemul | 4 | 161360 |
; ZX Spectrum emulator
; Arithmetic instructions
; (c) Freeman, August 2000, Prague
; -----------------------------------------------------------------------------
AddFlags MACRO
FastClearVFlags flgN, flgSZHC
ENDM
; -----------------------------------------------------------------------------
AddWFla... |
Sol_HW4/Q2/MiniJava.g4 | kamyab78/IUSTCompiler | 0 | 6395 | grammar MiniJava;
program:
mainClass (classDeclaration)* EOF;
mainClass:
'class' ID '{' PUBLIC STATIC VOID MAIN '(' STRING '[' ']' ID ')' '{' statement '}' '}';
classDeclaration:
'class' ID (EXTENDS ID)? '{' (varDeclaration)* (methodDeclaration)* '}';
varDeclaration:
type_t ID ';';
methodDeclaratio... |
external/source/shellcode/windows/x64/src/block/block_recv.asm | madhavarao-yejarla/VoIP | 35 | 12438 | ;-----------------------------------------------------------------------------;
; Author: <NAME> (stephen_fewer[at]harmonysecurity[dot]com)
; Compatible: Windows 7, 2003
; Architecture: x64
;-----------------------------------------------------------------------------;
[BITS 64]
; Compatible: block_bind_tcp, bl... |
programs/oeis/184/A184551.asm | karttu/loda | 1 | 81131 | ; A184551: Super-birthdays (falling on the same weekday), version 3 (birth within 2 and 3 years after a February 29).
; 0,11,17,22,28,39,45,50,56,67,73,78,84,95,101,106,112,123,129,134,140,151,157,162,168,179,185,190,196,207,213,218,224,235,241,246,252,263,269,274,280,291,297,302,308,319,325,330,336,347,353,358,364,375... |
theorems/cohomology/RephraseSubFinCoboundary.agda | timjb/HoTT-Agda | 0 | 12363 | {-# OPTIONS --without-K --rewriting #-}
open import HoTT
open import homotopy.FinWedge
open import homotopy.Bouquet
open import groups.SphereEndomorphism
open import cohomology.Theory
module cohomology.RephraseSubFinCoboundary (OT : OrdinaryTheory lzero) where
open OrdinaryTheory OT
open import cohomology.SphereEndo... |
programs/oeis/065/A065438.asm | jmorken/loda | 1 | 27726 | ; A065438: Complement of A065039.
; 10,21,32,43,54,65,76,87,98,109,110,121,132,143,154,165,176,187,198,209,220,221,232,243,254,265,276,287,298,309,320,331,332,343,354,365,376,387,398,409,420,431,442,443,454,465,476,487,498,509,520,531,542
mov $2,$0
add $2,5
mov $4,$0
add $4,2
mov $5,$0
mov $0,$4
lpb $0
sub $0,7
tr... |
src/main/antlr4/com/fordprog/matrix/Matrix.g4 | daergoth/MatrixC | 2 | 7858 | <reponame>daergoth/MatrixC<filename>src/main/antlr4/com/fordprog/matrix/Matrix.g4<gh_stars>1-10
grammar Matrix;
program
: symbolDeclaration+ EOF
;
symbolDeclaration
: variableDeclaration SEMI
| functionDecl
;
variableDeclaration
: type id '=' expr
;
functionDecl
: 'function' returnTy... |
alloy4fun_models/trashltl/models/17/Ec8crWQdLnHJ93GmC.als | Kaixi26/org.alloytools.alloy | 0 | 1009 | <gh_stars>0
open main
pred idEc8crWQdLnHJ93GmC_prop18 {
always all f : Protected | f in Trash until f not in Protected
}
pred __repair { idEc8crWQdLnHJ93GmC_prop18 }
check __repair { idEc8crWQdLnHJ93GmC_prop18 <=> prop18o } |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/limited_with3_pkg2.ads | best08618/asylo | 7 | 4855 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/limited_with3_pkg2.ads
limited with Limited_With3_Pkg3;
package Limited_With3_Pkg2 is
type T is tagged null record;
procedure Proc (X : Limited_With3_Pkg3.TT; Y : T);
end Limited_With3_Pkg2;
|
Levels/AIZ/Misc Object Data/Map - Act 2 Background Tree.asm | NatsumiFox/AMPS-Sonic-3-Knuckles | 5 | 21039 | Map_AIZ2BGTree_: dc.w word_23C24A-Map_AIZ2BGTree_
word_23C24A: dc.w 4
dc.b $C0, 7,$40, 0, 0, 0
dc.b $E0, 7,$40, 0, 0, 0
dc.b 0, 7,$40, 0, 0, 0
dc.b $20, 7,$40, 0, 0, 0
|
src/gen-model-operations.adb | jquorning/dynamo | 15 | 18604 | <reponame>jquorning/dynamo<filename>src/gen-model-operations.adb
-----------------------------------------------------------------------
-- gen-model-operations -- Operation declarations
-- Copyright (C) 2012, 2016, 2017, 2018, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Vers... |
programs/oeis/061/A061286.asm | neoneye/loda | 22 | 247432 | <filename>programs/oeis/061/A061286.asm<gh_stars>10-100
; A061286: Smallest integer for which the number of divisors is the n-th prime.
; 2,4,16,64,1024,4096,65536,262144,4194304,268435456,1073741824,68719476736,1099511627776,4398046511104,70368744177664,4503599627370496,288230376151711744,1152921504606846976,737869762... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/rep_clause5.ads | best08618/asylo | 7 | 28446 | -- { dg-do compile }
pragma Implicit_Packing;
package Rep_Clause5 is
type Modes_Type is (Mode_0, Mode_1);
for Modes_Type'size use 8;
type Mode_Record_Type is
record
Mode_1 : aliased Modes_Type;
Mode_2 : aliased Modes_Type;
Mode_3 : aliased Modes_Type;
Mode_4 : ali... |
include/sf-audio-music.ads | danva994/ASFML-1.6 | 1 | 2127 | -- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 <NAME> (<EMAIL>)
-- //
-- // This software is provided 'as-is', without any express or implied
-- // warranty.
-- // In no event will the authors be held liable for any dam... |
source/league/ucd/matreshka-internals-unicode-ucd-core_00ff.ads | svn2github/matreshka | 24 | 17031 | <filename>source/league/ucd/matreshka-internals-unicode-ucd-core_00ff.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1156.asm | ljhsiun2/medusa | 9 | 3893 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x713f, %rsi
lea addresses_A_ht+0x862f, %rdi
clflush (%rsi)
nop
nop
nop
nop
and $50817, %r10
mov $122, %rcx
rep movsq
nop
xor %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %r10
ret
.global s_faulty_load
s_faulty_lo... |
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_658.asm | ljhsiun2/medusa | 9 | 1472 | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xe58, %rsi
lea addresses_WT_ht+0x8258, %rdi
nop
nop
nop
nop
cmp $31857, %r13
mov $34, %rcx
rep movsl
nop
nop
inc %rcx
lea addresses_normal_ht+0x1ae58, %rdi
nop
nop
nop
nop
nop
add $6972, %r14
mo... |
src/Generics/Mu/Conversion.agda | flupe/generics | 11 | 1908 | module Generics.Mu.Conversion where
|
CPU/cpu_test/test_storage/mips4.asm | SilenceX12138/MIPS-Microsystems | 55 | 90098 | <reponame>SilenceX12138/MIPS-Microsystems<filename>CPU/cpu_test/test_storage/mips4.asm<gh_stars>10-100
ori $a1,$0,111
ori $a2,$0,112
beq $a1,$a2,end
ori $a1,$a1,111
beq $a1,$a1,out
nop
end:
nop
out:
addu $a0,$a0,$a1 |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2401i.ada | best08618/asylo | 7 | 27136 | -- CE2401I.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... |
PIC/mikroC/Projects/PIC18F4550/USB_HID.asm | UdayanSinha/Code_Blocks | 3 | 100146 |
_interrupt:
;USB_HID.c,8 :: void interrupt(){
;USB_HID.c,9 :: USB_Interrupt_Proc(); // USB servicing is done inside the interrupt
CALL _USB_Interrupt_Proc+0, 0
;USB_HID.c,10 :: }
L_end_interrupt:
L__interrupt10:
RETFIE 1
; end of _interrupt
_main:
;USB_HID.c,12 ::... |
programs/oeis/145/A145568.asm | karttu/loda | 1 | 96541 | ; A145568: Characteristic function of numbers relatively prime to 11.
; 0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1
gcd $0,11
div $0,7
pow $1,$0
|
_incObj/0E Title Screen Sonic.asm | kodishmediacenter/msu-md-sonic | 9 | 175022 | ; ---------------------------------------------------------------------------
; Object 0E - Sonic on the title screen
; ---------------------------------------------------------------------------
TitleSonic:
moveq #0,d0
move.b obRoutine(a0),d0
move.w TSon_Index(pc,d0.w),d1
jmp TSon_Index(pc,d1.w)
; ===========... |
Src/primaries.asm | slowcorners/Minimal-FORTH | 1 | 168195 | ; ----------------------------------------------------------------------
; FORTH PRIMARIES
;
HLIT: DB ^3 "LI" ^'T' ; ***** LIT
DW 0
LIT: DW LIT0
LIT0: JPS _LIT ; R1 = (IP)+
JPA PUSH ; -(SP) = R1; NEXT
HEXEC: DB ^7 "EX... |
test/Succeed/ProjectionLike1963.agda | cruhland/agda | 1,989 | 12627 | -- Andreas, 2016-06-09 issue during refactoring for #1963
-- Shrunk this issue with projection-like functions from std-lib
-- {-# OPTIONS --show-implicit #-}
-- {-# OPTIONS -v tc.proj.like:10 #-}
open import Common.Level
open import Common.Nat renaming ( Nat to ℕ )
data ⊥ : Set where
record ⊤ : Set where
construc... |
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1928.asm | ljhsiun2/medusa | 9 | 90358 | <filename>Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1928.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x14119, %rbx
dec %r13
movups (%rbx), %xmm2
vpextrq $1, %xmm2, %rsi
nop
add $49174, ... |
test/interaction/Issue5695.agda | KDr2/agda | 1,989 | 12541 | <filename>test/interaction/Issue5695.agda
open import Agda.Builtin.Bool
open import Agda.Builtin.List
open import Agda.Builtin.Nat
open import Agda.Builtin.Unit
open import Agda.Builtin.Reflection
macro
printType : Term → TC ⊤
printType hole = bindTC (inferType hole) λ t → typeError (termErr t ∷ [])
test1 : (a : ... |
Assembly/Project/Memory.asm | Myself086/Project-Nested | 338 | 82880 |
// 0 2
// Heapstack format: _FirstByte, _LastByte
// ---------------------------------------------------------------------------
.mx 0x00
.func Memory__TryAlloc
// Entry: A = Bank number, X = Length
// Return: A = Bank number (positive), X = Memory address, Y = HeapStack pointer
/... |
libsrc/_DEVELOPMENT/target/sms/driver/terminal/sms_01_output_terminal_tty_z88dk/sms_01_output_terminal_tty_z88dk_01_scroll.asm | jpoikela/z88dk | 640 | 163914 | <reponame>jpoikela/z88dk
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC sms_01_output_terminal_tty_z88dk_01_scroll
EXTERN console_01_output_char_proc_putchar_scroll_adjust
sms_01_output_terminal_tty_z88dk_01_scroll:
; scroll window upward one row
ld a,1
jp console_01_output_char_proc_p... |
programs/oeis/279/A279318.asm | jmorken/loda | 1 | 178660 | ; A279318: Permutation of the nonnegative integers [6k+3, 6k+2, 6k+1, 6k, 6k+5, 6k+4].
; 3,2,1,0,5,4,9,8,7,6,11,10,15,14,13,12,17,16,21,20,19,18,23,22,27,26,25,24,29,28,33,32,31,30,35,34,39,38,37,36,41,40,45,44,43,42,47,46,51,50,49,48,53,52,57,56,55,54,59,58,63,62,61,60,65,64,69
mov $2,$0
gcd $0,2
mov $3,$0
trn $0,2
a... |
oeis/074/A074741.asm | neoneye/loda-programs | 11 | 19609 | <reponame>neoneye/loda-programs
; A074741: Sum of squares of gaps between consecutive primes.
; Submitted by <NAME>
; 1,5,9,25,29,45,49,65,101,105,141,157,161,177,213,249,253,289,305,309,345,361,397,461,477,481,497,501,517,713,729,765,769,869,873,909,945,961,997,1033,1037,1137,1141,1157,1161,1305,1449,1465,1469,1485,15... |
waterbackground/_includes/subroutines/gradientFade.asm | ArcadeTV/megadrive-samples | 5 | 19195 | <filename>waterbackground/_includes/subroutines/gradientFade.asm
gradientFade:
movem.l d0-a6,-(sp)
WaitVBlank
move.w #$2700,sr ; Interrupts off
; set gradient to initial position:
move.w #($FFFF-192),(ram_plane_a_scroll_x).l
SetVRAMWrite vram_addr_hscroll
move... |
bin/gcc/config/arm/lib1funcs.asm | aaliomer/exos | 1 | 177486 | <filename>bin/gcc/config/arm/lib1funcs.asm
@ libgcc1 routines for ARM cpu.
@ Division and remainder, from Appendix E of the Sparc Version 8
@ Architecture Manual, with fixes from <NAME>.
@ Rewritten for the ARM by <NAME> (<EMAIL>)
/* Copyright (C) 1995 Free Software Foundation, Inc.
This file is free software; you ca... |
project/adl/testsuite/tests/wire_simulation/src/tc_virtual_wire.adb | corentingay/ada_epita | 2 | 18350 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- --
-- ... |
python-ada/unit.adb | octonion/recursion | 8 | 17528 | with Interfaces.C; use Interfaces;
package body unit is
--type stack is array (0..9) of integer;
function partitions (cards: out stack; subtotal: integer) return integer is
m, total : integer;
begin
m := 0;
-- Hit
for i in integer range 0 .. 9 loop
if (cards(i)>0) then
... |
programs/oeis/021/A021097.asm | neoneye/loda | 22 | 177575 | ; A021097: Decimal expansion of 1/93.
; 0,1,0,7,5,2,6,8,8,1,7,2,0,4,3,0,1,0,7,5,2,6,8,8,1,7,2,0,4,3,0,1,0,7,5,2,6,8,8,1,7,2,0,4,3,0,1,0,7,5,2,6,8,8,1,7,2,0,4,3,0,1,0,7,5,2,6,8,8,1,7,2,0,4,3,0,1,0,7,5,2,6,8,8,1,7,2,0,4,3,0,1,0,7,5,2,6,8,8
add $0,2
mov $1,10
pow $1,$0
mul $1,4
div $1,3720
mod $1,10
mov $0,$1
|
workshop/src/parentpackage.ads | TNO/Rejuvenation-Ada | 0 | 25917 | with Ada.Text_IO;
pragma Unreferenced (Ada.Text_IO);
package ParentPackage is
procedure ParentDummy;
end ParentPackage;
|
programs/oeis/267/A267813.asm | jmorken/loda | 1 | 176129 | <reponame>jmorken/loda
; A267813: Triangle read by rows giving successive states of cellular automaton generated by "Rule 219" initiated with a single ON (black) cell.
; 1,1,0,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,... |
org.alloytools.alloy.core/src/main/resources/models/util/int32bits.als | cesarcorne/org.alloytools.alloy | 0 | 4005 | module util/int32bits
open util/boolean
/*
*
* A collection of utility functions for using Integers in Alloy.
*
*/
/** Representation of a Integer of 32 bits */
sig Number32 {
b00: Bool,
b01: Bool,
b02: Bool,
b03: Bool,
b04: Bool,
b05: Bool,
b06: Bool,
b07: Bool,
b08: Bool,
b09: Boo... |
vp8/encoder/x86/dct_sse2.asm | CM-Archive/android_external_libvpx | 0 | 173810 | ;
; 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... |
src/parse_args.ads | AntonMeep/parse_args | 9 | 19360 | -- parse_args.ads
-- A simple command line option parser
-- Copyright (c) 2014 - 2021, <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
... |
Cubical/Algebra/Direct-Sum/Base.agda | howsiyu/cubical | 0 | 958 | <reponame>howsiyu/cubical
{-# OPTIONS --safe #-}
module Cubical.Algebra.Direct-Sum.Base where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.HLevels
open import Cubical.Algebra.AbGroup
-- Conventions :
-- Elements of the index are named r, s, t...
-- Elements of the groups are called a, b, ... |
programs/oeis/038/A038502.asm | karttu/loda | 0 | 82084 | <filename>programs/oeis/038/A038502.asm
; A038502: Remove 3's from n.
; 1,2,1,4,5,2,7,8,1,10,11,4,13,14,5,16,17,2,19,20,7,22,23,8,25,26,1,28,29,10,31,32,11,34,35,4,37,38,13,40,41,14,43,44,5,46,47,16,49,50,17,52,53,2,55,56,19,58,59,20,61,62,7,64,65,22,67,68,23,70,71,8,73,74,25,76,77,26,79,80,1,82,83,28,85,86,29,88,89,10... |
Examples/system/elf64header/elf64header.asm | agguro/linux-nasm | 6 | 173 | ;name: elf64header.asm
;
;build: nasm -fbin -o elf64header elf64header.asm && chmod +x elf64header
;
;description: Small, self-contained 64-bit ELF executable for NASM
;
;adapted from: http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html
;http://blog.markloiseau.com/2012/05/tiny-64-bit-elf-executables/
bits ... |
oeis/142/A142842.asm | neoneye/loda-programs | 11 | 22556 | ; A142842: Primes congruent to 44 mod 61.
; Submitted by <NAME>
; 227,349,593,1447,2179,2423,2789,3643,4253,5107,5351,5717,5839,6449,6571,7547,7669,9011,9133,9377,9743,10597,11329,11939,12671,13037,13159,14867,15233,16087,16453,17551,19259,19381,19991,20113,20357,20479,21089,21211,21577,21821,21943,23041,23773,24749,25... |
Appl/GeoWrite/Document/documentConvert.asm | steakknife/pcgeos | 504 | 161932 | COMMENT @----------------------------------------------------------------------
Copyright (c) Berkeley Softworks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: GeoWrite
FILE: documentConvert.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/92 Initial version
DESCR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.