text stringlengths 1 1.05M |
|---|
; A008514: 4-dimensional centered cube numbers.
; 1,17,97,337,881,1921,3697,6497,10657,16561,24641,35377,49297,66977,89041,116161,149057,188497,235297,290321,354481,428737,514097,611617,722401,847601,988417,1146097,1321937,1517281,1733521,1972097,2234497,2522257,2836961,3180241,3553777,3959297,4398577,4873441,5385761,5... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Scrolling subroutines
PPU_SCROLL = $2005
Scroll:
LDA scroll_speed_x ; Scroll in X-direction at
AND #%10000000 ; speed indicated by bits
BEQ ScrollXLeft ; 0-6 of scroll_speed_x
Sc... |
#include <memory>
#include <gtest/gtest.h>
#include "WCECommon.hpp"
using namespace FenestrationCommon;
class TestSeriesGeneral : public testing::Test
{
private:
CSeries m_Series;
protected:
void SetUp() override
{
const std::vector<std::pair<double, double>> vec{
{0.5, 3.3}, {0.51, 5... |
DIM EQU 15
.MODEL small
.STACK
.DATA
VETT DW 2, 5, 16, 12, 34, 7, 20, 11, 31, 44, 70, 69, 2, 4, 23
RESULT DW ?
.CODE
.STARTUP
MOV AX, 0
MOV CX, DIM ; array size now stored in CX
MOV DI, 0
lab:
ADD AX, VETT[DI] ; add i-th element to AX
ADD DI, 2 ; go to next element
DEC CX
CMP CX, 0 ;... |
.open "sys/main.dol"
.org 0x8022CF78 ; In dvdWaitDraw
; This code runs after the Nintendo and Dolby logos are done being shown.
; Normally it would switch to the title screen after 31 things finish loading in.
; We want to first load a save file, then switch to the ingame state after those 31 things finish loadi... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifndef OPENCV_DNN_VERSION_HPP
#define OPENCV_DNN_VERSION_HPP
/// Use with major OpenCV version only.
#define OPENCV_DNN_API... |
; Arquivo: testComp.nasm
; Curso: Elementos de Sistemas
; Criado por: Luciano Soares
; Data: 16/04/2017
movw %A,%D
addw %A,%D,%D
movw %D,%A
movw %D,(%A)
incw %D
nop
; Teste comentario
movw (%A),%D
addw (%A),%D,%D ; comentario
subw %D,(%A),%A
rsubw %D,(%A),%A
decw %A
decw %D
notw %A
notw %D
negw %A... |
; A346949: Value of the permanent of the matrix [1-zeta^{j-k}]_{1<=j,k<=2n}, where zeta is any primitive 2n-th root of unity.
; 4,48,1440,80640,7257600,958003200,174356582400,41845579776000,12804747411456000,4865804016353280000,2248001455555215360000,1240896803466478878720000,806582922253211271168000000,609776689223427... |
; A096979: Sum of the areas of the first n+1 Pell triangles.
; 0,1,6,36,210,1225,7140,41616,242556,1413721,8239770,48024900,279909630,1631432881,9508687656,55420693056,323015470680,1882672131025,10973017315470,63955431761796,372759573255306,2172602007770041
mov $1,1
mov $2,1
lpb $0,1
sub $0,1
mov $3,$2
add $2,$1... |
TITLE LDAUX - Assembler side of LD.C
.xlist
include kernel.inc
include newexe.inc
include tdb.inc
include protect.inc
.list
DataBegin
externB fChksum
externW hExeHead
externW curTDB
externW PHTcount
externW kr1dsc
szFake32BitModuleName DB 128 DUP(0)
cFake32BitModuleName DW SIZE szFake... |
;
; ZX Spectrum specific routines
; by Stefano Bodrato, 11/02/2008
;
; int zx_mb02();
;
; The result is:
; - 0 (false) if MB-02 isn't connected
; - 1 (true) if MB-02 real time clock is responding
;
; $Id: zx_mb02.asm,v 1.3 2016-06-10 20:02:05 dom Exp $
;
SECTION code_clib
PUBLIC zx_mb02
PUBLIC _zx_mb02
zx_mb02:
_... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1b8c6, %rsi
lea addresses_WC_ht+0x177ce, %rdi
nop
nop
nop
xor $28941, %r10
mov $46, %rcx
rep movsl
nop
nop
nop
nop
nop
add $21095, %r14
pop %rsi
pop %rdi
pop %rcx
pop %r14
pop %r10
ret
.global s_faul... |
/*
* Copyright (c) 2011-2013, Los Alamos National Security, LLC.
* All rights Reserved.
*
* Copyright 2011-2012. Los Alamos National Security, LLC. This software was produced
* under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National
* Laboratory (LANL), which is operated by Los Alamos Nati... |
#ruledef test
{
ld {x} => 0x55 @ x`8
}
ld $ ; = 0x5500
ld pc ; = 0x5502
ld $ ; = 0x5504
ld pc ; = 0x5506 |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xe126, %rsi
lea addresses_D_ht+0x17926, %rdi
nop
nop
sub %rbp, %rbp
mov $101, %rcx
rep movsq
nop
dec %r15
lea addresses_normal_ht+0x16cb4, %r13
nop
nop
nop
sub %rcx, %rcx
... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r8
push %rax
push %rbx
push %rcx
// Store
mov $0x611, %r11
nop
nop
dec %rax
movb $0x51, (%r11)
nop
nop
xor %rcx, %rcx
// Faulty Load
lea addresses_US+0x14666, %r14
clflush (%r14)
nop
nop
nop
... |
; Copyright © 2021, VideoLAN and dav1d authors
; Copyright © 2021, Two Orioles, LLC
; 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 copy... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xdb42, %r11
nop
nop
add %rsi, %rsi
mov $0x6162636465666768, %rdx
movq %rdx, %xmm1
vmovups %ymm1, (%r11)
nop
cmp %r14, %r14
lea addresses_UC_ht+0x16042, %r14
nop
nop
nop
nop
n... |
SECTION .text
GLOBAL test
test:
mov rax, 0x2
mov rax, 0x7f
mov rax, 0x80
mov rax, 0x80
mov rax, 0xff
mov rax, 0x7ff
mov eax, 0x2
mov eax, 0x7f
mov eax, 0x80
mov eax, 0x80
mov eax, 0xff
mov eax, 0x7ff
mov rax, 0x7fffffff
mov rax, 0x8fffffff
mov rax, 0xffffffff
mov rax, 0x7fffffffff
mov rax, 0xafffffffff
mov rax, 0xfffff... |
_test7: file format elf32-i386
Disassembly of section .text:
00000000 <thread>:
void *stack[NTHREAD];
int tid[NTHREAD];
void *retval[NTHREAD];
int mem;
void *thread(void *arg){
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 08 sub $0x8,%esp
/... |
; *****************************************************************************
; *****************************************************************************
;
; Name: text.asm
; Purpose: Graphic text drawing
; Created: 2nd April 2020
; Reviewed: TODO
; Author: Paul Robson (paul@robsons.org.uk)
;
; **********... |
kp_insmap_lo
dc.b #<ins1
dc.b #<ins2
dc.b #<ins3
dc.b #<ins4
dc.b #<ins5
kp_insmap_hi
dc.b #>ins1
dc.b #>ins2
dc.b #>ins3
dc.b #>ins4
dc.b #>ins5
kp_volmap_lo
dc.b #<vol1
dc.b #<vol2
dc.b #<vol3
dc.b #<vol4
dc.b #<vol5
kp_volmap_hi
dc.b #>vol1
dc.b #>vol2
dc.b #>vol3
dc.b #>vol4
dc.b #>vol5 |
ShockEmote: INCBIN "gfx/emotes/shock.2bpp"
QuestionEmote: INCBIN "gfx/emotes/question.2bpp"
HappyEmote: INCBIN "gfx/emotes/happy.2bpp"
SadEmote: INCBIN "gfx/emotes/sad.2bpp"
HeartEmote: INCBIN "gfx/emotes/heart.2bpp"
BoltEmote: INCBIN "gfx/emotes/bolt.2bpp"
SleepEmote: INCBIN "gfx/emotes/sle... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: ProcView (Sample PC GEOS application)
FILE: procview.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
tony 7/91 Initial vers... |
SECTION "ROM Bank 01", ROMX[$4000], BANK[$01]
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00,... |
; A054136: T(n,2), array T as in A054134.
; Submitted by Jamie Morken(s4)
; 2,6,18,46,107,235,498,1032,2109,4273,8612,17302,34695,69495,139110,278356,556865,1113901,2227992,4456194,8912619,17825491,35651258,71302816,142605957,285212265,570424908,1140850222,2281700879
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
mul $1,2
... |
; A130124: Triangle defined by A130123 * A002260, read by rows.
; Submitted by Jon Maiga
; 1,2,4,4,8,12,8,16,24,32,16,32,48,64,80,32,64,96,128,160,192,64,128,192,256,320,384,448,128,256,384,512,640,768,896,1024,256,512,768,1024,1280,1536,1792,2048,2304,512,1024,1536,2048,2560,3072,3584,4096,4608,5120,1024,2048,3072,409... |
; A294328: a(n) = ((9*n + 8)*10^n - 8)/81.
; 0,2,32,432,5432,65432,765432,8765432,98765432,1098765432,12098765432,132098765432,1432098765432,15432098765432,165432098765432,1765432098765432,18765432098765432,198765432098765432,2098765432098765432,22098765432098765432,232098765432098765432,2432098765432098765432,25432098... |
_Model "A728D28[0A]" ; * Specify target model.
start:
ldb ; * Get a number and
st r0 | ldb ; store it in r0, then get another and
st r1 ; store that in r1.
ld r0 ; * Load one of the numbers, this is an entry condition
... |
///////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2002 - 2011.
// Copyright 2011 John Maddock. 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_
//
// This work is based ... |
/*
*
* EthereumLikeWalletFactory
*
* Created by El Khalil Bellakrid on 14/07/2018.
*
* The MIT License (MIT)
*
* Copyright (c) 2018 Ledger
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the... |
segment .data
align 4
r:
dq 61.0000
segment .text
align 4
global main:function
main:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp+8]
push eax
pop eax
push dword [eax]
push dword 0
push dword 8
pop eax
imul dword eax, [esp]
mov [esp], eax
pop eax
add dword [esp], eax
pop eax
push dword [eax+4]
push d... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1994 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Brother NIKE 56-jet printer driver
FILE: nike56Manager.asm
AUTHOR: Dave Durran
REVISION HISTORY:
Name Date Description
---- ---- ----... |
#include "Platform.inc"
radix decimal
EnableDisableAdcDummies code
global enableAdc
global disableAdc
enableAdc:
disableAdc:
return
end
|
naken_util - by Michael Kohn
Joe Davisson
Web: http://www.mikekohn.net/
Email: mike@mikekohn.net
Version: October 30, 2017
Loaded hexfile E_W_ROUTINEs_32K_ver_1.4.hex from 0x00a0 to 0x01cf
Type help for a list of commands.
Addr Opcode Instruction Cycl... |
title dosa.asm
;
; ASM routines lifted from WINCOM
;
; ToddLa & RussellW
;
; DavidLe removed all but current drive/directory functions
;
?PLM=1 ; PASCAL Calling convention is DEFAULT
?WIN=0 ; Windows calling convention
PMODE=1 ; Enable enter/leave
.xlist
include cmacros.inc
... |
; A026037: a(n) = dot_product(1,2,...,n)*(3,4,...,n,1,2).
; 11,22,40,67,105,156,222,305,407,530,676,847,1045,1272,1530,1821,2147,2510,2912,3355,3841,4372,4950,5577,6255,6986,7772,8615,9517,10480,11506,12597,13755,14982,16280,17651,19097,20620,22222,23905,25671,27522,29460,31487,33605,35816,38122,40525,43027,45630,48336... |
; A022275: a(n) = n*(17*n + 1)/2.
; 0,9,35,78,138,215,309,420,548,693,855,1034,1230,1443,1673,1920,2184,2465,2763,3078,3410,3759,4125,4508,4908,5325,5759,6210,6678,7163,7665,8184,8720,9273,9843,10430,11034,11655,12293,12948,13620,14309,15015,15738,16478,17235,18009,18800,19608,20433,21275,22134,23010,23903,24813,25740,... |
; A103346: Denominators of Sum_{k=1..n} 1/k^6 = Zeta(6,n).
; Submitted by Jon Maiga
; 1,64,46656,2985984,46656000000,46656000000,5489031744000000,351298031616000000,256096265048064000000,51219253009612800000,90738031080962661580800000,90738031080962661580800000
mov $1,1
lpb $0
mov $2,$0
sub $0,1
add $2,1
pow $... |
; A004083: Numbers n such that cos(n-1) <= 0 and cos(n) > 0.
; 5,11,18,24,30,37,43,49,55,62,68,74,81,87,93,99,106,112,118,125,131,137,143,150,156,162,169,175,181,187,194,200,206,213,219,225,231,238,244,250,257,263,269,275,282,288,294,301,307,313,319,326,332,338,345
mov $3,$0
mul $0,2
mov $1,$0
add $1,4
div $1,7
add $1... |
/**
******************************************************************************
*
* @file memorycache.cpp
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup OPMapWidget
* @{
*
************************... |
// Copyright 2018 The Goma Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "lib/execreq_normalizer.h"
#include "absl/strings/match.h"
#include "base/path.h"
#include "google/protobuf/text_format.h"
#include "google/protobuf... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2017-2018 The BitNexus Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "splashs... |
TITLE INVERSING_A_GIVEN_STRING
.MODEL SMALL
.STACK 100H
.DATA
STR1 DB 'HELLO WORLD'
STR2 DB 13 DUP(?)
COUNT DW 13
.CODE
MAIN PROC
BEGIN:
MOV AX, @DATA
MOV DS, AX
MOV ES, AX
MOV CX, COUNT
MOV SI, 0 ... |
#include<stdlib.h>
#include "saferealloc.h"
#include "string.h"
/*safeRealloc(): Cria um novo vetor com um novo tamanho, realocando o antigo dentro dele
Parâmetros:
void *ptr: Vetor a ser realocado
size_t
Nold : Tamanho antigo do vetor
Nnew : Tamanho novo do vetor
Retorno: (void *) Ponteiro para ve... |
//===--- ToolChains.cpp - Job invocations (general and per-platform) ------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
#pragma once
#include <deip/protocol/base.hpp>
#include <deip/protocol/version.hpp>
#include <deip/protocol/asset.hpp>
namespace deip {
namespace protocol {
struct stage_phase
{
time_point_sec start_time;
time_point_sec end_time;
};
struct guard_fn
{
uint16_t fn_type;
fc::optional<string> fn; // ch... |
; A339356: Maximum number of copies of a 123456 permutation pattern in an alternating (or zig-zag) permutation of length n + 9.
; 16,32,144,256,688,1120,2352,3584,6496,9408,15456,21504,32928,44352,64416,84480,117744,151008,203632,256256,336336,416416,534352,652288,821184,990080,1226176,1462272,1785408,2108544,2542656,2... |
; A018919: Define the generalized Pisot sequence T(a(0),a(1)) by: a(n+2) is the greatest integer such that a(n+2)/a(n+1) < a(n+1)/a(n). This is T(3,9).
; 3,9,26,75,216,622,1791,5157,14849,42756,123111,354484,1020696,2938977,8462447,24366645,70160958,202020427,581694636,1674922950,4822748423,13886550633,39984728949,1151... |
SECTION "loading data state handler", ROM0
state_loading_data:
jp main
|
* Zap Thing from list v0.00 Feb 1988 J.R.Oakley QJUMP
*
section thing
*
include 'dev8_keys_chp'
include 'dev8_keys_err'
include 'dev8_keys_qlv'
include 'dev8_keys_sys'
include 'dev8_keys_thg'
*
xref th_find
xref th_rechp
... |
//==================================================================================================
/*!
Copyright 2016 NumScale SAS
Copyright 2016 J.T Lapreste
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//======... |
; A339464: a(n) = (prime(n)-1) / gpf(prime(n)-1) where gpf(m) is the greatest prime factor of m, A006530.
; Submitted by Jamie Morken(w2)
; 1,2,2,2,4,8,6,2,4,6,12,8,6,2,4,2,12,6,10,24,6,2,8,32,20,6,2,36,16,18,10,8,6,4,30,12,54,2,4,2,36,10,64,28,18,30,6,2,12,8,14,48,50,128,2,4,54,12,40,6,4,18,10,24,4,30,48,2,12,32,2,6,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x13d99, %rsi
lea addresses_D_ht+0x1a129, %rdi
nop
nop
nop
nop
nop
cmp %rdx, %rdx
mov $50, %rcx
rep movsw
nop
inc %rbp
lea addresses_D_ht+0x1b5a0, %r14
nop
inc %rbp
movw $0x616... |
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifidn __OUTPUT_FORMAT__,win32
%ifdef __YASM_VERSION_ID__
%if __YASM_VERSION_ID__ < 01010000h
%error yasm version 1.1.0 or later needed.
%endif
; Yasm automatically includes .00 and complains about redefining it.
; https://www.tortall.net/projects/ya... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x15e49, %rax
nop
xor $41326, %r13
movb (%rax), %dl
nop
inc %rdx
lea addresses_D_ht+0xff49, %rbx
cmp $42525, %r9
mov (%rbx), %si
nop
nop
nop
nop
cmp %rbx, %rbx
lea addresses_D_h... |
; A255977: The number of numbers j+k*r <= n, where r = golden ratio and j and k are nonnegative integers.
; 1,2,4,6,9,13,17,22,27,33,40,47,55,64,73,83,93,104,116,128,141,154,168,183,198,214,231,248,266,284,303,323,343,364,386,408,431,454,478,503,528,554,580,607,635,663,692,722,752,783,814,846,879,912,946,980,1015,1051,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1330, %rsi
lea addresses_UC_ht+0x6fb2, %rdi
nop
nop
sub %rax, %rax
mov $23, %rcx
rep movsw
nop
nop
nop
sub %rbp, %rbp
lea addresses_A_ht+0x17716, %rsi
lea addresses_WT_ht+0x1... |
;=================================================
; Name: Sungho Ahn
; Email: sahn025@ucr.edu
; GitHub username: ptr2578
;
; Lab: lab 6
; Lab section: B21
; TA: Jason Goulding
;
;=================================================
.ORIG x3000
;--------------
; Instructions
;--------------
AND R1, R1, #0 ; Ini... |
; A164938: a(n) = (n^5-n)/10, which is always an integer.
; 0,3,24,102,312,777,1680,3276,5904,9999,16104,24882,37128,53781,75936,104856,141984,188955,247608,319998,408408,515361,643632,796260,976560,1188135,1434888,1721034,2051112,2429997,2862912,3355440,3913536,4543539,5252184,6046614,6934392,7923513,9022416,10239996,... |
INCLUDE "hardware.inc"
INCLUDE "header.inc"
;--------------------------------------------------------------------------
;- RESTART VECTORS -
;--------------------------------------------------------------------------
SECTION "RST_00",HOME[$0000]
ret
SEC... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017 The ABP developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licen... |
#include <bgame/impl.h>
namespace cmd {
///////////////////////////////////////////////////////////////////////////////
Time::Time()
: AbstractBuiltin( "time", true )
{
__usage << xvalue( "!" + _name );
__descr << "Shows the current local (server) time.";
}
//////////////////////////////////////////////... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Canon CaPSL drivers
FILE: fontCapslInfo.asm
AUTHOR: Dave Durran, 1 Aug 1992
REVISION HISTORY:
Name Date Description
---- ---- ---... |
; A 32 bit OSX Assembly Hello World
; See: http://stackoverflow.com/a/40814828/1240482
; The OS/X system calls are documented by Apple on their website.
; https://opensource.apple.com/source/xnu/xnu-1504.3.12/bsd/kern/syscalls.master
global start
section .text
start:
; sys_write syscall
; See: https://opensour... |
;-------------------------------------------------------------------------------
; tm_head.nasm - module header.
;-------------------------------------------------------------------------------
module $taskman
%include "module.ah"
exportdata ModuleInfo
section .data
ModuleInfo: instance tModInfoTag
field(Signa... |
#pragma once
#include <bgfx/bgfx.h>
#include "sky/dynamicValueController.hpp"
#include "sky/proceduralSky.hpp"
#include "sky/sunController.hpp"
class SkySystem
{
public:
SkySystem();
~SkySystem();
void update(float dt);
SkySystem(SkySystem const&) = delete;
void operator=(SkySystem const&) = delete;
private:
... |
// https://leetcode-cn.com/problems/path-sum/
#include "treenode.hpp"
class Solution
{
public:
bool hasPathSum(TreeNode *root, int sum)
{
if (root == nullptr)
return false;
if (root->left == nullptr && root->right == nullptr && sum == root->val)
return true;
return (hasPathSum(root->left, s... |
; A107075: Centered square numbers that are also centered pentagonal numbers.
; 1,181,58141,18721081,6028129801,1941039074701,625008553923781,201250813324382641,64802136881897286481,20866086825157601864101,6718815155563865902953901,2163437614004739663149291881,696620192894370607668169031641,2243095386743733309294872788... |
; A179526: (3^k - 1)/2 appears 3^(k-1) times, k>0.
; 1,4,4,4,13,13,13,13,13,13,13,13,13,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121
mul $0,2
mov $1,1
mov $2,$0
lpb $2
mul $1,3
sub $2,$1
... |
; A000354: Expansion of e.g.f. exp(-x)/(1-2*x).
; Submitted by Jamie Morken(w3)
; 1,1,5,29,233,2329,27949,391285,6260561,112690097,2253801941,49583642701,1190007424825,30940193045449,866325405272573,25989762158177189,831672389061670049,28276861228096781665,1017967004211484139941,38682746160036397317757,1547309846401455... |
main:
addi $s0, $zero, 1000
addi $s1, $zero, 0
addi $s2, $zero, 10
addi $t1, $zero, 0
initloop:
addi $t1, $t1, 1
sw $t1, 0($s0)
addi $s0, $s0, 4
addi $s1, $s1, 1
slt $s3, $s1, $s2
bne $s3, $zero, initloop
addi $s0, $zero, 1000
addi $s1, $zero, 0
addi $s3, $zero, 0
addi $s2, $zero, 9
sumloop:
lw $t0, ... |
; A142544: Primes congruent to 14 mod 53.
; Submitted by Jon Maiga
; 67,173,491,809,1021,1657,2081,2293,2399,3671,3989,4201,4519,4943,5261,5791,5897,6427,7487,7699,8017,8123,8971,10243,10667,11197,11621,11833,11939,12893,15013,15331,15649,16073,16603,16921,17027,17239,17981,18617,19571,19889,20101,22433,22751,22963,235... |
Name: zel_msge.asm
Type: file
Size: 162763
Last-Modified: '2016-05-13T04:36:32Z'
SHA-1: C59B3F73788386BC0D2ED7B3B99C9997E36A4358
Description: null
|
; todo: fix: master scheduling of light blink and network pulse never blinks light
; I found that the blink routine runs once! See if 3 destroys it?
; todo: 1. master, 2. snoop, 3. sprinkler
; in the master node code:
; does this file need to be unique?
; put out a character once a second,
... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 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 "wallet.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "init.h"
#in... |
.include "defaults_mod.asm"
table_file_jp equ "exe5-utf8.tbl"
table_file_en equ "bn5-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252424A // BRBJ
game_code_2 equ 0x42524245 // BRBE
game_code_3 equ 0x42524250 // BRBP
card_type equ 1
card_id equ 105
card_no equ "105"
card_sub equ "Special Mod Card"
card_s... |
; A160927: a(n) = n + reversal(n-1).
; 1,3,5,7,9,11,13,15,17,19,12,23,34,45,56,67,78,89,100,111,23,34,45,56,67,78,89,100,111,122,34,45,56,67,78,89,100,111,122,133,45,56,67,78,89,100,111,122,133,144,56,67,78,89,100,111,122,133,144,155,67,78,89,100
sub $0,2
cal $0,160924 ; a(n)= n + reversal(n+1)
mov $1,$0
add $1,2
|
; A068970: a(n) = Sum_{d|n} phi(d^4).
; Submitted by Jon Maiga
; 1,9,55,137,501,495,2059,2185,4429,4509,13311,7535,26365,18531,27555,34953,78609,39861,123463,68637,113245,119799,267675,120175,313001,237285,358723,282083,682893,247995,893731,559241,732105,707481,1031559,606773,1823509,1111167,1450075,1094685,2756841,101... |
.macosx_version_min 10, 11
.section __TEXT,__text,regular,pure_instructions
.align 4, 0x90
.globl _c1
_c1:
pushq %rbp
movq %rsp, %rbp
popq %rbp
ret
# ----------------------
.align 4, 0x90
.globl _main
_main:
pushq %rbp
movq %rsp, %rbp
subq $16, %rsp
movl $0, -... |
// -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2019, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... |
// 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 <stddef.h>
#include "base/macros.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#... |
#include "ring.h"
#include "presenters/no_presenter.h"
#include <set>
#include <random>
using namespace std;
vector<unsigned int> get_unique_ids(size_t number_of_ids);
Ring::Ring(
size_t number_of_workers,
unsigned int worker_sleeptime,
Presenter* presenter
) {
if (!presenter) {
presenter... |
#include "Platform.inc"
radix decimal
ClockRam udata
global clockFlags
global clockYearBcd
global clockMonthBcd
global clockDayBcd
global clockHourBcd
global clockMinuteBcd
global clockSecondBcd
global dayOfYearHigh
global dayOfYearLow
clockFlags res 1
clockYearBcd res 1
clockMonthBcd res 1
clockDayBcd re... |
; A005051: a(n) = 8*3^n.
; 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,16471290567571... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r15
push %rbx
push %rdi
push %rdx
// Store
lea addresses_US+0xe00f, %r12
xor %r11, %r11
movb $0x51, (%r12)
nop
nop
nop
nop
nop
sub $55858, %r11
// Faulty Load
lea addresses_RW+0x1ac87, %r10
n... |
; A273630: a(n) = Sum_{k = 0..n} (-1)^k*k^3*binomial(n,k)^3.
; Submitted by Christian Krause
; 0,-1,0,162,0,-11250,0,576240,0,-25259850,0,1007242236,0,-37685439792,0,1346871240000,0,-46504059326010,0,1562983866658500,0,-51407781284599740,0,1661123953798807680,0,-52886433789393750000,0,1662782404368229351200
add $0,1
l... |
;
; Bootloader - second stage
;
bits 16
%include "Config.asm"
; Tell NASM to output all our labels with offset 0x7E00
org BOOTLOADER_SECOND_STAGE_ADDR
; Data section that holds initialized data, i.e. global vars
SECTION .data
g_linearFrameBuffer: dd 0
g_width: dd 0
g_height: ... |
; A072262: a(n) = 4*a(n-1) + 1, a(1)=11.
; 11,45,181,725,2901,11605,46421,185685,742741,2970965,11883861,47535445,190141781,760567125,3042268501,12169074005,48676296021,194705184085,778820736341,3115282945365,12461131781461,49844527125845,199378108503381,797512434013525,3190049736054101
mov $1,4
pow $1,$0
div $1,3
mul... |
; A036220: Expansion of 1/(1-3*x)^7; 7-fold convolution of A000244 (powers of 3).
; 1,21,252,2268,17010,112266,673596,3752892,19702683,98513415,472864392,2192371272,9865670724,43257171636,185387878440,778629089448,3211844993973,13036312034361,52145248137444,205836505805700,802762372642230,3096369151620030,1182250039709... |
Route16WildMons:
def_grass_wildmons 25 ; encounter rate
db 33, SCYTHER
db 32, FEAROW
db 35, RATICATE
db 34, DODUO
db 37, RATICATE
db 36, DODUO
db 38, MACHOKE
db 39, BUTTERFREE
db 38, RATICATE
db 41, DODRIO
end_grass_wildmons
def_water_wildmons 0 ; encounter rate
end_water_wildmons
|
; void tshr_cls_wc_pix(struct r_Rect8 *r, uchar pix)
SECTION code_clib
SECTION code_arch
PUBLIC _tshr_cls_wc_pix
EXTERN l0_tshr_cls_wc_pix_callee
_tshr_cls_wc_pix:
pop af
pop de
pop hl
push hl
push de
push af
jp l0_tshr_cls_wc_pix_callee
|
; A128787: n^2*8^n.
; 0,8,256,4608,65536,819200,9437184,102760448,1073741824,10871635968,107374182400,1039382085632,9895604649984,92908732547072,862017116176384,7916483719987200,72057594037927936,650770146155036672,5836665117072162816,52025582895383969792,461168601842738790400,4067507068252956131328,3571289652670169192... |
; Load DH sectors to ES;BX from drive DL
disk_load:
push dx ;store DX to stack so we can recall
;how many sectors were requested to be read,
;even if it is altered in the meantime
mov ah, 0x02 ;BIOS read sector function
mov al, dh ;Read DH sectors
mov ch, 0x00 ;... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x11d08, %r12
nop
nop
nop
nop
and %r9, %r9
mov $0x6162636465666768, %rax
movq %rax, (%r12)
nop
cmp $65183, %r15
lea addresses_UC_ht+0xc0c8, %r8
nop
and %rdi, %rdi
movb... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
; A077649: Initial digit of composite numbers.
; 4,6,8,9,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
seq $0,2808 ; The composite numbers: numbers n of the form x*y for x >... |
; A032936: Numbers whose set of base-16 digits is {1,2}.
; 1,2,17,18,33,34,273,274,289,290,529,530,545,546,4369,4370,4385,4386,4625,4626,4641,4642,8465,8466,8481,8482,8721,8722,8737,8738,69905,69906,69921,69922,70161,70162,70177,70178,74001,74002,74017,74018,74257,74258,74273,74274,135441,135442,135457,135458,135697,13... |
; A109044: a(n) = lcm(n,3).
; 0,3,6,3,12,15,6,21,24,9,30,33,12,39,42,15,48,51,18,57,60,21,66,69,24,75,78,27,84,87,30,93,96,33,102,105,36,111,114,39,120,123,42,129,132,45,138,141,48,147,150,51,156,159,54,165,168,57,174,177,60,183,186,63,192,195,66,201,204,69,210,213,72,219,222,75,228,231,78,237,240,81,246,249,84,255,258... |
SndB7_Rumbling_Header:
smpsHeaderStartSong 1
smpsHeaderVoice SndB7_Rumbling_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cFM5, SndB7_Rumbling_FM5, $00, $00
; FM5 Data
SndB7_Rumbling_FM5:
smpsSetvoice $00
smpsModSet $01, $01, $20, $08
SndB7_Rumbling_Loop00:
d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.