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 |
|---|---|---|---|---|
operacoes/escalares/ex03.asm | mikael-85/assembly_mips | 0 | 26860 | #===================================================================
# Descrição:
# Carregar um dado da memoria para registrdores
# Guardar um dado de um registrador para memoria
# * Usando uma word, meia palavra e um byte
#
#===================================================================
# Convensão dos registr... |
trunk/win/lib/openssl-1.0.1e/tmp32/wp-mmx.asm | chundonglinlin/srs.win | 9 | 103321 | TITLE wp-mmx.asm
IF @Version LT 800
ECHO MASM version 8.00 or later is strongly recommended.
ENDIF
.686
.XMM
IF @Version LT 800
XMMWORD STRUCT 16
DQ 2 dup (?)
XMMWORD ENDS
ENDIF
.MODEL FLAT
OPTION DOTNAME
IF @Version LT 800
.text$ SEGMENT PAGE 'CODE'
ELSE
.text$ SEGMENT ALIGN(64) 'CODE'
ENDIF
ALIGN ... |
tools-src/gnu/gcc/gcc/ada/exp_ch3.adb | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 10739 | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
arithmetic.g4 | jamshidh/antlrToH | 0 | 1793 | <reponame>jamshidh/antlrToH
/*
BSD License
Copyright (c) 2013, <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:
1. Redistributions of source code must retain the above copyright
notice, this list... |
src/util/vecteurs.ads | SKNZ/BezierToSTL | 0 | 9319 | <reponame>SKNZ/BezierToSTL
with Liste_Generique;
package Vecteurs is
type Vecteur is array(Positive range<>) of Float;
subtype Point2D is Vecteur(1..2);
subtype Point3D is Vecteur(1..3);
package Liste_Points is new Liste_Generique(Point2D);
type Facette is record
P1, P2, P3 : Point3D;
... |
Task/Self-describing-numbers/Ada/self-describing-numbers.ada | LaudateCorpus1/RosettaCodeData | 1 | 16522 | with Ada.Text_IO; use Ada.Text_IO;
procedure SelfDesc is
subtype Desc_Int is Long_Integer range 0 .. 10**10-1;
function isDesc (innum : Desc_Int) return Boolean is
subtype S_Int is Natural range 0 .. 10;
type S_Int_Arr is array (0 .. 9) of S_Int;
ref, cnt : S_Int_Arr := (others => 0);
n, ... |
programs/oeis/222/A222716.asm | karttu/loda | 0 | 94471 | ; A222716: Numbers which are both the sum of n+1 consecutive triangular numbers and the sum of the n-1 immediately following triangular numbers.
; 0,10,100,460,1460,3710,8120,15960,28920,49170,79420,122980,183820,266630,376880,520880,705840,939930,1232340,1593340,2034340,2567950,3208040,3969800,4869800,5926050,7158060,... |
src/main/antlr4/imports/Clauses.g4 | Yucukof/edu-antlr4-toy-parser-to-nbc | 0 | 156 | grammar Clauses;
import Expressions
, Declarations
, Instructions
, Words;
clauseWhen: WHEN expression
(DECLARE LOCAL varDecl+)?
DO instruction+
DONE
;
clauseDefault: BY DEFAULT
(DECLARE LOCAL (varDecl)+)?
DO instruction+
DONE
... |
oeis/064/A064170.asm | neoneye/loda-programs | 11 | 19476 | ; A064170: a(1) = 1; a(n+1) = product of numerator and denominator in Sum_{k=1..n} 1/a(k).
; 1,1,2,10,65,442,3026,20737,142130,974170,6677057,45765226,313679522,2149991425,14736260450,101003831722,692290561601,4745030099482,32522920134770,222915410843905,1527884955772562,10472279279564026,71778070001175617,491974210728... |
other.7z/SFC.7z/SFC/ソースデータ/MarioKart/c-select-j.asm | prismotizm/gigaleak | 0 | 6457 | <gh_stars>0
Name: c-select-j.asm
Type: file
Size: 46127
Last-Modified: '1992-07-14T15:00:00Z'
SHA-1: 0CA16B7F3743209D4B70D98F6BD379E3FA26F779
Description: null
|
src/main/fragment/mos6502-common/pwsc1_derefidx_vbuyy=vwsm1.asm | jbrandwood/kickc | 2 | 80897 | <reponame>jbrandwood/kickc<gh_stars>1-10
lda {m1}
sta {c1},y
lda {m1}+1
sta {c1}+1,y
|
food.asm | elifBalci/image-classification-with-x86Assembly | 4 | 95534 | ;=====================================================================
; Image Classification with x86 assembly
;
; Author: <NAME>
; Date: 2019-05-23
;
;TODO:
;********BMP file type check
;********Receiving proper pixel count from c code.e
;
;==============================================================... |
agda/Instruments.agda | halfaya/MusicTools | 28 | 1995 | {-# OPTIONS --erased-cubical --safe #-}
module Instruments where
open import Data.Fin using (#_)
open import MidiEvent using (InstrumentNumber-1; maxChannels)
open import Data.Vec using (Vec; []; _∷_)
-- Start of an instrument list
-- all instruments have this type
piano : InstrumentNumber-1
piano ... |
experiments/count/cas.4.3/count.checker.asm | phlo/concubine | 0 | 11290 | # <NAME>'s Statistical Counter (PerfBook 5.2)
#
# Summation (checker) thread: EXIT 1 if global counter is not incremented 3
# times by 4 threads (heap[0] != 3 * 4).
#
# steps:
# * total = 5
#
# template parameter:
# * 12 = expected global counter value
#
CHECK 0 # start checker thread
ADDI 12 # expected result... |
firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-pch-transcoder.adb | fabiojna02/OpenCellular | 1 | 4383 | --
-- Copyright (C) 2015-2016 secunet Security Networks AG
-- Copyright (C) 2016 <NAME> <<EMAIL>>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at... |
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48_notsx.log_2_39.asm | ljhsiun2/medusa | 9 | 94517 | <filename>Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48_notsx.log_2_39.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xb0cc, %rdi
clflush (%rdi)
sub %r11, %r11
vmovups (%rdi), %ymm1
vextracti128 $0, %ymm1... |
programs/oeis/180/A180674.asm | jmorken/loda | 1 | 99140 | <reponame>jmorken/loda<filename>programs/oeis/180/A180674.asm
; A180674: a(n) = Fibonacci(n+9) - Fibonacci(9).
; 0,21,55,110,199,343,576,953,1563,2550,4147,6731,10912,17677,28623,46334,74991,121359,196384,317777,514195,832006,1346235,2178275,3524544,5702853,9227431,14930318,24157783,39088135,63245952,102334121,16558010... |
programs/oeis/120/A120154.asm | neoneye/loda | 22 | 83577 | ; A120154: a(1)=9; a(n)=floor((27+sum(a(1) to a(n-1)))/3).
; 9,12,16,21,28,37,50,66,88,118,157,209,279,372,496,661,882,1176,1568,2090,2787,3716,4955,6606,8808,11744,15659,20879,27838,37118,49490,65987,87983,117310,156414,208552,278069,370759,494345,659127
add $0,1
mov $2,1
lpb $0
sub $0,1
add $2,$1
mov $1,8
ad... |
hex2bin.asm | tsupplis/msdos11-hacking | 3 | 101750 | <filename>hex2bin.asm
; HEX2BIN version 1.02
; Converts Intel hex format files to straight binary
FCB: EQU 5CH
READ: EQU 20
SETDMA: EQU 26
OPEN: EQU 15
CLOSE: EQU 16
CREATE: EQU 22
DELETE: EQU 19
BLKWRT: EQU 40
GETSEG: EQU 38
BUFSIZ: EQU 1024
ORG 100H
PUT 100H
HEX2BIN:
MOV DX,HEADER
MOV AH... |
tests/natools-s_expressions-templates-tests-integers.ads | faelys/natools | 0 | 22287 | ------------------------------------------------------------------------------
-- Copyright (c) 2014, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
llvm-gcc-4.2-2.9/gcc/ada/s-chepoo.ads | vidkidz/crossbridge | 1 | 29435 | <reponame>vidkidz/crossbridge
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
Sources/Globe_3d/globe_3d-wire_frame.ads | ForYouEyesOnly/Space-Convoy | 1 | 3324 | pragma Warnings (Off);
pragma Style_Checks (Off);
package GLOBE_3D.Wire_frame is
type Segment is record
P1, P2 : Positive; -- Indices to o.Point
colour : GL.RGBA_Color;
end record;
type Segment_array is array (Positive range <>) of Segment;
type p_Segment_array is access Segment_array;
... |
programs/oeis/008/A008577.asm | karttu/loda | 1 | 161917 | ; A008577: Crystal ball sequence for planar net 4.8.8.
; 1,4,9,17,28,41,57,76,97,121,148,177,209,244,281,321,364,409,457,508,561,617,676,737,801,868,937,1009,1084,1161,1241,1324,1409,1497,1588,1681,1777,1876,1977,2081,2188,2297,2409,2524,2641,2761,2884,3009,3137,3268,3401,3537,3676,3817,3961,4108,4257,4409,4564,4721,48... |
prototyping/Examples/Syntax.agda | Tr4shh/Roblox-Luau | 0 | 170 | <reponame>Tr4shh/Roblox-Luau<gh_stars>0
module Examples.Syntax where
open import Agda.Builtin.Equality using (_≡_; refl)
open import FFI.Data.String using (_++_)
open import Luau.Syntax using (var; _$_; return; nil; function_is_end; local_←_; done; _∙_; _⟨_⟩)
open import Luau.Syntax.ToString using (exprToString; block... |
libsrc/_DEVELOPMENT/math/float/math32/c/sccz80/cm32_sccz80_fmod.asm | Frodevan/z88dk | 640 | 244790 |
SECTION code_fp_math32
PUBLIC cm32_sccz80_fmod
EXTERN cm32_sccz80_switch_arg
EXTERN _m32_fmodf
.cm32_sccz80_fmod
call cm32_sccz80_switch_arg
jp _m32_fmodf
|
cc4x86/tests/visual/rasterizer/rasterizer_.asm | artyompal/C-compiler | 4 | 162973 |
.686
.model flat
.xmm
.data
__dbgprintf dd ?
public __dbgprintf
__width dd ?
public __width
__height dd ?
public __height
__pitch dd ?
public __pitch
__color dd ?
public __color
__videomem dd ?
public __videomem
__mvproj_matrix db 64 dup (?... |
test/antidbg/windows/x86/antidbg.asm | jeppeter/py-obcode | 0 | 24192 | .686p
.model flat,C
.code
get_peb_ptr PROC
;mov eax, dword ptr fs:[030h]
db 064h,0a1h,030h,00h,00h,00h
ret
get_peb_ptr ENDP
set_single_step PROC
pushfd
or byte ptr[esp+1],1
popfd
ret
set_single_step ENDP
set_int3 PROC
int 3
ret
set_int3 ENDP
prefix_hop_int3 PROC
db 0f3h,064h,0cch
ret
prefix_hop_int3 END... |
gfx/pokemon/ninjask/anim_idle.asm | Ebernacher90/pokecrystal-allworld | 0 | 15726 | frame 1, 08
endanim
|
cards/bn5/ItemCards/136-F003 Sal's Lunch Freebies.asm | RockmanEXEZone/MMBN-Mod-Card-Kit | 10 | 244720 | .include "defaults_item.asm"
table_file_jp equ "exe5-utf8.tbl"
table_file_en equ "bn5-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252424A // BRBJ
game_code_2 equ 0x42524245 // BRBE
game_code_3 equ 0x42524250 // BRBP
card_type equ 0
card_id equ 23
card_no equ "023"
card_sub equ "Item Card 023"
card_sub_... |
Streams/PredFilter.agda | hbasold/Sandbox | 0 | 4398 | <gh_stars>0
-- | In this module we show that the substream relation is transitive.
open import Size
open import Streams
open import Relation.Binary.PropositionalEquality as P
open import Data.Product
open import Function
tl' : ∀{A} → Stream A → Stream A
tl' s = tl s {∞}
{-
data Reachable {A : Set} (P : A → Set) : St... |
Demo/MSP430X_MSP430F5438_CCS/Demo_Source/RegTest.asm | ufo2011/CMSIS-FreeRTOS | 1 | 90495 | ;
;/*
; * FreeRTOS V202111.00
; * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * 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, i... |
include/bits_types_u_sigset_t_h.ads | docandrew/troodon | 5 | 12742 | <reponame>docandrew/troodon
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package bits_types_u_sigset_t_h is
-- skipped anonymous struct anon_1
type uu_sigset_t_array937 is array (0 .. 15) of aliased unsigned_long;
type uu_sigset_t is record
uu_val : aliased uu_sig... |
src/tools/Dependency_Graph_Extractor/src/extraction-decls.adb | selroc/Renaissance-Ada | 1 | 217 | <filename>src/tools/Dependency_Graph_Extractor/src/extraction-decls.adb
with Extraction.Node_Edge_Types;
with Extraction.Utilities;
package body Extraction.Decls is
use type LALCO.Ada_Node_Kind_Type;
function Is_Standard_Package_Decl(Node : LAL.Ada_Node'Class) return Boolean is
Standard_Unit : consta... |
dv3/fd/direct.asm | olifink/smsqe | 0 | 171703 | <reponame>olifink/smsqe
; DV3 Standard Floppy Disk Check for Direct Sector Open V3.00 1993 <NAME>
section dv3
xdef fd_direct
include 'dev8_keys_err'
include 'dev8_dv3_keys'
include 'dev8_dv3_fd_keys'
;+++
; DV3 check floppy for direct sector open (or for format)
;
; d1 c p sector length
; d2 c p density fl... |
physics.ads | Kidev/AdaPhysics2D | 9 | 16592 | with Worlds; use Worlds;
with Entities; use Entities;
with Vectors2D; use Vectors2D;
with Materials; use Materials;
package Physics is
-- Update the world of dt
procedure StepNormal(This : in out World);
-- Update the world of dt with low ram usage
procedure StepLowRAM(This : in out World);
-- Thi... |
Parser_Tools/src/implementation/text-pool.adb | robdaemon/AdaYaml | 32 | 10245 | <filename>Parser_Tools/src/implementation/text-pool.adb
-- part of ParserTools, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
package body Text.Pool is
procedure Create (P : in out Reference'Class;
Initial_Size : Pool_Offset := Default_Size)
is
... |
Structure/Setoid/Category.agda | Lolirofle/stuff-in-agda | 6 | 3218 | <filename>Structure/Setoid/Category.agda
module Structure.Setoid.Category where
open import Data
import Data.Tuple as Tuple
open import Functional
open import Function.Equals
open import Function.Equals.Proofs
open import Function.Proofs
open import Logic.Predicate
import Lvl
open import Structure.Category
o... |
stdlib-exts/Class/Monad/Except.agda | WhatisRT/meta-cedille | 35 | 15763 | <gh_stars>10-100
module Class.Monad.Except where
open import Class.Monad
open import Class.Monoid
open import Data.Maybe
open import Level
private
variable
a : Level
A : Set a
record MonadExcept (M : Set a → Set a) {{_ : Monad M}} (E : Set a) : Set (suc a) where
field
throwError : E → M A
catchEr... |
src/gl/implementation/gl-pixels.adb | Roldak/OpenGLAda | 79 | 24646 | <gh_stars>10-100
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with GL.API;
with GL.Enums.Getter;
package body GL.Pixels is
procedure Set_Pack_Swap_Bytes (Value : Boolean) is
begin
API.Pixel_Store (Enums.Pack_Swap_Bytes, Low_Level.Bool (V... |
arch/ARM/STM32/svd/stm32f46_79x/stm32_svd-usb_otg_fs.ads | rocher/Ada_Drivers_Library | 192 | 16054 | <reponame>rocher/Ada_Drivers_Library
-- This spec has been automatically generated from STM32F46_79x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.USB_OTG_FS is
pragma Preelaborate;
---------------
-- Registers --
---... |
tag-mac/Library/Scripts/Applications/Finder/New File.scpt | stevenberg/dotfiles | 2 | 892 | tell application "Finder"
try
set _result to display dialog "Filename:" with icon note default answer "" buttons {"Cancel", "Create"} default button "Create"
if button returned of _result is "Cancel" then
return
end
if length of text returned of _result is 0 then
... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/bug_elaboration_code.ads | best08618/asylo | 7 | 5894 | package Bug_Elaboration_Code is
pragma Elaborate_Body;
I : Integer;
J : Integer;
end Bug_Elaboration_Code;
|
programs/oeis/079/A079977.asm | karttu/loda | 0 | 80933 | ; A079977: Fibonacci numbers interspersed with zeros.
; 1,0,1,0,2,0,3,0,5,0,8,0,13,0,21,0,34,0,55,0,89,0,144,0,233,0,377,0,610,0,987,0,1597,0,2584,0,4181,0,6765,0,10946,0,17711,0,28657,0,46368,0,75025,0,121393,0,196418,0,317811,0,514229,0,832040,0,1346269
mov $3,2
mov $7,$0
lpb $3,1
mov $0,$7
sub $3,1
add $0,$3
... |
programs/oeis/053/A053738.asm | karttu/loda | 0 | 247314 | <gh_stars>0
; A053738: If k is in sequence then 2*k and 2*k+1 are not (and 1 is in the sequence); numbers with an odd number of digits in binary.
; 1,4,5,6,7,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,10... |
src/main/antlr4/de/tracetronic/jenkins/plugins/ecutest/filter/RefFilter.g4 | kunerd/ecutest-plugin | 0 | 6312 | <reponame>kunerd/ecutest-plugin<filename>src/main/antlr4/de/tracetronic/jenkins/plugins/ecutest/filter/RefFilter.g4
/*
* Copyright (c) 2015 TraceTronic GmbH
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following condit... |
src/Categories/Category/Monoidal/Utilities.agda | MirceaS/agda-categories | 0 | 798 | {-# OPTIONS --without-K --safe #-}
open import Categories.Category using (Category)
open import Categories.Category.Monoidal.Core using (Monoidal)
module Categories.Category.Monoidal.Utilities {o ℓ e} {C : Category o ℓ e} (M : Monoidal C) where
open import Level
open import Function using (_$_)
open import Data.Prod... |
libsrc/_DEVELOPMENT/l/sdcc/__rlslonglong.asm | jpoikela/z88dk | 640 | 163939 | <gh_stars>100-1000
SECTION code_clib
SECTION code_l_sdcc
PUBLIC __rlslonglong
EXTERN __rlulonglong
defc __rlslonglong = __rlulonglong
|
examples/hello.asm | x86128/pymesm | 2 | 4433 | <filename>examples/hello.asm
# hello world using loop
org 1
ptr prn0 32767
# loop setup
vtm -15,2
lbl loop
xta hello+15,2
atx prn0
vlm loop,2
stop 0o12345,6
dorg 0o2000
arr hello "Hello, world!!!\n"
|
programs/oeis/189/A189786.asm | karttu/loda | 1 | 244713 | ; A189786: n+[nr/t]+[ns/t]; r=pi/2, s=arcsin(5/13), t=arcsin(12/13).
; 2,4,8,10,12,16,18,20,24,26,28,32,34,36,40,42,44,48,50,52,56,58,60,64,66,68,72,74,76,80,82,84,88,90,92,96,98,100,104,106,108,112,114,116,120,122,124,128,130,132,136,138,140,144,146,148,152,154,156,160,162,164,168,170,172,176,178,180,184,186,188,192,1... |
oeis/225/A225658.asm | neoneye/loda-programs | 11 | 177424 | <reponame>neoneye/loda-programs
; A225658: a(n) = n! + (n+1)! + 3*(n+2)!.
; Submitted by <NAME>(s4)
; 8,21,80,390,2304,15960,126720,1134000,11289600,123742080,1480550400,19199980800,268240896000,4016428416000,64163222323200,1089292748544000,19583731335168000,371693362360320000,7426753498644480000,155827373623713792000,... |
alloy4fun_models/trainstlt/models/0/KavcJqrLP5bghEq4Y.als | Kaixi26/org.alloytools.alloy | 0 | 1733 | <filename>alloy4fun_models/trainstlt/models/0/KavcJqrLP5bghEq4Y.als
open main
pred idKavcJqrLP5bghEq4Y_prop1 {
}
pred __repair { idKavcJqrLP5bghEq4Y_prop1 }
check __repair { idKavcJqrLP5bghEq4Y_prop1 <=> prop1o } |
programs/oeis/028/A028290.asm | neoneye/loda | 22 | 90584 | ; A028290: Expansion of 1/((1-x)(1-x^2)(1-x^3)(1-x^5)(1-x^8)).
; 1,1,2,3,4,6,8,10,14,17,22,27,33,40,48,57,68,79,93,107,124,142,162,184,209,235,265,296,331,368,409,452,500,550,605,663,726,792,864,939,1021,1106,1198,1294,1397,1505,1620,1740,1869,2002,2145,2293,2450,2614,2787,2967,3158,3355,3564,3780,4008,4244,4492,4749,5... |
alloy4fun_models/trashltl/models/19/Q36Yv4KzdESTaSW4S.als | Kaixi26/org.alloytools.alloy | 0 | 2877 | <reponame>Kaixi26/org.alloytools.alloy<filename>alloy4fun_models/trashltl/models/19/Q36Yv4KzdESTaSW4S.als
open main
pred idQ36Yv4KzdESTaSW4S_prop20 {
always all t: File | t not in Protected since t in Protected
}
pred __repair { idQ36Yv4KzdESTaSW4S_prop20 }
check __repair { idQ36Yv4KzdESTaSW4S_prop20 <=> prop20o } |
src/util-log.ads | Letractively/ada-util | 0 | 11249 | <gh_stars>0
-----------------------------------------------------------------------
-- Logs -- Utility Log Package
-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr36_pkg.adb | best08618/asylo | 7 | 18567 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr36_pkg.adb
package body Discr36_Pkg is
function Func return T is
Ret : T;
pragma Warnings (Off, Ret);
begin
return Ret;
end;
end Discr36_Pkg;
|
examples/simple-lib/Lib/Maybe.agda | shlevy/agda | 1,989 | 3052 | <gh_stars>1000+
module Lib.Maybe where
data Maybe (A : Set) : Set where
nothing : Maybe A
just : A -> Maybe A
{-# COMPILE GHC Maybe = data Maybe (Nothing | Just) #-}
|
oeis/280/A280220.asm | neoneye/loda-programs | 11 | 168064 | ; A280220: a(1) = 1, a(n+1) is the numerator of n-th partial fraction of the continued fraction [1; 4, 16, 64, ..., 4^n].
; Submitted by <NAME>(s4)
; 1,5,81,5189,1328465,1360353349,5572008645969,91291791015909445,5982898821590650033489,1568381028778351153394849861,1644566705638271237843748737881425,68978127117269919870... |
payload/Library/Application Support/spsu/spsu.applescript | aysiu/spsu | 2 | 1853 | <gh_stars>1-10
#!/usr/bin/osascript
-- Open System Preferences and go to the Software Update prefPane
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preferences.softwareupdate"
end tell
tell application "System Preferences"
reveal pane id "com.apple.preferences.softwareupda... |
oeis/299/A299284.asm | neoneye/loda-programs | 11 | 98955 | <filename>oeis/299/A299284.asm
; A299284: Partial sums of A299283.
; 1,8,30,78,162,292,478,731,1061,1478,1992,2614,3354,4222,5228,6383,7697,9180,10842,12694,14746,17008,19490,22203,25157,28362,31828,35566,39586,43898,48512,53439,58689,64272,70198,76478,83122,90140,97542,105339,113541,122158,131200,140678,150602,160982,... |
Task/Pascals-triangle-Puzzle/Ada/pascals-triangle-puzzle.ada | LaudateCorpus1/RosettaCodeData | 1 | 9841 | <gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
procedure Pyramid_of_Numbers is
B_X, B_Y, B_Z : Integer := 0; -- Unknown variables
type Block_Value is record
Known : Integer := 0;
X, Y, Z : Integer := 0;
end record;
X : constant Block_Value := (0, 1, 0, 0);
Y : constant Block_Value := ... |
DSTROUT.asm | CodexLink/8086_ASM_DOSBOX_Examples | 0 | 25699 | ; Double String Output — DSTROUT.asm
; Copyright (c) 2021 <NAME>
; This code is licensed under MIT license. (see LICENSE for details)
.MODEL TINY
.DATA
DDISP_PROMPT DB 0AH, 0DH, "Enter a string: $"
DDISP_INPUT DB 16, ?, 16 DUP(?) ; We assume that the max input is 16 characters, since it's not indicated.
.C... |
programs/oeis/166/A166521.asm | neoneye/loda | 22 | 85255 | ; A166521: a(n) = (6*n + 7*(-1)^n + 3)/2.
; 1,11,7,17,13,23,19,29,25,35,31,41,37,47,43,53,49,59,55,65,61,71,67,77,73,83,79,89,85,95,91,101,97,107,103,113,109,119,115,125,121,131,127,137,133,143,139,149,145,155,151,161,157,167,163,173,169,179,175,185,181,191,187,197,193,203,199,209,205,215,211,221,217,227,223,233,229,23... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1439.asm | ljhsiun2/medusa | 9 | 80913 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1b2df, %r10
nop
cmp $62436, %r11
mov (%r10), %r12d
nop
cmp $34522, %rax
lea addresses_normal_ht+0x7177, %rsi
lea addresses_D_ht+0x126df, %rdi
nop
nop
nop... |
src/Unbounded-space.agda | nad/definitional-interpreters | 0 | 9529 | ------------------------------------------------------------------------
-- Definitional interpreters can model systems with unbounded space
------------------------------------------------------------------------
-- As a follow-up to the development in Bounded-space I asked Ancona,
-- Dagnino and Zucca for further ex... |
src/test/ref/keyboard-glitch.asm | jbrandwood/kickc | 2 | 85012 | <reponame>jbrandwood/kickc
// Exploring keyboard glitch that finds "C" press when pressing space
// The glitch is caused by the "normal" C64 interrupt occuring just as the keyboard is read.
// Press "I" to disable interrupts (red border)
// Press "E" to enable interrupts (green border)
// Press "C" to enter pressed sta... |
exp/t41.asm | nishuiq/Assembly-Learning | 0 | 177270 | <reponame>nishuiq/Assembly-Learning
assume cs:code
code segment
mov ax,0020h
mov ds,ax
mov cx,64
mov bx,0
s:
mov [bx], bx ; ds:bx中不断置数bx,bx自增
inc bx
loop s
mov ax,4c00h
int 21h
code ends
end |
oeis/275/A275505.asm | neoneye/loda-programs | 11 | 240180 | <filename>oeis/275/A275505.asm
; A275505: Number of 5 X n 0..2 arrays with no element equal to any value at offset (-2,-1) (-2,0) or (-1,-1) and new values introduced in order 0..2.
; Submitted by <NAME>
; 12,56,232,988,4180,17712,75024,317812,1346268,5702888,24157816,102334156,433494436,1836311904,7778742048,329512801... |
Validation/pyFrame3DD-master/gcc-master/gcc/ada/exp_ch3.ads | djamal2727/Main-Bearing-Analytical-Model | 0 | 15950 | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/exp_ch3.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
tools-src/gnu/gcc/gcc/ada/exp_ch4.adb | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 11121 | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
BitEpicness/AbsTest.asm | davidov541/BitEpicness | 0 | 23061 | //abs: funcdecl , ,
abs:// Words: 0
addi $sp, 5
// Words: 1
move $sp, $rr
// Words: 2
addi $0, -1
// Words: 3
swn $ra, $sp, $rr
// Words: 4
addi $rr, -1
// Words: 5
swn $s0, $sp, $rr
// Words: 6
addi $rr, -1
// Words: 7
swn $s1, $sp, $rr
//: formal i, ,
// Words: 8
addi $0, -3
// Words: 9
swn $a0... |
oeis/215/A215061.asm | neoneye/loda-programs | 11 | 81367 | ; A215061: Triangle read by rows, e.g.f. exp(x*(z-1/2))*((exp(3*x/2)+2*cos(sqrt(3)*x/2))/3).
; Submitted by <NAME>(w4)
; 1,0,1,0,0,1,1,0,0,1,0,4,0,0,1,0,0,10,0,0,1,1,0,0,20,0,0,1,0,7,0,0,35,0,0,1,0,0,28,0,0,56,0,0,1,1,0,0,84,0,0,84,0,0,1,0,10,0,0,210,0,0,120,0,0,1,0,0,55,0,0,462,0,0,165,0,0,1,1,0,0
lpb $0
add $1,1
... |
oeis/204/A204030.asm | neoneye/loda-programs | 11 | 15840 | ; A204030: Symmetric matrix based on f(i,j) = gcd(i+1, j+1), by antidiagonals.
; Submitted by <NAME>
; 2,1,1,2,3,2,1,1,1,1,2,1,4,1,2,1,3,1,1,3,1,2,1,2,5,2,1,2,1,1,1,1,1,1,1,1,2,3,4,1,6,1,4,3,2,1,1,1,1,1,1,1,1,1,1,2,1,2,1,2,7,2,1,2,1,2,1,3,1,5,3,1,1,3,5,1,3,1,2,1,4,1,2,1,8,1,2,1,4,1,2,1,1,1,1,1,1,1,1
lpb $0
add $1,1
... |
programs/oeis/258/A258835.asm | neoneye/loda | 22 | 170898 | ; A258835: Expansion of psi(x)^3 * psi(x^4) in powers of x where psi() is a Ramanujan theta function.
; 1,3,3,4,7,6,9,13,9,10,15,15,13,19,18,16,30,21,19,27,21,31,31,24,25,39,33,28,48,30,35,54,33,34,52,42,45,51,39,45,55,51,50,70,45,46,78,48,54,80,57,63,78,54,55,75,84,58,79,60,61,117,63,74,87,72,81,91,75,77,121,93,81,99,... |
src/kernel/arch/x86_64/asm/isr.asm | aryanmaurya1/ArvernOS | 77 | 165094 | %macro def_exception_handler 1
global exc%1
exc%1:
cli
push dword 0
push dword %1
jmp int_common_stub
%endmacro
; See: https://github.com/littleosbook/littleosbook/blob/e90faeb24c5c9fed8cde9a35974893706e81cbbf/interrupts.md
;
; +------------+
; +40 | %SS |
; +32 | %RSP |
; +24 | %C... |
src/Lib/Sassy/tests/movx.asm | pnkfelix/larceny | 212 | 83393 | BITS 32
section .text
foo:
movsx ebp, ax
movzx ebp, word [edi]
movsx ebp, al
movzx ebp, byte [edi]
movsx bp, ah
movzx bp, [edi]
|
src/extraction-renamings.ads | TNO/Dependency_Graph_Extractor-Ada | 1 | 9155 | <reponame>TNO/Dependency_Graph_Extractor-Ada
with Extraction.Graph_Operations;
private package Extraction.Renamings is
procedure Extract_Edges
(Node : LAL.Ada_Node'Class;
Graph : Graph_Operations.Graph_Context);
end Extraction.Renamings;
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/noreturn4.adb | best08618/asylo | 7 | 14519 | <reponame>best08618/asylo
-- { dg-do compile }
with Noreturn4_Pkg; use Noreturn4_Pkg;
package body Noreturn4 is
procedure P1 (Msg : String) is
begin
P1 (Msg, 0);
end;
procedure P1 (Msg : String; Val : Integer) is
begin
Fatal_Error (Value (It));
end;
procedure Fatal_Error (X : Integer) is
b... |
oeis/160/A160131.asm | neoneye/loda-programs | 11 | 87794 | ; A160131: Numerator of Hermite(n, 8/27).
; Submitted by <NAME>
; 1,16,-1202,-65888,4203340,451512256,-23418152504,-4324519655552,169813349966992,53158210861830400,-1377759404477582624,-797090864837128553984,9343051491617413259968,14095390595056279792663552,48438051548784025753183360,-286940104001508238715797489664,-56... |
controlFlow/for_statement.asm | DanerSound/MIPS-from-scratch | 2 | 27695 | <reponame>DanerSound/MIPS-from-scratch<gh_stars>1-10
# simple workflow to understand the for statement
# for(index=0; index<= n; i++)
#
.data
.text
main:
move $t0, $zero # force index to zero
li $t1, 5 # load the max size
for: blt $t1, $t0, exit # branch less than <= si fermerà a uno in più
add $t0, $t0... |
src/tfdisk/hdbt32.asm | neri/osz | 7 | 4756 | <reponame>neri/osz
;;
;; MEG-OS Boot Sector for FAT32 (beta)
;;
;; Copyright (c) 1998-2013, MEG-OS project
;; 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 cod... |
oeis/052/A052849.asm | neoneye/loda-programs | 11 | 11897 | <reponame>neoneye/loda-programs<filename>oeis/052/A052849.asm
; A052849: a(0) = 0; a(n+1) = 2*n! (n >= 0).
; 0,2,4,12,48,240,1440,10080,80640,725760,7257600,79833600,958003200,12454041600,174356582400,2615348736000,41845579776000,711374856192000,12804747411456000,243290200817664000,4865804016353280000,10218188434341888... |
proglangs-learning/Agda/sv20/assign2/SetTheory/ZAxioms.agda | helq/old_code | 0 | 16847 | <reponame>helq/old_code<filename>proglangs-learning/Agda/sv20/assign2/SetTheory/ZAxioms.agda
-------------------------------------------------
-- Formalisation of the Z axioms of set theory.
-------------------------------------------------
module sv20.assign2.SetTheory.ZAxioms where
open import sv20.assign2.SetTheory... |
src/PJ/flic386p/libsrc/8514/mmmmblto.asm | AnimatorPro/Animator-Pro | 119 | 163213 | <reponame>AnimatorPro/Animator-Pro
;mmmmblto.asm - move rectangular 8 bit image to RamRast from 8514.
;
include a8514.i
include raster.i
CGROUP group code
code segment dword 'CODE'
assume cs:CGROUP,ds:CGROUP
;void pj_8514_t_blitrect(Vscreen *source, Coor sx, Coor sy,
; RamRast *dest, Coor dx, Coor... |
src/main/antlr4/ALM.g4 | Topology/ALM-Sys-Desc-Compiler | 0 | 57 | /**
* This Grammar Follows the BNF for ALM as described in Appendix A of "Modular Action Language ALM"
* by <NAME> and <NAME>.
*
* This document was created by <NAME>
* Date: 7/2/2015
* Copyright: Texas Tech University
*
*/
grammar ALM;
/* ABOUT THE GRAMMAR RULES THAT FOLLOW:
* 1) Lexer Rul... |
talk1.asm | kanpapa/cosmac | 2 | 246312 | <filename>talk1.asm<gh_stars>1-10
*
* AquesTalkPico Sample program 1 for COSMAC
* SB-Assembler
*
.CR 1802
.OR $0000
*
START LDI #IOR ;#IOR -> D
PLO 5 ;D -> R(5).0
SEX 5 ;5 -> X
*
LDI #0 ;0 -> D
STR 5 ;D -> M(R(5))
OUT 4 ;M(R(5)) -> BUS; R(5)+1 -> R(5)
DEC 5 ;R(5)-1 -> R(N)
*
LOOP1 LDI #1 ;1 -> D
ADD ;M(R(X))+... |
smsq/java/ip/io.asm | olifink/smsqe | 0 | 177651 | <filename>smsq/java/ip/io.asm
; IP IO routines V1.00 2004 <NAME>
; 1.02 check for UDP (wl)
; 1.01 adapted for java wl
section ip
xdef ip_io
xref udp_name
xref udd_name
include 'dev8_keys_err'
include 'dev8_keys_socket'
include 'dev8_keys_java'
include 'dev8_smsq_java_ip_data'
ip_io
move.l a... |
WeakArrows.agda | jmchapman/Relative-Monads | 21 | 8099 | <filename>WeakArrows.agda
module WeakArrows where
open import Library
open import Categories
record Arrow {l m}(J : Cat {l}{m}) : Set (lsuc (l ⊔ m)) where
constructor arrow
open Cat J
field R : Obj → Obj → Set m
pure : ∀{X Y} -> Hom X Y -> R X Y
_<<<_ : ∀{X Y Z} → R Y Z -> R X Y -> R X Z... |
oeis/049/A049858.asm | neoneye/loda-programs | 11 | 172573 | <gh_stars>10-100
; A049858: a(n) = Sum{a(k): k=0,1,2,...,n-4,n-2,n-1}; a(n-3) is not a summand; 3 initial terms required.
; Submitted by <NAME>
; 0,1,2,3,5,9,17,32,60,112,209,390,728,1359,2537,4736,8841,16504,30809,57513,107363,200421,374138,698426,1303794,2433871,4543454,8481540,15833003,29556423,55174760,102998057,19... |
samples/Agda/NatCat.agda | alexgracianoarj/detect-languages | 2 | 4954 | module NatCat where
open import Relation.Binary.PropositionalEquality
-- If you can show that a relation only ever has one inhabitant
-- you get the category laws for free
module
EasyCategory
(obj : Set)
(_⟶_ : obj → obj → Set)
(_∘_ : ∀ {x y z} → x ⟶ y → y ⟶ z → x ⟶ z)
(id : ∀ x → x ⟶ x)
(single-inhabitan... |
Chapter 1/1.6 - Paging/real_mode/print_hex.asm | gmarino2048/64bit-os-tutorial | 87 | 87069 | ;
; paging
;
; print_hex.asm
;
[bits 16]
; Define Function print_hex_bios
; Input in bx
print_hex_bios:
; Save state
push ax
push bx
push cx
; Enable print mode
mov ah, 0x0E
; Print prefix
mov al, '0'
int 0x10
mov al, 'x'
int 0x10
; Initialize cx as counter
; 4 n... |
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-valflt.ads | JCGobbi/Nucleo-STM32G474RE | 0 | 5183 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
oeis/021/A021665.asm | neoneye/loda-programs | 11 | 105443 | <reponame>neoneye/loda-programs
; A021665: Decimal expansion of 1/661.
; Submitted by Jon Maiga
; 0,0,1,5,1,2,8,5,9,3,0,4,0,8,4,7,2,0,1,2,1,0,2,8,7,4,4,3,2,6,7,7,7,6,0,9,6,8,2,2,9,9,5,4,6,1,4,2,2,0,8,7,7,4,5,8,3,9,6,3,6,9,1,3,7,6,7,0,1,9,6,6,7,1,7,0,9,5,3,1,0,1,3,6,1,5,7,3,3,7,3,6,7,6,2,4,8,1,0
mov $2,10
pow $2,$0
mul... |
resources/asm/test04-basic-input.asm | aa-dav/SimpX | 0 | 17691 | <gh_stars>0
; *******************************************************************
; * test04.asm - ввод символов с клавиатуры с мгновенной их печатью *
; *******************************************************************
#include "simple_lib.inc"
; Строка с приветствием
str dw "Press keys..." 13 0
start ; Вводим ... |
test/Succeed/Issue1770.agda | cruhland/agda | 1,989 | 9152 | {-# OPTIONS -v scope.import:10 #-}
import Common.Level
import Common.Level
|
generated/natools-static_maps-s_expressions-conditionals-strings.adb | faelys/natools | 0 | 17630 | <reponame>faelys/natools
-- Generated at 2015-03-31 18:55:08 +0000 by Natools.Static_Hash_Maps
-- from src/natools-s_expressions-conditionals-strings-maps.sx
with Natools.Static_Maps.S_Expressions.Conditionals.Strings.P;
with Natools.Static_Maps.S_Expressions.Conditionals.Strings.S;
package body Natools.Static_Maps... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1475.asm | ljhsiun2/medusa | 9 | 80302 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1e4dd, %r11
nop
nop
nop
nop
nop
and %r8, %r8
mov $0x6162636465666768, %rbx
movq %rbx, %xmm2
and $0xffffffffffffffc0, %r11
vmovntdq %ymm2, (%r11)
nop
nop
and $36996, ... |
programs/oeis/210/A210357.asm | karttu/loda | 0 | 98407 | ; A210357: Location of the maximum modulus in the inverse of Hilbert's matrix.
; 1,2,2,3,4,5,5,6,7,7,8,9,10,10,11,12,12,13,14,15,15,16,17,17,18,19,19,20,21,22,22,23,24,24,25,26,27,27,28,29,29,30,31,31,32,33,34,34,35,36,36,37,38,39,39,40,41,41,42,43,44,44,45,46,46,47,48,48,49,50,51,51,52,53,53,54,55,56,56,57,58,58,59,60... |
oeis/315/A315748.asm | neoneye/loda-programs | 11 | 14528 | ; A315748: Coordination sequence Gal.5.294.4 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.
; Submitted by <NAME>(s2)
; 1,6,12,18,23,29,34,40,46,52,58,64,70,75,81,86,92,98,104,110,116,122,127,133,138,144,150,156,162,168,174,179,185,19... |
src/Bf/Ip.agda | mietek/formal-logic | 26 | 5468 | -- Intuitionistic propositional logic, de Bruijn approach, final encoding
module Bf.Ip where
open import Lib using (List; _,_; LMem; lzero; lsuc)
-- Types
infixl 2 _&&_
infixl 1 _||_
infixr 0 _=>_
data Ty : Set where
UNIT : Ty
_=>_ : Ty -> Ty -> Ty
_&&_ : Ty -> Ty -> Ty
_||_ : Ty -> Ty -> T... |
data/phone/text/huey_overworld.asm | Dev727/ancientplatinum | 28 | 90600 | HueyAskNumber1Text:
text "Cool! That's the"
line "first time I've"
cont "lost in a while!"
para "Hey, give me your"
line "phone number."
para "You'd be fun to"
line "battle, so I'll"
para "call you when I"
line "get stronger!"
done
HueyAskNumber2Text:
text "Hey, give me your"
line "phone number."
para... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.