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/irreflexive-lt.agda | JLimperg/msc-thesis-code | 5 | 11794 | <reponame>JLimperg/msc-thesis-code<gh_stars>1-10
{- With Agda's current sized types, we have a size ∞ with ∞ < ∞. That's
obviously troublesome if we want to interpret sizes as ordinals and < as the
less-than relation, and indeed we can use this rule to prove false (in
multiple different ways).
This file is... |
libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sccz80/sinh.asm | ahjelm/z88dk | 640 | 100762 | <reponame>ahjelm/z88dk<gh_stars>100-1000
SECTION code_fp_am9511
PUBLIC sinh
EXTERN cam32_sccz80_sinh
defc sinh = cam32_sccz80_sinh
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _sinh
EXTERN cam32_sdcc_sinh
defc _sinh = cam32_sdcc_sinh
ENDIF
|
day29/harib26d/src/app/gview/bmp.nasm | kamaboko123/30daysOS | 31 | 242206 | ; BMP decode routine by I.Tak. 2003
section .text align=1
[bits 32]
;BMP File Structure (I can't understand MS.)
struc BMP
;FILE HEADER
.fType: resw 1 ;BM
.fSize: resd 1 ;whole file size
resd 1 ;reserved
.fOffBits: resd 1 ;offset from file top to image
;INFO HEADER... |
source/league/ucd/matreshka-internals-unicode-ucd-core_0006.ads | svn2github/matreshka | 24 | 551 | <reponame>svn2github/matreshka<filename>source/league/ucd/matreshka-internals-unicode-ucd-core_0006.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project ... |
gyak/gyak1-2/hello.adb | balintsoos/LearnAda | 0 | 20810 | with Text_IO;
procedure Hello is
begin
Text_IO.Put("Hello");
end Hello;
|
CO2008/W4/ex5.asm | Smithienious/hcmut-201 | 0 | 100206 | .data:
msg: .asciiz "Enter an integer: "
print: .asciiz "Output is "
# Start program code
.text:
.globl main
main:
# Print string msg
li $v0, 4
la $a0, msg
syscall
# Get input and save
li $v0, 5
syscall
move $s0, $v0
# Caller
move $a0, $s0
jal fact
move ... |
src/Prelude/Monoid.agda | L-TChen/agda-prelude | 111 | 5816 | module Prelude.Monoid where
open import Prelude.Function
open import Prelude.Maybe
open import Prelude.List
open import Prelude.Semiring
open import Prelude.Semigroup public
open import Prelude.Applicative
open import Prelude.Functor
open import Prelude.Equality
open import Prelude.Variables
record Monoid {a} (A ... |
oeis/264/A264411.asm | neoneye/loda-programs | 11 | 23379 | <gh_stars>10-100
; A264411: a(n) = binomial(2*n^2, n).
; 1,2,28,816,35960,2118760,156238908,13834413152,1429702652400,168899639028120,22451004309013280,3316276739861976176,538884034480519066248,95533608280955635872536,18348499272339029224271680,3795302872076181378439692480,841141456821158064519401490400,198852623925936... |
Arquitetura de Computadores/Atividade 06/Lab_01.asm | antuniooh/ExercisesFEI | 1 | 171424 | <filename>Arquitetura de Computadores/Atividade 06/Lab_01.asm
CONFIG:
MOV TMOD,#2 ;CT0 no modo 2
MOV TH0,#156 ;valor para a recarga
MOV TL0,#156 ;valor para a primeira contagem
SETB TR0 ;liga o CT0
ROT:
JNB TF0,$ ;aguarda bit de ultrapassagem
CLR TF0 ;apaga bit de ultrapassagem
CPL P1.0 ;complementa P1.0
ROT1:
... |
src/display_warning.ads | zenharris/ada-bbs | 2 | 7216 | <filename>src/display_warning.ads
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Terminal_Interface.Curses; use Terminal_Interface.Curses;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Calendar; use Ada.Calendar;
with Ada.Calendar.Formatting; use Ada.Calendar.Formatting;
package D... |
programs/oeis/146/A146880.asm | neoneye/loda | 22 | 8833 | <reponame>neoneye/loda
; A146880: A symmetrical triangle sequence of coefficients : p(x,n)=If[n == 0, 1, (x + 1)^n + Sum[(1 + Mod[Binomial[n, m], 2])*x^m*(1 + x^(n - 2*m)), {m, 1, n - 1}]].
; 1,1,1,1,4,1,1,7,7,1,1,6,8,6,1,1,9,12,12,9,1,1,8,19,22,19,8,1,1,11,25,39,39,25,11,1,1,10,30,58,72,58,30,10,1,1,13,38,86,128,128,8... |
Transynther/x86/_processed/NC/_ht_/i7-7700_9_0x48.log_21829_2188.asm | ljhsiun2/medusa | 9 | 171010 | <filename>Transynther/x86/_processed/NC/_ht_/i7-7700_9_0x48.log_21829_2188.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xcf85, %rax
nop
nop
nop
add $42911, %r13
mov (%rax), %dx
nop
nop
nop
add %r10, %r10
lea address... |
Cubical/HITs/Ints/QuoInt/Base.agda | dan-iel-lee/cubical | 0 | 15007 | -- Define the integers as a HIT by identifying +0 and -0
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.HITs.Ints.QuoInt.Base where
open import Cubical.Core.Everything
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Transport
open import... |
programs/oeis/075/A075561.asm | karttu/loda | 1 | 21541 | <reponame>karttu/loda
; A075561: Domination number for kings' graph K(n).
; 1,1,1,4,4,4,9,9,9,16,16,16,25,25,25,36,36,36,49,49,49,64,64,64,81,81,81,100,100,100,121,121,121,144,144,144,169,169,169,196,196,196,225,225,225,256,256,256,289,289,289,324,324,324,361,361,361,400,400,400,441,441,441,484,484,484,529,529,529,576,... |
test/interaction/Issue630.agda | cruhland/agda | 1,989 | 11019 | module Issue630 where
Test = (A : Set) → A → A
g : Test
g = λ _ x → {!!}
-- the goal should be displayed as ?1 : A
-- not ?1 : _
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_886.asm | ljhsiun2/medusa | 9 | 98655 | <reponame>ljhsiun2/medusa<filename>Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_886.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xbd31, %rdi
nop
nop
and $23938, %rdx
movb $0x61, (%rdi)
nop
nop
and %rdx,... |
src/fltk-static.adb | micahwelf/FLTK-Ada | 1 | 6195 | <reponame>micahwelf/FLTK-Ada<gh_stars>1-10
with
Interfaces.C.Strings,
System.Address_To_Access_Conversions,
Ada.Unchecked_Conversion;
use type
Interfaces.C.int,
Interfaces.C.Strings.chars_ptr;
package body FLTK.Static is
procedure fl_static_add_awake_handler
(H, F : in System... |
Categories/Category/Cartesian/Properties.agda | Taneb/agda-categories | 0 | 15534 | <reponame>Taneb/agda-categories
{-# OPTIONS --without-K --safe #-}
open import Categories.Category
module Categories.Category.Cartesian.Properties {o ℓ e} (C : Category o ℓ e) where
open import Function using (_$_)
open import Categories.Category.Cartesian C
open import Categories.Diagram.Pullback C
open import Ca... |
source/numerics/a-numdsf.adb | ytomino/drake | 33 | 18655 | <gh_stars>10-100
with Ada.Numerics.dSFMT.Generating;
with System.Formatting;
with System.Long_Long_Integer_Types;
with System.Random_Initiators;
with System.Storage_Elements;
package body Ada.Numerics.dSFMT is
pragma Check_Policy (Validate => Ignore);
use type Interfaces.Unsigned_32;
use type Interfaces.Unsign... |
src/Bootstrap/InitEnv.agda | WhatisRT/meta-cedille | 35 | 9285 | <reponame>WhatisRT/meta-cedille
--------------------------------------------------------------------------------
-- This file generates the environment that the interpreter starts with. In
-- particular, it contains the grammar that is loaded initially.
------------------------------------------------------------------... |
evaluation/1_main/violations/lvi-null-org.asm | mguarnieri/revizor | 0 | 168232 | .intel_syntax noprefix
.test_case_enter:
LEA R14, [R14 + 8] # instrumentation
MFENCE # instrumentation
.test_case_main:
.test_case_main.entry:
JMP .bb0
.bb0:
SUB AX, 27095
AND RAX, 0b1111111000000 # instrumentation
ADD RAX, R14 # instrumentation
ADD BL, byte ptr [RAX]
{store} ADC DX, DX
BSWAP RAX
JMP .bb1
.bb1:
{store}... |
server/grammar/YmlParser.g4 | Harukero/vscode-yseopml | 0 | 1008 | parser grammar YmlParser;
options
{
tokenVocab=YmlLexer;
}
/*
* Parser rules
*/
// Base rule when parsing a file. Basically, this describes all valid YML files.
// TODO: add a rule for the `project.kao`-like files.
declarationFile: FILETYPE FILE_DECLARATION*? EOF?;
kaoFile: (entities=ymlEntity* | declarationFi... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1314.asm | ljhsiun2/medusa | 9 | 177962 | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x3614, %rbx
add %rbp, %rbp
movb (%rbx), %r13b
nop
nop
nop
xor %rbx, %rbx
lea addresses_WT_ht+0x19e8, %rsi
lea addresses_D_ht+0xf294, %rdi
nop
nop
nop
nop
xor %r15, %r15
mov $9,... |
benchmark/benchmark-bin-small.sms.asm | maxim-zhao/bmp2tilecompressors | 12 | 170320 | <filename>benchmark/benchmark-bin-small.sms.asm
; { "technology": "Uncompressed (otir)", "extension": "bin" }
.memorymap
defaultslot 0
slotsize $4000
slot 0 $0000
.endme
.rombankmap
bankstotal 1
banksize $4000
banks 1
.endro
.bank 0 slot 0
.org 0
ld hl,data
ld de,$4000
ld bc,dataSize
call copy
r... |
engine/gameSpawns.asm | laoo/TimePilot | 24 | 87999 | ; TIMEPILOT
; SPAWN SYSTEM
; spawns: shots, enemies, squadrons, missiles, bombs, clouds, parachute, boss
.proc SPAWN
; mainLoop spawn system - main loop
; playerShot spawns player shots
; enemy spawns enemies/squadrons
; enemyShots spawns enemy shots
; enemyBombs spawns enemy bombs
; cloudSmall ... |
4-high/gel/applet/demo/distributed/dsa/launch_client.adb | charlie5/lace | 20 | 9286 | with
gel_demo_Client;
procedure launch_Client
--
-- Launches the remote client.
--
is
begin
gel_demo_Client.item.start;
end launch_Client;
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_908.asm | ljhsiun2/medusa | 9 | 1649 | <filename>Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_908.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x58c7, %rax
nop
nop
nop
nop
nop
add $15398, %r14
mov (%rax), %edx
nop
nop
nop
... |
oeis/318/A318456.asm | neoneye/loda-programs | 11 | 19119 | ; A318456: a(n) = n OR A001065(n), where OR is bitwise-or (A003986) and A001065 = sum of proper divisors.
; Submitted by <NAME>
; 1,3,3,7,5,6,7,15,13,10,11,28,13,14,15,31,17,23,19,22,31,30,23,60,31,26,31,28,29,62,31,63,47,54,47,55,37,54,55,58
mov $1,$0
seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also c... |
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1588.asm | ljhsiun2/medusa | 9 | 3235 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x21b9, %r8
nop
nop
dec %rdi
mov $0x6162636465666768, %r15
movq %r15, %xmm4
vmovups %ymm4, (%r8)
nop
nop
nop
nop
add $32953, %r9
lea addresses_WC_ht+0x19f9f, %rsi
lea addresses_... |
source/adam-entity.ads | charlie5/aIDE | 3 | 18547 | <gh_stars>1-10
with
AdaM.Any,
Ada.Streams;
package AdaM.Entity
is
type Base is abstract tagged null record;
type Item is abstract new Base
and Any.item with private;
-- View
--
type View is access all Item'Class;
procedure View_write (Stream : not null access ... |
pylisa/src/main/antlr/Python3Parser.g4 | UniVE-SSV/pylisa | 1 | 3408 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 by <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
*... |
cppcrypto/3rdparty/sha256_avx2_rorx2.asm | crashdemons/kerukuro-cppcrypto | 0 | 173683 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (c) 2012, Intel Corporation
;
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are
; met:
;
; * Redistributions of ... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b24b.ada | best08618/asylo | 7 | 17370 | <reponame>best08618/asylo
-- C87B24B.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 contai... |
lib/mode9-plot.asm | OSToastBach/proto-arc | 1 | 103972 | <gh_stars>1-10
; ============================================================================
; Plot routines
; Spans, lines, polygons
; ============================================================================
.equ _UNROLL_SPAN, 1
; reserved r15, r14, r13
; preserve r7, r8, r9, r12
; passed in r0, r3, r4
; R0=x_s... |
source/parser_fsm.ads | jquorning/CELLE | 0 | 27820 | <gh_stars>0
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Sessions;
with Parser_Dat... |
alloy4fun_models/trashltl/models/10/MkgbABfzxavzQs3Cf.als | Kaixi26/org.alloytools.alloy | 0 | 387 | open main
pred idMkgbABfzxavzQs3Cf_prop11 {
always File not in Protected after File in Protected
}
pred __repair { idMkgbABfzxavzQs3Cf_prop11 }
check __repair { idMkgbABfzxavzQs3Cf_prop11 <=> prop11o } |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2079.asm | ljhsiun2/medusa | 9 | 9710 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1edcb, %rcx
nop
nop
nop
and $20487, %rsi
mov $0x6162636465666768, %r10
movq %r10, %xmm5
vmovups %ymm5, (%rcx)
nop
nop
nop
xor $184, %rax
lea addresses_normal_ht+0xca0b, %r11... |
assembly/mbr-loader/code.asm | nydevel/edu | 0 | 174425 | <filename>assembly/mbr-loader/code.asm
org 0x7c00
;********************************************************************;
;* Banner on start *;
;********************************************************************;
mov si, message_banner
call print_message
;... |
alloy4fun_models/trashltl/models/9/xJctaLgGbxory2p3X.als | Kaixi26/org.alloytools.alloy | 0 | 4288 | <reponame>Kaixi26/org.alloytools.alloy
open main
pred idxJctaLgGbxory2p3X_prop10 {
always (Protected in Protected')
}
pred __repair { idxJctaLgGbxory2p3X_prop10 }
check __repair { idxJctaLgGbxory2p3X_prop10 <=> prop10o } |
src/el-expressions-parser.ads | jquorning/ada-el | 6 | 18687 | -----------------------------------------------------------------------
-- el-expressions-parsers -- Parser for Expression Language
-- Copyright (C) 2009, 2010, 2013, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except... |
programs/oeis/310/A310521.asm | neoneye/loda | 22 | 170129 | <filename>programs/oeis/310/A310521.asm
; A310521: Coordination sequence Gal.5.133.1 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,4,10,16,22,26,32,38,44,48,52,58,64,70,74,80,86,92,96,100,106,112,118,122,128,134,140,144,148,154,1... |
antlr-plugin/src/main/antlr4/org/nemesis/antlr/v4/netbeans/v8/tokens/code/checking/impl/TokensLexer.g4 | timboudreau/ANTLR4-Plugins-for-NetBeans | 1 | 4326 | /*
BSD License
Copyright (c) 2016, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the foll... |
test/asset/agda-stdlib-1.0/Data/Vec/Relation/Binary/Equality/Propositional/WithK.agda | omega12345/agda-mode | 0 | 2642 | <gh_stars>0
------------------------------------------------------------------------
-- The Agda standard library
--
-- Code related to vector equality over propositional equality that
-- makes use of heterogeneous equality
------------------------------------------------------------------------
{-# OPTIONS --with-K -... |
Cubical/Algebra/CommRing/Properties.agda | lpw25/cubical | 0 | 7808 | <filename>Cubical/Algebra/CommRing/Properties.agda
{-# OPTIONS --safe #-}
module Cubical.Algebra.CommRing.Properties where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Equiv.HalfAdjoint
open import Cubical.Foundations.HLevels
open import Cubical.Foundati... |
src/bb-gui.adb | jorge-real/Ball-On-Beam | 4 | 4231 | ------------------------------------------------------------
-- B B . G U I --
-- --
-- Spec --
-- --
-- Graphical U... |
programs/oeis/131/A131358.asm | karttu/loda | 0 | 162830 | <filename>programs/oeis/131/A131358.asm
; A131358: a(3*k) = 0, a(3*k+1) = k+1, a(3*k+2) = -k.
; 0,1,0,0,2,-1,0,3,-2,0,4,-3,0,5,-4,0,6,-5,0,7,-6,0,8,-7,0,9,-8,0,10,-9,0,11,-10,0,12,-11,0,13,-12,0,14,-13,0,15,-14,0,16,-15,0,17,-16,0,18,-17,0,19,-18,0,20,-19,0,21,-20,0,22,-21,0,23,-22,0,24,-23,0,25,-24,0,26,-25,0,27,-26,0... |
install/scripts/modifier.scpt | CoderVikas/mindotfiles | 0 | 3388 | <reponame>CoderVikas/mindotfiles
#!/usr/bin/osascript
#
# Script to swap the Command and Option keys
# in the System Preferences Keyboard settings.
#
# Helpful if using a PC keyboard
#
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.keyboard"
delay 1
end tell
... |
source/system.asm | Krazune/BFASM | 0 | 15985 | ; Description:
; Some Linux system calls, and related defines.
;
; License:
; MIT License
;
; Copyright (c) 2019 <NAME>
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restric... |
src/Data/Fin/PigeonHole.agda | tizmd/agda-finitary | 0 | 15641 | <gh_stars>0
{-# OPTIONS --safe --without-K #-}
module Data.Fin.PigeonHole where
open import Data.Fin as Fin
open import Data.Fin.Properties
open import Data.Product hiding (swap)
open import Relation.Nullary
import Data.Nat as ℕ
import Data.Nat.Properties as ℕ
open import Relation.Binary.PropositionalEquality as PropE... |
Task/URL-decoding/Ada/url-decoding-1.ada | LaudateCorpus1/RosettaCodeData | 1 | 15857 | <reponame>LaudateCorpus1/RosettaCodeData<filename>Task/URL-decoding/Ada/url-decoding-1.ada<gh_stars>1-10
with AWS.URL;
with Ada.Text_IO; use Ada.Text_IO;
procedure Decode is
Encoded : constant String := "http%3A%2F%2Ffoo%20bar%2F";
begin
Put_Line (AWS.URL.Decode (Encoded));
end Decode;
|
TurtleTools/Examples/test_cmp.asm | foxostro/TurtleTTL | 1 | 28423 | <reponame>foxostro/TurtleTTL
LI D, 0xff
beginning:
LI A, 254
LI B, 255
CMP
CMP
LXY not_equal
JNE
NOP
NOP
LI D, 1
HLT
not_equal:
LI D, 0
HLT |
projects/batfish/src/main/antlr4/org/batfish/grammar/arista/Arista_ptp.g4 | ton31337/batfish | 763 | 6538 | <reponame>ton31337/batfish<gh_stars>100-1000
parser grammar Arista_ptp;
import Arista_common;
options {
tokenVocab = AristaLexer;
}
ptp_domain_number: uint8; // 0-255
s_ptp: PTP (
ptp_domain
| ptp_forward_v1
| ptp_mode
| ptp_source
| ptp_ttl
);
ptp_domain: DOMAIN num = ptp_domain_number NEWLINE;
ptp_f... |
src/code.asm | w1ckedsick/4me | 0 | 7376 | ADD r2, r0, r0, 3
ADD r1, r0, r0, 4
ADD r3, r1, r2, 0
ST r3, r2, r0, 0x202
ST r3, r2, r0, 0x201
LD r2, r1, r0, 0x201
LD r1, r0, r0, 0x201
ADD r4, r1, r2, 1
ADD r6, r0, r0, 0xffeb
DIV r7, r6, r0, 4
DIVU r8, r6, r0, 4
ADD r14, r0, r0, 0xbeef
ADD r9, r0, r0, 0xfff7
LSR r10, r9, r0, 0x1
ASR r11, r9, r0, 0x1
add r13, r0... |
nv_sprite_extra_macs.asm | nealvis/nv_c64_util | 0 | 171002 | //////////////////////////////////////////////////////////////////////////////
// nv_sprite_extra_macs.asm
// Copyright(c) 2021 <NAME>.
// License: MIT. See LICENSE file in root directory.
//////////////////////////////////////////////////////////////////////////////
// macros to access the sprite extra data block
// i... |
Task/Fibonacci-sequence/Ada/fibonacci-sequence-3.ada | LaudateCorpus1/RosettaCodeData | 1 | 19185 | <gh_stars>1-10
with Ada.Text_IO, Ada.Command_Line, Crypto.Types.Big_Numbers;
procedure Fibonacci is
X: Positive := Positive'Value(Ada.Command_Line.Argument(1));
Bit_Length: Positive := 1 + (696 * X) / 1000;
-- that number of bits is sufficient to store the full result.
package LN is new Crypto.Types.Big... |
llvm-gcc-4.2-2.9/gcc/ada/a-cgaaso.adb | vidkidz/crossbridge | 1 | 8945 | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
programs/oeis/001/A001048.asm | karttu/loda | 0 | 22284 | ; A001048: a(n) = n! + (n-1)!.
; 2,3,8,30,144,840,5760,45360,403200,3991680,43545600,518918400,6706022400,93405312000,1394852659200,22230464256000,376610217984000,6758061133824000
mov $1,$0
add $1,2
fac $0
mul $1,$0
|
src/asf-components-widgets-progress.ads | jquorning/ada-asf | 0 | 21177 | -----------------------------------------------------------------------
-- components-widgets-progress -- Simple progress bar
-- Copyright (C) 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the ... |
Assembly/overlay9_20.asm | WildGenie/Ninokuni | 14 | 23826 | ;;----------------------------------------------------------------------------;;
;; Hacks for overlay 20 for arm9
;; Copyright 2014 <NAME> (aka pleonex)
;;
;; 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... |
oeis/234/A234740.asm | neoneye/loda-programs | 11 | 93224 | <gh_stars>10-100
; A234740: Sum of the eleventh powers of the first n primes.
; 2048,179195,49007320,2026334063,287338004674,2079498398711,36351394706344,152841653604563,1105651411518490,13306161177224319,38714638073629150,216632259853089563,766961291569338004,1696255031040560711,4168414246124573014,1343745017549676461... |
Transynther/x86/_processed/NONE/_st_un_/i9-9900K_12_0xa0.log_5539_1797.asm | ljhsiun2/medusa | 9 | 19715 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1d324, %rsi
lea addresses_A_ht+0xab44, %rdi
nop
nop
nop
nop
nop
and $53043, %r15
mov $16, %rcx
rep movsl
nop
and $53745, %r10
lea addresses_WT_ht+0x6924, %rsi... |
proglangs-learning/Agda/plfa-exercises/Practice5.agda | helq/old_code | 0 | 10151 | module plfa-exercises.Practice5 where
open import Data.Nat using (ℕ; zero; suc)
open import Data.String using (String; _≟_)
open import Relation.Binary.PropositionalEquality using (_≡_; _≢_; refl; cong)
open import Relation.Nullary using (Dec; yes; no; ¬_)
open import plfa.part1.Isomorphism using (_≲_)
Id : Set
Id = ... |
data/mapHeaders/celadonmartroof.asm | adhi-thirumala/EvoYellow | 16 | 93357 | CeladonMartRoof_h:
db LOBBY ; tileset
db CELADON_MART_ROOF_HEIGHT, CELADON_MART_ROOF_WIDTH ; dimensions (y, x)
dw CeladonMartRoofBlocks, CeladonMartRoofTextPointers, CeladonMartRoofScript ; blocks, texts, scripts
db $00 ; connections
dw CeladonMartRoofObject ; objects
|
assembler_disassembler/src/DisassemblerGrammar.g4 | fl4shk/snow64_cpu | 1 | 2293 | <reponame>fl4shk/snow64_cpu<gh_stars>1-10
grammar DisassemblerGrammar;
// Yep, this is the whole grammar.
// Short, isn't it?
// Note that this takes Verilog VMEM format text (such as that generated by
// the assembler) as input.
// Parser rules
program:
line*
;
line:
TokOrg TokNewline
| TokHexNum TokNewline
|... |
source/league/ucd/matreshka-internals-unicode-ucd-core_01ee.ads | svn2github/matreshka | 24 | 28612 | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
bb-runtimes/examples/test-bsp/testfpu.adb | JCGobbi/Nucleo-STM32G474RE | 0 | 16811 | <filename>bb-runtimes/examples/test-bsp/testfpu.adb
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- ... |
src/asm/prediction-arm-neon.asm | zimond/parng | 24 | 242999 | <filename>src/asm/prediction-arm-neon.asm
@ parng/prediction-arm-neon.asm
@
@ Copyright (c) 2016 Mozilla Foundation
.global parng_predict_scanline_none_packed_32bpp
.global parng_predict_scanline_none_strided_32bpp
.global parng_predict_scanline_none_packed_24bpp
.global parng_predict_scanline_none_strided_24bpp
.glob... |
zerepoch-metatheory/test/IntegerLiteral.agda | Quantum-One-DLT/zerepoch | 0 | 8079 | <gh_stars>0
module test.IntegerLiteral where
open import Type
open import Declarative
open import Builtin
open import Builtin.Constant.Type
open import Builtin.Constant.Term Ctx⋆ Kind * # _⊢⋆_ con size⋆
open import Agda.Builtin.Sigma
open import Data.Integer
open import Data.Nat
-- zerepoch/zerepoch-core/test/data/in... |
source/tasking/machine-pc-freebsd/s-multip.ads | ytomino/drake | 33 | 19292 | <reponame>ytomino/drake
pragma License (Unrestricted);
-- Ada 2012, specialized for Darwin (or FreeBSD)
package System.Multiprocessors is
pragma Preelaborate;
type CPU_Range is range 0 .. Integer'Last;
Not_A_Specific_CPU : constant CPU_Range := 0;
subtype CPU is CPU_Range range 1 .. CPU_Range'Last;
fu... |
Definition/LogicalRelation/Substitution/Introductions/IdUniv.agda | CoqHott/logrel-mltt | 2 | 5302 | <reponame>CoqHott/logrel-mltt
{-# OPTIONS --safe #-}
open import Definition.Typed.EqualityRelation
module Definition.LogicalRelation.Substitution.Introductions.IdUniv {{eqrel : EqRelSet}} where
open EqRelSet {{...}}
open import Definition.Untyped
open import Definition.Untyped.Properties
open import Definition.Typed... |
spring semester 2 course/operatin_system_labs/lab_2/lab_2.asm | andrwnv/study-progs | 4 | 15910 | data segment para public 'data'
text db 'Input two number w/o space:$'
new_line db 13, 10, '$' ; 13&10 need for move cursor to start of program, btw when prog start we have hidden commands
data ends
stk segment stack
db 256 dup ('?')
stk ends
code segment para 'code'
main proc
assume cs:code,... |
Categories/Object/Indexed.agda | copumpkin/categories | 98 | 14722 | <reponame>copumpkin/categories<gh_stars>10-100
{-# OPTIONS --universe-polymorphism #-}
open import Categories.Category
open import Categories.Support.Equivalence
module Categories.Object.Indexed {o ℓ e c q} (C : Category o ℓ e) (B : Setoid c q) where
open import Categories.Support.SetoidFunctions
open Category C
open... |
test/asset/agda-stdlib-1.0/Algebra/FunctionProperties/Core.agda | omega12345/agda-mode | 0 | 3702 | <gh_stars>0
------------------------------------------------------------------------
-- The Agda standard library
--
-- Properties of functions, such as associativity and commutativity
------------------------------------------------------------------------
-- This file contains some core definitions which are reexpor... |
programs/oeis/091/A091954.asm | jmorken/loda | 1 | 92982 | <reponame>jmorken/loda<filename>programs/oeis/091/A091954.asm
; A091954: Number of odd proper divisors of n. That is, the number of odd divisors of n that are less than n.
; 0,1,1,1,1,2,1,1,2,2,1,2,1,2,3,1,1,3,1,2,3,2,1,2,2,2,3,2,1,4,1,1,3,2,3,3,1,2,3,2,1,4,1,2,5,2,1,2,2,3,3,2,1,4,3,2,3,2,1,4,1,2,5,1,3,4,1,2,3,4,1,3,1,... |
libsrc/_DEVELOPMENT/arch/zxn/esxdos/z80/asm_esx_m_gethandle.asm | jpoikela/z88dk | 640 | 88037 | <reponame>jpoikela/z88dk
; unsigned char esx_m_gethandle(void)
INCLUDE "config_private.inc"
SECTION code_esxdos
PUBLIC asm_esx_m_gethandle
asm_esx_m_gethandle:
; MAY NOT BE EQUIVALENT TO ESXDOS FUNCTION
;
; enter : none
;
; exit : hl = file handle (no error checking)
;
; uses : af, bc, de, h... |
include/sf-window-gl.ads | danva994/ASFML-1.6 | 1 | 14328 | <filename>include/sf-window-gl.ads
-- ////////////////////////////////////////////////////////////
-- //
-- // 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 autho... |
src/prev/phase/lexan/PrevLexer.g4 | jakvrh1/prev21-compiler | 0 | 2252 | lexer grammar PrevLexer;
@header {
package prev.phase.lexan;
import prev.common.report.*;
import prev.data.sym.*;
}
@members {
@Override
public Token nextToken() {
return (Token) super.nextToken();
}
}
LPAREN : '(' ;
RPAREN : ')' ;
LBRACKET : '[' ;
RBRACKET : ']' ;
LBRACE ... |
programs/oeis/024/A024118.asm | neoneye/loda | 22 | 240184 | <filename>programs/oeis/024/A024118.asm<gh_stars>10-100
; A024118: a(n) = 10^n - n^4.
; 1,9,84,919,9744,99375,998704,9997599,99995904,999993439,9999990000,99999985359,999999979264,9999999971439,99999999961584,999999999949375,9999999999934464,99999999999916479,999999999999895024,9999999999999869679,99999999999999840000,... |
programs/oeis/227/A227719.asm | neoneye/loda | 22 | 91670 | ; A227719: Floor(1/s(n)), where s(n) = n*log(1+1/n) - (2n-1)/(2n).
; 5,16,33,56,86,121,162,209,263,322,387,458,536,619,708,803,905,1012,1125,1244,1370,1501,1638,1781,1931,2086,2247,2414,2588,2767,2952,3143,3341,3544,3753,3968,4190,4417,4650,4889,5135,5386,5643,5906,6176,6451,6732,7019,7313,7612,7917,8228,8546,8869,9198... |
repositories-parse_repo_spec.adb | annexi-strayline/AURA | 13 | 15379 | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
src/test/resources/testData/annotator/not_found_dic.scpt | stigger/AppleScript-IDEA | 18 | 582 | tell <warning descr="Application \"Unknown\" not found">application "Unknown"</warning>
end tell |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array9.adb | best08618/asylo | 7 | 20850 | <reponame>best08618/asylo
-- { dg-do run }
procedure Array9 is
V1 : String(1..10) := "1234567890";
V2 : String(1..-1) := "";
procedure Compare (S : String) is
begin
if S'Size /= 8*S'Length then
raise Program_Error;
end if;
end;
begin
Compare ("");
Compare ("1234");
Compare (V1);
Comp... |
smsq/smsq/buse.asm | olifink/smsqe | 0 | 176053 | <filename>smsq/smsq/buse.asm
; QL Vector Bus Error Handler 1993 <NAME>
section base
xdef sms_buse
include 'dev8_keys_68000'
include 'dev8_keys_sys'
include 'dev8_smsq_smsq_base_keys'
;+++
; If the exception is caused by an access to a QL exception vector
; the operation is performed and excution contines... |
source/image/required/s-imgboo.adb | ytomino/drake | 33 | 8591 | <filename>source/image/required/s-imgboo.adb
package body System.Img_Bool is
procedure Image_Boolean (
V : Boolean;
S : in out String;
P : out Natural) is
begin
if V then
pragma Assert (S'Length >= 4);
P := S'First + 3;
S (S'First .. P) := "TRUE";
else
... |
function/binarysearch.asm | zaoad/assembly- | 0 | 9393 | segment .data
scfmt : dq "%lld" ,0
newline : dq "" ,10, 0
prfmt: dq "%lld" ,10, 0
printindex: dq "index is %lld" ,10, 0
printnoelementexist: dq "%lld is not exist in index",10,0
segment .bss
a: resq 1
b: resq 1
cnt: resq 1
val: resq 1
array resq 21
segment .text
global main
extern scanf
extern printf
mai... |
agda/Relation/Nullary.agda | oisdk/combinatorics-paper | 6 | 11896 | {-# OPTIONS --cubical --safe #-}
module Relation.Nullary where
|
programs/oeis/155/A155629.asm | neoneye/loda | 22 | 95833 | ; A155629: 8^n-4^n+1^n
; 1,5,49,449,3841,31745,258049,2080769,16711681,133955585,1072693249,8585740289,68702699521,549688705025,4397778075649,35183298347009,281470681743361,2251782633816065,18014329790005249,144114913197948929
mov $1,4
pow $1,$0
mov $2,8
pow $2,$0
sub $2,$1
mov $0,$2
add $0,1
|
PIM/Projet/src/th.adb | Hathoute/ENSEEIHT | 1 | 25378 | with Ada.Unchecked_Deallocation;
package body TH is
procedure Initialiser(Sda: out T_TH; Capacite: in Integer) is
begin
Sda.Elements := new T_Tab_LCA(1..Capacite);
Sda.Capacite := Capacite;
for i in 1..Capacite loop
T_LCA_C.Initialiser(Sda.Elements(i));
end loop;
end Initialiser;
functi... |
src/aids-utilities.adb | OneWingedShark/ada-probe | 0 | 26531 | with
Ada.Unchecked_Conversion;
Package Body Aids.Utilities is
Generic
Type Source_Index is (<>);
Type Source_Element is limited private;
Type Source_Array is Array (Source_Index range <>) of Source_Element;
Type Target_Index is (<>);
Type Target_Element is limited pr... |
programs/oeis/285/A285779.asm | karttu/loda | 1 | 247382 | ; A285779: Parity index: number of integers z with 1 <= z <= n for which A010060(z) = A010060(n), negated if A010060(n) = 1.
; 0,-1,-2,1,-3,2,3,-4,-5,4,5,-6,6,-7,-8,7,-9,8,9,-10,10,-11,-12,11,12,-13,-14,13,-15,14,15,-16,-17,16,17,-18,18,-19,-20,19,20,-21,-22,21,-23,22,23,-24,24,-25,-26,25,-27,26,27,-28,-29,28,29,-30,30... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35503e.ada | best08618/asylo | 7 | 2567 | -- C35503E.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/Z80/G007_MON_source_recreation.asm | sparks-c16/zasm | 43 | 97359 | #!/usr/local/bin/zasm -o original/
;
;
;
#target rom ; declare target file format
#code ROM,$3800,$0800 ; declare code segment name, start and size
#if 1
;
; ZX81 ROM addresses
;
NEW equ $03C3
CLS equ $0A2A
SET_FIELD equ $090B
PR_STR_4 equ $0B6B
SCROLL equ $0C0E
DECODE equ $07BD
;
; ZX81... |
source/interfaces/i-cpoint.adb | ytomino/drake | 33 | 5761 | with System.Storage_Elements;
package body Interfaces.C.Pointers is
use type System.Storage_Elements.Storage_Offset;
-- no System.Address_To_Access_Conversions for modifying to Pure
function To_Pointer (Value : System.Address) return access Element
with Import, Convention => Intrinsic;
function To_A... |
programs/oeis/196/A196410.asm | karttu/loda | 0 | 169956 | ; A196410: a(n) = n*2^(n-5).
; 5,12,28,64,144,320,704,1536,3328,7168,15360,32768,69632,147456,311296,655360,1376256,2883584,6029312,12582912,26214400,54525952,113246208,234881024,486539264,1006632960,2080374784,4294967296,8858370048,18253611008,37580963840,77309411328,158913789952,326417514496,670014898176,137438953472... |
MIPS/hw3.asm | qiyuanfang1998/CSE220Work | 0 | 8996 |
##############################################################
# Homework #3
# name: <NAME>
# sbuid: 111054484
##############################################################
.text
#################################################################
#Fixed Hw 2 functions
##################################################... |
libsrc/_DEVELOPMENT/font/fzx/fonts/utz/Blokz/_ff_utz_Blokz.asm | jpoikela/z88dk | 640 | 246007 |
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_utz_Blokz
_ff_utz_Blokz:
BINARY "font/fzx/fonts/utz/Blokz/blokz.fzx"
|
bead/bead2/2/main.adb | balintsoos/LearnAda | 0 | 18596 | <reponame>balintsoos/LearnAda
with Garden_Pkg, tools;
use Garden_Pkg, tools;
procedure main is
task Mantis;
task Gardener;
task body Mantis is
pos : Position := GetRandPos;
hp : Natural := 1;
begin
while hp > 0 loop
if GetField(pos) = true then
hp := hp - 1;
Output.Puts("Man... |
mbee_source/chr2ram.asm | dgchurchill/nanowasp-tools | 2 | 175696 | <reponame>dgchurchill/nanowasp-tools
;
; DGC 2011-06-16: This program appears to copy the character ROM data
; to memory location 300H. I think the idea was to
; run this program and then run the CP/M command that
; saves a chunk of memory to disk.
;
ORG 100H
;
; ... |
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xa0.log_21829_1126.asm | ljhsiun2/medusa | 9 | 29938 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1b8c8, %rsi
lea addresses_WC_ht+0x1d280, %rdi
xor %r12, %r12
mov $121, %rcx
rep movsb
nop
nop
sub $49319, %rsi
lea addresses_normal_ht+0x19c70, %r8
no... |
alloy4fun_models/trashltl/models/4/ns82SNAfv5vrHogsq.als | Kaixi26/org.alloytools.alloy | 0 | 221 | <filename>alloy4fun_models/trashltl/models/4/ns82SNAfv5vrHogsq.als
open main
pred idns82SNAfv5vrHogsq_prop5 {
eventually #File' < #File
}
pred __repair { idns82SNAfv5vrHogsq_prop5 }
check __repair { idns82SNAfv5vrHogsq_prop5 <=> prop5o } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.