text stringlengths 1 1.05M |
|---|
%define SYS_READ 0
%define SYS_WRITE 1
%define SYS_OPEN 2
%define SYS_CLOSE 3
%define SYS_STAT 4
%define SYS_FSTAT 5
%define SYS_LSTAT 6
%define SYS_POLL 7
%define SYS_LSEEK 8
%define SYS_MMAP 9
%define SYS_MPROTECT 10
%define SYS_MUNMAP 11
%define SYS_BRK 12
%define SYS_RT_SIGACTION 13
%define SYS_RT_SIGPROCMASK 14
%d... |
; A342710: Solutions x to the Pell-Fermat equation x^2 - 5*y^2 = 4.
; 3,18,123,843,5778,39603,271443,1860498,12752043,87403803,599074578,4106118243,28143753123,192900153618,1322157322203,9062201101803,62113250390418,425730551631123,2918000611027443,20000273725560978,137083915467899403,939587134549734843
mov $1,1
lpb $... |
// Created on: 1996-08-30
// Created by: Yves FRICAUD
// Copyright (c) 1996-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU L... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1db13, %r8
nop
nop
nop
sub %rbp, %rbp
movups (%r8), %xmm2
vpextrq $0, %xmm2, %r13
inc %r11
lea addresses_WT_ht+0xc8cd, %rsi
xor $17093, %r14
movb $0x61, (%rsi)
and %r13, %r13
... |
; A192687: Male-female differences: a(n) = A005378(n) - A005379(n).
; 1,1,1,0,1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... |
; A086273: Rectangular array T(n,k) of central polygonal numbers, by antidiagonals.
; Submitted by Christian Krause
; 1,1,3,1,4,7,1,5,10,13,1,6,13,19,21,1,7,16,25,31,31,1,8,19,31,41,46,43,1,9,22,37,51,61,64,57,1,10,25,43,61,76,85,85,73,1,11,28,49,71,91,106,113,109,91,1,12,31,55,81,106,127,141,145,136,111,1,13,34,61,91,... |
;
; bootRogue game in 512 bytes (boot sector)
;
; by Oscar Toledo G.
; http://nanochess.org/
;
; (c) Copyright 2019 Oscar Toledo G.
;
; Creation date: Sep/19/2019. Generates room boxes.
; Revision date: Sep/20/2019. Connect rooms. ... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Abstract:
;
; Switch the stack from temporary memory to permenent memory.
;
;-----------------------------------... |
;
; Copyright (c) 2014 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
; A177073: (9*n+4)*(9*n+5).
; 20,182,506,992,1640,2450,3422,4556,5852,7310,8930,10712,12656,14762,17030,19460,22052,24806,27722,30800,34040,37442,41006,44732,48620,52670,56882,61256,65792,70490,75350,80372,85556,90902,96410,102080,107912,113906,120062,126380,132860,139502,146306,153272,160400,167690,175142,182756,19053... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1980b, %rsi
lea addresses_D_ht+0x5263, %rdi
sub $23672, %rbx
mov $48, %rcx
rep movsw
xor $43180, %r9
lea addresses_WT_ht+0xca63, %r12
nop
nop
sub $25826, %r13
vmovups (%r12), %ymm3
vext... |
page ,132
;----------------------------Module-Header------------------------------;
; Module Name: FLAT.ASM
;
; init/term routines for using flat pointers
;
; LocalAlloc should go through here!
;
;-----------------------------------------------------------------------;
.286
?PLM=1
?WIN=0
.xlist
... |
; A096446: Number of reduced primitive positive definite binary quadratic forms of determinant n.
; 1,1,2,1,2,2,2,3,2,2,4,2
mov $2,$0
lpb $0
mov $0,$2
div $0,2
add $1,1
bin $2,2
add $3,1
div $0,$3
lpb $1,2
sub $0,$3
add $1,$0
dif $1,6
div $2,2
mov $3,$2
lpe
mul $3,2
add $4,1
lpe... |
; A033383: a(n) = floor(63/n).
; 63,31,21,15,12,10,9,7,7,6,5,5,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
add $0,1
mov $1,63
div $1,$0
mov $0,$1
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x18fe2, %rsi
lea addresses_A_ht+0x3a62, %rdi
nop
cmp $58117, %r11
mov $116, %rcx
rep movsq
nop
nop
nop
nop
and %rbp, %rbp
lea addresses_normal_ht+0x14932, %rdx
nop
sub %rdi, %... |
//===----------------------------------------------------------------------===//
//
// BusTub
//
// buffer_pool_manager_test.cpp
//
// Identification: test/buffer/buffer_pool_manager_test.cpp
//
// Copyright (c) 2015-2019, Carnegie Mellon University Database Group
//
//===-----------------------... |
; A227161: Number of n X 2 0,1 arrays indicating 2 X 2 subblocks of some larger (n+1) X 3 binary array having a sum of one or less, with rows and columns of the latter in lexicographically nondecreasing order.
; 1,3,8,18,36,66,113,183,283,421,606,848,1158,1548,2031,2621,3333,4183,5188,6366,7736,9318,11133,13203,15551,1... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Text Library
FILE: uiEdit.asm
ROUTINES:
Name Description
---- -----------
GLB GenEditControlClass Style menu object
REVISION HISTORY:
... |
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <algorithm>
#include <array>
#include <assert.h>
#include <iterator>
#include <numeric>
#include <random>
#include <stdio.h>
#include <type_traits>
#include "adapterator.hpp"
using namespace std;... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: UserInterface/User
FILE: userLibrary.asm
ROUTINES:
Name Description
---- -----------
GLB ??? ???
REVISION HISTORY:
Name Date Desc... |
; A104221: a(n) = Fibonacci(n) - (Fibonacci(n) mod 2).
; 0,0,0,2,2,4,8,12,20,34,54,88,144,232,376,610,986,1596,2584,4180,6764,10946,17710,28656,46368,75024,121392,196418,317810,514228,832040,1346268,2178308,3524578,5702886,9227464,14930352,24157816,39088168,63245986,102334154,165580140,267914296,433494436,701408732,113... |
; A098713: a(n) = (2n+1)*2^(2n+1) - 1.
; 1,23,159,895,4607,22527,106495,491519,2228223,9961471,44040191,192937983,838860799,3623878655,15569256447,66571993087,283467841535,1202590842879,5085241278463,21440476741631,90159953477631,378231999954943,1583296743997439,6614661952700415,27584547717644287
mov $1,$0
mul $1,2
ad... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xa0b0, %rsi
lea addresses_A_ht+0xfbae, %rdi
nop
nop
sub %r11, %r11
mov $114, %rcx
rep movsl
nop
nop
nop
nop
nop
xor $24294, %rcx
lea addresses_D_ht+0x1958, %r9
nop
and $44190, %r10
movl... |
; A026056: a(n) = (d(n)-r(n))/5, where d = A026054 and r is the periodic sequence with fundamental period (3,3,0,0,4).
; 2,5,10,16,23,33,45,60,77,96,119,145,175,208,244,285,330,380,434,492,556,625,700,780,865,957,1055,1160,1271,1388,1513,1645,1785,1932,2086,2249,2420,2600,2788,2984,3190,3405,3630,3864,4107,4361,4625,49... |
MVI A,1
CALL Fib
JMP End
Fib: ;A -> HL
CPI 1
JZ RetOne
JC RetOne
DCR A
PUSH PSW
CALL Fib
POP PSW
DCR A
PUSH H
CALL Fib
POP D
DAD D
RET
RetOne:
LXI H,1
RET
End:
HLT
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1cac7, %rsi
nop
nop
nop
nop
nop
xor $16980, %rcx
vmovups (%rsi), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %r9
nop
nop
nop
nop
sub $5218, %rcx
lea addresses_WT_ht+0x11... |
/* The XML parser processes an XML file into a tree data structure composed of
* pugi::xml_nodes. Each node represents an XML element. For example
* <a> <b/> </a> will generate two pugi::xml_nodes. One called "a" and its
* child "b". Each pugi::xml_node can contain various XML data such as attribute
* informati... |
if not defined @FSQRT
; Square root of floating-point number
; In: HL
; Out: HL = abs(HL)^0.5, reset carry
; Pollutes: AF
; Mantissas of square roots
; exp = 2*e
; (2^exp * mantisa)^0.5 = 2^e * mantisa^0.5
; exp = 2*e+1
; (2^exp * mantisa)^0.5 = 2^e * mantisa^0.5 * 2^0.5
; (2^-3 * mantisa)^0.5 = 2^-1 * 2^-0.5 * mant... |
//===- SymbolTable.cpp ----------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
; A304376: a(n) = 60*2^n - 48 (n>=1).
; 72,192,432,912,1872,3792,7632,15312,30672,61392,122832,245712,491472,982992,1966032,3932112,7864272,15728592,31457232,62914512,125829072,251658192,503316432,1006632912,2013265872,4026531792,8053063632,16106127312,32212254672,64424509392,128849018832,257698037712,515396075472,1030... |
// Copyright (c) 2011-2018 The Worldcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/data/base58_encode_decode.json.h>
#include <base58.h>
#include <test/test_worldcoin.h>
#include <utilstrenc... |
; A060469: Smallest positive a(n) such that number of solutions to a(n) = a(j)+a(k) j<k<n is one or less.
; 1,2,3,4,6,8,11,13,16,18,23,25,28,30,35,37,40,42,47,49,52,54,59,61,64,66,71,73,76,78,83,85,88,90,95,97,100,102,107,109,112,114,119,121,124,126,131,133,136,138,143,145,148,150,155,157,160,162,167,169,172,174,179,18... |
; A039969: An example of a d-perfect sequence: a(n) = Catalan(n) mod 3.
; 1,1,2,2,2,0,0,0,2,2,2,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,1,1,1,0,0,0,1,1,1,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,1,1,1,0,0,0,1,1,1,2,2,2,0,0,0,0,0
add $0,1
seq $0,132328 ; a(n) = Product_{k>0}... |
; A074516: a(n) = 1^n + 5^n + 6^n.
; 3,12,62,342,1922,10902,62282,358062,2070242,12030822,70231802,411625182,2420922962,14281397142,84467679722,500702562702,2973697798082,17689598897862,105374653934042,628433226338622,3751525871703602,22413787798580982,134005889633282762,801651152008680942,4797985983097007522,287283112... |
extern real_routine
global disk_load_sector
global disk_write_sector
global read_drive_parameters
section .data
%define disk_load_sector_size disk_load_sector_end - disk_load_sector_bin
disk_load_sector_bin: incbin "blobs/disk_load_sector.bin"
disk_load_sector_end:
%define disk_write_sec... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; convert 1 to a double precision float and store in xmm0
mov ecx, 1
cvtsi2sd xmm0, ecx
;TEST_BEGIN_RECORDING
; load 2.5 (in double precision float form)
lea rcx, [rsp-8]
mov DWORD [rcx], 0
mov DWORD [rcx+4], 0x40040000
addsd ... |
@ Allocate 2k buffer in OR[287]
0x0000 (0x000000) 0x101A- f:00010 d: 26 | A = 26 (0x001A)
0x0001 (0x000002) 0x292D- f:00024 d: 301 | OR[301] = A
0x0002 (0x000004) 0x111F- f:00010 d: 287 | A = 287 (0x011F)
0x0003 (0x000006) 0x292E- f:00024 d: 302 |... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x3e5e, %rsi
lea addresses_normal_ht+0x1eb3f, %rdi
nop
nop
nop
nop
xor %rbp, %rbp
mov $70, %rcx
rep movsq
xor %r15, %r15
lea addresses_normal_ht+0x15203, %rsi
lea addresses_D_h... |
; A337499: a(n) is the number of ballot sequences of length n tied or won by at most 2 votes.
; Submitted by Christian Krause
; 1,2,4,6,14,20,50,70,182,252,672,924,2508,3432,9438,12870,35750,48620,136136,184756,520676,705432,1998724,2704156,7696444,10400600,29716000,40116600,115000920,155117520,445962870,601080390,1732... |
.repeat 16
.byte 27
.endrepeat |
;
; Small C z88 File functions
; Written by Dominic Morris <djm@jb.man.ac.uk>
;
; 11/3/99 djm ***UNTESTED***
;
; *** THIS IS A Z88 SPECIFIC ROUTINE!!! ***
;
;
; $Id: fdtell.asm,v 1.5 2015/01/19 01:32:44 pauloscustodio Exp $
;
INCLUDE "fileio.def"
PUBLIC fdtell
;long fdtell(int fd)
... |
.macosx_version_min 10, 12
.section __TEXT,__text,regular,pure_instructions
.align 4, 0x90
.globl _pari_init_evaluator
_pari_init_evaluator:
pushq %rbp
Ltmp0:
pushq %r14
Ltmp1:
pushq %rbx
Ltmp2:
Ltmp3:
Ltmp4:
Ltmp5:
movq $0, _sp(%rip)
leaq _s_st(%rip), %rax
leaq _st(%rip), %rc... |
Name: mn_hp_smram.asm
Type: file
Size: 60691
Last-Modified: '1993-08-25T02:45:12Z'
SHA-1: BCD251515AA1ED6D46A342E9F1F647CAD2C6D8AD
Description: null
|
/*
* RateGroupDriverImplTester.hpp
*
* Created on: June 19, 2015
* Author: tcanham
*/
#ifndef RATEGROUPDRIVER_TEST_UT_RATEGROUPDRIVERIMPLTESTER_HPP_
#define RATEGROUPDRIVER_TEST_UT_RATEGROUPDRIVERIMPLTESTER_HPP_
#include <GTestBase.hpp>
#include <Svc/RateGroupDriver/RateGroupDriverImpl.hpp>
namespace Svc ... |
; A090443: a(n) = (n+2)! * (n+1)! * n! / 2.
; Submitted by Jon Maiga
; 1,6,144,8640,1036800,217728000,73156608000,36870930432000,26547069911040000,26281599211929600000,34691710959747072000000,59530976006925975552000000,130015651599126330605568000000,354942728865614882553200640000000,119260756898846600537875415040000000... |
; A083878: a(0)=1, a(1)=3, a(n)=6a(n-1)-7a(n-2), n>=2.
; 1,3,11,45,193,843,3707,16341,72097,318195,1404491,6199581,27366049,120799227,533233019,2353803525,10390190017,45864515427,202455762443,893682966669,3944907462913,17413664010795,76867631824379
lpb $0
sub $0,1
mov $2,$0
max $2,0
seq $2,86351 ; T(n,3) of A0... |
#if ((defined(_MSC_VER) && _MSC_VER >= 1700) || (__cplusplus >= 201103L))
#include "../test.h"
#ifdef _MSC_VER
#define noexcept
#define snprintf _snprintf
#endif
#include "dropbox-json11/json11.cpp"
using namespace json11;
static void GenStat(Stat& stat, const Json& v) {
switch (v.type()) {
case Json::ARRAY... |
; battle commands are defined in engine/battle/effect_commands.asm
dw 0 ; padding
BattleCommandPointers:
; entries correspond to macros/scripts/battle_commands.asm
dw BattleCommand_CheckTurn
dw BattleCommand_CheckObedience
dw BattleCommand_UsedMoveText
dw BattleCommand_DoTurn
dw BattleCommand_Critical
dw Battl... |
; A021653: Decimal expansion of 1/649.
; Submitted by Christian Krause
; 0,0,1,5,4,0,8,3,2,0,4,9,3,0,6,6,2,5,5,7,7,8,1,2,0,1,8,4,8,9,9,8,4,5,9,1,6,7,9,5,0,6,9,3,3,7,4,4,2,2,1,8,7,9,8,1,5,1,0,0,1,5,4,0,8,3,2,0,4,9,3,0,6,6,2,5,5,7,7,8,1,2,0,1,8,4,8,9,9,8,4,5,9,1,6,7,9,5,0
seq $0,42 ; Unary representation of natural numb... |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
int fd, i;
char path[] = "stressfs0";
7: b8 30 00 0... |
; A135405: Sequence where the sum of each pair of consecutive elements is a square.
; 0,1,8,8,17,19,30,34,47,53,68,76,93,103,122,134,155,169,192,208,233,251,278,298,327,349,380,404,437,463,498,526,563,593,632,664,705,739,782,818,863,901,948,988,1037,1079,1130,1174,1227,1273,1328,1376,1433,1483,1542,1594,1655,1709,1772,... |
#ifndef Plate_H
#include "Plate.h"
#endif
Plate::Plate(int pin,int maxPWM){
_numPin=pin;
pinMode(_numPin,OUTPUT);
_maxPWM = maxPWM;
analogWrite(_numPin,0);
}
void Plate::set(int pwm){
if(pwm>=_maxPWM)
analogWrite(_numPin,_maxPWM);
else if (pwm<0)
analogWrite(_numPin,0);
else
analogWrite(_nu... |
/*=============================================================================
Library: CppMicroServices
Copyright (c) The CppMicroServices developers. See the COPYRIGHT
file at the top-level directory of this distribution and at
https://github.com/CppMicroServices/CppMicroServices/COPYRIGHT .
Licensed un... |
/*************************************************************************
* Copyright (C) [2020] by Cambricon, Inc. All rights reserved
*
* 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 ... |
; A041188: Numerators of continued fraction convergents to sqrt(105).
; Submitted by Christian Krause
; 10,41,830,3361,68050,275561,5579270,22592641,457432090,1852321001,37503852110,151867729441,3074858440930,12451301493161,252100888304150,1020854854709761,20669197982499370,83697646784707241,1694622133676644190,6862186... |
; A055631: Sum of Euler's totient function phi of distinct primes dividing n.
; 0,1,2,1,4,3,6,1,2,5,10,3,12,7,6,1,16,3,18,5,8,11,22,3,4,13,2,7,28,7,30,1,12,17,10,3,36,19,14,5,40,9,42,11,6,23,46,3,6,5,18,13,52,3,14,7,20,29,58,7,60,31,8,1,16,13,66,17,24,11,70,3,72,37,6,19,16,15,78,5,2,41,82,9,20,43,30,11,88,7,18,23,32,47... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld c, 41
ld b, 02
ld d, 03
lbegin_waitm2:
ldff a, (c)
and a, d
cmp a, b
jrnz lbegin_waitm2
ld a, 08
ldff(c), a
xor a, a
ldff(0f), a
ld a, 02
ldff(ff), a
ei
ld c, 0f
.text@1000
lstatint:
ld a, 48
ldff(41), a
ldff... |
BITS 32
org 0x7c00
mov edx, 0x03f8
in al, dx
jmp 0
|
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; LRotU64.nasm
;
; Abstract:
;
; 64-bit left rotation for Ia32
;
;-----------------------------... |
/*
* Copyright 2016 The Cartographer Authors
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
; A164464: Number of binary strings of length n with no substrings equal to 0001, 0100, or 0111.
; 13,20,31,47,70,104,154,227,334,491,721,1058,1552,2276,3337,4892,7171,10511,15406,22580,33094,48503,71086,104183,152689,223778,327964,480656,704437,1032404,1513063,2217503,3249910,4762976,6980482,10230395,14993374,21973859... |
; A061085: a(n) = A019550(n) / 3.
; 4,8,12,16,170,204,238,272,306,340,374,408,442,476,510,544,578,612,646,680,714,748,782,816,850,884,918,952,986,1020,1054,1088,1122,1156,1190,1224,1258,1292,1326,1360,1394,1428,1462,1496,1530,1564,1598,1632,1666
seq $0,309809 ; a(n) is the concatenation of n and 2n+1.
div $0,3
|
; Internal routine to read increment local address HL with far pointer EBC
; 31/3/00 GWL
; Corrupts D via farseg1, but preserves A
;
; $Id: incfar.asm,v 1.3 2015/01/19 01:32:43 pauloscustodio Exp $
;
PUBLIC incfar
EXTERN farseg1
.incfar
inc hl
inc c
ret ... |
; A192033: Expansion of x*(3*x^2+x+1)/((x-1)*(2*x-1)*(x+1)).
; 0,1,3,10,21,46,93,190,381,766,1533,3070,6141,12286,24573,49150,98301,196606,393213,786430,1572861,3145726,6291453,12582910,25165821,50331646,100663293,201326590,402653181,805306366,1610612733,3221225470,6442450941,12884901886,25769803773,51539607550,1030792... |
.model small
.stack 100h
.code
main proc
mov ah,1
int 21h
mov bl,al
mov ah,02h
mov ah,1
int 21h
mov ah,02h
mov bh,al
mov ah,02h
mov cl,al
mov ah,... |
; Copyright 2019 by Sven Fabricius, see LICENSE.txt
;
; @file SSD1289_WriteReg.asm
;
; @brief Writes data to a specified SSD1289 register
;
; @author Sven Fabricius
; Contact: Sven.Fabricius@livediesel.de
;typedef struct _SSD1289_Config
;{
; volatile uint16_t * dataOut; + 0
; volatile uint16_t * dataIn; + ... |
.TITEL HELLO WORLED
.MODEL SMALL
.STACK 100H
.DATA
MESSAGE DB "HELLO,WORLED$"
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
LEA DX,MESSAGE
MOV AH,09H
INT 21H
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN
|
; A093964: a(n) = Sum_{k=1..n} k*k!*C(n,k).
; 0,1,6,33,196,1305,9786,82201,767208,7891281,88776910,1085051121,14322674796,203121569833,3080677142466,49764784609065,853110593298256,15469738758475041
lpb $0,1
add $3,$0
sub $0,1
add $2,1
mul $3,$2
lpe
mov $1,$3
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... |
; A270684: First differences of number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 190", based on the 5-celled von Neumann neighborhood.
; 4,7,12,8,20,8,28,8,36,8,44,8,52,8,60,8,68,8,76,8,84,8,92,8,100,8,108,8,116,8,124,8,132,8,140,8,148,8,156,8,164,8,172,8,... |
; A082694: Partial sums of A082693.
; 1,3,4,6,10,12,13,15,19,27,31,33,34,36,40,48,64,72,76,78,79,81,85,93,109,141,157,165,169,171,172,174,178,186,202,234,298,330,346,354,358,360,361,363,367,375,391,423,487,615,679,711,727,735,739,741,742,744
mov $5,$0
mov $7,$0
add $7,1
lpb $7,1
clr $0,5
mov $0,$5
sub $7,1
sub... |
// Copyright 2021 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
.size 8000
.text@50
jp ltimaint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
xor a, a
ldff(0f), a
ldff(ff), a
ld a, f0
ldff(05), a
ldff(06), a
ld a, 04
ldff(ff), a
ld a, 05
ldff(07), a
ei
nop
halt
.text@1000
ltimaint:
nop
.text@1031
ld c, 05
ld a, 10
ldff(06), a
nop
ldff a, (c)
.text@... |
CGAHeart2 label byte
word C_BLACK
Bitmap <67,41,BMC_PACKBITS,BMF_MONO>
db 0xf8, 0x00
db 0xf8, 0x00
db 0x08, 0x0f, 0xe0, 0x00, 0x1f, 0x1f, 0x00, 0x00,
0xee, 0x00
db 0x08, 0x18, 0x30, 0x00, 0x2a, 0xaa, 0x80, 0x01,
0x55, 0x00
db 0x08, 0x00, 0x70, 0x00, 0x35, 0x55, 0x80, 0x01,
0xab, 0x00
db 0x08... |
; A284395: Positions of 1 in A284394.
; 2,8,17,23,32,41,47,56,62,71,80,86,95,104,110,119,125,134,143,149,158,164,173,182,188,197,206,212,221,227,236,245,251,260,269,275,284,290,299,308,314,323,329,338,347,353,362,371,377,386,392,401,410,416,425,431,440,449,455,464,473,479,488,494,503,512,518,527,536,542,551,557,566,575... |
; A099425: Expansion of (1+x^2)/(1-2*x-x^2).
; 1,2,6,14,34,82,198,478,1154,2786,6726,16238,39202,94642,228486,551614,1331714,3215042,7761798,18738638,45239074,109216786,263672646,636562078,1536796802,3710155682,8957108166,21624372014,52205852194,126036076402,304278004998,734592086398,1773462177794,4281516441986,1033649... |
; A131783: A000012 * (A004736 + A002260 - I).
; Submitted by Christian Krause
; 1,4,2,8,6,3,13,11,8,4,19,17,14,10,5,26,24,21,17,12,6,34,32,29,25,20,14,7,43,41,38,34,29,23,16,8,53,51,48,44,39,33,26,18,9,64,62,59,55,50,44,37,29,20,10
lpb $0
add $1,1
sub $0,$1
lpe
sub $1,$0
add $0,2
mul $0,2
add $0,$1
add $1,1
mul $1... |
// NES DXYCP using sprites
/// @file
/// Nintendo Entertainment System (NES
///
/// https://en.wikipedia.org/wiki/Nintendo_Entertainment_System_(Model_NES-101)
/// https://github.com/gregkrsak/first_nes
/// @file
/// Ricoh 2C02 - NES Picture Processing Unit (PPU)
///
/// Ricoh RP2C02 (NTSC version) / RP2C07 (PAL versio... |
start:
ldx #0
c:lda bottombar,x
cmp #$ff
beq init
sta $4e0,x
sta $5e0,x
inx
jmp c
init:
jsr initDraw
lda #0
sta $10 ; scrptr
sta $11 ; txtptr
loop:
jsr drawMain
jsr putfont
jsr scrollarea
jmp loop
scrollarea:
ldx #0
g:lda $521,x
sta $520,x
lda $541,x
sta $540,x
lda $561,x
sta... |
;*****************************************************
;
; Video Technology library for small C compiler
;
; Juergen Buchmueller
;
;*****************************************************
; ----- void __FASTCALL__ vz_setbase(void *start)
PUBLIC vz_setbase
PUBLIC scrbase
.vz_setbase
ld (scrbase),hl
ret
.scrbas... |
; A208995: Number of 4-bead necklaces labeled with numbers -n..n not allowing reversal, with sum zero and first differences in -n..n.
; 2,7,16,33,58,95,144,209,290,391,512,657,826,1023,1248,1505,1794,2119,2480,2881,3322,3807,4336,4913,5538,6215,6944,7729,8570,9471,10432,11457,12546,13703,14928,16225,17594,19039,20560,2... |
; A146205: Number of paths of the simple random walk on condition that the median applied to the partial sums S_0=0, S_1,...,S_n, n odd (n=15 in this example), is equal to half-integer values k+1/2, -[n/2]-1<=k<=[n/2].
; 35,35,245,245,735,735,1225,1225,1225,1225,735,735,245,245,35,35
div $0,2
mov $1,7
bin $1,$0
mul $1... |
; Startup for VZ200/300
;
; Stefano Bodrato - Apr. 2000
;
; If an error occurs eg break we just drop back to BASIC
;
; $Id: vz_crt0.asm,v 1.27 2016-07-15 21:03:25 dom Exp $
;
MODULE vz_crt0
;--------
; Include zcc_opt.def to find out some info
;--------
defc crt0... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// ===========================================================================
// File: MDInternalDisp.CPP
//
// ... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>vserver(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str
Invokes the syscall vserver.
See 'man 2 vserver' for more information.
Arguments:
vararg(int): vararg
Returns:
long
</%docstring>... |
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="fildes"/>
<%docstring>
Invokes the syscall fdatasync. See 'man 2 fdatasync' for more information.
Arguments:
fildes(int): fildes
</%docstring>
${syscall('SYS_fdatasync', fildes)}
|
; A262493: Centered 13-gonal (or tridecagonal) primes.
; Submitted by Jon Maiga
; 79,131,859,2731,5279,6449,8191,10141,15289,17239,20021,20749,23011,26209,38039,41081,45319,46411,50909,54419,59281,65651,70981,76519,80809,86711,92821,99139,126491,128311,135721,159199,167441,175891,200201,209431,221261,230959
mov $2,332... |
;;;; processor ;;;;
PROCESSOR 6502
;;;; assembly includes ;;;;
INCLUDE "macro.h"
INCLUDE "vcs.h"
;;;; ram ;;;;
SEG.U VARIABLES
ORG $80
;;;; variables ;;;;
Var .byte ; RAM variable
;;;; move to rom start ;;;;
SEG ROM
ORG $F000
;;;; reset vcs REGS, RAM, TIA ;;;;
Reset:
CLEA... |
#include <scene.h>
#include <accel.h>
/**
* Scene class
*/
Scene::Scene() : light(nullptr), accel(), hasAccel() {}
Scene::Scene(std::shared_ptr<Light> light) : light(light) {}
void Scene::addGeometry(std::shared_ptr<Geometry> geom) {
geometries.push_back(geom);
}
int Scene::countGeometries() const {
return sta... |
; void __CALLEE__ sp1_ClearRectInv_callee(struct sp1_Rect *r, uchar tile, uchar rflag)
; 01.2008 aralbrec, Sprite Pack v3.0
; ts2068 hi-res version
PUBLIC sp1_ClearRectInv_callee
PUBLIC ASMDISP_SP1_CLEARRECTINV_CALLEE
EXTERN sp1_GetUpdateStruct_callee, sp1_ClearRect_callee, l_jpix
EXTERN ASMDISP_SP1_GETUPDATESTRUCT_C... |
sta {m1}+1
sty {m1}
|
lda {m2}
sta $fe
lda {m2}+1
sta $ff
lda ($fe),y
cmp {m1}
beq {la1} |
; A084171: Binomial transform of generalized Jacobsthal numbers A084170.
; 1,3,11,37,119,373,1151,3517,10679,32293,97391,293197,881639,2649013,7955231,23882077,71678999,215102533,645438671,1936578157,5810258759,17431824853,52297571711,156896909437,470699116919,1412114127973,4236375938351,12709194923917,38127718989479,1... |
Name: ys_w51.asm
Type: file
Size: 19867
Last-Modified: '2016-05-13T04:50:38Z'
SHA-1: 5CF4C2E21C91A94AA098CBF36C4E486A1A78FE46
Description: null
|
; A202206: a(n) = 3*a(n-1)+3*a(n-2) with a(0)=1 and a(1)=2.
; 1,2,9,33,126,477,1809,6858,26001,98577,373734,1416933,5372001,20366802,77216409,292749633,1109898126,4207943277,15953524209,60484402458,229313780001,869394547377,3296124982134
mov $22,$0
mov $24,$0
add $24,1
lpb $24
clr $0,22
mov $0,$22
sub $24,1
su... |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2020 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages a... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x7f58, %rsi
lea addresses_normal_ht+0x15970, %rdi
nop
nop
inc %r13
mov $6, %rcx
rep movsl
nop
nop
nop
nop
nop
and $12518, %rbp
lea addresses_WC_ht+0x5958, %r13
nop
add $60420, %r9
mov $... |
; A140811: a(n) = 6*n^2 - 1.
; -1,5,23,53,95,149,215,293,383,485,599,725,863,1013,1175,1349,1535,1733,1943,2165,2399,2645,2903,3173,3455,3749,4055,4373,4703,5045,5399,5765,6143,6533,6935,7349,7775,8213,8663,9125,9599,10085,10583,11093,11615,12149,12695,13253,13823,14405,14999,15605,16223,16853,17495,18149,18815,19493,2... |
;
; Grundy Newbrain Specific libraries
;
; Stefano Bodrato - 19/05/2007
;
;
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
;
; This function is linked only in the CP/M extension version
; it calls the ROM functions via the CP/M facility
;
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
;
; ... |
/*
* Copyright (C) 2015 BMW Car IT GmbH
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.