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/main/antlr4/nl/knaw/huc/di/tag/tagml/grammar/TAGMLParser.g4 | HuygensING/tagml | 2 | 5205 | parser grammar TAGMLParser;
options { tokenVocab=TAGMLLexer; }
document
: header whitespace? body whitespace? EOF
;
header
: (schemaLocation whitespace?)? ( namespaceDefinition whitespace? )*
;
body
: chunk+
;
namespaceDefinition
: DEFAULT_NamespaceOpener IN_NamespaceIdentifier IN_NamespaceURI IN_Nam... |
codetree-satrapa/src/main/grammar/common/FormattingArtifact.g4 | armange/java-codeless-core | 0 | 6753 | lexer grammar FormattingArtifact;
@header {package br.com.armange.codetree.satrapa.grammar.parser;}
WS : [ \t]+ -> skip ;
fragment
UC_LETTER : [A-Z] ;
LC_LETTER : [a-z] ;
NUMBER : [0-9] ;
UNDERSCORE : [_]; |
src/util/oli/app/ariadr.asm | olifink/qspread | 0 | 88443 | <reponame>olifink/qspread
; get item address in 2dim string array
include win1_mac_oli
include win1_keys_err
section utility
xdef ut_ariadr
;+++
; get item address in 2dim string array
;
; Entry Exit
; d1.l array type (0=abs,1=rel) ... |
Task/Boolean-values/AppleScript/boolean-values-4.applescript | LaudateCorpus1/RosettaCodeData | 1 | 1590 | <reponame>LaudateCorpus1/RosettaCodeData
sortItems from L with reversal
|
special_keys/next_track.scpt | caius/special_keys | 0 | 3611 | -- Define apps in order you want them to respond
if application "iTunes" is running then
tell application "iTunes"
next track
play -- Mirror spotify behaviour, if not playing then start playing
return "itunes"
end tell
end if
|
WebAppsGenerator.Core/Grammar/SneakLexer.g4 | drajwer/web-apps-generator | 0 | 1397 | lexer grammar SneakLexer;
tokens { INDENT, DEDENT }
@lexer::members
{
// Source: https://github.com/wevrem/wry/blob/master/grammars/DentLexer.g4
// Initializing `pendingDent` to true means any whitespace at the beginning
// of the file will trigger an INDENT, which is a syntax error
private bool pendingDent = t... |
grammar/Tamizh.g4 | MannarAmuthan/Anicham | 0 | 2776 | <filename>grammar/Tamizh.g4
/**
* @author <NAME>
Tamizh antlr4 grammar
*/
grammar Tamizh;
@header {
package grammar;
}
tamizh_script: patthi+ EOF;
patthi: vaakiyam+ NEWLINE;
vaakiyam : sol+ STOP_POINT WS;
sol : ezhuththu+ (COMMA | WS)*;
ezhuththu: UYIR
| MEI
| AAYTHAM
| UYIR_MEI_OU... |
programs/oeis/143/A143098.asm | jmorken/loda | 1 | 85642 | <filename>programs/oeis/143/A143098.asm
; A143098: First differences of A143097.
; 1,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1,2,2,-1
mov $2,$0
lpb $0
mul $2,$0
sub $0,$2
mod $0,3
mov $1,$0
mo... |
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_enmy14.asm | prismotizm/gigaleak | 0 | 243214 | Name: ys_enmy14.asm
Type: file
Size: 100036
Last-Modified: '2016-05-13T04:51:45Z'
SHA-1: B248E5BADBF1152D740E4DF6CC99E334A0ED5E0F
Description: null
|
libsrc/adt/heap/ADTHeapAdd.asm | jpoikela/z88dk | 640 | 173817 | <filename>libsrc/adt/heap/ADTHeapAdd.asm
; void adt_HeapAdd(void *item, void **array, uint n, void *compare)
; 08.2005 aralbrec
SECTION code_clib
PUBLIC ADTHeapAdd
EXTERN ADTHeapSiftUp
; enter: HL = N+1 (number of items in array after this one added)
; BC = array address
; DE = &item
; IX = c... |
programs/oeis/105/A105638.asm | karttu/loda | 1 | 10415 | <filename>programs/oeis/105/A105638.asm<gh_stars>1-10
; A105638: Maximum number of intersections in self-intersecting n-gon.
; 0,1,5,7,14,17,27,31,44,49,65,71,90,97,119,127,152,161,189,199,230,241,275,287,324,337,377,391,434,449,495,511,560,577,629,647,702,721,779,799,860,881,945,967,1034,1057,1127,1151,1224,1249,1325,... |
test/succeed/Issue376Loop.agda | larrytheliquid/agda | 1 | 7326 | <gh_stars>1-10
-- 2014-01-01 Andreas, test case constructed by <NAME>
{-# OPTIONS --allow-unsolved-metas #-}
-- unguarded recursive record
record R : Set where
constructor cons
field
r : R
postulate F : (R → Set) → Set
q : (∀ P → F P) → (∀ P → F P)
q h P = h (λ {(cons x) → {!!}})
-- ISSUE WAS: Bug in imple... |
Source/Levels/L0304.asm | AbePralle/FGB | 0 | 23566 | ; L0304.asm pansies eat shrooms
; Generated 08.03.2000 by mlevel
; Modified 08.03.2000 by <NAME>
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
INCLUDE "Source/Items.inc"
;---------------------------------------------------------------------
SECTION "Level0304Section",ROMX
;----------------------------------... |
asm/32bit-main.asm | soragui/makeOS | 0 | 85199 |
[org 0x7C00] ; bootloader offset
mov bp, 0x9000 ; set the stack
mov sp, bp
mov bx, MSG_REAL_MODE
call print
call print_nl
call switch_to_pm
jmp $
%include 'boot_sect_print.asm'
%include '32bit-switch.asm'
%include '32bit-print.asm'
%include '32bit-gdt.asm'
[bits 32]
BEGIN_PM:
mov e... |
src/ui/errordialog.adb | thindil/steamsky | 80 | 11096 | -- Copyright (c) 2020-2021 <NAME> <<EMAIL>>
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is... |
data/mapObjects/lab1.asm | adhi-thirumala/EvoYellow | 16 | 242972 | Lab1Object:
db $17 ; border block
db $5 ; warps
db $7, $2, $2, $ff
db $7, $3, $2, $ff
db $4, $8, $0, CINNABAR_LAB_2
db $4, $c, $0, CINNABAR_LAB_3
db $4, $10, $0, CINNABAR_LAB_4
db $4 ; signs
db $2, $3, $2 ; Lab1Text2
db $4, $9, $3 ; Lab1Text3
db $4, $d, $4 ; Lab1Text4
db $4, $11, $5 ; Lab1Text5
db $1 ; ... |
libsrc/math/zxmath/log10.asm | meesokim/z88dk | 0 | 83895 | ;
;
; ZX Maths Routines
;
; 10/12/02 - <NAME>
;
; $Id: log10.asm,v 1.3 2015/01/19 01:32:57 pauloscustodio Exp $
;
;double log10(double) -- 1/ln(10)
;Number in FA..
IF FORzx
INCLUDE "zxfp.def"
ELSE
INCLUDE "81fp.def"
ENDIF
PUBLIC log10
EXTERN fsetup1
... |
main.asm | TobiasKaiser/ahci_sbe | 2 | 240176 | ; main.asm -- ahci_sbe main file generating PCI option ROM header structures,
; performing basic initialization, %includes all other asm source files
; Copyright (C) 2014, 2016 <NAME> <<EMAIL>>
org 0
rom_size_multiple_of equ 512
bits 16
; PCI Expansion Rom Header
; ------------------------
db 0x55, 0xAA ... |
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_2207.asm | ljhsiun2/medusa | 9 | 9509 | <reponame>ljhsiun2/medusa<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x6785, %rdx
nop
nop
inc %r8
movb $0x61, (%rdx)
nop
nop
nop
nop
nop
sub $50758, %rax
lea addresses_UC_ht+0x49cb, %rcx
nop
cmp $37212, %r... |
source/nodes/program-element_vector_factories.adb | optikos/oasis | 0 | 8787 | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Nodes.Array_Component_Association_Vectors;
with Program.Nodes.Aspect_Specification_Vectors;
with Program.Nodes.Element_Vectors;
with Progr... |
include/bits_sched_h.ads | docandrew/troodon | 5 | 7660 | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
package bits_sched_h is
SCHED_OTHER : constant := 0; -- /usr/include/bits/sched.h:28
SCHED_FIFO : constant := 1; -- /usr/include/bits/sched.h:29
SCHED_RR : constant := 2; -- /usr/include/bits/sched.h:30
S... |
programs/oeis/062/A062816.asm | jmorken/loda | 1 | 20553 | ; A062816: a(n) = phi(n)*tau(n) - 2n = A000010(n)*A000005(n) - 2*n.
; -1,-2,-2,-2,-2,-4,-2,0,0,-4,-2,0,-2,-4,2,8,-2,0,-2,8,6,-4,-2,16,10,-4,18,16,-2,4,-2,32,14,-4,26,36,-2,-4,18,48,-2,12,-2,32,54,-4,-2,64,28,20,26,40,-2,36,50,80,30,-4,-2,72,-2,-4,90,96,62,28,-2,56,38,52,-2,144,-2,-4,90,64,86,36,-2,160,108,-4,-2,120,86,... |
prototyping/Luau/Heap.agda | TheGreatSageEqualToHeaven/luau | 1 | 12070 | {-# OPTIONS --rewriting #-}
module Luau.Heap where
open import Agda.Builtin.Equality using (_≡_; refl)
open import FFI.Data.Maybe using (Maybe; just; nothing)
open import FFI.Data.Vector using (Vector; length; snoc; empty; lookup-snoc-not)
open import Luau.Addr using (Addr; _≡ᴬ_)
open import Luau.Var using (Var)
open... |
dv3/java/hd/ckwp.asm | olifink/smsqe | 0 | 171675 | <filename>dv3/java/hd/ckwp.asm<gh_stars>0
; DV3 JAVA HDD Check Write Protect V1.00 @ <NAME> 2014
; based on
; DV3 QXL Hard Disk Check Write Protect V3.00 1993 <NAME>
section dv3
xdef hd_ckwp
include 'dev8_keys_java'
include 'dev8_dv3_keys'
;+++
; Check write protect, density: does dothing
;
;
; a3 c p po... |
libmikeos/src.os/os_print_digit.asm | mynameispyo/InpyoOS | 0 | 91343 | <filename>libmikeos/src.os/os_print_digit.asm<gh_stars>0
; @@@ void mikeos_print_digit(unsigned char value);
%include "os_vector.inc"
section .text
use16
global _mikeos_print_digit
_mikeos_print_digit:
mov bx, sp
mov al, [ss:bx + 2]
mov bx, os_print_digit
call bx
ret
|
src/sqlite/ado-statements-sqlite.adb | Letractively/ada-ado | 0 | 3211 | -----------------------------------------------------------------------
-- ADO Databases -- Database connections
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
-- Written by <NAME> (<EMAIL>)
--
-- This file is part of ADO.
--
-- This program is free software; you can redistribute it a... |
src/ewok-isr.adb | PThierry/ewok-kernel | 65 | 2180 | --
-- Copyright 2018 The wookey project team <<EMAIL>>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http... |
examples/writer/hello/hello.asm | CrackerCat/COFFI | 110 | 89757 | ; This program serves as an example for coding the writer.cpp example
.386 ; For 80386 CPUs or higher.
.model flat, stdcall ; Windows is always the 32-bit FLAT model
option casemap:none ; Masm32 will use case-sensitive labels.
.data
MyBoxText db "Hello World!",0
.code
MyMsgBox:
Mess... |
libsrc/_DEVELOPMENT/target/yaz180/driver/ide/ide_soft_reset.asm | jpoikela/z88dk | 640 | 29742 | <reponame>jpoikela/z88dk
SECTION code_driver
PUBLIC ide_soft_reset
EXTERN __IO_IDE_CONTROL
EXTERN ide_wait_ready
EXTERN ide_write_byte
;------------------------------------------------------------------------------
; Routines that talk with the IDE drive, these should be called by
; the main program.
; by writin... |
Task/Thieles-interpolation-formula/Ada/thieles-interpolation-formula-1.ada | LaudateCorpus1/RosettaCodeData | 1 | 4160 | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Numerics.Generic_Real_Arrays;
generic
type Real is digits <>;
package Thiele is
package Real_Arrays is new Ada.Numerics.Generic_Real_Arrays (Real);
subtype Real_Array is Real_Arrays.Real_Vector;
type Thiele_Interpolation (Length : Natural) is private;
... |
src/ewok-posthook.adb | PThierry/ewok-kernel | 65 | 17186 | <filename>src/ewok-posthook.adb
--
-- Copyright 2018 The wookey project team <<EMAIL>>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy ... |
libsrc/graphics/zx81/hr/mt_hardcopy.asm | jpoikela/z88dk | 640 | 98355 | ;
; Copy the graphics area to the zx printer
;
; <NAME>, 2018
;
;
; $Id: mt_hardcopy.asm $
;
SECTION code_clib
PUBLIC zx_hardcopy
PUBLIC _zx_hardcopy
EXTERN zx_fast
EXTERN zx_slow
.zx_hardcopy
._zx_hardcopy
CALL zx_fast
; REGISTER B = 64 OR 192 LINES (192 X LOOP1)
IF FORzx81mt64
l... |
huffman/huffman-tree.agda | rfindler/ial | 29 | 15490 | module huffman-tree where
open import lib
data huffman-tree : Set where
ht-leaf : string → ℕ → huffman-tree
ht-node : ℕ → huffman-tree → huffman-tree → huffman-tree
-- get the frequency out of a Huffman tree
ht-frequency : huffman-tree → ℕ
ht-frequency (ht-leaf _ f) = f
ht-frequency (ht-node f _ _) = f
-- lower... |
libsrc/target/g800/lcd_contrast.asm | jpoikela/z88dk | 640 | 26030 | ;
; G850 library
;
;--------------------------------------------------------------
;
; $Id: lcd_contrast.asm $
;
;----------------------------------------------------------------
;
; lcd_contrast(x) - set LCD contrast (0..17)
;
;----------------------------------------------------------------
SECTI... |
linux32/libs/stdlib.asm | amittaigames/asmgame | 0 | 100182 | <gh_stars>0
; Standard library
; Linux 32 bit
;----------------------------------------------------------------------
; SYSTEM CALLS
;----------------------------------------------------------------------
SYS_EXIT: equ 0x0001
SYS_READ: equ 0x0003
SYS_WRITE: equ 0x0004
;----------------... |
corpus/antlr4/training/T.g4 | antlr/groom | 408 | 3805 | grammar T;
a : A ;
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca.log_21829_932.asm | ljhsiun2/medusa | 9 | 101087 | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %r9
push %rcx
push %rdx
// Faulty Load
lea addresses_PSE+0x1f924, %rdx
nop
nop
nop
nop
add $45772, %r12
vmovups (%rdx), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $0, %xmm1, %r14
lea oracles, ... |
programs/oeis/068/A068952.asm | neoneye/loda | 22 | 5222 | <filename>programs/oeis/068/A068952.asm<gh_stars>10-100
; A068952: Squares in A068949.
; 1,4,9,16,36,49,64,81,100,121,144,196
mul $0,2
seq $0,225875 ; We write the 1 + 4*k numbers once and twice the others.
add $1,$0
pow $1,2
mov $0,$1
|
libsrc/_DEVELOPMENT/adt/wv_stack/c/sccz80/wv_stack_max_size.asm | jpoikela/z88dk | 640 | 24965 |
; size_t wv_stack_max_size(wv_stack_t *s)
SECTION code_clib
SECTION code_adt_wv_stack
PUBLIC wv_stack_max_size
EXTERN asm_wv_stack_size
defc wv_stack_max_size = asm_wv_stack_size
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _wv_stack_max_size
defc _wv_stack_max_size = wv_stack_max_size
ENDIF
|
Task/Visualize-a-tree/AppleScript/visualize-a-tree.applescript | LaudateCorpus1/RosettaCodeData | 1 | 1518 | -- Vertically centered textual tree using UTF8 monospaced
-- box-drawing characters, with options for compacting
-- and pruning.
-- ┌── Gamma
-- ┌─ Beta ┼── Delta
-- │ └ Epsilon
-- Alpha ┼─ Zeta ───── Eta
-- │ ┌─── Iota
-- └ Theta ┼── Kappa
-- └─ Lambda
... |
Applications/Sublime-Text/open/open.applescript | looking-for-a-job/applescript-examples | 1 | 2317 | #!/usr/bin/osascript
tell application "Sublime Text 2"
#open {"/Users/user/git/2288960", "/Users/user/git/3889945"}
end tell
tell application "Sublime Text 2"
#open "/Users/user/git/2288960"
end tell
tell application "Finder"
set l to {}
repeat with s in (get selection)
set end of l to s as alias
end repea... |
oeis/072/A072223.asm | neoneye/loda-programs | 11 | 27204 | <gh_stars>10-100
; A072223: Decimal expansion of unimodal analog of golden section with respect to A072176: a=lim A072176(n)/A072176(n+1).
; Submitted by <NAME>
; 5,2,4,8,8,8,5,9,8,6,5,6,4,0,4,7,9,3,8,9,9,4,8,6,1,3,8,5,4,1,2,8,3,9,1,5,6,9,0,3,4,2,9,4,7,7,3,9,3,4,2,1,5,9,6,5,3,1,4,2,1,6,4,2,1,1,8,5,8,0,6,8,6,5,8,4,4,4,4... |
adium/ASUnitTests/GetWindowName.applescript | sin-ivan/AdiumPipeEvent | 0 | 2264 | <reponame>sin-ivan/AdiumPipeEvent<filename>adium/ASUnitTests/GetWindowName.applescript
global HandyAdiumScripts
on run
tell application "Adium"
if (get name of window "Contacts") is not "Contacts" then
--this is actually indicative of complicated AS problem
--It will most likely involve changing the sdef so t... |
bc_antlr4/bc.g4 | malkiewiczm/bc_implementation | 0 | 750 | grammar bc;
@header {
import java.util.Map;
import java.util.TreeMap;
import java.util.Deque;
import java.util.LinkedList;
}
@members {
Map<String, Integer> functionNames = new TreeMap<>();
Deque<mJmp> breakJmp = new LinkedList<mJmp>();
Deque<mJmp> continueJmp = new LinkedList<mJmp>();
}
... |
Ejemplos y Utilidades/ejemplos mikroC/ejemplo timer0/timer0.asm | DAFRELECTRONICS/ThunderBolt | 1 | 84415 | <gh_stars>1-10
_interrupt:
;timer0.c,7 :: void interrupt()
;timer0.c,9 :: if (INTCON.f2 == 1)
BTFSS INTCON+0, 2
GOTO L_interrupt0
;timer0.c,11 :: T0CON.f7 = 0;
BCF T0CON+0, 7
;timer0.c,12 :: INTCON.f2 = 0;
BCF INTCON+0, 2
;timer0.c,13 :: TMR0H = 0;
CLRF TMR0H+0
;... |
addrs_xv6.asm | adrianna157/CS444-Lab5-Mutexes | 0 | 174336 | <gh_stars>0
_addrs_xv6: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
static int int_data = -1;
static const char str[] = "hello world";
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 56 ... |
Task/Arrays/Ada/arrays.ada | LaudateCorpus1/RosettaCodeData | 1 | 10441 | procedure Array_Test is
A, B : array (1..20) of Integer;
-- Ada array indices may begin at any value, not just 0 or 1
C : array (-37..20) of integer
-- Ada arrays may be indexed by enumerated types, which are
-- discrete non-numeric types
type Days is (Mon, Tue, Wed, Thu, Fri, Sat, Sun);
type Ac... |
programs/oeis/195/A195437.asm | neoneye/loda | 22 | 91169 | ; A195437: Triangle formed by: 1 even, 2 odd, 3 even, 4 odd... starting with 2.
; 2,5,7,10,12,14,17,19,21,23,26,28,30,32,34,37,39,41,43,45,47,50,52,54,56,58,60,62,65,67,69,71,73,75,77,79,82,84,86,88,90,92,94,96,98,101,103,105,107,109,111,113,115,117,119,122,124,126,128,130,132,134,136,138,140,142,145,147,149,151,153,15... |
Assembler_v2/KPU.Assembler.Implementation/ANTLR/LowLevelAssembly.g4 | KPU-RISC/KPU | 8 | 3582 | grammar LowLevelAssembly;
/* Entry Point */
program: (opcode | NEWLINE)+;
opcode:
/* SET opcode */
SET register_ab ',' '"' FourBitBinaryValue '"' # SET /* SET A, "1010" */
| SET register_ab ',' '"' FourBitBinaryValue '"' JumpLabel int # SET /* SET A, "1010":JUMP_ADDRESS_MARKER */
/* ALU IN/OUT ... |
alloy4fun_models/trashltl/models/4/Kr5Kcj2zKEbbKpNrf.als | Kaixi26/org.alloytools.alloy | 0 | 3690 | open main
pred idKr5Kcj2zKEbbKpNrf_prop5 {
eventually no Trash
}
pred __repair { idKr5Kcj2zKEbbKpNrf_prop5 }
check __repair { idKr5Kcj2zKEbbKpNrf_prop5 <=> prop5o } |
src/pointed/core.agda | pcapriotti/agda-base | 20 | 2608 | {-# OPTIONS --without-K #-}
module pointed.core where
open import sum
open import equality.core
open import function.core
open import function.isomorphism.core
PSet : ∀ i → Set _
PSet i = Σ (Set i) λ X → X
PMap : ∀ {i j} → PSet i → PSet j → Set _
PMap (X , x) (Y , y) = Σ (X → Y) λ f → f x ≡ y
_∘P_ : ∀ {i j k}{𝓧 : ... |
test/test67.asm | bitwiseworks/nasm-os2 | 3 | 178230 | ;Testname=unoptimized; Arguments=-fbin -otest67.bin -O0; Files=stdout stderr test67.bin
;Testname=optimized; Arguments=-fbin -otest67.bin -Ox; Files=stdout stderr test67.bin
bits 16
mov ax,[bx]
mov ax,[foo]
mov ax,[word foo]
mov ax,[dword foo]
mov ax,[ebx]
rep movsb
a16 rep movsb
a32 rep movsb
... |
Code/boot.asm | Paulo-player/-Paulo-player-PauloRamsesValeria_FinalProject_OS_RR_2021 | 2 | 246950 | org 0x7C00 ;Endereço carregado pela BIOS
bits 16 ;Arquitetura de 16 bits
start:
cli ;Desabilita as interrupções
mov si, msg ;ponteiro SI guarda oo endereço de msg
mov ah, 0x0E ;print char
.loop lodsb ;Carrega ... |
mmpd-lib/src/focus/mac_os/get_window_info.scpt | michd/midi-macro-pad | 1 | 1903 | #!/usr/bin/osascript
-- With thanks to this StackOverflow answer by Albert
-- https://stackoverflow.com/a/5293758/1019228
global frontApp, frontAppName, frontAppClass, windowTitle, executablePath
set windowTitle to ""
tell application "System Events"
-- Get the focused application
set frontApp to first applic... |
Task/GUI-enabling-disabling-of-controls/Ada/gui-enabling-disabling-of-controls.ada | LaudateCorpus1/RosettaCodeData | 1 | 4107 | <reponame>LaudateCorpus1/RosettaCodeData<filename>Task/GUI-enabling-disabling-of-controls/Ada/gui-enabling-disabling-of-controls.ada<gh_stars>1-10
with Ada.Strings.Fixed;
with Gtk.Main;
with Gtk.Handlers;
with Gtk.Button;
with Gtk.Window;
with Gtk.GEntry;
with Gtk.Editable;
with Gtk.Box;
with Gtk.Widget;
with Glib.Valu... |
programs/oeis/076/A076508.asm | neoneye/loda | 22 | 22326 | ; A076508: Expansion of 2*x*(1+4*x+8*x^2)/(1-24*x^3).
; 2,8,16,48,192,384,1152,4608,9216,27648,110592,221184,663552,2654208,5308416,15925248,63700992,127401984,382205952,1528823808,3057647616,9172942848,36691771392,73383542784,220150628352,880602513408
add $0,6
mov $1,3
lpb $0
sub $0,1
add $2,1
mul $1,$2
dif $... |
Tests/IO/Ptr.e.asm | lehtojo/Evie | 12 | 11167 | .intel_syntax noprefix
.global _Z4mainv
.global _Z10Start_Testv
.section .text #.text
_Z10Start_Testv:
sub rsp, 44 #.STACK, 44
mov dword ptr [rsp + 0 ], 10 #.STACK_0, 10
lea rcx, qword ptr [rsp + 0 ] #val_REG0, .STACK_0
mov qword ptr [rsp + 4 ], rcx #.STACK_4, val_REG0
lea rcx, qword ptr [rsp + 4 ] #a_RE... |
oeis/216/A216131.asm | neoneye/loda-programs | 11 | 99174 | ; A216131: a(n) = 11^n mod 1000.
; Submitted by <NAME>
; 1,11,121,331,641,51,561,171,881,691,601,611,721,931,241,651,161,771,481,291,201,211,321,531,841,251,761,371,81,891,801,811,921,131,441,851,361,971,681,491,401,411,521,731,41,451,961,571,281,91,1,11,121,331,641,51,561,171,881,691,601,611,721,931,241,651,161,771,48... |
libsrc/zx81/tape/tape_load_block_callee.asm | teknoplop/z88dk | 0 | 32 | <gh_stars>0
;
; Tape load routine
;
;
; int __CALLEE__ tape_load_block_callee(void *addr, size_t len, unsigned char type)
;
;
; $Id: tape_load_block_callee.asm,v 1.6 2015/08/11 07:16:36 stefano Exp $
;
PUBLIC tape_load_block_callee
PUBLIC ASMDISP_TAPE_LOAD_BLOCK_CALLEE
EXTERN zx_fast
EXTERN zx_slow
; Ver... |
src/bin/simple-game/asm/hello-world.asm | gregtatum/cpu-6502-rs | 0 | 175681 | ; https://skilldrick.github.io/easy6502/
; by <NAME>, licensed under CC BY 4.0
lda #$01
sta $0200
lda #$05
sta $0201
lda #$08
sta $0202
|
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/scalbln.asm | meesokim/z88dk | 0 | 245869 |
SECTION code_fp_math48
PUBLIC _scalbln
EXTERN cm48_sdcciy_scalbln
defc _scalbln = cm48_sdcciy_scalbln
|
text/randomString.applescript | adriannier/applescript-functions | 7 | 4708 | <reponame>adriannier/applescript-functions
set str to randomString(64)
set the clipboard to str
on randomString(stringSize)
(* Generate a UUID compliant with RFC 4122v4 *)
set disabled to "!|l0OI12Z5S8B"
set allowed to "!#$%&()+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^abcdefghijklmnopqrstuvwxyz{|}~"
... |
assembly_code/Test_Program1.asm | jquinonezb/Equipo_6 | 0 | 9850 | MAIN:
addi $t1,$zero,3
addi $t2,$zero,7
addi $t3,$zero,1
add $t1,$t1,$t1
add $t2,$t2,$t1
add $t3,$t2,$t1
|
Playbox.widget/lib/Get Current Track.applescript | vyder/uebersicht-widgets | 0 | 400 | <reponame>vyder/uebersicht-widgets<filename>Playbox.widget/lib/Get Current Track.applescript
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
global artistName, songName, albumName, songRating, songDuration, currentPosition, musicapp, apiKey, songMetaFile, mypath, currentCoverURL
prop... |
programs/oeis/160/A160467.asm | karttu/loda | 1 | 8405 | <gh_stars>1-10
; A160467: a(n) = 1 if n is odd; otherwise, a(n) = 2^(k-1) where 2^k is the largest power of 2 that divides n.
; 1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,8,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,16,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,8,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,32,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,8,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,... |
test/ctestc/src/ctestc.adb | ficorax/PortAudioAda | 2 | 17633 | with Ada.Command_Line;
with Ada.Long_Float_Text_IO; use Ada.Long_Float_Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Text_IO; use Ada.Text_IO;
with System; use System;
with PortAudioAda; use PortAudioAda;
with Ctestc_Types; use Ctestc_Types;
with Ctestc_Callbacks; use Ctestc_Callbacks;
procedu... |
Library/Spool/Process/processCustom.asm | steakknife/pcgeos | 504 | 167565 | <reponame>steakknife/pcgeos
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: processCustom.asm
AUTHOR: <NAME>
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date D... |
oeis/198/A198849.asm | neoneye/loda-programs | 11 | 27749 | <reponame>neoneye/loda-programs
; A198849: a(n) = (11*6^n - 1)/5.
; Submitted by <NAME>
; 2,13,79,475,2851,17107,102643,615859,3695155,22170931,133025587,798153523,4788921139,28733526835,172401161011,1034406966067,6206441796403,37238650778419,223431904670515,1340591428023091,8043548568138547,48261291408831283,289567748... |
src/apsepp-test_event_class-generic_exception_mixin.ads | thierr26/ada-apsepp | 0 | 6060 | <filename>src/apsepp-test_event_class-generic_exception_mixin.ads<gh_stars>0
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
generic
type Parent is abstract new Test_Event_Base with private;
package Apsepp.Test_Event_Class.Generic_Exception_Mixin is
type Child_W_Exceptio... |
3-mid/opengl/source/lean/text/private/opengl-glyphimpl.ads | charlie5/lace | 20 | 497 | <reponame>charlie5/lace
with
freetype_C.FT_GlyphSlot;
package openGL.GlyphImpl
--
-- Implements an openGL glyph.
--
is
type Item is tagged private;
type View is access all Item'Class;
---------
-- Types
--
subtype error_Kind is freetype_C.FT_Error;
no_Error : constant error_Kind;
--... |
tst/8080int.asm | 1801BM1/vm80a | 131 | 82363 | title 'Preliminary 8080 interrupt tests'
fault equ 8000h
.8080
aseg
org 0h
begin: jmp start
org 8h
vect1: jmp fault+$
org 10h
vect2: jmp fault+$
org 18h
vect3: jmp fault+$
org 20h
vect4: ei
ret
org 28h
vect5: jmp fault+$
org 30h
vect6: jmp fault+$
org 38h
vect7: jmp fault+$
org 100h
sta... |
fsm/Fsm.g4 | jgoppert/fsm | 2 | 5672 | <filename>fsm/Fsm.g4
grammar Fsm;
fsm_main: fsm_state+;
fsm_state : 'STATE' ID '{'
fsm_transition*
'}'
;
fsm_transition : 'TRANSITION' ID '{'
fsm_guard*
'}';
fsm_expr: fsm_expr fsm_op=('*'|'/') fsm_expr # MulDiv
| fsm_expr fsm_op=('+'|'-') fsm_expr # AddSub
| INT ... |
libsrc/_DEVELOPMENT/adt/p_forward_list/c/sccz80/p_forward_list_empty.asm | teknoplop/z88dk | 8 | 1770 | <gh_stars>1-10
; int p_forward_list_empty(p_forward_list_t *list)
SECTION code_clib
SECTION code_adt_p_forward_list
PUBLIC p_forward_list_empty
EXTERN asm_p_forward_list_empty
defc p_forward_list_empty = asm_p_forward_list_empty
|
programs/oeis/237/A237886.asm | jmorken/loda | 1 | 91870 | <reponame>jmorken/loda
; A237886: Side length of smallest square containing n dominoes with short side lengths 1, 2, ..., n.
; 0,2,4,6,8,11,14,17,21,24,28,32,37,41,46,50,55,60,66,71
mov $1,3
mov $2,$0
mov $4,4
mov $7,$0
lpb $2
add $4,$0
lpb $4
mov $1,$0
mov $3,$0
mov $4,$0
add $5,1
mov $6,11
... |
tools/asmx2/test/6805.asm | retro16/blastsdk | 10 | 167205 | <filename>tools/asmx2/test/6805.asm
; 6805.asm
dir EQU 'D'
imm EQU 'I'
ix1 EQU 'X'
ix2 EQU 'X2'
ext EQU 'EX'
BRSET 0 dir . ; 00 44 FE
BRCLR 0 dir . ; 01 44 FE
BRSET 1 dir . ; 02 44 FE
BRCLR 1 dir . ; 03 44 FE
BRSET 2 dir . ; 04 44 FE
BRCLR 2 dir . ; 05 44 FE
BRSET 3 dir . ; 06 44 FE
BRCLR 3 dir . ; 07 44 FE
... |
3-mid/opengl/private/freetype/source/thin/freetype_c-ft_face.ads | charlie5/lace | 20 | 17396 | with
freetype_c.Pointers;
package freetype_c.FT_Face
is
subtype Item is Pointers.FT_FaceRec_Pointer;
type Item_array is array (C.Size_t range <>) of aliased FT_Face.Item;
type Pointer is access all FT_Face.Item;
type Pointer_array is array (C.Size_t range <>) of aliased FT_Face.Point... |
oeis/173/A173142.asm | neoneye/loda-programs | 11 | 28460 | ; A173142: a(n) = n^n - (n-1)^(n-1) - (n-2)^(n-2) - ... - 1.
; Submitted by <NAME>
; 1,3,22,224,2837,43243,773474,15903604,369769661,9594928683,274906599294,8620383706328,293663289402069,10799919901775579,426469796631518922,17997426089579351788,808344199828497012733,38500271751352361059803,1938227111261072875032934,102... |
libsrc/_DEVELOPMENT/l/sccz80/9-common/i32/l_long_rl_mhl.asm | ahjelm/z88dk | 4 | 21917 | <reponame>ahjelm/z88dk
; Z88 Small C+ Run Time Library
; Long functions
;
; feilipu 10/2021
SECTION code_clib
SECTION code_l_sccz80
PUBLIC l_long_rl_mhl
;primary = primary<<1
;enter with primary in (hl)
.l_long_rl_mhl
ld a,(hl)
rla
ld (hl),a
inc hl
ld a,(... |
tier-1/xcb/source/thin/xcb-xcb_segment_t.ads | charlie5/cBound | 2 | 16646 | -- This file is generated by SWIG. Please do not modify by hand.
--
with Interfaces;
with Interfaces.C;
with Interfaces.C.Pointers;
package xcb.xcb_segment_t is
-- Item
--
type Item is record
x1 : aliased Interfaces.Integer_16;
y1 : aliased Interfaces.Integer_16;
x2 : aliased Interfaces.In... |
agda/HITs/PropositionalTruncation/Sugar.agda | oisdk/combinatorics-paper | 0 | 11044 | <filename>agda/HITs/PropositionalTruncation/Sugar.agda
{-# OPTIONS --cubical --safe #-}
module HITs.PropositionalTruncation.Sugar where
open import Cubical.HITs.PropositionalTruncation
open import Level
_=<<_ : ∀ {a} {A : Type a} {b} {B : ∥ A ∥ → Type b}
→ ((x : A) → ∥ B ∣ x ∣ ∥) → (xs : ∥ A ∥) → ∥ B xs ∥
_=<<... |
engine/events/fish.asm | genterz/pokecross | 28 | 25199 | <reponame>genterz/pokecross
Fish:
; Using a fishing rod.
; Fish for monsters with rod e in encounter group d.
; Return monster e at level d.
push af
push bc
push hl
ld b, e
call GetFishGroupIndex
ld hl, FishGroups
rept FISHGROUP_DATA_LENGTH
add hl, de
endr
call .Fish
pop hl
pop bc
pop af
ret
.Fish:
; F... |
programs/oeis/184/A184549.asm | neoneye/loda | 22 | 241530 | <gh_stars>10-100
; A184549: Super-birthdays (falling on the same weekday), version 1 (birth within the year following a February 29).
; 0,6,17,23,28,34,45,51,56,62,73,79,84,90,101,107,112,118,129,135,140,146,157,163,168,174,185,191,196,202,213,219,224,230,241,247,252,258,269,275,280,286,297,303,308,314
add $0,15
seq $... |
src/kernel/kernel_entry.asm | Dudejoe870/FunOS | 2 | 11559 | <reponame>Dudejoe870/FunOS
[bits 32]
global _start
_start:
[extern kernel_main]
call kernel_main
jmp $ |
oeis/311/A311804.asm | neoneye/loda-programs | 11 | 163856 | <reponame>neoneye/loda-programs<gh_stars>10-100
; A311804: Coordination sequence Gal.6.216.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by <NAME>(s2)
; 1,4,8,13,17,21,25,29,33,38,42,46,50,54,59,63,67,71,75,79,84,88,92,... |
ASM/src/chests.asm | denoflionsx/OoT-Randomizer | 83 | 29154 | <filename>ASM/src/chests.asm
GET_CHEST_OVERRIDE_WRAPPER:
sb t9,0x01E9(s0)
addiu sp, sp, -0x20
sw ra, 0x04 (sp)
sw a0, 0x08 (sp)
sw a1, 0x0C (sp)
sw t0, 0x10 (sp)
swc1 $f10, 0x14 (sp)
swc1 $f16, 0x18 (sp)
jal get_chest_override
move a0, s0
... |
build-compilation.ads | annexi-strayline/AURA | 13 | 19980 | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
programs/oeis/026/A026535.asm | karttu/loda | 0 | 99362 | <filename>programs/oeis/026/A026535.asm
; A026535: a(n) = t(1+5n) where t = A001285 (Thue-Morse sequence).
; 2,1,2,2,2,2,2,1,2,1,1,2,2,1,1,2,2,1,2,1,1,1,1,1,2,1,2,1,1,2,2,1,2,1,2,2,2,2,2,2,1,2,2,1,1,1,1,2,2,1,2,2,2,2,2,2,1,2,1,2,2,1,1,2,2,1,2,2,2,2,2,1,2,1,1,2,2,2,2,1,1,2,1,2,2,2,2,2,1,2
mul $0,10
add $0,3
mov $1,$0
l... |
reuse/Pointers.asm | William0Friend/my_masm | 0 | 4245 | <reponame>William0Friend/my_masm
; Pointers (Pointers.asm)
; Demonstration of pointers and TYPEDEF.
.386
.model flat,stdcall
.stack 4096
ExitProcess PROTO, dwExitCode:dword
; Create user-defined types.
PBYTE TYPEDEF PTR BYTE ; pointer to bytes
PWORD TYPEDEF PTR WORD ; pointer to words
PDWORD TYPEDEF ... |
bssn/code/bssninitial.adb | leo-brewin/adm-bssn-numerical | 1 | 26829 | with Ada.Text_IO; use Ada.Text_IO;
-- for access to Halt
with Support;
-- for parsing of the command line arguments
with Support.RegEx; use Support.RegEx;
with Support.CmdLine; use Support.CmdLine;
-- for setup of initial data
with BSSNBase; use BSSNBase;
with BSSNBase.In... |
arch/ARM/cortex_m/src/semihosting-filesystem.adb | morbos/Ada_Drivers_Library | 2 | 26802 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
Examples/Q4.asm | Pyxxil/rust-lc3-as | 3 | 179524 | <filename>Examples/Q4.asm
;
; Initialization
;
.ORIG x3000
LD R6, EMPTY ; R6 is the stack pointer
LD R5, PTR ; R5 is pointer to characters
AND R0, R0, #0
ADD R0, R0, #10 ; Print a new line
OUT
;
REDO LDR R3, R5, #0 ; R3 gets character
;
; Test character for end of file
;
ADD R4... |
src/el-contexts-default.ads | My-Colaborations/ada-el | 0 | 8656 | <reponame>My-Colaborations/ada-el
-----------------------------------------------------------------------
-- EL.Contexts -- Default contexts for evaluating an expression
-- Copyright (C) 2009, 2010, 2011, 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
3-mid/opengl/source/lean/renderer/opengl-impostor-simple.adb | charlie5/lace-alire | 1 | 9240 | with
openGL.Camera,
openGL.Texture,
ada.unchecked_Deallocation;
package body openGL.Impostor.simple
is
procedure free (Self : in out View)
is
procedure deallocate is new ada.unchecked_Deallocation (Item'Class, View);
begin
if Self /= null
then
destroy (Self.all);... |
day04/day04.adb | thorstel/Advent-of-Code-2018 | 2 | 6250 | with Ada.Assertions; use Ada.Assertions;
with Ada.Containers.Ordered_Maps; use Ada.Containers;
with Ada.Text_IO; use Ada.Text_IO;
with Input; use Input;
procedure Day04 is
type Hour is array (Natural range 0 .. 59) of Natural;
package Time_Maps is new Ordered_... |
CPU/functions/timer/mips1.asm | SilenceX12138/MIPS-Microsystems | 55 | 87299 | <reponame>SilenceX12138/MIPS-Microsystems
#cal_set={add,sub,or,and,sll,sllv,srl,srlv}
#Timer 0x7f00-0x7f0b
#UART 0x7f10-0x7f2b
#Switch 0x7f2c-0x7f33
#LED 0x7f34-0x7f37
#Tube 0x7f38-0x7f3f
#Key <KEY>
.text
initial:
li $t0,0xfc01 #allow all IRQ
mtc0 $t0,$12
li $t0,0xffffffff #set timer continuously... |
src/to-string.agda | ice1k/cedille | 0 | 1503 | import cedille-options
module to-string (options : cedille-options.options) where
open import cedille-types
open import constants
open import syntax-util
open import ctxt
open import rename
open import general-util
open import datatype-util
open import type-util
open import free-vars
open import json
data expr-side ... |
notes/fixed-points/LFPs/ListN.agda | asr/fotc | 11 | 4068 | <gh_stars>10-100
------------------------------------------------------------------------------
-- From ListN as the least fixed-point to ListN using data
------------------------------------------------------------------------------
{-# OPTIONS --exact-split #-}
{-# OPTIONS --no-sized-types #-}... |
programs/oeis/120/A120182.asm | neoneye/loda | 22 | 84642 | <gh_stars>10-100
; A120182: a(1)=5; a(n)=floor((34+sum(a(1) to a(n-1)))/6).
; 5,6,7,8,10,11,13,15,18,21,24,28,33,38,45,52,61,71,83,97,113,132,154,179,209,244,285,332,388,452,528,616,718,838,978,1141,1331,1553,1811,2113
add $0,1
mov $1,2
mov $2,2
lpb $0
sub $0,1
add $2,$1
mov $1,6
add $1,$2
div $1,6
add $2,... |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1421.asm | ljhsiun2/medusa | 9 | 244930 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x11762, %rsi
lea addresses_UC_ht+0x15f62, %rdi
nop
dec %r12
mov $3, %rcx
rep movsq
nop
nop
sub $43772, %r14
lea addresses_A_ht+0x790, %r15
clflush (%r15)
nop
nop
nop
nop
sub ... |
src/termu18n.asm | queso-fuego/amateuros | 10 | 26973 | <gh_stars>1-10
;;;
;;; font file - 0-127 for ascii, 10x18 pixels each
;;; based on terminus u18n
;;;
;; Font header - width & height
db 10, 18
times 31*36 - 2 db 0
;; Space
dw 0000h,\
0000h,\
0000h,\
0000h,\
0000h,\
0000h,\
0000h,\
0000h,\
0000h,\
0000h,\
0000h,\
0000h,\
0000h,\
0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.