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/tests.adb | docandrew/YOTROC | 4 | 5160 | package body tests is
testVal : Unsigned_64 := 0;
procedure runTests is
use ASCII;
parseResult : Boolean;
codeGenResult : Boolean;
errmsg : Unbounded_String;
insts : InstructionVector.Vector;
-- a bit hacky... short-hand for To_Unbounded_String
function... |
test/asset/agda-stdlib-1.0/Codata/M.agda | omega12345/agda-mode | 5 | 15568 | <gh_stars>1-10
------------------------------------------------------------------------
-- The Agda standard library
--
-- M-types (the dual of W-types)
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe --sized-types #-}
module Codata.M where
open import Size
ope... |
programs/oeis/060/A060266.asm | neoneye/loda | 22 | 29929 | ; A060266: Difference between 2n and the following prime.
; 1,1,1,3,1,1,3,1,1,3,1,5,3,1,1,5,3,1,3,1,1,3,1,5,3,1,5,3,1,1,5,3,1,3,1,1,5,3,1,3,1,5,3,1,7,5,3,1,3,1,1,3,1,1,3,1,13,11,9,7,5,3,1,3,1,5,3,1,1,9,7,5,3,1,1,5,3,1,5,3,1,3,1,5,3,1,5,3,1,1,9,7,5,3,1,1,3,1,1,11
add $0,1
mul $0,2
mov $2,$0
seq $0,151800 ; Least prime ... |
data/maps/headers/Route16Gate2F.asm | opiter09/ASM-Machina | 1 | 88583 |
map_header Route16Gate2F, ROUTE_16_GATE_2F, GATE, 0
end_map_header
|
ADL/Assemble/Insert/2/B~H~R_insert_middle.asm | MaxMorning/LinkedListVisualization | 3 | 84584 | <filename>ADL/Assemble/Insert/2/B~H~R_insert_middle.asm
aLine 0
gNew currentPtr
gMove currentPtr, Root
aLine 1
sInit i, 0
sBge i, {1:D}, 10
aLine 2
gBne currentPtr, null, 3
aLine 3
Exception NOT_FOUND
aLine 5
gMoveNext currentPtr, currentPtr
aLine 1
sInc i, 1
Jmp -9
aLine 7
gBne currentPtr, null, 3
aLine 8
Excep... |
src/draw_fun.asm | fabiankuffer/RISC-V-QR-Code-Generator | 0 | 97489 | #a1: x, a2:y, a3: color
draw_pixel:
#werte auf stack speichern
addi sp, sp, -20
sw s0, 0(sp) #für relative position & später finale position
sw s1, 4(sp) #zum zwischenspeichern der display_adresse
sw a1, 8(sp)
sw a2, 12(sp)
sw a3, 16(sp)
#richtige zeile ermitteln
li s0, DISPLAY_WIDTH
mul s0, a2, s0
#stelle... |
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_UpdateNow.asm | jpoikela/z88dk | 640 | 27870 |
; sp1_UpdateNow
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_UpdateNow
EXTERN asm_sp1_UpdateNow
defc _sp1_UpdateNow = asm_sp1_UpdateNow
|
sbsext/ext/read.asm | olifink/smsqe | 0 | 3679 | ; READ / EOF V2.00 1990 <NAME> QJUMP
;
; READ
; EOF (#n)
;
section exten
xdef read
xdef eof
xdef eofw
xref ut_chan0 ; get channel default #0
xref ut_rtfd1
xref ut_trap3
include 'dev8_keys_qdos_io'
include 'dev8_keys_err'
include 'dev8_keys_sbasic'
read
moveq #err.nimp,d0
read_rts
rts
dc.l '... |
unittests/32Bit_ASM/Primary/Primary_00_2.asm | cobalt2727/FEX | 628 | 103488 | <reponame>cobalt2727/FEX<gh_stars>100-1000
%ifdef CONFIG
{
"RegData": {
"RAX": "0xB5",
"RBX": "0x53D5",
"RCX": "0x616263F5"
},
"Mode": "32BIT"
}
%endif
mov esp, 0xe0000000
mov eax, 0x41424344
mov [esp + 4 * 0], eax
mov eax , 0x51525354
mov [esp + 4 * 1], eax
mov eax, 0x61626364
mov [esp + 4 * 2], ea... |
example_2.2/src/graphic_data.adb | rogermc2/GA_Ada | 3 | 30164 | <reponame>rogermc2/GA_Ada<gh_stars>1-10
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Text_IO; use Ada.Text_IO;
with GL.Attributes;
with GL.Culling;
with GL.Objects.Buffers;
with GL.Objects.Programs;
with GL.Objects.Vertex_Arrays;
with GL.Rasterization;
with GL.Toggles;
with GL.Types.Colors;
with GL.Uniforms;
wit... |
Projects/Shark/I386/I386.asm | gcakir/Shark | 2 | 92819 | <gh_stars>1-10
;
;
; Copyright (c) 2019 by blindtiger. All rights reserved.
;
; The contents of this file are subject to the Mozilla Public 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.mozilla.org/MP... |
8085_programming/gnu_8085_rev/blink_disp2_0T9_LXI.asm | SayanGhoshBDA/code-backup | 16 | 3322 | <filename>8085_programming/gnu_8085_rev/blink_disp2_0T9_LXI.asm
L3: MVI D,00
MOV A,D
OUT 20
L2: INR D
MOV A,D
CPI 09
JZ L3
L1: LXI B,0001
DCX B
MOV A,C
ADD B
JNZ L1
JMP L2
HLT
|
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-cgaaso.ads | JCGobbi/Nucleo-STM32G474RE | 0 | 6084 | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
oeis/028/A028204.asm | neoneye/loda-programs | 11 | 89590 | ; A028204: Expansion of 1/((1-6*x)*(1-7*x)*(1-9*x)*(1-10*x)).
; Submitted by <NAME>
; 1,32,645,10480,150101,1979712,24649045,294242960,3402478101,38387226592,424748805845,4627041422640,49770222820501,529800364460672,5591164247433045,58580499720429520,610040416273729301,6320049788003441952,65188098042875122645,669845518... |
openrndr-shadestyle-parser/src/main/antlr/ShadeStyle.g4 | chosamuel/openrndr | 601 | 4385 | // heavily based on https://github.com/labud/antlr4_convert/blob/master/src/GLSL/GLSL.g4
grammar ShadeStyle;
prog:
statement_list;
//宏定义
preprocessor
: SHARP version_pre
;
version_pre
: 'version' integer VERSOIN_PROFILE?
;
VERSOIN_PROFILE
: 'core'
| 'compatibility'
| 'es'
... |
programs/oeis/176/A176849.asm | neoneye/loda | 22 | 15802 | <reponame>neoneye/loda
; A176849: Triangle read by rows which contains the (6n)-th row of the Pascal triangle in row n.
; 1,1,6,15,20,15,6,1,1,12,66,220,495,792,924,792,495,220,66,12,1,1,18,153,816,3060,8568,18564,31824,43758,48620,43758,31824,18564,8568,3060,816,153,18,1,1,24,276,2024,10626,42504,134596,346104,735471,... |
Numeral/Rational/AlterAdd.agda | Lolirofle/stuff-in-agda | 6 | 5905 | -- Alternating addition (Also called the Calkin-Wilf tree representation of the rationals).
-- One bijective representation of ℚ. That is, every rational number is appearing exactly once in this representation (TODO: Some proof would be nice).
module Numeral.Rational.AlterAdd where
import Lvl
open import Data
ope... |
oeis/105/A105334.asm | neoneye/loda-programs | 11 | 21197 | <reponame>neoneye/loda-programs
; A105334: a(n) = n*(n+1)/2 mod 32.
; Submitted by <NAME>
; 0,1,3,6,10,15,21,28,4,13,23,2,14,27,9,24,8,25,11,30,18,7,29,20,12,5,31,26,22,19,17,16,16,17,19,22,26,31,5,12,20,29,7,18,30,11,25,8,24,9,27,14,2,23,13,4,28,21,15,10,6,3,1,0,0,1,3,6,10,15,21,28,4,13,23,2,14,27,9,24
add $0,1
bin $... |
sources/isal/igzip/igzip_multibinary.asm | intel/qpl | 11 | 173929 | <filename>sources/isal/igzip/igzip_multibinary.asm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (C) 2022 Intel Corporation
;
; SPDX-License-Identifier: MIT
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
default rel
[bits 64]
%include "reg_sizes.asm"
e... |
apps/si7060_mote/main.adb | ekoeppen/STM32_Generic_Ada_Drivers | 1 | 14526 | <reponame>ekoeppen/STM32_Generic_Ada_Drivers
with Interfaces; use Interfaces;
with STM32_SVD; use STM32_SVD;
with STM32GD.Board; use STM32GD.Board;
with STM32GD.Power;
with Drivers.Si7060;
with CBOR_Codec;
with Utils;
procedure Main is
Sensor_Reading_Tag : constant Natural := 6;
Voltage_Tag : constant Na... |
tools/scitools/conf/understand/ada/ada12/a-cforma.ads | brucegua/moocos | 1 | 30737 | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
src/windows/sp-platform.adb | jquorning/septum | 236 | 3635 | with Ada.Directories;
with Ada.Environment_Variables;
package body SP.Platform is
function Home_Dir return String is
package Env renames Ada.Environment_Variables;
User_Profile : constant String := "HOME";
begin
if Env.Exists (User_Profile) then
return Ada.Directories.Full_... |
C/BiosLib/getticks.asm | p-k-p/SysToolsLib | 232 | 9873 | page ,132
;*****************************************************************************;
; ;
; FILE NAME: getticks.asm ;
; ;
; DESCRIPTION: BIOS get tick count int 1AH function 00H ;
; ;
; NOTES: ;
; ;
; HISTORY: ... |
40-Printing-Etiqutte-2.size.asm | blueset/7bh-solutions | 0 | 247747 | <reponame>blueset/7bh-solutions<gh_stars>0
-- 7 Billion Humans --
-- 40: Printing Etiqutte 2 --
-- Size: 11/12 --
-- Speed: 71/65 --
mem1 = nearest printer
mem2 = set 0
a:
if mem2 < 5:
mem2 = calc mem2 + 1
takefrom mem1
b:
if c == something:
step nw,w,sw,n,s,ne,e,se
jump b
endif
write mem2
drop
jump a
endi... |
projects/batfish/src/main/antlr4/org/batfish/grammar/cisco_nxos/CiscoNxos_vrf.g4 | yrll/batfish-repair | 0 | 2637 | parser grammar CiscoNxos_vrf;
import CiscoNxos_common;
options {
tokenVocab = CiscoNxosLexer;
}
s_vrf_context
:
VRF CONTEXT name = vrf_name NEWLINE
(
vc_address_family
| vc_ip
| vc_no
| vc_null
| vc_rd
| vc_shutdown
| vc_vni
)*
;
vc_address_family
:
ADDRESS_FAMILY
(
(
... |
tests/inputs/test_multiple_FUs/test_multiple_FPM/multiple_FPM.asm | danielstumpp/tomasulo-simulator | 0 | 91211 | <reponame>danielstumpp/tomasulo-simulator
mult.d, F1, F1, F1
mult.d, F2, F2, F1
mult.d, F3, F3, F1
mult.d, F4, F4, F5 |
specs/ada/server/ike/tkmrpc-operation_handlers-ike-dh_create.adb | DrenfongWong/tkm-rpc | 0 | 1808 | with
Tkmrpc.Servers.Ike;
with Tkmrpc.Results;
with Tkmrpc.Request.Ike.Dh_Create.Convert;
with Tkmrpc.Response.Ike.Dh_Create.Convert;
package body Tkmrpc.Operation_Handlers.Ike.Dh_Create is
-------------------------------------------------------------------------
procedure Handle (Req : Request.Data_Type; Res... |
TransformationAlgebra/AlgebraParsers/TransformationAlgebra.g4 | simonscheider/QuAnGIS | 1 | 606 | <filename>TransformationAlgebra/AlgebraParsers/TransformationAlgebra.g4<gh_stars>1-10
grammar TransformationAlgebra;
/*
* This grammar can be used to parse strings of the Algebra of core concept transformation. Each string is an abstract representation of a GIS workflow.
*
* Example string:
* ratio fcont int... |
programs/oeis/130/A130759.asm | karttu/loda | 0 | 26628 | ; A130759: Partial sums of A130707.
; 1,3,5,7,11,21,43,87,173,343,683,1365,2731,5463,10925,21847,43691,87381,174763,349527,699053,1398103,2796203,5592405,11184811,22369623,44739245,89478487,178956971,357913941,715827883,1431655767,2863311533
mov $2,1
mov $3,2
lpb $0,1
sub $0,1
add $1,$3
mul $2,2
add $3,$2
su... |
oeis/268/A268866.asm | neoneye/loda-programs | 11 | 86288 | <reponame>neoneye/loda-programs
; A268866: Records in A268865.
; Submitted by <NAME>
; 2,3,22,38,342,598,5462,9558,87382,152918,1398102,2446678,22369622,39146838
mov $2,$0
mod $2,2
sub $0,$2
lpb $0
sub $0,1
mul $2,4
add $2,4
lpe
mov $0,$2
add $0,2
|
source/league/matreshka-internals-strings-handlers.adb | svn2github/matreshka | 24 | 2685 | <filename>source/league/matreshka-internals-strings-handlers.adb
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
002-assembly/common-gen-register-1.asm | dingjingmaster/learn-kernel | 0 | 80191 | <gh_stars>0
.data
sum: .quad 0
val: .quad 25
.macro pushaq
push %rax
push %rcx
push %rdx
push %rbx
push %rbp
push %rsi
push %rdi
.endm # pushaq
.macro popaq
pop %rdi
pop %rsi
pop %rbp
pop %rbx
pop %rdx
pop %rcx
pop %rax
.endm # popaq
.extern print_long
.text
.... |
tools-src/gnu/gcc/gcc/ada/prj-nmsc.ads | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 26108 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
libsrc/math/daimath32/c/asm/___dai32_xidiv.asm | ahjelm/z88dk | 640 | 21208 | SECTION code_fp_dai32
PUBLIC ___dai32_xidiv
EXTERN xidiv
defc ___dai32_xidiv = xidiv
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_45_735.asm | ljhsiun2/medusa | 9 | 242588 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r9
push %rax
push %rbp
push %rdi
push %rdx
lea addresses_WT_ht+0x1021d, %r11
nop
sub %rdx, %rdx
movb (%r11), %r9b
nop
and %rdi, %rdi
lea addresses_D_ht+0x60fd, %r11
nop
nop
nop
nop
nop
sub $47187, %rax
mov (%r11), %r15w
nop
nop
xor %r15, %r15
lea ad... |
Project/main.asm | mpetitjean/avrdude | 0 | 244474 | ;
; PROJECT
; EnigmAssembly
;
; Authors : <NAME> & <NAME>
.include "m328pdef.inc"
;--------
; ALIASES
;--------
; KEYBOARD NUMEROTATION
.equ KEYB_PIN = PIND
.equ KEYB_DDR = DDRD
.equ KEYB_PORT = PORTD
.equ ROW1 = 7
.equ ROW2 = 6
.equ ROW3 = 5
.equ ROW4 = 4
.equ COL1 = 3
.equ COL2 = 2
.equ COL3 = 1
.equ COL4 ... |
src/fot/LTC-PCF/Program/Division/Totality.agda | asr/fotc | 11 | 17429 | ------------------------------------------------------------------------------
-- Totality properties of the division
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-universe-polymorphi... |
programs/oeis/061/A061038.asm | karttu/loda | 1 | 83562 | <filename>programs/oeis/061/A061038.asm
; A061038: Denominator of 1/4 - 1/n^2.
; 1,36,16,100,9,196,64,324,25,484,144,676,49,900,256,1156,81,1444,400,1764,121,2116,576,2500,169,2916,784,3364,225,3844,1024,4356,289,4900,1296,5476,361,6084,1600,6724,441,7396,1936,8100,529,8836,2304,9604,625,10404,2704,11236,729,12100,3136... |
programs/oeis/061/A061085.asm | karttu/loda | 0 | 25058 | <filename>programs/oeis/061/A061085.asm
; A061085: a(n) = A019550(n) / 3.
; 4,8,12,16,170,204,238,272,306,340,374,408,442,476,510,544,578,612,646,680,714,748,782,816,850,884,918,952,986,1020,1054,1088,1122,1156,1190,1224,1258,1292,1326,1360,1394,1428,1462,1496,1530,1564,1598,1632,1666
mov $1,2
add $1,$0
add $1,$0
mov ... |
test11.asm | abhimanyudwivedi/mp-testing | 0 | 27697 | <gh_stars>0
.model small
.stack
.data
PA EQU 01190H
PB EQU 01191H
PC EQU 01192H
CR EQU 01193H
table db 80h,96h,0abh,0c0h,0d2h,0e2h,0eeh,0f8h,0feh,0ffh,
0feh,0f8h,0eeh,0e2h,0d2h,0c0h,0abh,96h,80h
count equ 19d
.code
mov ax,@data
mov ds,ax
mov dx,CR
mov al,80h
out dx,al
lp1: lea si,t... |
libsrc/_DEVELOPMENT/arch/sms/SMSlib/z80/__SMSlib_variables_0.asm | jpoikela/z88dk | 640 | 95787 | <gh_stars>100-1000
; **************************************************
; SMSlib - C programming library for the SMS/GG
; ( part of devkitSMS - github.com/sverx/devkitSMS )
; **************************************************
INCLUDE "SMSlib_private.inc"
SECTION data_clib
SECTION data_SMSlib
PUBLIC __SMSlib_VDPReg
P... |
programs/oeis/154/A154576.asm | neoneye/loda | 22 | 165782 | ; A154576: a(n) = 2*n^2 + 14*n + 5.
; 21,41,65,93,125,161,201,245,293,345,401,461,525,593,665,741,821,905,993,1085,1181,1281,1385,1493,1605,1721,1841,1965,2093,2225,2361,2501,2645,2793,2945,3101,3261,3425,3593,3765,3941,4121,4305,4493,4685,4881,5081,5285,5493,5705,5921,6141,6365,6593,6825,7061,7301,7545,7793,8045,8301,... |
part1/lists/split.agda | akiomik/plfa-solutions | 1 | 17237 | <filename>part1/lists/split.agda
module split where
import Relation.Binary.PropositionalEquality as Eq
open Eq using (_≡_; refl; sym; trans; cong)
open Eq.≡-Reasoning
open import Data.Nat using (ℕ; zero; suc; _+_; _*_; _∸_; _≤_; s≤s; z≤n; _≤?_)
open import Relation.Nullary using (¬_; Dec; yes; no)
open import Data.Pro... |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2623.asm | ljhsiun2/medusa | 9 | 12336 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xf929, %rsi
lea addresses_A_ht+0x1daa9, %rdi
nop
nop
nop
nop
nop
sub %rbp, %rbp
mov $104, %rcx
rep movsw
nop
and %r15, %r15
lea addresses_normal_ht+0xaab5, %rsi... |
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver0/sfc/ys_w56.asm | prismotizm/gigaleak | 0 | 82935 | Name: ys_w56.asm
Type: file
Size: 11155
Last-Modified: '2016-05-13T04:50:34Z'
SHA-1: 21B6B55474E2507917FE3B312A755829B5F92A4A
Description: null
|
libsrc/_DEVELOPMENT/math/float/math48/lm/z80/asm_dequate.asm | jpoikela/z88dk | 640 | 246765 |
SECTION code_clib
SECTION code_fp_math48
PUBLIC asm_dequate
EXTERN am48_dequate
defc asm_dequate = am48_dequate
|
src/module/ModuleCharacter.asm | Dunkansdk/AoW | 2 | 240338 | ;//////////////////////////////////////////////////////////////////////
;/// This file is subject to the terms and conditions defined in ///
;/// file 'LICENSE.txt', which is part of this source code package. ///
;//////////////////////////////////////////////////////////////////////
[SEGMENT .text]
;//////////////... |
externals/mpir-3.0.0/mpn/mips32/umul.asm | JaminChan/eos_win | 12 | 22847 | <reponame>JaminChan/eos_win
dnl MIPS32 umul_ppmm -- longlong.h support.
dnl Copyright 1999, 2002 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public Lice... |
courses/spark_for_ada_programmers/labs/answers/120_depends_contract_and_information_flow_analysis/array_swapping.adb | AdaCore/training_material | 15 | 14263 | <filename>courses/spark_for_ada_programmers/labs/answers/120_depends_contract_and_information_flow_analysis/array_swapping.adb
package body Array_Swapping
is
procedure Swap (A: in out ArrayType; I, J: in IndexType)
with Depends => (A => (A, I, J)),
Pre => I /= J,
Post => A = A'Old'Update (I =>... |
software/hal/boards/adaracer_v1/hil/hil-devices-timers.ads | TUM-EI-RCS/StratoX | 12 | 28301 | <filename>software/hal/boards/adaracer_v1/hil/hil-devices-timers.ads
-- Institution: Technische Universitaet Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: Software Configuration
--
-- Authors: <NAME> (<EMAIL>)
with STM32.Timers;
with STm32.Device;
-- @summary
-- Tar... |
lib/vg5k_crt0.asm | meesokim/z88dk | 0 | 7618 | <reponame>meesokim/z88dk<filename>lib/vg5k_crt0.asm
; CRT0 for the VG5000
;
; <NAME>. 2014
; <NAME>. 2014
;
; $Id: vg5k_crt0.asm,v 1.4 2015/01/21 07:05:01 stefano Exp $
;
MODULE vg5k_crt0
;--------
; Include zcc_opt.def to find out some info
;--------
INCLUDE "zcc_opt.def"
;... |
inst/scripts/save-as.applescript | gaborcsardi/keynote | 27 | 1204 | <filename>inst/scripts/save-as.applescript
on run argv
tell application "Keynote"
save document id (item 1 of argv) in posix file (item 2 of argv as text )
end tell
end run
|
ec413_Computer_Org/lab3_ASM/lab3.asm | pequode/class-projects | 0 | 161558 | <filename>ec413_Computer_Org/lab3_ASM/lab3.asm
############################################################################
# Lab 3
# EC413
#
# Assembly Language Lab -- Programming with Loops.
#
############################################################################... |
programs/oeis/032/A032613.asm | neoneye/loda | 22 | 168955 | <filename>programs/oeis/032/A032613.asm
; A032613: Concatenation of n and n + 8 or {n,n+8}.
; 19,210,311,412,513,614,715,816,917,1018,1119,1220,1321,1422,1523,1624,1725,1826,1927,2028,2129,2230,2331,2432,2533,2634,2735,2836,2937,3038,3139,3240,3341,3442,3543,3644,3745,3846,3947,4048,4149
pow $1,$0
gcd $1,2
mul $1,90
s... |
BTTfolder/tryexample.scpt | pection-zz/Allproject | 2 | 4338 | try
--@yuuiko: Get User Preference
tell application "BetterTouchTool"
try
set UsrPref_CS_Highlighting to get_string_variable "customVariable3"
end try
if UsrPref_CS_Highlighting is "ON" then
set_string_variable "customVariable3" to "OFF"
else
set_string_variable "customVariable3" to "ON"
end if
r... |
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xca.log_580_748.asm | ljhsiun2/medusa | 9 | 1677 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x7127, %r9
nop
and %rbp, %rbp
movb (%r9), %r14b
cmp $46628, %r15
lea addresses_WT_ht+0x13b49, %rsi
inc %r12
movw $0x6162, (%rsi)
nop
nop
nop
nop
nop
su... |
programs/oeis/017/A017393.asm | neoneye/loda | 22 | 89281 | ; A017393: a(n) = (11*n)^5.
; 0,161051,5153632,39135393,164916224,503284375,1252332576,2706784157,5277319168,9509900499,16105100000,25937424601,40074642432,59797108943,86617093024,122298103125,168874213376,228669389707,304316815968,398778220049,515363200000,657748550151,829997587232,1036579476493,1282388557824,15727636... |
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_iy/cm48_sdcciy_fmin.asm | meesokim/z88dk | 0 | 95362 |
; float fmin(float x, float y)
SECTION code_fp_math48
PUBLIC cm48_sdcciy_fmin
EXTERN cm48_sdcciyp_dread2, l0_cm48_sdcciy_fmin_callee
cm48_sdcciy_fmin:
call cm48_sdcciyp_dread2
; AC'= y
; AC = x
jp l0_cm48_sdcciy_fmin_callee
|
oeis/052/A052716.asm | neoneye/loda-programs | 11 | 97995 | <filename>oeis/052/A052716.asm<gh_stars>10-100
; A052716: E.g.f. (x+1-sqrt(1-6*x+x^2))/2.
; Submitted by <NAME>
; 0,2,4,36,528,10800,283680,9102240,345058560,15090727680,747888422400,41422381862400,2535569103513600,169983582318950400,12386182292118835200,974723523832041984000,82385641026424479744000
mov $2,$0
mov $4,2... |
programs/oeis/048/A048038.asm | karttu/loda | 1 | 14199 | <reponame>karttu/loda
; A048038: Number of nonempty subsets of {1,2,...,n} in which exactly 1/2 of the elements are <= (n+1)/3.
; 0,1,2,3,9,14,20,55,83,119,329,494,714,2001,3002,4367,12375,18563,27131,77519,116279,170543,490313,735470,1081574,3124549,4686824,6906899,20030009,30045014,44352164,129024479,193536719,286097... |
Abhijeet_Chopra_Assign_2.asm | abhijeetchopra/assembly | 0 | 512 | TITLE Assignment Two (Assign2.asm)
; Name: <NAME>
; CWID: 50180612
; Date: 4 Nov,16
; Due : 11:59pm, Tuesday, 15 Nov
; Program Description:
; define arrayW of 20 words (integers)
; using loop find MIN
; at end of loop store MIN in AX
INCLUDE Irvine32.inc
INCLUDE Macros.inc
.DATA
; ... |
libsrc/target/smc777/graphics/w_xorpixl_MODE4.asm | Frodevan/z88dk | 640 | 2184 | <filename>libsrc/target/smc777/graphics/w_xorpixl_MODE4.asm
;
; XorPlot pixel at (x,y) coordinate.
SECTION code_clib
PUBLIC w_xorpixel_MODE4
defc NEEDxor = 1
.w_xorpixel_MODE4
INCLUDE "pixel_MODE4.inc"
|
oeis/319/A319842.asm | neoneye/loda-programs | 11 | 246003 | ; A319842: a(n) = 8 * A104720(n) + ceiling(n/2).
; Submitted by <NAME>
; 8,89,897,8978,89786,897867,8978675,89786756,897867564,8978675645,89786756453,897867564534,8978675645342,89786756453423,897867564534231,8978675645342312,89786756453423120,897867564534231201,8978675645342312009,89786756453423120090,89786756453423120... |
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstmessage_h.ads | persan/A-gst | 1 | 20471 | <reponame>persan/A-gst
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h;
with glib;
with glib.Values;
with System;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstminiobject_h;
-- limited -- with GStrea... |
src/input.asm | AmFobes/MineAssemble | 479 | 11065 | ;
; This file contains all functions related to input handling
;
[bits 32]
%include "constants.asm"
global handle_input, handle_collision
extern handle_key, raytrace
extern colTolerance, zero
section .text
; void handle_input()
; Handle input of all key events
handle_input:
push dword KEY_UP
... |
Cscore.asm | ItaiCuker/Assembly8086CrossyRoad | 0 | 179930 | <reponame>ItaiCuker/Assembly8086CrossyRoad
;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
proc printNumber
; enter – ax = number to print. di = position of number to print.
; exit – printing the numbers digit by digit (biggest t... |
libsrc/_DEVELOPMENT/inttypes/z80/asm__imaxdiv_.asm | teknoplop/z88dk | 0 | 2616 | <reponame>teknoplop/z88dk
; void _imaxdiv_(imaxdiv_t *md, intmax_t numer, intmax_t denom)
SECTION code_clib
SECTION code_inttypes
PUBLIC asm__imaxdiv_
EXTERN asm__ldiv
defc asm__imaxdiv_ = asm__ldiv
|
fileHandeling/writeToFile.asm | A2nkF/assembler-foo | 3 | 86405 | global start
section .text
start:
openFile:
mov eax, 5 ; Open system call = 5
push dword 0 ; Mode = 0
push dword 2 ; Read/Write flag
push dword path ; Path
sub esp, 4 ; Reserved space for system call
int 0x80
add esp, 16
mov ebx, eax
writeToFile:
mov eax, 4
push dword msg.len
push dword msg
push... |
theorems/cw/Sphere.agda | cmknapp/HoTT-Agda | 0 | 1242 | <gh_stars>0
{-# OPTIONS --without-K --termination-depth=2 #-}
open import HoTT
open import cw.CW
module cw.Sphere where
CWSphere-skel : ∀ n → Skeleton {lzero} n
CWSphere : ℕ → Type₀
CWSphere n = ⟦ CWSphere-skel n ⟧
Sphere-to-CWSphere : (n : ℕ) → Sphere n → CWSphere n
CWSphere-skel O = Bool
CWSphere-skel (S n) =
... |
src/save.asm | awilkester/sm_practice_hack | 1 | 82294 | <reponame>awilkester/sm_practice_hack
; SD2SNES Savestate code
; by acmlm, total, Myria
;
org $80D000
; These can be modified to do game-specific things before and after saving and loading
; Both A and X/Y are 16-bit here
; SM specific features to restore the correct music when loading a state below
pre_load_state:
... |
libsrc/graphics/kaypro/plot_end_83.asm | Toysoft/z88dk | 0 | 28339 | ;
; Kaypro II pseudo graphics routines
;
; <NAME> 2018
;
;
; $Id: plot_end_83.asm $
;
SECTION code_clib
PUBLIC plot_end_83
PUBLIC plot_decode_83
EXTERN __gfx_coords
.plot_decode_83
ld (__gfx_coords),hl
ld c,a
srl a
;and a
ld b,a ;y/2
... |
sem_01/lab_02/part1/rudakov1997_62.1.asm | Justarone/bmstu-os | 5 | 178656 | <reponame>Justarone/bmstu-os<gh_stars>1-10
.386P ; (1) Разрешение команд МП 386 и 486
; Структура для описания дескрипторов сегментов
descr struc ; (2)
limit dw 0 ; (3) Граница (биты 0...15)
base_l dw 0 ; (4) База, биты 0...15
base_m db 0 ; (5) База, биты 16...23
attr_1 db 0 ; (6) Байт атрибутов 1
attr_2 db 0 ... |
lib/math/_fn.asm | locodarwin/xc-basic3 | 11 | 171192 | <reponame>locodarwin/xc-basic3<gh_stars>10-100
; XC-BASIC numeric functions
; DECLARE FUNCTION ABS AS BYTE (num AS BYTE) SHARED STATIC INLINE
MAC F_abs_byte
ENDM
; DECLARE FUNCTION ABS AS INT (num AS INT) SHARED STATIC INLINE
MAC F_abs_int
tsx
lda.wx stack+1
bpl .skip
eor #$ff
sta.wx stack+1
lda.wx stac... |
programs/oeis/238/A238535.asm | neoneye/loda | 22 | 19101 | <reponame>neoneye/loda
; A238535: Sum of divisors d of n where d > sqrt(n).
; 0,2,3,4,5,9,7,12,9,15,11,22,13,21,20,24,17,33,19,35,28,33,23,50,25,39,36,49,29,61,31,56,44,51,42,75,37,57,52,78,41,84,43,77,69,69,47,108,49,85,68,91,53,108,66,106,76,87,59,147,61,93,93,112,78,132,67,119,92,129,71,171,73,111,115,133,88,156,79,... |
externals/mpir-3.0.0/mpn/x86/pentium/hamdist.asm | JaminChan/eos_win | 1 | 8805 | dnl Intel P5 mpn_hamdist -- mpn hamming distance.
dnl Copyright 2001, 2002 Free Software Foundation, Inc.
dnl
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public License as
dnl publ... |
Outputs/mixers/filters/echo/echoa.asm | jgunthorpe/muse | 0 | 161458 | <reponame>jgunthorpe/muse
ideal ; TASM Ideal mode
p386 ; protected mode 386 code
model os2 flat, syscall ; os/2 flat model, system calling
nosmart
public syscall EchoMix1m
public syscall EchoMix2m
public syscall EchoMix3m... |
experiment08/4a_WSP_PUSH_POP_CALL_RET.asm | EmilyClaire/space_invader | 0 | 165491 | <reponame>EmilyClaire/space_invader
.EQU time_INSIDE_FOR_COUNT = 1;0x5E
.EQU time_MIDDLE_FOR_COUNT = 1;0xFF
.EQU time_OUTSIDE_FOR_COUNT = 1;0xFF
.EQU led_port = 0x40
.CSEG
.ORG 0x40
;This tests PUSH, POP, WSP, CALL, RET
;This assumes MOV, LD, ST, CMP, OUT, SUB, BRNE, BREQ, OR, ADD all work
;requires simulat... |
Kernel/asm/shutdown.asm | LucasCasa/Kerner | 0 | 176023 | GLOBAL _shutdown_asm
_shutdown_asm:
cli
push rbp
mov rbp, rsp
mov al,0xFE
out 64h,al
leave
ret |
wof/lcs/enemy/38.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 95796 | copyright zengfr site:http://github.com/zengfr/romhack
001136 lea (A6,D0.w), A6 [123p+ 36, 123p+ 38, enemy+36, enemy+38]
001590 lea ($20,A0), A0
003D18 move.l (A1)+, ($36,A0) [enemy+5E]
003D1C move.l (A1)+, ($b8,A0) [enemy+36, enemy+38]
003D7A move.l (A1)+, ($36,A0) [enemy+8E]
003D7E move.l (A1)+, ($... |
exercises/19_scas.asm | Catherine22/Assembly | 0 | 89891 | <reponame>Catherine22/Assembly
STDIN equ 0
STDOUT equ 1
SYS_EXIT equ 1
SYS_READ equ 3
SYS_WRITE equ 4
section .data
my_string db "password", 0
len equ $- my_string
msg_found db "found!", 0xA
len_found equ $- msg_found
msg_notfound db "not found!", 0xA
len_notfound equ $- msg_... |
libsrc/games/msx/bit_close.asm | grancier/z180 | 0 | 167354 | ; $Id: bit_close.asm,v 1.3 2016/06/16 20:23:51 dom Exp $
;
; MSX bit sound functions
;
; void bit_close();
;
; <NAME> - 3/12/2007
;
SECTION code_clib
PUBLIC bit_close
PUBLIC _bit_close
.bit_close
._bit_close
ei
ret
|
programs/oeis/081/A081074.asm | karttu/loda | 0 | 105128 | <reponame>karttu/loda
; A081074: Fibonacci(4n)-3, or Fibonacci(2n-2)*Lucas(2n+2).
; 0,18,141,984,6762,46365,317808,2178306,14930349,102334152,701408730,4807526973,32951280096,225851433714,1548008755917,10610209857720,72723460248138,498454011879261,3416454622906704,23416728348467682
mul $0,2
lpb $0,1
sub $0,1
add $... |
source/nodes/program-nodes-enumeration_literal_specifications.ads | reznikmm/gela | 0 | 4784 | <reponame>reznikmm/gela
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Defining_Names;
with Program.Elements.Enumeration_Literal_Specifications;
with Program.Element_Visitors;
package Program.Nod... |
data/pokemon/dex_entries/rapidash.asm | Dev727/ancientplatinum | 28 | 16801 | <filename>data/pokemon/dex_entries/rapidash.asm
db "<NAME>SE@" ; species name
dw 507, 2090 ; height, weight
db "It just loves to"
next "gallop. The faster"
next "it goes, the long-"
page "er the swaying"
next "flames of its mane"
next "will become.@"
|
keyboard.asm | rudla/multiloops | 0 | 173584 | <reponame>rudla/multiloops
;Keyboard support.
;
;Keyboard codes are generally returned as ascii values of coresponding keys.
;Letters are returned as upper case.
MODULE_KEYBOARD
KEY_NONE = 0 ;returned when no key is pressed
BACKSPACE = $7e
ESC = 27
SPACE = 32
ENTER = 10
TAB = 9
KEY_CAPS_LOCK =... |
RefactorAgdaEngine/ExplicitImplicitConversion.agda | omega12345/RefactorAgda | 5 | 15893 | <reponame>omega12345/RefactorAgda
module ExplicitImplicitConversion where
open import ExpressionChanging
open import Data.Nat
open import Data.List
open import ParseTree
open import ScopeState
open import Data.Vec using (Vec ; _∷_)
open import Data.Fin
open import Data.List.NonEmpty
open import AgdaHelperFunctions
open... |
usertests.asm | willtran98/MIT_xv6 | 0 | 179514 | <filename>usertests.asm<gh_stars>0
_usertests: file format elf32-i386
Disassembly of section .text:
00000000 <validateint>:
printf(stdout, "sbrk test OK\n");
}
void
validateint(int *p)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
"int %2\n\t"
"mov... |
theorems/homotopy/JoinComm.agda | cmknapp/HoTT-Agda | 0 | 700 | <filename>theorems/homotopy/JoinComm.agda
{-# OPTIONS --without-K #-}
open import HoTT
module homotopy.JoinComm where
module _ {i j} {A : Type i} {B : Type j} where
swap : A * B → B * A
swap = Swap.f module _ where
swap-glue : (a : A) (b : B) → right a == left b
swap-glue a b = ! (glue (b , a))
m... |
tests/covered/List.agda | andrejtokarcik/agda-semantics | 3 | 111 | <reponame>andrejtokarcik/agda-semantics
module List where
data List (a : Set) : Set where
nil : List a
_::_ : a -> List a -> List a
nil2 : (\x -> x) ({a : Set} -> List a)
nil2 = nil {_}
tt : Set1 -> Set2
tt _ = Set1
map : {a b : Set} -> (a -> b) -> List a -> List b
map f nil = nil
ma... |
oeis/266/A266445.asm | neoneye/loda-programs | 11 | 168025 | ; A266445: Binary representation of the middle column of the "Rule 25" elementary cellular automaton starting with a single ON (black) cell.
; Submitted by <NAME>
; 1,10,100,1000,10001,100010,1000101,10001010,100010101,1000101011,10001010110,100010101100,1000101011000,10001010110001,100010101100010,1000101011000101,100... |
src/stdio.asm | stephanro/hello_nasm | 0 | 246660 | ; hello_world.asm
%define _STDOUT 0x1
%define _WRITE 0x1
section .data
section .bss
section .text
global stdio
stdio:
align 16
.print_string:
; Function prologue.
push rbp
mov rbp, rsp
; Write string to standard output.
mov rax, _WRITE
mov rdi, _STDOUT
syscall
... |
programs/oeis/008/A008794.asm | neoneye/loda | 22 | 3690 | ; A008794: Squares repeated; a(n) = floor(n/2)^2.
; 0,0,1,1,4,4,9,9,16,16,25,25,36,36,49,49,64,64,81,81,100,100,121,121,144,144,169,169,196,196,225,225,256,256,289,289,324,324,361,361,400,400,441,441,484,484,529,529,576,576,625,625,676,676,729,729,784,784,841,841,900,900,961,961,1024,1024,1089,1089,1156,1156,1225,1225,... |
projects/04/Mult.asm | jmaver-plume/nand2tetris | 0 | 172091 | // Bootstrap
@R2
M=0
(LOOP)
// If 0 jump to end
@R1
D=M
@END
D;JEQ
// Get value from R0
@R0
D=M
// Add value from R0
@R2
M=D+M
// Decrement
@R1
M=M-1
// Continue
@LOOP
0;JMP
(END)
@END
0;JMP
|
source/adam-parameter.ads | charlie5/aIDE | 3 | 1166 | <filename>source/adam-parameter.ads
with
AdaM.Any,
AdaM.a_Type,
ada.Streams;
package AdaM.Parameter
is
type Item is new Any.Item with private;
-- View
--
type View is access all Item'Class;
procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
... |
libsrc/_DEVELOPMENT/math/float/math16/c/sdcc/cm16_sdcc___sint2h.asm | Frodevan/z88dk | 4 | 25778 | <filename>libsrc/_DEVELOPMENT/math/float/math16/c/sdcc/cm16_sdcc___sint2h.asm
SECTION code_fp_math16
PUBLIC cm16_sdcc___sint2h
EXTERN asm_f24_i16
EXTERN asm_f16_f24
.cm16_sdcc___sint2h
pop bc ;return
pop hl ;value
push hl
push bc
call asm_f24_i16
jp asm_f16_f24
|
samples/game.asm | Idorobots/asm | 2 | 20923 | ################################################################################
# A short game in ASM.
#
# > (new-game)
# You are in the living-room...
# walk China
####################
# Places to go.
(var *nodes* '{(living-room (You are in the living-room. A wizard is snoring loudly on the couch.))
... |
programs/oeis/141/A141351.asm | karttu/loda | 0 | 176219 | ; A141351: a(n)=C(n)+1-0^n where C(n)=A000108(n).
; 1,2,3,6,15,43,133,430,1431,4863,16797,58787,208013,742901,2674441,9694846,35357671,129644791,477638701,1767263191,6564120421,24466267021,91482563641,343059613651,1289904147325
mov $2,1
lpb $2,1
sub $2,1
add $3,1
lpb $3,1
sub $3,1
mov $4,$0
lpb $4,1
... |
src/asis/asis-extensions-iterator.ads | My-Colaborations/dynamo | 15 | 21942 | <filename>src/asis/asis-extensions-iterator.ads
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT COMPONENTS --
-- ... |
Transynther/x86/_processed/AVXALIGN/_st_4k_/i9-9900K_12_0xca.log_16241_968.asm | ljhsiun2/medusa | 9 | 99042 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x75b3, %r9
nop
nop
nop
nop
nop
add %r13, %r13
movw $0x6162, (%r9)
inc %r8
lea addresses_WC_ht+0x1ec5f, %r8
nop
nop
nop
nop
cmp %rsi, %rsi
movb $0x61, (%r8)
nop
nop
dec... |
src/main/antlr/com/defano/hypertalk/parser/HyperTalk.g4 | Msimoneau/wyldcard | 0 | 593 | /*
* MIT License
*
* Copyright (c) 2017 <NAME>
*
* 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, m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.