text stringlengths 1 1.05M |
|---|
/*
* Copyright (C) 2005 The Android Open Source Project
*
* 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 app... |
aci -128 ; CE 80
aci 127 ; CE 7F
aci 255 ; CE FF
adc (hl) ; 8E
adc (ix) ; DD 8E 00
adc (ix+127) ; DD 8E 7F
adc (ix-128) ; DD 8E 80
adc (iy) ; ... |
//******************************************************************************
//
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... |
; A206423: Fibonacci sequence beginning 12, 7.
; 12,7,19,26,45,71,116,187,303,490,793,1283,2076,3359,5435,8794,14229,23023,37252,60275,97527,157802,255329,413131,668460,1081591,1750051,2831642,4581693,7413335,11995028,19408363,31403391,50811754,82215145,133026899,215242044,348268943,563510987,911779930,1475290917,23870... |
global gdt_load
gdt_load:
mov eax, [esp+4]
mov [gdt_descriptor + 2], eax
mov ax, [esp+8]
mov [gdt_descriptor], ax
lgdt [gdt_descriptor]
jmp 0x08:.reload_cs
.reload_cs:
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
ret
section .data
gdt_desc... |
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* 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 ... |
;*
;* Various assembly utils
;*
;*
;* Constants
;*
.asg C0, CONST_PRUSSINTC
.asg C2, CONST_PRUCFG
.asg 36, SICR_OFFSET
.asg 0x02000, CONST_OTHERPRU_MEM
.asg 0x10000, CONST_SHARED_MEM
.asg 17, PRU0_PRU1_INTERRUPT
.asg 18, PRU1_PRU0_INTERRUPT
.asg CONST_OTHERPRU_MEM + 0x0800, CONST_MAX_SLOTS
.asg 12, MA... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xf18a, %rbp
nop
nop
nop
nop
nop
inc %r8
mov (%rbp), %esi
nop
nop
add $11751, %rbx
lea addresses_WT_ht+0x11dfa, %rsi
lea addresses_WT_ht+0x85ca, %rdi
nop
cmp $9001, %rbp
mov $15, %rc... |
; A169216: Number of reduced words of length n in Coxeter group on 11 generators S_i with relations (S_i)^2 = (S_i S_j)^28 = I.
; 1,11,110,1100,11000,110000,1100000,11000000,110000000,1100000000,11000000000,110000000000,1100000000000,11000000000000,110000000000000,1100000000000000,11000000000000000,110000000000000000
... |
//----------------------------------------------------------------------------//
// Part of the Fox project, licensed under the MIT license.
// See LICENSE.txt in the project root for license information.
// File : SourceManager.hpp
// Author : Pierre van Houtryve
//----------... |
;
; jdsamss2.asm - upsampling (SSE2)
;
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should be assembled with NASM (Netwide Assembler),
; can *not* be assembled with Microsoft's MASM or a... |
lc r4, 0x7fffffff
lc r5, 0x00000000
ges r6, r4, r5
halt
#@expected values
#r4 = 0x7fffffff
#r5 = 0x00000000
#r6 = 0x00000001
#pc = -2147483628
#e0 = 0
#e1 = 0
#e2 = 0
#e3 = 0
|
#ifdef SCIRUN4_CODE_TO_BE_ENABLED_LATER
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this soft... |
; A207401: Number of n X 6 0..1 arrays avoiding 0 0 1 and 0 1 1 horizontally and 0 0 1 and 1 1 0 vertically.
; 16,256,1296,4356,11664,26896,55696,106276,190096,322624,524176,820836,1245456,1838736,2650384,3740356,5180176,7054336,9461776,12517444,16353936,21123216,26998416,34175716,42876304,53348416,65869456,80748196,98... |
;
; Z80 ANSI Library
;
;---------------------------------------------------
; A different fputc_cons with ANSI support
;
; Stefano Bodrato - 21/4/2000
;
; $Id: fputc_cons.asm,v 1.3 2015/01/19 01:33:18 pauloscustodio Exp $
;
PUBLIC fputc_cons
EXTERN f_ansi
;
; Entry: hl = points to cha... |
#include "ZReflectedMFGrid.h"
#include "MagneticField/VolumeGeometry/interface/MagExceptions.h"
#include <iostream>
using namespace std;
ZReflectedMFGrid::ZReflectedMFGrid(const GloballyPositioned<float>& vol, MFGrid* sectorGrid)
: MFGrid(vol),
theSectorGrid(sectorGrid)
{}
ZReflectedMFGrid::~ZReflectedMF... |
/*ckwg +5
* Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "vpFileEventIO.h"
#include "vpFileEventIOImpl.h"
#include "vpFileReader.h"
//-----... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: VObj (Sample PC GEOS application)
FILE: vobjManager.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
MKH 7/7/93 Initial vers... |
; A089181: (1,3) entry of powers of the orthogonal design shown in A090592.
; Submitted by Christian Krause
; 1,2,-3,-20,-19,102,337,-40,-2439,-4598,7877,47940,40741,-254098,-793383,191920,5937521,10531602,-20499443,-114720100,-85944099,631152502,1863913697,-690240120,-14427876119,-24024071398,52946990037,274062479860,... |
dnl AMD K7 mpn_sqr_basecase -- square an mpn number.
dnl Copyright 1999-2002 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public ... |
; A059591: Squarefree part of n^2+1.
; 1,2,5,10,17,26,37,2,65,82,101,122,145,170,197,226,257,290,13,362,401,442,485,530,577,626,677,730,785,842,901,962,41,1090,1157,1226,1297,1370,5,1522,1601,2,1765,74,1937,2026,2117,2210,2305,2402,2501,2602,2705,2810,2917,3026,3137,130,3365,3482,3601,3722,3845,3970,4097,4226,4357,4490... |
;
; Copyright (c) 2010 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x12e94, %rsi
nop
nop
nop
nop
xor %rax, %rax
mov (%rsi), %r12d
nop
nop
nop
nop
nop
cmp $60192, %rcx
lea addresses_normal_ht+0x11f74, %rsi
lea addresses_D_ht+0x4694, %rdi
clflush (%rdi)
no... |
frame 1, 07
frame 2, 12
setrepeat 2
frame 0, 05
frame 3, 05
dorepeat 3
endanim
|
; A073578: a(n) = Sum_{k=1..n} mu(2*k).
; -1,-1,0,0,1,1,2,2,2,2,3,3,4,4,3,3,4,4,5,5,4,4,5,5,5,5,5,5,6,6,7,7,6,6,5,5,6,6,5,5,6,6,7,7,7,7,8,8,8,8,7,7,8,8,7,7,6,6,7,7,8,8,8,8,7,7,8,8,7,7,8,8,9,9,9,9,8,8,9,9,9,9,10,10,9,9,8,8,9,9,8,8,7,7,6,6,7,7,7,7
lpb $0
mov $2,$0
sub $0,1
seq $2,99991 ; a(n) = Moebius(2n).
add ... |
/******************************************************************************
File: Alloc.cpp
Description:
Object Memory management allocation/coping routines
******************************************************************************/
#include "Ist.h"
#pragma code_seg(MEM_SEG)
#include "ObjMem.h"
#inclu... |
; A164449: Number of binary strings of length n with no substrings equal to 0001 0010 or 1010
; Submitted by Jon Maiga
; 13,21,34,56,91,147,238,386,625,1011,1636,2648,4285,6933,11218,18152,29371,47523,76894,124418,201313,325731,527044,852776,1379821,2232597,3612418,5845016,9457435,15302451,24759886,40062338,64822225,10... |
; A075414: Squares of A002279: a(n) = (5*(10^n - 1)/9)^2.
; 0,25,3025,308025,30858025,3086358025,308641358025,30864191358025,3086419691358025,308641974691358025,30864197524691358025,3086419753024691358025,308641975308024691358025,30864197530858024691358025,3086419753086358024691358025,308641975308641358024691358025,308... |
// SPDX-License-Identifier: GPL-3.0-only
#include <invader/tag/parser/parser.hpp>
#include <invader/file/file.hpp>
#include <invader/build/build_workload.hpp>
#include "hud_interface.hpp"
#define CHECK_INTERFACE_BITMAP_SEQ(bitmap_tag, sequence_index, name) { \
if((!workload.disable_recursion && !workload.disable... |
#include <iostream>
#include <cmath>
#include <fstream>
#include <cstdlib>
#include <iomanip>
#include <cstring>
using namespace std;
#define maxpos 15
#define maxndaugh 16384 // pow(2,maxpos-1)
#define nlibsteps 5
#define nlambdasteps 50
#define maxn 100000000 // 10^8
#define maxl 1000000000000. // 10^12
/*
DR... |
copyright zengfr site:http://github.com/zengfr/romhack
03394C move.b D0, ($a4,A6) [enemy+12, enemy+32, enemy+52, enemy+72, enemy+92, enemy+B2]
033950 move.w D0, ($a2,A6)
033954 move.b #$ff, ($a5,A6)
03395A move.b #$14, ($a9,A6) [enemy+ 5, enemy+25, enemy+45, enemy+65, enemy+85, enemy+A5]
033960 move.b #$5a,... |
#include <SmartPlantCarer.h>
#include <GlobalPresets.h>
#include <SDCardMaintainer.h>
#include <LEDMaintainer.h>
#include <TesterOfTheFeatures.h>
#define WATER_PUMP_PIO 13
#define WATER_VALVE_1_PIO 14
#define WATER_VALVE_2_PIO 27
#define WATER_VALVE_3_PIO 26
#define WATER_VALVE_4_PIO 25
#define WATER_HUMIDITY_LEVEL_... |
; A191760: Digital root of the n-th odd square.
; 1,9,7,4,9,4,7,9,1,1,9,7,4,9,4,7,9,1,1,9,7,4,9,4,7,9,1,1,9,7,4,9,4,7,9,1,1,9,7,4,9,4,7,9,1,1,9,7,4,9,4,7,9,1,1,9,7,4,9,4,7,9,1,1,9,7,4,9,4,7,9,1,1,9,7,4,9,4,7,9,1
mov $2,85
mul $2,$0
mul $0,$2
add $0,$2
mov $1,$0
lpb $1,1
mod $1,9
lpe
add $1,1
|
.include "myTiny13.h"
.equ TASTER,3
.equ LEDB,1
;irq Vector
.org 0x0000
rjmp RESET
nop
rjmp PCINT0
.org 0x0010
RESET:
sbi DDRB,LEDB ; output
cbi DDRB,TASTER ; input
ldi A,0b00100000 ; IRQ react on PCINT
out GIMSK,A
sbi PCMSK,TASTER ; set PCINT on TASTER IRQ
; 00x00000 Set Sleep enable
; 000xx000 ... |
; A274380: A 4-cycle of the iterated sum of deficient divisors function.
; 34,54,42,48,34,54,42,48,34,54,42,48,34,54,42,48,34,54,42,48,34,54,42,48,34,54,42,48,34,54,42,48,34,54,42,48,34,54,42,48,34,54,42,48,34,54,42,48,34,54,42,48,34,54,42,48,34,54,42,48
mod $0,4
mov $1,$0
add $1,$0
add $1,$0
mov $2,$0
mul $2,2
cmp $2... |
; A033662: Possible digital sums of Smith numbers (conjectural).
; 4,9,13,15,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82
mov $2,4
mov $5,$0
lpb $0,1
add $1,$2
ad... |
; A295308: Characteristic function for A066694: a(n) = 1 if n < phi(sigma(n)), 0 otherwise.
; 0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1
mov $1,$0
add $0,2
seq $1... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; MOV8ri
mov ah, 0x2
;TEST_BEGIN_RECORDING
mov ah, 0x3
;TEST_END_RECORDING
|
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004C2E move.b #$c, ($82,A0)
004C34 lea ($c0,A0), A0 [item+82]
004D38 move.l D0, (A4)+
004D3A move.l D0, (A4)+
012CD6 cmpi.b #$c, ($82,A6)
012CDC beq $12cf6 [123p+ 82, enemy+82, item+82]
0AA... |
; A235378: a(n) = (-1)^n*(n! - (-1)^n).
; -2,1,-7,23,-121,719,-5041,40319,-362881,3628799,-39916801,479001599,-6227020801,87178291199,-1307674368001,20922789887999,-355687428096001,6402373705727999,-121645100408832001,2432902008176639999,-51090942171709440001,1124000727777607679999,-25852016738884976640001,620448401733... |
LN_OP_TYPE& operator+=(const LN_OP_TYPE& v) noexcept;
LN_OP_TYPE& operator+=(float v) noexcept;
LN_OP_TYPE& operator-=(const LN_OP_TYPE& v) noexcept;
LN_OP_TYPE& operator-=(float v) noexcept;
LN_OP_TYPE& operator*=(const LN_OP_TYPE& v) noexcept;
LN_OP_TYPE& operator*=(float v) noexcept;
LN_OP_TYPE& operator/=(const L... |
;================================================================================
; Dialog Pointer Override
;--------------------------------------------------------------------------------
DialogOverride:
LDA $7F5035 : BEQ .skip
LDA $7F5700, X ; use alternate buffer
RTL
.skip
LDA $7F1200, X
RTL
;---------------... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xaa5, %rbx
nop
nop
lfence
mov (%rbx), %r10
xor %r12, %r12
lea addresses_D_ht+0x7de5, %rsi
lea addresses_UC_ht+0x18ae5, %rdi
nop
dec %rdx
mov $70, %rcx
rep movsl
nop
nop
cmp %... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x14675, %rsi
lea addresses_WC_ht+0x9b55, %rdi
nop
nop
inc %r9
mov $82, %rcx
rep movsq
nop
nop
xor $61817, %rax
lea addresses_WC_ht+0x5f95, %r15
nop
nop
inc %r10
movb (%r15), %a... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: ASCII Only print drivers
FILE: printcomNoGraphics.asm
AUTHOR: Dave Durran 1 March 1990
ROUTINES:
Name Description
---- --------... |
###############################################################################
# Copyright 2018 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") containe... |
; vim: tw=78:ft=asm:ts=8:sw=8:noet
; $Id: new30.asm,v 1.3 2005/12/27 11:45:11 crq Exp $
BITS 32
section .data
float2: db '%20.17lf, '
float1: db '%20.17lf,', 0xa, 0
section .text
extern printf
global _start
; memory stack space:
; stack top: [esp+24]: [ebp]
; counter: [esp+20]: [ebp-4]
; 2 double: [esp+4]: [ebp... |
; A081346: First column in maze arrangement of natural numbers A081344.
; 1,2,9,10,25,26,49,50,81,82,121,122,169,170,225,226,289,290,361,362,441,442,529,530,625,626,729,730,841,842,961,962,1089,1090,1225,1226,1369,1370,1521,1522,1681,1682,1849,1850,2025,2026,2209,2210,2401,2402,2601,2602,2809,2810,3025,3026,3249,3250,3... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosDevIOCtl Category 8 Functions
;
; (c) osFree Project 2021, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri ... |
#ifndef TRIUMF_NMR_SPECTRAL_DENSITY_HPP
#define TRIUMF_NMR_SPECTRAL_DENSITY_HPP
// Author: Ryan M. L. McFadden
// NMR spectral density functions for spin-lattice relaxation in solids.
//
// For additional details see:
//
// N. Bloembergen, E. M. Purcell, and R. V. Pound, "Relaxation Effects in
// Nuclear Magnetic Reso... |
rnd:
push bx
push di
push es
in ax,40h
mov bx,[rndt1]
xor ax,[bx]
mov di,ax
push [rndt2]
pop es
xor ax,[es:di]
push word [rndt1]
pop word [rndt2]
mov [rndt1],ax
pop es
pop di
pop bx
ret
rndt1 dw 0
rndt2 dw 0
|
//===-- MCTargetAsmParser.cpp - Target Assembly Parser ---------------------==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
;============================================================
; Example 1-3
; Cycling screen colors
;============================================================
!cpu 6502
!to "build/example1-3.prg",cbm
* = $1000
loop:
lda $d012 ; load $d012 value into A register
; $d012 is the current raster line
cmp ... |
; A006668: Exponential self-convolution of Pell numbers (divided by 2).
; Submitted by Jon Maiga
; 0,0,1,6,32,160,784,3808,18432,89088,430336,2078208,10035200,48455680,233967616,1129701376,5454692352,26337607680,127169265664,614027624448,2964787822592,14315262312448,69120201588736,333741857701888,1611448241356800,77807... |
Entity start
No options
Constants
0 S start
1 S antes da chamada a start::x
2 I 1
3 S io.writeln
4 S x
5 S depois da chamada a start::x
6 S antes da chamada a start::y
7 S y
8 S depois da chamada a start::y
9 S e
10 S antes da chamada a elemento::x
11 S elemento
12 S depois da chamada a elem... |
/**************************************************************************************
Copyright 2015 Applied Research Associates, Inc.
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.ap... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/bind.h"
#include "build/build_config.h"
#include "content/public/browser/browser_context.h"
#include "ui/views/examples/examples_window_wit... |
.include "..\..\..\Cpu\TestFiles\std.6502.asm"
* = $0000
; cycles
ldx #$ab ; 01 - 02
ldx #$ab ; 03 - 04
inx ; 05 - 06
inx ; 07 - 08
iny ; 09 - 10
iny ; 11 - 12
brk ; 13 - 19
nop ; BRK pushes PC + 1 to the stack so RTI will actually return the inst... |
//
// Worker.hh
//
// Copyright (c) 2017 Couchbase, 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 at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... |
; A024041: a(n) = 4^n - n^5.
; 1,3,-16,-179,-768,-2101,-3680,-423,32768,203095,948576,4033253,16528384,66737571,267897632,1072982449,4293918720,17178449327,68717587168,274875430845,1099508427776,4398042427003,17592180890784,70368737741321,281474968748032,1125899897076999,4503599615489120
mov $1,4
pow $1,$0
pow $0,5
ad... |
; A089608: a(n) = ((-1)^(n+1)*A002425(n)) modulo 6.
; 1,5,1,1,1,5,1,5,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,5,1,1,1,5,1,5,1,5,1,1,1,5,1,5,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,5,1,1,1,5,1,1,1,5,1,1,1,5,1,5,1,5,1,1,1,5,1,5,1,5,1,1
add $0,1
lpb $0
dif $0,2
cmp $1,$2
lpe
mul $1,4
add $1,1
mov ... |
; Troy's HBC-56 - Input test
;
; Copyright (c) 2021 Troy Schrapel
;
; This code is licensed under the MIT license
;
; https://github.com/visrealm/hbc-56
;
!src "hbc56kernel.inc"
Y_OFFSET = 4
PRESSED_KEY_COUNT = HBC56_USER_ZP_START
pressedTable = $1000
extPressedTable = $1100
hbc56Meta:
+setHbc... |
; Programm will find min symbol in array
; Output it and it's index
SSEG SEGMENT PARA STACK 'STACK'
DB 64 DUP(0)
SSEG ENDS
DSEG SEGMENT PARA 'DATA'
A DB "3423531945"
DSEG ENDS
CSEG SEGMENT PARA 'CODE'
ASSUME CS:CSEG, DS:DSEG, SS:SSEG
START PROC FAR
MOV AX, DSEG
MOV DS, AX
MOV SI, 1 ; current index
MOV DI, 0... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
; A228879: a(n+2) = 3*a(n), starting 4,7.
; 4,7,12,21,36,63,108,189,324,567,972,1701,2916,5103,8748,15309,26244,45927,78732,137781,236196,413343,708588,1240029,2125764,3720087,6377292,11160261,19131876,33480783,57395628,100442349,172186884,301327047,516560652
add $0,1
mov $2,2
mov $3,5
lpb $0,1
sub $0,1
mov $1,$2
... |
; A094761: a(n) = n + (square excess of n).
; 0,1,3,5,4,6,8,10,12,9,11,13,15,17,19,21,16,18,20,22,24,26,28,30,32,25,27,29,31,33,35,37,39,41,43,45,36,38,40,42,44,46,48,50,52,54,56,58,60,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,64,66,68,70,72,74,76,78
mov $2,$0
lpb $2
mov $1,$0
sub $2,1
add $1,$2
add $3,2
... |
/* -------------------------------------------------------------------------- *
* OpenSim: buildHopperModel.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. ... |
; Copyright 2021 IBM Corporation
;
; 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 in writi... |
; A199113: (11*3^n+1)/2.
; 6,17,50,149,446,1337,4010,12029,36086,108257,324770,974309,2922926,8768777,26306330,78918989,236756966,710270897,2130812690,6392438069,19177314206,57531942617,172595827850,517787483549,1553362450646,4660087351937,13980262055810,41940786167429,125822358502286,377467075506857,1132401226520570,3... |
;
; z88dk GFX library
;
; Render the "stencil".
; The dithered horizontal lines base their pattern on the Y coordinate
; and on an 'intensity' parameter (0..11).
; Basic concept by Rafael de Oliveira Jannone
;
; Machine code version by Stefano Bodrato, 22/4/2009
;
; stencil_render(unsigned char *stencil, unsigned char... |
; A256162: Positive integers a(n) such that number of digits in decimal expansion of a(n)^a(n) is divisible by a(n).
; 1,8,9,98,99,998,999,9998,9999,99998,99999,999998,999999,9999998,9999999,99999998,99999999,999999998,999999999,9999999998,9999999999,99999999998,99999999999,999999999998,999999999999,9999999999998,99999... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xd7b3, %rsi
lea addresses_WT_ht+0x1e3b3, %rdi
nop
nop
nop
dec %r11
mov $33, %rcx
rep movsq
nop
nop
nop
nop
inc %rcx
lea addresses_D_ht+0x1517b, %rsi
lea addresses_A_ht+0x1bbb... |
; A137866: a(1)=0. For n >= 2, a(n) = gcd(a(n-1)+1, n).
; 0,1,1,2,1,2,1,2,3,2,1,2,1,2,3,4,1,2,1,2,3,2,1,2,1,2,3,4,1,2,1,2,3,2,1,2,1,2,3,4,1,2,1,2,3,2,1,2,1,2,3,4,1,2,1,2,3,2,1,2,1,2,3,4,5,6,1,2,3,2,1,2,1,2,3,4,1,2,1,2,3,2,1,2,1,2,3,4,1,2,1,2,3,2,1,2,1,2,3,4
mov $2,$0
lpb $0
mov $0,$2
add $1,1
add $3,2
gcd $1,$... |
#include "PID.h"
/**
* Done: Complete the PID class. You may add any additional desired functions.
*/
PID::PID() {}
PID::~PID() {}
void PID::Init(double Kp_, double Ki_, double Kd_) {
/**
* Done: Initialize PID coefficients (and errors, if needed)
*/
Kp = Kp_;
Ki = Ki_;
Kd = Kd_;
p_error = 0... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994 -- All Rights Reserved
GEOWORKS CONFIDENTIAL
PROJECT: Network extensions
MODULE: Socket library
FILE: socketError.asm
AUTHOR: Eric Weber, May 11, 1994
ROUTINES:
Name Description
---- --... |
@localsize 1, 1, 1
@buf 4 ; g[0]
@pvtmem 4
mov.u32u32 r1.x, 0x12345678
mov.u32u32 r0.x, 0
(rpt5)nop
stp.u32 p[r0.x + 0], r1.x, 1
ldp.u32 r0.x, p[r0.x + 0], 1
mov.u32u32 r0.y, 0x00000000
(sy)(rpt5)nop
stib.b.untyped.1d.u32.1.imm r0.x, r0.y, 0
end
nop
|
.686P
.MODEL FLAT, C
.STACK 1000h
.CODE
bughunt_syscall PROC
push ebp
mov ebp, esp
sub esp, 84h
mov ecx, [ebp + 88h] ; main (argv[33]) = dw0x20
push ecx
mov ecx, [ebp + 84h] ; main (argv[32]) = dw0x1F
push ecx
mov ecx, [ebp + 80h] ; main (argv[31]) = dw0x1E
push ecx
mov ecx, [e... |
// IMPORT STANDARD LIBRARIES
#include <iostream>
#include <string>
// IMPORT THIRD-PARTY LIBRARIES
#include <pxr/usd/usd/stage.h>
#include <pxr/usd/usdGeom/sphere.h>
int main() {
auto stage = pxr::UsdStage::CreateInMemory();
stage->GetRootLayer()->SetDocumentation("This is an example of adding a comment. You... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "UIManager.h"
#include <react/core/ShadowNodeFragment.h>
#include <react/debug/SystraceSection.h>
#include <react/graphic... |
global _start
section .text
_start:
push 1 ; rax = 1
pop rax
push 42 ; rbx = 42
pop rbx
int 0x80
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: PostScript printer driver
FILE: pscriptzDriverInfo.asm
AUTHOR: Jim DeFrisco, 15 May 1990
REVISION HISTORY:
Name Date Description
... |
//------------------------------------------------------------------------------
//
// Copyright (c) 2011, ARM Limited. All rights reserved.
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//------------------------------------------------------------------------------
INCLUDE AsmMacroExport.inc
... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld c, 41
ld b, 03
lbegin_waitm3:
ldff a, (c)
and a, b
cmp a, b
jrnz lbegin_waitm3
ld a, 20
ldff(c), a
ld a, 02
ldff(ff), a
ei
ld hl, 8000
... |
InitLink:
; Switch on the link port in receive mode with interrupts enabled.
ld a, $0F
ldh [$01], a
ld a, $82
ldh [$02], a
ld a, $01 ; switch to RunLink
ld [$CEFF], a
ret
RunLink:
; Load the command byte, and only continue if there is a command.
ld ... |
; A153286: a(n) = n^3 + sum((-1)^j*a(j)); for j=1 to n-1; a(1)=1.
; 1,7,33,37,135,91,309,169,555,271,873,397,1263,547,1725,721,2259,919,2865,1141,3543,1387,4293,1657,5115,1951,6009,2269,6975,2611,8013,2977,9123,3367,10305,3781,11559,4219,12885,4681,14283,5167,15753,5677,17295
mov $4,$0
mov $6,-1
pow $6,$0
bin $0,2
mul... |
; A191902: Number of compositions of odd positive integers into 5 parts <= n.
; 0,16,121,512,1562,3888,8403,16384,29524,50000,80525,124416,185646,268912,379687,524288,709928,944784,1238049,1600000,2042050,2576816,3218171,3981312,4882812,5940688,7174453,8605184,10255574,12150000,14314575,16777216,19567696,22717712,26260... |
; This file is part of the ZRDX 0.50 project
; (C) 1998, Sergey Belyakov
Segm Text
malloc PROC
DPMIFn 5 01
@@NewMCB equ EAX
@@NewMCBW equ AX
@@Offset equ EDI
@@OffsetW equ DI
@@NewSize equ EBX
pushad
push ds
... |
; A022309: a(n) = a(n-1) + a(n-2) + 1 for n>1, a(0)=0, a(1)=4.
; 0,4,5,10,16,27,44,72,117,190,308,499,808,1308,2117,3426,5544,8971,14516,23488,38005,61494,99500,160995,260496,421492,681989,1103482,1785472,2888955,4674428,7563384,12237813,19801198,32039012,51840211,83879224,135719436,219598661,355318098,574916760,930234... |
;Z88 Small C Library functions, linked using the z80 module assembler
;Small C Z88 converted by Dominic Morris <djm@jb.man.ac.uk>
;
;11/3/99 djm Saved two bytes by removing useless ld h,0
;
;
; $Id: getk.asm,v 1.3 2016-03-13 18:14:13 dom Exp $
;
SECTION code_clib
PUBLIC getk ;Read keys
.g... |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/focaltech/focaltech.h>
#include <limits.h>
#include <unistd.h>
#include <ddk/binding.h>
#include <ddk/debug.h>
#include <ddk/device.h>
#incl... |
////////////////////////////////////////////////////////////////////////////
// Module : ai_zombie_fsm.cpp
// Created : 25.04.2002
// Modified : 07.11.2002
// Author : Dmitriy Iassenev
// Description : AI Behaviour for monster "Zombie"
////////////////////////////////////////////////////////////////////////... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x125d3, %r11
add $38054, %r15
movl $0x61626364, (%r11)
xor $35368, %rdx
lea addresses_A_ht+0x10af3, %rsi
lea addresses_A_ht+0x1553, %rdi
nop
nop
nop
add %r13, %r13
mov $1... |
//
// Created by Kotarou on 2020/6/26.
//
#include <fmt/format.h>
#include <yaml-cpp/yaml.h>
#include "socks5_decoder.h"
#include "../uri.h"
#include "../utils.h"
#include "../exception/unsupported_configuration.h"
YAML::Node Socks5Decoder::decode_config(const Uri &uri) {
auto[name, raw_config] = strip_name(uri.... |
Name: zel_init.asm
Type: file
Size: 266732
Last-Modified: '2016-05-13T04:36:32Z'
SHA-1: 55F7A87B4EFE87B7AF5ED29F9ECABC399DACD591
Description: null
|
; vim: ft=nasm
; https://github.com/torvalds/linux/blob/v4.0-rc7/arch/sh/include/uapi/asm/unistd_32.h#L174
%define SYS_NANOSLEEP 162
; https://github.com/torvalds/linux/blob/v4.0-rc7/include/uapi/linux/time.h#L9
; struc timespec ; time.h
; tv_sec: resd 1 ; __kernel_time_t
; tv_nsec: resd 1 ; long
... |
; A173259: Period 3: repeat [4, 1, 4].
; 4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4
mod $0,3
mov $1,$0
mul $1,$0
gcd $1,4
|
.data
callbookName: .asciiz "callbook.txt"
question: .byte 10
.ascii "Introduce:"
.byte 10
.ascii "1 - Load a file, from root, if it does not exist it will use a new callbook: "
.byte 10
.ascii "2 - List all entries: "
.byte 10
.ascii "3 - Order the ... |
; A292061: a(n) = (n-3)*(n-2)^2*(n-1)^2*n/24.
; 0,0,0,6,60,300,1050,2940,7056,15120,29700,54450,94380,156156,248430,382200,571200,832320,1186056,1656990,2274300,3072300,4091010,5376756,6982800,8970000,11407500,14373450,17955756,22252860,27374550,33442800,40592640,48973056,58747920
bin $0,2
mov $1,$0
bin $1,2
mul $0,$1... |
;;;;;;;;;;;;;;;;
; test subtraction
;;;;;;;;;;;;;;;;
; required for execution on the NES
.org $8000
SEC ; set carry flag
LDA #$20 ; init acc
SBC #$10 ; subtract 0x10
NOP ; perform assertions:
; a = 0x10
; c = 1
... |
; A111234: a(1)=2; thereafter a(n) = (largest proper divisor of n) + (smallest prime divisor of n).
; 2,3,4,4,6,5,8,6,6,7,12,8,14,9,8,10,18,11,20,12,10,13,24,14,10,15,12,16,30,17,32,18,14,19,12,20,38,21,16,22,42,23,44,24,18,25,48,26,14,27,20,28,54,29,16,30,22,31,60,32,62,33,24,34,18,35,68,36,26,37,72,38,74,39,28,40,18,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.