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 |
|---|---|---|---|---|
programs/oeis/159/A159715.asm | jmorken/loda | 1 | 90714 | <filename>programs/oeis/159/A159715.asm
; A159715: Number of permutations of 2 indistinguishable copies of 1..n arranged in a circle with exactly 1 local maximum.
; 4,18,72,270,972,3402,11664,39366,131220,433026,1417176,4605822,14880348,47829690,153055008,487862838,1549681956,4907326194,15496819560,48814981614,15341851... |
Code/CustomControl/RAHexEd/Src/Paint.asm | CherryDT/FbEditMOD | 11 | 23395 |
.code
HexAddr:
@@:
call Nybble
mov [edi],dl
inc edi
dec ecx
jne @b
mov [edi],cl
retn
HexByte:
mov al,[esi+ebx]
shl eax,24
call Nybble
mov [edi],dl
inc edi
call Nybble
mov [edi],dl
inc edi
inc ecx
inc ebx
.if ecx==8
mov word ptr [edi],'-'
.else
mov wo... |
alloy4fun_models/trashltl/models/13/khtSd2p2GoKq7GjAJ.als | Kaixi26/org.alloytools.alloy | 0 | 4388 | open main
pred idkhtSd2p2GoKq7GjAJ_prop14 {
all f:File | (f in Protected & Trash) implies f not in Protected'
}
pred __repair { idkhtSd2p2GoKq7GjAJ_prop14 }
check __repair { idkhtSd2p2GoKq7GjAJ_prop14 <=> prop14o } |
Task/Send-email/Ada/send-email.ada | LaudateCorpus1/RosettaCodeData | 1 | 13495 | with AWS.SMTP, AWS.SMTP.Client, AWS.SMTP.Authentication.Plain;
with Ada.Text_IO;
use Ada, AWS;
procedure Sendmail is
Status : SMTP.Status;
Auth : aliased constant SMTP.Authentication.Plain.Credential :=
SMTP.Authentication.Plain.Initialize ("id", "password");
Isp : SMTP.Receiver;
begin
Isp :=
... |
test/Fail/Issue1606.agda | cruhland/agda | 1,989 | 1138 |
postulate
C : Set
anything : C
record I : Set where
constructor c
field
f : C
data Wrap : (j : I) → Set where
wrap : ∀ {j} → Wrap j
-- The following should not pass.
-- It did before the fix of #142.
issue142 : ∀ {j} → Wrap j → C
issue142 {c _} (wrap {c _}) with anything
issue142 {c _} (wrap .{c anyth... |
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_567.asm | ljhsiun2/medusa | 9 | 90001 | <filename>Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_567.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1dcc9, %rdi
clflush (%rdi)
cmp %rbx, %rbx
mov $0x6162636465666768, %r15
movq %r15, %xmm4
v... |
ta19demo/lib/barden_fill.asm | hallorant/bitmit | 6 | 2254 | <reponame>hallorant/bitmit
; <NAME>, Jr. 'TRS-80 Assembly-Language Programming', 1979 pg 189.
;
; Fills a block of memory with a given 8-bit value.
;
; Uses: a, bc, d, hl
;
; Entry: d data to be filled (the 8-bit value)
; hl start addr of the fill area
; bc # of bytes to fill
; Exit: d same
; ... |
Numeral/Natural/Oper/Modulo/Proofs/DivisibilityWithRemainder.agda | Lolirofle/stuff-in-agda | 6 | 12331 | <reponame>Lolirofle/stuff-in-agda
module Numeral.Natural.Oper.Modulo.Proofs.DivisibilityWithRemainder where
open import Data
open import Functional
open import Numeral.Finite
import Numeral.Finite.Proofs as 𝕟
open import Numeral.Natural
open import Numeral.Natural.Oper
open import Numeral.Natural.Oper.Modulo
ope... |
ls.asm | briansrls/xv6 | 0 | 240525 | <reponame>briansrls/xv6<filename>ls.asm
_ls: file format elf32-i386
Disassembly of section .text:
00000000 <fmtname>:
#include "user.h"
#include "fs.h"
char*
fmtname(char *path)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 53 push %ebx
4: ... |
programs/oeis/052/A052539.asm | karttu/loda | 1 | 170038 | <reponame>karttu/loda
; A052539: a(n) = 4^n + 1.
; 2,5,17,65,257,1025,4097,16385,65537,262145,1048577,4194305,16777217,67108865,268435457,1073741825,4294967297,17179869185,68719476737,274877906945,1099511627777,4398046511105,17592186044417,70368744177665,281474976710657,1125899906842625,4503599627370497
mov $1,4
pow $... |
models/tests/test27.als | transclosure/Amalgam | 4 | 4876 | module tests/test[X]
fun add [a:Int, b:Int-a] : Int+X { int[a]+int[b] }
run add expect 1
|
software/hal/hpl/STM32/devices/stm32f42x/stm32-device.ads | TUM-EI-RCS/StratoX | 12 | 23274 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
programs/oeis/164/A164278.asm | neoneye/loda | 22 | 14811 | ; A164278: a(n) = (6*n + 1)^(2*n) - 1.
; 0,48,28560,47045880,152587890624,819628286980800,6582952005840035280,73885357344138503765448,1104427674243920646305299200,21209401372879911350250244140624,508858109619679129936596364708525200
mul $0,2
mov $1,1
mov $2,$0
mul $0,2
add $1,$0
add $1,$2
pow $1,$2
sub $1,1
mov $0,$1
|
middleware/src/monitor/monitor-block_drivers.adb | rocher/Ada_Drivers_Library | 192 | 19663 | <reponame>rocher/Ada_Drivers_Library
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- ... |
alloy4fun_models/trainstlt/models/3/CSfh4veZPbjeKwgtT.als | Kaixi26/org.alloytools.alloy | 0 | 2795 | open main
pred idCSfh4veZPbjeKwgtT_prop4 {
all t1, t2 : Train | always t1.pos != t2.pos
}
pred __repair { idCSfh4veZPbjeKwgtT_prop4 }
check __repair { idCSfh4veZPbjeKwgtT_prop4 <=> prop4o } |
grammar/SwiftParser.g4 | EternalPhane/Swift2TypeScript | 3 | 5994 | parser grammar SwiftParser
;
options
{
tokenVocab = SwiftLexer;
}
@header {
import {
WS, OP_LWS, OP_RWS, testLN, isPreOp, isBinOp, isPostOp, isStatementStarting
} from '../SwiftHelper';
}
program
: statements EOF
;
// Lexical Structure
// =================
// GRAMMAR OF AN IDENTIFIER
identifier
: ... |
3-mid/opengl/source/platform/osmesa/private/opengl-surface_profile-privvy.ads | charlie5/lace | 20 | 10218 | package openGL.surface_Profile.privvy
is
-- function to_glx (Self : in Item'Class) return glx.GLXFBConfig;
procedure dummy;
end openGL.surface_Profile.privvy;
|
Transynther/x86/_processed/AVXALIGN/_st_zr_un_/i9-9900K_12_0xa0_notsx.log_21829_1440.asm | ljhsiun2/medusa | 9 | 4283 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r8
push %rcx
push %rdx
push %rsi
lea addresses_D_ht+0x1a6f2, %rdx
nop
nop
sub %r15, %r15
mov $0x6162636465666768, %rsi
movq %rsi, %xmm0
vmovups %ymm0, (%rdx)
nop
nop
add $55831, %r8
lea addresses_D_ht+0x113c8, %r1... |
gfx/pokemon/slakoth/anim.asm | Ebernacher90/pokecrystal-allworld | 0 | 162113 | frame 1, 15
setrepeat 4
frame 2, 12
frame 3, 12
dorepeat 2
frame 1, 08
endanim
|
projects/batfish/src/org/batfish/grammar/iptables/IptablesParser.g4 | gaberger/batfish | 1 | 3647 | <reponame>gaberger/batfish<gh_stars>1-10
parser grammar IptablesParser;
options {
superClass = 'org.batfish.grammar.BatfishParser';
tokenVocab = IptablesLexer;
}
@header {
package org.batfish.grammar.iptables;
}
iptables_configuration
:
command+
|
(
declaration_table declaration_chain_policy+ co... |
programs/oeis/200/A200058.asm | karttu/loda | 0 | 18024 | ; A200058: Number of -n..n arrays x(0..3) of 4 elements with zero sum and elements alternately strictly increasing and strictly decreasing.
; 4,26,78,172,324,546,850,1252,1764,2398,3170,4092,5176,6438,7890,9544,11416,13518,15862,18464,21336,24490,27942,31704,35788,40210,44982,50116,55628,61530,67834,74556,81708,89302,9... |
kernelB.asm | vags-cin/awesome-bootloader | 8 | 104026 | org 0x7c00
jmp 0x0000:start
score dw 0
highscore dw 0
game_over_msg db "Game Over!" ; tamanho = 10
score_msg db "Your score is: " ;tamanho = 15
highscore_msg db "The high_score is: " ;tamanho = 19
number times 2 db 0
dez db 10
rand dw 0
i db 0
sequence times 40 db 0
stack dw 0
start:
.random:
mov ah, 0
int 0x1A... |
test/interaction/Issue1132.agda | shlevy/agda | 1,989 | 12169 | -- 2014-05-16 Andreas: Question mark not recognized by emacs
module _ where
data Nat : Set where
suc : Nat → Nat
data Fin : Nat → Set where
zero : ∀ n → Fin (suc n)
test : ∀ n → Fin n → Set
test .? (zero n) = Nat
-- The questionmark in the dot pattern is not recognized by emacs-mode.
-- This cannot be tested ... |
programs/oeis/100/A100855.asm | jmorken/loda | 1 | 1484 | <reponame>jmorken/loda<gh_stars>1-10
; A100855: n*(n^3-n^2+n+1)/2.
; 0,1,7,33,106,265,561,1057,1828,2961,4555,6721,9582,13273,17941,23745,30856,39457,49743,61921,76210,92841,112057,134113,159276,187825,220051,256257,296758,341881,391965,447361,508432,575553,649111,729505,817146,912457,1015873,1127841,1248820,1379281,15... |
Examples/ch14/DiskSpc.asm | satadriver/LiunuxOS_t | 0 | 60 | TITLE Disk Free Space (DiskSpc.asm)
; This program calls INT 21h Function 7303h, to get free space information
; on a FAT-type drive volume. It displays both the volume size and free space.
; Runs under Windows 95/98/Me, but not under Windows NT/2000/XP.
; Last update: 12/11/01
INCLUDE Irv... |
misc/cpcacid_src/cpcacid_vblank2.asm | floooh/yakc | 106 | 89581 | <gh_stars>100-1000
;; (c) Copyright <NAME> 2015-2016
;; This code is part of the Arnold emulator distribution.
;; This code is free to distribute without modification
;; this copyright header must be retained.
org &4000
nolist
km_wait_char equ &bb06
txt_output equ &bb5a
scr_set_mode equ &bc0e
scr_set_border equ &bc38
... |
.emacs.d/elpa/wisi-3.1.3/wisitoken_grammar_actions.ads | caqg/linux-home | 0 | 23608 | -- generated parser support file.
-- command line: wisitoken-bnf-generate.exe --generate LALR Ada re2c PROCESS wisitoken_grammar.wy
--
-- Copyright (C) 2017 - 2019 Free Software Foundation, Inc.
--
-- Author: <NAME> <<EMAIL>>
--
-- This file is part of GNU Emacs.
--
-- GNU Emacs is free software: you can redist... |
tools/generator/meta-writes.adb | reznikmm/gela | 0 | 27260 | -- SPDX-FileCopyrightText: 2019-2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Characters.Wide_Wide_Latin_1;
with Ada.Wide_Wide_Text_IO;
with Ada_Pretty;
with League.String_Vectors;
with League.Strings;
package body Meta.Writes is
... |
libsrc/_DEVELOPMENT/target/scz180/device/csio/sdcc/csio_sd_read_block_fastcall.asm | Frodevan/z88dk | 640 | 82351 |
SECTION code_driver
PUBLIC _sd_read_block_fastcall
EXTERN asm_sd_read_block
;Read a block of 512 bytes (one sector) from the drive
;and store it in memory at (HL++)
;
;input HL = pointer to block
;uses AF, BC, DE, HL
defc _sd_read_block_fastcall = asm_sd_read_block
|
oeis/078/A078620.asm | neoneye/loda-programs | 11 | 161573 | <reponame>neoneye/loda-programs
; A078620: Floor(average of first n Fibonacci numbers).
; Submitted by <NAME>
; 1,1,1,1,2,3,4,6,9,14,21,31,46,70,106,161,245,375,576,885,1364,2107,3261,5058,7856,12223,19045,29715,46423,72610,113696,178215,279620,439127,690223,1085782,1709350,2693004,4245644,6697857,10573035,16700207,263... |
Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_21829_1530.asm | ljhsiun2/medusa | 9 | 161164 | <filename>Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_21829_1530.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1a36f, %rdx
nop
nop
nop
add %rbx, %rbx
movw $0x6162, (%rdx)
nop
nop
sub $24190, %r13
lea addresses... |
lib/aflexnat/misc_defs.ads | alvaromb/Compilemon | 1 | 1416 | <gh_stars>1-10
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by <NAME> of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright ... |
bb-runtimes/examples/samv71-xplained-ultra/coin_flip/leds.adb | JCGobbi/Nucleo-STM32G474RE | 0 | 28973 | ------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-osinte__linux.ads | djamal2727/Main-Bearing-Analytical-Model | 0 | 5895 | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
3-mid/impact/source/3d/collision/broadphase/impact-d3-collision-algorithm.ads | charlie5/lace | 20 | 12150 | with impact.d3.Manifold,
impact.d3.Dispatcher,
impact.d3.Object,
impact.d3.collision.manifold_Result,
ada.containers.Vectors;
package impact.d3.Collision.Algorithm
--
-- impact.d3.collision.Algorithm is an collision interface that is compatible with the Broadphase and impact.d3.Dispatcher.
-- It... |
programs/oeis/068/A068922.asm | jmorken/loda | 1 | 20299 | <gh_stars>1-10
; A068922: Number of ways to tile a 3 X 2n room with 1 X 2 Tatami mats. At most 3 Tatami mats may meet at a point.
; 3,4,6,10,16,26,42,68,110,178,288,466,754,1220,1974,3194,5168,8362,13530,21892,35422,57314,92736,150050,242786,392836,635622,1028458,1664080,2692538,4356618,7049156,11405774,18454930,298607... |
v1_antlr/Lain.g4 | baka-rust/lain | 2 | 720 | grammar Lain;
// terminals
ID: [a-zA-Z_][a-zA-Z_0-9]* ;
INT: [0-9]+ ;
STRING: '"' ~["\\\r\n]+ '"' ;
BOOL: ('true' | 'false') ;
COMMENT: '//' ~( '\r' | '\n' )* -> skip ;
WS: ( '\t' | ' ' | '\r' | '\n' | '\u000C' )+ -> skip ;
NULL: 'null' ;
// non-terminals
program : statement* EOF ;
statement : if_statement
| ... |
res/3names.zip.nasm | instalab/gsf_3names_read | 0 | 85007 | ; ZIP Template.
; by gynvael.coldwind//vx
[bits 32]
; Let's make a ZIP! :)
; Note: how to calculate crc-32? easy! just try to unpack the file
; with command-line unzip, it shows the good crc ;p
; File #1 Local File Header
file_1:
dd 0x04034b50 ; local file header signature 4 bytes ... |
4-high/gel/applet/demo/mouse/mouse_motion/launch_mouse_motion.adb | charlie5/lace | 20 | 9267 | procedure launch_mouse_Motion
--
-- Todo
--
is
begin
null;
end launch_mouse_Motion;
|
Cats/Category/Cat/Facts/Terminal.agda | alessio-b-zak/cats | 0 | 1766 | module Cats.Category.Cat.Facts.Terminal where
open import Cats.Category
open import Cats.Category.Cat using (Cat)
open import Cats.Category.One using (One)
instance
hasTerminal : ∀ lo la l≈ → HasTerminal (Cat lo la l≈)
hasTerminal lo la l≈ = record
{ One = One lo la l≈
; isTerminal = _
}
|
source/config_file.adb | jquorning/Gauss | 4 | 24617 | --
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Ada.Text_IO;
with Ada.Directories;
--... |
arch/lib/io/readline.asm | Mosseridan/Compiler-Principles | 0 | 171379 | /* io/readline.asm
* Read chars until the end of the line or the end of the file,
* and return a pointer to a null-terminated string. This
* routine calls MALLOC to allocate its own memory for the
* string.
*
* Programmer: <NAME>, 2010
*/
READLINE:
PUSH(FP);
MOV(FP, SP);
PUSH(R1);
PUSH(R2);
PUSH(I... |
rand.asm | kun1z/gameros | 0 | 23346 | ; Copyright © 2013 - 2021 by <NAME>. All rights reserved.
include rand.inc
; ##########################################################################
getrand proc minimum:word, maximum:word
invoke rand
xor edx, edx
movzx ecx, maximum
sub cx, minimum
div ecx
mov ax, dx
add ax,... |
1A/S5/PIM/tps/tp1/newton.adb | MOUDDENEHamza/ENSEEIHT | 4 | 17138 | with Ada.Text_IO;use Ada.Text_IO;
with Ada.Float_Text_IO;use Ada.Float_Text_IO;
procedure newton is
Number: Float;
Accuracy: Float;
a0: Float;
ak: Float;
begin
put("Enter your number : ");
get(Number);
put("Enter the accuracy : ");
get(Accuracy);
a0 := 1.0;
ak := 1.0;
loop
... |
test/testdata_assembler/comments.asm | onlyafly/oakblue | 0 | 20643 | ;; Test 1
ADD R0 R0 1 ;Test2
; Test 3 |
engine/items/tmhm2.asm | Dev727/ancientplatinum | 6 | 21717 | <reponame>Dev727/ancientplatinum
CanLearnTMHMMove:
ld a, [wCurPartySpecies]
ld [wCurSpecies], a
call GetBaseData
ld hl, wBaseTMHM
push hl
ld a, [wPutativeTMHMMove]
call GetMoveIndexFromID
ld b, h
ld c, l
ld hl, TMHMMoves
.loop
ld a, [hli]
or [hl]
jr z, .end
dec hl
ld a, [hli]
cp c
ld a, [hli]
jr nz, ... |
test/succeed/Issue574.agda | asr/agda-kanso | 1 | 6604 | <gh_stars>1-10
-- Andreas, 2012-02-25 reported by edgmnt on behalf of xplat.
module Issue574 where
open import Common.Level
wah : ∀ o a → Set (lsuc lzero ⊔ (lsuc a ⊔ o)) → Set ((lsuc lzero ⊔ lsuc a) ⊔ o)
wah o a x = x -- should succeed
-- Error message was:
-- Set (suc zero ⊔ (suc a ⊔ o)) != Set (suc a ⊔ o)
-- when ... |
main.adb | Fabien-Chouteau/ASFML | 1 | 5067 | <reponame>Fabien-Chouteau/ASFML<gh_stars>1-10
-- This file is used to illustrate all
-- the files in the library
-- Root package
with Sf;
-- Used in all modules
with Sf.Config;
-- System module
with Sf.System;
with Sf.System.Types;
with Sf.System.Clock;
with Sf.System.Mutex;
with Sf.System.Randomizer;
with Sf.System... |
programs/oeis/017/A017146.asm | neoneye/loda | 22 | 7388 | <gh_stars>10-100
; A017146: a(n) = (8*n+6)^10.
; 60466176,289254654976,26559922791424,590490000000000,6278211847988224,42420747482776576,210832519264920576,839299365868340224,2824752490000000000,8335775831236199424,22130157888803070976,53861511409489970176,121899441999475713024,259374246010000000000,5233835553798567946... |
oeis/162/A162802.asm | neoneye/loda-programs | 11 | 18796 | ; A162802: Bisection of A162800.
; Submitted by <NAME>
; 2,6,12,18,26,34,42,50,60,69,76,86,99,105,111,129,138,150,160,170,180,192,198,217,228,236,246,260,270,279,288,309,315,334,348,356,370,381,393,405,420,432,441,453,462,473,489,501,515,532,552,566,574,590,600
mul $0,2
mov $1,$0
seq $0,40 ; The prime numbers.
add $1,... |
programs/oeis/004/A004083.asm | karttu/loda | 0 | 10490 | ; A004083: Numbers n such that cos(n-1) <= 0 and cos(n) > 0.
; 5,11,18,24,30,37,43,49,55,62,68,74,81,87,93,99,106,112,118,125,131,137,143,150,156,162,169,175,181,187,194,200,206,213,219,225,231,238,244,250,257,263,269,275,282,288,294,301,307,313,319,326,332,338,345
mov $3,$0
mul $0,2
mov $1,$0
add $1,4
div $1,7
add $1... |
data/wild/super_rod.asm | opiter09/ASM-Machina | 1 | 92606 | ; super rod encounters
SuperRodData:
; map, fishing group
dbw PALLET_TOWN, .Group1
dbw VIRIDIAN_CITY, .Group1
dbw CERULEAN_CITY, .Group3
dbw VERMILION_CITY, .Group4
dbw CELADON_CITY, .Group5
dbw FUCHSIA_CITY, .Group10
dbw CINNABAR_ISLAND, .Group8
dbw ROUTE_4, ... |
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_interfaces_propertyprobe_h.ads | persan/A-gst | 1 | 6679 | <filename>src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_interfaces_propertyprobe_h.ads
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
with glib;
with System;
-- limited -- with GStreamer.GST_Low_Level.glib_2_0_gob... |
programs/oeis/091/A091999.asm | neoneye/loda | 22 | 13806 | ; A091999: Numbers that are congruent to {2, 10} mod 12.
; 2,10,14,22,26,34,38,46,50,58,62,70,74,82,86,94,98,106,110,118,122,130,134,142,146,154,158,166,170,178,182,190,194,202,206,214,218,226,230,238,242,250,254,262,266,274,278,286,290,298,302,310,314,322,326,334
mul $0,3
add $0,1
div $0,2
mul $0,4
add $0,2
|
asm/tests/manual/mul_pt1.asm | ZopharsDomain/PCX86-JAVASCRIPT-jemul8 | 67 | 174179 | ;
; jemul8 - JavaScript x86 Emulator
; Copyright (c) 2012 http://ovms.co. All Rights Reserved.
;
; MODULE: Flags test suite (boot sector)
;
org 0
jmp 0x07C0:start
start:
cli
; Update DS & ES to be 7C0 instead of 0
push CS
pop DS
push CS
pop ES
; Create stack
mov ax, 0x0000
mov ss, ax
mov sp, 0x... |
programs/oeis/021/A021490.asm | neoneye/loda | 22 | 165768 | ; A021490: Decimal expansion of 1/486.
; 0,0,2,0,5,7,6,1,3,1,6,8,7,2,4,2,7,9,8,3,5,3,9,0,9,4,6,5,0,2,0,5,7,6,1,3,1,6,8,7,2,4,2,7,9,8,3,5,3,9,0,9,4,6,5,0,2,0,5,7,6,1,3,1,6,8,7,2,4,2,7,9,8,3,5,3,9,0,9,4,6,5,0,2,0,5,7,6,1,3,1,6,8,7,2,4,2,7,9
add $0,2
mov $1,10
pow $1,$0
div $1,4860
mod $1,10
mov $0,$1
|
45/beef/drv/kbd/inc/kbd_std.asm | minblock/msdos | 0 | 160673 | <reponame>minblock/msdos
;*
;* CW : Character Windows
;*
;* kbd_std.asm : standard KBD defaults (empty procedures)
;*
ifndef PollKeyboardKbd_NonDefault
;*****************************************************************************
;********** PollKeyboardKbd **********
;* * KBD entry point (see documentation for inte... |
modules/dev/char/console/console.nasm | r-tty/radios | 0 | 104672 | ;*******************************************************************************
; console.nasm - RadiOS console server.
; Copyright (c) 2002 RET & COM Research.
;*******************************************************************************
module $console
%include "sys.ah"
%include "errors.ah"
%include "asciictl.a... |
src/Categories/Kan/Duality.agda | MirceaS/agda-categories | 0 | 15440 | <reponame>MirceaS/agda-categories
{-# OPTIONS --without-K --safe #-}
module Categories.Kan.Duality where
open import Level
open import Categories.Category
open import Categories.Functor
open import Categories.NaturalTransformation
open import Categories.Kan
private
variable
o ℓ e : Level
C D E : Category ... |
src/QsFmt/Parser/QSharpParser.g4 | troelsfr/qsharp-compiler | 0 | 637 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
//
// This grammar is based on:
// https://github.com/microsoft/qsharp-language/blob/main/Specifications/Language/5_Grammar/QSharpParser.g4
parser grammar QSharpParser;
options {
tokenVocab = QSharpLexer;
}
document : namespaces=namespace... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1644.asm | ljhsiun2/medusa | 9 | 162182 | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xdcc9, %rcx
lfence
movups (%rcx), %xmm5
vpextrq $1, %xmm5, %rax
nop
nop
add %rbx, %rbx
lea addresses_WC_ht+0x15ab1, %rbx
nop
nop
nop
nop
nop
xor %rdx, %rdx
vmovups (... |
Chapter 08/Pointers/Pointers/Pointers-Optimized.asm | bpbpublications/Implementing-Reverse-Engineering | 0 | 27268 | <filename>Chapter 08/Pointers/Pointers/Pointers-Optimized.asm
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.30319.01
TITLE C:\JitenderN\REBook\Pointers\Pointers\Pointers.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
CONST SEGMENT
$SG46... |
programs/oeis/244/A244887.asm | karttu/loda | 1 | 87285 | ; A244887: Third column of triangle in A234950.
; 2,20,135,770,4004,19656,92820,426360,1918620,8498776,37182145,161056350,691945800,2952675600,12527780760,52895074320,222399744300,931689977400,3890668331550,16201562020644,67298796085752,278927990831600,1153747598439800,4763749454427600,19637233862140440
mov $2,$0
mul ... |
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_21829_95.asm | ljhsiun2/medusa | 9 | 6986 | .global s_prepare_buffers
s_prepare_buffers:
push %r14
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xf9e2, %rsi
lea addresses_WC_ht+0x9de2, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
and %r14, %r14
mov $80, %rcx
rep movsl
xor %rax, %rax
lea addresses_UC_ht+0x14594, %rsi
lea addresses_D_ht+0x175e2... |
Asm4Kids/45joysticksprite.asm | jacmoe/c64adventures | 17 | 242172 | ;****************************************
;* *
;* Noisy space sprite *
;* *
;* *
;****************************************
; 10 SYS (49152)
*=$0801
BYTE $0E, $08, $0A... |
ln.asm | saketdingliwal/System-Calls-Implementation | 0 | 173502 | <reponame>saketdingliwal/System-Calls-Implementation
_ln: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
if(argc ... |
programs/oeis/026/A026600.asm | neoneye/loda | 22 | 10308 | <reponame>neoneye/loda
; A026600: a(n) is the n-th letter of the infinite word generated from w(1)=1 inductively by w(n)=JUXTAPOSITION{w(n-1),w'(n-1),w"(n-1)}, where w(k) becomes w'(k) by the cyclic permutation 1->2->3->1 and w"(k) = (w')'(k).
; 1,2,3,2,3,1,3,1,2,2,3,1,3,1,2,1,2,3,3,1,2,1,2,3,2,3,1,2,3,1,3,1,2,1,2,3,3,... |
examples/kvflyweight_example.adb | jhumphry/auto_counters | 5 | 7760 | <filename>examples/kvflyweight_example.adb
-- kvflyweight_example.adb
-- An example of using the KVFlyweight package
-- Copyright (c) 2016, <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice... |
test/Fail/Issue4447False.agda | shlevy/agda | 1,989 | 15615 | <filename>test/Fail/Issue4447False.agda
-- Andreas, 2020-02-15, issue #4447
--
-- Positivity checker needs to see the constructor types
-- in the same way as the type checker has seen them.
--
-- Thus, we need to reduce types of constructors even
-- with definitions that have not yet been subjected to termination
-- ch... |
Logic/Propositional/Proofs/Structures.agda | Lolirofle/stuff-in-agda | 6 | 12776 | module Logic.Propositional.Proofs.Structures where
import Data.Tuple as Tuple
import Lvl
open import Functional
open import Logic
open import Logic.Propositional
import Logic.Propositional.Theorems as Theorems
open import Structure.Operator.Properties
open import Structure.Relator.Equivalence
open impor... |
evaluation/3_new_vulns/v1-var.asm | mguarnieri/revizor | 0 | 81247 | .intel_syntax noprefix
.test_case_enter:
LEA R14, [R14 + 28] # instrumentation
MFENCE
JMP .bb0
.bb0:
NOP
NOP
CDQ
SETZ CL
ADD EDX, 117
REX ADD BL, BL
SETNLE AL
SUB RBX, RBX
TEST AL, 29
MOV RDX, 0 # instrumentation
OR RBX, 0x6d # instrumentation
AND RAX, 0xff # instrumentation
DIV RBX
{disp32} JNO .bb1
.bb1:
AND RCX, 0b1... |
scripts/CeladonChiefHouse.asm | opiter09/ASM-Machina | 1 | 83620 | <reponame>opiter09/ASM-Machina
CeladonChiefHouse_Script:
call EnableAutoTextBoxDrawing
ret
CeladonChiefHouse_TextPointers:
dw CeladonHouseText1
dw CeladonHouseText2
dw CeladonHouseText3
CeladonHouseText1:
text_far _CeladonHouseText1
text_end
CeladonHouseText2:
text_far _CeladonHouseText2
text_end
CeladonHo... |
programs/oeis/126/A126592.asm | karttu/loda | 0 | 171749 | <filename>programs/oeis/126/A126592.asm
; A126592: Sum of numbers less than or equal to n which are multiples of 3 or 5.
; 0,0,3,3,8,14,14,14,23,33,33,45,45,45,60,60,60,78,78,98,119,119,119,143,168,168,195,195,195,225,225,225,258,258,293,329,329,329,368,408,408,450,450,450,495,495,495,543,543,593,644,644,644,698,753,75... |
ontolib-io/src/main/antlr4/de/charite/compbio/ontolib/io/obo/parser/Antlr4OboLexer.g4 | Phenomics/ontolib | 9 | 250 | /** ANTLR 4 lexer for the OBO v1.2 ontology description format.
*
* See <a href="http://owlcollab.github.io/oboformat/doc/GO.format.obo-1_2.html">The OBO Flat File
* Format Specification, version 1.2 </a> for details.
*
* @author <a href="mailto:<EMAIL>"><NAME></a>
*/
lexer grammar Antlr4OboLexer;
// Default Mod... |
programs/oeis/211/A211667.asm | karttu/loda | 0 | 162122 | ; A211667: Number of iterations sqrt(sqrt(sqrt(...(n)...))) such that the result is < 2.
; 0,1,1,2,2,2,2,2,2,2,2,2,2,2,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
mov $1,6
mov $3,$0
mul $3,4
mul $1,$3
mov $2,$1
cmp $2,0... |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c41206a.ada | best08618/asylo | 7 | 20309 | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c41206a.ada
-- C41206A.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
-- unlimi... |
src/grammar/XonLexer.g4 | xon-lang/ast | 1 | 1631 | lexer grammar XonLexer;
channels {
ERROR,
COMMENT_CHANNEL,
}
options {
superClass = XonLexerBase;
}
tokens {
INDENT,
DEDENT
}
@lexer::header {
import { XonLexerBase } from "./xon-lexer-base";
}
OPEN_BRACKET: '[' {this.opened++;};
CLOSE_BRACKET: ']' {this.opened--;};
OPEN_PAREN: '(' {th... |
basic_associations/polymophic.als | nowavailable/alloy_als_study | 0 | 1011 | <filename>basic_associations/polymophic.als
module polymophic_association
abstract sig Kind {}
sig UserProfile extends Kind {
photo: disj one Photo
}
sig Album extends Kind {
photos: disj set Photo
}
sig Photo {
photoable_type: one PhotoableTypeField,
photoable: one Photoable
}
abstract sig PhotoableTypeFi... |
src/helios-monitor.adb | stcarrez/helios | 1 | 5338 | -----------------------------------------------------------------------
-- helios-monitor -- Helios monitor
-- 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 with the License.
-- You m... |
demo/adainclude/a-extiin.adb | e3l6/SSMDev | 0 | 27610 | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
Transynther/x86/_processed/US/_st_/i7-7700_9_0x48_notsx.log_20_1107.asm | ljhsiun2/medusa | 9 | 86977 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1b42b, %r8
nop
nop
nop
add $59037, %rbp
movw $0x6162, (%r8)
nop
nop
nop
sub %r13, %r13
lea addresses_normal_ht+0xdd2b, %r11
nop
nop
nop
sub... |
Chapter5/Main/hgt-qfunc.v.0.5.2/src/test1.asm | dunarel/dunphd-thesis | 0 | 172995 | # introductory example; finds the sum of the elements of an array
.data # start of data segment
x:
.long 1
.long 5
.long 2
.long 18
sum:
.long 0
.text # start of code segment
.globl _start
_start:
movl $4, %eax # EAX will serve as a counter for
... |
programs/oeis/131/A131725.asm | karttu/loda | 0 | 179815 | <filename>programs/oeis/131/A131725.asm<gh_stars>0
; A131725: Partial sums of A131711.
; 0,1,3,8,10,19,19,28,36,41,49,50,50,51,53,58,60,69,69,78,86,91,99,100,100,101,103,108,110,119,119,128,136,141,149,150,150,151,153,158,160,169,169,178,186,191,199,200
mov $27,$0
mov $29,$0
lpb $29,1
clr $0,27
mov $0,$27
sub $2... |
my Projects/TXSerial/txserial.asm | simonbrennan/PicMicroASM | 1 | 23173 | ; **********************************************************
; * Program Name : Serial port TX for PIC *
; * Programmer : <NAME> *
; * Registers : *
; * Address 03h -> Status *
; * Address 02h -> PCL *
; * Address 1h -> F *
; * Address ... |
source/environment/machine-w64-mingw32/s-progra.adb | ytomino/drake | 33 | 22039 | with System.Address_To_Named_Access_Conversions;
with System.Growth;
with System.Zero_Terminated_WStrings;
with C.basetsd;
with C.winbase;
with C.windef;
with C.winnt;
package body System.Program is
use type C.basetsd.SSIZE_T;
package LPWSTR_Conv is
new Address_To_Named_Access_Conversions (C.winnt.WCHAR, C... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_6224_772.asm | ljhsiun2/medusa | 9 | 23623 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r9
push %rbx
push %rcx
push %rdi
lea addresses_normal_ht+0x13627, %rdi
nop
nop
nop
nop
nop
cmp %rcx, %rcx
mov $0x6162636465666768, %r10
movq %r10, %xmm5
movups %xmm5, (%rdi)
nop
nop
nop
sub $19068, %rbx
lea addresses_WC_ht+... |
libsrc/_DEVELOPMENT/string/c/sdcc_iy/ffsl_fastcall.asm | jpoikela/z88dk | 640 | 98362 | <gh_stars>100-1000
; int ffsl_fastcall(long i)
SECTION code_clib
SECTION code_string
PUBLIC _ffsl_fastcall
EXTERN asm_ffsl
defc _ffsl_fastcall = asm_ffsl
|
Commands/Standard suite/set/volume.applescript | looking-for-a-job/applescript-examples | 1 | 959 | <filename>Commands/Standard suite/set/volume.applescript<gh_stars>1-10
get volume settings
--> {output volume:13, input volume:100, alert volume:0, output muted:false}
#set volume output volume 10
#set volume input volume 100
#set volume alert volume 0
#set volume with output muted
#set volume with input muted
set vol... |
programs/oeis/084/A084215.asm | karttu/loda | 1 | 13876 | <gh_stars>1-10
; A084215: Expansion of g.f.: (1+x^2)/(1-2*x).
; 1,2,5,10,20,40,80,160,320,640,1280,2560,5120,10240,20480,40960,81920,163840,327680,655360,1310720,2621440,5242880,10485760,20971520,41943040,83886080,167772160,335544320,671088640,1342177280,2684354560,5368709120,10737418240,21474836480,42949672960,8589934... |
Proejct_02.asm | Rufian55/Assembly | 1 | 17678 | <filename>Proejct_02.asm
TITLE Program #2 (Project_02.asm)
; Author: <NAME>
; Date: 17 Apr 2016
; Description: Program calculates Fibonacci numbers.
; Displays program title, programmer’s name, gets user’s name, and greets user.
; Prompts user to enter number of Fibonacci terms to be displayed.
; Advises user to... |
Library/Spreadsheet/Spreadsheet/spreadsheetPasteTransTbl.asm | steakknife/pcgeos | 504 | 18949 |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: spreadsheetPasteTransTbl.asm
AUTHOR: Cheng, 6/91
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date ... |
programs/quake/q1source/QW/client/surf8.asm | chaos4ever/chaos-old | 0 | 7084 | <reponame>chaos4ever/chaos-old
.386P
.model FLAT
externdef _d_zistepu:dword
externdef _d_pzbuffer:dword
externdef _d_zistepv:dword
externdef _d_zrowbytes:dword
externdef _d_ziorigin:dword
externdef _r_turb_s:dword
externdef _r_turb_t:dword
externdef _r_turb_pdest:dword
externdef _r_turb_spancount:d... |
src/timer.ads | sebsgit/textproc | 0 | 17899 | with Ada.Calendar;
package Timer is
type T is tagged private;
function start return T;
function reset(tm: in out T) return Float;
procedure reset(tm: in out T);
procedure report(tm: in out T);
procedure report(tm: in out T; message: in String);
private
type T is tagged record
clock: Ada.Ca... |
PRG/objects/1-4.asm | narfman0/smb3_pp1 | 0 | 99733 | .byte $01 ; Unknown purpose
.byte OBJ_AUTOSCROLL, $00, $00
.byte OBJ_BONUSCONTROLLER, $01, $2C
.byte OBJ_WOODENPLATFORM, $17, $14
.byte OBJ_WOODENPLATFORM, $23, $16
.byte OBJ_WOODENPLATFORM, $25, $13
.byte OBJ_WOODENPLATFORM, $27, $19
.byte OBJ_WOODENPLATFORM, $2F, $15
.byte OBJ_REDTROOPA, $43, $15
.byte OBJ... |
hardware.asm | BleuLlama/pac_1024 | 2 | 103639 | <reponame>BleuLlama/pac_1024<gh_stars>1-10
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Pac-Man hardware defines
;
; 2004-01 <NAME>
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.module hardware
; pac hardware defines
stack ... |
oeis/185/A185593.asm | neoneye/loda-programs | 11 | 9232 | ; A185593: a(n) = floor(n^(3/2))*floor(3+n^(3/2))/2.
; 2,5,20,44,77,119,189,275,405,527,702,902,1127,1430,1769,2144,2555,3002,3485,4094,4752,5459,6215,7020,8000,8910,10010,11174,12402,13694,15050,16652,18144,19899,21735,23652,25650,27729,29889,32130,34715,37400,39902,42777,45752,48827,52325,55610,59339,62834,66794,7049... |
src/si_units-float_io.ads | HeisenbugLtd/si_units | 6 | 28393 | <filename>src/si_units-float_io.ads
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
--... |
src/crafts.ads | thindil/steamsky | 80 | 1534 | -- Copyright 2016-2021 <NAME>
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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) a... |
gyak/gyak6/reversal-A2/reversalas.adb | balintsoos/LearnAda | 0 | 11647 | <filename>gyak/gyak6/reversal-A2/reversalas.adb
with Ada.Text_IO, Reversal, Cserel;
use Ada.Text_IO;
procedure Reversalas is
type Tomb is array (Character range <>) of Float;
procedure Csere is new Cserel(Float);
procedure Revelsald is new Reversal(Float,Character,Tomb,Csere);
T: Tomb := (3.... |
oeis/192/A192338.asm | neoneye/loda-programs | 11 | 15841 | ; A192338: Constant term of the reduction of n-th polynomial at A157751 by x^2->x+2.
; Submitted by <NAME>
; 1,2,6,18,54,166,514,1610,5078,16118,51394,164474,527798,1697254,5466498,17627370,56892246,183742358
mov $1,1
lpb $0
sub $0,1
mov $2,$1
add $1,$4
mul $3,2
sub $3,$4
mov $4,$2
mov $2,$3
mul $5,2
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.