text stringlengths 1 1.05M |
|---|
/*
* This file belongs to the Galois project, a C++ library for exploiting parallelism.
* The code is being released under the terms of the 3-Clause BSD License (a
* copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
; Original address was $BDA0
; Tank boss room
.word $0000 ; Alternate level layout
.word $0000 ; Alternate object layout
.byte LEVEL1_SIZE_01 | LEVEL1_YSTART_000
.byte LEVEL2_BGPAL_05 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_10 | LEVEL3_VSCROLL_LOCKED | LEVEL3_PIPENOTEXIT
.byte LEVEL4_BGBANK_IND... |
# Scrivere un programma in linguaggio assembly MIPS che riceve in ingresso una sequenza di N numeri interi.
# I numeri sono memorizzati in un vettore. Il valore N è inserito dall’utente, ma il vettore può contenere al massimo 30 numeri.
# Terminato l’inserimento della sequenza di numeri, il programma deve verificare ... |
%ifdef CONFIG
{
"RegData": {
"XMM0": ["0x6162636465666768", "0x7172737475767778"],
"XMM1": ["0x6162636465666768", "0x7172737475767778"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x7172737475767778
mov [r... |
#include "structures/dynamicgrid.hpp"
DynamicGrid::DynamicGrid(int w, int h, int unitySize) : AbstractGrid::AbstractGrid(w, h, unitySize){
}
DynamicGrid::DynamicGrid() : AbstractGrid::AbstractGrid(0, 0, 0){
}
int DynamicGrid::getQuad(sf::Vector2f position) const{
return getQuad(position.x, position.y);
}
int Dyn... |
// Copyright (c) 2011-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/test_bitcoin.h>
#include <chainparams.h>
#include <consensus/consensus.h>
#include <consensus/validation.h>
#... |
; Z88DK Small C+ Graphics Functions
; Fills a screen area
;
; Generic and simple version, slower and wasting a bit of memory
;
; $Id: w_fill.asm $
;
INCLUDE "graphics/grafix.inc"
SECTION code_graphics
PUBLIC fill
PUBLIC _fill
EXTERN l_graphics_cmp
EXTERN point
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x4c94, %r10
nop
nop
nop
nop
nop
sub $34244, %rbx
mov $0x6162636465666768, %rcx
movq %rcx, %xmm6
and $0xffffffffffffffc0, %r10
movntdq %xmm6, (%r10)
nop
nop
nop
cmp %r12, %r12
l... |
; A251703: 4-step Fibonacci sequence starting with 1,1,0,0.
; Submitted by Christian Krause
; 1,1,0,0,2,3,5,10,20,38,73,141,272,524,1010,1947,3753,7234,13944,26878,51809,99865,192496,371048,715218,1378627,2657389,5122282,9873516,19031814,36685001,70712613,136302944,262732372,506432930,976180859
mov $2,1
mov $4,-2
lpb ... |
; A250730: Number of (1+1)X(n+1) 0..1 arrays with nondecreasing x(i,j)+x(i,j-1) in the i direction and nondecreasing min(x(i,j),x(i-1,j)) in the j direction
; 9,22,50,114,257,579,1302,2927,6578,14782,33216,74637,167709,376840,846753,1902638,4275190,9606266,21585085,48501247,108981314,244878791,550237650,1236372778,2778... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosFreeSeg DOS wrapper
;
; (c) osFree Project 2018, <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 Prokushev ... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>linkat(fromfd, from_, tofd, to, flags) -> str
Invokes the syscall linkat.
See 'man 2 linkat' for more information.
Arguments:
fromfd(int): fromfd
from(char*): from
tofd(int): tofd
to(cha... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 92
call lwaitly_b
ld a, 40
ldff(41), a
ld a, 02
ldff(ff), a
xor a, a
ldff(0f), a
ei
ld a, b
inc a
inc a
ldff(45), a
ld c, 0f
.text@1000
lstatint:
ld a, 10
ldff(41), a
xor a, a
ldff(0... |
proc RunPE Executable:DWORD
local ProcessBasicInformation:PROCESS_BASIC_INFORMATION
local StartupInformation:STARTUPINFOEXW
local ProcessInformation:PROCESS_INFORMATION
local ExecutablePath[MAX_PATH + 1]:WORD
local CommandLine:DWORD
local ParentProcessHandle:DWORD
local ImageBase:DWORD
local EntryPoint:DWORD
l... |
; A234957: Highest power of 4 dividing n.
; 1,1,1,4,1,1,1,4,1,1,1,4,1,1,1,16,1,1,1,4,1,1,1,4,1,1,1,4,1,1,1,16,1,1,1,4,1,1,1,4,1,1,1,4,1,1,1,16,1,1,1,4,1,1,1,4,1,1,1,4,1,1,1,64,1,1,1,4,1,1,1,4,1,1,1,4,1,1,1,16,1,1,1,4,1,1,1,4,1,1,1,4,1,1,1,16,1,1,1,4,1,1,1,4,1,1,1,4,1,1,1,16,1,1,1,4,1,1,1,4,1,1,1,4,1,1,1,64,1,1,1,4,1,1,... |
; ********************************************************************************************
; ********************************************************************************************
;
; Name : dma.asm
; Purpose : ..
; Created : 15th Nov 1991
; Updated : 4th Jan 2021
; Authors : Fred Bowen
;
; *****... |
; A341389: Characteristic function of A158705, nonnegative integers with an odd number of even powers of 2 in their base-2 representation.
; 0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,0,1,0,1,1,0,1,0,0,1... |
* Network remote file utils V0.1 1985 Tony Tebby QJUMP
*
section nd
*
xdef nf_chkrd check buffer for read
xdef nf_chkwr check buffer for write
*
xdef nf_wblok write a block
xdef nf_send send a pack... |
.data
textCh: .asciiz "Choose your set:\n1. Julia\n2. Mandelbrot\nChoice: "
text0: .asciiz "Enter number of iterations: "
text1: .asciiz "Enter in format: 0.0000\nEnter xc: 0."
text2: .asciiz "Enter yc: 0."
text3: .asciiz "Enter xn: 0."
text4: .asciiz "Enter yn: 0."
text5: .asciiz "\nFinished, result saved ... |
section .text
%macro array 2
[section .bss]
%1 resb %2
[section .data]
db ";"
%endmacro
[section .bss]
array input, 128
array fd_out, 1
array fd_in, 1
array buffer, 24
[section .data]
error db " Error:: ", ";"
layer1 dd 0, ";"
layer2 dd 0, ";"
layer3 dd 0, ";"... |
// Copyright (c) 2012 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 "chrome/browser/chromeos/accessibility/magnification_manager.h"
#include <limits>
#include "ash/magnifier/magnification_controller.h"
#incl... |
;
; $Id: bcm953314p24ref.asm,v 1.11 2011/05/22 23:38:42 iakramov Exp $
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2020 Broadcom Inc. All rights reserved.
;
;
; This is the default program for the (24 port) ... |
// stdafx.cpp : source file that includes just the standard includes
// NodeSpinPort.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#define NODESPINPORT_DLL
#include "stdafx.h"
|
/*
* Copyright (C) 2018 Open Source Robotics Foundation
*
* 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 appl... |
; A160796: Total number of "ON" cells at n-th stage in simple 2-dimensional cellular automaton which is the "corner" structure corresponding to A160118.
; Submitted by Jon Maiga
; 0,1,8,11,32,35,56,65,128,131,152,161,224,233,296,323,512,515,536,545,608,617,680,707,896,905,968,995,1184,1211,1400,1481,2048,2051,2072,2081... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x14ee5, %r11
nop
nop
nop
nop
nop
add $42497, %r12
mov (%r11), %r10d
nop
nop
nop
nop
nop
sub %rbx, %rbx
lea addresses_UC_ht+0xd2d, %r9
nop
nop
xor %rbp, %rbp
mov $0x6... |
link l1:ct
link l2:rdm
link rb: 8,9,10,z
equ ax: r0
equ cx: r1
equ dx: r2
equ bx: r3
equ sp: r4
equ bp: r5
equ si: r6
equ ddi: r7
equ cs: r8
equ ss: r9
equ ds: r10
equ ip: r12
equ es: r11
equ pom1: r13
equ pom2: r14
equ rr: r15
accept cx:0003h
accept ax:0000h
accept bx:0000h
accept dx:000... |
;Este es un comentario
list p=18f4550
#include <p18f4550.inc> ;libreria de nombre de los registros sfr
CONFIG FOSC = XT_XT ; Oscillator Selection bits (XT oscillator (XT))
CONFIG PWRT = ON ; Power-up Timer Enable bit (PWRT enabled)
CONFIG BOR = OFF ; Brown-ou... |
/*=========================================================================
Program: ParaView
Module: $RCSfile: pqProxy.cxx,v $
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms of t... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x10c85, %r13
nop
and $59495, %rdi
movl $0x61626364, (%r13)
nop
nop
nop
sub %r11, %r11
lea addresses_WT_ht+0x1c2e5, %rdi
clflush (%rdi)
and %rax, %rax
mov (%rdi), %ecx
and %r13... |
.model small
.data
.code
main proc
; IMPORTANT NOTE: the size of the AND entities have to be the same, so 8bit must go with 8 bit registers!!!
mov ah, 00000001b ; mov the binary value of 1 into ah
mov bh, 00000101b ; mov the binary value of 5 in bh
and bh, ah ... |
/*Author : Abdallah Hemdan */
/***********************************************/
/* Dear online judge:
* I've read the problem, and tried to solve it.
* Even if you don't accept my solution, you should respect my effort.
* I hope my code compiles and gets accepted.
* ___ __
* |\ \|\ \
* \ \ \_\ \
* \ \ ___ \emd... |
; A338086: Duplicate the ternary digits of n, so each 0, 1 or 2 becomes 00, 11 or 22 respectively.
; Submitted by Jamie Morken(w1)
; 0,4,8,36,40,44,72,76,80,324,328,332,360,364,368,396,400,404,648,652,656,684,688,692,720,724,728,2916,2920,2924,2952,2956,2960,2988,2992,2996,3240,3244,3248,3276,3280,3284,3312,3316,3320,3... |
; A151793: Partial sums of A151782.
; 1,9,17,73,81,137,193,585,593,649,705,1097,1153,1545,1937,4681,4689,4745,4801,5193,5249,5641,6033,8777,8833,9225,9617,12361,12753,15497,18241,37449,37457,37513,37569,37961,38017,38409,38801,41545,41601,41993,42385,45129
mov $3,$0
mov $5,$0
lpb $5,1
mov $0,$3
sub $5,1
sub $0,$... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x18682, %rsi
nop
nop
nop
nop
cmp $41387, %r15
movups (%rsi), %xmm2
vpextrq $1, %xmm2, %rbp
nop
nop
nop
nop
xor %r11, %r11
lea addresses_UC_ht+0x4392, %r13
nop
nop
nop... |
/* Copyright (c) 2014, Google Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... |
@include
;-------------------------------------------------------------------------------
; GIEPY Normal Sprite code
;-------------------------------------------------------------------------------
pushpc
org $02a9ca ; This address is overritten by SA-1 patch.
dl InitSpriteTableFix ; So strict checking is... |
#include<bits/stdc++.h>
using namespace std;
#define MAX 1000
class Stack{
int top;
public:
int a[MAX]; // maximum stack size
Stack() {top = -1;}
bool push(int x);
int pop();
int peek();
bool isEmpty();
};
bool Stack::push(int x)
{
if(top>=(MAX-1))
{
... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
;
; Sharp specific routines
; by Stefano Bodrato, Fall 2013
;
; int get_psg(int reg);
;
; Get a PSG register
;
;
; $Id: get_psg.asm,v 1.2 2015/01/19 01:33:04 pauloscustodio Exp $
;
PUBLIC get_psg
get_psg:
LD BC,$1C00
OUT (C),l
dec b
IN a,(C)
ld l,a ; NOTE: A register has to keep the same value
ret
|
// Copyright 2013 Yangqing Jia
#include <stdint.h>
#include <leveldb/db.h>
#include <pthread.h>
#include <string>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/util/io.hpp"
#include "caffe/vision_layers.hpp"
using std::string;
namespace caffe {
template <typename Dtype>
void* DataLayerPrefetch(void... |
;
; Game device library for the Enterprise 64/128
; Stefano Bodrato - Mar 2011
;
; $Id: joystick.asm,v 1.4 2016-06-16 20:23:51 dom Exp $
;
SECTION code_clib
PUBLIC joystick
PUBLIC _joystick
INCLUDE "enterprise.def"
.joystick
._joystick
;__FASTALL__ : joystick no. in HL
ld c... |
6B_Header:
sHeaderInit ; Z80 offset is $C97C
sHeaderPatch 6B_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, 6B_FM5, $00, $00
6B_FM5:
sPatFM $00
ssModZ80 $01, $01, $0D, $00
dc.b nFs4, $0C, sHold
ssModZ80 $00, $01, $00, $00
dc.b $4B
sStop
; 6B_Patches at $C963 ($19 before start of file) can... |
// Generated by Haxe 4.0.0-preview.5
#include <hxcpp.h>
#ifndef INCLUDED_nape_constraint_Constraint
#include <hxinc/nape/constraint/Constraint.h>
#endif
#ifndef INCLUDED_nape_constraint_DistanceJoint
#include <hxinc/nape/constraint/DistanceJoint.h>
#endif
#ifndef INCLUDED_nape_geom_MatMN
#include <hxinc/nape/geom/MatM... |
;*
;* RMT FEATures definitions
;*
;* For optimizations of RMT player routine to concrete RMT modul only!
;* --------BEGIN--------
FEAT_SFX equ 0 ;* 0 => No SFX support, 1 => SFX support
FEAT_GLOBALVOLUMEFADE equ 0 ;* 0 => No RMTGLOBALVOLUMEFADE support, 1=> RMTGLOBALVOLUMEFADE support (+7 bytes)
FEAT_NOST... |
###############################################################################
# Copyright 2019 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... |
/*
* CLI.asm
*
* Created: 5/13/2018 3:04:22 PM
* Author: ROTP
*/
CLI_implied: ;UNTESTED
swapPCwithTEMPPC
CBR SR, INTERRUPT_FLAG
ADIW ZH:ZL, 1
RET |
; A120784: Numerators of partial sums of Catalan numbers scaled by powers of 1/16.
; Submitted by Christian Krause
; 1,17,137,4389,35119,561925,4495433,287708141,2301665843,36826655919,294613251551,9427624079025,75420992684203,1206735883132973,9653887065398089,1235697544380650237
mul $0,2
mov $1,1
lpb $0
mov $2,$0
... |
global irq0
global irq1
global irq2
global irq3
global irq4
global irq5
global irq6
global irq7
global irq8
global irq9
global irq10
global irq11
global irq12
global irq13
global irq14
global irq15
global default_handler
global load_idt
;global irq0_handler
;global irq1_handler
;global irq2_ha... |
;Write an 8051 ASM program to perform division on 8-bit numbers present in data memory address location 33H & 34H and
;store the result in 35H (Reminder) & 36H (Quotient).
ORG 0000H
MOV A,33H
MOV B,34H
DIV AB
MOV 35H,B
MOV 36H,A
END ;Deeptimaan Banerjee |
//
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "TransposeLayer.hpp"
#include "LayerCloneBase.hpp"
#include <armnn/TypesUtils.hpp>
#include <armnnUtils/Transpose.hpp>
#include <backendsCommon/WorkloadData.hpp>
#include <backendsCommon/WorkloadFactor... |
// Copyright 2017 Google 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 law or agreed to in w... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; void ozquiet()
;
; ------
; $Id: ozquiet.asm,v 1.2 2015/01/19 01:33:02 pauloscustodio Exp $
;
PUBLIC ozquiet
EXTERN ozclick
EXTERN ozclick_setting
ozquiet:
xor a
out (16h),a ; turn off... |
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
* (C) 2006 Alexey Proskuryakov (ap@nypop.com)
*
* This library is free sof... |
; Disassembly of "metroid2.gb"
SECTION "ROM Bank $00a", ROMX[$4000], BANK[$a]
nop ; $4000: $00
ld e, [hl] ; $4001: $5e
nop ; $4002: $00
ld e, a ;... |
; A154879: Third differences of the Jacobsthal sequence A001045.
; Submitted by Jamie Morken(s4)
; 3,-2,4,0,8,8,24,40,88,168,344,680,1368,2728,5464,10920,21848,43688,87384,174760,349528,699048,1398104,2796200,5592408,11184808,22369624,44739240,89478488,178956968,357913944,715827880,1431655768,2863311528,5726623064,1145... |
; 当CPU执行ret指令的时候相当于进行
; POP IP 从栈中读取数据
; 当CPU执行retf指令的时候相当于进行
; POP IP
; POP CS
; 故ret, retf与栈有直接关系
assume cs:code
data segment
db 'Welcome to ASM!','$'
data ends
stack segment
db 16 dup (0)
stack ends
code segment
mov ah, 4ch
int 21h
start: mov ax, stack
mov ss, ax
mov sp, 16
... |
;***********************************************************;
; radical - simple bootloader ;
; file : print.asm ;
; desc : contains functions for printing on screen ;
; author : Siddharth Mishra ;
; time ... |
; A050454: a(n) = Sum_{d|n, d=3 mod 4} d^3.
; Submitted by Jamie Morken(s4)
; 0,0,27,0,0,27,343,0,27,0,1331,27,0,343,3402,0,0,27,6859,0,370,1331,12167,27,0,0,19710,343,0,3402,29791,0,1358,0,43218,27,0,6859,59346,0,0,370,79507,1331,3402,12167,103823,27,343,0,132678,0,0,19710,167706,343,6886,0,205379,3402,0,29791,250417,... |
; A147612: If n is a Jacobsthal number then 1 else 0.
; 1,1,0,1,0,1,0,0,0,0,0,1,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,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,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0
mul $0,3
seq $0,53645 ; Distance to largest power of 2 less tha... |
; void *obstack_init(struct obstack *ob, size_t size)
SECTION code_clib
SECTION code_alloc_obstack
PUBLIC obstack_init
EXTERN asm_obstack_init
obstack_init:
pop af
pop bc
pop de
push de
push bc
push af
jp asm_obstack_init
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _obstack_init
de... |
; A168281: Triangle T(n,m) = 2*(min(n+m-1,m))^2 read by rows.
; 2,2,2,2,8,2,2,8,8,2,2,8,18,8,2,2,8,18,18,8,2,2,8,18,32,18,8,2,2,8,18,32,32,18,8,2,2,8,18,32,50,32,18,8,2,2,8,18,32,50,50,32,18,8,2,2,8,18,32,50,72,50,32,18,8,2,2,8,18,32,50,72,72,50,32,18,8,2,2,8,18,32,50,72,98,72,50,32,18,8,2,2,8,18,32,50,72,98,98,72,50,3... |
db SANDSHREW ; pokedex id
db 50 ; base hp
db 75 ; base attack
db 85 ; base defense
db 40 ; base speed
db 30 ; base special
db GROUND ; species type 1
db GROUND ; species type 2
db 255 ; catch rate
db 93 ; base exp yield
INCBIN "pic/gsmon/sandshrew.pic",0,1 ; 55, sprite dimensions
dw SandshrewPicFront
dw SandshrewPicBac... |
;;============================================================================
;; MCKL/lib/asm/philox_sse2_32.asm
;;----------------------------------------------------------------------------
;; MCKL: Monte Carlo Kernel Library
;;----------------------------------------------------------------------------
;; Copyright... |
; A030118: a(0) = 1, a(1) = 1, a(n) = a(n-1) - a(n-2) + n.
; 1,1,2,4,6,7,7,7,8,10,12,13,13,13,14,16,18,19,19,19,20,22,24,25,25,25,26,28,30,31,31,31,32,34,36,37,37,37,38,40,42,43,43,43,44,46,48,49,49,49,50,52,54,55,55,55,56,58,60,61,61,61,62,64,66,67,67,67,68,70,72,73,73,73,74,76,78,79,79,79,80,82,84,85,85,85,86,88,90,9... |
/*
* siox-module.asm
*
* Created: 2016/08/04
* Author: lynf
*/
;
;
;######################################################################################
; This software is Copyright by Francis Lyn and is issued under the following license:
;
; Creative Commons Attribution-NonCommercial-ShareAlike ... |
# Main-Funktion
# Spielablauf:
# 1. Startbildschirm aufrufen
# 2. Init: draw_ball + draw_paddle
# 3. Init scoreboard
#
# while score <11 {
# do {
# 4. move_paddel
# 5. ball_control } while keine Kollision
#
# wenn Kollision: {
# scoreboard ( 1 linke Seite, 2 rechte Seite, 0 alles gut :))
# soundeffekt
... |
/*------------------------------------------------------------------------------
Lucena Utilities Library
“Config.hpp”
Copyright © 2015-2018 Lucena
All Rights Reserved
This file is distributed under the University of Illinois Open Source
License. See license/License.txt for details.
Config documents the inter... |
; A340867: a(n) = (prime(n) - a(n-1)) mod 4; a(0)=0.
; 0,2,1,0,3,0,1,0,3,0,1,2,3,2,1,2,3,0,1,2,1,0,3,0,1,0,1,2,1,0,1,2,1,0,3,2,1,0,3,0,1,2,3,0,1,0,3,0,3,0,1,0,3,2,1,0,3,2,1,0,1,2,3,0,3,2,3,0,1,2,3,2,1,2,3,0,3,2,3,2,3,0,1,2,3,0
seq $0,8347 ; a(n) = Sum_{i=0..n-1} (-1)^i * prime(n-i).
mod $0,4
|
; A021924: Expansion of 1/((1-x)(1-4x)(1-8x)(1-11x)).
; Submitted by Jon Maiga
; 1,24,389,5364,68025,821808,9633613,110741388,1256415809,14127007752,157849954197,1755978039972,19472809159753,215457395996256,2380083675784541,26261340423891516,289518110311522257,3189846161522961720,35129483453148283045,386753723762300622... |
; A338206: Inverse of A160016.
; 0,2,1,6,3,10,4,14,5,18,7,22,8,26,9,30,11,34,12,38,13,42,15,46,16,50,17,54,19,58,20,62,21,66,23,70,24,74,25,78,27,82,28,86,29,90,31,94,32,98,33,102,35,106,36,110,37,114,39,118,40,122,41,126,43,130,44,134,45,138,47,142,48,146,49,150,51,154,52,158
mov $1,$0
mod $0,2
sub $0,1
mul $1,2
lpb ... |
#include <sys/ioctl.h>
#include <unistd.h>
#include <Processors/Formats/Impl/PrettyBlockOutputFormat.h>
#include <Formats/FormatFactory.h>
#include <IO/WriteBuffer.h>
#include <IO/WriteHelpers.h>
#include <IO/WriteBufferFromString.h>
#include <IO/Operators.h>
#include <Common/PODArray.h>
#include <Common/UTF8Helpers.h>... |
; A285076: 1-limiting word of the morphism 0->10, 1-> 010.
; 1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
//Robert Ietswaart
//20160924
//FCA_52.cpp
#include <iostream>
#include <fstream>
#include <math.h>
#include <ctime>
#include <cstdlib>
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <cstring>
#include "MersenneTwister.h"
#include "FCA_52_table.h"
using namespace std;
const double Time = 10*24*... |
; A300622: Denominators of sequence whose exponential self-convolution yields sequence 1, 2, 3, 5, 7, 11, 13, ... (1 with primes).
; 1,1,2,1,4,4,8,4,16,16,32,16,64,64,128,64,256,256,512,256,1024,1024,2048,1024,4096,4096,8192,4096,16384,16384,32768,16384,65536,65536,131072,65536,262144,262144,524288,262144,1048576,10485... |
; Copyright 2020 James Larrowe
;
; This file is part of RAMDump.
;
; RAMDump is licensed under the MIT license; for more details,
; see the file LICENSE in the root of this repository.
INCLUDE "addrs.inc"
SECTION "interrupts", ROM0[$0040]
vblank:
reti
ds 8 - (@ - vblank)
lcd_stat:
reti
ds 8 - (@ - lcd_stat)
timer... |
; A082850: Let S(0) = {}, S(n) = {S(n-1), S(n-1), n}; sequence gives S(infinity).
; 1,1,2,1,1,2,3,1,1,2,1,1,2,3,4,1,1,2,1,1,2,3,1,1,2,1,1,2,3,4,5,1,1,2,1,1,2,3,1,1,2,1,1,2,3,4,1,1,2,1,1,2,3,1,1,2,1,1,2,3,4,5,6,1,1,2,1,1,2,3,1,1,2,1,1,2,3,4,1,1,2,1,1,2,3,1,1,2,1,1,2,3,4,5,1,1,2,1,1,2,3,1,1,2,1
mov $1,12
lpb $0,1
mov ... |
/*
* ofxAndroidAccelerometer.cpp
*
* Created on: 28/11/2010
* Author: arturo
*/
#include <jni.h>
#include "ofxAccelerometer.h"
#include "ofxAndroidUtils.h"
#include "ofLog.h"
extern "C"{
void
Java_cc_openframeworks_OFAndroidAccelerometer_updateAccelerometer( JNIEnv* env, jobject thiz, jfloat x, jfloat y,... |
; This file is part of the ZRDX 0.50 project
; (C) 1998, Sergey Belyakov
DPMIFn MACRO Hi, Lo
_T = $
org offset Table2&Hi&Label+Lo*4
DD _T-CurSegBase
org _T
ENDM
DefineDPMITable2 MACRO P0, P1
LDWord Table2&P0
Table2&P0&... |
db DEX_WEEDLE ; pokedex id
db 40 ; base hp
db 35 ; base attack
db 30 ; base defense
db 50 ; base speed
db 20 ; base special
db BUG ; species type 1
db POISON ; species type 2
db 255 ; catch rate
db 52 ; base exp yield
INCBIN "pic/ymon/weedle.pic",0,1 ; 55, sprite dimensions
dw WeedlePicFront
dw WeedlePicBack
; attacks ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xef89, %rsi
lea addresses_D_ht+0x15d69, %rdi
nop
xor %r13, %r13
mov $69, %rcx
rep movsw
nop
sub $24955, %r14
lea addresses_WT_ht+0x61, %rbp
nop
sub %r10, %r10
mov $0x616263646... |
// Copyright (c) 2020-2021 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <util/sock.h>
#include <compat.h>
#include <logging.h>
#include <threadinterrupt.h>
#include <tinyformat.h>
#includ... |
; A024394: a(n) is the sum of squares of the first n positive integers congruent to 2 mod 3.
; 4,29,93,214,410,699,1099,1628,2304,3145,4169,5394,6838,8519,10455,12664,15164,17973,21109,24590,28434,32659,37283,42324,47800,53729,60129,67018,74414,82335,90799,99824,109428,119629,130445,141894,153994,166763,180219,194380,2... |
object_const_def ; object_event constants
const VICTORYROADGATE_OFFICER
const VICTORYROADGATE_BLACK_BELT1
const VICTORYROADGATE_BLACK_BELT2
VictoryRoadGate_MapScripts:
db 2 ; scene scripts
scene_script .DummyScene0 ; SCENE_DEFAULT
scene_script .DummyScene1 ; SCENE_FINISHED
db 0 ; callbacks
.DummyScene0:
end... |
; Copyright (c) 2004, Intel Corporation
; All rights reserved. This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution... |
#include "msslsocket.h"
MSSLSocket::MSSLSocket()
{
errorFlag = false;
if( WSAStartup( MAKEWORD (2, 2), &wsa) != 0) {
errorFlag = true;
sprintf(errorString, " Winsock Error: Winsock Initialization Failed. Error Code %d ", WSAGetLastError());
WSACleanup();
return ;
}
// ... |
; A083583: a(n) = (8*3^n - 5*0^n)/3.
; 1,8,24,72,216,648,1944,5832,17496,52488,157464,472392,1417176,4251528,12754584,38263752,114791256,344373768,1033121304,3099363912,9298091736,27894275208,83682825624,251048476872,753145430616,2259436291848,6778308875544,20334926626632,61004779879896,183014339639688,549043018919064,... |
OPTION DOTNAME
.text$ SEGMENT ALIGN(256) 'CODE'
EXTERN OPENSSL_ia32cap_P:NEAR
PUBLIC bn_mul_mont
ALIGN 16
bn_mul_mont PROC PUBLIC
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_bn_mul_mont::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
mov r8,QWORD PTR[40+rsp]
m... |
//
// Created by cerussite on 7/4/20.
//
#include <gtest/gtest.h>
#include <pyfunc/enumerate.hpp>
#include <vector>
TEST(enumerate, enumerate_basic) {
::std::vector<int> vec = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
for (auto ie : ::pyfunc::enumerate(vec)) {
::std::size_t i;
int e;
::std::tie(i, e) = ie;
... |
#include"ModuloRender.h"
#include"Aplication.h"
moduloRender::moduloRender(aplication *APP):Module(APP) {
}
moduloRender::~moduloRender() {
}
bool moduloRender::Init() {
int prop = SDL_RENDERER_PRESENTVSYNC;
renderer = SDL_CreateRenderer(app->Window->window, -1, prop);
SDL_RenderSetLogicalSize(renderer, WINDOWWIDT... |
//
// TM & (c) 2019 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
// All rights reserved. See LICENSE.txt for license.
//
#include <MaterialXRuntime/RtPrim.h>
#include <MaterialXRuntime/RtSchema.h>
#include <MaterialXRuntime/RtTraversal.h>
#include <MaterialXRuntime/Private/PvtPrim.h>
namespace MaterialX
... |
; A098385: Ordered factorizations over hook-type prime signatures with exactly three distinct primes (third column of A098348).
; Submitted by Jon Maiga
; 13,44,132,368,976,2496,6208,15104,36096,84992,197632,454656,1036288,2342912,5259264,11730944,26017792,57409536,126091264,275775488,600834048,1304428544,2822766592,60... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, 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... |
; =============================================================================
; Mario Party F (working title)
; =============================================================================
processor f8
; =============================================================================
; Constants
; =================... |
PUSH 0;
PUSH 0;
ST;
PUSH 0;
PUSH 1;
ST;
PUSH 0;
PUSH 2;
ST;
PUSH 0;
PUSH 0;
SETHI 0x0200;
ST;
PUSH 0;
PUSH 1;
SETHI 0x0200;
ST;
PUSH 0;
PUSH 2;
SETHI 0x0200;
ST;
PUSH 0;
PULL_CP 0;
PUSH 10;
CMP_ULE;
BZ 3;
DROP 0;
HALT;
PUSH 0;
SETHI 0x0200;
PULL_CP 0;
LD;
PUSH 1;
ADD;
PULL 1;
ST;
PUSH 1;
SETHI 0x0200;
PULL_CP 0;
LD;
PU... |
_ln: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
if(argc != 3){
7: 83 39 03 cmpl $0x3,(%ecx)... |
; 2018 June feilipu
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_math
PUBLIC l_z180_mulu_32_32x32, l0_z180_mulu_32_32x32
l_z180_mulu_32_32x32:
; multiplication of two 32-bit numbers into a 32-bit product
;
; enter : dehl = 32-bit multiplicand
; dehl'= 32-bit multiplicand
... |
;; xOS -- libxwidget 1
;; Copyright (c) 2017 by Omar Mohammad.
use32
;
; typedef struct textbox_component
; {
; u8 id; // XWIDGET_CPNT_TEXTBOX
; u8 flags; // described below
; u16 x;
; u16 y;
; u16 width;
; u16 height;
; u16 reserved;
; u32 text;
; u32 limit;
; u16 position_x;
; u16 position_y;
; u32 text_positio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.