text stringlengths 1 1.05M |
|---|
// Copyright (c) 2016-2018 The Libra Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/bench.h>
#include <support/lockedpool.h>
#include <iostream>
#include <vector>
#define ASIZE 2048
#define BI... |
; A228719: Decimal expansion of 3*Pi/5.
; Submitted by Jon Maiga
; 1,8,8,4,9,5,5,5,9,2,1,5,3,8,7,5,9,4,3,0,7,7,5,8,6,0,2,9,9,6,7,7,0,1,7,3,0,5,1,8,3,0,1,6,3,9,6,2,5,0,6,3,4,9,2,5,8,4,9,6,6,7,5,5,3,8,4,6,8,9,8,4,3,7,7,1,7,2,5,3,9,9,1,7,6,8,2,0,8,9,5,2,0,5,2,7,0,2,4,0
add $0,1
mov $2,1
mov $3,$0
mul $3,5
lpb $3
mul $1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x16faa, %rsi
lea addresses_WC_ht+0x302a, %rdi
nop
and %r8, %r8
mov $7, %rcx
rep movsq
nop
nop
nop
nop
nop
inc %r14
lea addresses_normal_ht+0xcc6a, %r12
sub %rcx, %rcx
mov (%r12), %edi
inc %r8... |
_LoreleiBeforeBattleText::
text "Welcome to"
line "#MON LEAGUE!"
para "I am LORELEI of"
line "the ELITE FOUR!"
para "No one can best"
line "me when it comes"
cont "to icy #MON!"
para "Freezing moves"
line "are powerful!"
para "Your #MON will"
line "be at my mercy"
cont "when they are"
cont "frozen soli... |
; A282023: Start with 1; multiply alternately by 4 and 3.
; 1,4,12,48,144,576,1728,6912,20736,82944,248832,995328,2985984,11943936,35831808,143327232,429981696,1719926784,5159780352,20639121408,61917364224,247669456896,743008370688,2972033482752,8916100448256,35664401793024,106993205379072,427972821516288,1283918464548... |
; Title 'TestFile'
.APPTYPE GUI
include "inc\winconst.inc"
include 'inc\Kernel32.def'
include 'inc\User32.def'
.DATA
; Variables
FileHandle DD 0 ;THandle
BytesWritten DD 0 ;DWORD
FileName db 'TestFile',0
ALIGN 4
Buffer db 'Win Asm Test',0
.CODE
; FileHandle := CreateFileA(FileName, , 0, ... |
; Keep SASM (https://github.com/mras0/sasm) comptabile
; A lot like the x86 version, except LastCFA is kept in bx
cpu 8086
org 0x100
NUM_CELLS EQU 4096
RSIZE EQU 128
F_HIDDEN EQU 0x80
F_IMMED EQU 0x40
F_LENMASK EQU 0x1f
O_RDONLY EQU 0
STDIN_FILENO EQU -1 ; 0
STDOUT_FILENO EQU -2 ; 1
Main:... |
; A048722: Reversed binary packing of Fibonacci sequence A000045.
; Submitted by Christian Krause
; 0,1,3,7,29,233,7457,1908993,15638470657,32796250015268865,563435284988077103288156161,20299895516157546089301785397257605216206849,12565026726380593749379544715414757684521993402717913413208480665305089
mov $3,2
mov $4,... |
; A180357: a(n) = n^7 + 7*n.
; 0,8,142,2208,16412,78160,279978,823592,2097208,4783032,10000070,19487248,35831892,62748608,105413602,170859480,268435568,410338792,612220158,893871872,1280000140,1801088688,2494358042
mov $1,7
mul $1,$0
mov $2,$0
pow $2,7
add $1,$2
|
#include "tgbot/net/BoostHttpOnlySslClient.h"
#include "tgbot/Bot.h"
#include "tgbot/EventBroadcaster.h"
#include <memory>
#include <string>
namespace TgBot {
Bot::Bot(std::string token, const HttpClient& httpClient, const std::string& url)
: _token(std::move(token))
, _api(_token, httpClient, url)
, _e... |
;; nasm part1.asm -f elf64 && ld -o part1 part1.o
section .data
births: times 100 dd 0
count: dd 0
buf: dd 0
section .text
global _start
_start:
call readinput
xor rcx, rcx
init:
movsxd rax, [births+4*rcx]
mov [births+4*(rcx+7)], eax
inc rcx
cmp rcx, 80
jne init
xor rcx, rcx
outer:
movsxd rax, [birt... |
;
; ANSI Video handling for the Robotron Z1013
;
; Text Attributes
; m - Set Graphic Rendition
;
; The most difficult thing to port:
; Be careful here...
;
; Stefano Bodrato - Aug 2016
;
;
; $Id: f_ansi_attr.asm,v 1.1 2016/08/05 07:04:10 stefano Exp $
;
SECTION code_clib
PUBLIC ansi_attr
PUBLIC z1013_in... |
###############################################################################
# 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... |
; A190181: Decimal expansion of (15+sqrt(465))/12.
; Submitted by Jon Maiga
; 3,0,4,6,9,8,8,2,2,1,0,7,0,6,5,2,0,5,6,2,2,7,8,2,8,4,8,3,2,5,0,0,9,8,7,2,9,8,0,7,0,8,8,3,6,0,9,7,5,6,5,8,1,6,9,6,1,0,9,4,1,7,1,0,4,7,6,3,1,1,1,7,8,1,0,5,7,1,6,9,9,8,9,2,9,5,0,4,3,6,8,7,8,2,3,8,3,4,1,4
mov $3,$0
mul $3,4
lpb $3
add $5,$2
a... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x18d8b, %rsi
lea addresses_A_ht+0x1258b, %rdi
nop
nop
sub %r13, %r13
mov $95, %rcx
rep movsw
nop
add %r9, %r9
lea addresses_A_ht+0x17c3d, %r9
nop
nop
nop
nop
add %rdx, %rdx
movw... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; WriteMm5.Asm
;
; Abstract:
;
; AsmWriteMm5 function
;
; Notes:
;
;----------------------------------... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld c, 41
ld b, 03
ld d, 03
lbegin_waitm3:
ldff a, (c)
and a, d
cmp a, b
jrnz lbegin_waitm3
ld a, 20
ldff(c), a
ld a, 02
ldff(ff), a
ei
xor a, a
ldff(68), a
ld c, 69
lbegin_clearbgp0:
xor a, a... |
SECTION code_fp_math32
PUBLIC _log2
EXTERN cm32_sdcc_log2
defc _log2 = cm32_sdcc_log2
|
; ===============================================================
; May 2017
; ===============================================================
;
; uchar tshc_aaddr2cy(void *aaddr)
;
; Character y coordinate corresponding to attribute address.
;
; ===============================================================
SECTION ... |
; A318937: a(n) = 16 times the sum of the cubes of the divisors of 2*n+1.
; 16,448,2016,5504,12112,21312,35168,56448,78624,109760,154112,194688,252016,327040,390240,476672,596736,693504,810464,984704,1102752,1272128,1526112,1661184,1887888,2201472,2382048,2685312,3073280,3286080,3631712,4166528,4431168,4812224,5451264,... |
//c++ includes
#include <assert.h>
#include <iostream>
//slicer includes
#include "slicer.hpp"
//SIGMA includes
#include "moab/Core.hpp"
#include "moab/Interface.hpp"
//test driver includes
#include "testutils.hpp"
using namespace moab;
void group_slicing_test();
//structure functions
void line_struct_test();
//... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "clientversion.h"
#include "credits.h"
#include "core_io.h"
#include "keystore.h"
#include "primi... |
; SM Multiworld support
;
;
; Implement auto-saving on death as a temporary measure to prevent lost items
; Game state 15h (Samus ran out of health, black out surroundings) ;;;
; JSL $9BB3A7[$9B:B3A7]
; org $C2DD7E ; $82DD7E
; jsl sm_mw_autosave
org $C28BB3
jsl sm_mw_hook_main_game
org $C09490
jsl sm_mw_c... |
lda {c1},y
clc
adc {c1},x
sta {m1}
lda {c1}+1,y
adc {c1}+1,x
sta {m1}+1
|
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: init_floatpack.asm,v 1.5 2016-06-22 19:50:49 dom Exp $
;
SECTION code_fp
INCLUDE "target/cpc/def/cpcfp.def"
PUBLIC init_floatpack
; All the library routines that we have to change
EXTERN... |
; Z88 Small C+ Run Time Library
; Long functions
;
SECTION code_crt0_sccz80
PUBLIC l_long_xor
; dehl = primary
; stack = secondary, ret
.l_long_xor
pop ix
pop bc
ld a,c
xor l
ld l,a
ld a,b
xor h
ld h,a
pop bc
ld a,c
xor e
ld e,a
ld a,b... |
#pragma once
#include <array>
#include <functional>
#include <iostream>
#include <numeric>
#include <vector>
#include "../util/binary_tree.hpp"
#include "../util/indices.hpp"
namespace bulk {
/** Base class for partitionings over a 1D processor grid. */
template <int D>
class partitioning {
public:
/** Construct... |
; A296028: Characteristic function of primes in the nonmultiples of 3.
; 0,1,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,0,1,1,0,0,0,1,0,0,1,1,0,0,1,0,0,0,1,0,0,0,1,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,1,1,0,0,0,0,0,0,1
mul $0,3
div $0,2
seq $0,10051 ; Characteristi... |
/*
* Copyright (c) 2012-2013, 2015-2016 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementa... |
*
* $Id: amiga_hookentry.asm,v 1.3 2006-01-08 12:04:22 obarthel Exp $
*
* :ts=8
*
* Portable ISO 'C' (1994) runtime library for the Amiga computer
* Copyright (c) 2002-2015 by Olaf Barthel <obarthel (at) gmx.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificatio... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 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 "sagbitconsensus.h"
#include "primitives/transaction.h"
#include "pubke... |
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013,2014 Andy Brown <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#include "config/stm32plus.h"
#include "config/filesystem.h"
namespace stm32plus {
namespace fat {
/**
* Constructor.
*... |
IDEAL
SEGMENT CODE1
ASSUME CS:GROUP1
ORG 100h
start:
mov di, OFFSET data1
int 20h
ENDS CODE1
SEGMENT UDATA1 UNINIT
data1 DD ?
ENDS UDATA1
GROUP GROUP1 CODE1,UDATA1
END start
|
#ifndef STAN_MATH_REV_SCAL_FUN_PHI_HPP
#define STAN_MATH_REV_SCAL_FUN_PHI_HPP
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/prim/scal/fun/Phi.hpp>
#include <cmath>
namespace stan {
namespace math {
namespace internal {
class Phi_vari : public op_v_vari {
public:
explicit ... |
class Solution {
public:
int XXX(string s)
{
string roma1 = "MDCLXVI";
int num_basic[7] = {1000,500,100,50,10,5,1};
int num = 0;
int len = s.length();
for(int i = 0; i < len; i++)
{
for (int j = 0; j < 7; j++)
{
if(s[i] == ... |
; =============================================================================
; Pure64 -- a 64-bit OS loader written in Assembly for x86-64 systems
; Copyright (C) 2008-2014 Return Infinity -- see LICENSE.TXT
;
; System Variables
; =============================================================================
;CONFI... |
; A088679: a(n) = a(n-1)^2 * n / (n-1), n>1, a(0) = 0, a(1) = 1.
; Submitted by Jon Maiga
; 0,1,2,6,48,2880,9953280,115579079884800,15266884236590834264309760000,262212473580148912869121218589990322256745385164800000000
mov $2,1
lpb $0
sub $0,1
pow $1,2
add $1,$2
mul $2,$1
lpe
mov $0,$1
|
; A076367: Primes with subscripts from the Bonse sequence.
; 2,3,3,5,5,5,7,7,7,11,11,11,11,11,13,13,13,17,17,17,17,17,19,19,19,23,23,23,23,23,29,29,29,29,29,29,29,31,31,31,37,37,37,37,37,37,37,41,41,41,41,41,43,43,43,47,47,47,47,47,53,53,53,53,53,53,53,59,59,59,59,59
mov $2,$0
add $2,1
pow $2,2
add $2,1
lpb $2
trn $... |
format ELF64 executable 3
entry start
segment readable writeable
msg db 'Hello the brave to the isekai!', 0Ah, 0
msgf db 'Adapt to the new environment with FASM.', 0Ah, 0
segment readable executable
start:
mov rax, msg
call sprint
mov rax, msgf
call sprint
call quitProgram
include 'proc... |
Music_WildBattle_Ch0::
tempo 104
volume 7, 7
duty 3
vibrato 6, 3, 4
toggleperfectpitch
notetype 12, 11, 3
octave 4
C_ 1
octave 3
B_ 1
A# 1
A_ 1
A# 1
A_ 1
G# 1
G_ 1
G# 1
G_ 1
F# 1
F_ 1
F# 1
F_ 1
E_ 1
D# 1
E_ 1
D# 1
D_ 1
C# 1
D_ 1
C# 1
C_ 1
octave 2
B_ 1
octave 3
C_ 1
octave 2
B_ 1
A... |
; A067421: Sixth column of triangle A067417.
; 1,8,144,2592,46656,839808,15116544,272097792,4897760256,88159684608,1586874322944,28563737812992,514147280633856,9254651051409408,166583718925369344,2998506940656648192,53973124931819667456,971516248772754014208,17487292477909572255744,314771264602372300603392,566588276284... |
; A253887: Row index of n in A191450: a(3n) = 2n, a(3n+1) = 2n+1, a(3n+2) = a(n+1).
; 1,1,2,3,1,4,5,2,6,7,3,8,9,1,10,11,4,12,13,5,14,15,2,16,17,6,18,19,7,20,21,3,22,23,8,24,25,9,26,27,1,28,29,10,30,31,11,32,33,4,34,35,12,36,37,13,38,39,5,40,41,14,42,43,15,44,45,2,46,47,16,48,49,17,50,51,6,52,53,18,54,55,19,56,57,7,58,5... |
; A334316: E.g.f. A(x) satisfies: A(x) = x * exp(A(x)) * (1 - A(x)).
; Submitted by Jon Maiga
; 1,0,-3,-8,45,576,385,-54144,-499527,4787200,160740261,558627840,-45943496027,-854266871808,8403892043625,590895130771456,4982009666876145,-320936968832679936,-10133752613818727987,75595253378088960000,11587542472638176520861... |
global my_strlen, my_strcpy, my_strcmp, my_strcat
section .data
section .text
my_strlen:
mov rax, 0
len_loop:
mov dl, [rdi + rax]
inc rax
cmp dl, 0
jz len_end
jmp len_loop
len_end:
dec rax
ret
my_strcpy:
mov r9, 0
cpy_loop:
mov dl, [rsi + r9]
cmp dl, 0
jz cpy_end
mov [rdi + r9], dl
inc r9
jmp cp... |
;-----------------------------------------------------
;Generate a random number
;I: bx min val
; bp max val
;O: ax random number
;-----------------------------------------------------
_random_word:
push dx
push cx
mov ax, rndseed
cmp ax, 0x0000 ;check if first entry
jne do_rand ; ... |
BeastsCheck:
; Check if the player owns all three legendary beasts.
; They must exist in either party or PC, and have the player's OT and ID.
; Return the result in wScriptVar.
ld hl, RAIKOU
call GetPokemonIDFromIndex
ld [wScriptVar], a
call CheckOwnMonAnywhere
jr nc, .notexist
ld hl, ENTEI
call GetPokemonIDFr... |
Mus88_Extra_Life_Header:
smpsHeaderStartSong 1
smpsHeaderVoice Mus88_Extra_Life_Voices
smpsHeaderChan $06, $03
smpsHeaderTempo $02, $05
smpsHeaderDAC Mus88_Extra_Life_DAC
smpsHeaderFM Mus88_Extra_Life_FM1, $E8, $10
smpsHeaderFM Mus88_Extra_Life_FM2, $E8, $10
smpsHeaderFM ... |
; A015530: Expansion of x/(1 - 4*x - 3*x^2).
; Submitted by Jamie Morken(s4)
; 0,1,4,19,88,409,1900,8827,41008,190513,885076,4111843,19102600,88745929,412291516,1915403851,8898489952,41340171361,192056155300,892245135283,4145149007032,19257331433977,89464772757004,415631085329947,1930918659590800,8970567894353041,41675... |
; A338863: Product of the nonzero digits of (n written in base 6).
; Submitted by Jamie Morken(m3)
; 1,1,2,3,4,5,1,1,2,3,4,5,2,2,4,6,8,10,3,3,6,9,12,15,4,4,8,12,16,20,5,5,10,15,20,25,1,1,2,3,4,5,1,1,2,3,4,5,2,2,4,6,8,10,3,3,6,9,12,15,4,4,8,12,16,20,5,5,10,15,20,25,2,2,4,6,8,10,2,2,4
seq $0,7092 ; Numbers in base 6.
se... |
; A075870: Numbers k such that 2*k^2 - 4 is a square.
; 2,10,58,338,1970,11482,66922,390050,2273378,13250218,77227930,450117362,2623476242,15290740090,89120964298,519435045698,3027489309890,17645500813642,102845515571962,599427592618130,3493720040136818,20362892648202778,118683635849079850,691738922446276322,4031749898... |
bits 16
global _start
extern stage2
_start:
pop dx
cli
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
mov sp, 0x5000
jmp 0x0:real_start
real_start:
lgdt [gdt_descriptor]
mov eax, cr0
or eax, 0x1
mov cr0, eax
jmp CODE_SEG:pt_mode
bits 32
pt_mode:
mov ax, DATA_SEG
... |
PAGE 80,132 ;
TITLE DEBUASM.ASM
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
; Code for the UASSEMble command in the debugger
IF1
%OUT COMPONENT=DEBUG, MODULE=DEBUASM... |
; Provided under the CC0 license. See the included LICENSE.txt for details.
; This is a 2-line kernel!
kernel
sta WSYNC
lda #255
sta TIM64T
lda #1
sta VDELBL
sta VDELP0
ldx ballheight
inx
inx
stx temp4
lda player1y
sta temp3
ifco... |
; CON scheduler for SMSQmulator
; 2004-03-18 1.01 cursor status is toggled before calling cn_curtg (wl)
; 2012-xx-xx 1.01 suspend java job when cursor toggle
; 2016 no longer used in SMSQmulator 2.17
section con
;
include 'dev8_keys_con'
include 'dev8_keys_sys'
include 'dev8_keys_java'
;
xdef cn_sched
;
xref pt... |
; A001810: a(n) = n!*n*(n-1)*(n-2)/36.
; 0,0,0,1,16,200,2400,29400,376320,5080320,72576000,1097712000,17563392000,296821324800,5288816332800,99165306240000,1952793722880000,40311241850880000,870722823979008000,19645683716026368000,462251381553561600000,11325158848062259200000,288493520129585971200000,763065360742754893... |
; A013961: a(n) = sigma_13(n), the sum of the 13th powers of the divisors of n.
; Submitted by Christian Krause
; 1,8193,1594324,67117057,1220703126,13062296532,96889010408,549822930945,2541867422653,10001220711318,34522712143932,107006334784468,302875106592254,793811662272744,1946196290656824,4504149450301441,99045780... |
SFX_Trade_Machine_1_Ch5:
duty_cycle 2
pitch_sweep 1, 5
square_note 15, 15, 0, 1264
square_note 15, 15, 2, 1616
pitch_sweep 0, 8
sound_ret
|
// Copyright 2011 the V8 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.
#include "src/objects/contexts.h"
#include "src/ast/modules.h"
#include "src/debug/debug.h"
#include "src/execution/isolate-inl.h"
#include "src/init/b... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xcf67, %rdx
nop
nop
sub $10773, %rcx
mov (%rdx), %esi
nop
nop
nop
nop
and $42159, %r11
lea addresses_normal_ht+0x2d67, %rcx
nop
nop
nop
nop
add %r12, %r12
mov $0x61626364656667... |
.386
.MODEL SMALL
PUBLIC SHOW_ALL
PUBLIC PRINT_NUM
PUBLIC SHOW_ICONS
PUBLIC CAL_PROFIT
PUBLIC SORT_PROFIT
PUBLIC CLEAR_SCREEN
PUBLIC S1,GA1,S2,GB1
PUBLIC ATTR_OFF,MEN_ATTR
STACK SEGMENT USE16 STACK 'STACK'
DB 200 DUP(0)
STACK ENDS
;-------------------------------
DATA SEGMENT USE16 PUBLIC 'D'
BNAME DW 'IX' xor 12788,'... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2018 Intel Corporation All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; * Redistributions of so... |
//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
//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/qvm/map.hpp>
#include <boost/qvm/mat_traits_array.hpp>
#include <boost/qvm/v... |
db 0 ; species ID placeholder
db 60, 45, 70, 95, 45, 90
; hp atk def spd sat sdf
db ELECTRIC, ELECTRIC ; type
db 200 ; catch rate
db 142 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 10 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/pac... |
;PhaserX
;by utz 09'2016 * www.irrlichtproject.de
;*******************************************************************************
;; include "equates.h"
;; BORDER .equ $14
;; org #8000
di
exx
push hl ;preserve HL' for return to BASIC
ld (oldSP),sp
ld hl,musicData
ld (seqpntr),hl
ld iyl,0 ;timer lo
;****... |
#include "keystore.h"
#include "core/proto.h"
#include <boost/filesystem.hpp>
#include <stdexcept>
#include <stdio.h>
namespace beam {
namespace {
using PrivKey = ECC::Scalar::Native;
using KeyPairs = std::map<PubKey, ECC::NoLeak<PrivKey>>;
using Nonce = ECC::Scalar::Native;
using PasswordHash = ECC::NoLeak<ECC::Has... |
; A179453: Decimal expansion of the inradius of an icosidodecahedron with edge length 1.
; Submitted by Jon Maiga
; 1,4,6,3,5,2,5,4,9,1,5,6,2,4,2,1,1,3,6,1,5,3,4,4,0,1,2,5,7,7,4,2,2,8,5,8,8,2,9,0,2,3,1,8,8,4,8,5,4,3,2,2,1,4,6,6,0,1,5,8,6,4,6,7,0,2,8,9,4,5,3,4,7,1,1,4,1,7,6,8,3,7,2,8,0,4,0,5,4,0,3,1,4,2,0,4,3,3,5,3
mov... |
\ ******************************************************************************
\
\ REVS DONINGTON PARK TRACK SOURCE
\
\ Revs was written by Geoffrey J Crammond and is copyright Acornsoft 1985
\
\ The code on this site has been reconstructed from a disassembly of the
\ original game binaries
\
\ The commentary is copy... |
; A083423: a(n) = (5*3^n + (-3)^n)/6.
; 1,2,9,18,81,162,729,1458,6561,13122,59049,118098,531441,1062882,4782969,9565938,43046721,86093442,387420489,774840978,3486784401,6973568802,31381059609,62762119218,282429536481,564859072962
mov $1,$0
gcd $1,2
add $1,1
mov $2,$0
lpb $2,1
mul $1,3
sub $2,1
lpe
sub $1,3
div $1,... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2016 The DarkNet developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "walletmodel.h"
#in... |
[BITS 32]
MOV ECX, msg
MOV EDX, 1
put_loop:
MOV AL, [CS:ECX]
CMP AL, 0
JE fin
INT 0x40
ADD ECX, 1
JMP put_loop
fin:
MOV EDX, 4
INT 0x40
msg:
DB "hello", 0
|
#include <iostream>
#include "tree.h"
#include "linklist.h"
#include "solution.h"
int main() {
Solution s;
const int N = 7;
int nums[N] = { 3,9,20,NULL,NULL,15,7 };
TreeNode *tree;
creatTreeNode(tree, nums, N, 0);
//int res = s.maxDepth(tree);
vector<vector<int>>res = s.zigzagLevelOrder(tree);
for (int i =... |
data
export cg_customSoundNames
align 4
LABELV cg_customSoundNames
address $71
address $72
address $73
address $74
address $75
address $76
address $77
address $78
address $79
address $80
address $81
address $82
address $83
skip 76
export CG_CustomSound
code
proc CG_CustomSound 16 8
ADDRFP4 0
ADDRFP4 0
INDIRI4
ASGNI4
AD... |
; A024306: a(n) = s(1)t(n) + s(2)t(n-1) + ... + s(k)t(n+1-k), where k=[ (n+1)/2) ], s = (natural numbers >= 2), t = (natural numbers >= 3).
; 6,8,22,27,52,61,100,114,170,190,266,293,392,427,552,596,750,804,990,1055,1276,1353,1612,1702,2002,2106,2450,2569,2960,3095,3536,3688,4182,4352,4902,5091,5700,5909,6580,6810,7546,... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... |
#ifndef FLOAT_PARAM_CPP
#define FLOAT_PARAM_CPP
#include "linear_fill_numeric_param.cpp"
#include <string>
class FloatParam : public LinearFillNumericParam
{
public:
using LinearFillNumericParam::LinearFillNumericParam;
std::string GetFormattedLabel()
{
int dec = std::abs((int)((GetValue() - (int)... |
;/*
; * Z88 Standard Library
; *
; * long __FASTCALL__ atol(char *str)
; *
; * djm 25/2/2001
; *
; * $Id: atol.asm,v 1.6 2016/03/06 21:56:32 dom Exp $
; */
; Removed C front end to make FASTCALL, consistent with
; all other targets. Was atol.c, that file now removed.
; 12.2006 aralbrec
SECTION code_clib
PUBLIC atol... |
;
; ZX IF1 & Microdrive functions
;
; Stefano Bodrato - Oct. 2004
;
;
; if1_checkblock:
; - check the loaded block for integrity
; - other various checks
;
; $Id: if1_checkblock.asm,v 1.1 2008/06/29 08:25:47 aralbrec Exp $
;
XLIB if1_checkblock
LIB if1_checksum
XREF mdvbuffer
XDEF if1_sect_read
XD... |
; A080085: Number of factors of 2 in the factorial of the n-th prime, counted with multiplicity.
; 1,1,3,4,8,10,15,16,19,25,26,34,38,39,42,49,54,56,64,67,70,74,79,85,94,97,98,102,104,109,120,128,134,135,145,146,152,159,162,168,174,176,184,190,193,194,206,216,222,224,228,232,236,244,255,259,265,266,273,277,278,289,302,3... |
; Building the project
; xa tilt.asm -C -o tilt\(E\).nes
;
; Building raw ROMs
; xa tilt.asm -DNO_INES_HEADER -C -o tilt_prg.bin
; Constants depending on mapper
#define DEFAULT_MAPPER
#ifdef MAPPER_UNROM
#undef DEFAULT_MAPPER
MAPPER_NUMBER=2
SUBMAPPER_NUMBER=1
MAPPER_BATTERY_FLAG=1
#endif
#ifdef MAPPER_UNROM51... |
;SHARED SPRITE PALETTE FIX
;
;This is a repair so that sprites that previously shared Link's palette
;no longer share his palette. In the vanilla game this was not an issue
;but with custom sprites some very strange color transitions can occur.
;
;The convention in the comments here is that bits are labeled [7:0]
;
;W... |
#include "ace/Monitor_Control/Packets_Sent_Monitor.h"
#if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
namespace Monitor_Control
{
const char* Packets_Sent_Monitor::default_name_ =
"OS/Network/PacketsSent";
... |
// Copyright 1995, 2007, 2008, 2012-2014, 2021 by Jon Dart
// Stand-alone console executable to build "ecodata.cpp" file
// from "eco" text file.
#include "board.h"
#include "notation.h"
#include "legal.h"
#include "globals.h"
#include "scoring.h"
#include <cctype>
#include <iostream>
#include <fstream>
#include <rege... |
/*
* TS Elements
* Copyright 2015-2018 M. Newhouse
* Released under the MIT license.
*/
#pragma once
#include "terrain_definition.hpp"
#include <vector>
#include <cstdint>
namespace ts
{
namespace resources
{
// The TerrainLibrary represents, well, a library of terrains.
// It exposes a fixed-size array... |
; A124099: Sum_(x^i*y^j*z^k) with i + j + k = m and (x, y, z) = the primitive Pythagorean triple (5, 12, 13).
; Submitted by Jon Maiga
; 1,30,619,10920,177061,2726130,40547359,588485820,8387148121,117876868230,1638536364499,22574666496720,308755233696781,4197234089634330,56765041887676039,764357559726523620
add $0,2
l... |
.byte $01 ; Unknown purpose
.byte OBJ_REDTROOPA, $13, $12
.byte OBJ_REDTROOPA, $1A, $18
.byte OBJ_WOODENPLATFORMFALL, $21, $13
.byte OBJ_FLYINGREDPARATROOPA, $30, $11
.byte OBJ_GREENTROOPA, $36, $18
.byte OBJ_WOODENPLATUNSTABLE, $4D, $18
.byte OBJ_FLYINGREDPARATROOPA, $5C, $0D
.byte OBJ_OSCILLATING_HS, $74, $... |
;;
;; Copyright (c) 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 the ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1de66, %r11
nop
nop
nop
inc %rdi
mov (%r11), %r9
nop
nop
nop
nop
nop
cmp $49823, %r14
lea addresses_UC_ht+0x105a, %r12
nop
nop
nop
nop
nop
and $25192, %r11
movups (... |
; A025774: Expansion of 1/((1-x)(1-x^4)(1-x^9)).
; 1,1,1,1,2,2,2,2,3,4,4,4,5,6,6,6,7,8,9,9,10,11,12,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,31,32,33,34,36,38,39,40,42,44,45,46,48,50,52,53,55,57,59,60,62
mov $5,$0
mov $7,$0
add $7,1
lpb $7
mov $0,$5
sub $7,1
sub $0,$7
mov $2,80
mov $3,$0
mov $0,4... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Yiffcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "db.h"
#include "net.h"
#include "init.h"
#include "addrman.h"
#include ... |
_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)... |
; A065262: The nonpositive side (-1, -2, -3, ...) of the site swap sequence A065261. The bisection of odd terms of A065261.
; 1,1,5,2,9,3,13,4,17,5,21,6,25,7,29,8,33,9,37,10,41,11,45,12,49,13,53,14,57,15,61,16,65,17,69,18,73,19,77,20,81,21,85,22,89,23,93,24,97,25,101,26,105,27,109,28,113,29,117,30,121,31,125,32,129,33,... |
#include <iostream>
#include "stdio.h"
using namespace std;
int main()
{
float s = 0, cont = 1;
while(cont <= 100)
{
s = 1/cont + s;
cont = cont + 1;
}
printf("%.2f\n",s);
return 0;
}
|
// Formatting library for C++ - tests of the OS-specific functionality
//
// Copyright (c) 2012 - present, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.
#include "fmt/os.h"
#include <cstdlib> // std::exit
#include <cstring>
#include <memory>
#include "gtest-extra.h"
#... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; CONSOLE_01_OUTPUT_TERMINAL
; library driver for output terminals
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; The root class of CONSOLE_01_OUTPUT terminals.
;
; This is an abstract class that CONSOLE_01_OUTPUT terminals
; can deri... |
addi x10, x0, 10
addi x11, x0, -4
addi x12, x0, 34
addi x13, x0, -23
fcvt.s.w f0, x10
fcvt.s.w f1, x11
fcvt.s.w f2, x12
fcvt.s.w f3, x13
fsgnj.s f10, f0, f1
fsgnjn.s f11, f0, f1
fsgnjx.s f12, f1, f3
|
; ===============================================================
; Feb 2014
; ===============================================================
;
; int bv_priority_queue_shrink_to_fit(bv_priority_queue_t *q)
;
; Release any excess memory allocated for the queue.
;
; After calling, priority_queue.capacity == priority_q... |
@ OR[280] : Pointer to raw integer
@ OR[281] : Start bit-position
@ OR[282] : Number of bits in the input
@ OR[283] : Return buffer location
@ OR[284] : Starting buffer offset
@ OR[285] : 0: don't print trailing 0-s, 1: print trailing 0-s
@ OR[286] : Number of digits to display (?)
@
@ Return: Number of characters prin... |
; A082804: Smallest multiple of 9 beginning with n.
; Submitted by Jon Maiga
; 18,27,36,45,54,63,72,81,9,108,117,126,135,144,153,162,171,18,198,207,216,225,234,243,252,261,27,288,297,306,315,324,333,342,351,36,378,387,396,405,414,423,432,441,45,468,477,486,495,504,513,522,531,54,558,567,576,585,594,603,612,621,63,648,6... |
// 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 "obfuscation.h"
#include "coincontrol.h"
#include "init.h"
#include "main... |
; A142356: Primes congruent to 4 mod 47.
; Submitted by Jamie Morken(w3)
; 239,521,709,991,1367,1931,2213,2683,2777,3529,3623,4093,4657,4751,5503,5879,6067,7477,7759,7853,8699,8887,9733,10391,10861,11519,11801,12553,12647,13399,13681,13963,14057,14621,15091,15373,15467,15749,15937,17159,17911,18287,18757,19603,19697,19... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.