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 |
|---|---|---|---|---|
src/kernel/arch/x86/drivers/avx.asm | thomtl/Rhino-OS | 3 | 160190 | [bits 32]
section .text
global init_avx
init_avx:
call detect_avx
cmp eax, 0
je no_avx
mov eax, cr4
bts eax, 18 ; Set bit OSXSAVE, Required by AVX
mov cr4, eax
push eax
push edx
push ecx
xor ecx, ecx
xgetbv
bts eax, 0 ; Set XCR0 X87 / MMX State
bts eax, 1 ; Set XC... |
1-base/math/source/precision/long/long_math.ads | charlie5/lace | 20 | 10470 | with
any_Math;
package long_Math is new any_Math (Real_t => long_Float);
pragma Pure (long_Math);
|
c4.2/4-2.asm | heropoo/learning-x86-assembler | 0 | 177267 | <gh_stars>0
mov ax,0xb800
mov ds,ax
mov [0x00],'a'
mov [0x02],'s'
mov [0x04],'m'
jmp $
|
src/Generics/Telescope/Equality.agda | flupe/generics | 11 | 2687 | <reponame>flupe/generics<filename>src/Generics/Telescope/Equality.agda
{-# OPTIONS --safe --without-K #-}
module Generics.Telescope.Equality where
-- freely inspired by jespercockx/telescopic
-- note that our telescopes extend to the right
-- while in telescopic they extend to the left
-- a byproduct is that the foll... |
libsrc/_DEVELOPMENT/fcntl/z80/drivers/terminal/console_01/input/console_01_input_terminal/console_01_input_stdio_msg_ictl.asm | meesokim/z88dk | 0 | 18913 | <reponame>meesokim/z88dk
SECTION code_fcntl
PUBLIC console_01_input_stdio_msg_ictl
PUBLIC console_01_input_stdio_msg_ictl_0
EXTERN asm_vioctl_driver, error_einval_zc
EXTERN l_offset_ix_de, l_setmem_hl
EXTERN console_01_input_stdio_msg_flsh
console_01_input_stdio_msg_ictl:
; ioctl messages understood:
;
; ... |
src/data/lib/prim/Agda/Builtin/TrustMe.agda | redfish64/autonomic-agda | 0 | 13463 |
module Agda.Builtin.TrustMe where
open import Agda.Builtin.Equality
primitive primTrustMe : ∀ {a} {A : Set a} {x y : A} → x ≡ y
|
config/AppleScripts/seticon.applescript | khaveesh/dotfiles | 2 | 1641 | #!/usr/bin/osascript
use framework "AppKit"
--------------------------------------------------------------------------------
# PROPERTY DECLARATIONS:
property this : a reference to current application
property NSWorkspace : a reference to NSWorkspace of this
property NSImage : a reference to NSImage of this
---------... |
programs/oeis/078/A078113.asm | neoneye/loda | 22 | 1951 | <filename>programs/oeis/078/A078113.asm<gh_stars>10-100
; A078113: Let u(1)=u(2)=1, u(3)=n, u(k) = (1/2)*abs(2*u(k-1) -u(k-2)-u(k-3)); sequence gives values of n such that sum(k>=1, u(k)) is an integer.
; 2,6,7,15,17,33,37,69,77,141,157,285,317,573,637,1149,1277,2301,2557,4605,5117,9213,10237,18429,20477,36861,40957,73... |
_maps/Ball Hog.asm | kodishmediacenter/msu-md-sonic | 9 | 98865 | <gh_stars>1-10
; ---------------------------------------------------------------------------
; Sprite mappings - Ball Hog enemy (SBZ)
; ---------------------------------------------------------------------------
Map_Hog_internal:
dc.w M_Hog_Stand-Map_Hog_internal
dc.w M_Hog_Open-Map_Hog_internal
dc.w M_Hog_Squat-... |
oeis/166/A166674.asm | neoneye/loda-programs | 11 | 29974 | ; A166674: Totally multiplicative sequence with a(p) = 5p+2 for prime p.
; Submitted by <NAME>
; 1,12,17,144,27,204,37,1728,289,324,57,2448,67,444,459,20736,87,3468,97,3888,629,684,117,29376,729,804,4913,5328,147,5508,157,248832,969,1044,999,41616,187,1164,1139,46656,207,7548,217,8208,7803,1404,237,352512,1369,8748,147... |
mp-ui.adb | jrcarter/MP | 1 | 6810 | -- MP: a Music Player
-- Copyright (C) 2021 by PragmAda Software Engineering. All rights reserved.
-- Released under the terms of the BSD 3-Clause license; see https://opensource.org/licenses
--
-- 2021-06-01 Use new Enpty_Options procedure from Gnoga 1.6a to clear Sel
-- 2021-04-01 Adapted to Ada-12 version o... |
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_394_481.asm | ljhsiun2/medusa | 9 | 163309 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rdi
push %rdx
lea addresses_normal_ht+0x1efd3, %r8
clflush (%r8)
nop
nop
nop
nop
nop
cmp $64371, %rdi
movl $0x61626364, (%r8)
xor $11520, %rdx
pop %rdx
pop %rdi
pop %r8
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15... |
test_programs/predec.asm | mfkiwl/QNICE-FPGA-hyperRAM | 53 | 14859 | <filename>test_programs/predec.asm
; Test pre-decrement-indirect-and-then-work-with-it
;
; This test program was used to document and to test, after in Release 1.4
; a CPU bug was discovered, that lead to the strange effect, that in the
; emulator, things like "F" "R" qbin/mandel.out did not work, but in hardware
; it ... |
programs/oeis/056/A056123.asm | neoneye/loda | 22 | 11077 | ; A056123: a(n) = 3*a(n-1) - a(n-2) with a(0)=1, a(1)=11.
; 1,11,32,85,223,584,1529,4003,10480,27437,71831,188056,492337,1288955,3374528,8834629,23129359,60553448,158530985,415039507,1086587536,2844723101,7447581767,19498022200,51046484833,133641432299,349877812064,915992003893,2398098199615,6278302594952,1643680958524... |
test/succeed/PatternMatchingLambda.agda | asr/agda-kanso | 0 | 10230 | module PatternMatchingLambda where
data Bool : Set where
true false : Bool
data Void : Set where
data _≡_ {A : Set}(x : A) : A -> Set where
refl : x ≡ x
and : Bool -> Bool -> Bool
and = λ { true x → x ; false _ → false }
or : Bool -> Bool -> Bool
or x y = not (and (not x) (not y))
where not : Bool -> Bool
... |
orka/src/orka/interface/orka-algebra.ads | onox/orka | 52 | 5696 | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <<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
-... |
Appl/FileMgrs2/CommonDesktop/CFolder/cfolderSelect.asm | steakknife/pcgeos | 504 | 166311 | COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Desktop/Folder
FILE: folderSelect.asm
AUTHOR: <NAME>
ROUTINES:
INT DeselectAll - deselect all selected files
INT AddToSelectList - add file to s... |
examples/Termination/Mutual.agda | cruhland/agda | 1,989 | 11569 | -- examples for termination checking mutual recursion
module Mutual where
data Odd : Set
data Even : Set where
zeroE : Even
succE : Odd -> Even
data Odd where
succO : Even -> Odd
addEO : Even -> Odd -> Odd
addOO : Odd -> Odd -> Even
addOO (succO x) y = succE (addEO x y)
addEO zeroE y = y
addEO (succE x) y ... |
ps.asm | anishkasachdeva/XV6_Operating_System | 0 | 11328 |
_ps: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "user.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
source/containers/a-clhama.adb | ytomino/drake | 33 | 26724 | <reponame>ytomino/drake<filename>source/containers/a-clhama.adb
with Ada.Exceptions.Finally;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with System;
package body Ada.Containers.Limited_Hashed_Maps is
use type Hash_Tables.Table_Access;
-- diff
function Upcast is
new Unchecked_Conversio... |
kernel.asm | dolumese/mKernel | 0 | 1093 | ;;;;;;;;;;;;;;;;;;;;;
;; Copyright (C) 2014 <NAME>
;; License: GPL version 2 or higher http://www.gnu.org/licenses/gpl.html
;;;;;;;;;;;;;;;;;;;;;
bits 32
section .text
;multiboot spec
align 4
dd 0x1BADB002 ;magic
dd 0x00 ;flags
dd -(0x1BADB002 + 0x00) ;checksum. m+f... |
libsrc/adt/heap/adt_HeapExtract_callee.asm | andydansby/z88dk-mk2 | 1 | 83108 | ; void __CALLEE__ *adt_HeapExtract_callee(void **array, uint *n, void *compare)
; 08.2005 aralbrec
XLIB adt_HeapExtract_callee
XDEF CDISP_ADT_HEAPEXTRACT_CALLEE
LIB ADTHeapExtract, ADThcompare
.adt_HeapExtract_callee
pop bc
pop iy
pop hl
pop de
push bc
.centry
push hl
ld a,(hl)
inc h... |
programs/oeis/052/A052515.asm | neoneye/loda | 22 | 244314 | ; A052515: Number of ordered pairs of complementary subsets of an n-set with both subsets of cardinality at least 2.
; 0,0,0,0,6,20,50,112,238,492,1002,2024,4070,8164,16354,32736,65502,131036,262106,524248,1048534,2097108,4194258,8388560,16777166,33554380,67108810,134217672,268435398,536870852,1073741762,2147483584,429... |
unittests/ASM/Secondary/09_XX_06.asm | Seas0/FEX | 0 | 88561 | %ifdef CONFIG
{
"RegData": {
"RAX": "0x4142434445460000",
"RBX": "0x0",
"RDX": "1",
"R9": "1",
"R10": "1"
}
}
%endif
mov rax, 0x4142434445464748
mov rbx, 0x4142434445464748
mov rcx, 0x4142434445464748
; 16-bit should insert
test_16bit:
rdrand ax
jnc test_16bit
; Mask out RNG
mov r11, 0xFFFFFF... |
Data/List/Relation/Pairwise.agda | Lolirofle/stuff-in-agda | 6 | 9827 | import Lvl
open import Logic
open import Type
module Data.List.Relation.Pairwise {ℓ₁ ℓ₂} {T : Type{ℓ₁}} where
open import Data.List
import Data.List.Functions as List
open import Data.List.Relation.Quantification
open import Functional
open import Logic.Propositional
-- Whether a list's elements pairwise s... |
Abacus.g4 | triole/abacus | 0 | 6342 | <gh_stars>0
grammar Abacus;
// Tokens
// Rules
root
: declaration EOF
| comparison EOF
| expression EOF
;
declaration
: VARIABLE EQ expression
;
comparison
: expression EQ EQ expression # EqualComparison
| expression LS expression # LessComparison
... |
gcc-gcc-7_3_0-release/gcc/ada/i-vxinco.ads | best08618/asylo | 7 | 21396 | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
oeis/234/A234568.asm | neoneye/loda-programs | 11 | 242117 | <gh_stars>10-100
; A234568: Sum_{k=0..n} (n-k)^(2*k).
; Submitted by <NAME>
; 1,1,2,6,27,163,1268,12344,145653,2036149,33192790,622384730,13263528351,318121600695,8517247764136,252725694989612,8258153081400857,295515712276222953,11523986940937975402,487562536078882116718,22291094729329088403299,109733676659916192644877... |
src/main/fragment/mos6502-common/vdum1=vdum1_ror_1.asm | jbrandwood/kickc | 2 | 20516 | lsr {m1}+3
ror {m1}+2
ror {m1}+1
ror {m1} |
ScrollModus/_code/GlobalCode/sound.asm | kosmonautdnb/TheLandsOfZador | 0 | 173523 | <gh_stars>0
SOUND_DIAMOND = 0
SOUND_EXPLOSION = 1
SOUND_COLLECTED = 2
SOUND_JUMP = 3
SOUND_LAZER = 4
SOUND_HIT = 5
SOUND_LITTLEJUMP = 6
SOUND_FADEINOUT = 7
SOUND_DASH = 8
SOUND_FLOOR = 9
SOUND_LIVELOST = 5
SOUND_KICK = 2
SOUND_SCHALTER = 4
SOUND_LAYERBUILD = 8
SOUND_LAYERREMOVE = 9
SOUND_DROP = 2
;--------------------... |
Extended/FunRetRec.agda | AndrasKovacs/SemanticsWithApplications | 8 | 11784 |
module Extended.FunRetRec where
open import Function
open import Data.Nat
open import Data.Nat.Properties.Simple
open import Relation.Binary.PropositionalEquality hiding ([_])
open import Data.String
open import Data.Product
open import Data.Bool renaming (not to bnot) hiding (if_then_else_)
open import Relation.Nul... |
stub.asm | flydyman/fpc-kernel-bone | 0 | 167281 | <filename>stub.asm
;/////////////////////////////////////////////////////////
;// //
;// Freepascal barebone OS //
;// stub.asm //
;// //
;/////... |
runtime/ravenscar-sfp-stm32f427/common/g-io-put.adb | TUM-EI-RCS/StratoX | 12 | 17276 | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
4.6.Fibonacci.asm | souzaitor/Assembly | 0 | 11426 | <filename>4.6.Fibonacci.asm
TITLE Fibonacci Numbers
;--------------------
; Autor: <NAME>
; Data: 15/07/2021
;
; Capítulo 4 Exercício 6
; Descrição: Programa que use um loop para calcular os primeiros sete valores da sequência de números de Fibonacci,
; descrito pela seguinte fórmula: Fib (1) = 1, Fib (2) = 1,... |
courses/fundamentals_of_ada/labs/solar_system/adv_280_low_level_programming/question_3/src/stm32-rng-interrupts.adb | AdaCore/training_material | 15 | 14883 | with Ada.Interrupts.Names;
package body STM32.RNG.Interrupts is
type Buffer_Content is array (Integer range <>) of UInt32;
type Ring_Buffer is record
Content : Buffer_Content (0 .. 9);
Head : Integer := 0;
Tail : Integer := 0;
end record;
--------------
-- Receiver --
-----... |
Task/Repeat-a-string/Ada/repeat-a-string.ada | LaudateCorpus1/RosettaCodeData | 1 | 9129 | <reponame>LaudateCorpus1/RosettaCodeData<gh_stars>1-10
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Text_IO; use Ada.Text_IO;
procedure String_Multiplication is
begin
Put_Line (5 * "ha");
end String_Multiplication;
|
Vivid/libv/linux_x64_vivid/system.asm | lehtojo/v | 3 | 25291 | <filename>Vivid/libv/linux_x64_vivid/system.asm
.export _V4timev_rx
sub rsp, 16
mov rdi, rsp
mov rax, 96 # System call: sys_gettimeofday
syscall
imul rax, qword [rsp], 10000000
mov rcx, 116444736000000000 # 116444736000000000 = 0x019DB1DED53E8000 = January 1, 1970 (Unix epoch) in 'ticks'
add rax, rcx
mov rcx, qword [rs... |
project/ntstub/i386/5_2_3790_sp0_ssdt_sysenter.asm | mehrdad-shokri/windows-syscall-table | 372 | 12232 | ; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; ssdt asm stub for 5.2.3790-sp0-windows-2003 i386
.686
.mmx
.xmm
.model flat,stdcall
option casemap:none
option prologue:none
option epilogue:none
.code
; ULONG __stdcall NtAcceptConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ... |
legend-engine-language-pure-dsl-text/src/main/antlr4/org/finos/legend/engine/language/pure/grammar/from/antlr4/TextParserGrammar.g4 | dave-wathen/legend-engine | 32 | 2468 | parser grammar TextParserGrammar;
import CoreParserGrammar;
options
{
tokenVocab = TextLexerGrammar;
}
// -------------------------------------- IDENTIFIER --------------------------------------
identifier: VALID_STRING | STRING
| TEXT | TEXT_TYPE | TEXT_CONTENT
;
/... |
data/wildPokemon/route15.asm | longlostsoul/EvoYellow | 16 | 13520 | Route15Mons:
db $0F
db 26,BELLSPROUT;day
db 26,ODDISH
db 24,MARILL
db 32,PIDGEOTTO;day
db 28,BELLSPROUT
db 28,GLOOM
db 30,WEEPINBELL;day
db 30,DITTO
db 27,VENONAT
db 30,QUAGSIRE
db $00
|
lab1/example_e_1.asm | 0000Blaze/Microprocess | 0 | 97279 | # ORG 8000
MVI A,80
OUT 43
MVI A,12
LXI B,3456
OUT 40
MOV A,B
OUT 41
MOV A,C
OUT 42
HLT
|
src/Ninu.Emulator.Tests/Cpu/TestFiles/branches.6502.asm | jorgy343/Ninu | 0 | 177885 | <reponame>jorgy343/Ninu
.include "..\..\..\Cpu\TestFiles\std.6502.asm"
; Zero page data.
* = $0000
.byte $00
; Beginning of tests.
* = $c0c0
.init
test1:
ldx #$01
dex ; Set zero flag.
bne @skip1
beq @skip1
inx
jmp @skip1
* = $c0e0
@skip1:
ldx #$01
... |
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_interfaces_colorbalancechannel_h.ads | persan/A-gst | 1 | 13314 | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
-- with GStreamer.GST_Low_Level.glib_2_0_gobject_gobject_h;
with glib;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_interfaces_colorbalancechannel_h is
-- unsup... |
Ada/src/Problem_48.adb | Tim-Tom/project-euler | 0 | 8493 | with Ada.Text_IO;
package body Problem_48 is
package IO renames Ada.Text_IO;
procedure Solve is
type Unsigned is mod 2**32;
function modular_pow(base, exponent, modulus : Unsigned) return Unsigned is
result : Unsigned := 1;
base_mod : Unsigned := base;
exponent_mod : Unsigne... |
programs/oeis/017/A017030.asm | neoneye/loda | 22 | 83566 | <filename>programs/oeis/017/A017030.asm
; A017030: a(n) = (7*n + 4)^2.
; 16,121,324,625,1024,1521,2116,2809,3600,4489,5476,6561,7744,9025,10404,11881,13456,15129,16900,18769,20736,22801,24964,27225,29584,32041,34596,37249,40000,42849,45796,48841,51984,55225,58564,62001,65536,69169,72900,76729,80656,84681,88804,93025,97... |
script/src/main/antlr/eu/quanticol/moonlight/script/MoonLightScript.g4 | clarissa-albanese/MoonLight | 5 | 7786 | grammar MoonLightScript;
@header {
package eu.quanticol.moonlight.script;
}
model:
(types += scriptType)*
(constants += scriptConstant)*
scriptSignal
scriptSpace?
scriptDomain
(formulas += scriptFormula)+
;
scriptConstant: 'const' name=ID '=' value=expression ';';
scriptFormula:
(isDefault='default')?... |
Mips Exersice/mips3.asm | Pandula1234/Machine-Instructions | 0 | 92749 | .text
li $t0,50
li $t1,10
Sub $t2, $t0,$t1
.data |
Sem-4/COA LAB Programs/Lab7Obj.asm | rituraj-iter/ASSIGNMENTS | 10 | 21442 | org 100h
mov ax,1000h
mov ds,ax
mov al,[3000h]
ror al,4
mov [3001h],al
hlt |
LM/Aula5/Atividades/ex1.asm | Kw-Vinicius/Linguagem-de-Montagem- | 0 | 89409 | ; 1.) Escreva um programa em Assembly que determine a possibilidade ou obrigatoriedade
; de voto de acordo com a idade do eleitor:
; idade<16 O cidadão não pode votar!
; Idade>=16 ou idade>=70 O voto é facultativo.
; Idade>=18 e idade<70 O cidadão é obrigado a votar.
; <NAME>
SECTION .data
idade: db 71 ... |
src/main/fragment/mos6502-common/pwuc1_derefidx_vbuyy=pwuc2_derefidx_vbuxx.asm | jbrandwood/kickc | 2 | 101179 | lda {c2},x
sta {c1},y
lda {c2}+1,x
sta {c1}+1,y
|
oeis/323/A323129.asm | neoneye/loda-programs | 11 | 22459 | ; A323129: a(1) = 1, and for any n > 1, let p be the greatest prime factor of n, and e be its exponent, then a(n) = p^a(e).
; 1,2,3,4,5,3,7,8,9,5,11,3,13,7,5,16,17,9,19,5,7,11,23,3,25,13,27,7,29,5,31,32,11,17,7,9,37,19,13,5,41,7,43,11,5,23,47,3,49,25,17,13,53,27,11,7,19,29,59,5,61,31,7,8,13,11,67,17,23,7,71,9,73
seq $... |
infra/axiom/src/main/antlr4/com/evolveum/axiom/lang/antlr/Axiom.g4 | martin-lizner/prism | 0 | 6006 | grammar Axiom;
SEMICOLON : ';';
LEFT_BRACE : '{';
RIGHT_BRACE : '}';
COLON : ':';
PLUS : '+';
LINE_COMMENT : [ \n\r\t]* ('//' (~[\r\n]*)) [ \n\r\t]* -> skip;
SEP: [ \n\r\t]+;
IDENTIFIER : [a-zA-Z_][a-zA-Z0-9_\-]*;
fragment SQOUTE : '\'';
fragment DQOUTE : '"';
fragment ESC : '\\';
STRING_SINGLEQUOTE: SQOUTE ((ESC ... |
c-vs-asm/build/04-for.asm | willbr/gameboy-tests | 0 | 12193 | <reponame>willbr/gameboy-tests<filename>c-vs-asm/build/04-for.asm
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.0 #11528 (MINGW64)
;--------------------------------------------------------
; MODULE 04_for
.optsdcc -mgbz80
; Generated... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_16904_1124.asm | ljhsiun2/medusa | 9 | 171139 | <filename>Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_16904_1124.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x131a6, %r10
nop
nop
nop
nop
cmp $39218, %rdx
mov (%r10), %ebx
nop
nop
nop
cmp ... |
libsrc/_DEVELOPMENT/font/fzx/fonts/kk/_ff_kk_MontereyBLatin1.asm | jpoikela/z88dk | 640 | 18776 | <reponame>jpoikela/z88dk
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_kk_MontereyBLatin1
_ff_kk_MontereyBLatin1:
BINARY "font/fzx/fonts/kk/MontereyB_Latin1.fzx"
|
copper_fade.asm | DW0RKiN/Copper-Fade | 1 | 102687 | ; ZX Spectrum Compo #10
; ver 1.2
; command line: pasmo -d copper_fade.asm copper_fade.bin
copy_image equ 0
enable_int equ 1
fast equ 0 ; 0..3
progStart equ $C400 ; 50176
screenStart equ $C500
if copy_image
org screenStart
INCBIN z80asm.bin
endif
org progStart
if copy_image
; copy image on screen
LD BC... |
libsrc/stdio/sos/getk.asm | jpoikela/z88dk | 640 | 101214 | ;
; S-OS (The Sentinel) Japanese OS - Stdio
;
; getk() Read key status
;
; <NAME>, 2013
;
;
; $Id: getk.asm,v 1.3 2016-06-12 17:32:01 dom Exp $
;
SECTION code_clib
PUBLIC getk
PUBLIC _getk
.getk
._getk
call 1FD0h
IF STANDARDESCAPECHARS
cp 13
jr nz,not_return
ld a,10
.not_return
ENDIF
ld l, a
ld h,0
r... |
Cubical/Data/SumFin/Properties.agda | dan-iel-lee/cubical | 0 | 12973 | {-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Data.SumFin.Properties where
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Univalence
open import Cubical.Data.Empty as ⊥
import Cubical.Data.F... |
Structure/Real.agda | Lolirofle/stuff-in-agda | 6 | 6906 | <reponame>Lolirofle/stuff-in-agda
module Structure.Real where
import Lvl
open import Data.Boolean
open import Data.Boolean.Proofs
import Data.Either as Either
open import Functional
open import Logic
open import Logic.Classical
open import Logic.Propositional
open import Logic.Predicate
open import Numeral.N... |
sw/552tests/rand_simple/t_2_stu.asm | JPShen-UWM/ThreadKraken | 1 | 6316 | <reponame>JPShen-UWM/ThreadKraken
// seed 2
lbi r0, 38 // icount 0
slbi r0, 147 // icount 1
lbi r1, 211 // icount 2
slbi r1, 113 // icount 3
lbi r2, 182 // icount 4
slbi r2, 149 // icount 5
lbi r3, 41 // icount 6
slbi r3, 110 // icount 7
lbi r4, 157 // icount 8
slbi r4, 155 // icount 9
lbi r5, 65 // icount 10
slbi r5, ... |
programs/oeis/077/A077898.asm | neoneye/loda | 22 | 13679 | ; A077898: Expansion of (1 - x)^(-1)/(1 + x - 2*x^2).
; 1,0,3,-2,9,-12,31,-54,117,-224,459,-906,1825,-3636,7287,-14558,29133,-58248,116515,-233010,466041,-932060,1864143,-3728262,7456549,-14913072,29826171,-59652314,119304657,-238609284,477218599,-954437166,1908874365,-3817748696,7635497427,-15270994818,30541989673,-61... |
solutions/52 - The Mode Code/size-20_speed-220.asm | michaelgundlach/7billionhumans | 45 | 82082 | <reponame>michaelgundlach/7billionhumans
-- 7 Billion Humans (2056) --
-- 52: The Mode Code --
-- Author: tiansh
-- Size: 20
-- Speed: 220
mem4 = nearest datacube
a:
if w == worker:
mem1 = calc mem1 + 1
step w
jump a
endif
step nw
b:
if mem2 > 0:
step s
else:
step n
endif
if c == mem1:
mem3 = calc mem3 + 1
endi... |
ADL/drivers/stm32f334/stm32-opamp.adb | JCGobbi/Nucleo-STM32F334R8 | 0 | 16601 | with STM32.SYSCFG;
with Ada.Real_Time;
package body STM32.OPAMP is
------------
-- Enable --
------------
procedure Enable (This : in out Operational_Amplifier) is
use Ada.Real_Time;
begin
-- Enable clock for the SYSCFG_COMP_OPAMP peripheral
STM32.SYSCFG.Enable_SYSCFG_Clock;
... |
untested/x64/gcd_Lcm.asm | GabrielRavier/Generic-Assembly-Samples | 0 | 21090 | global _gcd
global _lcm
global _gcd64
global _lcm64
segment .text align=16
_gcd:
test edi, edi
je .return0
test esi, esi
je .return0
cmp esi, edi
je .returnEsi
jl .bigger
sub esi, edi
jmp _gcd
.bigger:
sub edi, esi
jmp _gcd
.return0:
xor eax, eax
ret
.returnEsi:
mov eax, esi
ret
... |
cxxreflect/windows_runtime/detail/x64_fastcall_thunk.asm | dbremner/cxxreflect | 5 | 95118 |
; // Copyright <NAME> 2011 - 2013. //
; // Distributed under the Boost Software License, Version 1.0. //
; // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
;
; cxxref... |
src/dnscatcher/dns/dnscatcher-dns.ads | DNSCatcher/DNSCatcher | 4 | 22441 | -- Copyright 2019 <NAME> <<EMAIL>>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to
-- deal in the Software without restriction, including without limitation the
-- rights to use, copy, modify, merge, publish, ... |
test-files/triangulo.asm | bandreghetti/SB_2018-2 | 0 | 170822 | ; Programa que calcula a área de um triângulo
TRIANGULO: EQU 1 ; teste comentário
SECTION TEXT
INPUT B
INPUT H
LOAD B
MULT H
IF TRIANGULO
DIV DOIS
STORE R
OUTPUT R
STOP
SECTION BSS
B: SPACE
H: SPACE
R: SPACE
SECTION DATA
DOIS: CONST 0x02
|
notes/FOT/FOTC/UnguardedCorecursion/Alter/PropertiesI.agda | asr/fotc | 11 | 3036 | <reponame>asr/fotc
------------------------------------------------------------------------------
-- Properties of the alter list
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-univers... |
source/tasking/a-cusyqu.adb | ytomino/drake | 33 | 5018 | <filename>source/tasking/a-cusyqu.adb
package body Ada.Containers.Unbounded_Synchronized_Queues is
use type Implementation.Node_Access;
protected body Queue is
-- overriding
entry Enqueue (New_Item : Queue_Interfaces.Element_Type) when True is
New_Node : constant Implementation.Node_Access :=
... |
agda/Mergesort/Impl1/Correctness/Order.agda | bgbianchi/sorting | 6 | 16984 | <reponame>bgbianchi/sorting
{-# OPTIONS --sized-types #-}
open import Relation.Binary.Core
module Mergesort.Impl1.Correctness.Order {A : Set}
(_≤_ : A → A → Set)
(tot≤ : Total _≤_) where
open import Data.List
open import Function using (_∘_)
open import List.Sorted _≤_
open import... |
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_InsertCharStruct_callee.asm | jpoikela/z88dk | 640 | 4801 | ; void sp1_InsertCharStruct(struct sp1_update *u, struct sp1_cs *cs)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_InsertCharStruct_callee
EXTERN asm_sp1_InsertCharStruct
_sp1_InsertCharStruct_callee:
pop af
pop de
pop hl
push af
jp asm_sp1_InsertCharStruct
|
programs/oeis/070/A070464.asm | neoneye/loda | 22 | 88088 | <filename>programs/oeis/070/A070464.asm
; A070464: a(n) = n^2 mod 42.
; 0,1,4,9,16,25,36,7,22,39,16,37,18,1,28,15,4,37,30,25,22,21,22,25,30,37,4,15,28,1,18,37,16,39,22,7,36,25,16,9,4,1,0,1,4,9,16,25,36,7,22,39,16,37,18,1,28,15,4,37,30,25,22,21,22,25,30,37,4,15,28,1,18,37,16,39,22,7,36,25,16,9,4,1,0,1,4,9,16,25,36,7,22,... |
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48_notsx.log_21829_1045.asm | ljhsiun2/medusa | 9 | 179966 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x12357, %rsi
lea addresses_WC_ht+0x8f4b, %rdi
nop
nop
nop
nop
nop
add $32933, %r10
mov $60, %rcx
rep movsb
nop
nop
nop
sub $41863, %r14
lea addresses_normal_ht+0x14dcb, %r15
n... |
dino/lcs/base/1.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 14444 | copyright zengfr site:http://github.com/zengfr/romhack
0199F0 btst #$0, ($1,A5)
0199F6 beq $19a0a [base+ 1]
019DC0 btst #$0, ($1,A5)
019DC6 beq $19dd2 [base+ 1]
01CA0E btst #$0, ($1,A5)
01CA14 beq $1ca20 [base+ 1]
01D0E8 btst #$1, ($1,A5)
01D0EE beq $1d0f8 [base+ 1]
02AE82 b... |
libsrc/stdio_new/general/stdio_nextarg.asm | andydansby/z88dk-mk2 | 1 | 160102 | <reponame>andydansby/z88dk-mk2
; stdio_nextarg
; 05.2008 aralbrec
XLIB stdio_nextarg
; get next 16-bit parameter from a va_arg parameter list
;
; enter : hl = & top of parameter list
; exit : de = 16-bit parameter from list
; hl = hl - 2
.stdio_nextarg
ld d,(hl)
dec hl
ld e,(hl)
dec hl
ret
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_959.asm | ljhsiun2/medusa | 9 | 163682 | <filename>Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_959.asm<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r8
push %rbp
push %rcx
push %rdx
// Store
lea addresses_RW+0x1d324, %rdx
nop
nop
sub %r8, %r8
mov ... |
test/fibonacci.asm | zephray/Dramite | 4 | 10780 | ; fibonacci.asm
;
; $ nasm -v
; NASM version 2.11.08
; $ nasm fibonacci.asm -o fibonacci.bin
; $ hexdump -C fibonacci.bin
; 00000000 66 31 db 66 b9 09 00 00 00 66 31 d2 66 b8 01 00 |f1.f.....f1.f...|
; 00000010 00 00 eb 00 66 89 da 66 89 c3 66 01 d0 66 49 66 |....f..f..f..fIf|
; 00000020 83 f9 00 75 ef f4 ... |
oeis/275/A275799.asm | neoneye/loda-programs | 11 | 171851 | <reponame>neoneye/loda-programs
; A275799: Number of inequivalent (modulo C_4 rotations) square n X n grids with squares coming in two colors and three squares have one of the colors.
; 1,22,140,578,1785,4612,10416,21340,40425,72010,121836,197582,308945,468328,690880,995352,1404081,1944030,2646700,3549370,4694921,61332... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/a74205e.ada | best08618/asylo | 7 | 29132 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/a74205e.ada<gh_stars>1-10
-- A74205E.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
... |
Mac/dmgdesign.applescript | eric-erki/WebCard | 1 | 2854 | on run args
set thePluginName to (item 1 of args)
set theInstallerName to (item 2 of args)
tell application "Finder"
tell disk theInstallerName
open
set current view of container window to icon view
set toolbar visible of container window to false
set statusbar visible of container win... |
projects/batfish/src/main/antlr4/org/batfish/grammar/cisco_xr/CiscoXr_static.g4 | jeffkala/batfish | 0 | 3151 | parser grammar CiscoXr_static;
import CiscoXr_common;
options {
tokenVocab = CiscoXrLexer;
}
rs_address_family
:
ADDRESS_FAMILY
(
IPV4
| IPV6
)
(
UNICAST
| MULTICAST
) NEWLINE (rs_route | rs_no_route)*
;
route_prefix: (prefix = IP_PREFIX | prefix6 = IPV6_PREFIX);
route_nex... |
src/MLib/Fin/Parts/Nat/Simple.agda | bch29/agda-matrices | 0 | 13356 | <reponame>bch29/agda-matrices<filename>src/MLib/Fin/Parts/Nat/Simple.agda
module MLib.Fin.Parts.Nat.Simple where
open import MLib.Prelude
open import MLib.Fin.Parts.Core
open import MLib.Fin.Parts.Nat
open Nat using (_*_; _+_; _<_)
open Fin using (toℕ; fromℕ≤)
open Table
repl : ∀ n → ℕ → Table ℕ n
repl _ = replicate... |
ADL/hal/hal-spi.ads | JCGobbi/Nucleo-STM32H743ZI | 0 | 10197 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
tests/src/tests.ads | Fabien-Chouteau/usb_embedded | 14 | 10896 | with AUnit.Test_Suites;
with AUnit.Test_Fixtures;
with AUnit.Test_Caller;
package Tests is
function Get_Suite return AUnit.Test_Suites.Access_Test_Suite;
private
type Null_Fixture is new AUnit.Test_Fixtures.Test_Fixture with null record;
package Null_Caller is new AUnit.Test_Caller (Null_Fixture);
Sui... |
MSDOS/TASM/Hello.asm | leonhad/masm | 9 | 100844 | <filename>MSDOS/TASM/Hello.asm
.MODEL SMALL
.STACK 100h
.DATA
TimePrompt DB 'Is it after 12 noon (Y/N)?$'
GoodMorningMessage DB 13,10,'Good morning, world!',13,10,'$'
GoodAfternoonMessage DB 13,10,'Good afternoon, world!',13,10,'$'
DefaultMessage DB 13,10,'Good day, world!',10,13,'$'
.CODE
start:
mov ax, @DATA
... |
programs/oeis/204/A204016.asm | neoneye/loda | 22 | 96140 | <filename>programs/oeis/204/A204016.asm
; A204016: Symmetric matrix based on f(i,j) = max{j mod i, i mod j), by antidiagonals.
; 0,1,1,1,0,1,1,2,2,1,1,2,0,2,1,1,2,3,3,2,1,1,2,3,0,3,2,1,1,2,3,4,4,3,2,1,1,2,3,4,0,4,3,2,1,1,2,3,4,5,5,4,3,2,1,1,2,3,4,5,0,5,4,3,2,1,1,2,3,4,5,6,6,5,4,3,2,1,1,2,3,4,5,6,0,6,5,4,3,2,1,1,2,3,4,5... |
programs/oeis/021/A021193.asm | neoneye/loda | 22 | 25408 | <gh_stars>10-100
; A021193: Decimal expansion of 1/189.
; 0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5,2,9,1,0,0,5
add $0,1
mov $1,10
pow $1,$0
mul $1,8
div $1,1512
mod $1,10
mov... |
test/testdirs/testdir1/subdir1/someada.adb | bunyk/pss | 202 | 3706 | just a line
context-2
context-1
line with match - abc
context+1
context+2
bloop
groop
line matching 'abc' again
derm
germ
blah
1
2
3
|
programs/oeis/113/A113854.asm | jmorken/loda | 1 | 25547 | ; A113854: a(n) = sum(2^(A047240(i)-1), i=1..n).
; 1,3,35,99,227,2275,6371,14563,145635,407779,932067,9320675,26097891,59652323,596523235,1670265059,3817748707,38177487075,106896963811,244335917283,2443359172835,6841405683939,15637498706147,156374987061475,437849963772131,1000799917193443
mov $25,$0
mov $27,$0
add $27... |
programs/oeis/056/A056992.asm | karttu/loda | 1 | 174329 | <reponame>karttu/loda
; A056992: Digital roots of square numbers A000290.
; 1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,9,4,1,9,1,4,9,7,7,... |
applet/aide/source/palettes/attic/aide-palette-of_types.ads | charlie5/aIDE | 3 | 8129 | <reponame>charlie5/aIDE<filename>applet/aide/source/palettes/attic/aide-palette-of_types.ads<gh_stars>1-10
with
adam.a_Type,
gtk.Widget;
with Gtk.Button;
with Gtk.Window;
with Gtk.Notebook;
with Gtk.Table;
package aIDE.Palette.of_types
is
type Item is new Palette.item with private;
type View is acce... |
antlr-plugin/src/test/resources/org/nemesis/antlr/v4/netbeans/v8/grammar/file/tool/HasErrors.g4 | timboudreau/ANTLR4-Plugins-for-NetBeans | 1 | 7537 | grammar HasErrors;
thing :
item*;
item : (words | number);
number : ('-' Digits) # Negative
| (Digits) # Positive
| (Digits ('_' Digits)*) # Positive;
words : Word*;
Digits : DIGIT+;
Word : WORD;
Digits : DIGIT+;
Whitespace:
WHITESPACE -> channel(1);
fragment DIGIT : [0-9];
fragment WHITESPAC... |
gyak/gyak1-2/mat.ads | balintsoos/LearnAda | 0 | 27430 | <reponame>balintsoos/LearnAda
package Mat is
function Lnko ( A, B : Positive ) return Positive;
function Faktorialis( N: Natural ) return Positive;
function Max2( A, B : Natural ) return Natural;
function Max3( A, B, C : Natural ) return Natural;
function isEven( N : Natural ) return Boolean;
functio... |
apple_scripts/prev.applescript | PLDaily/tmux-NeteaseMusic | 2 | 2088 | tell application "System Events" to tell process "NeteaseMusic"
click menu item "Previous" of menu 1 of menu bar item "controls" of menu bar 1
end tell
|
ide/se/html.als | joireman/config | 0 | 272 | =surround_with_anchor <a name=%\c>%\m sur_text -select%</a>
orderedlist <ol>
%\i<li> Item 1... </li>
%\i<li> Item 2... </li>
%\i<li> Item 3... </li>
</ol>
datehdg(month "Month"
day "Day"
moabbr "Month Abbreviation"
)
<a name="%(moabbr)_... |
source/protocol/lsp-notification_dispatchers.ads | reznikmm/ada_lsp | 11 | 24916 | <reponame>reznikmm/ada_lsp
-- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
private with Ada.Containers.Hashed_Maps;
with Ada.Streams;
with League.Strings;
private with League.Strings.Hash;
with LSP... |
Appl/Art/Decks/GeoDeck/CGAHeartA.asm | steakknife/pcgeos | 504 | 170506 | <gh_stars>100-1000
CGAHeartA label byte
word C_BLACK
Bitmap <67,41,BMC_PACKBITS,BMF_MONO>
db 0xf8, 0x00
db 0xf8, 0x00
db 0x00, 0x01, 0xfb, 0x00, 0x01, 0xee, 0x00
db 0x01, 0x03, 0x80, 0xfd, 0x00, 0x02, 0x01, 0x55,
0x00
db 0x01, 0x06, 0xc0, 0xfd, 0x00, 0x02, 0x01, 0xab,
0x00
db 0x01, 0x0c, 0x60, 0... |
libsrc/_DEVELOPMENT/z80/c/sdcc_iy/im2_create_generic_isr_8080.asm | meesokim/z88dk | 0 | 240443 | <filename>libsrc/_DEVELOPMENT/z80/c/sdcc_iy/im2_create_generic_isr_8080.asm
; void *im2_create_generic_isr_8080(uint8_t num_callback, void *address)
SECTION code_z80
PUBLIC _im2_create_generic_isr_8080
EXTERN l_im2_create_generic_isr_8080_callee
_im2_create_generic_isr_8080:
pop af
pop hl
pop de
p... |
src/grammars/org/zelo/intellij/syntax/concrete/Zelo.g4 | sasquatch-mc/intellij-zelo | 0 | 1735 | <reponame>sasquatch-mc/intellij-zelo
grammar Zelo;
module
: 'модул' qualifiedName use* declaration*
;
use
: 'ползва' qualifiedName ';'
;
qualifiedName
: NAME ('::' NAME)*
;
declaration
: type NAME '(' arguments? ')' '=' expression ';'
| visibility type NAME '(' arguments? ')' '=' exp... |
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0xca.log_3_1709.asm | ljhsiun2/medusa | 9 | 173260 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xe3cf, %r8
nop
nop
and $14214, %r10
movb (%r8), %cl
nop
nop
nop
nop
sub %r11, %r11
lea addresses_WC_ht+0xc5cf, %rdi
cmp $10921, %rsi
vmovups (%rdi), %ymm0
vextra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.