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 |
|---|---|---|---|---|
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-nucoar.ads | JCGobbi/Nucleo-STM32G474RE | 7 | 24088 | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
src/aco-nodes.adb | jonashaggstrom/ada-canopen | 6 | 27879 | <gh_stars>1-10
package body ACO.Nodes is
overriding
procedure On_Event
(This : in out Tick_Subscriber;
Data : in ACO.Events.Handler_Event_Data)
is
begin
This.Node_Ref.Periodic_Actions (T_Now => Data.Current_Time);
This.Node_Ref.Od.Events.Process;
end On_Event;
overridin... |
programs/loop/loop.asm | danielkasza/lcore | 1 | 173407 | .orig x0
loop:
add r0, r0, #1
brnp loop
halt:
br halt
.end
|
standard_quicksort.asm | rezKamal/assembly_sort | 1 | 165848 | # This code contains three procedures: qs that performs quicksort, partition that
# "partitions" the array based on the pivot (end of the input array) and swap,
# which swaps two different locations in memory
# to use the code, we need to initialize an integer array v[n]
# then put the base address of that array in $a... |
drivers/video/ms/vga/disp/8bpp/i386/monopat.asm | npocmaka/Windows-Server-2003 | 17 | 20186 | <filename>drivers/video/ms/vga/disp/8bpp/i386/monopat.asm<gh_stars>10-100
;---------------------------Module-Header------------------------------;
; Module Name: monopat.asm
;
; Copyright (c) 1992-1993 Microsoft Corporation. All rights reserved.
;--------------------------------------------------------------------... |
src/Math.g4 | micsmics/math-converter | 0 | 2447 | /*====================================================================================*/
/* TRABALHO REALIZADO PARA A DISCIPLINA DE CONSTRUÇÃO DE COMPILADORES */
/* PROF: <NAME> */
/*============================================================... |
boot/a20.asm | spevans/hello-swift | 0 | 100630 | <gh_stars>0
;;; boot/a20.asm
;;;
;;; Copyright © 2015 <NAME>. All rights reserved.
;;;
;;; Enable the A20 gate using various methods.
;;; Starts with a check to see if its even needed
FAST_A20_GATE EQU 0x92
A20_TEST_COUNT EQU 5
;;; Enable the A20 using differnt methods, returns carry set if not enabled
... |
programs/oeis/229/A229093.asm | jmorken/loda | 1 | 17574 | ; A229093: The clubs patterns appearing in n X n coins.
; 0,0,1,2,4,6,9,12,17,22,27,34,41,48,57,66,75,86,97,108,121,134,147,162,177,192,209,226,243,262,281,300,321,342,363,386,409,432,457,482,507,534,561,588,617,646,675,706,737,768,801,834,867,902,937,972,1009,1046,1083,1122,1161,1200,1241,1282,1323,1366,1409,1452,1497... |
alloy4fun_models/trashltl/models/11/QzqhWFQ5bwcyn3YA6.als | Kaixi26/org.alloytools.alloy | 0 | 1970 | <reponame>Kaixi26/org.alloytools.alloy<gh_stars>0
open main
pred idQzqhWFQ5bwcyn3YA6_prop12 {
eventually (all f:File | eventually f in Trash implies always f in Trash)
}
pred __repair { idQzqhWFQ5bwcyn3YA6_prop12 }
check __repair { idQzqhWFQ5bwcyn3YA6_prop12 <=> prop12o } |
src/lib/Readable_Sequences/readable_sequences-string_sequences.ads | fintatarta/protypo | 0 | 9764 | with Ada.Containers.Vectors;
with Readable_Sequences.Generic_Sequences;
package Readable_Sequences.String_Sequences is
package Basic_String_Sequences is
new Generic_Sequences (Element_Type => Character,
Element_Array => String);
type Sequence (<>) is
new Basic_String_Seque... |
programs/oeis/017/A017380.asm | neoneye/loda | 22 | 105358 | ; A017380: a(n) = (10*n + 9)^4.
; 6561,130321,707281,2313441,5764801,12117361,22667121,38950081,62742241,96059601,141158161,200533921,276922881,373301041,492884401,639128961,815730721,1026625681,1275989841,1568239201,1908029761,2300257521,2750058481,3262808641,3844124001,4499860561,5236114321,6059221281,6975757441,7992... |
extern/game_support/stm32f4/src/screen_interface.ads | AdaCore/training_material | 15 | 26446 | with STM32F4.LCD; use STM32F4.LCD;
package Screen_Interface is
subtype Width is STM32F4.LCD.Width;
subtype Height is STM32F4.LCD.Height;
type Touch_State is record
Touch_Detected : Boolean;
X : Width;
Y : Height;
end record;
type Point is record
X : Width;
Y : Height;
... |
tarmi-combiners.ads | DerickEddington/tarmi | 0 | 2909 | <reponame>DerickEddington/tarmi
with Tarmi.Environments; use Tarmi.Environments;
package Tarmi.Combiners is
type Combiner_R is abstract new Datum_R with null record;
type Combiner is not null access constant Combiner_R'Class;
type Operative_R is new Combiner_R with
record
Param_Tree_Formals :... |
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/NES_Ver2/us_asm/zel_bms2.asm | prismotizm/gigaleak | 0 | 7277 | Name: zel_bms2.asm
Type: file
Size: 2252
Last-Modified: '2016-05-13T04:27:09Z'
SHA-1: 5DBA115263B3D41A95D6B97B0C44B6F3931F327B
Description: null
|
Transynther/x86/_processed/NONE/_ht_zr_/i7-7700_9_0xca.log_21829_1380.asm | ljhsiun2/medusa | 9 | 15134 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %rax
push %rbx
push %rcx
push %rdx
lea addresses_normal_ht+0xf6f, %r12
nop
nop
nop
xor %r8, %r8
movb (%r12), %dl
nop
nop
nop
nop
cmp %rax, %rax
lea addresses_A_ht+0x39bf, %rbx
nop
nop
sub %rdx, %rdx
mov $0x6162636465666768, %r11
movq %r11, %... |
programs/oeis/033/A033168.asm | neoneye/loda | 22 | 173309 | ; A033168: Longest arithmetic progression of primes with difference 210 and minimal initial term.
; 199,409,619,829,1039,1249,1459,1669,1879,2089
mul $0,210
add $0,199
|
src/SingleSorted/Group.agda | cilinder/formaltt | 21 | 15681 | <filename>src/SingleSorted/Group.agda<gh_stars>10-100
open import SingleSorted.AlgebraicTheory
open import Agda.Primitive using (lzero; lsuc; _⊔_)
open import Relation.Binary.PropositionalEquality using (_≡_; refl)
open import SingleSorted.Substitution
open import Data.Nat using (ℕ; zero; suc; _+_; _*_)
module SingleS... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_564.asm | ljhsiun2/medusa | 9 | 863 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1acf8, %r9
nop
nop
nop
sub %r13, %r13
mov $0x6162636465666768, %rax
movq %rax, %xmm5
movups %xmm5, (%r9)
nop
nop
dec %r8
lea addresses_WC_ht+0x18b78, %r12
nop
nop
nop
inc %r13... |
LearnAssembly/chap8/do_while.asm | wisemountain/wise.learn | 3 | 86615 | <gh_stars>1-10
segment .data
data db "hello world", 0
n dq 0
needle db 'w'
segment .text
global _start
; find needle in data
; - a simple search of a character in a null terminated string
_start:
push rbp
mov rbp, rsp
sub rsp, 16
; end of initialization
mov bl, [needle] ... |
programs/oeis/156/A156843.asm | neoneye/loda | 22 | 23828 | <gh_stars>10-100
; A156843: 279841n^2 - 165048n + 24335.
; 24335,139128,813603,2047760,3841599,6195120,9108323,12581208,16613775,21206024,26357955,32069568,38340863,45171840,52562499,60512840,69022863,78092568,87721955,97911024,108659775,119968208,131836323,144264120,157251599,170798760,184905603,199572128,214798335,23... |
programs/oeis/112/A112387.asm | karttu/loda | 0 | 98015 | <filename>programs/oeis/112/A112387.asm
; A112387: a(1)=1, a(2)=2, a(n)= 2^(n/2) if even and a(n-1)-a(n-2) if odd.
; 1,2,1,4,3,8,5,16,11,32,21,64,43,128,85,256,171,512,341,1024,683,2048,1365,4096,2731,8192,5461,16384,10923,32768,21845,65536,43691,131072,87381,262144,174763,524288,349525,1048576,699051,2097152,1398101,4... |
_build/dispatcher/jmp_ippsAES_CMACFinal_beaa685d.asm | zyktrcn/ippcp | 1 | 166001 | <reponame>zyktrcn/ippcp
extern m7_ippsAES_CMACFinal:function
extern n8_ippsAES_CMACFinal:function
extern y8_ippsAES_CMACFinal:function
extern e9_ippsAES_CMACFinal:function
extern l9_ippsAES_CMACFinal:function
extern n0_ippsAES_CMACFinal:function
extern k0_ippsAES_CMACFinal:function
extern ippcpJumpIndexForMergedLibs
ex... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3704n.ada | best08618/asylo | 7 | 14173 | <gh_stars>1-10
-- CE3704N.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.... |
reachability.agda | hazelgrove/hazelnut-agda | 0 | 7397 | <filename>reachability.agda
open import Nat
open import Prelude
open import List
open import judgemental-erase
open import moveerase
open import sensibility
open import statics-checks
open import statics-core
module reachability where
-- algorithmically, we break reachability into two halves: first you
-- produce ... |
libsrc/graphics/sv8000/pixladdr_MODE1.asm | jpoikela/z88dk | 640 | 169912 | <filename>libsrc/graphics/sv8000/pixladdr_MODE1.asm
;
;----------- GFX paging -------------
SECTION code_clib
PUBLIC pixeladdress_MODE1
INCLUDE "target/sv8000/def/sv8000.def"
; Entry h = x
; l = y
; Exit: hl = address
; a = pixel number
; Uses: a, bc, de, hl
.pixeladdress_MODE1
; add y-times the... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/warn10.ads | best08618/asylo | 7 | 19109 | with Warn10_Pkg; use Warn10_Pkg;
package Warn10 is
type My_Driver is new Root with record
Extra : Natural;
end record;
procedure Do_Something(Driver : My_Driver);
end Warn10;
|
home/map_objects.asm | AtmaBuster/pokeplat-gen2 | 6 | 244283 | ; Functions handling map objects.
GetSpritePalette::
push hl
push de
push bc
ld c, a
farcall _GetSpritePalette
ld a, c
pop bc
pop de
pop hl
ret
GetSpriteVTile::
push hl
push de
push bc
ldh [hUsedSpriteIndex], a
farcall GetSprite
ld hl, wSpriteFlags
res 5, [hl]
ldh a, [hObjectStructIndexBuffer]
; ... |
projects/Links_Awakening_gb.windfish/configuration/macros/ifNe.asm | jverkoey/awaken | 68 | 90793 | ld a, [#1]
cp #2
jr z, #3 |
oeis/098/A098599.asm | neoneye/loda-programs | 11 | 90537 | <reponame>neoneye/loda-programs
; A098599: Riordan array ((1+2x)/(1+x),(1+x)).
; Submitted by <NAME>
; 1,1,1,-1,2,1,1,0,3,1,-1,0,2,4,1,1,0,0,5,5,1,-1,0,0,2,9,6,1,1,0,0,0,7,14,7,1,-1,0,0,0,2,16,20,8,1,1,0,0,0,0,9,30,27,9,1,-1,0,0,0,0,2,25,50,35,10,1,1,0,0,0,0,0,11,55,77,44,11,1,-1,0,0,0,0,0,2,36,105,112,54,12,1,1,0,0,0,... |
src/natools-web-tags.ads | faelys/natools-web | 1 | 12568 | <reponame>faelys/natools-web
------------------------------------------------------------------------------
-- Copyright (c) 2014-2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this softw... |
general_hacks.asm | BetaDream-X/Mother3German | 11 | 164570 | <gh_stars>10-100
//===========================================================================================
//
// General hacks available:
//
// * custom_strcopy: Copies a 0xFFFF-terminatd string from the address in r0 to the address
// in r1. Returns the number of bytes copied in r0 upon completio... |
src/songload.asm | furrtek/GB303 | 90 | 14579 | loadsong:
ld a,(HWOK_EE)
or a
ret z ;No EE operation if EE boot check failed
ld a,(SAVECURSONGSLOT)
cp MAX_SONGS
ret nc ;Sanity check
ld b,a
sla a
add b ;*3
ld h,0 ;*64
ld l,a
add hl,hl
add hl,hl
add hl,hl
add ... |
SCS3211/Excercises/Take Home/question2.asm | UdeshUK/UCSC-CS | 6 | 12217 | <filename>SCS3211/Excercises/Take Home/question2.asm<gh_stars>1-10
.text
la $a0,hint
li $v0,4
syscall
la $a0,binary
li $a1,16
li $v0,8
syscall
# Count string length
count_loop:
addu $t1,$a0,$t0
lb $t2,($t1)
beq $t2,10,count_end
addiu $t0,$t0,1
j count_loop
count_end:
addiu $t1,$a0,0
subiu $t0,$t... |
source/torrent-logs.adb | reznikmm/torrent | 4 | 5727 | -- Copyright (c) 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Text_IO;
package body Torrent.Logs is
Output : Ada.Text_IO.File_Type;
----------------
-- Initialize --
----------------
pr... |
AVR/Speck64_128_LowRam.asm | openluopworld/simon-speck | 2 | 164361 | /*
* Speck64_128_LowRam.asm
*
* Created: 2015/6/3 16:27:08
* Author: LuoPeng
*/
.def currentRound = r16;
.def totalRound = r17;
.def zero = r18;
.dseg
plainText: .byte 8 ; the 8 bytes of plaintext, from high byte to low byte.
cipherText: .byte 8 ; the 8 bytes of ciphertext, from high byte to low byte.
.c... |
src/applescript/notifications.applescript | elijahmanor/recording | 2 | 1544 | -- Toggle Do Not Disturb
tell application "System Events"
tell application process "SystemUIServer"
try
key down option
if state = "start" then
click menu bar item "Notification Center" of menu bar 2
else
click menu bar item "Notification C... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2294.asm | ljhsiun2/medusa | 9 | 84623 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xdb32, %rsi
lea addresses_WT_ht+0x16372, %rdi
nop
add $28070, %r8
mov $35, %rcx
rep movsb
nop
nop
nop
nop
cmp $3308, %rbp
lea addresses_D_ht+0xcfc, %rdx
nop
cmp ... |
Database Events Examples/Query Examples.applescript | bbelyeu/applescripts | 12 | 1301 | -- query the database
set database_file to (POSIX path of (path to documents folder)) & "Databases/presidents.dbev"
tell application "Database Events"
tell database database_file
get value of field "Last Name" of (every record whose value of field "Start Year" is greater than or equal to 1800 and value of field "St... |
notes/talks/Types07/Bad.agda | cruhland/agda | 1,989 | 5919 | <filename>notes/talks/Types07/Bad.agda
module Bad where
data Bool : Set where
false : Bool
true : Bool
data Nat : Set where
zero : Nat
suc : Nat -> Nat
F : Bool -> Set
F false = Bool
F true = Nat
cast : {x : Bool} -> F x -> F x
cast a = a
not : Bool -> Bool
not true = false
not false = true
oops : Bo... |
src/data/lib/prim/Agda/Builtin/Equality/Rewrite.agda | shlevy/agda | 1 | 193 | <filename>src/data/lib/prim/Agda/Builtin/Equality/Rewrite.agda
{-# OPTIONS --without-K --rewriting --no-sized-types --no-guardedness
--no-subtyping #-}
module Agda.Builtin.Equality.Rewrite where
open import Agda.Builtin.Equality
{-# BUILTIN REWRITE _≡_ #-}
|
data/old_rod.asm | etdv-thevoid/pokemon-rgb-enhanced | 1 | 171928 | <reponame>etdv-thevoid/pokemon-rgb-enhanced
; old rod data
; format: map, pointer to fishing group
OldRodData:
dbw PALLET_TOWN, OldGroup1
dbw VIRIDIAN_CITY, OldGroup2
dbw CERULEAN_CITY, OldGroup2
dbw VERMILION_CITY, OldGroup1
dbw CELADON_CITY, OldGroup2
dbw FUCHSIA_CITY, OldGroup2
dbw CINNABAR_ISLAND, OldGroup1
... |
alloy4fun_models/trashltl/models/11/eedcwmHZDLuZ2zHBF.als | Kaixi26/org.alloytools.alloy | 0 | 4466 | <filename>alloy4fun_models/trashltl/models/11/eedcwmHZDLuZ2zHBF.als
open main
pred ideedcwmHZDLuZ2zHBF_prop12 {
always all t:Trash | t in Trash releases t not in Trash
}
pred __repair { ideedcwmHZDLuZ2zHBF_prop12 }
check __repair { ideedcwmHZDLuZ2zHBF_prop12 <=> prop12o } |
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2623.asm | ljhsiun2/medusa | 9 | 29386 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x15b2a, %r15
nop
nop
nop
nop
nop
sub $55610, %r14
and $0xffffffffffffffc0, %r15
movaps (%r15), %xmm2
vpextrq $1, %xmm2, %r8
nop
nop
nop
nop
nop
ad... |
test/Compiler/simple/UniversePolymorphicIO.agda | redfish64/autonomic-agda | 0 | 5776 | <reponame>redfish64/autonomic-agda
{-# OPTIONS --universe-polymorphism #-}
module UniversePolymorphicIO where
open import Common.Level
postulate
IO : ∀ {ℓ} → Set ℓ → Set ℓ
{-# IMPORT UniversePolymorphicIO #-}
{-# COMPILED_TYPE IO UniversePolymorphicIO.AgdaIO #-}
{-# BUILTIN IO IO #-}
postulate
return : ∀ {a} {... |
cmd/sys/path.asm | minblock/msdos | 0 | 173831 | Page ,132
title Path Searching Routines
; PATH.ASM - Code to search the environment for a particular data string,
; and to search the path for a particular file. Adapted from the original
; COMMAND.COM version.
;
; Routines supported:
; Find_in_Environment - locate the start of a given stri... |
parser/Expr.g4 | cameronhatfield/expr | 0 | 2369 | grammar Expr;
start
: e=expr EOF
;
expr
: '.' name=Identifier # ClosureMemberDot
| expr '[' index=expr ']' # MemberIndex
| expr '[' a=expr? ':' b=expr? ']' # Slice
| expr '.' name=Identifier # MemberDot
| builtins ... |
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_817.asm | ljhsiun2/medusa | 9 | 162091 | <filename>Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_817.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1b409, %r15
nop
and %r8, %r8
movb (%r15), %al
nop
nop
nop
nop
and %r11, %r11
lea addresses_nor... |
oeis/304/A304370.asm | neoneye/loda-programs | 11 | 86289 | ; A304370: Number of function calls of the first kind required to compute ack(3,n), where ack denotes the Ackermann function.
; Submitted by <NAME>
; 9,58,283,1244,5213,21342,86367,347488,1394017,5584226,22353251,89445732,357848421,1431524710,5726360935,22905967976,91624920425,366501778794,1466011309419,5864053626220,2... |
programs/oeis/094/A094706.asm | neoneye/loda | 22 | 246686 | ; A094706: Convolution of Pell(n) and 2^n.
; 0,1,4,13,38,105,280,729,1866,4717,11812,29365,72590,178641,438064,1071153,2613138,6362965,15470140,37565389,91125206,220864377,534951112,1294960905,3133261530,7578261181,18323338324,44292046693,107041649438,258643781025,624866082400,1509449687649,3645912941346,8805570537637,... |
oeis/178/A178389.asm | neoneye/loda-programs | 11 | 173924 | <reponame>neoneye/loda-programs<filename>oeis/178/A178389.asm
; A178389: Multiples of 3 in A175461.
; Submitted by <NAME>
; 21,69,93,141,213,237,309,381,453,501,573,597,669,717,789,813,933,1077,1101,1149,1293,1317,1389,1437,1461,1509,1797,1821,1893,1941,2157,2181,2229,2253,2469,2517,2589,2661,2733,2757,2901,2949,2973,3... |
SLIDE_Random.asm | XlogicX/CactusCon2017 | 2 | 89068 | <filename>SLIDE_Random.asm
%include 'textmode.h'
call draw_border
mov di, 160 * 2 + 8 ;where to place cursor
mov si, line01 ;fetch the text
mov ah, 0x0A ;color
call slide_line
mov di, 160 * 4 + 16 ;where to place cursor
mov si, line02 ;fetch the text
call slide_line
mov di, 160 * 6 + 16 ;where to place... |
applet/aide/source/aide-style.ads | charlie5/aIDE | 3 | 29586 | <reponame>charlie5/aIDE
with
Gtk.Widget;
package aIDE.Style
is
procedure define;
procedure apply_CSS (Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class);
end aIDE.Style;
|
applescript/photos-album-extract.applescript | ithinkihaveacat/dotfiles | 34 | 2966 | #!/usr/bin/env osascript
-- Usage:
--
-- $ photos-album-extract Christmas
--
-- Returns the filenames of the photos in album "Christmas".
on run argv
tell application "Photos"
if length of argv is 0
log "usage: photos-album-extract album"
return
end if
set src to item 1 of argv
try
count of ever... |
oeis/042/A042861.asm | neoneye/loda-programs | 11 | 170560 | <reponame>neoneye/loda-programs
; A042861: Denominators of continued fraction convergents to sqrt(962).
; Submitted by <NAME>(s2)
; 1,62,3845,238452,14787869,917086330,56874140329,3527113786728,218737928917465,13565278706669558,841266017742430061,52172058378737333340,3235508885499457097141,200653722959345077356082,1244... |
bb-runtimes/src/s-textio__tms570-sci.adb | JCGobbi/Nucleo-STM32G474RE | 0 | 1426 | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
Numeral/Natural/Oper/Modulo.agda | Lolirofle/stuff-in-agda | 6 | 16811 | <filename>Numeral/Natural/Oper/Modulo.agda
module Numeral.Natural.Oper.Modulo where
import Lvl
open import Data
open import Data.Boolean.Stmt
open import Logic.Propositional.Theorems
open import Numeral.Natural
open import Numeral.Natural.Oper.Comparisons
open import Relator.Equals
infixl 10100 _mod_
-- Modulo is de... |
dev/emm386/except.asm | minblock/msdos | 0 | 11258 | .386p
page 58,132
;=============================================================================
title EXCEPT - 80386 Processor Exception Handlers
;=============================================================================
;==
;== (C) Copyright MICROSOFT Corp. 1986-1991
;== (C) Copyright COMPAQ Computer Corp. 19... |
oeis/049/A049716.asm | neoneye/loda-programs | 11 | 101170 | <gh_stars>10-100
; A049716: a(n) = 2*n + 1 - prevprime(2*n + 1).
; Submitted by <NAME>(s3)
; 1,2,2,2,4,2,2,4,2,2,4,2,4,6,2,2,4,6,2,4,2,2,4,2,4,6,2,4,6,2,2,4,6,2,4,2,2,4,6,2,4,2,4,6,2,4,6,8,2,4,2,2,4,2,2,4,2,4,6,8,10,12,14,2,4,2,4,6,2,2,4,6,8,10,2,2,4,6,2,4,6,2,4,2,4,6,2,4,6,2,2,4,6,8,10,2,2,4,2,2
mul $0,2
add $0,1
seq... |
Relation/Nullary/Omniscience.agda | oisdk/agda-playground | 6 | 11716 | {-# OPTIONS --cubical --safe --postfix-projections #-}
module Relation.Nullary.Omniscience where
open import Prelude
open import Relation.Nullary.Decidable
open import Relation.Nullary.Decidable.Properties
open import Relation.Nullary.Decidable.Logic
open import Relation.Nullary
open import Data.Bool using (bool)
pr... |
oeis/099/A099458.asm | neoneye/loda-programs | 11 | 87440 | ; A099458: An Alexander sequence for the knot 9_44.
; Submitted by <NAME>
; 1,4,9,12,-1,-56,-178,-336,-321,412,2729,7084,11202,5724,-29911,-121988,-266881,-338976,54222,1644184,5108159,9479212,8682249,-12837036,-79315198,-202151756,-313431031,-143085588,892383039
mov $2,2
mov $3,2
mov $5,1
lpb $0
sub $0,1
div $1,2... |
programs/oeis/071/A071229.asm | neoneye/loda | 22 | 160822 | ; A071229: a(n) = n*(14*n^2-21*n+13)/6.
; 0,1,9,38,102,215,391,644,988,1437,2005,2706,3554,4563,5747,7120,8696,10489,12513,14782,17310,20111,23199,26588,30292,34325,38701,43434,48538,54027,59915,66216,72944,80113,87737,95830,104406,113479,123063,133172,143820,155021,166789,179138,192082,205635,219811,234624,250088,2662... |
Lab Assessment Submission/LA1_1812399042.asm | saimamiduri/CSE331L-Section-1-Fall20-NSU | 0 | 240957 | <gh_stars>0
org 100h ; i#include<stdio.h>
;02---02H;
;int main(){
MOV AX, 02
MOV BX, 02
MOV CX, 0
ADD CX,AX
ADD CX, BX
;AK=AX+BX
;Int a=2,b=3,c=0;
;c=a+b;
;printf(c);
;return 0;
ret
|
randomly-solved-programs/printing again & again on user response.asm | informramiz/Assembly-Language-Programs | 0 | 242804 | <reponame>informramiz/Assembly-Language-Programs
.MODEL SMALL
.STACK 100H
.DATA
INPUT_MSG DB 0AH,0DH,'Enter a number ( 0 to 9 ) : $'
SORRY_MSG DB 0AH,0DH,'Sorry you have entered a wrong number $'
AGAIN_MSG DB 0AH,0DH,'Do you want to exit (y) or restart(n) : $'
END_MSG DB 0AH,0DH,'You haver entered a wron... |
oeis/021/A021733.asm | neoneye/loda-programs | 11 | 19950 | <filename>oeis/021/A021733.asm
; A021733: Decimal expansion of 1/729.
; Submitted by Jon Maiga
; 0,0,1,3,7,1,7,4,2,1,1,2,4,8,2,8,5,3,2,2,3,5,9,3,9,6,4,3,3,4,7,0,5,0,7,5,4,4,5,8,1,6,1,8,6,5,5,6,9,2,7,2,9,7,6,6,8,0,3,8,4,0,8,7,7,9,1,4,9,5,1,9,8,9,0,2,6,0,6,3,1,0,0,1,3,7,1,7,4,2,1,1,2,4,8,2,8,5,3
seq $0,42 ; Unary repres... |
alloy4fun_models/trainstlt/models/6/dWh6pz2Fhkp2d23Xx.als | Kaixi26/org.alloytools.alloy | 0 | 3069 | open main
pred iddWh6pz2Fhkp2d23Xx_prop7 {
always all t : Train | t.pos in Entry => eventually t.pos not in Entry
}
pred __repair { iddWh6pz2Fhkp2d23Xx_prop7 }
check __repair { iddWh6pz2Fhkp2d23Xx_prop7 <=> prop7o } |
obj/user/buggyhello2.asm | SongBiu/JOS | 0 | 240213 |
obj/user/buggyhello2: file format elf32-i386
Disassembly of section .text:
00800020 <_start>:
// starts us running when we are initially loaded into a new environment.
.text
.globl _start
_start:
// See if we were started with arguments on the stack
cmpl $USTACKTOP, %esp
800020: 81 fc 00 e0 bf ee cmp ... |
state/state_transition_1.als | nowavailable/alloy_als_study | 0 | 5074 | abstract sig State {
previous: lone State
}
sig Idle extends State {} {
previous = none
}
sig Success extends State {} {
previous != none
}
sig Fail extends State { } {
previous != none
}
fact {
/**
* Successしたらその次のStateは無い。つまり、
* Successがpreviousとして指されることはない。
*/
no s:Success | s in State.p... |
oeis/104/A104376.asm | neoneye/loda-programs | 11 | 244812 | ; A104376: a(n) = Sum_{j=0..13} n^j.
; 1,14,16383,2391484,89478485,1525878906,15672832819,113037178808,628292358729,2859599056870,11111111111111,37974983358324,116719860413533,328114698808274,854769755812155,2085209001813616,4803839602528529,10523614159962558,22047845151887119,44389260321271340,86231578947368421,162195... |
alloy4fun_models/trashltl/models/3/Xq69gGZj3JSQr2zbq.als | Kaixi26/org.alloytools.alloy | 0 | 2617 | <filename>alloy4fun_models/trashltl/models/3/Xq69gGZj3JSQr2zbq.als
open main
pred idXq69gGZj3JSQr2zbq_prop4 {
some f: File | once f not in Protected and eventually always f in Trash
}
pred __repair { idXq69gGZj3JSQr2zbq_prop4 }
check __repair { idXq69gGZj3JSQr2zbq_prop4 <=> prop4o } |
engine/phone/scripts/alan.asm | Dev727/ancientplatinum | 28 | 100889 | AlanPhoneCalleeScript:
gettrainername STRING_BUFFER_3, SCHOOLBOY, ALAN1
checkflag ENGINE_ALAN
iftrue .WantsBattle
farscall PhoneScript_AnswerPhone_Male
checkflag ENGINE_ALAN_WEDNESDAY_AFTERNOON
iftrue .NotWednesday
checkflag ENGINE_ALAN_HAS_FIRE_STONE
iftrue .FireStone
readvar VAR_WEEKDAY
ifnotequal WEDNESDAY... |
oeis/017/A017438.asm | neoneye/loda-programs | 11 | 84198 | <reponame>neoneye/loda-programs<gh_stars>10-100
; A017438: a(n) = (11*n + 4)^2.
; 16,225,676,1369,2304,3481,4900,6561,8464,10609,12996,15625,18496,21609,24964,28561,32400,36481,40804,45369,50176,55225,60516,66049,71824,77841,84100,90601,97344,104329,111556,119025,126736,134689,142884,151321,160000,168921,178084,187489,... |
maps/GoldenrodPokecenter1F.asm | Dev727/ancientplatinum | 28 | 5031 | <gh_stars>10-100
object_const_def ; object_event constants
const GOLDENRODPOKECENTER1F_NURSE
const GOLDENRODPOKECENTER1F_LINK_RECEPTIONIST
const GOLDENRODPOKECENTER1F_GAMEBOY_KID
const GOLDENRODPOKECENTER1F_LASS
const GOLDENRODPOKECENTER1F_POKEFAN_F
GoldenrodPokecenter1F_MapScripts:
db 0 ; scene scripts
db 0 ... |
vendor/stdlib/src/Algebra/Operations.agda | isabella232/Lemmachine | 56 | 6979 | ------------------------------------------------------------------------
-- Some defined operations (multiplication by natural number and
-- exponentiation)
------------------------------------------------------------------------
open import Algebra
module Algebra.Operations (s : Semiring) where
open Semiring s hidi... |
resources/musics/seeking.asm | VincentFoulon80/vixx | 1 | 166315 | !ifndef is_main !eof
; "Seeking"
; Original song by <NAME>
m_seeking:
!byte N_RTM, 12
!byte N_INS, 0, I_TINY_PULSE
!byte N_INS, 1, I_LONG_SAW
!byte N_INS, 2, I_LONG_PULSE
!byte N_INS, 3, I_LONG_PULSE
!byte N_VOI, 1
m_seeking_1:
!byte N_D1
!byte N_NOP
!byte N_D1
!byte N_NOP
... |
bssn/code/bssnevolve.adb | leo-brewin/adm-bssn-numerical | 1 | 2965 | <reponame>leo-brewin/adm-bssn-numerical<gh_stars>1-10
-- for the Real type
with Support; use Support;
-- for text io
with Ada.Text_IO; use Ada.Text_IO;
with Support.Strings; use Support.Strings;
-- for data io
with BSSNBase.Data_IO;
-- for parsing of the command line arguments
with S... |
data/pokemon/base_stats/exeggcute.asm | AtmaBuster/pokeplat-gen2 | 6 | 172457 | db 0 ; species ID placeholder
db 60, 40, 80, 40, 60, 45
; hp atk def spd sat sdf
db GRASS, PSYCHIC ; type
db 90 ; catch rate
db 98 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/exeggcute/front.dimensions"
db GROWTH_SLOW ; g... |
src/Values.agda | nad/chi | 2 | 6960 | <gh_stars>1-10
------------------------------------------------------------------------
-- Values
------------------------------------------------------------------------
open import Atom
module Values (atoms : χ-atoms) where
open import Equality.Propositional
open import Prelude hiding (const)
open import Chi atom... |
Task/Bernoulli-numbers/Ada/bernoulli-numbers.ada | LaudateCorpus1/RosettaCodeData | 1 | 25579 | WITH GMP.Rationals, GMP.Integers, Ada.Text_IO, Ada.Strings.Fixed, Ada.Strings;
USE GMP.Rationals, GMP.Integers, Ada.Text_IO, Ada.Strings.Fixed, Ada.Strings;
PROCEDURE Main IS
FUNCTION Bernoulli_Number (N : Natural) RETURN Unbounded_Fraction IS
FUNCTION "/" (Left, Right : Natural) RETURN Unbounded_Fraction IS... |
programs/oeis/225/A225101.asm | neoneye/loda | 22 | 244546 | ; A225101: Numerator of (2^n - 2)/n.
; 0,1,2,7,6,31,18,127,170,511,186,2047,630,8191,10922,32767,7710,131071,27594,524287,699050,2097151,364722,8388607,6710886,33554431,44739242,19173961,18512790,536870911,69273666,2147483647,2863311530,8589934591,34359738366,34359738367,3714566310,137438953471,183251937962,54975581388... |
bks/BksGetFocus.asm | osfree-project/FamilyAPI | 1 | 101422 | ;/*!
; @file
;
; @ingroup fapi
;
; @brief BksGetFocus DOS wrapper
;
; (c) osFree Project 2018, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author <NAME> (<EMAIL... |
resources/scripts/archive/archiveit.ads | Elon143/Amass | 7,053 | 15418 | <reponame>Elon143/Amass
-- Copyright 2017-2021 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local url = require("url")
name = "ArchiveIt"
type = "archive"
function start()
set_rate_limit(2)
end
function vertical(ctx, domain)
s... |
constants/type_constants.asm | adhi-thirumala/EvoYellow | 16 | 87348 | <filename>constants/type_constants.asm
; Elemental types
NORMAL EQU $00
FIGHTING EQU $01
FLYING EQU $02
POISON EQU $03
GROUND EQU $04
ROCK EQU $05
BUG EQU $07
GHOST EQU $08
STEEL EQU $09
UNK_TYPE EQU $0A
FIRE EQU $14
WATER EQU $15
GRASS EQU $16
ELECTRIC EQU $17
PSYCHIC EQU $18
ICE ... |
programs/oeis/229/A229283.asm | karttu/loda | 1 | 24975 | ; A229283: Number of ascending runs in {1,...,9}^n.
; 0,9,126,1539,17496,190269,2007666,20726199,210450636,2109289329,20920706406,205720279659,2008387814976,19487638017189,188098071296346,1807266603941919,17294855095950516
mov $1,$0
lpb $0,1
add $1,1
sub $2,1
add $2,$1
mul $2,2
add $1,$2
sub $2,2
add $2,... |
Driver/Video/Dumb/HGC/hgcTables.asm | steakknife/pcgeos | 504 | 14366 |
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Video driver
FILE: hgcTables.asm
AUTHOR: <NAME>
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 10/88 initial version
... |
dataset/repos_mining_scripts/visit_website.scpt | S2-group/jspe-seip-2020-replication-package | 92 | 3676 | on run {url_to_download}
tell application "Google Chrome"
activate
open location "http://" & url_to_download
delay 2
set tab_name to title of active tab of front window
delete (every tab of every window where its title = tab_name)
end tell
end run |
src/Native/Runtime/arm/ExceptionHandling.asm | LaudateCorpus1/corert | 2 | 20206 | ;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
;; See the LICENSE file in the project root for more information.
#include "AsmMacros.h"
TEXTAREA
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... |
constants/battle_constants.asm | Dev727/ancientplatinum | 28 | 177466 | ; significant level values
MAX_LEVEL EQU 100
MIN_LEVEL EQU 2
EGG_LEVEL EQU 5
; maximum moves known per mon
NUM_MOVES EQU 4
; significant stat values
BASE_STAT_LEVEL EQU 7
MAX_STAT_LEVEL EQU 13
; minimum damage before type effectiveness
MIN_NEUTRAL_DAMAGE EQU 2
; turns that sleep lasts
REST_SLEEP_TURNS EQU 2
TREEMON... |
avr-examples/example.asm | carliros/favr | 0 | 92883 |
.nolist ; We don't want to actually include defs in our listing file.
.include "m168def.inc" ; m168def.inc defines all the pins on the Mega168 so we can
; use them by their names rather than addresses (not fun).
.list ; We DO want to include the following code in... |
scripts/.vlc-fullscreen-enter.applescript | looking-for-a-job/mac-vlc | 0 | 2690 | #!/usr/bin/osascript
tell application "VLC" to set fullscreen mode to true
|
oeis/079/A079398.asm | neoneye/loda-programs | 11 | 243113 | <reponame>neoneye/loda-programs<filename>oeis/079/A079398.asm
; A079398: a(0)=0, a(1)=1, a(2)=1, a(3)=1, a(n) = a(n-3) + a(n-4) for n > 3.
; Submitted by <NAME>
; 0,1,1,1,1,2,2,2,3,4,4,5,7,8,9,12,15,17,21,27,32,38,48,59,70,86,107,129,156,193,236,285,349,429,521,634,778,950,1155,1412,1728,2105,2567,3140,3833,4672,5707,6... |
Kernel/asm/interrupts.asm | gbarbieripederiva/TP2_So | 0 | 176876 |
section .text
GLOBAL _sti
;enable interrupts
_sti:
sti
ret
;disable interrupts
GLOBAL _cli
_cli:
cli
ret
;apply mask to master pic
GLOBAL picMasterMask
picMasterMask:
push rbp
mov rbp, rsp
mov ax, di
out 21h,al
pop rbp
retn
;apply mask to slave pic
GLOBAL picSlaveMask
picSlaveMask:
push ... |
GitLogin.scpt | kerwinso/ost-tools | 0 | 2444 | # Version 4.0
# Automate terminal logging in to git on textbook-dev and devb, and also looking up realtime transforms based on collectionID
# initialize variables
global username, sudopassword, collectionID, cidlength, validID, user, gitpath
set validID to false
on set_user()
display dialog "GitLogin 4.0: Which ser... |
oeis/001/A001764.asm | neoneye/loda-programs | 11 | 90549 | <filename>oeis/001/A001764.asm
; A001764: a(n) = binomial(3*n,n)/(2*n+1) (enumerates ternary trees and also noncrossing trees).
; 1,1,3,12,55,273,1428,7752,43263,246675,1430715,8414640,50067108,300830572,1822766520,11124755664,68328754959,422030545335,2619631042665,16332922290300,102240109897695,642312451217745,4048514... |
src/grammar/mantra/Mantra.g4 | mantra/grammar | 2 | 1371 | grammar Mantra;
@header {package mantra;}
compilationUnit : (function|clazz|interfaze|enumb)* EOF ;
clazz
: ('api'|'abstract')* 'class' ID typeArgumentNames? ('extends' type)? ('implements' type (',' type)*)?
'{'
clazzMember*
function*
'}'
;
interfaze
: 'api'?... |
src/test/ref/examples/c64/showlogo/showlogo.asm | jbrandwood/kickc | 2 | 247007 | /// @file
/// Commodore 64 Registers and Constants
/// @file
/// The MOS 6526 Complex Interface Adapter (CIA)
///
/// http://archive.6502.org/datasheets/mos_6526_cia_recreated.pdf
// Commodore 64 PRG executable file
.file [name="showlogo.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code... |
oeis/035/A035101.asm | neoneye/loda-programs | 11 | 3602 | <reponame>neoneye/loda-programs
; A035101: E.g.f. x*(c(x/2)-1)/(1-2*x), where c(x) = g.f. for Catalan numbers A000108.
; Submitted by <NAME>(s1)
; 0,1,9,87,975,12645,187425,3133935,58437855,1203216525,27125492625,664761133575,17600023616175,500706514833525,15234653491682625,493699195087473375,16977671416936605375,61752... |
projects/batfish/src/batfish/grammar/cisco/CiscoParser.g4 | luispedrosa/batfish | 0 | 4014 | parser grammar CiscoParser;
import
Cisco_common, Cisco_acl, Cisco_bgp, Cisco_interface, Cisco_ospf, Cisco_rip, Cisco_routemap;
options {
superClass = 'batfish.grammar.BatfishParser';
tokenVocab = CiscoLexer;
}
@header {
package batfish.grammar.cisco;
}
banner_stanza
:
BANNER
(
(
(
... |
programs/oeis/017/A017434.asm | neoneye/loda | 22 | 175582 | ; A017434: (11n+3)^10.
; 59049,289254654976,95367431640625,3656158440062976,52599132235830049,430804206899405824,2446194060654759801,10737418240000000000,38941611811810745401,121899441999475713024,339456738992222314849
mul $0,11
add $0,3
pow $0,10
|
named_person/named_woman_ja.als | nishio/learning_alloy | 1 | 1264 | <reponame>nishio/learning_alloy
module named_woman_ja [Woman]
sig Sachiko extends Woman {}
sig Kazuko extends Woman {}
sig Youko extends Woman {}
sig Setsuko extends Woman {}
sig Keiko extends Woman {}
sig Etsuko extends Woman {}
sig Kyouko extends Woman {}
sig Emiko extends Woman {}
sig Kumiko extends Woman {}
sig Ju... |
Project 1/src/Project/program4.asm | Nurl4n/Computer-Organization | 0 | 246023 | <filename>Project 1/src/Project/program4.asm<gh_stars>0
.data
x: .asciiz "Enter value for x: "
y: .asciiz "Enter value for y: "
endl: .asciiz "\n"
result: "The result is: "
.text
main:
li $v0, 4
la $a0, x
syscall
li $v0, 5
syscall
move $t0, $v0
li $v0, 4
la $a0, endl
syscall
li $v0, 4... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.