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 |
|---|---|---|---|---|
eclipse_integration/examples/testData_GM2A/GMtoAutosarDECLARATIVE_postProc.asm | levilucio/SyVOLT | 3 | 165629 | <gh_stars>1-10
<?xml version = '1.0' encoding = 'ISO-8859-1' ?>
<asm version="1.0" name="0">
<cp>
<constant value="INDtoAutosarDECLARATIVE_postProc"/>
<constant value="links"/>
<constant value="NTransientLinkSet;"/>
<constant value="col"/>
<constant value="J"/>
<constant value="main"/>
<constant value="A... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1527.asm | ljhsiun2/medusa | 9 | 86190 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x2a0f, %rbx
nop
nop
nop
dec %r10
mov $0x6162636465666768, %rax
movq %rax, %xmm5
movups %xmm5, (%rbx)
nop
nop
inc %r13
lea addresses_D_ht+0x1b877, %rsi
lea addre... |
68xx/test685.asm | erichmatt/eac | 0 | 102464 | org 0
direct rmb 1
bits rmb 1
index rmb 32
org $100
ext_index rmb 32
extended rmb 1
immediate equ $cd
org $200
brset 0, bits, * ; $00 thru $0f
brclr 0, bits, *
brset 1, bits, *
brclr 1, bits, *
brset 2, bits, *
brclr 2, bits, *
brset 3, bits, *
brclr 3, bits, *
br... |
src/Action.agda | boystrange/FairSubtypingAgda | 4 | 8708 | <filename>src/Action.agda
-- MIT License
-- Copyright (c) 2021 <NAME> and <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 ... |
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_1845.asm | ljhsiun2/medusa | 9 | 104247 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x4adf, %rbp
nop
nop
nop
nop
inc %rdi
mov $0x6162636465666768, %r10
movq %r10, (%rbp)
nop
nop
nop
nop
inc %r8
lea addresses_WC_ht+0x97ff, %r1... |
courses/fundamentals_of_ada/labs/solar_system/070_subprograms/answers/main.adb | AdaCore/training_material | 15 | 12250 | -----------------------------------------------------------------------
-- Ada Labs --
-- --
-- Copyright (C) 2008-2009, AdaCore --
-- ... |
Appl/Preferences/Setup/setupPrinter.asm | steakknife/pcgeos | 504 | 20051 | COMMENT @--------------------------------------------------------------------
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: GEOS
MODULE: Graphical Setup -- Printer selection
FILE: setupPrinter.asm
AUTHOR: Cheng, 1/90
ROUTINES:
Name Description
---- -----------
REVISION HISTOR... |
src/GBA.Interrupts.adb | 98devin/ada-gba-dev | 7 | 17765 | <filename>src/GBA.Interrupts.adb
-- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
with GBA.Memory.IO_Registers;
use GBA.Memory.IO_Registers;
with Ada.Unchecked_Conversion;
with Interfaces;
use Interfaces;
package body GBA.Interrupts is
-- IO Register Definitions --
Enabled_Master :... |
programs/oeis/198/A198699.asm | neoneye/loda | 22 | 81299 | ; A198699: 7*10^n-1
; 6,69,699,6999,69999,699999,6999999,69999999,699999999,6999999999,69999999999,699999999999,6999999999999,69999999999999,699999999999999,6999999999999999,69999999999999999,699999999999999999,6999999999999999999,69999999999999999999,699999999999999999999,6999999999999999999999,69999999999999999999999... |
assembly/asmsbs3e/chapter12/charsin/charsin.asm | ash1247/DocumentsWindows | 5 | 96758 | <reponame>ash1247/DocumentsWindows<filename>assembly/asmsbs3e/chapter12/charsin/charsin.asm<gh_stars>1-10
; Source name : CHARSIN.ASM
; Executable name : CHARSIN
; Version : 2.0
; Created date : 11/21/1999
; Last update : 5/28/2009
; Author : <NAME>
; Description : A character inp... |
Task/Range-expansion/Ada/range-expansion.ada | LaudateCorpus1/RosettaCodeData | 1 | 26045 | <gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Range_Expansion is
type Sequence is array (Positive range <>) of Integer;
function Expand (Text : String) return Sequence is
To : Integer := Text'First;
Count : Natural := 0;
Low : Integer;
function Get return Integer is... |
part1/demo2.asm | banach-space/debuggers_eli | 1 | 166052 | section .data
msg1 db "hello,", 10
len1 equ $ - msg1
msg2 db "world from assembly!", 10
len2 equ $ - msg2
section .text
global _start
_start:
; Message 1
mov rdx, len1
mov rcx, msg1
mov rbx, 1
mov rax, 4
int 0x80
; Message 2
mov rdx... |
aom_20170505/aom_dsp/x86/fwd_txfm_ssse3_x86_64.asm | rainliu/aom_analyzer | 0 | 9879 | <filename>aom_20170505/aom_dsp/x86/fwd_txfm_ssse3_x86_64.asm
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with thi... |
alloy4fun_models/trashltl/models/11/uAt3KAPwP32HjgKTo.als | Kaixi26/org.alloytools.alloy | 0 | 1068 | open main
pred iduAt3KAPwP32HjgKTo_prop12 {
eventually all f:File | f in Trash
}
pred __repair { iduAt3KAPwP32HjgKTo_prop12 }
check __repair { iduAt3KAPwP32HjgKTo_prop12 <=> prop12o } |
Driver/Printer/PrintCom/Cursor/cursorPrLineFeedCanonBJC.asm | steakknife/pcgeos | 504 | 163190 | <gh_stars>100-1000
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GlobalPC 1999 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Print Drivers
FILE: cursorPrLineFeedCanonBJ.asm
AUTHOR: <NAME>, 10 Jan 1999
ROUTINES:
Name Description
---- -----------
... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_928.asm | ljhsiun2/medusa | 9 | 91573 | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1fab, %rsi
nop
sub %r13, %r13
movw $0x6162, (%rsi)
nop
xor %rdx, %rdx
lea addresses_WT_ht+0xcdcb, %rsi
lea addresses_D_ht+0x55cb, %rdi
nop
nop
add %rax, %rax
mov $69, %rcx
rep movsb
n... |
test_programs/ramstacksub.asm | mfkiwl/QNICE-FPGA-hyperRAM | 53 | 80525 | ; tests RAM, stack and the sub routine calls ASUB and RSUB
; expects RAM to start at $8000, so works for example in environment "env1"
; done by sy2002 on August, 2nd 2015
.ORG 0x0000 ; Start address
MOVE 0x8020, R13 ; setup stack pointer
MOVE 0x8000, R8 ; s... |
sources/md/markdown-list_items.ads | reznikmm/markdown | 0 | 11680 | -- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with Ada.Tags;
with League.Strings;
with Markdown.Blocks;
limited with Markdown.Visitors;
package Markdown.List_Items is
type List_Item is new Markdown.Blocks.Co... |
programs/oeis/183/A183137.asm | neoneye/loda | 22 | 89230 | <reponame>neoneye/loda<gh_stars>10-100
; A183137: [1/s]+[2/s]+...+[n/s], where s=(golden ratio)^2 and []=floor.
; 0,0,1,2,3,5,7,10,13,16,20,24,28,33,38,44,50,56,63,70,78,86,94,103,112,121,131,141,152,163,174,186,198,210,223,236,250,264,278,293,308,324,340,356,373,390,407,425,443,462,481,500,520,540,561,582,603,625
mov... |
evernote/test.applescript | kinshuk4/evernote-automation | 4 | 3751 | tell application "System Events"
display notification "tabUrl" with title "Sent Chrome tab url to Evernote" subtitle "《" & "tabTitle" & "》"
end tell |
PRG/levels/Giant/4-5.asm | narfman0/smb3_pp1 | 0 | 11977 | ; Original address was $B72C
; 4-5
.word W405_BonusL ; Alternate level layout
.word W405_BonusO ; Alternate object layout
.byte LEVEL1_SIZE_08 | LEVEL1_YSTART_170
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG
.byte LEVEL3_TILESET_01 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTEXIT
.... |
libsrc/_DEVELOPMENT/target/scz180/device/csio/sccz80/csio_sd_cs_raise.asm | Frodevan/z88dk | 640 | 23648 | <reponame>Frodevan/z88dk
SECTION code_driver
PUBLIC sd_cs_raise
EXTERN asm_sd_cs_raise
;Raise the SC180 SD card CS using the GPIO address
;
;uses AF
defc sd_cs_raise = asm_sd_cs_raise
|
main.asm | Trap-Master/spacworld97-thingy | 0 | 177544 | INCLUDE "constants.asm"
SECTION "bank1", ROMX
INCLUDE "engine/link/place_waiting_text.asm"
INCLUDE "engine/gfx/load_push_oam.asm"
INCLUDE "engine/overworld/map_objects.asm"
INCLUDE "engine/menus/intro_menu.asm"
INCLUDE "engine/overworld/init_map.asm"
INCLUDE "engine/pokemon/learn.asm"
INCLUDE "engine/pokemon/correct... |
unused/develop/obj/scene_9.asm | pau-tomas/gbvm | 33 | 28958 | <filename>unused/develop/obj/scene_9.asm
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.1.4 #12246 (Mac OS X x86_64)
;--------------------------------------------------------
.module scene_9
.optsdcc -mgbz80
;--------------------------... |
libsrc/_DEVELOPMENT/math/float/math16/c/sdcc/cm16_sdcc_read.asm | Frodevan/z88dk | 640 | 19114 | <filename>libsrc/_DEVELOPMENT/math/float/math16/c/sdcc/cm16_sdcc_read.asm<gh_stars>100-1000
SECTION code_fp_math16
PUBLIC cm16_sdcc_readr
PUBLIC cm16_sdcc_read1
PUBLIC cm32_sdcc_read1
.cm16_sdcc_readr
; sdcc half_t primitive
; Read right sdcc half_t from the stack
;
; Convert from sdcc_half calling ... |
Task/Compile-time-calculation/Ada/compile-time-calculation-2.ada | LaudateCorpus1/RosettaCodeData | 1 | 12719 | <gh_stars>1-10
with Ada.Text_Io;
procedure CompileTimeCalculation is
function Factorial (Int : in Integer) return Integer is
begin
if Int > 1 then
return Int * Factorial(Int-1);
else
return 1;
end if;
end;
Fact10 : Integer := Factorial(10);
begin
Ada.Text_Io.Put(In... |
programs/oeis/274/A274233.asm | karttu/loda | 0 | 173661 | ; A274233: Number of partitions of n*(n-1)/2 into at most three parts.
; 1,1,3,7,14,27,48,80,127,192,280,397,547,736,972,1261,1610,2028,2523,3104,3781,4563,5461,6487,7651,8965,10443,12097,13940,15987,18252,20750,23497,26508,29800,33391,37297,41536,46128,51091,56444,62208,68403,75050,82171,89787,97921,106597,115837,1256... |
gyak/gyak6/reversal-A2/reversal.ads | balintsoos/LearnAda | 0 | 27289 | <filename>gyak/gyak6/reversal-A2/reversal.ads
generic
type Elem is limited private;
type Index is (<>);
type Tomb is array (Index range <>) of Elem;
with procedure Swap (A, B: in out Elem);
procedure Reversal (T: in out Tomb);
|
source/rom14/r14_shell.asm | evanbowman/Red | 5 | 92687 | ;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
;;;
;;; ASM Source code for Red GBC, by <NAME>, 2021
;;;
;;;
;;; The following licence covers the source code included in this file. The
;;; game's characters and artwork belong to <NAME>, and should not be used
;;; without permission.
;;;... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_283.asm | ljhsiun2/medusa | 9 | 245250 | <filename>Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_283.asm<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xb23e, %r12
sub %rdi, %rdi
mov (%r12), %rdx
nop
inc %rax
lea addresses_... |
Task/Hello-world-Text/Ada/hello-world-text.ada | LaudateCorpus1/RosettaCodeData | 1 | 13818 | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
begin
Put_Line ("Hello world!");
end Main;
|
test/Fail/Issue4929.agda | shlevy/agda | 0 | 16845 | <reponame>shlevy/agda
-- {-# OPTIONS --no-forcing #-}
{-# OPTIONS --rewriting #-}
{-# OPTIONS --sized-types #-}
open import Agda.Builtin.Equality
open import Agda.Builtin.Size
{-# BUILTIN REWRITE _≡_ #-}
variable i j : Size
postulate ANY : ∀{A : Set} → A
data Ty : Set where
bool : Ty
variable a b c d : Ty
infi... |
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_780.asm | ljhsiun2/medusa | 9 | 101050 | <reponame>ljhsiun2/medusa
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x17efa, %r11
nop
nop
xor $4183, %r9
mov $0x6162636465666768, %r13
movq %r13, %xmm6
and $0xffffffffffffffc0, %r11
movaps %xmm6, (%r11)
nop
nop
nop
nop
lfence
lea... |
programs/oeis/063/A063161.asm | karttu/loda | 0 | 22104 | <reponame>karttu/loda
; A063161: Dimension of the space of weight 2n cusp forms for Gamma_0( 93 ).
; 9,30,52,72,94,116,136,158,180,200,222,244,264,286,308,328,350,372,392,414,436,456,478,500,520,542,564,584,606,628,648,670,692,712,734,756,776,798,820,840,862,884,904,926,948,968,990,1012,1032
mov $2,$0
mul $0,2
lpb $0,... |
source/nodes/program-nodes-component_clauses.ads | reznikmm/gela | 0 | 28024 | <reponame>reznikmm/gela
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Identifiers;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Simple_Expression_Ranges... |
src/fmt.ads | likai3g/afmt | 0 | 22069 | <gh_stars>0
pragma Ada_2020;
with Interfaces;
---- Ada String Format Library
---- @usages:
-- -- specified argumnent index
-- with Fmt, Fmt.Stdtypes;
-- use Fmt, Fmt.Stdtypes;
-- ...
-- Ada.Text_IO.Put_Line(Format("{1:%H-%M-%S} {2}", FAB & Ada.Calendar.Clock & Message));
-- Ada.Text_IO.Put_Line(Format... |
uprogs/grep.asm | zhiyihuang/xv6_rpi_port | 36 | 92322 |
_grep: file format elf32-littlearm
Disassembly of section .text:
00000000 <main>:
main(int argc, char *argv[])
{
int fd, i;
char *pattern;
if(argc <= 1){
0: e3500001 cmp r0, #1
}
}
int
main(int argc, char *argv[])
{
4: e92d4df0 push {r4, r5, r6, r7, r8, sl, fp, lr}
8: e1a08000 mov r8, r0... |
programs/oeis/300/A300950.asm | neoneye/loda | 22 | 90545 | <filename>programs/oeis/300/A300950.asm
; A300950: Fixed points of A300948.
; 3,4,7,8,11,12,15,48,51,52,55,56,59,60,63,64,67,68,71,72,75,76,79,112,115,116,119,120,123,124,127,128,131,132,135,136,139,140,143,176,179,180,183,184,187,188,191,192,195,196,199,200,203,204,207,240,243
mov $5,$0
add $5,1
mov $9,$0
lpb $5
mo... |
Task/String-length/AppleScript/string-length-3.applescript | mullikine/RosettaCodeData | 1 | 3791 | <filename>Task/String-length/AppleScript/string-length-3.applescript
count of "Hello World"
|
tools-src/gnu/gcc/gcc/config/fr30/lib1funcs.asm | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 26782 | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
/* libgcc routines for the FR30.
Copyright (C) 1998, 1999 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC 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 Softwar... |
oeis/142/A142376.asm | neoneye/loda-programs | 11 | 27898 | <filename>oeis/142/A142376.asm
; A142376: Primes congruent to 25 mod 47.
; Submitted by <NAME>
; 307,401,683,1153,1811,1999,2281,2657,2939,3221,3691,4349,5101,5477,6229,6323,6793,7451,7639,8297,8861,9049,9613,10177,10271,10459,11117,11399,11587,11681,12433,12527,12809,14407,14783,15629,15817,16193,16381,17321,17509,177... |
Projetos/src/F-Assembly/src/nasm/mult.nasm | arnaldojr/Z01.1 | 1 | 81479 | <filename>Projetos/src/F-Assembly/src/nasm/mult.nasm<gh_stars>1-10
; Arquivo: Abs.nasm
; Curso: Elementos de Sistemas
; Criado por: <NAME>
; Data: 27/03/2017
; Multiplica o valor de RAM[1] com RAM[0] salvando em RAM[3]
|
source/oasis/program-elements-representation_clauses.ads | optikos/oasis | 0 | 4553 | <reponame>optikos/oasis
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Clauses;
package Program.Elements.Representation_Clauses is
pragma Pure (Program.Elements.Representa... |
uuu/src/apps/games/boxed_in/control.asm | ekscrypto/Unununium | 7 | 7550 | KeyboardProc:
pushad
xor ecx,ecx
xor edx,edx
mov cl,[PlayerX]
mov dl,[PlayerY]
lea esi,[edx * 9]
lea esi,[esi + esi + ecx]
add esi,[pleveldata]
xor ebx,ebx
xor ecx,ecx
cmp al,8
je Backspace
cmp al,'r'
je RestartLevel
cmp al,'q'
je near Quit
cmp al,'9'
je NextLevel
cmp al,'3'
je PrevLevel
cmp al,'8... |
Experiment/FingerTree/Common.agda | rei1024/agda-misc | 3 | 5792 | {-# OPTIONS --without-K --safe #-}
module Experiment.FingerTree.Common where
open import Level renaming (zero to lzero ; suc to lsuc)
open import Algebra
open import Data.Product
open import Function.Core
open import Function.Endomorphism.Propositional
open import Data.Nat hiding (_⊔_)
import Data.Nat.Properties as ℕₚ... |
HyperPlatform/Arch/x64/x64.asm | Ivan-Nebogatikov/HyperPlatform | 2 | 245931 | <gh_stars>1-10
; Copyright (c) 2015-2018, <NAME>. All rights reserved.
; Use of this source code is governed by a MIT-style license that can be
; found in the LICENSE file.
;
; This module implements all assembler code
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; References t... |
solutions/66 - Decimal Counter/size-23_speed-113.asm | michaelgundlach/7billionhumans | 45 | 2739 | -- 7 Billion Humans (2212:2214M) --
-- 66: Decimal Counter --
-- Author: DeepAQ
-- Size: 23
-- Speed: 113
step s
step s
if c == button:
a:
step n
listenfor ok
step s
jump a
endif
pickup n
mem1 = set myitem
b:
tell everyone ok
drop
mem1 = calc mem1 + 1
if se != button:
listenfor go
endif
if mem1 > 9:
tell w go
... |
programs/oeis/134/A134758.asm | karttu/loda | 1 | 99864 | ; A134758: a(n) = A000984(n) + n.
; 1,3,8,23,74,257,930,3439,12878,48629,184766,705443,2704168,10400613,40116614,155117535,601080406,2333606237,9075135318,35345263819,137846528840,538257874461,2104098963742,8233430727623,32247603683124,126410606437777,495918532948130,1946939425648139,7648690600760468
mov $1,$0
add $1,... |
src/are-installer-copies.ads | stcarrez/resource-embedder | 7 | 8580 | <gh_stars>1-10
-----------------------------------------------------------------------
-- are-installer-copies -- Copy based distribution artifact
-- Copyright (C) 2012, 2013, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this fi... |
llvm-gcc-4.2-2.9/gcc/ada/inline.adb | vidkidz/crossbridge | 1 | 25003 | <reponame>vidkidz/crossbridge<filename>llvm-gcc-4.2-2.9/gcc/ada/inline.adb<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS ... |
src/offmt_lib-fmt_data-unsigned_generic.ads | Fabien-Chouteau/offmt-tool | 0 | 30390 | <reponame>Fabien-Chouteau/offmt-tool
generic
type T is mod <>;
package Offmt_Lib.Fmt_Data.Unsigned_Generic is
subtype Parent is Fmt_Data.Instance;
type Instance
is new Parent with private;
overriding
procedure From_Frame (This : in out Instance;
Frame : in out Data_Frame);... |
src/bcd.asm | QuinnPainter/CrossConnect | 0 | 94906 | SECTION "BCD Functions", ROM0
_bcd_inc:: ; input is in A
add a, 1
daa
ret ; output is in A
; uses the "double-dabble" algorithm
; https://my.eng.utah.edu/~nmcdonal/Tutorials/BCDTutorial/BCDConversion.html
_bcd_conv:: ; input is in A
ld h, a
xor a
ld e, 8
.lp:
ld l, a
and $0F
cp 5
... |
Ada/src/Problem_59.adb | Tim-Tom/project-euler | 0 | 30034 | with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Containers.Vectors;
package body Problem_59 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
package Character_Vector is new Ada.Containers.Vectors(Index_Type => Positive,
... |
src/libtcod.ads | csb6/libtcod-ada | 0 | 24287 | with Interfaces.C;
package Libtcod is
type Width is new Interfaces.C.int range 0 .. Interfaces.C.int'Last;
type Height is new Interfaces.C.int range 0 .. Interfaces.C.int'Last;
end Libtcod;
|
test/fail/WithoutK7.agda | np/agda-git-experiment | 1 | 4849 | {-# OPTIONS --without-K #-}
module WithoutK7 where
data I : Set where
i : I
data D (x : I) : Set where
d : D x
data P (x : I) : D x → Set where
Foo : ∀ x → P x (d {x = x}) → Set
Foo x ()
|
data/test_flags.asm | colinw7/C6502 | 0 | 240802 | <filename>data/test_flags.asm
SEC
OUT A
CLC
OUT A
SEI
OUT A
CLI
OUT A
LDA #$FF
ADC #$01
OUT A
CLV
OUT A
SED
OUT A
CLD
OUT A
|
zadanie2/dijkstra_semaphore.asm | BAndysc/SO | 0 | 21147 | global proberen
global verhogen
section .text
proberen:
testandcmp:
cmp dword [rdi], 0
jle testandcmp
mov eax, -1
lock xadd dword [rdi], eax ; decrease semaphore
test eax, eax
jg proberen_ok
lock inc dword [rdi] ; semaphore was below 1, restore state
jmp proberen ... |
source/strings/a-chacon.ads | ytomino/drake | 33 | 10662 | <reponame>ytomino/drake
pragma License (Unrestricted);
private with System.UTF_Conversions.From_8_To_16;
private with System.UTF_Conversions.From_8_To_32;
private with System.UTF_Conversions.From_16_To_32;
private with System.UTF_Conversions.From_16_To_8;
private with System.UTF_Conversions.From_32_To_8;
private with S... |
even-odd-counting-from-data.asm | Soumya-Dey/8085-asm-programs | 0 | 96048 | ;Program title -----
;Count even, odd numbers from an array of 10 data.
;Input ----- | Output -----
;f100 => OA | f120 => 06
;f101 => 05 | f121 => 04
;f102 => 82
;f103 => AA
;f104 => 9B
;f105 => 72
;f106 => 56
;f107 => 69
;f108 => BC
;f109 => 44
;f10A => 3F
;Source code -----
mvi d, 0... |
raid/Setup/list/Chain.asm | OS2World/DRV-VRAID | 0 | 91927 | title Chain.cpp
.386
.387
includelib CPPOM30.LIB
includelib OS2386.LIB
CODE32 segment dword use32 public 'CODE'
CODE32 ends
DATA32 segment dword use32 public 'DATA'
DATA32 ends
CONST32_RO segment dword use32 public 'CONST'
CONST32_RO ends
BSS32 segment dword use32 public 'BSS'
BSS32 ends
EH_CODE segment dword use3... |
programs/oeis/033/A033638.asm | karttu/loda | 1 | 19805 | ; A033638: Quarter-squares plus 1 (that is, a(n) = A002620(n) + 1).
; 1,1,2,3,5,7,10,13,17,21,26,31,37,43,50,57,65,73,82,91,101,111,122,133,145,157,170,183,197,211,226,241,257,273,290,307,325,343,362,381,401,421,442,463,485,507,530,553,577,601,626,651,677,703,730,757,785,813,842,871,901,931,962,993,1025,1057,1090,1123,... |
pwnlib/shellcraft/templates/arm/linux/bindshell.asm | alexpark07/pwntools | 1 | 20602 | <filename>pwnlib/shellcraft/templates/arm/linux/bindshell.asm<gh_stars>1-10
<% from pwnlib.shellcraft import arm, common %>
<%page args="port=31337, sock='r0', once=True"/>
<%docstring>
binds on specific port with dupsh().
Args:
port (int/str) : specific port (default: 31337)
sock (int/str/imm/reg): speci... |
bb-runtimes/x86_64/src/i-x86_64-exception_handler.adb | JCGobbi/Nucleo-STM32G474RE | 0 | 658 | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
Type/Properties/Decidable/Proofs.agda | Lolirofle/stuff-in-agda | 6 | 5069 | module Type.Properties.Decidable.Proofs where
open import Data
open import Data.Proofs
open import Data.Boolean using (if_then_else_)
open import Data.Boolean.Stmt
open import Data.Either as Either using (_‖_)
open import Data.Tuple as Tuple using (_⨯_ ; _,_)
open import Functional
import Lvl
open import Data.Boo... |
specs/ada/common/tkmrpc-response-ike-ae_reset.ads | DrenfongWong/tkm-rpc | 0 | 20351 | with Tkmrpc.Types;
with Tkmrpc.Operations.Ike;
package Tkmrpc.Response.Ike.Ae_Reset is
Data_Size : constant := 0;
Padding_Size : constant := Response.Body_Size - Data_Size;
subtype Padding_Range is Natural range 1 .. Padding_Size;
subtype Padding_Type is Types.Byte_Sequence (Padding_Range);
type Resp... |
BootROMs/cgb_boot_fast.asm | stipton7960/SameBoy | 1,044 | 3202 | <reponame>stipton7960/SameBoy<gh_stars>1000+
FAST EQU 1
include "cgb_boot.asm" |
programs/oeis/186/A186344.asm | neoneye/loda | 22 | 10712 | <filename>programs/oeis/186/A186344.asm
; A186344: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) after g(j) when f(i)=g(j), where f and g are the pentagonal numbers and the octagonal numbers. Complement of A186345.
; 2,3,5,7,8,10,12,13,15,17,19,20,22,24,25,27,29,30,32,34,36,37,39,41,42,44,46,48,49,51,53,... |
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_disk_stream_end.asm | Toysoft/z88dk | 0 | 91661 | ; unsigned char esx_disk_stream_end(void)
SECTION code_esxdos
PUBLIC esx_disk_stream_end
EXTERN asm_esx_disk_stream_end
defc esx_disk_stream_end = asm_esx_disk_stream_end
|
libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddr2py.asm | meesokim/z88dk | 0 | 18316 | <reponame>meesokim/z88dk
; uint zx_saddr2py(void *saddr)
SECTION code_arch
PUBLIC zx_saddr2py
zx_saddr2py:
INCLUDE "arch/zx/display/z80/asm_zx_saddr2py.asm"
|
oeis/083/A083332.asm | neoneye/loda-programs | 11 | 94384 | ; A083332: a(n) = 10*a(n-2) - 16*a(n-4) for n > 3, a(0) = 1, a(1) = 5, a(2) = 14, a(3) = 34.
; Submitted by <NAME>
; 1,5,14,34,124,260,1016,2056,8176,16400,65504,131104,524224,1048640,4194176,8388736,33554176,67109120,268434944,536871424,2147482624,4294968320,17179867136,34359740416,137438949376,274877911040
mov $1,4
... |
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/alignment1.adb | best08618/asylo | 7 | 28768 | -- { dg-do run }
-- { dg-options "-gnatws" }
procedure alignment1 is
type My_Integer is record
Element : Integer;
end record;
F : My_Integer;
begin
if F'Alignment /= F.Element'Alignment then
raise Program_Error;
end if;
end;
|
source/asis/asis-gela-base_lists.adb | faelys/gela-asis | 4 | 12090 | ------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
programs/oeis/017/A017581.asm | neoneye/loda | 22 | 9074 | <filename>programs/oeis/017/A017581.asm
; A017581: a(n) = 12*n + 5.
; 5,17,29,41,53,65,77,89,101,113,125,137,149,161,173,185,197,209,221,233,245,257,269,281,293,305,317,329,341,353,365,377,389,401,413,425,437,449,461,473,485,497,509,521,533,545,557,569,581,593,605,617,629,641,653,665,677,689,701,713,725,737,749,761,773... |
beafix_benchmarks/BEAFIX_ALL_D3/lts_inv1_01_repair.als | Kaixi26/org.alloytools.alloy | 0 | 1983 | //Line and OP: Line 18 <JER>
//ORIGINAL: (State . trans)
//MUTATION: (s . trans)
open util/integer as integer
sig State {
trans : (Event -> State)
}
sig Init in State {
}
sig Event {
}
pred inv1 []{
all s : State | some (s . trans)
}
pred inv2 []{
one Init
}
pred inv3 []{
all s : State, e : Event | lone (e ... |
antlr/js-runtime/grammars/ECMAScript.g4 | Oliryc/monobpf | 0 | 4884 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 by <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,
*... |
src/fot/LTC-PCF/Data/Nat/Rec/ConversionRules.agda | asr/fotc | 11 | 7769 | ------------------------------------------------------------------------------
-- Conversion rules for the recursive operator rec
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}
{-# OPTIONS --no-univers... |
RTC/Docs/time.asm | Threetwosevensixseven/CSpectPlugins | 4 | 89337 | ;
; TBBlue / ZX Spectrum Next project
; Copyright (c) 2010-2018
;
; RTC TIME - <NAME> and <NAME>
;
; All rights reserved
;
; Redistribution and use in source and synthezised forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; Redistributions of source code must reta... |
cemu/examples/x86_64_sys_exec_bin_sh_null_free.asm | MatejKastak/cemu | 823 | 244300 | <filename>cemu/examples/x86_64_sys_exec_bin_sh_null_free.asm
# rax = sys_execve
xor rax, rax
mov al, 59
# write /bin/sh @rsp
mov rsi, 0x0168732f6e69622f
shl rsi, 8
shr rsi, 8
mov [rsp], rsi
# rdi = @/bin/sh
mov rdi, rsp
# nullify the other args
xor rsi, rsi
xor rdx, rdx
# trigger interrupt
syscall |
oeis/120/A120505.asm | neoneye/loda-programs | 11 | 14636 | ; A120505: Generalized meta-Fibonacci sequence a(n) with parameters s=2 and k=3.
; Submitted by <NAME>
; 1,1,1,2,3,3,3,3,4,5,6,6,7,8,9,9,9,9,9,10,11,12,12,13,14,15,15,16,17,18,18,18,19,20,21,21,22,23,24,24,25,26,27,27,27,27,27,27,28,29,30,30,31,32,33,33,34,35,36,36
mov $6,$0
add $0,1
mov $2,$0
lpb $0
lpb $0,$6
m... |
src/main/fragment/mos6502-common/vwum1=pwuc1_derefidx_vbuyy_minus_vwum2.asm | jbrandwood/kickc | 2 | 162112 | sec
lda {c1},y
sbc {m2}
sta {m1}
lda {c1}+1,y
sbc {m2}+1
sta {m1}+1
|
oeis/199/A199394.asm | neoneye/loda-programs | 11 | 103923 | ; A199394: The number of ways to color the vertices of all (11) simple unlabeled graphs on 4 nodes using at most n colors.
; Submitted by <NAME>(s2)
; 11,90,357,996,2255,4446,7945,13192,20691,31010,44781,62700,85527,114086,149265,192016,243355,304362,376181,460020,557151,668910,796697,941976,1106275,1291186,1498365,172... |
data/pokemon/base_stats/vespiquen.asm | AtmaBuster/pokeplat-gen2 | 6 | 174728 | db 0 ; species ID placeholder
db 70, 80, 102, 40, 80, 102
; hp atk def spd sat sdf
db BUG, FLYING ; type
db 45 ; catch rate
db 166 ; base exp
db NO_ITEM, POISON_BARB ; items
db GENDER_F100 ; gender ratio
db 15 ; step cycles to hatch
INCBIN "gfx/pokemon/vespiquen/front.dimensions"
db GROWTH_MEDIU... |
oeis/038/A038291.asm | neoneye/loda-programs | 11 | 243486 | <reponame>neoneye/loda-programs
; A038291: Triangle whose (i,j)-th entry is binomial(i,j)*9^(i-j)*1^j.
; Submitted by <NAME>
; 1,9,1,81,18,1,729,243,27,1,6561,2916,486,36,1,59049,32805,7290,810,45,1,531441,354294,98415,14580,1215,54,1,4782969,3720087,1240029,229635,25515,1701,63,1,43046721,38263752,14880348,3306744,459... |
MessageBox.asm | zhaojunchen/win-exec-calc-shellcode | 0 | 26306 | <gh_stars>0
; 参数压栈!
BITS 32
SECTION .text
%include 'type-conversion.asm'
xor edx, edx
; 分配字符串空间
push B2DW('t','i','p',0)
push esp
pop eax
push 0x00000000
push B2DW('0', '1', '8', '4')
push B2DW('0', '1', '5', '0')
push B2DW('0', '1', '7', '3')
push B2DW('G', '1', ':', '2')
push esp
pop ecx; &(学号)
; 填充MessageBoxA参数
pu... |
Transynther/x86/_processed/US/_ht_zr_un_/i9-9900K_12_0xa0.log_21829_921.asm | ljhsiun2/medusa | 9 | 3253 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x448, %rsi
lea addresses_WC_ht+0x7c4c, %rdi
clflush (%rsi)
nop
sub $13968, %r8
mov $39, %rcx
rep movsl
cmp %rdx, %rdx
lea addresses_D_ht+0x1a0e8, %r12
clflush (%r12)
nop
nop
c... |
data/mapHeaders/celadonmart5.asm | adhi-thirumala/EvoYellow | 16 | 174731 | <gh_stars>10-100
CeladonMart5_h:
db LOBBY ; tileset
db CELADON_MART_5_HEIGHT, CELADON_MART_5_WIDTH ; dimensions (y, x)
dw CeladonMart5Blocks, CeladonMart5TextPointers, CeladonMart5Script ; blocks, texts, scripts
db $00 ; connections
dw CeladonMart5Object ; objects
|
source/amf/mof/cmof/amf-internals-cmof_named_elements.ads | svn2github/matreshka | 24 | 2990 | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
source/amf/utp/amf-internals-factories-utp_factories.ads | svn2github/matreshka | 24 | 11741 | <reponame>svn2github/matreshka<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
MOS5/boot.asm | Mishin870/MOS | 1 | 87082 | ;загрузочный сектор для MOS
;переводит в защищенный режим работы процессора, подгружает ядро и запускает
use16
org 7C00h
;*********************************
;Начало в реальном режиме
;*********************************
start:
push cs
pop ds
push ds
pop es
;при загрузке загрузочного сектора в регистр dl переда... |
oeis/341/A341718.asm | neoneye/loda-programs | 11 | 160416 | <reponame>neoneye/loda-programs
; A341718: Subtract 1 from each term of A004094 (the powers of 2 written backwards).
; Submitted by <NAME>(s4)
; 0,1,3,7,60,22,45,820,651,214,4200,8401,6903,2917,48360,86722,63555,270130,441261,882424,6758400,2517901,4034913,8068837,61277760,23445532,46880175,827712430,654534861,21907863... |
src/fltk-environment.ads | micahwelf/FLTK-Ada | 1 | 25564 | <gh_stars>1-10
package FLTK.Environment is
type Preferences is new Wrapper with private;
type Preferences_Reference (Data : not null access Preferences'Class) is
limited null record with Implicit_Dereference => Data;
type Scope is (Root, User);
Preference_Error : exception;
pac... |
demo/demo1.asm | karcherm/omfpatch | 2 | 243927 | <reponame>karcherm/omfpatch
litest STRUC
field1 dw ?
field2 db ?
litest ENDS
SEG1 SEGMENT
org 100h
db "ZYX"
SEG1 ENDS
SEG2 SEGMENT
litest 3 dup (<3131h,40h>)
SEG2 ENDS
END |
src/player.asm | hgwood/blox86 | 3 | 89795 | %assign player_char 54h ; 'T'
%assign player_y arena_bottom - 1
draw_initial_player:
pusha
mov ch, [si + player_left_x_offset]
mov cl, [si + player_left_x_offset]
add cl, [si + player_size_offset]
mov al, player_char
mov dh, player_y
call print_horizontal_line
popa
ret
update_player:
pusha
cmp a... |
test/container/test_container.ads | skill-lang/skillAdaTestSuite | 1 | 12371 | package Test_Container is
end Test_Container;
|
Grammars/filters.g4 | sambuc/mercator_parser | 0 | 5772 | grammar filters;
/**********************************************************************/
/* SELECTING / FILTERING DATA */
/**********************************************************************/
filters
: bag_expression
;
/* All these expressions generate bags. */
bag_... |
demos/intio.ada | daveshields/AdaEd | 3 | 3206 | <reponame>daveshields/AdaEd<gh_stars>1-10
with text_io; use text_io;
package integer_text_io is new integer_io(integer);
|
.emacs.d/elpa/wisi-3.1.3/wisitoken-generate.ads | caqg/linux-home | 0 | 17361 | <filename>.emacs.d/elpa/wisi-3.1.3/wisitoken-generate.ads
-- Abstract :
--
-- Types and operations for generating parsers, common to all parser
-- types.
--
-- The wisi* packages deal with reading *.wy files and generating
-- source code files. The wisitoken-generate* packages deal with
-- computing parser proper... |
oeis/010/A010501.asm | neoneye/loda-programs | 11 | 170342 | <reponame>neoneye/loda-programs
; A010501: Decimal expansion of square root of 47.
; 6,8,5,5,6,5,4,6,0,0,4,0,1,0,4,4,1,2,4,9,3,5,8,7,1,4,4,9,0,8,4,8,4,8,9,6,0,4,6,0,6,4,3,4,6,1,0,0,1,3,2,6,2,7,5,4,8,5,1,0,8,1,8,5,6,7,8,5,1,7,1,1,5,1,3,6,8,1,6,9,9,9,2,2,7,3,2,5,1,4,8,5,0,0,0,6,6,8,3,6
mov $1,1
mov $2,1
mov $3,$0
add $3... |
programs/oeis/017/A017322.asm | neoneye/loda | 22 | 28034 | <reponame>neoneye/loda
; A017322: a(n) = (10*n + 4)^6.
; 4096,7529536,191102976,1544804416,7256313856,24794911296,68719476736,164206490176,351298031616,689869781056,1265319018496,2194972623936,3635215077376,5789336458816,8916100448256,13339032325696,19456426971136,27752076864576,38806720086016,53310208315456,7207439483... |
programs/oeis/131/A131229.asm | neoneye/loda | 22 | 12093 | ; A131229: Numbers congruent to {1,7} mod 10.
; 1,7,11,17,21,27,31,37,41,47,51,57,61,67,71,77,81,87,91,97,101,107,111,117,121,127,131,137,141,147,151,157,161,167,171,177,181,187,191,197,201,207,211,217,221,227,231,237,241,247,251,257,261,267,271,277,281
mov $1,$0
mod $0,2
mul $1,5
add $0,$1
add $0,1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.