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/cpu/interrupt.asm | cashlisa/mos | 302 | 1945 | [extern isr_handler]
[extern irq_handler]
[extern signal_handler]
; Common ISR code
isr_common_stub:
; 1. Save CPU state
pusha ; Pushes edi,esi,ebp,esp,ebx,edx,ecx,eax
push ds
push es
push fs
push gs
mov ax, 0x10 ; kernel data segment descriptor
mov ds, ax
mov es, ax
mov fs, a... |
oeis/018/A018212.asm | neoneye/loda-programs | 11 | 81806 | ; A018212: Alkane (or paraffin) numbers l(11,n).
; Submitted by <NAME>
; 1,5,25,85,255,651,1519,3235,6470,12190,21942,37854,63090,101850,160050,245322,367983,541035,781495,1110395,1554553,2146573,2927145,3945045,5260060,6942988,9079292,11769100,15131700,19305540
mov $5,$0
add $5,1
mov $8,$0
lpb $5
mov $0,$8
sub $5... |
test_programs/decimal.asm | mfkiwl/QNICE-FPGA-hyperRAM | 53 | 23144 | ; Development testbed for a decimal conversion routine
;
; * Outputs "NUM_AMOUNT" decimal numbers stored in "Numbers" as ASCII
; encoded digits to STDOUT.
; * As it is hardcoded 16-bit: Always five digits and trailing zeros are shown
; * Uses a straightforward "divide and modulo" approach and can handle numbers
; b... |
src/main/antlr4/org/optionmetrics/ztools/zlite/ZLiteLexer.g4 | dhait/zlite | 0 | 5300 | <gh_stars>0
/*
* Copyright (c) 2017, <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of co... |
programs/oeis/293/A293162.asm | neoneye/loda | 22 | 163742 | ; A293162: Take every third term of the {0,1}-version of the Thue-Morse sequence: a(n) = A010060(3n).
; 0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,1,1,1,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,1,1,1,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,1,1,1,0,1,0,0,0,0
mul $0,24
mov $... |
maps/SilverCaveRoom1.asm | Dev727/ancientplatinum | 28 | 179664 | object_const_def ; object_event constants
const SILVERCAVEROOM1_POKE_BALL1
const SILVERCAVEROOM1_POKE_BALL2
const SILVERCAVEROOM1_POKE_BALL3
const SILVERCAVEROOM1_POKE_BALL4
SilverCaveRoom1_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
SilverCaveRoom1MaxElixer:
itemball MAX_ELIXER
SilverCaveRoom1Protein... |
programs/oeis/174/A174783.asm | neoneye/loda | 22 | 9794 | ; A174783: Expansion of (1+2x-sqrt(1-4x^2))/(2(1-x^2)*sqrt(1-4x^2)).
; 0,1,1,3,4,9,14,29,49,99,175,351,637,1275,2353,4707,8788,17577,33098,66197,125476,250953,478192,956385,1830270,3660541,7030570,14061141,27088870,54177741,104647630,209295261,405187825,810375651,1571990935,3143981871,6109558585,12219117171,23782190485... |
MCD.asm | edoardottt/Asm_mars_examples | 21 | 86813 | <reponame>edoardottt/Asm_mars_examples<gh_stars>10-100
# MASSIMO COMUN DIVISORE TRA DUE INTERI POSITIVI
.data
richiesta: .asciiz "inserire due valori x ed y interi positivi\n"
.text
li $v0,4
la $a0,richiesta
syscall
li $v0,5
syscall
move $s0,$v0 #X
li $v0,5
syscall
move $s1,$v0 #Y
loop:
beq $s0,$s1,uguali... |
Source/ZFAM030.asm | walmartlabs/zFAM | 21 | 11635 | <filename>Source/ZFAM030.asm
*
* PROGRAM: ZFAM030
* AUTHOR: <NAME> and <NAME>
* COMMENTS: zFAM - z/os File Access Manager
*
* This program is executed as the Query Mode PUT/UPDATE
* service called by the ZFAM001 control program.
*
*
****************************************... |
alloy4fun_models/trashltl/models/14/7mfLQZNXHGg9Ew7Su.als | Kaixi26/org.alloytools.alloy | 0 | 4655 | open main
pred id7mfLQZNXHGg9Ew7Su_prop15 {
always (some File implies (eventually File in Trash))
}
pred __repair { id7mfLQZNXHGg9Ew7Su_prop15 }
check __repair { id7mfLQZNXHGg9Ew7Su_prop15 <=> prop15o } |
LibraBFT/Abstract/System.agda | cwjnkins/bft-consensus-agda | 0 | 799 | <filename>LibraBFT/Abstract/System.agda
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9.
Copyright (c) 2020, 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.Prelude
ope... |
oeis/085/A085536.asm | neoneye/loda-programs | 11 | 81625 | ; A085536: a(n) = (3n)^(3n).
; Submitted by <NAME>
; 1,27,46656,387420489,8916100448256,437893890380859375,39346408075296537575424,5842587018385982521381124421,1333735776850284124449081472843776,443426488243037769948249630619149892803,205891132094649000000000000000000000000000000,129110040087761027839616029934664535539... |
programs/oeis/047/A047205.asm | neoneye/loda | 22 | 1260 | <reponame>neoneye/loda<filename>programs/oeis/047/A047205.asm<gh_stars>10-100
; A047205: Numbers that are congruent to {0, 3, 4} mod 5.
; 0,3,4,5,8,9,10,13,14,15,18,19,20,23,24,25,28,29,30,33,34,35,38,39,40,43,44,45,48,49,50,53,54,55,58,59,60,63,64,65,68,69,70,73,74,75,78,79,80,83,84,85,88,89,90,93,94,95,98,99,100,103,... |
awa/plugins/awa-wikis/src/awa-wikis.ads | twdroeger/ada-awa | 0 | 28520 | <reponame>twdroeger/ada-awa
-----------------------------------------------------------------------
-- awa-wikis -- Wiki module
-- Copyright (C) 2011, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance w... |
untested/x64/findFirstSet.asm | GabrielRavier/Generic-Assembly-Samples | 0 | 9944 | global _findFirstSet
global _findFirstSet64
segment .text align=16
_findFirstSet:
bsf eax, edi
mov edx, -1
cmove eax, edx
inc rax
ret
align 16
_findFirstSet64:
bsf rax, rdi
mov rdx, -1
cmove rax, rdx
inc rax
cdqe
ret |
libsrc/_DEVELOPMENT/arch/zx/display/z80/asm_zx_saddr2cx.asm | RC2014Z80/z88dk | 8 | 28983 |
; ===============================================================
; Jun 2007
; ===============================================================
;
; uchar zx_saddr2cx(void *saddr)
;
; Character x coordinate corresponding to screen address.
;
; ===============================================================
SECTION code... |
alloy4fun_models/trashltl/models/15/D6A3Qqt4ud9WQikuW.als | Kaixi26/org.alloytools.alloy | 0 | 4890 | <gh_stars>0
open main
pred idD6A3Qqt4ud9WQikuW_prop16 {
historically Protected = Protected'
}
pred __repair { idD6A3Qqt4ud9WQikuW_prop16 }
check __repair { idD6A3Qqt4ud9WQikuW_prop16 <=> prop16o } |
ioq3/build/release-js-js/baseq3/game/ai_team.asm | RawTechnique/quake-port | 1 | 162822 | export BotValidTeamLeader
code
proc BotValidTeamLeader 8 4
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
ADDRLP4 0
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 0
INDIRU4
CNSTU4 0
NEU4 $55
CNSTI4 0
RETI4
ADDRGP4 $54
JUMPV
LABELV $55
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
ADDRLP4 4
ADDRGP4 ClientFromName
CALLI4
ASGNI4
ADDRLP4 ... |
src/music.asm | hackneyc/CastleEscape | 0 | 168457 | <reponame>hackneyc/CastleEscape
public wyz_play_frame
public wyz_play_song
public wyz_play_sound
public wyz_player_init
public wyz_player_stop
section CODE_5
;
; Assembly player from https://github.com/AugustoRuiz/WYZTracker
;
; Mino... |
src/VCalc.g4 | mark-nicholson/verilog-calc | 0 | 3329 | /**
* Define a grammar for a calculator supporting Verilog style numerics
*/
grammar VCalc;
@header {
package vcalc;
}
prog: stat+ ;
stat: expr NEWLINE # printExpr
| ID OP_ASSIGN expr NEWLINE # assign
| NEWLINE # blank
;
expr: <assoc=right> expr OP_POW expr # Exponent
| OP_BIT_INVERT expr ... |
bb-runtimes/powerpc/gdbstub/gdbstub_io.adb | JCGobbi/Nucleo-STM32G474RE | 0 | 16453 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2010-2011, AdaCore --
-- --
-- G... |
itunes_play.scpt | yantze/applescript-player-control | 2 | 433 | tell application "iTunes" to play
|
src/tests/undoc_regs.asm | Hacktix/BullyGB | 10 | 241300 | SECTION "Undocumented Registers", ROMX
UndocumentedRegistersTest::
; Test register $FF72
ldh a, [$FF72]
and a
jr z, .validInitFF72
ld de, strInvalidInit
ld b, "2"
jr ReturnFailString
.validInitFF72
dec a
ldh [$FF72], a
ldh a, [$FF72]
cp $FF
jr z, .validWriteFF72
ld de... |
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sdcc/sqrt_fastcall.asm | ahjelm/z88dk | 640 | 3560 |
SECTION code_fp_math16
PUBLIC _sqrtf16_fastcall
EXTERN asm_f16_sqrt
defc _sqrtf16_fastcall = asm_f16_sqrt
|
internal/well-typed-quoted-syntax-defs.agda | JasonGross/lob | 19 | 5044 | <reponame>JasonGross/lob
{-# OPTIONS --without-K #-}
module well-typed-quoted-syntax-defs where
open import common
open import well-typed-syntax
open import well-typed-syntax-helpers
open import well-typed-syntax-context-helpers
‘ε’ : Term {Γ = ε} ‘Context’
‘ε’ = ⌜ ε ⌝c
‘□’ : Typ (ε ▻ ‘Typ’ ‘’ ‘ε’)
‘□’ = ‘Term’ ‘’₁ ‘... |
Transynther/x86/_processed/AVXALIGN/_st_zr_sm_/i9-9900K_12_0xa0.log_21829_1918.asm | ljhsiun2/medusa | 9 | 2652 | <filename>Transynther/x86/_processed/AVXALIGN/_st_zr_sm_/i9-9900K_12_0xa0.log_21829_1918.asm<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1354, %rsi
lea addresses_UC_ht+0x1ac23, %rdi
xor %r13, %r13
mov $65... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr21_pkg.adb | best08618/asylo | 7 | 10068 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr21_pkg.adb
package body Aggr21_Pkg is
procedure Init (R : out Rec) is
begin
R := (A => 5, S => <>, N => 7);
end;
end Aggr21_Pkg;
|
crc/crc64_multibinary.asm | hzhuang1/isa-l | 344 | 175386 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2016 Intel Corporation All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; * Redistributions of so... |
Transynther/x86/_processed/NC/_ht_st_zr_un_/i9-9900K_12_0xa0_notsx.log_1354_1419.asm | ljhsiun2/medusa | 9 | 16798 | <filename>Transynther/x86/_processed/NC/_ht_st_zr_un_/i9-9900K_12_0xa0_notsx.log_1354_1419.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1b8a0, %rsi
lea addresses_WC_ht+0x39a0, %rdi
nop
nop
nop
nop
dec %r10
mov $76, %rcx
rep ... |
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48_notsx.log_1_202.asm | ljhsiun2/medusa | 9 | 161150 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xed85, %rsi
lea addresses_D_ht+0x9005, %rdi
nop
nop
dec %r11
mov $49, %rcx
rep movsb
nop
nop
dec %r12
lea addresses_UC_ht+0x18d85, %rsi
lea addresses_WC_ht+0xa905, %rdi
sub %r9, %r9
mov... |
F5529/Assembly/Timer/timer.asm | sonic2000gr/MSP430 | 1 | 160918 | ;-------------------------------------------------------------------------------
; MSP430F5529 Timer A in Assembly. Includes also Watchdog interrupt
; (C) 2015 - 2018 <NAME>
;
;-------------------------------------------------------------------------------
.cdecls C,LIST,"msp430.h" ; Include device he... |
programs/oeis/045/A045678.asm | neoneye/loda | 22 | 94399 | <gh_stars>10-100
; A045678: Number of 2n-bead balanced binary necklaces which are equivalent to their reversed complement, but not equivalent to their reverse and complement.
; 0,0,0,2,4,12,26,56,116,240,492,992,2010,4032,8120,16256,32628,65280,130800,261632,523756,1047552,2096096,4192256,8386522,16773120,33550272,6710... |
programs/oeis/123/A123385.asm | neoneye/loda | 22 | 165842 | <reponame>neoneye/loda
; A123385: a(n) = (n!)^2/2.
; 2,18,288,7200,259200,12700800,812851200,65840947200,6584094720000,796675461120000,114721266401280000,19387894021816320000,3800027228275998720000,855006126362099712000000,218881568348697526272000000,63256773252773585092608000000,20495194533898641570004992000000,739876... |
x86-64-assembly/two-fer/two_fer.asm | jonasbb/exercism | 0 | 240984 | <reponame>jonasbb/exercism
default rel
section .rodata
first: db "One for ", 0
name: db "you", 0
second: db ", one for me.", 0
section .text
global two_fer
two_fer:
; Args
; name -- rdi
; buffer -- rsi
mov r11, rdi ; name
mov rdi, rsi
; Copy the first part of the sentence
mov rsi, first
... |
src/low_level.a51 | kursancew/805x-sched | 1 | 96319 | NAME LOW_LEVEL
?PR?push_bank?LOW_LEVEL SEGMENT CODE
?PR?pop_bank?LOW_LEVEL SEGMENT CODE
?PR?returni?LOW_LEVEL SEGMENT CODE
PUBLIC push_bank
PUBLIC pop_bank
PUBLIC returni
EXTRN CODE (timer_isr)
;;;;;;;;;;;;;;
RSEG ?PR?push_bank?LOW_LEVEL
USING 0
push_bank:
USING 0
pop acc
pop b
pu... |
Working Disassembly/General/Sprites/Rhino/Map - RhinoBot.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 5 | 91613 | <filename>Working Disassembly/General/Sprites/Rhino/Map - RhinoBot.asm
Map_3615A8: dc.w Frame_3615B8-Map_3615A8
dc.w Frame_3615CC-Map_3615A8
dc.w Frame_3615E0-Map_3615A8
dc.w Frame_3615E8-Map_3615A8
dc.w Frame_3615F6-Map_3615A8
dc.w Frame_3615FE-Map_3615A8
dc.w Frame_361606-Map_3615A8
dc.w Frame_36160E-Ma... |
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_21829_105.asm | ljhsiun2/medusa | 9 | 179620 | <filename>Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_21829_105.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x3783, %r11
nop
and %r15, %r15
movw $0x6162, (%r11)
nop
nop
nop
nop
nop
... |
gcc-gcc-7_3_0-release/gcc/ada/par-ch8.adb | best08618/asylo | 7 | 6702 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
regtests/css-comments-tests.adb | stcarrez/ada-css | 3 | 25771 | -----------------------------------------------------------------------
-- css-comments-tests -- Unit tests for CSS comments package
-- Copyright (C) 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance wi... |
src/main.asm | duanegoodner/lowlevel_io_meancalc | 0 | 20270 | <reponame>duanegoodner/lowlevel_io_meancalc<filename>src/main.asm
TITLE Low-level I/O Procedures and Implementing Macros
; Author: <NAME>
; Contact info: <EMAIL>
; Description: Gets 10 integer values from user entered as strings. Converts string values
; to numeric integer values, and stores these values in an ... |
oeis/335/A335616.asm | neoneye/loda-programs | 11 | 164617 | <filename>oeis/335/A335616.asm
; A335616: a(n) is twice the number of partitions of n into consecutive parts, minus the number of partitions of n into consecutive parts that contain 1 as a part.
; Submitted by <NAME>
; 1,2,3,2,4,3,4,2,6,3,4,4,4,4,7,2,4,6,4,4,7,4,4,4,6,4,8,3,4,8,4,2,8,4,8,5,4,4,8,4,4,8,4,4,11,4,4,4,6,6,... |
programs/oeis/176/A176889.asm | neoneye/loda | 22 | 103065 | <gh_stars>10-100
; A176889: a(2*k-1)=1, a(2*k)=2*k^2 (definition by <NAME>, see References).
; 1,2,1,8,1,18,1,32,1,50,1,72,1,98,1,128,1,162,1,200,1,242,1,288,1,338,1,392,1,450,1,512,1,578,1,648,1,722,1,800,1,882,1,968,1,1058,1,1152,1,1250,1,1352,1,1458,1,1568,1,1682,1,1800,1,1922,1,2048,1,2178,1,2312,1,2450,1,2592,1,27... |
libsrc/math/mbf32/c/asm/___mbf32_FPINT.asm | jpoikela/z88dk | 640 | 243455 | SECTION code_fp_mbf32
PUBLIC ___mbf32_FPINT
EXTERN FPINT
defc ___mbf32_FPINT = FPINT
|
main.asm | dejbug/suro | 0 | 240053 | <filename>main.asm
; 14 Feb 2020 / <NAME> / <<EMAIL>>
ccall(funcname,%2,%3,%4,%5,%6) MACRO
#if ARGCOUNT=1
INVOKE funcname
#elif ARGCOUNT=2
INVOKE funcname,%2
#elif ARGCOUNT=3
INVOKE funcname,%2,%3
#elif ARGCOUNT=4
INVOKE funcname,%2,%3,%4
#elif ARGCOUNT=5
INVOKE funcname,%2,%3,%4,%5
#elif ARG... |
programs/oeis/049/A049451.asm | karttu/loda | 1 | 8976 | ; A049451: Twice second pentagonal numbers.
; 0,4,14,30,52,80,114,154,200,252,310,374,444,520,602,690,784,884,990,1102,1220,1344,1474,1610,1752,1900,2054,2214,2380,2552,2730,2914,3104,3300,3502,3710,3924,4144,4370,4602,4840,5084,5334,5590,5852,6120,6394,6674,6960,7252,7550,7854,8164,8480,8802,9130,9464,9804,10150,10502... |
libsrc/_DEVELOPMENT/sound/ay/c/sccz80/ay_wyz_start_effect.asm | Frodevan/z88dk | 640 | 179697 | IF !__CPU_INTEL__ & !__CPU_GBZ80__
SECTION code_sound_ay
PUBLIC ay_wyz_start_effect
PUBLIC ay_wyz_start_effect_callee
EXTERN asm_wyz_start_effect
ay_wyz_start_effect_callee:
pop bc ;return address
pop hl ;number
pop de ;channel
push bc
jr start_effect
;void ay_wyz_start_effect(int channel, int effect_numbe... |
programs/oeis/038/A038164.asm | karttu/loda | 0 | 86081 | <reponame>karttu/loda<filename>programs/oeis/038/A038164.asm
; A038164: G.f.: 1/((1-x)*(1-x^2))^4.
; 1,4,14,36,85,176,344,624,1086,1800,2892,4488,6798,10032,14520,20592,28743,39468,53482,71500,94523,123552,159952,205088,260780,328848,411672,511632,631788,775200,945744,1147296,1384701,1662804
mov $15,$0
mov $17,$0
add ... |
src/Ordinal/HoTT.agda | JLimperg/msc-thesis-code | 5 | 5371 | <filename>src/Ordinal/HoTT.agda
-- Ordinals as defined in the HoTT book.
{-# OPTIONS --without-K --safe #-}
module Ordinal.HoTT where
open import Data.Empty using (⊥)
open import Data.Unit using (⊤)
open import Induction.WellFounded using (Acc ; acc ; WellFounded)
open import Level using (Level ; _⊔_ ; 0ℓ) renaming (... |
asm/hello.asm | pokemium/wyvern | 7 | 27947 | <reponame>pokemium/wyvern
printPC: MACRO
printt \1
printv(@)
printt "\n"
ENDM
SECTION "Start",ROM0[$100] ; start vector, followed by header data applied by rgbfix.exe
nop
jp start
SECTION "Main",ROM0[$150] ; code starts here
start:
di ; disable interrupts
ld sp,$E000 ; setup stack
.wait_vbl ... |
programs/oeis/292/A292423.asm | neoneye/loda | 22 | 178083 | <filename>programs/oeis/292/A292423.asm
; A292423: a(n) = 82*a(n-1) + a(n-2), where a(0) = 0, a(1) = 1.
; 0,1,82,6725,551532,45232349,3709604150,304232772649,24950796961368,2046269583604825,167819056652557018,13763208915093280301,1128750950094301541700,92571341116647819699701,7591978722515215516917182,62263482658736432... |
oeis/063/A063649.asm | neoneye/loda-programs | 11 | 24017 | ; A063649: Largest b such that 1/n=1/c+1/b has integer solutions with c>b.
; Submitted by <NAME>(s2)
; 3,4,6,6,10,8,12,12,15,12,21,14,21,24,24,18,30,20,36,30,33,24,42,30,39,36,44,30,55,32,48,44,51,60,63,38,57,52,72,42,78,44,66,72,69,48,84,56,75,68,78,54,90,80,105,76,87,60,110,62,93,112,96,90,110,68,102,92,120,72,136,74... |
ada/src/lights.adb | alkalinin/raytracer | 45 | 3339 | <gh_stars>10-100
package body Lights is
function Create_Light(Position: Vector; Color: Color_Type) return Light_Type
is ( ( Position => Position, Color => Color ) );
function Position_Of(Light: Light_Type) return Vector
is ( Light.Position );
function Color_Of(Light: Light_Type) return Color_Type
i... |
gdb/testsuite/gdb.ada/operator_call/twovecs.adb | greyblue9/binutils-gdb | 1 | 28394 | <gh_stars>1-10
-- Copyright 2021 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later versi... |
drivers/drivers-text_io.adb | ekoeppen/STM32_Generic_Ada_Drivers | 1 | 27418 | <filename>drivers/drivers-text_io.adb
with STM32_SVD; use STM32_SVD;
package body Drivers.Text_IO is
procedure Put (C : Character) is
begin
USART.Transmit (Character'Pos (C));
end Put;
procedure Put (S : String) is
begin
for C of S loop
Put (C);
end loop;
end Put;
pro... |
Task/Execute-a-Markov-algorithm/Ada/execute-a-markov-algorithm-2.ada | LaudateCorpus1/RosettaCodeData | 1 | 5297 | <filename>Task/Execute-a-Markov-algorithm/Ada/execute-a-markov-algorithm-2.ada
package body Markov is
function Parse (S : String_Array) return Ruleset is
Result : Ruleset (Length => S'Length);
begin
for I in S'Range loop
if Length (S (I)) = 0 or else Element (S (I), 1) = '#' then
... |
maps/Route13.asm | Dev727/ancientplatinum | 28 | 6719 | object_const_def ; object_event constants
const ROUTE13_YOUNGSTER1
const ROUTE13_YOUNGSTER2
const ROUTE13_POKEFAN_M1
const ROUTE13_POKEFAN_M2
const ROUTE13_POKEFAN_M3
Route13_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
TrainerPokefanmAlex:
trainer POKEFANM, ALEX, EVENT_BEAT_POKEFANM_ALEX, PokefanmAlex... |
test/Succeed/Issue1885.agda | cruhland/agda | 1,989 | 5575 | <filename>test/Succeed/Issue1885.agda
{-# NO_POSITIVITY_CHECK #-}
data D : Set
data D where
d : (D → D) → D
data E : Set
{-# NO_POSITIVITY_CHECK #-}
data E where
e : (E → E) → E
{-# NO_POSITIVITY_CHECK #-}
data F : Set
{-# NO_POSITIVITY_CHECK #-}
data F where
e : (F → F) → F
|
src/copy-application-icon/Scripts/default.applescript | mirka/launchbar-actions | 2 | 4510 | on open (thePaths)
set myFile to (item 1 of thePaths)
set appPath to POSIX path of myFile
try
tell application "System Events"
tell property list file (appPath & "Contents/Info.plist")
set iconName to the value of property list item "CFBundleIconFile"
end tell
end tell
if iconName does not end with... |
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_21829_2474.asm | ljhsiun2/medusa | 9 | 86425 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xbe3e, %r13
clflush (%r13)
xor %r15, %r15
mov (%r13), %r12w
nop
nop
nop
nop
nop
add %rdi, %rdi
lea addresses_WT_ht+0x9766, %rsi
lea addresses_WC_... |
library/02_functions_batch1/unknown_10003a09.asm | SamantazFox/dds140-reverse-engineering | 1 | 103641 | <filename>library/02_functions_batch1/unknown_10003a09.asm<gh_stars>1-10
10003a09: 6a 0c push 0xc
10003a0b: 68 e0 e3 00 10 push 0x1000e3e0
10003a10: e8 13 1e 00 00 call 0x10005828
10003a15: 83 65 e4 00 and DWORD PTR [ebp-0x1c],0x0
10003a19: 8b 75 08 mov e... |
libsrc/target/gal/stdio/printc_MODE1.asm | Frodevan/z88dk | 640 | 93469 |
; code_driver to ensure we don't page ourselves out
SECTION code_clib
PUBLIC printc_MODE1
EXTERN generic_console_flags
EXTERN generic_console_font32
EXTERN generic_console_udg32
; c = x
; b = y
; d = character
; e = raw
; a = screen port
printc_MODE1:
ld l,d
ld h,0
ld de,(generic_console_font... |
MIPS_Course/lab1/sum.asm | akellermann97/college-dump | 0 | 1854 | #
# FILE: $File$
# AUTHOR: <NAME>
# Contributors:
# <NAME>
# <NAME>
# <NAME> (akn1736)
#
# DESCRIPTION:
# This program reads up to 10 of numbers (or until the user
# enters the value 9999) from the standard input, and then
# computes and prints their sum.
#
# ARGUMENTS:
# None
#
# INPUT:
# The... |
src/helios-commands.adb | stcarrez/helios | 1 | 18207 | -----------------------------------------------------------------------
-- helios-commands -- Helios commands
-- Copyright (C) 2017, 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the Lice... |
libsrc/osca/set_pen.asm | jpoikela/z88dk | 640 | 169202 | ;
; Old School Computer Architecture - interfacing FLOS
; <NAME>, 2011
;
; $Id: set_pen.asm,v 1.4 2016-06-22 22:13:09 dom Exp $
;
INCLUDE "target/osca/def/flos.def"
SECTION code_clib
PUBLIC set_pen
PUBLIC _set_pen
set_pen:
_set_pen:
;__FASTCALL__
ld a,l
jp kjt_set_pen
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_21829_1525.asm | ljhsiun2/medusa | 9 | 23657 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x2a06, %r11
nop
nop
and $165, %r14
movb (%r11), %r9b
nop
nop
nop
nop
nop
xor %r12, %r12
lea addresses_A_ht+0xe386, %rbx
nop
nop
no... |
programs/oeis/199/A199531.asm | jmorken/loda | 1 | 19922 | <filename>programs/oeis/199/A199531.asm<gh_stars>1-10
; A199531: Number of -n..n arrays x(0..3) of 4 elements with zero sum and no two consecutive zero elements.
; 12,72,212,464,860,1432,2212,3232,4524,6120,8052,10352,13052,16184,19780,23872,28492,33672,39444,45840,52892,60632,69092,78304,88300,99112,110772,123312,1367... |
src/cpnd1/nodcap/Base.agda | wenkokke/nodcap | 4 | 8334 | module nodcap.Base where
open import Data.Nat as ℕ using (ℕ; suc; zero)
open import Data.Pos as ℕ⁺ using (ℕ⁺; suc; _+_)
open import Data.List as L using (List; []; _∷_; _++_)
open import Data.List.Any using (Any; here; there)
open import Data.List.Any.Membership.Propositional using (_∈_; _∼[_]_; bag)
open import Data.... |
src/sets/nat/solver.agda | pcapriotti/agda-base | 20 | 13596 | <gh_stars>10-100
{-# OPTIONS --without-K #-}
module sets.nat.solver where
open import decidable
open import equality
open import function.core
hiding (const)
open import sets.nat.core
open import sets.nat.properties
open import sets.nat.ordering
open import sets.fin.core
hiding (_≟_)
open import sets.vec.core
ope... |
oeis/014/A014904.asm | neoneye/loda-programs | 11 | 171434 | ; A014904: a(1)=1, a(n) = 20*a(n-1) + n.
; 1,22,443,8864,177285,3545706,70914127,1418282548,28365650969,567313019390,11346260387811,226925207756232,4538504155124653,90770083102493074,1815401662049861495,36308033240997229916,726160664819944598337,14523213296398891966758,290464265927977839335179,5809285318559556786703600... |
oeis/128/A128078.asm | neoneye/loda-programs | 11 | 100044 | <reponame>neoneye/loda-programs
; A128078: A002260 * A128064.
; Submitted by <NAME>
; 1,-1,4,-1,-2,9,-1,-2,-3,16,-1,-2,-3,-4,25,-1,-2,-3,-4,-5,36,-1,-2,-3,-4,-5,-6,49,-1,-2,-3,-4,-5,-6,-7,64
add $0,1
mov $2,$0
lpb $0
add $4,1
mov $3,$4
cmp $3,$2
mul $3,$2
sub $2,$4
mul $3,$0
mov $0,$2
sub $3,$2
mul $... |
zikcart-demo-1/zsldevinit.asm | JulienNevo/zikzak | 8 | 28561 | ; zsldevinit.asm
; Implementation file for opening peripheral devices.
;
; This file contains implementation for opening (by calling intialize routines)
; peripheral devices required by ZiLOG Standard Library implementations for eZ80
; and eZ80 Acclaim! series of microprocessors and microcontrollers.
;
; ... |
test/Fail/InstanceArgumentsBraceSpaces.agda | shlevy/agda | 1,989 | 8981 | <reponame>shlevy/agda
module InstanceArgumentsBraceSpaces where
postulate
A B : Set
test : {{a : A} } → B
|
src/Control/Monad/Maybe.agda | L-TChen/agda-prelude | 111 | 11543 | <reponame>L-TChen/agda-prelude
module Control.Monad.Maybe where
open import Prelude
open import Control.Monad.Zero
open import Control.Monad.Transformer
record MaybeT {a} (M : Set a → Set a) (A : Set a) : Set a where
no-eta-equality
constructor maybeT
field runMaybeT : M (Maybe A)
open MaybeT public
module _... |
texmap/tmap_rgb.asm | arbruijn/d1dos | 2 | 174933 | <gh_stars>1-10
;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
;IN USIN... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43103b.ada | best08618/asylo | 7 | 10706 | <reponame>best08618/asylo<gh_stars>1-10
-- C43103B.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 docume... |
code/objects/box.asm | zxwanderer/A-World-of-One-way | 7 | 96578 | module BOX
init:
SET_EXEC_IX BROKEN_BLOCK.update
ld (ix+oData.color),%01000011
xor a
ld (ix+oData.isMovable),a
ld (ix+oData.accelerate),a
ld (ix+oData.drawMethod),a ; for 2x2 draw
inc a
ld (ix+oData.needDraw),a
jp OBJECTS.setObjectId
endmodule
|
templates/default.adb | nexssp/language_ada | 1 | 28431 | <filename>templates/default.adb
with Ada.Text_IO;
procedure Default is
begin
loop
exit when Ada.Text_IO.End_Of_File;
-- Ada.Text_IO.Put_Line("Echo" &Ada.Text_IO.Get_Line);
Ada.Text_IO.Put_Line(Ada.Text_IO.Get_Line);
end loop;
end default;
Default |
src/main/antlr/GenTreeSrc.g4 | Clashsoft/GenTreeSrc | 0 | 6744 | grammar GenTreeSrc;
// =============== Parser ===============
// --------------- Main File and Header ---------------
main: (typeDeclaration ';'?)+;
// --------------- Type Declarations ---------------
typeDeclaration:
typeModifier* packageName className=IDENTIFIER propertyList? subtypeList?;
typeModifier: ABSTR... |
src/mem_layout.asm | Gegel85/RemiFlap | 0 | 27390 | include "src/registers.asm"
SECTION "crash", ROM0
jp crash
SECTION "vblank", ROM0
jp vblank_interrupt
SECTION "hblank", ROM0
jp hblank_interrupt
SECTION "timer", ROM0
jp timer_interrupt
SECTION "serial", ROM0
jp serial_interrupt
SECTION "joypad", ROM0
jp joypad_interrupt
crash::
di
ld b, b
ld hl, lcdLin... |
oeis/127/A127769.asm | neoneye/loda-programs | 11 | 175144 | <reponame>neoneye/loda-programs<filename>oeis/127/A127769.asm
; A127769: a(n)=3*C(4n-2,2n)/(2n+1)-2*0^n.
; 1,1,9,90,1001,11934,149226,1931540,25662825,347993910,4796857230,67016296620,946844533674,13505406670700,194214400834356,2812744285440936,40989428837821289,600607911737487654,8843512890953152230,130783058462384959... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/support/repbody.ada | best08618/asylo | 7 | 30827 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/support/repbody.ada<gh_stars>1-10
-- REPBODY.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... |
Driver/Printer/HP/Pcl4/pcl4Tables.asm | steakknife/pcgeos | 504 | 81898 | <filename>Driver/Printer/HP/Pcl4/pcl4Tables.asm<gh_stars>100-1000
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: LaserJet print driver
FILE: pcl4Tables.asm
AUTHOR: <NAME>
REVISION HI... |
_maps/Sonic.asm | derpguy125/SnorcRomHack-Master | 0 | 96164 | ; ================================================================================
; Sprite Mappings - generated by Flex 2 Thu Oct 22 2020 10:49:42 GMT-0400 (Eastern Daylight Time)
; ================================================================================
DATA7PQ40KBLQUL:
dc.w $0, DATA7PQ40KBLQUL_1-DATA7PQ40K... |
oeis/164/A164552.asm | neoneye/loda-programs | 11 | 171642 | ; A164552: a(n) = 12*a(n-1)-30*a(n-2) for n > 1; a(0) = 1, a(1) = 10.
; Submitted by <NAME>
; 1,10,90,780,6660,56520,478440,4045680,34194960,288969120,2441780640,20632294080,174334109760,1473040494720,12446462643840,105166336884480,888602163298560,7508235853048320,63440765337623040,536042108460026880
mov $1,1
mov $2,4... |
src/Prelude/Product.agda | lclem/agda-prelude | 0 | 1343 |
module Prelude.Product where
open import Agda.Primitive
open import Agda.Builtin.Sigma public
open import Prelude.Function
open import Prelude.Equality
open import Prelude.Decidable
open import Prelude.Ord
instance
ipair : ∀ {a b} {A : Set a} {B : A → Set b} {{x : A}} {{y : B x}} → Σ A B
ipair {{x}} {{y}} = x , ... |
Library/Pref/Prefbg/prefbg.asm | steakknife/pcgeos | 504 | 166822 | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: prefbg.asm
AUTHOR: <NAME>, Aug 25, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
... |
oeis/188/A188648.asm | neoneye/loda-programs | 11 | 161509 | ; A188648: Binomial sums a(n) = Sum_{k=0..n} (binomial(2n-k,k))^2.
; Submitted by <NAME>
; 1,2,11,63,376,2317,14545,92512,594169,3844787,25027296,163701327,1075049011,7083830648,46812088751,310118453573,2058919125662,13695571200353,91254952276859,608960974528058,4069232436916151,27225039227088245,182351090200262876,122... |
programs/oeis/155/A155158.asm | neoneye/loda | 22 | 81146 | ; A155158: Period 4: repeat [1, 5, 7, 3].
; 1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5,7,3,1,5
mul $0,2
lpb $0
mul $0,7
sub $0,1
mod $0,8
lpe
mul $0,2
add $0,1
|
oeis/030/A030237.asm | neoneye/loda-programs | 11 | 9333 | ; A030237: Catalan's triangle with right border removed (n > 0, 0 <= k < n).
; Submitted by <NAME>
; 1,1,2,1,3,5,1,4,9,14,1,5,14,28,42,1,6,20,48,90,132,1,7,27,75,165,297,429,1,8,35,110,275,572,1001,1430,1,9,44,154,429,1001,2002,3432,4862,1,10,54,208,637,1638,3640,7072,11934,16796,1,11,65,273,910,2548,6188,13260,25194,4... |
programs/oeis/174/A174446.asm | neoneye/loda | 22 | 245977 | <reponame>neoneye/loda
; A174446: Triangle T(n, k, q) = ceiling(binomial(n, k)/f(n, q)) with T(0, 0) = 1, f(n, q) = 1 + tanh((n-1)/q), and q = 1, read by rows.
; 1,1,1,1,2,1,1,2,2,1,1,3,4,3,1,1,3,6,6,3,1,1,4,8,11,8,4,1,1,4,11,18,18,11,4,1,1,5,15,29,36,29,15,5,1,1,5,19,43,64,64,43,19,5,1,1,6,23,61,106,127,106,61,23,6,1,... |
Structure/Operator/Vector/LinearMap.agda | Lolirofle/stuff-in-agda | 6 | 6290 | module Structure.Operator.Vector.LinearMap where
open import Functional
open import Logic
open import Logic.Predicate
open import Logic.Propositional
import Lvl
open import Structure.Function
open import Structure.Function.Domain
open import Structure.Function.Multi
open import Structure.Operator
open import Stru... |
src/kernel/arch/x86_64/bootstrap.asm | shadow-paw/bluemoon | 3 | 173870 | cpu x86-64
bits 64
%include "kernel.inc"
global bootstrap, k_PML4T, k_PDPT, k_PDT
extern idt_init, kmain
extern sbss, ebss, _kernel_end
extern ctor_start, ctor_end, dtor_start, dtor_end
%define IST_SIZE (4096)
%define KSTACK_SIZE (8192)
section .bss
; ----------------------------------------------
align 4096
k... |
coverage/IN_CTS/0584-COVERAGE-instruction-simplify-5397/work/variant/1_spirv_asm/shader.frag.asm | asuonpaa/ShaderTests | 0 | 85195 | ; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 58
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %39
OpExecutionMode %4 OriginUp... |
oeis/287/A287815.asm | neoneye/loda-programs | 11 | 90336 | ; A287815: Number of octonary sequences of length n such that no two consecutive terms have distance 7.
; Submitted by <NAME>
; 1,8,62,482,3746,29114,226274,1758602,13667858,106226618,825593474,6416514026,49869159026,387583197338,3012297335522,23411580532682,181954847741906,1414153417389434,10990803008177474,8542054156... |
sources/webgl/opengl-textures.adb | godunko/adagl | 6 | 19170 | <filename>sources/webgl/opengl-textures.adb
------------------------------------------------------------------------------
-- --
-- Ada binding for OpenGL/WebGL --
-- ... |
P6/data_P6_2/MDTest186.asm | alxzzhou/BUAA_CO_2020 | 1 | 762 | ori $ra,$ra,0xf
mtlo $1
ori $4,$2,55864
div $4,$ra
sb $4,12($0)
ori $6,$2,26041
sb $1,8($0)
mult $4,$2
sll $5,$0,27
mthi $5
addu $6,$2,$6
ori $5,$2,31443
mfhi $2
mult $1,$1
mflo $5
addu $2,$2,$3
sll $1,$6,14
multu $5,$5
mtlo $1
lb $1,1($0)
sll $5,$4,23
srav $4,$2,$2
mfhi $4
multu $4,$6
mult $1,$1
divu $4,$ra
sll $0,$6,... |
src/common_utils.adb | psyomn/ash | 11 | 26710 | <reponame>psyomn/ash
-- Copyright 2019 <NAME> (psyomn)
--
-- 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 ap... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto8_pkg.ads | best08618/asylo | 7 | 29309 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto8_pkg.ads
with System;
with Unchecked_Conversion;
package Lto8_Pkg is
type Task_Priority_T is new Natural;
function Convert_To_System_Priority is
new Unchecked_Conversion (Task_Priority_T, System.Priority);
protected type Protected_Queue_T( PO_Pr... |
math_2d-vectors.adb | io7m/coreland-math_2d | 1 | 26213 | <gh_stars>1-10
package body Math_2D.Vectors is
use type Types.Real_Type;
function Magnitude
(Vector : in Types.Vector_t) return Types.Real_Type'Base is
begin
return Types.Functions.Sqrt (Square_Magnitude (Vector));
end Magnitude;
function Square_Magnitude
(Vector : in Types.Vector_t) return Typ... |
exchange_u32.asm | antangelo/nv2a-trace | 0 | 170042 | ; Construct binary using `nasm exchange_u32.asm`
bits 32
exchange_u32:
; Avoid any other CPU stuff overwriting stuff in this risky section
cli
; value
mov eax, dword [esp+4]
; address
mov edx, dword [esp+8]
xchg dword [EDX],EAX
sti
ret 0x8
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.