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/fltk-widgets-clocks-updated-round.adb | micahwelf/FLTK-Ada | 1 | 9253 | <filename>src/fltk-widgets-clocks-updated-round.adb<gh_stars>1-10
with
Interfaces.C.Strings,
System;
use type
System.Address;
package body FLTK.Widgets.Clocks.Updated.Round is
procedure round_clock_set_draw_hook
(W, D : in System.Address);
pragma Import (C, round_clock_set_draw_h... |
06-bootsector-segmentation/try.asm | benediktweihs/os-tutorial | 0 | 244047 | [org 0x7c00]
mov ah, 0x0e ; output tty
mov al, lenMes
int 0x10
mov al, [text]
begin:
cmp al, lenMes
je end
jmp print
add al, 0x1
print:
int 0x10
end:
jmp $
text:
db "Hal<NAME>"
lenMes equ $ - text
times 510 - ($ - $$) db 0
dw 0xaa55
|
oeis/169/A169279.asm | neoneye/loda-programs | 11 | 179839 | <filename>oeis/169/A169279.asm
; A169279: Number of reduced words of length n in Coxeter group on 26 generators S_i with relations (S_i)^2 = (S_i S_j)^29 = I.
; 1,26,650,16250,406250,10156250,253906250,6347656250,158691406250,3967285156250,99182128906250,2479553222656250,61988830566406250,1549720764160156250,3874301910... |
alloy4fun_models/trainstlt/models/6/W7vwJ4BWpSC4vS4np.als | Kaixi26/org.alloytools.alloy | 0 | 3567 | open main
pred idW7vwJ4BWpSC4vS4np_prop7 {
all t:Train | some t.pos :> (Entry+Exit) implies eventually no t.pos :> (Entry+Exit)
}
pred __repair { idW7vwJ4BWpSC4vS4np_prop7 }
check __repair { idW7vwJ4BWpSC4vS4np_prop7 <=> prop7o } |
src/main/antlr4/parser/Hql.g4 | nielsutrecht/antlr-pres | 1 | 2928 | <reponame>nielsutrecht/antlr-pres<filename>src/main/antlr4/parser/Hql.g4<gh_stars>1-10
grammar Hql;
@header {
}
query : complexExpr EOF;
complexExpr
: '(' complexExpr ')' #bracesComplexExpression
|complexExpr and complexExpr #andComplexExpression
|complexExpr or complexExpr #orComplexExpression
|not complexExpr... |
solutions/50 - Cubical Communication/size-7_speed-73.asm | michaelgundlach/7billionhumans | 45 | 19873 | -- 7 Billion Humans (2231) --
-- 50: Cubical Communication --
-- Author: michaelgundlach
-- Size: 7
-- Speed: 73
mem2 = calc sw x 7
a:
mem2 = calc mem2 - 1
if mem2 < 5 and
mem2 >= 0:
takefrom s
giveto se
step w
endif
jump a
|
libsrc/_DEVELOPMENT/alloc/balloc/c/sdcc_iy/balloc_reset.asm | jpoikela/z88dk | 640 | 172825 | <gh_stars>100-1000
; void *balloc_reset(unsigned char queue)
SECTION code_clib
SECTION code_alloc_balloc
PUBLIC _balloc_reset
EXTERN asm_balloc_reset
_balloc_reset:
pop af
pop hl
push hl
push af
jp asm_balloc_reset
|
src/main/antlr4/Route.g4 | overthink/usher | 3 | 6494 | grammar Route;
// --------------------------------------------------------------------------
// Parser rules (start with lowercase)
// --------------------------------------------------------------------------
route
: (literal | param | wildcard)+
;
literal
: PathFragment
;
inlineRegex
: InlineRe
;
par... |
host/stm32gd-i2c-peripheral.ads | ekoeppen/STM32_Generic_Ada_Drivers | 1 | 8662 | <reponame>ekoeppen/STM32_Generic_Ada_Drivers
with STM32_SVD; use STM32_SVD;
generic
I2C : Natural;
package STM32GD.I2C.Peripheral is
pragma Preelaborate;
procedure Init;
function Master_Transmit (Address : I2C_Address; Data : Byte;
Restart : Boolean := False) return Boolean;
function Master_Re... |
a51test/(83)MOVC_A_A+PC.a51 | Aimini/51cpu | 0 | 162496 | <filename>a51test/(83)MOVC_A_A+PC.a51<gh_stars>0
MOV A,#0XA0
MOVC A, @A+PC ;0xAA
MOV A,#0xFF
MOVC A, @A+PC ;0x0F
LJMP 0xAAAA
CSEG AT 0xA3
DB 0xAA
CSEG AT 0x105
DB 0x0F
CSEG AT 0xAAAA;0xF0
MOV A,#0x02
MOVC A,@A+PC
NOP
NOP
DB 0xF0
|
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/ranges.adb | ouankou/rose | 488 | 22683 | procedure Ranges is
type Small is range 0E1 .. 1E2;
begin
null;
end Ranges;
|
Library/Pref/Prefuic/prefuic.asm | steakknife/pcgeos | 504 | 26363 | <reponame>steakknife/pcgeos
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: prefsnd.asm
AUTHOR: <NAME>, Aug 25, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY... |
waterbackground/main.asm | ArcadeTV/megadrive-samples | 5 | 92048 | ; Start of ROM
ROM_Start:
;==============================================================
; INCLUDES
;==============================================================
include "_includes/constants.asm"
include "_includes/variables.asm"
include "_includes/macros.asm"
;===============================================... |
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_ix/___fs2ulong_callee.asm | jpoikela/z88dk | 640 | 177450 | <reponame>jpoikela/z88dk
SECTION code_clib
SECTION code_fp_math48
PUBLIC ___fs2ulong_callee
EXTERN cm48_sdccixp_ds2ulong_callee
defc ___fs2ulong_callee = cm48_sdccixp_ds2ulong_callee
|
core/src/main/antlr/org/datadozer/parser/FlexQuery.g4 | DataDozer/DataDozer | 1 | 3410 | <gh_stars>1-10
// Default query parser for DataDozer
grammar FlexQuery;
@header {
package org.datadozer.parser;
}
// LEXER
/**
NOTE: The order of lexer rules matter. Make sure more specific rules are at
the top followed by more generic rules/ So things like string literal matches
should be above rules like ID.
*/
//... |
programs/oeis/195/A195313.asm | neoneye/loda | 22 | 6686 | ; A195313: Generalized 13-gonal numbers: m*(11*m-9)/2 with m = 0, 1, -1, 2, -2, 3, -3, ...
; 0,1,10,13,31,36,63,70,106,115,160,171,225,238,301,316,388,405,486,505,595,616,715,738,846,871,988,1015,1141,1170,1305,1336,1480,1513,1666,1701,1863,1900,2071,2110,2290,2331,2520,2563,2761,2806,3013,3060,3276,3325,3550,3601,3835... |
src/sm/ending.asm | PJBoy/alttp_sm_combo_randomizer_rom | 31 | 6862 | <filename>src/sm/ending.asm
org $cfc922
jml sm_check_ending_door
org $e9B1D0
jsl sm_check_ending_mb
org $e9B305
jml sm_check_ending_mb_event
org $c09E1C
jml sm_check_ending_mb_timer
org $e9B33C
jml sm_check_ending_mb_anim
org $cbde80
jml sm_setup_credits
org $f7fd00
base $b7fd00
sm_check_... |
src/templates/ada/mdm-factory.adb | joffreyhuguet/LmcpGen | 0 | 23369 | <reponame>joffreyhuguet/LmcpGen
-<include_all_series_headers>-
with Ada.Unchecked_Conversion;
package body -<full_series_name_dots>-.factory is
procedure PutObject (Object : in Avtas.Lmcp.Object.Object_Any; Buffer : in out ByteBuffer);
function PackMessage (RootObject : in Avtas.Lmcp.Object.Object_Any; Enab... |
programs/interrupt/interrupt.asm | danielkasza/lcore | 1 | 92403 | .orig x0
start:
lea r0, interrupt_handler
; Set new interrupt handler address.
out r0, 1
; Loop forever, unless an interrupt comes in.
forever:
br forever
interrupt_handler:
rti
; There is a bug in the assembler.
; It fails if I don't put another instruction in this handler.
out r... |
libsrc/oz/ozmisc/ozportin.asm | meesokim/z88dk | 0 | 103889 | <reponame>meesokim/z88dk
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by <NAME>
; by <NAME> - Oct. 2003
;
; char ozportin(char port)
;
; ------
; $Id: ozportin.asm,v 1.2 2015/01/19 01:33:02 pauloscustodio Exp $
;
PUBLIC ozportin
ozportin:
ld hl,2
add hl,sp
ld ... |
src/libtcod-maps.adb | csb6/libtcod-ada | 0 | 29781 | with fov_h, Interfaces.C.Extensions;
package body Libtcod.Maps is
use fov_h, Interfaces.C, Interfaces.C.Extensions;
subtype Limited_Controlled is Ada.Finalization.Limited_Controlled;
procedure increment(x : in out X_Pos; d : X_Diff) is
begin
x := X_Pos(X_Diff(x) + d);
end increment;
function... |
ada/prime/prime_ada.adb | rn7s2/src | 1 | 3392 | <reponame>rn7s2/src
with Ada.Text_IO; use Ada.Text_IO;
package body Prime_Ada is
procedure Get_Prime (n : Integer) is
prime : array (1 .. n) of Integer;
is_prime : array (1 .. n) of Boolean := (False, others => True);
begin
cnt := 0;
for i in 2 .. n loop
if is_prime (i) then
... |
code/Delta.agda | nickcollins/dependent-dicts | 0 | 9007 | module Delta (K : Set) \{\{bij : bij K Nat\}\} where
DL : (V : Set) \altRArr Set
DL V = List (Nat \altAnd V)
data DD (V : Set) : Set where
DD : DL V \altRArr DD V
delta
: \altFAll\{n m\} \altRArr n < m \altRArr Nat
delta n<m =
difference (n<m\altRArr1+n\ensuremath{\leq}m n<m) -- i.e. m - n - 1
-- lookup
_\alt... |
projects/batfish/src/org/batfish/grammar/flatjuniper/FlatJuniper_ospf.g4 | Alexia23/batfish | 1 | 6599 | parser grammar FlatJuniper_ospf;
import FlatJuniper_common;
options {
tokenVocab = FlatJuniperLexer;
}
ait_apply_groups
:
s_apply_groups
;
ait_apply_groups_except
:
s_apply_groups_except
;
ait_dead_interval
:
DEAD_INTERVAL DEC
;
ait_disable
:
DISABLE
;
ait_hello_interval
:
HELLO_INTERVAL DEC
;
... |
add1.asm | kanpapa/cosmac | 2 | 94917 | *
* Add program 1 for COSMAC
* SB-Assembler
*
* SW input + 6 -> LED Display
*
.CR 1802 ;To load the 1802 cross overlay
.OR $0000
*
START LDI #IOR ;D <- #IOR
PLO 5 ;R(5).0 <- D
SEX 5 ;X <- 5
LOOP1 INP 2 ;M(R(5)) <- BUS; D <- BUS
LDI #$06 ;D <- #$06
ADD ;D,DF <- M(R(5))+D
STR 5 ;M(R(5)) <- D
OUT 1 ;BUS <- M(R(5... |
oeis/052/A052655.asm | neoneye/loda-programs | 11 | 103199 | ; A052655: a(2) = 6, otherwise a(n) = n*n!.
; Submitted by <NAME>(s3)
; 0,1,6,18,96,600,4320,35280,322560,3265920,36288000,439084800,5748019200,80951270400,1220496076800,19615115520000,334764638208000,6046686277632000,115242726703104000,2311256907767808000
mov $2,$0
lpb $0
mov $1,2
cmp $1,$2
add $2,$1
mul $2,$... |
01. 8051/01. Introduction/Prog3.asm | nitrece/microprocessor-laboratory | 0 | 3484 | org 0h
mov dptr, #300h
mov a, #0
movc a, @a+dptr
mov r0, a
mov a, #1
movc a, @a+dptr
mov r1, a
mov a, #2
movc a, @a+dptr
mov r2, a
org 300h
db "NIT"
end
|
Cubical/Functions/Morphism.agda | dan-iel-lee/cubical | 0 | 8485 | <filename>Cubical/Functions/Morphism.agda
{-
General lemmas about morphisms (defined as loosely as possible)
-}
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Functions.Morphism where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundation... |
programs/oeis/241/A241151.asm | neoneye/loda | 22 | 240559 | ; A241151: Number of distinct degrees in the partition graph G(n) defined at A241150.
; 1,2,3,3,4,5,5,5,6,7,7,7,7,8,9,9,9,9,9,10,11,11,11,11,11,11,12,13,13,13,13,13,13,13,14,15,15,15,15,15,15,15,15,16,17,17,17,17,17,17,17,17,17,18,19,19,19,19,19
lpb $0
sub $1,2
add $2,3
trn $0,$2
sub $0,$1
lpe
add $0,1
|
ee/hk/english.asm | olifink/smsqe | 0 | 5058 | ; HOTKEY messages 1988 T.Tebby QJUMP
section language
xdef hk_english
xdef hk_norwegian
xdef hk_stufc
xdef hk_stufp
xdef hk_stufl
include 'dev8_mac_text'
include 'dev8_ee_hk_data'
hk_english
hk_norwegian
hk_stufc dc.b ' '
hk_stufp dc.b $fc
hk_stufl dc.l $200
mktext spce,{SPACE}
mktext exec,{EXE... |
programs/oeis/304/A304164.asm | neoneye/loda | 22 | 178087 | <reponame>neoneye/loda
; A304164: a(n) = 27*n^2 - 21*n + 6 (n>=1).
; 12,72,186,354,576,852,1182,1566,2004,2496,3042,3642,4296,5004,5766,6582,7452,8376,9354,10386,11472,12612,13806,15054,16356,17712,19122,20586,22104,23676,25302,26982,28716,30504,32346,34242,36192,38196,40254,42366,44532,46752,49026,51354,53736,56172,58... |
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-stausa.ads | orb-zhuchen/Orb | 0 | 22256 | ------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
source/required/s-pack09.ads | ytomino/drake | 33 | 12309 | pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Packed_Arrays;
package System.Pack_09 is
pragma Preelaborate;
-- It can not be Pure, subprograms would become __attribute__((const)).
type Bits_09 is mod 2 ** 9;
for Bits_09'Size use 9;
package Indexing is new P... |
programs/oeis/047/A047353.asm | karttu/loda | 1 | 95896 | ; A047353: Numbers that are congruent to {1, 2} mod 7.
; 1,2,8,9,15,16,22,23,29,30,36,37,43,44,50,51,57,58,64,65,71,72,78,79,85,86,92,93,99,100,106,107,113,114,120,121,127,128,134,135,141,142,148,149,155,156,162,163,169,170
mov $1,$0
div $0,2
mul $0,5
add $1,$0
add $1,1
|
programs/oeis/081/A081631.asm | karttu/loda | 0 | 5785 | <reponame>karttu/loda<gh_stars>0
; A081631: 2*2^n-(-2)^n.
; 1,6,4,24,16,96,64,384,256,1536,1024,6144,4096,24576,16384,98304,65536,393216,262144,1572864,1048576,6291456,4194304,25165824,16777216,100663296,67108864,402653184,268435456,1610612736,1073741824,6442450944,4294967296,25769803776,17179869184,103079215104,687194... |
data/maps/map_header_banks.asm | opiter09/ASM-Machina | 1 | 8051 | <reponame>opiter09/ASM-Machina<gh_stars>1-10
; see also MapHeaderPointers
MapHeaderBanks::
table_width 1, MapHeaderBanks
db BANK(PalletTown_h)
db BANK(ViridianCity_h)
db BANK(PewterCity_h)
db BANK(CeruleanCity_h)
db BANK(LavenderTown_h)
db BANK(VermilionCity_h)
db BANK(CeladonCity_h)
db BANK(FuchsiaCity_h)
db... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_634.asm | ljhsiun2/medusa | 9 | 168901 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1b8db, %rsi
lea addresses_UC_ht+0x833b, %rdi
clflush (%rdi)
nop
nop
nop
and $33075, %r12
mov $101, %rcx
rep movsl
nop
nop
nop
nop
nop
sub %r13, %r13
lea addresses_normal_ht+... |
oeis/052/A052543.asm | neoneye/loda-programs | 11 | 27240 | <reponame>neoneye/loda-programs
; A052543: Expansion of (1-x)/(1 - 3*x - 2*x^2 + 2*x^3).
; Submitted by <NAME>
; 1,2,8,26,90,306,1046,3570,12190,41618,142094,485138,1656366,5655186,19308014,65921682,225070702,768439442,2623616366,8957586578,30583113582,104417281170,356502897518,1217177027730,4155702315886,1418845520808... |
Task/Non-decimal-radices-Convert/AppleScript/non-decimal-radices-convert-1.applescript | LaudateCorpus1/RosettaCodeData | 1 | 3414 | <reponame>LaudateCorpus1/RosettaCodeData<filename>Task/Non-decimal-radices-Convert/AppleScript/non-decimal-radices-convert-1.applescript
-- toBase :: Int -> Int -> String
on toBase(intBase, n)
if (intBase < 36) and (intBase > 0) then
inBaseDigits(items 1 thru intBase of "0123456789abcdefghijklmnopqrstuvwxyz... |
util/menus/reqstrg.asm | olifink/smsqe | 0 | 91473 | <reponame>olifink/smsqe
; request a string 1991 <NAME> V0.02
section utility
include dev8_keys_menu
include dev8_keys_thg
xdef mu_reqst
xref ut_usmen,ut_frmen
;+++
; This routine requests a single string.
;
; Entry Exit
; D0.l error, 0 or +1 for ESC
; D1.l origin or -1 preserved
; D2.b colourways ... |
programs/oeis/123/A123854.asm | jmorken/loda | 1 | 25486 | <gh_stars>1-10
; A123854: Denominators in an asymptotic expansion for the cubic recurrence sequence A123851.
; 1,4,32,128,2048,8192,65536,262144,8388608,33554432,268435456,1073741824,17179869184,68719476736,549755813888,2199023255552,140737488355328,562949953421312,4503599627370496,18014398509481984
add $0,2
mov $1,2
... |
extern/gnat_sdl/gnat_sdl2/src/sdl_gamecontroller_h.ads | AdaCore/training_material | 15 | 14531 | <reponame>AdaCore/training_material
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
limited with SDL_rwops_h;
with Interfaces.C.Strings;
with SDL_joystick_h;
with SDL_stdinc_h;
package SDL_gamecontroller_h is
-- arg-macro: procedure SDL_GameControllerAddMappingsFromFile (file)
... |
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-suewst.ads | JCGobbi/Nucleo-STM32G474RE | 7 | 12834 | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
oeis/074/A074547.asm | neoneye/loda-programs | 11 | 89404 | <gh_stars>10-100
; A074547: a(n) = 3^n + 4^n + 5^n.
; Submitted by <NAME>(s1.)
; 3,12,50,216,962,4392,20450,96696,462722,2234952,10873250,53199576,261449282,1289406312,6376734050,31605668856,156925904642,780248462472,3883804162850,19349526496536,96470430052802,481245665067432,2401809358119650,11991391842434616,59886402... |
test/wavefiles_test/src/generic_fixed_wave_test.adb | Ada-Audio/wavefiles | 10 | 2514 | <reponame>Ada-Audio/wavefiles
------------------------------------------------------------------------------
-- --
-- THIS IS AN AUTOMATICALLY GENERATED FILE! DO NOT EDIT! --
-- ... |
programs/oeis/158/A158539.asm | karttu/loda | 1 | 104354 | <reponame>karttu/loda
; A158539: a(n) = 121*n^2 - 11.
; 110,473,1078,1925,3014,4345,5918,7733,9790,12089,14630,17413,20438,23705,27214,30965,34958,39193,43670,48389,53350,58553,63998,69685,75614,81785,88198,94853,101750,108889,116270,123893,131758,139865,148214,156805,165638,174713,184030,193589,203390,213433,223718,23... |
SelectOrOpen_youtube.applescript | u-4/AppleScript | 0 | 1393 | -- Select Tab or Open New Tab for Youtube in Google Chrome
set addr to "https://www.youtube.com/"
tell application "Google Chrome"
activate
set n to 1
set found to 0
repeat with w in windows
set i to 1
repeat with t in (tabs of w)
if (URL of t as string) contains addr then
... |
FormalAnalyzer/models/apps/GarageAfterDark.als | Mohannadcse/IoTCOM_BehavioralRuleExtractor | 0 | 800 | module app_GarageAfterDark
open IoTBottomUp as base
open cap_runIn
open cap_now
open cap_contactSensor
open cap_switch
one sig app_GarageAfterDark extends IoTApp {
contact1 : one cap_contactSensor,
theDoor : one cap_switch,
state : one cap_state,
} {
rules = r
//capabilities = contact1 + theDoor ... |
Task/Strip-a-set-of-characters-from-a-string/Ada/strip-a-set-of-characters-from-a-string.ada | LaudateCorpus1/RosettaCodeData | 1 | 29346 | <filename>Task/Strip-a-set-of-characters-from-a-string/Ada/strip-a-set-of-characters-from-a-string.ada
with Ada.Text_IO;
procedure Strip_Characters_From_String is
function Strip(The_String: String; The_Characters: String)
return String is
Keep: array (Character) of Boolean := (others => T... |
boot/utils.asm | spevans/hello-swift | 0 | 22520 | ;;; boot/utils.asm
;;;
;;; Copyright © 2015 <NAME>. All rights reserved.
;;; print_string - print ASCIIZ string in DS:SI via BIOS
print:
lodsb
test al, al
je print_return
mov ah, 0x0E
int 0x10
jmp print
print_return:
ret
;;; Simple IO delay... |
oeis/107/A107840.asm | neoneye/loda-programs | 11 | 99226 | <gh_stars>10-100
; A107840: a(n)= 3*a(n-1) -3*a(n-3) +a(n-4), n>6.
; Submitted by <NAME>(s1)
; 1,1,1,0,4,8,25,63,169,440,1156,3024,7921,20735,54289,142128,372100,974168,2550409,6677055,17480761,45765224,119814916,313679520,821223649,2149991423,5628750625,14736260448,38580030724,101003831720
mov $4,2
mov $6,$0
lpb $4
... |
externals/mpir-3.0.0/mpn/x86_64w/nehalem/sub_n.asm | JaminChan/eos_win | 12 | 175030 | ; PROLOGUE(mpn_sub_n)
; Version 1.0.3.
;
; Copyright 2008 <NAME>
;
; Windows Conversion Copyright 2008 <NAME>
;
; This file is part of the MPIR Library.
;
; The MPIR Library is free software; you can redistribute it and/or modify
; it under the terms of the GNU Lesser General Public License as published
; by th... |
libsrc/_DEVELOPMENT/l/z80/integer/l_addu_hl_bc.asm | jpoikela/z88dk | 640 | 12841 |
SECTION code_clib
SECTION code_l
PUBLIC l_addu_hl_bc
l_addu_hl_bc:
; uses : hl, f
; carry set on overflow
add hl,bc
ret nc
ld hl,$ffff
ret
|
src/ascon-compare_tags.adb | jhumphry/Ascon_SPARK | 1 | 23334 | <reponame>jhumphry/Ascon_SPARK
-- Ascon.Compare_Tags
-- Compare two Tag_Type values using a constant-time approach. This is split
-- out into a separate child unit from Ascon so that different compilation flags
-- can be used. It is advisable to prevent optimisation of this function or
-- else a clever compiler might ... |
tests/call.asm | JasonChuanTian/onix | 1 | 160577 | <gh_stars>1-10
[bits 32]
extern exit
test:
push $
ret
global main
main:
; push 5
; push eax
; pop ebx
; pop ecx
; pusha
; popa
call test
push 0; 传递参数
call exit
|
masm/lesson15/Lesson15-MASM/Lesson15.asm | neozhou2009/nehe-opengl | 177 | 173164 | ; Attempt at NeHe's tutorial 15 : Texture mapping outline fonts
;
; Author: <NAME> [<EMAIL>]
; Date: July 10 2003
;
; With thanks to NeHe for the OpenGL tutorials <http://nehe.gamedev.net/>
; Inspiration for x86 Assembler from Nico <<EMAIL>>
; OpenGL x86 includes originally from hardcode <http://bizarrecreations.webjum... |
tools/xml2ayacc/nodes-database.adb | faelys/gela-asis | 4 | 10330 | ------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_70.asm | ljhsiun2/medusa | 9 | 163054 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x97a8, %rsi
lea addresses_UC_ht+0x2458, %rdi
clflush (%rsi)
nop
cmp %rax, %rax
mov $63, %rcx
rep movsq
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_A_ht+0x2948, %rdi
clflush (%rdi)
nop
... |
src/boot.asm | jmgrosen/shorai | 1 | 100733 | ; Copyright (c) 2013 <NAME>
; Licensed under the terms described in the LICENSE file in the root of this repository
MBALIGN equ 1<<0
MEMINFO equ 1<<1
FLAGS equ MBALIGN | MEMINFO
MAGIC equ 0x1BADB002
CHECKSUM equ -(MAGIC + FLAGS)
section .multiboot
align 4
dd MAGIC
dd FLAGS
dd CHECKSUM
... |
src/setupscreen.asm | jardafis/CastleEscape | 1 | 25993 | <filename>src/setupscreen.asm
extern _cls
extern _coinTables
extern _currentTileMap
extern _scrollReset
extern _setCurrentTileMap
extern currentCoinTable
extern currentEggTable
extern currentHeartTable
extern currentSpiderTable
ext... |
programs/oeis/141/A141468.asm | neoneye/loda | 22 | 2426 | <reponame>neoneye/loda
; A141468: Zero together with the nonprime numbers A018252.
; 0,1,4,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26,27,28,30,32,33,34,35,36,38,39,40,42,44,45,46,48,49,50,51,52,54,55,56,57,58,60,62,63,64,65,66,68,69,70,72,74,75,76,77,78,80,81,82,84,85,86,87,88,90,91,92,93,94,95,96,98,99,100,102,104,105,... |
build.asm | Qunapi/YesOS | 6 | 88559 | format binary as 'img'
file 'boot.bin': 0, 512
file 'floppy.ima': 512, 512 * 2879 |
src/gnat/aspects.ads | Letractively/ada-gen | 0 | 26705 | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
programs/oeis/002/A002063.asm | karttu/loda | 1 | 173725 | ; A002063: a(n) = 9*4^n.
; 9,36,144,576,2304,9216,36864,147456,589824,2359296,9437184,37748736,150994944,603979776,2415919104,9663676416,38654705664,154618822656,618475290624,2473901162496,9895604649984,39582418599936,158329674399744,633318697598976,2533274790395904
mov $1,4
pow $1,$0
mul $1,9
|
oeis/027/A027557.asm | neoneye/loda-programs | 11 | 169577 | ; A027557: Number of 3-balanced strings of length n: let d(S)= #(1)'s in S - #(0)'s, then S is k-balanced if every substring T has -k<=d(T)<=k; here k=3.
; Submitted by <NAME>
; 1,2,4,8,14,26,44,78,130,224,370,626,1028,1718,2810,4656,7594,12506,20356,33374,54242,88640,143906,234594,380548,619238,1003882,1631312,2643386... |
src/Fragment/Tactic/Utils.agda | yallop/agda-fragment | 18 | 134 | <filename>src/Fragment/Tactic/Utils.agda
{-# OPTIONS --without-K --safe #-}
module Fragment.Tactic.Utils where
open import Reflection hiding (name; Type; _≟_)
open import Reflection.Term using (_≟_)
open import Data.Nat using (ℕ; zero; suc)
open import Data.Fin using (Fin)
open import Data.Nat.Show using (show)
open... |
adagl/linux/glu.ads | Lucretia/old_nehe_ada95 | 0 | 6991 | --
-- Copyright (c) 2002-2003, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are
-- met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this list... |
docs/gvb+_editor.asm | arucil/wqxtools | 3 | 2110 | ; nc3000 GVBASIC+.bin disassembled
; entry = $4060
4010: 00 17 05 INT $0517
4013: A2 39 LDX #$39
4015: BD 37 40 LDA $4037,X
4018: 9D 8C 08 STA $088C,X
401B: CA DEX
401C: D0 F7 BNE $4015
401E: A9 00 LDA #$00
4020: 8D CC 08 STA $08CC
4023: A9 25 LDA #$25
4025: 85 E0 STA $E0
4027: A9 06 LDA #$06
40... |
src/_test/fixtures/apsepp_scope_bound_locks_test_fixture.ads | thierr26/ada-apsepp | 0 | 7549 | -- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Generic_Fixture;
with Apsepp.Scope_Bound_Locks; use Apsepp.Scope_Bound_Locks;
package Apsepp_Scope_Bound_Locks_Test_Fixture is
procedure Increment_N;
procedure Decrement_N;
type Scope_Bound_Locks_Test_Fixt... |
Lab3/Lab3/lab3.asm | ConstantinCezB/Computer-Architecture-assembly | 0 | 13342 | <filename>Lab3/Lab3/lab3.asm
TITLE Lab2
INCLUDE Irvine32.inc
.data
myArray DWORD 0001h, 0002h, 0003h, 0004h, 0005h, 0006h
myArraySize DWORD SIZEOF myArray
myArrayLength DWORD LENGTHOF myArray
myByte1 BYTE "a"
myByte2 BYTE ?,0
myArray2 SDWORD 10 DUP(-71)
.code
main PROC
MOV AL, myByte1
SUB AL, 20h
MOV myByte... |
projects/04/fill/Fill.asm | theapi/nand2tetris | 0 | 162800 | // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by <NAME> Schocken, MIT Press.
// File name: projects/04/Fill.asm
// Runs an infinite loop that listens to the keyboard input.
// When a key is pressed (any key), the program blackens the screen,
// i.e. writes "black" ... |
aoc2018/src/day01.adb | YoannDupont/advent_of_code_2018 | 0 | 19195 | --------------------------------------------------------------------------------
-- An Ada implementation of the Advent Of Code 2018 --
-- --
-- Day 1: Chronal Calibration ... |
src/format/formatted_output.adb | dshadrin/AProxy | 1 | 8510 | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- File: --
-- formatted_output.adb ... |
src/getters/getter-high.ads | python36/d0xfa | 0 | 6550 | with numbers; use numbers;
with strings; use strings;
with env; use env;
package getter.high is
ERROR_NO_CLOSED : exception;
ERROR_HIGH : exception;
function get return character;
procedure start (s : string);
private
use type unb.unbounded_string;
type types is (type_byte, type_word);
last_index : nat... |
lib_sources/owl/src/main/antlr/LTLLexer.g4 | logic-and-learning/rltl-monitoring | 0 | 3527 | lexer grammar LTLLexer;
@lexer::header {
package owl.grammar;
}
// LOGIC
TRUE : 'tt' | 'true' | '1';
FALSE : 'ff' | 'false' | '0';
// Logical Unary
NOT : '!' | 'NOT';
// Logical Binary
IMP : '->' | '-->' | '=>' | '==>' | 'IMP';
BIIMP : '<->' | '<=>' | 'BIIMP';
XOR : '^' | 'XOR' ... |
tests/devices/nex_file/bmp/savenexBmpL2.asm | fengjixuchui/sjasmplus | 220 | 17231 |
DEVICE ZXSPECTRUMNEXT
; empty infinite loop as code
ORG $C000
di
jr $
;; OPEN <filename>[,<startAddress>,<stackAddress>[,<entryBank 0..111>]]
SAVENEX OPEN "savenexBmpL2.nex", $C000, $F000
;; CORE <major 0..15>,<minor 0..15>,<subminor 0..255>
SAVENEX CORE 2,0,0
;... |
src/natools-s_expressions-printers.adb | faelys/natools | 0 | 6171 | ------------------------------------------------------------------------------
-- Copyright (c) 2013-2015, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/complex.ads | ouankou/rose | 488 | 2090 | <gh_stars>100-1000
package Complex is
type Complex is private;
i, zero : constant Complex;
-- arithmetic plus operator on complex values
function "+" ( lhs, -- left hand side
rhs : in Complex -- right hand side
) return Complex; -- returns a Compelx
... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_578.asm | ljhsiun2/medusa | 9 | 29783 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1b38b, %rsi
lea addresses_A_ht+0x1bb4b, %rdi
nop
nop
nop
nop
nop
add %r13, %r13
mov $10, %rcx
rep movsb
nop
nop
nop
nop
sub %r14, %r14
lea addresses_D_ht+0xad5b, %r13
and %r1... |
tests/fibonacci.asm | jacobbieker/MIPS-In-C | 1 | 24171 | ##############################################
# Fall 2015, CIS 314 Computer Organization #
# Major Class Project #
##############################################
# Code with subroutine to compute Fibonacci number recursively
# Setting the stack pointer #
addi $sp, $0, 256
################... |
programs/oeis/206/A206919.asm | karttu/loda | 0 | 165899 | <filename>programs/oeis/206/A206919.asm<gh_stars>0
; A206919: Sum of binary palindromes <= n.
; 0,1,1,4,4,9,9,16,16,25,25,25,25,25,25,40,40,57,57,57,57,78,78,78,78,78,78,105,105,105,105,136,136,169,169,169,169,169,169,169,169,169,169,169,169,214,214,214,214,214,214,265,265,265,265,265,265,265,265
mov $3,$0
mov $5,$0
l... |
programs/oeis/234/A234902.asm | jmorken/loda | 1 | 94433 | <gh_stars>1-10
; A234902: a(n)*Pi is the total length of irregular spiral (center points: 1, 2, 3) after n rotations.
; 2,9,13,17,24,26,33,37,41,48,50,57,61,65,72,74,81,85,89,96,98,105,109,113,120,122,129,133,137,144,146,153,157,161,168,170,177,181,185,192,194,201,205,209,216,218,225,229,233,240,242,249,253,257
mov $2... |
source/nodes/program-nodes-formal_ordinary_fixed_point_definitions.ads | optikos/oasis | 0 | 7717 | <reponame>optikos/oasis
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Formal_Ordinary_Fixed_Point_Definitions;
with Program.Element_Visitors;
p... |
data/tilesets/power_plant_collision.asm | Trap-Master/spacworld97-thingy | 0 | 168234 | <reponame>Trap-Master/spacworld97-thingy<gh_stars>0
tilecoll WALL, WALL, WARP_CARPET_LEFT, FLOOR ; 00
tilecoll WALL, WALL, FLOOR, WALL ; 01
tilecoll FLOOR, WALL, FLOOR, WALL ; 02
tilecoll FLOOR, WALL, FLOOR, WALL ; 03
tilecoll WALL, FLOOR, WALL, FLOOR ; 04
tilecoll TALL_GRASS, FLOOR, FLOOR, WALL ; 05
tilecoll WA... |
fluidcore/samples/whitenoise-v5.asm | bushy555/ZX-Spectrum-1-Bit-Routines | 59 | 11607 |
db 1,0,1,0,0,5,0,2,2,4,2,3,5,2,4,5
db 1,0,4,5,3,3,1,5,3,2,4,4,2,4,3,2
db 2,4,5,3,2,2,0,4,4,1,2,3,0,4,2,3
db 3,2,0,1,5,5,5,4,3,3,2,0,2,1,5,3
db 0,5,5,0,2,2,2,5,2,1,5,3,3,0,1,3
db 2,2,3,2,5,1,1,1,0,1,5,3,0,4,3,5
db 2,0,4,5,1,1,0,2,5,2,0,3,1,4,2,2
db 3,3,2,5,4,4,2,3,2,3,0,2,5,2,2,3
db 5,3,5,2,2,3,1,3,1,2,2,2,2,2... |
progs/h03-bin2num.asm | HKhademian/AssemblyDandamudi | 1 | 27991 | <gh_stars>1-10
%include "lib.asm"
extern ExitProcess ; windows syscall to exit
section .text
N equ 8 ; up to 32 bits
section .data
buffer times N+2 db 0
section .code
global _start
_start:
fgets buffer, N+2 ; fill buffer with N (+2 is CR&LF) character
mov esi, 0 ; counter
endofbuffer: ... |
tests/basic.asm | bynect/intel-8080-kit | 0 | 243907 | ; basic emulator example
basic:
in 0
mvi b, 100
add b
out 10
hlt
|
src/Model/Exponential.agda | JLimperg/msc-thesis-code | 5 | 9909 | <gh_stars>1-10
{-# OPTIONS --without-K #-}
module Model.Exponential where
open import Cats.Category
open import Model.RGraph as RG using (RGraph)
open import Model.Type.Core
open import Model.Product
open import Util.HoTT.HLevel
open import Util.Prelude hiding (_×_ ; id ; _∘_)
open RGraph
open RG._⇒_
private
var... |
Task/Non-decimal-radices-Input/Ada/non-decimal-radices-input.ada | mullikine/RosettaCodeData | 1 | 22938 | with Ada.Text_IO;
procedure Numbers is
package Int_IO is new Ada.Text_IO.Integer_IO (Integer);
package Float_IO is new Ada.Text_IO.Float_IO (Float);
begin
Int_IO.Put (Integer'Value ("16#ABCF123#"));
Ada.Text_IO.New_Line;
Int_IO.Put (Integer'Value ("8#7651#"));
Ada.Text_IO.New_Line;
Int_IO.Put (Inte... |
src/misc.asm | kshitej/HobOs | 9 | 240055 | <reponame>kshitej/HobOs<gh_stars>1-10
bits 32
section .text
;;; void loadGDT(gdt::GdtPtr*)
global loadGDT
loadGDT:
push eax
mov eax, [esp+0x8]
lgdt [eax]
pop eax
;; Reload CS register containing code selector.
;; We can't directly alter CS, so we far jump to change it
jmp 0x08:.rel... |
iod/pipe/version.asm | olifink/smsqe | 0 | 94721 | ; PIPE device versions
section version
xdef pipe_vers
; V2.00 first version!
;
; V2.01 named pipes added
;
; V2.02 PIPE_ and PIPE_0 treated as PIPE (Turbo bug)
;
; V2.03 error for unnamed PIPES introduced in V2.02 corrected
;
; V2.04 iob.smul into full pipe error corrected.
; iob.smul now atomic for named pipe.
;
... |
src/shaders/h264/mc/load_Intra_Ref_Y.asm | me176c-dev/android_hardware_intel-vaapi-driver | 192 | 86275 | <reponame>me176c-dev/android_hardware_intel-vaapi-driver<gh_stars>100-1000
/*
* Load all reference Y samples from neighboring macroblocks
* Copyright © <2010>, Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation file... |
Definition/LogicalRelation/Fundamental/Reducibility.agda | Vtec234/logrel-mltt | 0 | 1060 | <reponame>Vtec234/logrel-mltt
{-# OPTIONS --without-K --safe #-}
open import Definition.Typed.EqualityRelation
module Definition.LogicalRelation.Fundamental.Reducibility {{eqrel : EqRelSet}} where
open EqRelSet {{...}}
open import Definition.Untyped
open import Definition.Typed
open import Definition.LogicalRelation... |
judgemental-erase.agda | hazelgrove/hazelnut-agda | 0 | 5521 | open import Nat
open import Prelude
open import List
open import statics-core
-- erasure of cursor in the types and expressions is defined in the paper,
-- and in the core file, as a function on zexpressions. because of the
-- particular encoding of all the judgments as datatypes and the agda
-- semantics for pattern ... |
oeis/153/A153337.asm | neoneye/loda-programs | 11 | 13938 | ; A153337: Number of zig-zag paths from top to bottom of a 2n-1 by 2n-1 square whose color is that of the top right corner
; Submitted by <NAME>
; 1,4,24,136,720,3624,17584,83024,383904,1746280,7839216,34812144,153204064,669108496,2903267040,12526343584,53779871552,229895033832,978965187184,4154438114480,17575883030496... |
newton.g4 | khushmeeet/newton | 2 | 4028 | grammar newton;
tokens { INDENT, DEDENT }
@lexer::header {
import com.yuvalshavit.antlr4.DenterHelper;
}
@lexer::members {
private final DenterHelper newtonDenter = new DenterHelper(NL, newtonParser.INDENT, newtonParser.DEDENT)
{
@Override
public Token pullToken() {
return newtonLexer.super.next... |
oeis/000/A000389.asm | neoneye/loda-programs | 11 | 85090 | <reponame>neoneye/loda-programs<filename>oeis/000/A000389.asm
; A000389: Binomial coefficients C(n,5).
; 0,0,0,0,0,1,6,21,56,126,252,462,792,1287,2002,3003,4368,6188,8568,11628,15504,20349,26334,33649,42504,53130,65780,80730,98280,118755,142506,169911,201376,237336,278256,324632,376992,435897,501942,575757,658008,74939... |
Lambda/Substitution/Functional.agda | nad/codata | 1 | 14790 | <reponame>nad/codata<gh_stars>1-10
------------------------------------------------------------------------
-- Functional semantics and type soundness proof for an untyped
-- λ-calculus with constants
------------------------------------------------------------------------
module Lambda.Substitution.Functional where
... |
software/unittest/estimator/src/fakedev/nvram.adb | TUM-EI-RCS/StratoX | 12 | 1498 | <gh_stars>10-100
-- Institution: Technische Universitaet Muenchen
-- Department: Real-Time Computer Systems (RCS)
-- Project: StratoX
-- Authors: <NAME> (<EMAIL>)
with Interfaces; use Interfaces;
package body NVRAM with SPARK_Mode => On, -- Somehow this package includes interrupts, which are accesses
... |
Cubical/Categories/Limits/Terminal.agda | kl-i/cubical-0.4 | 0 | 2360 | <reponame>kl-i/cubical-0.4
{-# OPTIONS --safe #-}
module Cubical.Categories.Limits.Terminal where
open import Cubical.Foundations.Prelude
open import Cubical.Data.Sigma
open import Cubical.Foundations.HLevels
open import Cubical.Categories.Category
open import Cubical.Categories.Functor
private
variable
ℓ ℓ' :... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.