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 |
|---|---|---|---|---|
programming/inline-assembly/lab7/source.asm | tonykozlovsky/bsu | 113 | 12689 | ;
; Created by Drapegnik on 16.05.15.
;
.386
.model flat
.data
str1 db 100 dup('0')
str2 db 100 dup('0')
str3 db 100 dup('0')
len1 dd ?
len2 dd ?
.code
_sum@8 proc
push ebp
mov ebp, esp
mov ebx, dword ptr [ebp+8]
xor ecx,ecx
_while1:
mov dl, [ebx]
inc ebx
inc ecx
... |
programs/oeis/070/A070649.asm | karttu/loda | 1 | 10345 | ; A070649: n^6 mod 26.
; 0,1,12,1,14,25,12,25,12,1,14,25,14,13,14,25,14,1,12,25,12,25,14,1,12,1,0,1,12,1,14,25,12,25,12,1,14,25,14,13,14,25,14,1,12,25,12,25,14,1,12,1,0,1,12,1,14,25,12,25,12,1,14,25,14,13,14,25,14,1,12,25,12,25,14
pow $0,6
mod $0,26
mov $1,$0
|
programs/oeis/203/A203243.asm | neoneye/loda | 22 | 83178 | <gh_stars>10-100
; A203243: Second elementary symmetric function of the first n terms of (1,3,9,27,81,...).
; 3,39,390,3630,33033,298389,2688780,24208860,217909263,1961271939,17651713170,158866215690,1429798332693,12868192168689,115813751041560,1042323823944120,9380914609207323,84428232063996639,759854090319361950
add... |
oeis/051/A051960.asm | neoneye/loda-programs | 11 | 91612 | ; A051960: a(n) = C(n)*(3n+2) where C(n) = Catalan numbers = A000108.
; 2,5,16,55,196,714,2640,9867,37180,140998,537472,2057510,7904456,30458900,117675360,455657715,1767883500,6871173870,26747767200,104268528210,406975466040,1590307356300,6220814327520,24357232569150,95452906901976,374369872911804,1469388245772160,5771... |
excel_to_numbers.scpt | phoeniex/papyrus | 3 | 486 | #!/usr/bin/osascript
on run argv
set theFilePath to POSIX file (item 1 of argv)
set theSaveFilePath to POSIX file (item 2 of argv)
set theFilePathAlias to theFilePath as alias
set aDoc to theFilePathAlias as text
tell application "Numbers"
open aDoc
log "opening " & aDoc
delay 3 -- may need to adjust this ... |
Code/CustomControl/RAEdit/Src/ClipBoard.asm | CherryDT/FbEditMOD | 11 | 168869 | <reponame>CherryDT/FbEditMOD<gh_stars>10-100
.code
SetClipData proc lpData:LPSTR,dwSize:dword
LOCAL hMem:HANDLE
LOCAL pMem:dword
mov eax,dwSize
shr eax,3
inc eax
shl eax,3
invoke xGlobalAlloc, GHND or GMEM_DDESHARE, eax
test eax,eax
je @exit2
mov hMem,eax
invoke GlobalLock,eax ;hGlob
... |
test/asset/agda-stdlib-1.0/Data/List/Membership/Propositional/Properties.agda | omega12345/agda-mode | 0 | 14585 | ------------------------------------------------------------------------
-- The Agda standard library
--
-- Properties related to propositional list membership
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
module Data.List.Membership.Propositional.Properti... |
programs/oeis/090/A090995.asm | neoneye/loda | 22 | 101201 | <gh_stars>10-100
; A090995: Number of meaningful differential operations of the n-th order on the space R^10.
; 10,18,32,58,104,188,338,610,1098,1980,3566,6428,11580,20870,37602,67762,122096,220018,396448,714388,1287266,2319594,4179738,7531660,13571542,24455124,44066548,79405254,143083226,257827186,464588384,837159530,... |
src/firmware-tests/Platform/Smps/EnableDisable/IsEnabledAfterInitialisationTest.asm | pete-restall/Cluck2Sesame-Prototype | 1 | 170644 | <reponame>pete-restall/Cluck2Sesame-Prototype<filename>src/firmware-tests/Platform/Smps/EnableDisable/IsEnabledAfterInitialisationTest.asm
#include "Platform.inc"
#include "FarCalls.inc"
#include "Smps.inc"
#include "TestFixture.inc"
radix decimal
IsEnabledAfterInitialisationTest code
global testArrange
testAr... |
data/jpred4/jp_batch_1613899824__eAEZbHB/jp_batch_1613899824__eAEZbHB.als | jonriege/predict-protein-structure | 0 | 5107 | SILENT_MODE
BLOCK_FILE jp_batch_1613899824__eAEZbHB.concise.blc
MAX_NSEQ 651
MAX_INPUT_LEN 653
OUTPUT_FILE jp_batch_1613899824__eAEZbHB.concise.ps
PORTRAIT
POINTSIZE 8
IDENT_WIDTH 12
X_OFFSET 2
Y_OFFSET 2
DEFINE_FONT 0 Helvetica DEFAULT
DEFINE_FONT 1 Helvetica REL 0.75
DEFINE_FONT 7 Helvetica REL 0.6
DEFINE_FO... |
software/pcx86/bdsrc/dos/disk.asm | fatman2021/basicdos | 59 | 95257 | ;
; BASIC-DOS Disk Services
;
; @author <NAME> <<EMAIL>>
; @copyright (c) 2020-2021 <NAME>
; @license MIT <https://basicdos.com/LICENSE.txt>
;
; This file is part of PCjs, a computer emulation software project at pcjs.org
;
include macros.inc
include bios.inc
include disk.inc
include dev.inc
include d... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_925.asm | ljhsiun2/medusa | 9 | 174232 | <reponame>ljhsiun2/medusa<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x175b8, %rsi
lea addresses_D_ht+0x1da32, %rdi
nop
nop
and %r14, %r14
mov $49, %rcx
rep movsl
nop
nop
xor $30333, %r10
lea addresses_WT_h... |
sw/552tests/inst_tests/bnez_6.asm | JPShen-UWM/ThreadKraken | 1 | 2864 | // Original test: ./mshi/hw4/problem6/bnez_1.asm
// Author: mshi
// Test source code follows
lbi r1, 1
bnez r1, .Label2
.Label1:
lbi r2,0
.Label2:
lbi r2,1
halt
|
src/asm/test_alu/add_fibonacci.asm | Petersoj/ECE3710Projects | 3 | 165543 | ADDI r0 1
ADDI r1 1
ADD r1 r0 # sum of 2
ADD r0 r1 # sum of 3
ADD r1 r0 # sum of 5
ADD r0 r1 # sum of 8
ADD r1 r0 # sum of 13
ADD r0 r1 # sum of 21
|
programs/oeis/054/A054055.asm | neoneye/loda | 22 | 15758 | ; A054055: Largest digit of n.
; 0,1,2,3,4,5,6,7,8,9,1,1,2,3,4,5,6,7,8,9,2,2,2,3,4,5,6,7,8,9,3,3,3,3,4,5,6,7,8,9,4,4,4,4,4,5,6,7,8,9,5,5,5,5,5,5,6,7,8,9,6,6,6,6,6,6,6,7,8,9,7,7,7,7,7,7,7,7,8,9,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9
lpb $0
mov $2,$0
div $0,10
mod $2,10
trn $1,$2
add $1,$2
lpe
mov $0,$1
|
libsrc/_DEVELOPMENT/network/arpa/z80/asm_ntohs.asm | jpoikela/z88dk | 640 | 84727 |
; ===============================================================
; Apr 2016
; ===============================================================
;
; uint16_t ntohs(uint16_t)
;
; Change network byte order to host byte order.
;
; ===============================================================
SECTION code_clib
SECTION c... |
test/interaction/Issue3813-ctx.agda | shlevy/agda | 1,989 | 2784 | postulate
A B : Set
f : A → B
data D : B → Set where
c : {n : A} → D (f n)
test : (x : B) → D x → Set
test n c = {!!}
test2 : Set
test2 =
let X = A in
let X = B in
{!!}
|
src/Integer.agda | nad/equality | 3 | 9206 | <filename>src/Integer.agda
------------------------------------------------------------------------
-- Integers
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Equality
module Integer {e⁺} (eq : ∀ {a p} → Equality-with-J a p e⁺) where
open Deri... |
Task/ABC-Problem/AppleScript/abc-problem-2.applescript | LaudateCorpus1/RosettaCodeData | 1 | 2828 | use framework "Foundation"
-- SPELLING BY BLOCK ----------------------------------------------------------
on run
set blocks to map(chars, ¬
|words|("BO XK DQ CP NA GT RE TG QD FS JW HU VI AN OB ER FS LY PC ZM"))
script blockSpelled
on |λ|(s)
intercalate(" -> ", ¬
... |
src/sparknacl-car.ads | yannickmoy/SPARKNaCl | 76 | 28856 | <reponame>yannickmoy/SPARKNaCl
private package SPARKNaCl.Car
with Pure,
SPARK_Mode => On
is
--==========================================
-- Functions supporting normalization
-- of GF values following "+", "-" or "*"
-- operations.
--
-- See the specific subtype declarations
-- in the... |
agda/Avionics/List.agda | RPI-WCL/safety-envelopes-sentinels | 0 | 5344 | <gh_stars>0
module Avionics.List where
open import Data.Bool using (Bool; true; false; T)
open import Data.List as List using (List; []; _∷_; any)
open import Data.List.Relation.Unary.Any using (Any; here; there)
open import Function using (_∘_)
open import Relation.Binary.PropositionalEquality using (_≡_; inspect; [_... |
library/01_raw_disassembly/01_section_text.asm | SamantazFox/dds140-reverse-engineering | 1 | 105507 | 10001000 <.text>:
10001000: 8b 44 24 08 mov eax,DWORD PTR [esp+0x8]
10001004: 83 e8 00 sub eax,0x0
10001007: 74 46 je 0x1000104f
10001009: 83 e8 01 sub eax,0x1
1000100c: 75 62 jne 0x10001070
1000100e: 39 05 88 60 01 10 cmp DWORD ... |
Cubical/Data/Universe/Base.agda | limemloh/cubical | 0 | 7550 | <gh_stars>0
{-# OPTIONS --cubical --safe #-}
module Cubical.Data.Universe.Base where
|
Task/Generate-lower-case-ASCII-alphabet/Ada/generate-lower-case-ascii-alphabet-2.ada | LaudateCorpus1/RosettaCodeData | 1 | 23377 | <gh_stars>1-10
type Arr_Type is array (Integer range <>) of Lower_Case;
A : Arr_Type (1 .. 26) := "abcdefghijklmnopqrstuvwxyz";
|
programs/oeis/006/A006094.asm | neoneye/loda | 22 | 100425 | <reponame>neoneye/loda
; A006094: Products of 2 successive primes.
; 6,15,35,77,143,221,323,437,667,899,1147,1517,1763,2021,2491,3127,3599,4087,4757,5183,5767,6557,7387,8633,9797,10403,11021,11663,12317,14351,16637,17947,19043,20711,22499,23707,25591,27221,28891,30967,32399,34571,36863,38021,39203,41989,47053,50621,519... |
stack.bcomp.asm | SunnyCapt/csbasics | 0 | 84527 | ORG 020
SP: 7FF
ACC: WORD ?
PUSH: WORD ?
MOV ACC
CLA
ADD SP
DEC
MOV SP
CLA
ADD ACC
MOV (SP)
BR(PUSH)
POP: WORD ?
CLA
ADD (SP)
MOV ACC
CLA
ADD SP
INC
MOV S... |
tests/assert_cut/src/calc.adb | TUM-EI-RCS/StratoX | 12 | 10758 | <filename>tests/assert_cut/src/calc.adb
package body calc with SPARK_Mode is
procedure Forgetful_Assert (X, Y : out Integer) with
SPARK_Mode
is
begin
X := 1;
Y := 2;
pragma Assert (X = 1);
pragma Assert (Y = 2);
pragma Assert_And_Cut (X > 0); -- also forgets about Y
... |
code/6502/lib/gfx/fonts/tms9918font2.asm | visrealm/hbc-56 | 65 | 161299 | ; 6502 - TMS9918 Font 2 (0 -255) 6x8 Text mode
;
; Copyright (c) 2021 <NAME>
;
; This code is licensed under the MIT license
;
; https://github.com/visrealm/hbc-56
;
!byte $00,$00,$00,$00,$00,$00,$00,$00,$38,$44,$6C,$44,$54,$44,$38,$00,$38,$7C,$54,$7C,$44,$7C,$38,$00,$00,$28,$7C,$7C,$7C,$38,$10,$00,$00,$10,$38,$7C,$7C... |
tests/smart_ptrs_tests.adb | jhumphry/auto_counters | 5 | 12202 | <reponame>jhumphry/auto_counters
-- Smart_Ptrs_Tests
-- Unit tests for Auto_Counters Smart_Ptrs package
-- Copyright (c) 2016, <NAME> - see LICENSE file for details
with AUnit.Assertions;
with Smart_Ptrs;
with Auto_Counters_Tests_Config;
package body Smart_Ptrs_Tests is
use AUnit.Assertions;
Resources_Rele... |
src/Categories/Diagram/Pullback/Properties.agda | bolt12/agda-categories | 0 | 2034 | <reponame>bolt12/agda-categories<filename>src/Categories/Diagram/Pullback/Properties.agda
{-# OPTIONS --without-K --safe #-}
open import Categories.Category
module Categories.Diagram.Pullback.Properties {o ℓ e} (C : Category o ℓ e) where
open import Function using (_$_)
open import Categories.Category.Cartesian C
o... |
src/main/java/com/dafei1288/max/express/MaxExpr.g4 | dafei1288/max | 9 | 2269 | grammar MaxExpr;
/** The start rule; beginparsing here. */
prog:stat+;
stat: logicExpr # printLogicExpr
| expr # printExpr
| IT '=' logicExpr # assignLogic
| ID '=' logicExpr # assignItLogic
| ID '=' expr # assign
| IT # itSelf
| SEM # blank
;
expr:expr op=('*'|'/') ex... |
programs/oeis/005/A005563.asm | neoneye/loda | 22 | 104591 | ; A005563: a(n) = n*(n+2) = (n+1)^2 - 1.
; 0,3,8,15,24,35,48,63,80,99,120,143,168,195,224,255,288,323,360,399,440,483,528,575,624,675,728,783,840,899,960,1023,1088,1155,1224,1295,1368,1443,1520,1599,1680,1763,1848,1935,2024,2115,2208,2303,2400,2499,2600,2703,2808,2915,3024,3135,3248,3363,3480,3599,3720,3843,3968,4095,4... |
libsrc/_DEVELOPMENT/arch/sms/vdp/c/sccz80/sms_vdp_set_write_address.asm | jpoikela/z88dk | 640 | 95862 | ; void sms_vdp_set_write_address(unsigned int addr)
SECTION code_clib
SECTION code_arch
PUBLIC sms_vdp_set_write_address
EXTERN asm_sms_vdp_set_write_address
defc sms_vdp_set_write_address = asm_sms_vdp_set_write_address
|
agda/par-swap.agda | florence/esterel-calculus | 3 | 7501 | <reponame>florence/esterel-calculus<gh_stars>1-10
module par-swap where
open import Esterel.Lang
open import Esterel.Lang.Binding
open import Esterel.Context
open import sn-calculus
data _∥R_ : Term -> Term -> Set where
∥Rstep : ∀ {C p q d} ->
(d≐C⟦p∥q⟧c : d ≐ C ⟦ (p ∥ q) ⟧c) ->
d ∥R (C ⟦ (q ∥ p... |
Cubical/HITs/James/Base.agda | thomas-lamiaux/cubical | 1 | 16989 | {-
The James Construction,
also known as James Reduced Product
A very fundamental and useful construction in classical homotopy theory.
It can be seen as the free A∞-monoid constructed out of a given type,
namely the "correct higher version" of free monoid that is meaningful for all types,
instead of only h-Sets.
... |
strings_edit-quoted.ads | jrcarter/Ada_GUI | 19 | 3582 | -- --
-- package Strings_Edit.Quoted Copyright (c) <NAME> --
-- Interface Luebeck --
-- Summer, 2004 --
-- ... |
Chapter03/aes128_win.asm | PacktPublishing/Mastering-Assembly-Programming | 34 | 241355 | <gh_stars>10-100
; File: src\aes128_win.asm
format PE GUI
entry _start
include 'win32a.inc'
section '.text' code readable executable
_start:
; First of all we have to expand the key
; into AES key schedule.
lea esi, [k]
movups xmm1, [esi]
lea edi, [s]
; Copy initial key to schedule
m... |
programs/oeis/211/A211924.asm | karttu/loda | 0 | 101813 | <reponame>karttu/loda
; A211924: Number of lower triangular n X n arrays colored with integers 0 upwards introduced in row major order, with no element equal to any horizontal, vertical or antidiagonal neighbor, and containing the value n(n+1)/2-2
; 0,2,9,31,80,171,322,554,891,1360,1991,2817,3874,5201,6840,8836,11237,1... |
ubb/asc/lab02_30092015/d.asm | AlexanderChristian/private_courses | 0 | 97615 | <gh_stars>0
assume cs:code, ds:data
data segment
a db 10
b db 25
data ends
code segment
code ends
end start
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_738.asm | ljhsiun2/medusa | 9 | 247266 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x17b68, %r10
nop
nop
nop
nop
add %rsi, %rsi
mov $0x6162636465666768, %r13
movq %r13, %xmm1
vmovups %ymm1, (%r10)
nop
nop
cmp $23581, %rdi
lea addresses_WT_ht+0x1d25a, %r13
nop
... |
src/LibraBFT/Impl/Crypto/Crypto/Hash.agda | LaudateCorpus1/bft-consensus-agda | 4 | 7686 | {- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9.
Copyright (c) 2021, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl
-}
open import LibraBFT.ImplShared.Consensus.Types
module LibraBFT.Impl.Crypto.... |
oeis/156/A156772.asm | neoneye/loda-programs | 11 | 160222 | <gh_stars>10-100
; A156772: a(n) = 729*n - 198.
; 531,1260,1989,2718,3447,4176,4905,5634,6363,7092,7821,8550,9279,10008,10737,11466,12195,12924,13653,14382,15111,15840,16569,17298,18027,18756,19485,20214,20943,21672,22401,23130,23859,24588,25317,26046,26775,27504,28233,28962,29691,30420,31149,31878,32607,33336,34065,34... |
Cubical/Core/Primitives.agda | limemloh/cubical | 0 | 4034 | {-
This file document and export the main primitives of Cubical Agda. It
also defines some basic derived operations (composition and filling).
-}
{-# OPTIONS --cubical --safe #-}
module Cubical.Core.Primitives where
open import Agda.Builtin.Cubical.Path public
open import Agda.Builtin.Cubical.Sub public
renaming (... |
stm32f0/stm32f030x/svd/stm32_svd-dma.ads | ekoeppen/STM32_Generic_Ada_Drivers | 1 | 3284 | -- This spec has been automatically generated from STM32F030.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.DMA is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ISR_GIF1_Field is STM32_SVD.Bit;... |
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xa0.log_21829_777.asm | ljhsiun2/medusa | 9 | 83935 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r9
push %rcx
lea addresses_WT_ht+0xb425, %rcx
clflush (%rcx)
nop
nop
nop
sub %r12, %r12
mov (%rcx), %r9w
nop
add $25866, %r14
pop %rcx
pop %r9
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %r9
pus... |
Userland/Libc/asm/softwareInterruption.asm | sebasfavaron/basic-linux-operating-system | 1 | 19781 | GLOBAL int80
%macro pushaq 0
push rbx
push rcx
push rdx
push rbp
push rdi
push rsi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
%endmacro
%macro popaq 0
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rsi
pop rdi
pop rbp
pop rdx
pop rcx
pop rbx
%e... |
Quiz and Lab Assessment/Solution/1.asm | NasirSunny50/CSE331L-Section-1-Fall20-NSU | 0 | 15225 | <reponame>NasirSunny50/CSE331L-Section-1-Fall20-NSU
.MODEL SMALL
.STACK 64
DATA SEGMENT
STRING DB ?
SYM DB '$'
INPUT_M DB 0ah,0dh,0AH,0DH, 'ENTER INPUT STRING: ',0DH,0AH,'$'
STRLEN1 DW $-STR1
STRREV DB 20 DUP(' ')
STR_PALIN DB 'STRING IS PALINDROME.','$'
STR_NOT_PALIN DB 'STRING IS NOT PALINDROME.','$'
DATA ENDS
... |
lib/applescript/metadata.playlist.applescript | lxsavage/lsitcm | 2 | 1255 | <filename>lib/applescript/metadata.playlist.applescript
set trackNames to {}
set trackArtists to {}
set trackAlbums to {}
set trackYears to {}
set trackLengths to {}
set trackList to {}
tell application "iTunes"
repeat with aTrack in tracks of playlist playlistName
set trackNames to trackNames & name of aTrack
se... |
grammar/sav/B06_ActivityStatements.g4 | PSSTools/py-pss-parser | 1 | 6320 | /****************************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses thi... |
ZeroMQ/filecode/examples/Ada/zmq-examples-client.adb | JailbreakFox/LightWeightRepository | 2 | 2192 | <reponame>JailbreakFox/LightWeightRepository
with ZMQ.Sockets;
with ZMQ.Contexts;
with ZMQ.Messages;
with Ada.Text_IO; use Ada.Text_IO;
procedure ZMQ.examples.Client is
ctx : ZMQ.Contexts.Context;
s : ZMQ.Sockets.Socket;
begin
-- Initialise 0MQ context, requesting a single applica... |
libsrc/_DEVELOPMENT/adt/w_array/c/sccz80/w_array_size.asm | jpoikela/z88dk | 640 | 177303 | <filename>libsrc/_DEVELOPMENT/adt/w_array/c/sccz80/w_array_size.asm
; size_t w_array_size(w_array_t *a)
SECTION code_clib
SECTION code_adt_w_array
PUBLIC w_array_size
EXTERN asm_w_array_size
defc w_array_size = asm_w_array_size
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _w_array_size
defc _w_array_size = w_arr... |
programs/oeis/212/A212901.asm | neoneye/loda | 22 | 3757 | ; A212901: Number of (w,x,y,z) with all terms in {0,...,n} and equal consecutive gap sizes.
; 1,4,13,26,45,66,95,126,163,204,251,300,357,416,481,550,625,702,787,874,967,1064,1167,1272,1385,1500,1621,1746,1877,2010,2151,2294,2443,2596,2755,2916,3085,3256,3433,3614,3801,3990,4187,4386,4591
mov $2,$0
add $2,1
mov $6,$0
l... |
Scratch/boot_sect.asm | SwordYork/slef | 8 | 84037 | <gh_stars>1-10
[org 0x7c00]
mov [BOOT_DRIVE], dl
mov bp, 0x8000
mov sp,bp
mov bx, 0x9000
mov dh,5
mov dl, [BOOT_DRIVE]
call disk_load
mov dx, [0x9000]
call print_hex
mov dx, [0x9000 + 512]
call print_hex
jmp $
%include "print_string.asm"
%include "print_hex.asm"
%include "disk_load.asm"
BOOT_DRIVE: db 0
times ... |
src/aco-utils-generic_event.ads | jonashaggstrom/ada-canopen | 6 | 6490 | with System;
with ACO.Utils.Generic_Pubsub;
private with ACO.Utils.DS.Generic_Protected_Queue;
generic
type Item_Type is private;
Max_Nof_Subscribers : Positive;
Max_Nof_Queued_Events : Positive;
package ACO.Utils.Generic_Event is
pragma Preelaborate;
package PS is new ACO.Utils.Generic_Pubsub
... |
programs/oeis/189/A189375.asm | jmorken/loda | 1 | 173288 | ; A189375: Expansion of 1/((1-x)^5*(x^3+x^2+x+1)^3).
; 1,2,3,4,8,12,16,20,30,40,50,60,80,100,120,140,175,210,245,280,336,392,448,504,588,672,756,840,960,1080,1200,1320,1485,1650,1815,1980,2200,2420,2640,2860,3146,3432,3718,4004,4368
mov $3,$0
add $3,1
mov $4,$0
lpb $3
mov $0,$4
sub $3,1
sub $0,$3
div $0,4
mo... |
include/sf-graphics-sprite.ads | Fabien-Chouteau/ASFML | 0 | 8731 | --//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 <NAME> (<EMAIL>)
-- This software is provided 'as-is', without any express or implied warranty.
-- In no event will the authors be held liable for any damages arising from the use of this... |
src/common/trendy_terminal.ads | pyjarrett/archaic_terminal | 3 | 21914 | <reponame>pyjarrett/archaic_terminal
-------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file)
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License... |
programs/oeis/091/A091931.asm | neoneye/loda | 22 | 29162 | ; A091931: Change the first bit to 0 in binary notation for the n-th prime.
; 0,1,1,3,3,5,1,3,7,13,15,5,9,11,15,21,27,29,3,7,9,15,19,25,33,37,39,43,45,49,63,3,9,11,21,23,29,35,39,45,51,53,63,65,69,71,83,95,99,101,105,111,113,123,1,7,13,15,21,25,27,37,51,55,57,61,75,81,91,93,97,103,111,117,123,127,133,141,145,153,163,16... |
archive/agda-3/src/Test/SymmetricalSubstitunction.agda | m0davis/oscar | 0 | 4301 | <reponame>m0davis/oscar
open import Everything
{-
open import Oscar.Prelude
open import Oscar.Class.HasEquivalence
open import Oscar.Class.Symmetrical
open import Oscar.Data.Term
open import Oscar.Data.Substitunction
open import Oscar.Data.Surjcollation
open import Oscar.Data.Surjextenscollation
open import Oscar.Dat... |
oeis/230/A230340.asm | neoneye/loda-programs | 11 | 2339 | <reponame>neoneye/loda-programs<filename>oeis/230/A230340.asm
; A230340: Denominator of Sum_{k=1..n} 1/(k(k+1)(k+2)(k+3)) = Sum_{k=1..n} 1/Pochhammer(k,4).
; Submitted by <NAME>
; 1,24,20,360,315,1008,1512,2160,1485,1320,1716,2184,4095,10080,12240,14688,8721,20520,7980,3080,5313,36432,41400,46800,26325,58968,65772,8120... |
oeis/050/A050448.asm | neoneye/loda-programs | 11 | 8607 | ; A050448: a(n) = Sum_{d|n, d==1 (mod 4)} d^4.
; Submitted by <NAME>(s4)
; 1,1,1,1,626,1,1,1,6562,626,1,1,28562,1,626,1,83522,6562,1,626,194482,1,1,1,391251,28562,6562,1,707282,626,1,1,1185922,83522,626,6562,1874162,1,28562,626,2825762,194482,1,1,4107812,1,1,1
add $0,1
mov $1,1
mov $2,$0
mul $0,4
lpb $0
mov $4,$0
... |
sw/552tests/inst_tests/unaligned/jal_18.asm | JPShen-UWM/ThreadKraken | 1 | 82878 | <gh_stars>1-10
// Original test: ./lena/hw4/problem6/jal_3.asm
// Author: lena
// Test source code follows
//test non-aligned offset
jal 1
nop
halt
|
src/Math.g4 | BobKerns/physics-math-parser | 0 | 6175 | <filename>src/Math.g4
grammar Math;
/**
* Entry for either an equation or an expression.
*/
expression_or_equation
: expression
| equation;
/**
* entry for an equation.
*/
equation
: expression EQUAL expression;
/**
* entry for an expression.
*/
expression
: (NUMBER | INT) # Number_
| C... |
ArmPkg/Drivers/ArmGic/GicV3/Arm/ArmGicV3.asm | CEOALT1/RefindPlusUDK | 36 | 95673 | //
// Copyright (c) 2014, ARM Limited. All rights reserved.
//
// This program and the accompanying materials are licensed and made available
// under the terms and conditions of the BSD License which accompanies this
// distribution. The full text of the license may be found at
// http://opensource.org/lice... |
programs/oeis/016/A016813.asm | karttu/loda | 1 | 93693 | ; A016813: a(n) = 4*n + 1.
; 1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149,153,157,161,165,169,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,233,237,241,245,249,253,257,261,265,269,273,277,281,285,289,293,297,301,305,309,313,317... |
programs/oeis/267/A267047.asm | jmorken/loda | 1 | 247092 | <filename>programs/oeis/267/A267047.asm
; A267047: Total number of ON (black) cells after n iterations of the "Rule 91" elementary cellular automaton starting with a single ON (black) cell.
; 1,3,5,9,14,22,27,39,44,60,65,85,90,114,119,147,152,184,189,225,230,270,275,319,324,372,377,429,434,490,495,555,560,624,629,697,7... |
Lab/hw3_2/Sources/main.asm | asheemchhetri/ECE362 | 0 | 7405 | <filename>Lab/hw3_2/Sources/main.asm<gh_stars>0
org $8000
ldd #$279A
ldy #$FED5
emuls
sty product
std product+2
product rmb 4 |
PIM/TP5_Tableaux/tableau_trie.adb | Hathoute/ENSEEIHT | 1 | 14415 | -- Score PIXAL le 07/10/2020 à 15:14 : 100%
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
-- Le tableau est trié?
procedure Tableau_Trie is
Capacite: constant Integer := 10; -- Cette taille est arbitraire
type T_TableauBrut is array (1..Capacite) of Integer;
typ... |
libsrc/psg/spectrum/get_psg.asm | jpoikela/z88dk | 640 | 80226 | ;
; ZX Spectrum specific routines
; by <NAME>, Fall 2013
;
; int get_psg(int reg);
;
; Get a PSG register
;
;
; $Id: get_psg.asm,v 1.3 2016-06-10 21:13:58 dom Exp $
;
SECTION code_clib
PUBLIC get_psg
PUBLIC _get_psg
EXTERN __psg_select_and_read_port
get_psg:
_get_psg:
ld bc,(__psg_select_and_read_port)
out (c... |
ejercicios3/eliminar_tercer_elemento_ordenada.adb | iyan22/AprendeAda | 0 | 25265 | <reponame>iyan22/AprendeAda<gh_stars>0
with datos; use datos;
procedure eliminar_tercer_elemento_ordenada (R: in out Lista_Enteros) is
-- pre: los elementos de la lista estan ordenados
-- post: si hay tres o mas elementos, el tercer elemento quedara eliminado
-- y la lista no tiene por que mantener ning... |
theorems/stash/modalities/FiberedPushout.agda | timjb/HoTT-Agda | 294 | 576 | <gh_stars>100-1000
{-# OPTIONS --without-K --rewriting #-}
open import HoTT
module stash.modalities.FiberedPushout {i j k} {X : Type i} {Y : Type j} where
{-
X ---glue-left--- P ---glue-right--- Y
-}
module _ (P : X → Y → Type k) where
fibered-pushout-span : Span
fibered-pushout-span = record
... |
oeis/112/A112701.asm | neoneye/loda-programs | 11 | 176264 | <reponame>neoneye/loda-programs
; A112701: Partial sum of Catalan numbers A000108 multiplied by powers of 7.
; Submitted by <NAME>(s2)
; 1,8,106,1821,35435,741329,16270997,369570944,8613236374,204812473608,4949266755812,121188396669810,3000342229924222,74979188061284522,1888846103011564082,47915719069874907917,12229547... |
oeis/062/A062877.asm | neoneye/loda-programs | 11 | 6595 | ; A062877: Apart from the initial term (0), each a(n) is representable as a sum of distinct odd-indexed Fibonacci numbers.
; Submitted by <NAME>
; 0,1,2,3,5,6,7,8,13,14,15,16,18,19,20,21,34,35,36,37,39,40,41,42,47,48,49,50,52,53,54,55,89,90,91,92,94,95,96,97,102,103,104,105,107,108,109,110,123,124,125,126,128,129,130,1... |
programs/oeis/118/A118058.asm | karttu/loda | 1 | 94948 | <gh_stars>1-10
; A118058: a(n) = 49n^2 - 28n - 20.
; 1,120,337,652,1065,1576,2185,2892,3697,4600,5601,6700,7897,9192,10585,12076,13665,15352,17137,19020,21001,23080,25257,27532,29905,32376,34945,37612,40377,43240,46201,49260,52417,55672,59025,62476,66025,69672,73417,77260,81201,85240,89377,93612,97945,102376,106905,111... |
electrum/src/main/resources/models/book/chapter6/ringElection1.als | haslab/Electrum | 29 | 1568 | <reponame>haslab/Electrum
module chapter6/ringElection1 --- the version up to the top of page 181
open util/ordering[Time] as TO
open util/ordering[Process] as PO
sig Time {}
sig Process {
succ: Process,
toSend: Process -> Time,
elected: set Time
}
fact ring {
all p: Process | Process in p.^succ
}
pred init ... |
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_868_1492.asm | ljhsiun2/medusa | 9 | 87479 | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r14
push %r9
push %rdx
push %rsi
// Store
lea addresses_UC+0x1122a, %r12
nop
nop
nop
nop
nop
dec %r9
mov $0x5152535455565758, %r10
movq %r10, %xmm4
vmovups %ymm4, (%r12)
nop
nop
nop
cmp %rsi, ... |
agda/MorePropAlgebra/Properties/Lattice.agda | mchristianl/synthetic-reals | 3 | 4275 | {-# OPTIONS --cubical --no-import-sorts #-}
open import Cubical.Foundations.Everything renaming (_⁻¹ to _⁻¹ᵖ; assoc to ∙-assoc)
open import Function.Base using (_∋_; _$_)
open import Cubical.Data.Sum.Base renaming (_⊎_ to infixr 4 _⊎_)
open import Cubical.HITs.PropositionalTruncation.Base -- ∣_∣
open import Cubical.H... |
Ada/src/Problem_60.adb | Tim-Tom/project-euler | 0 | 5874 | <filename>Ada/src/Problem_60.adb
with Ada.Text_IO;
with PrimeInstances;
with Ada.Containers.Vectors;
package body Problem_60 is
package IO renames Ada.Text_IO;
package Positive_Primes renames PrimeInstances.Positive_Primes;
type PrimePair is record
first, second : Positive;
end record;
type PrimeTr... |
FormalAnalyzer/models/apps/MonitoronSense.als | Mohannadcse/IoTCOM_BehavioralRuleExtractor | 0 | 398 | <filename>FormalAnalyzer/models/apps/MonitoronSense.als<gh_stars>0
module app_MonitoronSense
open IoTBottomUp as base
open cap_runIn
open cap_now
open cap_accelerationSensor
open cap_switch
one sig app_MonitoronSense extends IoTApp {
accelerationSensor : one cap_accelerationSensor,
switch1 : one cap_switc... |
samples/boing/boing.asm | rwiker/c256emu | 18 | 12001 | .p816
.feature c_comments
.include "macros.inc"
.rodata
ball0_tile_set: .incbin "tiles-256.bin"
ball1_tile_set: .incbin "tiles-224.bin"
ball2_tile_set: .incbin "tiles-192.bin"
ball3_tile_set: .incbin "tiles-160.bin"
bmp_1: .incbin "grid-00000.bin"
bmp_2: .incbin "grid-10000.bin"
bmp_3: .incbin "grid-20000.bin"
... |
source/amf/uml/amf-uml-read_is_classified_object_actions.ads | svn2github/matreshka | 24 | 7807 | <reponame>svn2github/matreshka<filename>source/amf/uml/amf-uml-read_is_classified_object_actions.ads<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Proje... |
Mixfix/Acyclic/Lemma.agda | yurrriq/parser-combinators | 7 | 17071 | <filename>Mixfix/Acyclic/Lemma.agda
------------------------------------------------------------------------
-- A lemma
------------------------------------------------------------------------
open import Mixfix.Expr
open import Mixfix.Acyclic.PrecedenceGraph using (acyclic)
module Mixfix.Acyclic.Lemma
(g : ... |
src/tcl-variables.ads | thindil/tashy2 | 2 | 29514 | -- Copyright (c) 2020-2021 <NAME> <<EMAIL>>
--
-- 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 applicable law or... |
ref/src/desc.asm | ilya101010/asm_studies | 1 | 83630 | <reponame>ilya101010/asm_studies
format ELF
section '.text32' executable
use32
public getGDTR
getGDTR:
mov eax, GDTR
ret
public setGDTR
setGDTR:
lgdt fword [GDTR]
ret
public setTR
setTR: ;(uint16_t segment)
push ebp
mov ebp, esp
push eax
mov eax, [ebp+8]
ltr ax
pop eax
pop ebp
ret |
programs/oeis/040/A040549.asm | neoneye/loda | 22 | 81295 | <reponame>neoneye/loda<gh_stars>10-100
; A040549: Continued fraction for sqrt(573).
; 23,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14,1,46,1,14
seq $0,40699 ; Continued fraction for sqrt(72... |
alloy4fun_models/trashltl/models/11/wshhAyXrnsXcAJB3n.als | Kaixi26/org.alloytools.alloy | 0 | 2132 | open main
pred idwshhAyXrnsXcAJB3n_prop12 {
always all f:File | eventually f in Trash && eventually f not in Trash
}
pred __repair { idwshhAyXrnsXcAJB3n_prop12 }
check __repair { idwshhAyXrnsXcAJB3n_prop12 <=> prop12o } |
programs/oeis/190/A190153.asm | jmorken/loda | 1 | 6176 | ; A190153: Row sums of the triangle A190152.
; 1,2,12,65,351,1897,10252,55405,299426,1618192,8745217,47261895,255418101,1380359512,7459895657,40315615410,217878227876,1177482265857,6363483400447,34390259761825,185855747875876,1004422742303477,5428215467030962
mul $0,2
mov $1,1
lpb $0
sub $0,1
add $2,$1
add $1,$3... |
src/shaders/h264/mc/Intra_8x8.asm | tizenorg/platform.upstream.libva-intel-driver | 0 | 8214 | /*
* Decode Intra_8x8 macroblock
* Copyright © <2010>, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
* http://www.opensource.org/licenses/eclipse-1.0.php.
*
*/
// Kernel name: Intra_8x8.... |
source/tokeniser/tokeniser.asm | paulscottrobson/6502-basic | 3 | 7490 | <reponame>paulscottrobson/6502-basic
;
; Automatically generated
;
.include "detokenise/detokenise.asm"
.include "detokenise/dtprint.asm"
.include "detokenise/identifier.asm"
.include "detokenise/token.asm"
.include "tokenise/search.asm"
.include "tokenise/test.asm"
.include "tokenise/tokenise.asm"
.include "to... |
test/Fail/Issue2365a.agda | cruhland/agda | 1,989 | 12008 | <filename>test/Fail/Issue2365a.agda
open import Agda.Builtin.Nat
-- Matching against negative numbers
lit : Nat → Nat
lit -20 = 0 -- Error thrown here
lit _ = 1
|
Nat.agda | hazelgrove/hazelnut-agda | 0 | 11769 | open import Prelude
module Nat where
data Nat : Set where
Z : Nat
1+ : Nat → Nat
{-# BUILTIN NATURAL Nat #-}
-- the succ operation is injective
1+inj : (x y : Nat) → (1+ x == 1+ y) → x == y
1+inj Z .0 refl = refl
1+inj (1+ x) .(1+ x) refl = refl
-- equality of naturals is decidable. we represe... |
programs/oeis/080/A080952.asm | neoneye/loda | 22 | 87362 | ; A080952: a(n) = 2^(n-4)*(n+2)*(n+3)*(n+4)*(n+5)*(n+6)/15.
; 3,21,112,504,2016,7392,25344,82368,256256,768768,2236416,6336512,17547264,47628288,127008768,333398016,862912512,2205220864,5571084288,13927710720,34487664640,84651540480,206108098560,498094571520,1195426971648,2850633547776,6757057298432,15927349346304,3734... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_2028.asm | ljhsiun2/medusa | 9 | 81616 | <filename>Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_2028.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1b555, %r12
nop
sub %rsi, %rsi
mov $0x6162636465666768, %rcx
movq %rcx, %xmm4
movups %xmm4, (%r12)
nop
nop... |
Solidity.g4 | 0xbribe/antlr | 0 | 2016 | // Copyright 2020 <NAME> <<EMAIL>>
// Copyright 2016-2019 <NAME> <<EMAIL>>
// Licensed under the MIT license. See LICENSE file in the project root for details.
grammar Solidity;
sourceUnit
: (
pragmaDirective
| importDirective
| contractDefinition
| enumDefinition
| structDefinition
| typeDe... |
materials.ads | Kidev/AdaPhysics2D | 9 | 777 | package Materials is
-- To add materials, keep ETVacuum as the first env type,
-- Or IsSolidMaterial will be messed up
type MaterialType is (MTConcrete, MTWood, MTSteel, MTRubber, MTIce, MTBalloon, MTStatic,
ETVacuum, ETAir, ETWater);
type Material is tagged record
MType ... |
sk/sfx/AC.asm | Cancer52/flamedriver | 9 | 93831 | <reponame>Cancer52/flamedriver<gh_stars>1-10
Sound_AC_Header:
smpsHeaderStartSong 3, 1
smpsHeaderVoice Sound_AC_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $03
smpsHeaderSFXChannel cFM3, Sound_AC_FM3, $F4, $06
smpsHeaderSFXChannel cFM4, Sound_AC_FM4, $F4, $06
smpsHeaderSFXChannel cFM5, Sound_AC_FM5, ... |
scheduling-report_unavailable_subsystems.adb | annexi-strayline/AURA | 13 | 13417 | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
04/fill/Fill.asm | alchermd/nand2tetris | 0 | 14956 | // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by <NAME>, MIT Press.
// File name: projects/04/Fill.asm
// Runs an infinite loop that listens to the keyboard input.
// When a key is pressed (any key), the program blackens the screen,
// i.e. writes "black" in ... |
oeis/044/A044767.asm | neoneye/loda-programs | 11 | 105158 | <filename>oeis/044/A044767.asm
; A044767: Numbers n such that string 5,4 occurs in the base 10 representation of n but not of n+1.
; Submitted by <NAME>(s4)
; 54,154,254,354,454,549,554,654,754,854,954,1054,1154,1254,1354,1454,1549,1554,1654,1754,1854,1954,2054,2154,2254,2354,2454,2549,2554,2654,2754,2854,2954,3054,315... |
programs/oeis/158/A158799.asm | karttu/loda | 1 | 242526 | <gh_stars>1-10
; A158799: a(0)=1, a(1)=2, a(n)=3 for n>=2.
; 1,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3
sub $0,2
clr $0,$0
mov $1,$0
add $1,3
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.