max_stars_repo_path stringlengths 4 261 | max_stars_repo_name stringlengths 6 106 | max_stars_count int64 0 38.8k | id stringlengths 1 6 | text stringlengths 7 1.05M |
|---|---|---|---|---|
test/dmat/vulkan-math-dmat4x3-test.adb | zrmyers/VulkanAda | 1 | 28465 | <reponame>zrmyers/VulkanAda
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2021 <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
... |
libsrc/_DEVELOPMENT/fcntl/z80/drivers/terminal/console_01/output/console_01_output_terminal_char/console_01_output_char_iterm_msg_readline_begin.asm | meesokim/z88dk | 0 | 242096 | <filename>libsrc/_DEVELOPMENT/fcntl/z80/drivers/terminal/console_01/output/console_01_output_terminal_char/console_01_output_char_iterm_msg_readline_begin.asm<gh_stars>0
SECTION code_fcntl
PUBLIC console_01_output_char_iterm_msg_readline_begin
console_01_output_char_iterm_msg_readline_begin:
; input terminal rea... |
EscriptParser.g4 | polserver/escript-antlr4 | 1 | 3094 | <reponame>polserver/escript-antlr4<filename>EscriptParser.g4<gh_stars>1-10
parser grammar EscriptParser;
options { tokenVocab=EscriptLexer; }
@header
{
}
@parser::members
{
}
compilationUnit
: topLevelDeclaration* EOF
;
moduleUnit
: moduleDeclarationStatement* EOF
;
moduleDeclarationStatement
... |
vhdl/vhdl.g4 | augustand/grammars-v4 | 0 | 6037 | //
// Copyright (C) 2010-2014 <NAME>
//
// 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
// (at your option) any later version.
//
// This program is... |
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_1559.asm | ljhsiun2/medusa | 9 | 102205 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x16a4, %rax
nop
add %r12, %r12
mov $0x6162636465666768, %rcx
movq %rcx, %xmm4
movups %xmm4, (%rax)
nop
lfence
lea addresses_D_ht+0x62f4, %r15
nop
lfence
movb (%r15), %r13b
no... |
generated/natools-s_expressions-printers-pretty-config-quoted_cmd.ads | faelys/natools | 0 | 11308 | package Natools.S_Expressions.Printers.Pretty.Config.Quoted_Cmd is
pragma Preelaborate;
function Hash (S : String) return Natural;
end Natools.S_Expressions.Printers.Pretty.Config.Quoted_Cmd;
|
src/main/fragment/mos6502-common/pwsc1_derefidx_vbuyy_lt_0_then_la1.asm | jbrandwood/kickc | 2 | 175500 | <filename>src/main/fragment/mos6502-common/pwsc1_derefidx_vbuyy_lt_0_then_la1.asm
lda {c1}+1,y
bmi {la1} |
source/main/imath/int32compare.asm | paulscottrobson/6502-basic | 3 | 17127 | ; *****************************************************************************
; *****************************************************************************
;
; Name: int32compare.asm
; Author: <NAME> (<EMAIL>)
; Date: 21st February 2021
; Reviewed: 7th March 2021
; Purpose: Simple 32 bit compare routines
;... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_147_215.asm | ljhsiun2/medusa | 9 | 241691 | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x9921, %rbp
nop
nop
nop
nop
cmp %rbx, %rbx
mov (%rbp), %rsi
nop
nop
nop
nop
and %r15, %r15
lea addresses_A_ht+0x19d41, %rdx
clflush (%rdx)
nop
nop
nop
cmp $44640, %... |
twix-header-grammar/XProtLexer.g4 | davidrigie/twixreader | 3 | 4558 | /*
* LEXER RULES
*/
lexer grammar XProtLexer;
/////////////////////////////////////////////////////////
// --------------- DEFAULT MODE -----------------------//
/////////////////////////////////////////////////////////
fragment WS
: [ \t\r\n\u000C]+
;
WHITESPACE : WS -> skip;
fragment NAT : [0-9]+
... |
src/generated/event_h.ads | csb6/libtcod-ada | 0 | 10852 | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
limited with console_types_h;
with sys_h;
limited with mouse_types_h;
package event_h is
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, Jice and the libtcod contributors.
-- * All rights reserved.
-- *
-- * Redistr... |
programs/oeis/231/A231686.asm | jmorken/loda | 1 | 7589 | ; A231686: a(n) = Sum_{i=0..n} digsum_9(i)^3, where digsum_9(i) = A053830(i).
; 0,1,9,36,100,225,441,784,1296,1297,1305,1332,1396,1521,1737,2080,2592,3321,3329,3356,3420,3545,3761,4104,4616,5345,6345,6372,6436,6561,6777,7120,7632,8361,9361,10692,10756,10881,11097,11440,11952,12681,13681,15012,16740,16865,17081,17424,17... |
regtests/util-processes-tests.ads | yrashk/ada-util | 0 | 1850 | <reponame>yrashk/ada-util
-----------------------------------------------------------------------
-- util-processes-tests - Test for processes
-- Copyright (C) 2011, 2016, 2018, 2019, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use... |
oeis/266/A266613.asm | neoneye/loda-programs | 11 | 19429 | <reponame>neoneye/loda-programs
; A266613: Decimal representation of the middle column of the "Rule 41" elementary cellular automaton starting with a single ON (black) cell.
; 1,2,5,10,20,41,82,165,330,661,1322,2645,5290,10581,21162,42325,84650,169301,338602,677205,1354410,2708821,5417642,10835285,21670570,43341141,866... |
programs/oeis/204/A204437.asm | karttu/loda | 0 | 170128 | ; A204437: Symmetric matrix: f(i,j)=((i+j+1)^2 mod 3), by (constant) antidiagonals.
; 0,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1
lpb $0,1
sub $0,1
add $1,$3
t... |
Palmtree.Math.Core.Implements/vs_build/x86_Debug/pmc_to.asm | rougemeilland/Palmtree.Math.Core.Implements | 0 | 17981 | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
TITLE Z:\Sources\Lunor\Repos\rougemeilland\Palmtree.Math.Core.Implements\Palmtree.Math.Core.Implements\pmc_to.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
msvcjmc SEGMENT
__7B7A869E_ctype@h DB ... |
Sources/Library/quaternions.adb | ForYouEyesOnly/Space-Convoy | 1 | 16428 | --
-- Jan & <NAME>, Australia, July 2011
--
with Ada.Numerics.Generic_Elementary_Functions;
package body Quaternions is
package Elementary_Functions is new Ada.Numerics.Generic_Elementary_Functions (Real);
use Elementary_Functions;
--
function "abs" (Quad : Quaternion_Real) return Real is
(Sqrt (Q... |
src/test/resources/data/generationtests/tniasm-error.asm | cpcitor/mdlz80optimizer | 0 | 13133 | ; Test case:
%error "ips_cls offset address is too big!" |
models/tests/test37.als | transclosure/Amalgam | 4 | 2700 | module tests/test
open util/seqrel[B] as sq
abstract sig B {}
one sig B1,B2,B3,B4,B5 extends B {}
fact { some S1,S2,S3,T1,T2,T3,T4:SeqIdx->B | {
isSeq[S1] isSeq[S2] isSeq[S3]
isSeq[T1] isSeq[T2] isSeq[T3] isSeq[T4]
#S1=1
#S2=2
#rest[S3]=2
#elems[S3]=2
#butlast[S3]=2
first[S3] != last[S1]
hasDups[S3]
lastIdx[S1] != l... |
src/eedata.asm | staskevich/UMR2 | 27 | 506 | ; UMR2
; copyright <NAME>, 2017
; <EMAIL>
;
; This work is licensed under a Creative Commons Attribution 4.0 International License.
; http://creativecommons.org/licenses/by/4.0/
;
; eedata.asm
;
; Data eeprom initial values
;
list p=16F1939
#include <p16f1939.inc>
; =================================
... |
source/adam-comment.adb | charlie5/aIDE | 3 | 1565 | <filename>source/adam-comment.adb
with
AdaM.Factory;
package body AdaM.Comment
is
-- Storage Pool
--
record_Version : constant := 1;
max_Comments : constant := 5_000;
package Pool is new AdaM.Factory.Pools (".adam-store",
... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_602.asm | ljhsiun2/medusa | 9 | 12158 | <filename>Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_602.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xcae7, %rdi
nop
nop
and $5699, %r8
movb (%rdi), %r13b
and %rax, %rax
lea addr... |
programs/oeis/004/A004760.asm | neoneye/loda | 22 | 247743 | <gh_stars>10-100
; A004760: List of numbers whose binary expansion does not begin 10.
; 0,1,3,6,7,12,13,14,15,24,25,26,27,28,29,30,31,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,192,193,194,19... |
oeis/055/A055779.asm | neoneye/loda-programs | 11 | 247068 | ; A055779: Number of fat trees on n labeled vertices.
; Submitted by <NAME>
; 1,2,10,89,1156,19897,428002,11067457,334667368,11593751921,452892057454,19699549177585,944416040000044,49480473036710185,2812998429218735986,172475808692526176513,11345688093224067380176,797061449235413571104737,59561550009489127251893590,471... |
test/asm/segclash.asm | nigelperks/BasicAssembler | 0 | 172218 | ; Test clashing segment properties
IDEAL
; defaulting to private
SEGMENT SEG1
ENDS
SEGMENT SEG1 PUBLIC
ENDS
SEGMENT SEG1 STACK
ENDS
SEGMENT SEG1 PRIVATE
ENDS
SEGMENT SEG1
ENDS
; explicitly private
SEGMENT SEG2 PRIVATE
ENDS
SEGMENT SEG2 PUBLIC
ENDS
SEGMENT SEG2 STACK
ENDS
SEGMENT SEG2 PRIVATE
E... |
applescript/getram.applescript | jtraver/dev | 0 | 588 | <filename>applescript/getram.applescript
on getRam()
set bytes to system attribute "ram "
return bytes div (2 ^ 20)
end getRam
display dialog "You have " & getRam() & "MB of RAM. Wow!"
|
workers-reporting.adb | annexi-strayline/AURA | 13 | 19459 | <reponame>annexi-strayline/AURA
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implem... |
Cubical/Data/FinData/Base.agda | dan-iel-lee/cubical | 0 | 10846 | {-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Data.FinData.Base where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Function
import Cubical.Data.Empty as ⊥
open import Cubical.Data.Nat using (ℕ; zero; suc)
open import Cubical.Data.Bool.Base
open import Cubical.Relation.Nu... |
apple/events.applescript | quentinguidee/todo-cli | 4 | 4429 | <filename>apple/events.applescript
set duration to (read POSIX file "apple/duration") as integer
set event_name to (read POSIX file "apple/name")
set endDate to (current date)
set startDate to endDate - duration
tell application "Calendar"
tell calendar "Work"
make new event with properties {summary:event... |
test/Compiler/special/ExportTestAgda.agda | redfish64/autonomic-agda | 1 | 3194 | module ExportTestAgda where
open import Common.Prelude
itWorksText : String
itWorksText = "It works!"
{-# COMPILED_EXPORT itWorksText itWorksText #-}
|
src/agen.adb | psyomn/agen | 1 | 24238 | -- Copyright 2014-2019 <NAME> (psyomn), <NAME> (entomy)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applica... |
Build/Interpreters/Ozmoo/asm/disk.asm | polluks/Puddle-BuildTools | 38 | 12533 | <filename>Build/Interpreters/Ozmoo/asm/disk.asm<gh_stars>10-100
first_unavailable_save_slot_charcode !byte 0
current_disks !byte $ff, $ff, $ff, $ff,$ff, $ff, $ff, $ff
boot_device !byte 0
ask_for_save_device !byte $ff
!ifndef VMEM {
disk_info
!byte 0, 0, 1 ; Interleave, save slots, # of disks
!byte 8, 8, 0, 0, 0, 13... |
alloy4fun_models/trashltl/models/2/9Y3GZBxXcPZfTxzA7.als | Kaixi26/org.alloytools.alloy | 0 | 1930 | open main
pred id9Y3GZBxXcPZfTxzA7_prop3 {
always some f:File | f in Trash + Protected
}
pred __repair { id9Y3GZBxXcPZfTxzA7_prop3 }
check __repair { id9Y3GZBxXcPZfTxzA7_prop3 <=> prop3o } |
oeis/097/A097184.asm | neoneye/loda-programs | 11 | 163689 | <reponame>neoneye/loda-programs
; A097184: G.f. A(x) satisfies A097182(x*A(x)) = A(x) and so equals the ratio of the g.f.s of any two adjacent diagonals of triangle A097181.
; Submitted by <NAME>
; 1,7,70,805,9982,129766,1742572,23960365,335445110,4763320562,68418604436,992069764322,14499481170860,213349508656940,31575... |
oeis/062/A062302.asm | neoneye/loda-programs | 11 | 80929 | ; A062302: Number of ways writing n-th prime as a sum of a prime and a nonprime.
; Submitted by <NAME>
; 0,1,0,1,4,3,6,5,8,9,8,11,12,11,14,15,16,15,18,19,18,21,22,23,24,25,24,27,26,29,30,31,32,31,34,33,36,37,38,39,40,39,42,41,44,43,46,47,48,47,50,51,50,53,54,55,56,55,58,59,58,61,62,63,62,65,66,67,68,67,70,71,72,73,74,7... |
playwav.asm | em00k/zxnext-playwavdma | 0 | 170370 | <filename>playwav.asm<gh_stars>0
;
; TBBlue / ZX Spectrum Next project
; Copyright (c) 2015 - <NAME> & <NAME>
;
; All rights reserved
;
; Redistribution and use in source and synthezised forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; Redistributions of source co... |
Cubical/HITs/ListedFiniteSet/Properties.agda | dan-iel-lee/cubical | 0 | 14849 | <filename>Cubical/HITs/ListedFiniteSet/Properties.agda
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.HITs.ListedFiniteSet.Properties where
open import Cubical.Foundations.Prelude
open import Cubical.Data.Prod using (_×_; _,_)
open import Cubical.HITs.ListedFiniteSet.Base
private
variable
ℓ ... |
sound/sfxasm/4A.asm | NatsumiFox/Sonic-3-93-Nov-03 | 7 | 178490 | <reponame>NatsumiFox/Sonic-3-93-Nov-03<gh_stars>1-10
4A_Header:
sHeaderInit ; Z80 offset is $C41E
sHeaderPatch 4A_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $C0, 4A_PSG3, $00, $00
4A_PSG3:
sNoisePSG $E7
sVolEnvPSG v0D
dc.b nFs4, $04
4A_Loop1:
dc.b sHold, $0F
saVolPSG $01
sLoop $00, $04, 4A... |
Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-7700_9_0x48.log_21829_1147.asm | ljhsiun2/medusa | 9 | 96892 | <filename>Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-7700_9_0x48.log_21829_1147.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %rax
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x11f8f, %rdx
nop
nop
nop
nop
nop
cmp $31624, %rsi
mov $0x6162636465666768, %rax
movq %rax, %xmm5
a... |
lab4/assemblies/int.asm | AriaPahlavan/CompArch | 0 | 175261 | <gh_stars>0
.ORIG x1200
ADD R6, R6, #-2 ;0x1200
STW R0, R6, #0 ;0x1202
ADD R6, R6, #-2 ;0x1204
STW R1, R6, #0 ;0x1206
LEA R0, TARGET ;0x1208
LDW R0, R0, #0 ;0x120A
LDW R1, R0, #0 ;0x120C R1=MEM[x4000]
ADD R1, R1, #1 ;0x120E
... |
awa/plugins/awa-storages/src/awa-storages-servlets.ads | twdroeger/ada-awa | 81 | 8045 | <gh_stars>10-100
-----------------------------------------------------------------------
-- awa-storages-servlets -- Serve files saved in the storage service
-- Copyright (C) 2012, 2016, 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ma... |
audio/sfx/cry1e_1.asm | AmateurPanda92/pokemon-rby-dx | 9 | 6421 | SFX_Cry1E_1_Ch4:
dutycycle 240
squarenote 6, 15, 2, 1536
squarenote 6, 14, 2, 1600
squarenote 6, 13, 2, 1664
squarenote 6, 14, 2, 1728
squarenote 6, 13, 2, 1792
squarenote 6, 12, 2, 1856
squarenote 6, 11, 2, 1920
squarenote 8, 10, 1, 1984
endchannel
SFX_Cry1E_1_Ch5:
dutycycle 17
squarenote 3, 0, 8, 1
squ... |
milestone3/src/main/resources/antlr4/XQuery.g4 | Easonrust/XQuery-Evaluator | 0 | 793 | <filename>milestone3/src/main/resources/antlr4/XQuery.g4
grammar XQuery ;
@header {
package edu.ucsd.CSE232B.parsers;
}
/*Rules*/
ap
: doc '/' rp # ApChildren
| doc '//' rp # ApAll
;
doc
: DOC LPR fname RPR
;
fname
: STRING
;
constant
: STRING
;
rp
: NAME ... |
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_play.asm | prismotizm/gigaleak | 0 | 6599 | <filename>other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_play.asm
Name: zel_play.asm
Type: file
Size: 356132
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: C5BF521676B3C71D20F38DA7636698EAD5C87EF0
Description: null
|
README/DependentlyTyped/Type-checker.agda | nad/dependently-typed-syntax | 5 | 4946 | <gh_stars>1-10
------------------------------------------------------------------------
-- A type-checker
------------------------------------------------------------------------
import Axiom.Extensionality.Propositional as E
import Level
open import Data.Universe
-- The code makes use of the assumption that proposit... |
programs/oeis/054/A054487.asm | neoneye/loda | 22 | 28210 | <filename>programs/oeis/054/A054487.asm
; A054487: a(n) = (3*n+4)*binomial(n+7, 7)/4.
; 1,14,90,390,1320,3762,9438,21450,45045,88660,165308,294372,503880,833340,1337220,2089164,3187041,4758930,6970150,10031450,14208480,19832670,27313650,37153350,49961925,66475656,87576984,114316840,147939440,189909720,241943592,3060412... |
0x12-singly_linked_lists/101-hello_holberton.asm | tenmark86/alx-low_level_programming | 0 | 101906 | <reponame>tenmark86/alx-low_level_programming
SECTION .data
msg: db "Hello, Holberton", 0
fmt: db "%s", 10, 0
SECTION .text
extern printf
global main
main:
mov esi, msg
mov edi, fmt
mov eax, 0
call printf
mov eax, 0
ret
|
src/main/fragment/mos6502-common/vdum1=_inc_vdum1.asm | jbrandwood/kickc | 2 | 165980 | <filename>src/main/fragment/mos6502-common/vdum1=_inc_vdum1.asm<gh_stars>1-10
inc {m1}
bne !+
inc {m1}+1
bne !+
inc {m1}+2
bne !+
inc {m1}+3
!:
|
software/hal/boards/common/tools/bounded_image.ads | TUM-EI-RCS/StratoX | 12 | 15563 | <gh_stars>10-100
with Generic_Bounded_Image;
with Interfaces; use Interfaces;
pragma Elaborate_All (Generic_Bounded_Image);
-- @summary functions to provide a string image of numbers
-- overapproximating the length, otherwise we would need a
-- separate body for each data type. This is tight enough
-- in most cas... |
oeis/117/A117490.asm | neoneye/loda-programs | 11 | 6509 | <filename>oeis/117/A117490.asm
; A117490: Number of primes between n and n^2 (with n and n^2 excluded).
; Submitted by <NAME>
; 0,1,2,4,6,8,11,14,18,21,25,29,33,38,42,48,54,59,64,70,77,84,90,96,105,113,120,128,136,144,151,161,170,180,189,199,207,216,228,239,250,261,269,281,292,305,314,327,342,352,363,378,393,405,418,42... |
test/Fail/BuiltinSharpBadType.agda | cagix/agda | 1,989 | 11368 | <filename>test/Fail/BuiltinSharpBadType.agda
data ⊥ : Set where
postulate
∞ : ∀ {a} → Set a → Set a
♯_ : ∀ {a} {A : Set a} → (A → ⊥) → ∞ A
♭ : ∀ {a} {A : Set a} → ∞ A → A → ⊥
{-# BUILTIN INFINITY ∞ #-}
{-# BUILTIN SHARP ♯_ #-}
{-# BUILTIN FLAT ♭ #-}
-- Issue #5610: with these bad types for sharp an... |
Categories/PushOuts.agda | jmchapman/Relative-Monads | 21 | 11520 | <filename>Categories/PushOuts.agda
module Categories.PushOuts where
open import Library
open import Categories
open Cat
record Square {a}{b}{C : Cat {a}{b}}{X Y Z}(f : Hom C Z X)(g : Hom C Z Y) : Set (a ⊔ b) where
constructor square
field W : Obj C
h : Hom C X W
k : Hom C Y W
sco... |
samples/jumptable.asm | wilsonpilon/msx-menu | 0 | 95188 | ; jumptable.asm
; Test of ## operator.
org 100h
bdos equ 5
conin equ 1
pstring equ 9
start jp init
jpfunc macro nfunc
jp function_ ## nfunc
endm
table:
irp func, mess1, mess2, presskey, endline
jpfunc func
endm
print ld c, pstring
jp bdos
init
if 0
rept 3, nfunc
ld a, nfun... |
Benchmarks/JMP Test.asm | RyanWangGit/MIPS_CPU | 60 | 162136 | # Test j, jal, jr instructions, the total cycles should be 15.
.text
addi $s1,$zero, 1
j jmp_next1
addi $s1,$zero, 1
addi $s2,$zero, 2
addi $s3,$zero, 3
jmp_next1:
j jmp_next2
addi $s1,$zero, 1
addi $s2,$zero, 2
addi $s3,$zero, 3
jmp_next2:
j jmp_next3
addi $s1,$zero, 1
addi $s2,$zero, 2
addi $s3,$zero, 3
... |
test/Succeed/Issue2056.agda | shlevy/agda | 1,989 | 17014 | <gh_stars>1000+
data Size : Set where
↑ : Size → Size
↑ ()
data N : Size → Set where
suc : ∀{i} (a : N i) → N (↑ i)
data Val : ∀{i} (t : N i) → Set where
val : ∀{i} (n : N i) → Val (suc n)
record R (j : Size) : Set where
field num : N j
data W {j} (ft : R j) : Set where
immed : (v : Val (R.num ft)) → W ft
... |
examples/hello_world_request_reply/src/primes-replier_main.adb | persan/dds-requestreply | 0 | 5787 | with Ada.Command_Line;
with Ada.Numerics.Long_Elementary_Functions;
with Ada.Text_IO;
with DDS.DomainParticipant;
with DDS.DomainParticipantFactory;
with Primes.PrimeNumberReplier;
with Primes.PrimeNumberRequest_TypeSupport;
with RTIDDS.Config;
procedure Primes.Replier_Main is
use Ada.Numerics.Long_Elementary_Fun... |
47-Automated-Pleasantries.speed.size.asm | blueset/7bh-solutions | 0 | 245506 | -- 7 Billion Humans --
-- 47: Automated Pleasantries --
-- Size: 3/3 --
-- Speed: 7/8 --
if w != nothing:
listenfor morning
endif
tell e morning
|
programs/oeis/166/A166753.asm | neoneye/loda | 22 | 172298 | ; A166753: Partial sums of A166752.
; 1,2,5,6,17,18,61,62,233,234,917,918,3649,3650,14573,14574,58265,58266,233029,233030,932081,932082,3728285,3728286,14913097,14913098,59652341,59652342,238609313,238609314,954437197,954437198,3817748729,3817748730,15270994853,15270994854,61083979345,61083979346,244335917309,244335917... |
libsrc/_DEVELOPMENT/math/float/am9511/lam32/z80/asm_hypotf.asm | ahjelm/z88dk | 640 | 19497 | <reponame>ahjelm/z88dk
; float _hypotf (float left, float right) __z88dk_callee
SECTION code_clib
SECTION code_fp_am9511
PUBLIC asm_hypotf
EXTERN asm_am9511_hypot_callee
; find the hypotenuse of two sccz80 floats
;
; enter : stack = sccz80_float left, ret
; DEHL = sccz80_float right
;
... |
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_831.asm | ljhsiun2/medusa | 9 | 86628 | <filename>Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_831.asm<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x11376, %r10
nop
nop
nop
nop
nop
sub %rsi, %rsi
mov (%r10), %rdx
add %rcx, %rcx
... |
autovectorization-tests/results/msvc19.28.29333-avx512/adjacent_find.asm | clayne/toys | 0 | 167542 | _v$ = 8 ; size = 4
bool adjacent_find_epi32(std::vector<int,std::allocator<int> > const &) PROC ; adjacent_find_epi32, COMDAT
mov ecx, DWORD PTR _v$[esp-4]
push esi
push edi
mov eax, DWORD PTR [ecx+4]
mov esi, eax
mo... |
RefactorAgdaEngine/ExtractFunction.agda | omega12345/RefactorAgda | 5 | 9787 | <reponame>omega12345/RefactorAgda
module ExtractFunction where
open import Data.List
open import ParseTree
open import Data.Nat
open import Data.String hiding (_++_)
open import ScopeState using (ScopeState ; ScopeEnv ; replaceID ; liftIO ; getUniqueIdentifier)
open import ScopeParseTree
open import AgdaHelperFunctions... |
oeis/036/A036238.asm | neoneye/loda-programs | 11 | 8089 | <filename>oeis/036/A036238.asm
; A036238: Triangle of numbers a(r,j) = j*(j+1) mod r+2, r>=1, j=1..r.
; Submitted by <NAME>
; 2,2,2,2,1,2,2,0,0,2,2,6,5,6,2,2,6,4,4,6,2,2,6,3,2,3,6,2,2,6,2,0,0,2,6,2,2,6,1,9,8,9,1,6,2,2,6,0,8,6,6,8,0,6,2,2,6,12,7,4,3,4,7,12,6,2,2,6,12,6,2,0,0,2,6,12,6,2,2,6,12,5,0,12,11,12,0,5,12,6,2,2,6... |
bin/src/main/resources/antlr/TemplateLexer.g4 | Yunzlez/kara | 1 | 6553 | lexer grammar TemplateLexer;
OPEN_TMP: '${'-> pushMode(TMP);
TMP_ESC: '\\$';
TMP_TEXT: ~'$'+;
mode TMP;
CLOSE_TMP: '}' -> popMode;
fragment ESC : '\\' ([{}"\\/bfnrt] | UNICODE) ; //escapes
fragment UNICODE : 'u' HEX HEX HEX HEX ; //unicode characters
fragment HEX : [0-9a-fA-F] ; // hex characters
DOT:'.';
ID: ... |
Day-46/Random_Num_Generate.asm | MasumBhai/50-Day-challenge-with-Assembly-Language | 1 | 18638 | <reponame>MasumBhai/50-Day-challenge-with-Assembly-Language
; id-201914044 (problem no-05)
.model small
.stack 100h
;include 'emu8086.inc'
.data
n_line db 0ah,0dh,"$"
msg db "have to enter 16 digit binary number",10,13,"$"
var dw ?
.code
main proc
mov ax,@data
mov ds,ax
... |
oeis/049/A049084.asm | neoneye/loda-programs | 11 | 82416 | ; A049084: a(n) = pi(n) if n is prime, otherwise 0.
; Submitted by <NAME>
; 0,1,2,0,3,0,4,0,0,0,5,0,6,0,0,0,7,0,8,0,0,0,9,0,0,0,0,0,10,0,11,0,0,0,0,0,12,0,0,0,13,0,14,0,0,0,15,0,0,0,0,0,16,0,0,0,0,0,17,0,18,0,0,0,0,0,19,0,0,0,20,0,21,0,0,0,0,0,22,0,0,0,23,0,0,0,0,0,24,0,0,0,0,0,0,0,25,0,0,0
mov $3,$0
mov $5,$0
lpb $3
... |
oeis/337/A337396.asm | neoneye/loda-programs | 11 | 95567 | <reponame>neoneye/loda-programs
; A337396: Expansion of sqrt((1-8*x+sqrt(1+64*x^2)) / (2 * (1+64*x^2))).
; Submitted by <NAME>(w3)
; 1,-2,-26,76,1222,-3772,-64676,203992,3607622,-11510636,-207302156,666187432,12142184476,-39211413464,-720760216328,2335857124016,43208062233158,-140406756766796,-2609918906614652,84989678... |
programs/oeis/047/A047356.asm | karttu/loda | 1 | 7577 | ; A047356: Numbers that are congruent to {1, 3} mod 7.
; 1,3,8,10,15,17,22,24,29,31,36,38,43,45,50,52,57,59,64,66,71,73,78,80,85,87,92,94,99,101,106,108,113,115,120,122,127,129,134,136,141,143,148,150,155,157,162,164,169
mov $1,$0
mul $1,3
div $1,2
mul $1,14
div $1,6
add $1,1
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/noinline3_pkg.ads | best08618/asylo | 7 | 14586 | -- { dg-excess-errors "cannot generate code" }
generic
I : Integer;
package Noinline3_Pkg is
function F (A, B : Integer) return Integer;
end Noinline3_Pkg;
|
soundness/HelpDefs.agda | frelindb/agsyHOL | 17 | 11161 | <reponame>frelindb/agsyHOL<gh_stars>10-100
module HelpDefs where
-- open import Relation.Binary.PropositionalEquality
open import StdLibStuff
open import Syntax
open import FSC
open import STT
open import DerivedProps
m-weak-h : ∀ {n} Γ₁ Γ₂ {t} → {Γ₃ : Ctx n} → Form (Γ₃ ++ Γ₁) t → Form (Γ₃ ++ (Γ₂ r++ Γ₁)) t
m-weak... |
test/Succeed/Issue1436-18.agda | shlevy/agda | 1,989 | 396 | <reponame>shlevy/agda<filename>test/Succeed/Issue1436-18.agda
module _ where
module Test₁ where
module A where
infixl 0 _+_
data D : Set where
• : D
_+_ : D → D → D
module B where
data D : Set where
• : D
_+_ : D → D → D
open A
open B
Foo : A.D
Foo = • + • + •... |
programs/oeis/120/A120178.asm | neoneye/loda | 22 | 15220 | <gh_stars>10-100
; A120178: a(n)=ceiling( sum_{i=1..n-1} a(i)/6), a(1)=1.
; 1,1,1,1,1,1,1,2,2,2,3,3,4,4,5,6,7,8,9,11,13,15,17,20,23,27,32,37,43,50,59,69,80,93,109,127,148,173,202,235,275,320,374,436,509,594,693,808,943,1100,1283,1497,1747,2038,2377,2774,3236,3775,4404,5138,5995,6994
seq $0,279077 ; Maximum starting va... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/linker_alias.ads | best08618/asylo | 7 | 24766 | <reponame>best08618/asylo
-- { dg-do compile }
-- { dg-skip-if "missing alias support" { *-*-darwin* hppa*-*-hpux* } }
package Linker_Alias is
Var : Integer; -- { dg-error "aliased to undefined symbol" }
pragma Export (C, Var, "my_var");
pragma Linker_Alias (Var, "var2");
end Linker_Alias;
|
136/ada/greet_5a.adb | notdb/LC-Practice | 0 | 26969 |
with Ada.Text_IO; use Ada.Text_IO;
procedure Greet_5a is
begin
for I in 1 .. 5 loop
Put_Line ("Hello, World!" & Integer'Image (I)); -- Procedure call
-- ^ Procedure parameter
end loop;
end Greet_5a; |
Type/Cubical/SubtypeSet.agda | Lolirofle/stuff-in-agda | 6 | 16998 | {-# OPTIONS --cubical #-}
module Type.Cubical.SubtypeSet where
open import Function.Axioms
open import Functional
open import Logic.Predicate as PTLogic using () renaming ([∃]-intro to intro)
import Lvl
open import Structure.Function.Domain using (intro ; Inverseₗ ; Inverseᵣ)
open import Structure.Relator.Proper... |
Tasks/Float_to_Int32.asm | BenSokol/EECS690-Project2 | 0 | 102555 | ;;*****************************************************************************
;;
;; Float_to_Int32.asm
;;
;; Author: <NAME>
;; Organization: KU/EECS/EECS 690
;; Date: 2017-10-06 (B71006)
;; Version: 1.0
;;
;; Purpose: Copy float bits to int32_t.
;;
;; Notes:
;;
;;*****************************... |
oeis/216/A216477.asm | neoneye/loda-programs | 11 | 170896 | ; A216477: The sequence of the parts in the partition binary diagram represented as an array.
; Submitted by <NAME>(s3)
; 1,2,1,3,1,4,2,1,5,2,1,6,3,2,1,7,3,2,1,8,4,3,2,1,9,4,3,2,1,10,5,4,3,2,1,11,5,4,3,2,1,12,6,5,4,3,2,1,13,6,5,4,3,2,1,14,7,6,5,4,3,2,1,15,7,6,5,4,3,2,1,16,8,7,6,5,4,3,2,1
lpb $0
add $1,$2
sub $0,$1... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso/q9.adb | best08618/asylo | 7 | 15697 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso/q9.adb
-- { dg-do run }
with Init9; use Init9;
with Ada.Numerics; use Ada.Numerics;
with Text_IO; use Text_IO;
with Dump;
procedure Q9 is
A1 : R1 := My_R1;
B1 : R1 := My_R1;
A2 : R2 := My_R2;
B2 : R2 := My_R2;
begin
Put ("A1 :");
Dump (A1'Addres... |
libsrc/_DEVELOPMENT/arch/zx/globals/z80/_GLOBAL_ZX_DIVMMC_PAGE_OFFSET.asm | jpoikela/z88dk | 640 | 178907 | <reponame>jpoikela/z88dk<gh_stars>100-1000
SECTION data_arch
PUBLIC _GLOBAL_ZX_DIVMMC_PAGE_OFFSET
_GLOBAL_ZX_DIVMMC_PAGE_OFFSET:
defb 5
|
gfx/tilesets/museum_palette_map.asm | AtmaBuster/pokeplat-gen2 | 6 | 245050 | <filename>gfx/tilesets/museum_palette_map.asm
tilepal 0, GRAY, RED, GRAY, ROOF, ROOF, ROOF, GRAY, GRAY
tilepal 0, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY, GREEN, GREEN
tilepal 0, WATER, GRAY, GRAY, ROOF, ROOF, ROOF, BROWN, BROWN
tilepal 0, BROWN, BROWN, BROWN, GRAY, GRAY, GRAY, GREEN, GREEN
tilepal 0, YELLOW, YELLOW... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca2009a.ada | best08618/asylo | 7 | 24604 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca2009a.ada
-- CA2009A.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
-- unlimi... |
Z80tests/screenfill2.asm | ruyrybeyro/QtSpecem | 7 | 21000 | ; FILL ZX SPECTRUM SCREEN GOING THROUGH EACH VISUAL LINE
;
; SCREEN ADDRESS
;
; H = 0 1 0 Y7 Y6 Y2 Y1 Y0
; L = Y5 Y4 Y3 X4 X3 X2 X1 X0
; pasmo --tapbas screenfill2.asm screenfill2.asm
ORG 50000
LD HL,$4000 ; SCREEN START
LD B,3 ; 3 SECTIONS
Y7_Y6: PUSH BC
LD B,8 ; NEXT LINE - 8 TEXT LINES
Y... |
src/gnat/rident.ads | My-Colaborations/dynamo | 15 | 16854 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
mc-sema/validator/x86_64/tests/ADC64i32.asm | randolphwong/mcsema | 2 | 179888 | <reponame>randolphwong/mcsema
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; ADC32i32
mov rax, 0x778
;TEST_BEGIN_RECORDING
adc rax, 0x6fffffff
;TEST_END_RECORDING
|
src/stm32-dma.ads | damaki/EVB1000 | 0 | 302 | <gh_stars>0
-- This spec has been automatically generated from STM32F105xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with System;
package STM32.DMA is
pragma Preelaborate;
---------------
-- Registers --
---------------
------------------
-- ISR_Register --
-------------... |
src/tests/bintoasc_suite-base85_tests.adb | jhumphry/Ada_BinToAsc | 0 | 4085 | <reponame>jhumphry/Ada_BinToAsc<filename>src/tests/bintoasc_suite-base85_tests.adb<gh_stars>0
-- BinToAsc_Suite.Base85_Tests
-- Unit tests for BinToAsc
-- Copyright (c) 2015, <NAME> - see LICENSE file for details
with AUnit.Assertions;
with System.Storage_Elements;
with Ada.Assertions;
with Storage_Array_To_Hex_Str... |
nasmfunc.asm | TakumiHANAUE/os30days | 0 | 29872 | <gh_stars>0
; nasmfunc
; TAB=4
BITS 32 ; 32ビットモード用の機械語を作らせる
; オブジェクトファイルのための情報
; このプログラムに含まれる関数名
GLOBAL io_hlt, io_cli, io_sti, io_stihlt
GLOBAL io_in8, io_in16, io_in32
GLOBAL io_out8, io_out16, io_out32
GLOBAL io_load_eflags, io_store_eflags
GLOBAL load_gdtr, load_... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_550.asm | ljhsiun2/medusa | 9 | 18068 | <reponame>ljhsiun2/medusa<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %rdi
push %rsi
lea addresses_WT_ht+0x4743, %rdi
nop
nop
nop
nop
add %rsi, %rsi
mov (%rdi), %r13
add %rsi, %rsi
pop %rsi
pop %rdi
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %... |
Cats/Category/Fun/Facts.agda | alessio-b-zak/cats | 0 | 2121 | <reponame>alessio-b-zak/cats
module Cats.Category.Fun.Facts where
open import Cats.Category
open import Cats.Category.Cat using (_≈_)
open import Cats.Category.Fun using (Trans ; Fun ; ≈-intro ; ≈-elim)
open import Cats.Functor using (Functor)
open import Cats.Trans.Iso using (NatIso ; iso ; forth-natural ; back-natur... |
test/Succeed/GeneralizeWithPatternLambda.agda | shlevy/agda | 1,989 | 76 | <filename>test/Succeed/GeneralizeWithPatternLambda.agda<gh_stars>1000+
open import Agda.Primitive
open import Agda.Builtin.Nat
open import Agda.Builtin.Equality
variable
ℓ : Level
A : Set ℓ
n : Nat
infixr 4 _∷_
data Vec (A : Set) : Nat → Set where
[] : Vec A 0
_∷_ : A → Vec A n → Vec A (suc n)
variabl... |
puzzle_23/src/puzzle_23.adb | AdaForge/Advent_of_Code_2020 | 0 | 15025 | <filename>puzzle_23/src/puzzle_23.adb
procedure Puzzle_23 is
begin
null;
end Puzzle_23;
|
programs/oeis/178/A178977.asm | karttu/loda | 1 | 81009 | ; A178977: (3*n+2)*(3*n+5)/2.
; 5,20,44,77,119,170,230,299,377,464,560,665,779,902,1034,1175,1325,1484,1652,1829,2015,2210,2414,2627,2849,3080,3320,3569,3827,4094,4370,4655,4949,5252,5564,5885,6215,6554,6902,7259,7625,8000,8384,8777,9179,9590,10010,10439,10877,11324,11780,12245,12719,13202,13694,14195,14705,15224,15752... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2401a.ada | best08618/asylo | 7 | 7007 | -- CE2401A.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... |
src/test/resources/data/potests/test17.asm | cpcitor/mdlz80optimizer | 36 | 24941 | <gh_stars>10-100
; Test case:
; - ld bc,1 should be optimized to write only c (as b is never used!)
; - ld bc,3 should be optimized
; - ld b,4; ld c,5 should be combined into one
ld bc,1
ld hl,map
ld b,2
add hl,bc
ld (hl),a
ld bc,3 ; <-- this one should be optimized out
ld hl,map
... |
credits_hacks.asm | BetaDream-X/Mother3German | 11 | 99871 | credits_hacks:
// ==============================================
// These hacks relocate the credits structs to 203FC00.
// ==============================================
.address_check1:
push {r1,lr}
ldr r1,[sp,#0x18]
ldr r0,=#0x801C1F5
cmp r0,r1
pop {r1}
bne +
// Credits
ldr r0,=#0x203FC00
// Copy of the 251... |
oeis/047/A047750.asm | neoneye/loda-programs | 11 | 16021 | <filename>oeis/047/A047750.asm
; A047750: If n mod 2 = 0 then m := n/2 and a(n) = (3*m)!*(5*m+1)/((m+1)!*(2*m+1)!); otherwise m := (n-1)/2, a(n) = 6*(3*m+2)!/(m!*(2*m+3)!).
; Submitted by <NAME>
; 1,2,3,6,11,24,48,110,231,546,1183,2856,6324,15504,34884,86526,197087,493350,1134705,2861430,6633315,16829280,39268320,10013... |
programs/oeis/189/A189894.asm | karttu/loda | 0 | 244623 | ; A189894: Number of isosceles right triangles on a 2nX(n+1) grid
; 4,50,208,582,1308,2556,4528,7460,11620,17310,24864,34650,47068,62552,81568,104616,132228,164970,203440,248270,300124,359700,427728,504972,592228,690326,800128,922530,1058460,1208880,1374784,1557200,1757188,1975842,2214288,2473686,2755228,3060140,338968... |
lab3_test_harness/test/state_data_in/3.asm | Zaydax/PipelineProcessor | 2 | 173481 | .ORIG x1234
XOR R1, R1, R1
XOR R2, R2, R2
XOR R3, R3, R3
XOR R4, R4, R4
XOR R5, R5, R5
.END
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1395.asm | ljhsiun2/medusa | 9 | 8970 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r14
push %r15
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x13420, %r10
nop
nop
nop
sub %r15, %r15
mov (%r10), %di
and %r14, %r14
lea addresses_D_ht+0x6568, %rsi
lea addresses_WT_ht+0x19564, %rdi
nop
nop
nop
nop
sub $12273, %r15
mov $... |
oeis/136/A136675.asm | neoneye/loda-programs | 11 | 2042 | <filename>oeis/136/A136675.asm
; A136675: Numerator of Sum_{k=1..n} (-1)^(k+1)/k^3.
; Submitted by <NAME>
; 1,7,197,1549,195353,194353,66879079,533875007,14436577189,14420574181,19209787242911,19197460851911,42198121495296467,6025866788581781,6027847576222613,48209723660000029,236907853607882606477
mov $1,1
lpb $0
m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.