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 |
|---|---|---|---|---|
sanity3.asm | MahtabEK/OS---XV6 | 0 | 105200 | <filename>sanity3.asm
_sanity3: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "types.h"
#include "stat.h"
#include "user.h"
int main(){
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(... |
P6/P6Judger - 100 testpoints/testpoint/testpoint47.asm | flyinglandlord/BUAA-CO-2021 | 5 | 95774 | <gh_stars>1-10
ori $1, $0, 1
ori $2, $0, 4
ori $3, $0, 11
ori $4, $0, 9
sw $3, 0($0)
sw $4, 4($0)
sw $3, 8($0)
sw $2, 12($0)
sw $1, 16($0)
sw $1, 20($0)
sw $1, 24($0)
sw $1, 28($0)
sw $4, 32($0)
sw $4, 36($0)
sw $1, 40($0)
sw $1, 44($0)
sw $2, 48($0)
sw $1, 52($0)
sw $3, 56($0)
sw $4, 60($0)
sw $2, 64($0)
sw $4, 68($0)... |
test/asm/use-label-outside-section.asm | michealccc/rgbds | 522 | 246919 | lab:
PRINTLN lab-lab
|
FormalAnalyzer/models/apps/OpeningDoorTogglesSwitch.als | Mohannadcse/IoTCOM_BehavioralRuleExtractor | 0 | 4573 | module app_OpeningDoorTogglesSwitch
open IoTBottomUp as base
open cap_runIn
open cap_now
open cap_contactSensor
open cap_switch
one sig app_OpeningDoorTogglesSwitch extends IoTApp {
contact1 : one cap_contactSensor,
switch1 : one cap_switch,
state : one cap_state,
} {
rules = r
//capabilities = c... |
wasm/part0902/main.asm | Bigsby/slae | 0 | 26731 | .386
.model flat, stdcall
option casemap :none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\masm32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\masm32.lib
.data
FirstMessage db "First Message", 13, 10, 0
SecondMessage db "Second M... |
scripts/itunes-switch-airplay.applescript | davenquinn/shell-config | 0 | 2696 | on run argv
tell application "System Events"
if application process "iTunes" exists then
set currentDate to current date
set currentHour to (currentDate's hours)
tell application "iTunes"
if (currentHour > 8 and currentHour < 23) then
log "Switching airplay"
try
set selectedAirplayDevice... |
examples/3rd-party/Mancala/mancala.asm | brickpool/hp35s | 3 | 24779 | ; https://brianddk.github.io/prog/mancala/mancala.asm
; [rights] Copyright <NAME>. (brianddk) 2016 https://github.com/brianddk
; [license] Licensed under Apache 2.0 https://www.apache.org/licenses/LICENSE-2.0
; [repo] https://github.com/brianddk/brianddk.github.io/blob/master/prog/mancala/mancala.asm
;
; Mancala g... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array27_pkg.ads | best08618/asylo | 7 | 11476 | package Array27_Pkg is
subtype Outer_Type is String (1 .. 8);
subtype Inner_Type is String (1 .. 3);
function F return Inner_Type;
end Array27_Pkg;
|
m7/vocabulary/vocabulary.asm | paulscottrobson/aquarius-chess | 1 | 168372 | <filename>m7/vocabulary/vocabulary.asm<gh_stars>1-10
; --------------------------------------
; <
; --------------------------------------
word_1000:
call CompileCallFollowing
ld a,h ; check if signs different.
xor d
add a,a ; CS if different
jr nc,__less_samesign
ld a,d ... |
endterm_mysolution/grade3.adb | jamalakhaligova/ADA | 0 | 16525 | with Ada.Text_IO,Ada.Calendar, Ada.Numerics.Discrete_Random; use Ada.Text_IO;
procedure Grade3 is
type Barr is array (Natural range <>,Natural range <>) of Boolean;
protected Organism is
entry Move(X,Y : Natural; is_infected : out Boolean);
function inArea(x,y:Natural) return Boolean;
proce... |
Library/Math/Float/floatConvert.asm | steakknife/pcgeos | 504 | 245054 | <reponame>steakknife/pcgeos<filename>Library/Math/Float/floatConvert.asm
COMMENT @-----------------------------------------------------------------------
Copyright (c) Geoworks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: floatConvert.asm
AUTHOR: Cheng, 1/91
ROUTINES:
Name Descri... |
Univalence/Obsolete/FinVec.agda | JacquesCarette/pi-dual | 14 | 11164 | {-# OPTIONS --without-K #-}
-- This should really be called FinSet. From nlab:
-- FinSet is the category of finite sets and all functions between
-- them: the full subcategory of Set on finite sets. It is easy (and
-- thus common) to make FinSet skeletal; there is one object for each
-- natural number n (including n=... |
resources/scripts/api/bgptools.ads | kopfjager007/Amass | 0 | 10989 | <reponame>kopfjager007/Amass
-- Copyright © by <NAME> 2022. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
-- SPDX-License-Identifier: Apache-2.0
local json = require("json")
name = "BGPTools"
type = "misc"
local bgptoolsWhoisAddress = ""
-- bgp... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_5083_1049.asm | ljhsiun2/medusa | 9 | 102000 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %rsi
lea addresses_D_ht+0x1712d, %rsi
sub %r14, %r14
mov $0x6162636465666768, %r13
movq %r13, %xmm4
vmovups %ymm4, (%rsi)
dec %r12
pop %rsi
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r... |
generated/natools-static_maps-s_expressions-templates-dates-t.adb | faelys/natools | 0 | 30620 | -- Generated at 2015-06-24 18:19:13 +0000 by Natools.Static_Hash_Maps
-- from src/natools-s_expressions-templates-dates-maps.sx
with Natools.Static_Maps.S_Expressions.Templates.Dates.Cmds;
with Natools.Static_Maps.S_Expressions.Templates.Dates.Zones;
function Natools.Static_Maps.S_Expressions.Templates.Dates.T
ret... |
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_488.asm | ljhsiun2/medusa | 9 | 160589 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x31a8, %rsi
lea addresses_D_ht+0x166e8, %rdi
clflush (%rsi)
nop
cmp %rbp, %rbp
mov $22, %rcx
rep movsw
nop
nop
nop
nop
nop
sub $9349, %rsi
lea address... |
programs/oeis/129/A129354.asm | jmorken/loda | 1 | 80703 | ; A129354: Duplicate of A129628.
; 1,3,2,6,2,6,2,10,3,6,2,12,2,6,4,15,2,9,2,12,4,6,2,20,3,6,4,12,2,12,2,21,4,6,4,18,2,6,4,20,2,12,2,12,6,6,2,30,3,9,4,12,2,12,4,20,4,6,2,24,2,6,6,28,4,12,2,12,4
mov $27,$0
mov $29,2
lpb $29
clr $0,27
mov $0,$27
sub $29,1
add $0,$29
sub $0,1
lpb $0
mov $1,$0
sub $1,$0... |
src/base/f64_ilogb.asm | rainer-erdmann/libm64 | 0 | 164901 | ;
; FILENAME : f64_ilogb.asm
;
; DESCRIPTION :
; int ilogbd(double v)
;
; assembly module written for MASM/NASM
;
; AUTHOR : <NAME>
;
; Copyright 2016-2019 <NAME>
;
; License: see accompanying file license.txt
;
; CHANGES :
;
; REF NO VERSION DATE WHO DETAIL
;
IFDEF @Version... |
sources/local_message_passing.adb | HeisenbugLtd/msg_passing | 0 | 22251 | ------------------------------------------------------------------------
-- Copyright (C) 2010-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 ... |
spotify_prev.scpt | yantze/applescript-player-control | 2 | 4222 | tell application "Spotify" to previous track
|
programs/oeis/295/A295317.asm | neoneye/loda | 22 | 101877 | <filename>programs/oeis/295/A295317.asm
; A295317: Sum of the products of the smaller and larger parts of the partitions of n into two distinct parts with the smaller part odd.
; 0,0,2,3,4,5,18,22,26,30,64,73,82,91,156,172,188,204,310,335,360,385,542,578,614,650,868,917,966,1015,1304,1368,1432,1496,1866,1947,2028,2109,... |
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_DrawUpdateStructIfVal_fastcall.asm | jpoikela/z88dk | 640 | 29766 |
; sp1_DrawUpdateStructIfVal(struct sp1_update *u)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_DrawUpdateStructIfVal_fastcall
EXTERN asm_sp1_DrawUpdateStructIfVal
defc _sp1_DrawUpdateStructIfVal_fastcall = asm_sp1_DrawUpdateStructIfVal
|
kernel/cpu/mem.asm | Irchh/uefi-os | 3 | 103224 | <reponame>Irchh/uefi-os
global read_cr3
global load_pml4t
read_cr3:
mov rax, cr3
ret
load_pml4t:
cli
;ret
push rdi
mov rdi, cr4
or rdi, 1<<5
mov cr4, rdi
pop rdi
mov cr3, rdi
sti
ret |
electives/pw/lab/lista-2/ada/receiver.adb | jerry-sky/academic-notebook | 4 | 10262 |
package body Receiver is
task body ReceiverTask is
receivedMessagesCount: Natural := 0;
begin
loop
accept ReceiveMessage do
receivedMessagesCount := Natural'Succ(receivedMessagesCount);
end ReceiveMessage;
if k = receivedMessagesCount then
... |
src/regex-utilities-string_buffers.ads | skordal/ada-regex | 2 | 13987 | -- Ada regular expression library
-- (c) <NAME> 2020 <<EMAIL>>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
private with Ada.Strings.Unbounded;
package Regex.Utilities.String_Buffers is
-- String buffer type:
type String_Buffer is tagged limited private;
-- Creates a string buff... |
libsrc/_DEVELOPMENT/adt/p_forward_list_alt/z80/asm_p_forward_list_alt_push_back.asm | jpoikela/z88dk | 640 | 170499 |
; ===============================================================
; Dec 2013
; ===============================================================
;
; void p_forward_list_alt_push_back(p_forward_list_alt_t *list, void *item)
;
; Add item to the end of the list.
;
; ========================================================... |
programs/oeis/076/A076312.asm | karttu/loda | 1 | 87457 | <filename>programs/oeis/076/A076312.asm
; A076312: a(n) = floor(n/10) + 2*(n mod 10).
; 0,2,4,6,8,10,12,14,16,18,1,3,5,7,9,11,13,15,17,19,2,4,6,8,10,12,14,16,18,20,3,5,7,9,11,13,15,17,19,21,4,6,8,10,12,14,16,18,20,22,5,7,9,11,13,15,17,19,21,23,6,8,10,12,14,16,18,20,22,24,7,9,11,13,15,17,19,21,23,25,8,10,12,14,16,18,20,... |
Projetos/H-Assembler/Assembler/src/test/resources/testLeaw.nasm | RaphaelAzev/Z01-GrupoH-2- | 2 | 176230 | ; Arquivo: testLeaw.nasm
; Curso: Elementos de Sistemas
; Criado por: <NAME>
; Data: 16/04/2017
leaw $0,%A
leaw $1,%A
leaw $2,%A
leaw $R0,%A
leaw $R1,%A
leaw $R2,%A |
programs/oeis/225/A225972.asm | jmorken/loda | 1 | 174803 | ; A225972: The number of binary pattern classes in the (2,n)-rectangular grid with 3 '1's and (2n-3) '0's: two patterns are in same class if one of them can be obtained by a reflection or 180-degree rotation of the other.
; 0,0,1,6,14,32,55,94,140,208,285,390,506,656,819,1022,1240,1504,1785,2118,2470,2880,3311,3806,432... |
src/firmware-tests/Platform/Main/ResetDummies.asm | pete-restall/Cluck2Sesame-Prototype | 1 | 160707 | <filename>src/firmware-tests/Platform/Main/ResetDummies.asm
#include "Platform.inc"
radix decimal
ResetDummies code
global initialiseAfterPowerOnReset
global initialiseAfterBrownOutReset
global initialiseAfterMclrReset
initialiseAfterPowerOnReset:
return
initialiseAfterBrownOutReset:
return
initialiseAfterM... |
ada/src/afrl/cmasi/afrl-cmasi-enumerations.ads | joffreyhuguet/LmcpGen | 0 | 30874 | <reponame>joffreyhuguet/LmcpGen
package afrl.cmasi.enumerations is
type WavelengthBandEnum is (AllAny, EO, LWIR, SWIR, MWIR, Other);
for WavelengthBandEnum use (AllAny => 0, EO => 1, LWIR => 2, SWIR => 3, MWIR => 4, Other => 5);
type AltitudeTypeEnum is (AGL, MSL);
for AltitudeTypeEnum use (AGL => 0, M... |
src/commonAntlrTest/antlr/RewriterTest.g4 | piacenti/dsl-maker | 0 | 3247 | grammar RewriterTest;
main: ID+;
ID: ~[ \t\r\n()'":]+;
|
src/flame.asm | Kannagi/Mega-Mario-TD | 2 | 101869 |
dc.l $00000000
dc.l $00000003
dc.l $00000022
dc.l $00003020
dc.l $00023024
dc.l $00020044
dc.l $00040242
dc.l $00242442
dc.l $00244223
dc.l $02442231
dc.l $02422351
dc.l $04423151
dc.l $04423111
dc.l $00242311
dc.l $00242233
dc.l $00004422
dc.l $010... |
examples/readint.asm | AlessandroFonseca/util.asm | 1 | 97262 | %include '../util.asm'
section .text
global _start
_start:
mov rdi, prompt
call printstr
call readint
imul r14, rax, 2
mov rdi, msg2
call printstr
mov rdi, r14
call printint
call endl
call exit
section .data
prompt: db 'Input a number: ', 0
msg... |
test/Succeed/Issue1922.agda | cruhland/agda | 1,989 | 2100 |
data Bool : Set where
true false : Bool
data Nat : Set where
zero : Nat
suc : Nat → Nat
one : Nat
one = suc zero
two : Nat
two = suc one
data Fin : Nat → Set where
zero : ∀{n} → Fin (suc n)
suc : ∀{n} (i : Fin n) → Fin (suc n)
--This part works as expected:
s : ∀ n → (f : (k : Fin n) → Bool) → Fin (su... |
gfx/pokemon/ivysaur/anim.asm | Dev727/ancientplatinum | 28 | 172539 | frame 0, 06
frame 1, 08
frame 2, 20
frame 1, 06
endanim
|
pwnlib/shellcraft/templates/i386/linux/mprotect_all.asm | kristoff3r/pwntools | 6 | 18442 | <% from pwnlib.shellcraft import common %>
<%page args="clear_ebx = True, fix_null = False"/>
<%docstring>Calls mprotect(page, 4096, PROT_READ | PROT_WRITE | PROT_EXEC) for every page.
It takes around 0.3 seconds on my box, but your milage may vary.
Args:
clear_ebx(bool): If this is set to False, then the shellcode... |
test/bugs/fixed/DotPattern.agda | alhassy/agda | 3 | 5525 | <filename>test/bugs/fixed/DotPattern.agda
module Bug where
data A : Set where
a : A
h : A -> A
h a = a
data B : A -> Set where
b : (x : A) -> B (h x)
data _==_ : {x₁ x₂ : A} -> B x₁ -> B x₂ -> Set where
eqb : {x : A} -> b x == b x
-- The problem here is that we get the constraint h x = h x, which when x is a... |
Task/Towers-of-Hanoi/AppleScript/towers-of-hanoi-2.applescript | LaudateCorpus1/RosettaCodeData | 1 | 4264 | -- hanoi :: Int -> (String, String, String) -> [(String, String)]
on hanoi(n, {a, b, c})
if n > 0 then
hanoi(n - 1, {a, c, b}) & {{a, b}} & hanoi(n - 1, {c, b, a})
else
{}
end if
end hanoi
-- TEST
-- arrow :: (String, String) -> String
on arrow(tuple)
item 1 of tuple & " -> " & item 2... |
programs/oeis/176/A176711.asm | karttu/loda | 1 | 104452 | ; A176711: a(n) = 16n^4 + 64n^3 + 104n^2 + 80n + 21.
; 21,285,1365,4221,10197,21021,38805,66045,105621,160797,235221,332925,458325,616221,811797,1050621,1338645,1682205,2088021,2563197,3115221,3751965,4481685,5313021,6254997,7317021,8508885,9840765,11323221,12967197,14784021,16785405,18983445,21390621,24019797,26884221... |
test/interaction/Issue1842.agda | pthariensflame/agda | 3 | 9533 | <gh_stars>1-10
-- Issue #1842, __IMPOSSIBLE__ showed up in debug output
{-# OPTIONS -v interaction.case:65 #-} -- KEEP
data Bool : Set where
true false : Bool
test : Bool → Bool
test x = {!x!} -- C-c C-c
-- Splitting here with debug output turned on
-- should not crash.
|
ffight/lcs/container/2E.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 80503 | <reponame>zengfr/arcade_game_romhacking_sourcecode_top_secret_data
copyright zengfr site:http://github.com/zengfr/romhack
003A06 movem.l D0-D3, -(A6)
003A0A movem.l D0-D3, -(A6)
009ACA dbra D5, $9ac8
0517D4 move.b ($3e,A6), ($36,A6)
0522CE move.b ($36,A6), ($2e,A6) [container+38, container+3A]
0522D4 mov... |
message/generation/swift-mt-generation/repository/SR2018/grammars/SwiftMtParser_MT566.g4 | Yanick-Salzmann/message-converter-c | 0 | 853 | <reponame>Yanick-Salzmann/message-converter-c<filename>message/generation/swift-mt-generation/repository/SR2018/grammars/SwiftMtParser_MT566.g4<gh_stars>0
grammar SwiftMtParser_MT566;
@lexer::header {
#include "repository/ISwiftMtParser.h"
#include "SwiftMtMessage.pb.h"
#include <vector>
#include <string>
#include "Ba... |
out/CTLC/Equality.agda | JoeyEremondi/agda-soas | 39 | 2974 | {-
This second-order equational theory was created from the following second-order syntax description:
syntax CTLC | ΛC
type
N : 0-ary
_↣_ : 2-ary | r30
¬_ : 1-ary | r30
term
app : α ↣ β α -> β | _$_ l20
lam : α.β -> α ↣ β | ƛ_ r10
throw : α ¬ α -> β
callcc : ¬ α.α -> α
theory
(ƛ... |
example_1.1/src/draw_1_1.adb | rogermc2/GA_Ada | 3 | 3687 |
-- with Blade_Types;
with C3GA;
with C3GA_Draw;
with GA_Maths;
-- with GA_Utilities;
with Metric;
with Multivector_Utilities;
package body Draw_1_1 is
-- ---------------------------------------------------------------------
function Draw_Circle (Render_Program : GL.Objects.Programs.Program;
... |
libsrc/_DEVELOPMENT/adt/bv_priority_queue/c/sdcc_iy/bv_priority_queue_shrink_to_fit_fastcall.asm | jpoikela/z88dk | 640 | 466 | <filename>libsrc/_DEVELOPMENT/adt/bv_priority_queue/c/sdcc_iy/bv_priority_queue_shrink_to_fit_fastcall.asm<gh_stars>100-1000
; int bv_priority_queue_shrink_to_fit_fastcall(bv_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_bv_priority_queue
PUBLIC _bv_priority_queue_shrink_to_fit_fastcall
EXTERN asm_bv_prio... |
programs/oeis/246/A246472.asm | neoneye/loda | 22 | 21552 | <gh_stars>10-100
; A246472: Number of order-preserving (monotone) functions from the power set of 1 = {0} to the power set of n = {0, ..., n-1}.
; 1,3,9,30,109,418,1650,6604,26589,107274,432934,1746484,7040626,28362324,114175812,459344920,1847008989,7423262554,29822432862,119766845860,480833598054,1929896415484,7744047... |
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-traent.ads | JCGobbi/Nucleo-STM32G474RE | 0 | 5330 | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
arch/ARM/STM32/svd/stm32l5x2/stm32_svd-dma.ads | morbos/Ada_Drivers_Library | 2 | 18688 | <gh_stars>1-10
-- This spec has been automatically generated from STM32L5x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.DMA is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- interrupt s... |
tools/uaflex/symbols.adb | faelys/gela-asis | 4 | 28972 | <reponame>faelys/gela-asis<filename>tools/uaflex/symbols.adb
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- ... |
src/API/protypo-api-engine_values-range_iterators.ads | fintatarta/protypo | 0 | 7511 | <gh_stars>0
with Protypo.Api.Engine_Values.Constant_Wrappers;
with Protypo.Api.Engine_Values.Handlers;
--
-- ## What is this?
--
-- A _range iterator_ implements the `Iterator_Interface` and it
-- allows to iterate over an interval between two integers
--
package Protypo.Api.Engine_Values.Range_Iterators is
type Ra... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1783.asm | ljhsiun2/medusa | 9 | 179499 | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r8
push %rbx
push %rcx
// Faulty Load
lea addresses_PSE+0x7d0, %rbx
nop
nop
nop
nop
sub %r12, %r12
vmovups (%rbx), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $0, %xmm7, %r8
lea oracles, %rbx
and $0xff, %r8
shlq ... |
src/interface/cl-memory-images.ads | flyx/OpenCLAda | 8 | 21682 | --------------------------------------------------------------------------------
-- Copyright (c) 2013, <NAME> <<EMAIL>>
--
-- 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... |
msvc/x86_64/memhash.asm | stoni/smhasher | 0 | 243899 | ;
; Upcaste Performance Libraries
; Copyright (C) 2012-2013 <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, cop... |
lights.adb | FROL256/ada-ray-tracer | 3 | 4074 | with Interfaces;
with Ada.Numerics.Float_Random;
with Ada.Numerics.Generic_Elementary_Functions;
with Vector_Math;
use Interfaces;
use Vector_Math;
package body Lights is
package Float_Functions is new Ada.Numerics.Generic_Elementary_Functions(float);
use Float_Functions;
function GetIntensity(l : LightRef)... |
src/instruction-test/jmp.asm | brgmnn/uob-cpu-simulator | 0 | 96082 | # 'jmp' test case code
# modifying this code with cause tests to fail!
jmp $1
mov r0,#1
2:
mov r0,#2
jmp $end
1:
jmp $2
end:
halt
|
bb-runtimes/riscv/sifive/fe310/svd/i-fe310.ads | JCGobbi/Nucleo-STM32G474RE | 0 | 22132 | --
-- Copyright (C) 2018, AdaCore
--
-- This spec has been automatically generated from FE310.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- E31 CPU Coreplex, high-performance, 32-bit RV32IMAC core
--
package Interfaces.FE310 is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
----... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_608.asm | ljhsiun2/medusa | 9 | 25059 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %r9
push %rbx
push %rdx
lea addresses_A_ht+0x12f2e, %r12
clflush (%r12)
nop
nop
inc %r11
movw $0x6162, (%r12)
nop
nop
nop
xor %rbx, %rbx
lea addresses_UC_ht+0x18496, %rdx
add $21577, %r12
movl $0x61626364, (%rdx)
nop
xor %r11, %r11
pop %rdx... |
engine/events/squirtbottle.asm | zavytar/pokecolorless | 0 | 93331 | <reponame>zavytar/pokecolorless
_Squirtbottle:
ld hl, .SquirtbottleScript
call QueueScript
ld a, $1
ld [wItemEffectSucceeded], a
ret
.SquirtbottleScript:
reloadmappart
special UpdateTimePals
callasm .CheckCanUseSquirtbottle
iffalse .NothingHappenedScript
; farsjump WateredWeirdTreeScript
.NothingHappenedScri... |
llvm-gcc-4.2-2.9/gcc/ada/i-cstrin.adb | vidkidz/crossbridge | 1 | 9899 | <filename>llvm-gcc-4.2-2.9/gcc/ada/i-cstrin.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
Transynther/x86/_processed/NC/_st_zr_4k_sm_/i3-7100_9_0xca_notsx.log_119_491.asm | ljhsiun2/medusa | 9 | 22237 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x10ae9, %rsi
lea addresses_UC_ht+0x191f9, %rdi
nop
nop
xor $44856, %r9
mov $114, %rcx
rep movsb
nop
xor $22137, %r15
lea addresses_WT_ht+0xf859, %r14
sub $57219, %rdx
mov $0x61... |
oeis/133/A133383.asm | neoneye/loda-programs | 11 | 167831 | <reponame>neoneye/loda-programs<filename>oeis/133/A133383.asm
; A133383: 10 followed by 2n 9's.
; 10,1099,109999,10999999,1099999999,109999999999,10999999999999,1099999999999999,109999999999999999,10999999999999999999,1099999999999999999999,109999999999999999999999,10999999999999999999999999,109999999999999999999999999... |
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/linkedlists.ads | ouankou/rose | 488 | 18452 | package LinkedLists is
type IntElem;
type IntElemPtr is access IntElem;
type IntElem is record
val : Integer;
nxt : IntElemPtr;
end record;
type Obj is tagged;
type ObjPtr is access Obj;
type Obj is tagged record
nxt : ObjPtr;
end record;
end LinkedLists;
|
programs/oeis/184/A184043.asm | karttu/loda | 0 | 161082 | ; A184043: 1/9 the number of (n+1) X 5 0..2 arrays with all 2 X 2 subblocks having the same four values.
; 45,51,61,81,117,189,325,597,1125,2181,4261,8421,16677,33189,66085,131877,263205,525861,1050661,2100261,4198437,8394789,16785445,33566757,67125285,134242341,268468261,536920101,1073807397,2147581989,4295098405,8590... |
examples/shared/serial_ports/src/serial_io-nonblocking.ads | RREE/Ada_Drivers_Library | 0 | 11646 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2022, AdaCore --
-- --
-- ... |
src/exported/ewok-exported-dma.ads | PThierry/ewok-kernel | 65 | 19445 | <gh_stars>10-100
--
-- 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 the License ... |
oeis/153/A153161.asm | neoneye/loda-programs | 11 | 247145 | ; A153161: Numerators of Stern-Brocot tree hanging between 1/3 and 2/3; denominators=A153162.
; Submitted by <NAME>(w1)
; 1,2,3,3,3,4,5,4,5,5,4,5,7,8,7,5,7,8,7,7,8,7,5,6,9,11,10,11,13,12,9,6,9,11,10,11,13,12,9,9,12,13,11,10,11,9,6,7,11,14,13,15,18,17,13,14,19,21,18,17,19,16,11,7,11,14,13,15,18,17,13,14,19,21,18,17,19,1... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/profile_warning.ads | best08618/asylo | 7 | 14584 | <reponame>best08618/asylo
pragma Profile_Warnings (Ravenscar);
with profile_warning_p;
package profile_warning is
pragma Elaborate_Body;
procedure I is new profile_warning_p.Proc;
end;
|
examples/pyramid/pyramid-driver__webgl.adb | godunko/adagl | 6 | 13529 | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- Ada binding for OpenGL/WebGL --
-- ... |
1A/S5/PIM/tps/tp8generique/test_abr.adb | MOUDDENEHamza/ENSEEIHT | 4 | 4089 | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with ABR;
procedure Test_ABR is
package ABR_String_Integer is
new ABR (T_Cle => Character, T_Donnee => Integer, "<" => "<");
use ABR_String_Integer;
procedure Afficher (C : in Character) is
begin
Put ("'" & C & "... |
programs/oeis/006/A006186.asm | neoneye/loda | 22 | 163883 | <gh_stars>10-100
; A006186: Number of pair-coverings with largest block size 4.
; 1,5,8,10,11,12,12,13,13,13
sub $1,$0
mul $0,4
pow $0,2
sub $1,1
div $0,$1
div $0,$1
add $0,1
|
test/Succeed/Issue2172.agda | cruhland/agda | 1,989 | 13810 | <filename>test/Succeed/Issue2172.agda
{-# OPTIONS --allow-unsolved-metas #-}
module _ where
postulate
Functor : (Set → Set) → Set₁
fmap : {F : Set → Set} {{_ : Functor F}} {A B : Set} → (A → B) → F A → F B
postulate
Id : Set → Set
bla : {A : Set} → Id A → Id A
bla = fmap {{?}} (λ x → x) -- should not fail!
|
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1005b.ada | best08618/asylo | 7 | 6403 | <reponame>best08618/asylo
-- CC1005B.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... |
Examples/ch04/CopyStr.asm | satadriver/LiunuxOS_t | 0 | 16527 | <gh_stars>0
TITLE Copying a String (CopyStr.asm)
; This program copies a string.
; Last update: 2/1/02
INCLUDE Irvine32.inc
.data
source BYTE "This is the source string",0
target BYTE SIZEOF source DUP(0),0
.code
main PROC
mov esi,0 ; index register
mov ecx,SIZEOF source ; loop counter
L... |
core/lib/groups/GeneratedGroup.agda | AntoineAllioux/HoTT-Agda | 294 | 15296 | <reponame>AntoineAllioux/HoTT-Agda
{-# OPTIONS --without-K --rewriting #-}
open import lib.Basics
open import lib.NType2
open import lib.types.Pi
open import lib.types.Group
open import lib.types.Int
open import lib.types.List
open import lib.types.Word
open import lib.types.SetQuotient
open import lib.groups.Homomorp... |
Aurora/Aurora/x64/Debug/kheap.asm | manaskamal/aurora-xeneva | 8 | 1166 | <reponame>manaskamal/aurora-xeneva
; Listing generated by Microsoft (R) Optimizing Compiler Version 17.00.50727.1
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC ?kmem_start@@3PEAXEA ; kmem_start
PUBLIC ?kmem_end@@3PEAXEA ; kmem_end
PUBLIC ?last_header@@3PEAUkmem@@EA ; last_header
_BSS SEGM... |
src/notcurses.adb | JeremyGrosser/notcursesada | 5 | 8660 | <reponame>JeremyGrosser/notcursesada
--
-- Copyright 2021 (C) <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: Apache-2.0
--
package body Notcurses is
function "+"
(Left, Right : Coordinate)
return Coordinate
is ((Y => Left.Y + Right.Y, X => Left.X + Right.X));
function "-"
(Left, Right : C... |
oeis/280/A280533.asm | neoneye/loda-programs | 11 | 175089 | <filename>oeis/280/A280533.asm
; A280533: Decimal expansion of 14*sin(Pi/14).
; Submitted by <NAME>
; 3,1,1,5,2,9,3,0,7,5,3,8,8,4,0,1,6,6,0,0,4,4,6,3,5,9,0,2,9,5,5,1,2,6,6,3,2,5,2,8,9,7,7,9,6,2,7,0,3,6,2,9,3,7,4,3,6,7,8,1,8,2,2,2,5,6,3,8,9,7,2,4,8,3,9,9,6,6,2,4,6,7,0,4,4,1,3,4,7,3,6,5,1,3,0,2,1,3,8,8
mov $1,1
mov $3,$... |
oeis/028/A028149.asm | neoneye/loda-programs | 11 | 5321 | <reponame>neoneye/loda-programs
; A028149: Expansion of 1/((1-4x)(1-7x)(1-9x)(1-10x)).
; Submitted by <NAME>
; 1,30,573,8902,122829,1570422,19052461,222558534,2527254477,28081375894,306750949869,3305552387046,35230183832845,372099762869046,3900761112145197,40636558684412038,421103652688800333
mov $1,1
mov $2,$0
mov $3... |
libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc___uchar2fs_callee.asm | jpoikela/z88dk | 640 | 96502 | <filename>libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc___uchar2fs_callee.asm
SECTION code_fp_math32
PUBLIC cm32_sdcc___uchar2fs_callee
EXTERN m32_float16u
cm32_sdcc___uchar2fs_callee:
pop bc ;return
pop hl ;value
dec sp
push bc
ld h,0
jp m32_float16u
|
programs/oeis/090/A090568.asm | neoneye/loda | 22 | 171142 | ; A090568: Least m such that m^n begins with k^(n-1) for some k > 1.
; 1,2,4,3,7,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10
mul $0,1236
div $0,672
mov $1,$0
mov $2,... |
arch/ARM/STM32/driver_demos/demo_adc_dma/src/demo_adc_vbat_dma.adb | morbos/Ada_Drivers_Library | 2 | 8216 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- ... |
test/interaction/Issue231.agda | cruhland/agda | 1,989 | 5582 | <reponame>cruhland/agda
module Issue231 where
postulate
A : Set
data List : Set where
_∷_ : A → List → List
data Any : List → Set where
there : ∀ {x xs} → Any xs → Any (x ∷ xs)
postulate
id : (A : Set) → A → A
lemma : (xs : List) → Set → (p : Any xs) → Set
lemma (x ∷ xs) A (there p) with id (Any xs) p
lemm... |
Task/Roman-numerals-Encode/AppleScript/roman-numerals-encode.applescript | LaudateCorpus1/RosettaCodeData | 1 | 4284 | -- ROMAN INTEGER STRINGS ------------------------------------------------------
-- roman :: Int -> String
on roman(n)
set kvs to {["M", 1000], ["CM", 900], ["D", 500], ¬
["CD", 400], ["C", 100], ["XC", 90], ["L", 50], ["XL", 40], ¬
["X", 10], ["IX", 9], ["V", 5], ["IV", 4], ["I", 1]}
script str... |
oeis/001/A001778.asm | neoneye/loda-programs | 11 | 1027 | <reponame>neoneye/loda-programs<gh_stars>10-100
; A001778: Lah numbers: n!*binomial(n-1,5)/6!.
; Submitted by <NAME>
; 1,42,1176,28224,635040,13970880,307359360,6849722880,155831195520,3636061228800,87265469491200,2157837063782400,55024845126451200,1447576694865100800,39291367432052736000,1100158288097476608000,3176707... |
dev/himem/himem1.asm | minblock/msdos | 0 | 164904 | <gh_stars>0
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1988-1992
; * All Rights Reserved.
; */
page 95,160
title himem1 - A20 Handler stuff
.xlist
include himem.inc
.list
public A20Handler
extrn ATA20Delay:byte
extrn InstldA20HndlrN:byte... |
data/pokemon/dex_entries/infernape.asm | AtmaBuster/pokeplat-gen2 | 6 | 10788 | db "FLAME@" ; species name
db "It tosses its"
next "enemies around"
next "with agility. It"
page "uses all its limbs"
next "to fight in its "
next "own unique style.@"
|
src/lang/stemmer-tamil.adb | stcarrez/ada-stemmer | 3 | 28599 | <filename>src/lang/stemmer-tamil.adb
-- Generated by Snowball 2.2.0 - https://snowballstem.org/
package body Stemmer.Tamil is
pragma Style_Checks ("-mr");
pragma Warnings (Off, "*variable*is never read and never assigned*");
pragma Warnings (Off, "*mode could be*instead of*");
pragma Warnings (Off, "*for... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_2_1699.asm | ljhsiun2/medusa | 9 | 29781 | .global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x19e64, %rsi
lea addresses_D_ht+0xc024, %rdi
nop
nop
nop
nop
dec %r14
mov $9, %rcx
rep movsw
nop
nop
nop
nop
cmp $59982, %r15
lea addresses_D_ht+0x16c06, %rdi
nop
and %r8, %r8
mov $0x6162... |
openfl-webm/0,0,4/project/libvpx-generic/vp8/common/arm/neon/bilinearpredict4x4_neon.asm | kudorado/HaxePlus | 28 | 3840 | <gh_stars>10-100
;
; 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 c... |
programs/oeis/060/A060632.asm | karttu/loda | 1 | 9666 | ; A060632: a(n) = 2^wt(floor(n/2)) (i.e., 2^A000120(floor(n/2)), or A001316(floor(n/2))).
; 1,1,2,2,2,2,4,4,2,2,4,4,4,4,8,8,2,2,4,4,4,4,8,8,4,4,8,8,8,8,16,16,2,2,4,4,4,4,8,8,4,4,8,8,8,8,16,16,4,4,8,8,8,8,16,16,8,8,16,16,16,16,32,32,2,2,4,4,4,4,8,8,4,4,8,8,8,8,16,16,4,4,8,8,8,8,16,16,8,8,16,16,16,16,32,32,4,4,8,8,8,8,16... |
Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1148.asm | ljhsiun2/medusa | 9 | 177829 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x7099, %rdx
nop
nop
sub %r10, %r10
movl $0x61626364, (%rdx)
nop
nop
nop
nop
inc %rsi
lea addresses_WT_ht+0x11099, %rsi
lea addresses_UC_ht+0x9271, %rdi
nop
nop
... |
Library/SpecUI/CommonUI/CGadget/copenRange.asm | steakknife/pcgeos | 504 | 13038 | COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: CommonUI/Open (gadgets)
FILE: copenRange.asm
ROUTINES:
Name Description
---- -----------
GLB OLRangeClass Open look numeric range gadget
... |
programs/oeis/049/A049777.asm | karttu/loda | 0 | 94273 | <gh_stars>0
; A049777: Triangular array read by rows: T(m,n) = n + n+1 + ... + m = (m+n)(m-n+1)/2.
; 1,3,2,6,5,3,10,9,7,4,15,14,12,9,5,21,20,18,15,11,6,28,27,25,22,18,13,7,36,35,33,30,26,21,15,8,45,44,42,39,35,30,24,17,9,55,54,52,49,45,40,34,27,19,10,66,65,63,60,56,51,45,38,30,21,11,78,77,75,72,68,63,57,50,42,33,23,12,... |
gdb/testsuite/gdb.ada/unchecked_union/unchecked_union.adb | greyblue9/binutils-gdb | 1 | 4359 | <filename>gdb/testsuite/gdb.ada/unchecked_union/unchecked_union.adb
-- Copyright 2019-2021 Free Software Foundation, Inc.
--
-- 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... |
bb-runtimes/runtimes/ravenscar-sfp-stm32g474/gnarl/s-tposen.adb | JCGobbi/Nucleo-STM32G474RE | 0 | 18249 | <filename>bb-runtimes/runtimes/ravenscar-sfp-stm32g474/gnarl/s-tposen.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
programs/oeis/050/A050483.asm | neoneye/loda | 22 | 165744 | <gh_stars>10-100
; A050483: Partial sums of A051947.
; 1,11,60,228,690,1782,4092,8580,16731,30745,53768,90168,145860,228684,348840,519384,756789,1081575,1519012,2099900,2861430,3848130,5112900,6718140,8736975,11254581,14369616,18195760,22863368,28521240,35338512
add $0,1
mov $1,$0
seq $1,50404 ; Partial sums of A05187... |
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_4545_1090.asm | ljhsiun2/medusa | 9 | 174257 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rbx
push %rdx
lea addresses_UC_ht+0x17980, %rdx
nop
nop
nop
sub $49817, %r8
movw $0x6162, (%rdx)
nop
nop
nop
nop
nop
cmp %r10, %r10
pop %rdx
pop %rbx
pop %r8
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %r9
push %ra... |
oscomp/build/asm/umount.asm | wei-huan/MyOS | 2 | 14940 | <filename>oscomp/build/asm/umount.asm<gh_stars>1-10
/home/weihuan/Documents/testsuits-for-oskernel-preliminary/riscv-syscalls-testing/user/build/riscv64/umount: file format elf64-littleriscv
Disassembly of section .text:
0000000000001000 <_start>:
.section .text.entry
.globl _start
_start:
mv a0, sp
100... |
i4k_OGLShader/exe/ext.asm | Polyrhythm/demo | 0 | 164228 | <reponame>Polyrhythm/demo<filename>i4k_OGLShader/exe/ext.asm
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.10.25019.0
TITLE C:\Users\polyr\Development\cpp\4k\i4k_OGLShader\src\ext.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC ?myglf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.