text stringlengths 1 1.05M |
|---|
; A251635: Riordan array (1-2*x,x), inverse of Riordan array (1/(1-2*x), x) = A130321.
; Submitted by Jamie Morken(s1.)
; 1,-2,1,0,-2,1,0,0,-2,1,0,0,0,-2,1,0,0,0,0,-2,1,0,0,0,0,0,-2,1,0,0,0,0,0,0,-2,1,0,0,0,0,0,0,0,-2,1,0,0,0,0,0,0,0,0,-2,1,0,0,0,0,0,0,0,0,0,-2,1,0,0,0,0,0,0,0,0,0,0,-2,1,0,0,0,0,0
seq $0,25669 ; Expon... |
SSAnne6Script:
call EnableAutoTextBoxDrawing
ret
SSAnne6TextPointers:
dw SSAnne6Text1
dw SSAnne6Text2
dw SSAnne6Text3
dw SSAnne6Text4
dw SSAnne6Text5
dw SSAnne6Text6
dw SSAnne6Text7
SSAnne6Text1:
TX_FAR _SSAnne6Text1
db "@"
SSAnne6Text2:
TX_FAR _SSAnne6Text2
db "@"
SSAnne6Text3:
TX_FAR _SSAnne6Text3
... |
TMHMMoves:
; entries correspond to *_TMNUM enums (see constants/item_constants.asm)
; TMs
dw DYNAMICPUNCH
dw HEADBUTT
dw CURSE
dw ROLLOUT
dw ROAR
dw TOXIC
dw ZAP_CANNON
dw ROCK_SMASH
dw PSYCH_UP
dw HIDDEN_POWER
dw SUNNY_DAY
dw SWEET_SCENT
dw SNORE
dw BLIZZARD
dw HYPER_BEAM
dw ICY_WIND
dw PROTECT
dw RA... |
; Rectangle, Intervals and Points
; 05.2006 aralbrec
SECTION code_clib
PUBLIC r_IntersectRect16
PUBLIC _r_IntersectRect16
EXTERN RIntersectRect16
; int r_IntersectRect16(struct r_Rect16 *r1, struct r_Rect16 *r2, struct r_Rect16 *result)
.r_IntersectRect16
._r_IntersectRect16
ld hl,7
add hl,sp
ld d,(hl)
... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 30/9/98
;
;
; $Id: w_circle_callee.asm $
;
; Usage: circle(int x, int y, int radius, int skip);
SECTION code_graphics
PUBLIC circle_callee
PUBLIC _c... |
.size 8000
.text@48
inc a
ldff(45), a
jp lstatint
.text@100
jp lbegin
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 03
call lwaitly_b
ld a, 40
ldff(41), a
ld a, 02
ldff(ff), a
ei
ld a, b
inc a
inc a
ldff(45), a
ld c, 0f
halt
.text@1000
lstatint:
nop
.text@1063
ldff a, (c)
and a, b
jp lprint_a... |
[BITS 64]
%include "parameters.inc"
extern exit
global sub_sse128_int
section .text
sub_sse128_int:
push rbp
mov rax, ITERATIONS_sub_sse128i
lea rbx, [rel sse_iv]
movdqa xmm0, [rbx]
movdqa xmm1, [rbx]
movdqa xmm2, [rbx]
movdqa xmm3, [rbx]
movdqa xmm4, [rbx]
movdqa xmm5, [rbx]
movdqa xmm6, [rbx]
mo... |
; A122970: 29th powers: a(n) = n^29.
; 0,1,536870912,68630377364883,288230376151711744,186264514923095703125,36845653286788892983296,3219905755813179726837607,154742504910672534362390528,4710128697246244834921603689,100000000000000000000000000000,1586309297171491574414436704891,19781359483314150527412524285952,20153812... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x18a46, %r14
nop
nop
nop
and %rdx, %rdx
vmovups (%r14), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $0, %xmm1, %rbx
nop
nop
nop
nop
xor %r13, %r13
lea addresses_UC_h... |
/*!
@file
@author Shin'ichiro Nakaoka
*/
#include "RobotAccessBar.h"
#include "RobotAccessItem.h"
#include <cnoid/RootItem>
#include <cnoid/ItemTreeView>
#include <cnoid/MessageView>
#include "gettext.h"
using namespace std::placeholders;
using namespace cnoid;
namespace cnoid {
class RobotAccessBarImpl
{
publi... |
// Copyright (c) 2012-2018 The Bitcoin Core developers
// Copyright (c) 2017 The Raven Core developers
// Copyright (c) 2018 The Rito Core developers
// Copyright (c) 2020 The Ukcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses... |
; A001604: Odd-indexed terms of A124297.
; 11,31,151,911,5951,40051,272611,1863551,12760031,87424711,599129311,4106261531,28144128251,192901135711,1322159893351,9062207833151,62113268013311,425730597768451,2918000731816531,20000274041790911
mov $1,1
lpb $0
sub $0,1
add $1,1
add $2,1
add $1,$2
add $2,$1
lpe
a... |
#include "mex.h"
#include "matrix.h"
#include <math.h>
#include "SphericalTensor.cpp"
void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
if(nrhs != 1 && nrhs != 2 && nrhs != 3) {
printf("\nUsage: Df = STderivUp(f,difftyp,factor)\n\n",nrhs);
printf(" Computes Sphe... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
// Load
lea addresses_US+0x1fb56, %rax
clflush (%rax)
nop
nop
nop
and %rbp, %rbp
mov (%rax), %r11d
nop
nop
inc %rax
// Faulty Load
lea addresses_A+0x7c56, %rdx
nop
nop... |
/// @ref gtx_spline
namespace glm {
template<typename genType>
GLM_FUNC_QUALIFIER genType
catmullRom
(
genType
const& v1,
genType const &v2,
genType
const& v3,
genType const &v4,
typename genType::value_type const &s
) {
typename genType::value_type s... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xcae, %rdx
nop
nop
nop
nop
and $1887, %r11
movw $0x6162, (%rdx)
nop
nop
nop
xor $23654, %rcx
lea addresses_UC_ht+0x38ae, %r9
nop
nop
nop
sub %rbx, %rbx
mov $0x61626364... |
; A097766: Pell equation solutions (11*a(n))^2 - 122*b(n)^2 = -1 with b(n):=A097767(n), n >= 0.
; Submitted by Christian Krause
; 1,487,236681,115026479,55902632113,27168564180439,13203866289061241,6417051847919582687,3118673994222628124641,1515669144140349348992839,736612085378215560982395113,3579919578246686222880950... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1ee3b, %rsi
lea addresses_WT_ht+0x9f9f, %rdi
nop
nop
nop
nop
xor $30765, %r14
mov $36, %rcx
rep movsq
nop
nop
nop
nop
nop
sub %rbx, %rbx
lea addresses_A_ht+0x2b9f, %rdi
sub ... |
.byte $00, $00, $08, $0D, $09, $00, $00, $00, $00
|
Sound54_OOZLidPop_Header:
smpsHeaderStartSong 2, 1
smpsHeaderVoice Sound54_OOZLidPop_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $02
smpsHeaderSFXChannel cFM5, Sound54_OOZLidPop_FM5, $00, $00
smpsHeaderSFXChannel cPSG3, Sound54_OOZLidPop_PSG3, $00, $06
; FM5 Data
Sound54_OOZLidPop_FM5:
smpsSetvoice ... |
/// @ref gtx_matrix_interpolation
/// @file glm/gtx/matrix_interpolation.hpp
namespace glm {
template<typename T, precision P>
GLM_FUNC_QUALIFIER void axisAngle
(
tmat4x4 < T, P >
const & mat,
tvec3 <T, P> &axis,
T
& angle
) {
T epsilon = (T) 0.01;
T epsilon2 = (T) 0.1;
if((
abs(mat[1][0]
- mat[0][1]) < epsil... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
009614 move.l D2, (A0)+ [base+ 3C, base+ 4C, base+ 4E, base+ 5C, base+ 5E, base+ EC, base+ EE, base+ FC, base+ FE, base+16C, base+16E, base+17C, base+17E, base+20C, base+20E, base+21C, base+21E, base+28C, base... |
SECTION code_fp_math32
PUBLIC cm32_sdcc_frexp_callee
EXTERN m32_fsfrexp_callee
; float frexpf(float x, int8_t *pw2);
; Entry:
; Stack: ptr right, float left, ret
defc cm32_sdcc_frexp_callee = m32_fsfrexp_callee
|
; A103177: (7*3^n + 2n + 5)/4.
; Submitted by Christian Krause
; 3,7,18,50,145,429,1280,3832,11487,34451,103342,310014,930029,2790073,8370204,25110596,75331771,225995295,677985866,2033957578,6101872713,18305618117,54916854328,164750562960,494251688855,1482755066539
mov $1,3
pow $1,$0
mul $0,2
mul $1,7
add $0,$1
div $0... |
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: get_para.asm,v 1.4 2016-06-22 19:50:49 dom Exp $
;
SECTION code_fp
INCLUDE "cpcfp.def"
PUBLIC get_para
EXTERN fa
.get_para
ld hl,4
add hl,sp
ld de,fa ;(fa) <- (hl)
ld ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Calendar/DayPlan
FILE: dayplanMain.asm
AUTHOR: Don Reeves, June 28, 1989
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
... |
; A053798: Number of basis partitions of n+16 with Durfee square size 4.
; 1,2,4,8,14,22,34,50,70,96,128,166,212,266,328,400,482,574,678,794,922,1064,1220,1390,1576,1778,1996,2232,2486,2758,3050,3362,3694,4048,4424,4822,5244,5690,6160,6656,7178,7726,8302,8906,9538,10200,10892,11614,12368,13154,13972,14824,15710,16630,1... |
cpu xag3
page 0
include stddefxa
segment io
port1 ds.b 1
port2 ds.b 1
segment code
supmode on
regbit1 bit r3l.4
regbit2 bit sp.5
regbit3 bit r5h.5
regbit4 bit sp.14
membit1 bit 22h.5
membit2 bit 50023h.5
iobit1 bit port1.2
regbit5 bit regbit4+1
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1c2f8, %rcx
nop
nop
xor $7913, %r8
movw $0x6162, (%rcx)
nop
nop
add $55205, %rbp
lea addresses_A_ht+0x1c78, %rdx
nop
inc %rbp
mov (%rdx), %r13w
nop
nop
sub %rdx, %rdx
lea add... |
; A349993: a(n) is the number of squares k^2 with n^2 <= k^2 <= n^3.
; Submitted by Jon Maiga
; 1,1,1,3,5,7,9,12,15,19,22,26,30,34,39,44,49,54,59,64,70,76,82,88,94,101,107,114,121,128,135,142,150,157,165,173,181,189,197,205,213,222,231,239,248,257,266,276,285,295,304,314,323,333,343,353,364,374,384,395,405
mov $2,$0
s... |
; Lab-7.asm
; Created on: Oct 18, 2018
; Author: Daniel Laden
INCLUDE 'derivative.inc'
XDEF _Startup, main
XREF __SEF_END_SSTACK
SCL EQU 7
SDA EQU 6
DACADDR EQU $2C
ORG $0060
BitCounter DS.B 1
Value DS.B 1
Direction DS.B 1
;Start of Program Code
ORG $E000
main:
_Startup:
;Initialize va... |
/**
* Sanity check for basic functionality
*
* Combines several old regression tests into one quick test.
*/
#include <maxtest/testconnections.hh>
void test_rwsplit(TestConnections& test)
{
test.reset_timeout();
test.repl->connect();
std::string master_id = test.repl->get_server_id_str(0);
test.r... |
; ===============================================================
; Jan 2014
; ===============================================================
;
; char *strerror(int errnum)
;
; Return string message corresponding to errnum.
;
; ===============================================================
SECTION code_clib
SECTIO... |
; A052759: E.g.f.: x^3*log(1/(1-x)).
; 0,0,0,0,24,60,240,1260,8064,60480,518400,4989600,53222400,622702080,7925299200,108972864000,1609445376000,25406244864000,426824913715200,7602818775552000,143111882833920000,2838385676206080000,59157933040926720000,1292600836944248832000,29545161987297116160000,70505500196959027200... |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 81 ec 30 02 00 00... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: Zenject.IValidatable
#include "Zenject/IValidatable.hpp"
#include "ex... |
; A068426: Expansion of log(2) in base 2.
; Submitted by Jon Maiga
; 1,0,1,1,0,0,0,1,0,1,1,1,0,0,1,0,0,0,0,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1,0,0,0,1,1,1,0,0,1,1,1,1,0,1,1,1,1,0,0,1,1,0,1,0,1,0,1,1,1,1,0,0,1,0,0,1,1,1,1,0,0,0,1,1,1,0,1,1,0,0,1,1,1,0,0,1,1,0,0,0,0,0,0,0
mov $1,1
mov $2,1
mov $3,$0
mul $3,5
lpb $3
mul ... |
//===-- StackProtector.cpp - Stack Protector Insertion --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x133d2, %rsi
lea addresses_UC_ht+0xb62, %rdi
nop
nop
nop
add %rdx, %rdx
mov $18, %rcx
rep movsq
xor %r8, %r8
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
ret
.global s_faulty_load
s_faulty_load:
push %... |
%include "core.asm"
%include "util.asm"
%include "console.asm"
%include "piano.asm"
global _start
section .data
file1 dd 0
section .bss
resb 10
buffer resb 1024
section .code
_start:
enter 4,0
; regza
; reglog
; console.getMode
; reglog
; and eax, ~CONSOLE_EN_ECHO_INPUT
; and eax, ~CONSOLE_EN_LINE_INPUT
... |
#ifndef H_XD_ENTITY
#define H_XD_ENTITY
#include "detail/entity.hpp"
#include "event_bus.hpp"
#include <any>
#include <unordered_map>
#include <functional>
#include <algorithm>
#include <memory>
#include <list>
#include <map>
#include <type_traits>
namespace xd
{
template <typename T>
struct logic_component ... |
/* Copyright 2020 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 writing, software
dis... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xb894, %r15
nop
nop
nop
nop
nop
sub $16006, %r14
mov $0x6162636465666768, %rbx
movq %rbx, %xmm2
movups %xmm2, (%r15)
nop
nop
nop
xor $54539, %rcx
lea addresses_D_ht+0xc894, %rax
nop
no... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x12a3b, %r8
nop
nop
nop
nop
add %r11, %r11
movw $0x6162, (%r8)
inc %r11
lea addresses_WT_ht+0x6b33, %rax
nop
nop
nop
nop
nop
dec %rcx
mov $0x6162636465666768, %r8
movq %r8, (%... |
; A163805: Expansion of (1 - x) * (1 - x^6) / ((1 - x^3) * (1 - x^4)) in powers of x.
; 1,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1,0,-1,0,1
mov $1... |
/**
* \file
* \author Thomas Fischer
* \date 2010-06-16
* \brief Implementation of string helper functions.
*
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
*... |
// Copyright 2015 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 <stdio.h>
#include <memory>
#include "base/environment.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/fi... |
; A000027: The positive integers. Also called the natural numbers, the whole numbers or the counting numbers, but these terms are ambiguous.
; 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,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,... |
.include "defaults_request.asm"
table_file_jp equ "exe6-utf8.tbl"
table_file_en equ "bn6-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252354A // BR5J
game_code_2 equ 0x42523545 // BR5E
game_code_3 equ 0x42523550 // BR5P
card_type equ 4
card_id equ 4
card_no equ "004"
card_sub equ "Request Event Card 004... |
// Copyright 2016 Google Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is dist... |
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %r9
push %rbp
push %rdx
lea addresses_normal_ht+0x822e, %rdx
nop
nop
inc %r8
vmovups (%rdx), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $1, %xmm6, %rbp
nop
xor $26350, %r9
pop %rdx
pop %rbp
pop %r9
pop %r8
ret
.global s_faulty_load
s_faulty_load:
push %r1... |
//Optimise
#include <bits/stdc++.h>
using namespace std;
// #define multitest 1
// #define Debug
#ifdef Debug
#define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__);
template <typename Arg1>
void ZZ(const char *name, Arg1 &&arg1)
{
std::cerr << name << " = " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void Z... |
; A022323: a(n) = a(n-1) + a(n-2) + 1, with a(0) = 1 and a(1) = 9.
; 1,9,11,21,33,55,89,145,235,381,617,999,1617,2617,4235,6853,11089,17943,29033,46977,76011,122989,199001,321991,520993,842985,1363979,2206965,3570945,5777911,9348857,15126769,24475627,39602397,64078025,103680423,167758449,271438873,439197323,710636197,1... |
.gba
.open "Clean\Boktai 2 (J).gba","Boktai 2 (J)(Hack).gba",0x08000000
.org 0x080000D4 // sunlight changer
.area 0xCC
ldr r0,=30057C8h
ldr r0,[r0] // r0 = sunlight
bl 82416C8h // r0 = amount of bars
ldr r1,=30044E0h
ldrh r2,[r1] // r2 = BUTTON_HELD
ldrh r1,[r1,2h] // r1 = BUTTON_DOWN
mov r3,4h
tst r2,r3 // if Se... |
#note: r40 (the exception handler) and r46 (the start of usermode code) must
#be specified in hex (0xwhatever)
#I just don't see any reason not to, and it makes programming the script
#much nicer to deal with...
#load exception handler
lc r40, 0x80000050
leh r40
#enable exceptions
cle
#load TLB ent... |
// Copyright 2018 Peter Dimov.
//
// Distributed under the Boost Software License, Version 1.0.
//
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/core/lightweight_test.hpp>
#include <boost/regex.hpp>
int main() {
boost::regex rx("(\\d+)-+(\\d+)-+(\\d+)")... |
//
// Author: Vladimir Migashko <migashko@gmail.com>, (C) 2013-2018
//
// Copyright: See COPYING file that comes with this distribution
//
#pragma once
#include "statistics_config.hpp"
#include <wfc/domain_object.hpp>
#include <wfc/iinterface.hpp>
#include <wfc/statistics/meters.hpp>
#include <unordered_map>
#include... |
; A006584: If n mod 2 = 0 then n*(n^2-4)/12 else n*(n^2-1)/12.
; 0,0,0,2,4,10,16,28,40,60,80,110,140,182,224,280,336,408,480,570,660,770,880,1012,1144,1300,1456,1638,1820,2030,2240,2480,2720,2992,3264,3570,3876,4218,4560,4940,5320
mov $1,$0
pow $1,2
sub $1,1
mov $2,$1
div $2,4
mul $0,$2
div $0,6
mul $0,2
|
//
// Game state data for where the player wants to go.
//
// Places an entry in the index table that has no revisit.
macro state_index_single label
db ({label} - state_table_base) / {state_entry_size}
db ({label} - state_table_base) / {state_entry_size}
endmacro
// Places an entry in the index table that... |
.global s_prepare_buffers
s_prepare_buffers:
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x57d6, %rdx
nop
nop
add $13180, %rsi
vmovups (%rdx), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %rbp
and $65024, %rax
lea addresses_normal_ht+0xd9e, %rsi
lea addresses_A_ht+... |
; A266257: Total number of ON (black) cells after n iterations of the "Rule 11" elementary cellular automaton starting with a single ON (black) cell.
; 1,2,4,9,11,20,22,35,37,54,56,77,79,104,106,135,137,170,172,209,211,252,254,299,301,350,352,405,407,464,466,527,529,594,596,665,667,740,742,819,821,902,904,989,991,1080,... |
%include "boot.inc"
;section loader vstart=LOADER_BASE_ADDR
[BITS 16] ; Tells nasm to build 16 bits code
[ORG LOADER_BASE_ADDR] ; The address the code will start
;构建gdt及其内部的描述符
GDT_BASE:dd 0x00000000
dd 0x00000000
CODE_DESC:dd 0x0000FFFF
dd DESC_CODE_HIGH4
DATA_STACK_DESC:dd 0x0000... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
msvcjmc SEGMENT
__7B7A869E_ctype@h DB 01H
__457DD326_basetsd@h DB 01H
__4384A2D9_corecrt_memcpy_s@h DB 01H
__4E51A221_corecrt_wstring@h DB 01H
__2140C079_string@h DB 01H
__1887E5... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosEnterCritSec DOS wrapper
;
; (c) osFree Project 2022, <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 Proku... |
.data
return.0: .word 0
return.1: .word 0
b.0: .word 0
d.1: .word 0
x.2: .word 0
a.3: .word 0
c.4: .word 0
e.5: .word 0
f.6: .word 0
g.7: .word 0
.text
runtime:
addi $sp, $sp, -4
sw $ra, 0($sp)
lw $ra, 0($sp)
addi $sp, $sp, 4
jr $ra
.end runtime
temp:
addi $sp, $sp, -4
sw $ra, 0($sp)
li $3, 1 # r... |
#ifndef Y3_CLUSTER_CPP_MOR_DES_T_HH
#define Y3_CLUSTER_CPP_MOR_DES_T_HH
#include "utils/datablock.hh"
#include "utils/datablock_reader.hh"
#include "utils/interp_2d.hh"
#include "utils/mz_power_law.hh"
#include "utils/primitives.hh"
#include "utils/str_to_doubles.hh"
#include <cmath>
#include <fstream>
#include <ioma... |
; A014018: Inverse of 9th cyclotomic polynomial.
; 1,0,0,-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1,0... |
#pragma once
#include "pch.hpp"
#include "types.hpp"
namespace nd::src::tools
{
class Scope final
{
public:
using Event = func<void(const shared<logger>&, const str_v, const u64)>;
Scope(const str_v, Event&&, Event&&) noexcept;
~Scope();
static void
set(const sh... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2008 University of Washington
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This pro... |
//
// Created by Baoxing song on 2019-01-08.
//
#include "Node.h"
Node::Node(int _v, int _w){
v = _v;
weight = _w;
}
int Node::getV(){
return v;
}
int Node::getWeight() {
return weight;
}
|
_tstsjf: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
argv[3]=minp_runtime
argv[4]=maxp_runtime
arg[5]=maxnum_processes
*/
int main ( int argc, char *argv[] ){
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
... |
Sound_99_Header:
smpsHeaderStartSong 3
smpsHeaderVoice Sound_99_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cFM3, Sound_99_FM3, $07, $00
; FM3 Data
Sound_99_FM3:
smpsSetvoice $00
dc.b nG2, $48
smpsStop
Sound_99_Voices:
; Voice $00
; $03
; $10, $70, $00, $3F, $1F, $... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#include ... |
_kill: 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
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
Mov #100,R6
Mov #20,R2
Mov R6,R2
And R2,R2
Loopa:
INc R4
Inc R4
NOP
CMP R4,R4
BNE loopa
HLT
|
; ---------------------------------------------------------------------------
; Sprite mappings - electrocution orbs (SBZ)
; ---------------------------------------------------------------------------
Map_Elec_internal:
dc.w @normal-Map_Elec_internal
dc.w @zap1-Map_Elec_internal
dc.w @zap2-Map_Elec_internal
dc.... |
/*
* Copyright 2014, Pythia authors (see AUTHORS file).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice,... |
#include "DHTPeerAnnounceStorage.h"
#include <cstring>
#include <cppunit/extensions/HelperMacros.h>
#include "Exception.h"
#include "util.h"
#include "DownloadContext.h"
#include "DHTConstants.h"
#include "Peer.h"
#include "FileEntry.h"
#include "bittorrent_helper.h"
namespace aria2 {
class DHTPeerAnnounceStorageT... |
; A266074: Total number of OFF (white) cells after n iterations of the "Rule 3" elementary cellular automaton starting with a single ON (black) cell.
; 0,2,6,8,16,18,30,32,48,50,70,72,96,98,126,128,160,162,198,200,240,242,286,288,336,338,390,392,448,450,510,512,576,578,646,648,720,722,798,800,880,882,966,968,1056,1058,... |
.constant_pool
.const 0 string [start]
.const 1 string [constructor]
.const 2 string [Hello world !!!]
.const 3 int [1]
.const 4 string [io.writeln]
.const 5 string [metodo1]
.const 6 string [Depois de metodo1/0]
.const 7 string [metodo2]
.const 8 string [Depois de metodo... |
# MIPS32 assembly code bubble sort
ADDI R3, R0, 100 # begin idx
ADDI R4, R0, 102 # min idx
ADDI R5, R0, 109 # max idx, total 10
Begin: ADDI R1, R3, 0 # pos one
ADDI R2, R3, 1 # pos two
Comp: LW R11, 0(R1)
LW R12, 0(R2)
OR R20, R20, R20 # dummy
SLT R13, R11, R12
OR R20, R20, R20 #... |
//---------------------------------------------------------------------------//
// Copyright (c) 2020 Mikhail Komarov <nemo@nil.foundation>
//
// Distributed under the terms and conditions of the BSD 3-Clause License or
// (at your option) under the terms and conditions of the Boost Software
// License 1.0. See accompa... |
/* ========================================
* C5RawChannel - C5RawChannel.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#ifndef __C5RawChannel_H
#include "C5RawChannel.h"
#endif
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new C... |
#include "NumberSourceDataModel.hpp"
#include <QtCore/QJsonValue>
#include <QtGui/QDoubleValidator>
#include "DecimalData.hpp"
NumberSourceDataModel::
NumberSourceDataModel()
: _lineEdit(new QLineEdit())
{
_lineEdit->setValidator(new QDoubleValidator());
_lineEdit->setMaximumSize(_lineEdit->sizeHint());
co... |
[bits 32]
[extern _KERNEL_START] ;_bc]
[extern _ATA_ack]
[extern _exc_ack]
[extern _keyb_irq]
ADDR_CONST equ 0x1000
lidt [idt_descr]
;SET PIC
mov al, 0x11
out 0x20, al
out 0xA0, al
mov al, 40
out 0x21, al
mov al, 32
out 0xA1, al
mov al, 0x4
out 0x21, al
mov al, 0x2
out 0xA1, al
;ICW4
mov... |
// file_input.hpp
// Copyright (c) 2008-2009 Ben Hanson (http://www.benhanson.net/)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file licence_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_SPIRIT_SUPPORT_DETAIL_LEXER_FILE_INPUT_HPP
#define BOOST_SPIRIT_SU... |
; A070374: a(n) = 5^n mod 21.
; 1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20,16,17,1,5,4,20
mov $1,1
mov $2,$0
lpb $2
mul $1,5
... |
#include <bits/stdc++.h>
using namespace std;
const int mxm = 1000001;
int main()
{
int T,i,j,n;
int sv[mxm],
return 0;
} |
; A097299: Ninth column (m=8) of (1,6)-Pascal triangle A096956.
; Submitted by Jamie Morken(s2)
; 6,49,225,765,2145,5247,11583,23595,45045,81510,140998,234702,377910,591090,901170,1343034,1961256,2812095,3965775,5509075,7548255,10212345,13656825,18067725,23666175,30713436,39516444,50433900,63882940
mov $1,$0
add $0,7
... |
; Robert French has permitted making the enclosed freely downloadable with the
; following copyright notice:
;
; This material is licensed under Attribution-ShareAlike 4.0 International
; (CC BY-SA 4.0) https://creativecommons.org/licenses/by-sa/4.0/
;
; [Sep 2020 Tim Halloran] Original code for floppy disk version of... |
;Parameter passing via the stack PROCSWAP.ASM
;
; Objective: To show parameter passing via the stack.
; Input: Requests a character string from the user.
; Output: Outputs the input string with the first
; two characters swapped.
BUF_LEN EQU 41 ; string ... |
; Z88 Small C+ Run Time Library
; Long functions
;
PUBLIC l_long_ne
;
; DEHL != secondary
; set carry if result true
; stack = secondary MSW, secondary LSW, ret
.l_long_ne
pop ix ; return address
pop bc ; secondary LSW
ld a,c
cp l
jp nz, ... |
;;
;; Copyright (c) 2019-2020, Intel Corporation
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above copyright notice,
;; this list of conditions and... |
; A159333: Roman factorial of n.
; -1,1,1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368000,20922789888000,355687428096000,6402373705728000
sub $2,$0
sub $0,2
cal $0,142
mov $1,$0
cmp $2,0
mul $2,2
sub $1,$2
|
dnl SPARC v9 32-bit mpn_mul_1 -- Multiply a limb vector with a limb and store
dnl the result in a second limb vector.
dnl Copyright 1998, 2000, 2001, 2003 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... |
SECTION "ROM Bank 1A", ROMX[$4000], BANK[$1A]
initialize:
ld sp, $FFFF
.waitForVBlank:
ifEq [gbLY], 145, .waitForVBlank
clear [gbLCDC]
assign [RST_0000], $0A
memsetWithValue gbVRAM, $2000, $00
memsetWithValue gbRAM, $2000, $00
ld sp, $E000
memsetWithValue gbOAMRAM, $0100, $00
m... |
; A014217: a(n) = floor(phi^n), where phi = (1+sqrt(5))/2 is the golden ratio.
; 1,1,2,4,6,11,17,29,46,76,122,199,321,521,842,1364,2206,3571,5777,9349,15126,24476,39602,64079,103681,167761,271442,439204,710646,1149851,1860497,3010349,4870846,7881196,12752042,20633239,33385281,54018521,87403802,141422324,228826126,37024... |
; A226201: 8^n + n.
; 1,9,66,515,4100,32773,262150,2097159,16777224,134217737,1073741834,8589934603,68719476748,549755813901,4398046511118,35184372088847,281474976710672,2251799813685265,18014398509482002,144115188075855891,1152921504606846996,9223372036854775829,73786976294838206486,590295810358705651735,4722366482869... |
//
// Class AliRsnCutV0
//
// General implementation of a single cut strategy, which can be:
// - a value contained in a given interval [--> IsBetween() ]
// - a value equal to a given reference [--> MatchesValue()]
//
// In all cases, the reference value(s) is (are) given as data members
// and each kin... |
/****************************************************************************
*
* Copyright (c) 2012-2015 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.