text stringlengths 1 1.05M |
|---|
; A283483: Sums of distinct nonzero terms of A003462: a(n) = Sum_{k>=0} A030308(n,k)*A003462(1+k).
; 0,1,4,5,13,14,17,18,40,41,44,45,53,54,57,58,121,122,125,126,134,135,138,139,161,162,165,166,174,175,178,179,364,365,368,369,377,378,381,382,404,405,408,409,417,418,421,422,485,486,489,490,498,499,502,503,525,526,529,530... |
; A183060: Number of "ON" cells at n-th stage in a simple 2-dimensional cellular automaton (see Comments for precise definition).
; 0,1,4,7,14,17,24,31,50,53,60,67,86,93,112,131,186,189,196,203,222,229,248,267,322,329,348,367,422,441,496,551,714,717,724,731,750,757,776,795,850,857,876,895,950,969,1024,1079,1242,1249,12... |
; A108300: a(n+2) = 3*a(n+1) + a(n), a(0) = 1, a(1) = 5.
; 1,5,16,53,175,578,1909,6305,20824,68777,227155,750242,2477881,8183885,27029536,89272493,294847015,973813538,3216287629,10622676425,35084316904,115875627137,382711198315,1264009222082,4174738864561
mov $1,1
mov $3,1
lpb $0
sub $0,1
mov $2,$3
mul $2,2
ad... |
; *********************************************************************************
; *********************************************************************************
;
; File: screen_lores.asm
; Purpose: LowRes console interface, sprites enabled.
; Date : 13th January 2019
; Author: paul@robsons.org.uk
;
; **... |
; This file is generated from a similarly-named Perl script in the BoringSSL
; source tree. Do not edit by hand.
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
%ifdef BORINGSSL_PREFIX
%include "boringssl_prefix_symbols_nasm.inc"
%endif
section .text code align=64
ALIGN 16
_vpaes_encrypt... |
#include <bits/stdc++.h>
using namespace std;
/*
Given the root of a binary search tree, and a target K,
return two nodes in the tree whose sum equals K.
For example, given the following tree and K of 20
10
/ \
5 15
/ \
11 15
Return the nodes 5 and 15.
*/
struct node{
int data;
nod... |
// Copyright (c) 2014-2016 The Dash developers
// Copyright (c) 2016-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 "spork.h"
#include "base58.h"
#include "key.h"
#include "main.h"
#include... |
; A011891: a(n) = floor( n*(n-1)*(n-2)/9 ).
; 0,0,0,0,2,6,13,23,37,56,80,110,146,190,242,303,373,453,544,646,760,886,1026,1180,1349,1533,1733,1950,2184,2436,2706,2996,3306,3637,3989,4363,4760,5180,5624,6092,6586,7106,7653,8227,8829,9460,10120,10810,11530,12282,13066,13883,14733,15617,16536,17490,18480,19506,20570,21672... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; void *p_forward_list_alt_front(p_forward_list_alt_t *list)
;
; Return item at front of list without removing it from the list.
;
; ========================================... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x101fc, %rsi
nop
nop
nop
and %rcx, %rcx
mov $0x6162636465666768, %rbx
movq %rbx, (%rsi)
nop
nop
nop
nop
add $34492, %rcx
lea addresses_D_ht+0x69ac, %r12
clflush (%r12)
nop
cmp %rbx, %rbx... |
; A047293: Numbers that are congruent to {0, 2, 4, 6} mod 7.
; 0,2,4,6,7,9,11,13,14,16,18,20,21,23,25,27,28,30,32,34,35,37,39,41,42,44,46,48,49,51,53,55,56,58,60,62,63,65,67,69,70,72,74,76,77,79,81,83,84,86,88,90,91,93,95,97,98,100,102,104,105,107,109,111,112,114,116,118,119,121,123,125,126,128,130,132,133,135,137,139,... |
; A059716: Number of column convex polyominoes with n hexagonal cells.
; Submitted by Jon Maiga
; 1,3,11,42,162,626,2419,9346,36106,139483,538841,2081612,8041537,31065506,120010109,463614741,1791004361,6918884013,26728553546,103255896932,398891029862,1540968200661,5952961630324,22997069087436,88840684596141,34320317991... |
#ifndef _OID_HPP
#define _OID_HPP
class Oid
{
// DESCRIPTION:
// array containing the numeric components of the OID
CWordArray m_nOidComp;
// DESCRIPTION:
// array of pointers to strings, containing symbolic names
// for OID's components.
CObArray m_szOidComp;
public:
// DESCRIPTI... |
#include "mymath.h"
#include "math.h"
double mymath::Sin[360];
int mymath::i;
mymath::mymath(){
for (i = 0; i < 360; ++i)
{
Sin[i]=sin(i*M_PI/180);
}
}
double mymath::mysin(int x){
x%=360;
return Sin[x];
}
double mymath::mycos(int x){
x=(x+90)%360;
return Sin[x];
} |
; float fmin(float x, float y)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdcciy_fmin
EXTERN cm48_sdcciyp_dread2, l0_cm48_sdcciy_fmin_callee
cm48_sdcciy_fmin:
call cm48_sdcciyp_dread2
; AC'= y
; AC = x
jp l0_cm48_sdcciy_fmin_callee
|
; A319089: a(n) = tau(n)^3, where tau is A000005.
; 1,8,8,27,8,64,8,64,27,64,8,216,8,64,64,125,8,216,8,216,64,64,8,512,27,64,64,216,8,512,8,216,64,64,64,729,8,64,64,512,8,512,8,216,216,64,8,1000,27,216,64,216,8,512,64,512,64,64,8,1728,8,64,216,343
seq $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divis... |
/*Exercise 2 - Selection
Convert the C program given below which calculates an employee's salary to a C++ program.
Input Type, Salary, otHours
Type = 1
OtRate = 1000
Type = 2
OtRate = 1500
Type = 3
OtRate = 1700
Please Note that the input command in C++ is std::cin. This is a representation of the Keyboard.*/
/*#in... |
;
; lab04B.asm
;
; Created: 9/20/2017 18:10:33 PM
; Author : LI JINGCHENG
;
; Replace with your application code
.include "m2560def.inc"
.def flag = r15 ;use flag to store the result
.def temp =r16
.def row =r17
.def col =r18
.def mask =r19
.def temp2 =r20
.def nletters = r21
.def lcd_te... |
// Copyright (c) 2021 by Apex.AI Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
dnl HP-PA 1.1 32-bit mpn_sqr_diagonal.
dnl Copyright 2001, 2002 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
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as pu... |
; A083300: a(n) = (4*7^n + (-3)^n)/5.
; Submitted by Jamie Morken(s4)
; 1,5,41,269,1937,13397,94265,658397,4613153,32278949,225992009,1581825965,11073136049,77510889461,542579414873,3798046338173,26586353065025,186104385361733,1302730955812457,9119115915846221,63833813735446481,446836689174556565,3127856845142602361,21... |
;; Symantec AntiVirus symtdi.sys Local Privilege Escalation
;; --
;; Zohiartze Herce San Martin -=- http://www.48bits.com/
.386
.model flat,stdcall
option casemap:none
;####################################
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\ke... |
; A092442: Sequence arising from enumeration of domino tilings of Aztec Pillow-like regions.
; 0,1,5,19,59,161,405,967,2231,5029,11153,24443,53091,114505,245549,524047,1113839,2358989,4980393,10485379,22019675,46136881,96468485,201326039,419429799,872414581,1811938625,3758095627,7784627411
mov $1,2
pow $1,$0
sub $1,$0... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xa32b, %rsi
lea addresses_normal_ht+0x155e3, %rdi
clflush (%rdi)
add %r12, %r12
mov $86, %rcx
rep movsb
and %rax, %rax
lea addresses_WT_ht+0x16873, %rsi
nop
nop
xor $53035, %r13
mo... |
;***********************************************************
; Version 2.40.00
;***********************************************************
; Note: a symbol "SI_BUGS" is used to make a work around for silicon
; 5510 version1.0. If you are going to use the code on 5510 vers... |
; Title: Win32 Network Shell
; Platforms: Windows NT 4.0, Windows 2000, Windows XP, Windows 2003
; Author: hdm[at]metasploit.com
[BITS 32]
%include "win32_stage_boot_reverse.asm"
%include "win32_stage_revert.asm"
%include "win32_stage_shell.asm"
|
//
// Demo2.cpp
// Engine
//
// Created by harry on 2019/10/5.
//
#include <iostream>
#include "Demo2.h"
#include "cocos2d.h"
#include "renderer/CCGLProgramCache.h"
USING_NS_CC;
void Demo2::initGLProgram() {
_glPrgram = GLProgramCache::getInstance()->getGLProgram(GLProgram::SHADER_NAME_POSITION_COLOR);
}
void ... |
; A081009: a(n) = Fibonacci(4n+3) - 1, or Fibonacci(2n+2)*Lucas(2n+1).
; 1,12,88,609,4180,28656,196417,1346268,9227464,63245985,433494436,2971215072,20365011073,139583862444,956722026040,6557470319841,44945570212852,308061521170128,2111485077978049,14472334024676220,99194853094755496,679891637638612257,4660046610375530... |
; A288035: Number of (undirected) paths in the complete bipartite graph K_n,n.
; 1,12,135,2224,55725,2006316,98309827,6291829440,509638185369,50963818537900,6166622043087231,887993574204562992,150070914040571147845,29413899151951944980364,6618127309189187620585275,1694240591152432030869834496,48963553084305285692138217... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x4142434445464748",
"RBX": "0x5152535455565758",
"RCX": "0x0",
"RDI": "0xE0000008",
"RSI": "0xDFFFFFF8"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535... |
;;
;; Copyright (c) 2012-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... |
; A147513: Numbers such that the n-th and (n+1)st terms are the successors of prime numbers and primes themselves and n+1 > n.
; 3,5,7,11,13,19,23,31,37,47
add $0,1
mov $1,$0
div $1,2
sub $0,$1
mul $1,$0
trn $0,2
sub $1,$0
mov $0,$1
mul $0,2
add $0,3
|
// 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.
// Note: This file tests both binding.h (mojo::Binding) and strong_binding.h
// (mojo::StrongBinding).
#include "mojo/public/cpp/bindings/binding.h"
#in... |
;
; jidctfst.asm - fast integer IDCT (64-bit SSE2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2009, 2016, D. R. Commander.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright n... |
;; @file
; This is the code that goes from real-mode to protected mode.
; It consumes the reset vector, calls TempRamInit API from FSP binary.
;
; Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
;
; This program and the accompanying materials
; are licensed and made available under th... |
#include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include <QPixmap>
#if QT_VERSION < 0x050000
#include <QUrl>
#endif
#include <qrencode.h>
QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bo... |
; Copyright (c) 2004, Intel Corporation
; All rights reserved. This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution... |
; Phantasy Star Gaiden tile decompressor
; To use:
;
; .define PSGDecoderBuffer $c000 ; define a 34 byte work area for it
; .include "Phantasy Star Gaiden decompressor.asm" ; include this file
; ld ix, <address of compressed data>
; ld hl, <VRAM address to write to, ORed with $4000>
; call PSG_decompr... |
/*
// Copyright (c) 2015 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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
;
; OSCA specific routines
;
; HRG PLOT
;
; $Id: cplotpixel.asm,v 1.1 2012/01/31 20:58:07 stefano Exp $
;
XLIB cplotpixel
; LIB y_offset_list
LIB l_cmp
INCLUDE "osca.def"
;x_coord: defw 0
;y_coord: defw 0
;pixel_colour: defb 0
;;cplotpixel:
; plot a pixel at (x_coord), (y_coord) in colour (pixe... |
VECTOR_DEFINES := -DHAVE_IPP
ALLOCATOR_DEFINES := -DHAVE_POSIX_MEMALIGN
THIRD_PARTY_INCLUDES := -I/opt/intel/ipp/include
THIRD_PARTY_LIBS := -L/opt/intel/ipp/lib/intel64_lin -Wl,-Bstatic -lipps -lippvm -lippcore -Wl,-Bdynamic
include build/Makefile.inc
|
#include <cstdio>
#include <cstring>
#define MAXN 210
using namespace std;
struct link
{
int to;
int nxt;
};
link e[MAXN*MAXN];
int edge_num[MAXN],cnt;
int n,x;
int a[MAXN],val[MAXN],g[MAXN][MAXN];
bool vis[MAXN],cir[MAXN];
int ans,rt[MAXN];
inline void add(int u,int v)
{
e[cnt]=(link){v,edge_num[u]};edg... |
#include "tft_driver.h"
#include <stdio.h>
#include <stdlib.h>
#include "hardware/dma.h"
#include "hardware/gpio.h"
#include "hardware/irq.h"
#include "hardware/pio.h"
#include "hardware/pwm.h"
#include "io.h"
#include "pico/stdlib.h"
#include "tft_driver.pio.h"
namespace tft_driver {
// Plain GPIO output pins.
#de... |
#include <shiny/camera.hpp>
namespace aml = atma::math;
using shiny::camera_t;
camera_t::camera_t()
: camera_t(
aml::look_at(aml::point4f(), aml::point4f(0.f, 0.f, 1.f),
aml::vector4f(0.f, 1.f, 0.f, 0.f)),
aml::perspective_fov(aml::pi_over_two, 360.f/480.f, 0.03434f, 120.f))
{
}
camera_t::cam... |
; A091085: a(n) = mod(A078008(n),10).
; 1,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2,6,0,2,2
seq $0,176448 ; 7*2^n-2
pow $0,2
sub $0,4
mod $0,10
|
; A077865: Expansion of (1-x)^(-1)/(1-x-2*x^2+x^3).
; 1,2,5,9,18,32,60,107,196,351,637,1144,2068,3720,6713,12086,21793,39253,70754,127468,229724,413907,745888,1343979,2421849,4363920,7863640,14169632,25532993,46008618,82904973,149389217,269190546,485064008,874055884,1574993355
mov $8,$0
mov $10,$0
add $10,1
lpb $10
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1db81, %rsi
lea addresses_WC_ht+0x5181, %rdi
nop
nop
nop
add %r8, %r8
mov $74, %rcx
rep movsb
nop
nop
nop
nop
add $46415, %r14
lea addresses_WT_ht+0x53c1, %rsi
lea addresses_D_ht+0x998... |
; A119587: 2^n + 1 - 2*Fibonacci(n+1).
; 0,1,1,3,7,17,39,87,189,403,847,1761,3631,7439,15165,30795,62343,125905,253783,510759,1026685,2061731,4136991,8295873,16627167,33311647,66716029,133582107,267406999,535206833,1071049287
mov $5,2
mov $6,$0
lpb $5
mov $0,$6
mov $3,0
sub $5,1
add $0,$5
sub $0,1
lpb $0
... |
; Note that this version of spectranet.asm is intended for the C compiler.
; However, if your assembler doesn't like ../rom/libspectranet.asm you
; can try this one instead; it defines exactly the same values just using
; the syntax for z88dk's z80asm.
DEFC PAGEIN = 0x3FF9
DEFC PAGEOUT = 0x007C
DEFC HLCALL = 0x3FFA
DEF... |
// Copyright (C) 2015 National ICT Australia (NICTA)
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// ----------------------------------------------------------... |
; #########################################################################
.186
.model tiny
.code
start:
; #########################################################################
push cs ; point data segment to code segment
pop ds ; since data is after code segmen... |
; A248668: Sum of the numbers in the n-th row of the array at A248664.
; Submitted by Jon Maiga
; 1,4,26,260,3610,64472,1409006,36432076,1087911890,36844580000,1395429571222,58439837713556,2681526361893626,133783187672365480,7210345924097089790,417482356526745344732,25844171201928905477026,1703359919973405018460976,119... |
;----------------------------------------------------------------------------
; src/input.asm
; Designed for 64bit macOS
; Prompts for your name and then prints "Hello, <your inputted name>"
;
%include "lib.inc"
%include "io.inc"
global _start
default rel
section .data
prompt: db "Please enter your name: ", 0
msg... |
MyStack SEGMENT STACK
DW 4096 DUP (?)
MyStack ENDS
MyData SEGMENT
numString DB 10 DUP (?) ; holds the characters that will represent the timer
color DB (?) ; holds the color that the user's sentence will be
done DB (?) ; terminating condition
mismatch DB (?) ; determines whether timer ac... |
; void adt_HeapAdd(void *item, void **array, uint n, void *compare)
; 08.2005 aralbrec
SECTION code_clib
PUBLIC ADTHeapAdd
EXTERN ADTHeapSiftUp
; enter: HL = N+1 (number of items in array after this one added)
; BC = array address
; DE = &item
; IX = compare(DE=&array[child], HL=&array[parent... |
main: nor $r1, $0, $0
srl $r2, $r1, 1
sra $r3, $r2, 1
sll $r4, $r3, 1
srl $r5, $r4, 1
sra $r6, $r5, 1
sll $r7, $r6, 1
srl $r8, $r7, 1
sra $r9, $r8, 1
sll $r10, $r9, 1
srl $r11, $r10, 1
sra $r12, $r11, 1
sll $r13, $r12, 1
srl $r14, $r13, 1
sra $r15, $r14, 1
sll $r16, $r15, 1
srl $r17, $r16, 1
sra $r18,... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2016 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... |
/*
* SpeechSynthesizerIntegrationTest.cpp
*
* Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.a... |
; A106666: G.f. (1-4*x^2+2*x^3)/((1-x)*(2*x^3-2*x^2-2*x+1)).
; 1,3,5,13,29,73,177,441,1089,2705,6705,16641,41281,102433,254145,630593,1564609,3882113,9632257,23899521,59299329,147133185,365065985,905799681,2247464961,5576397313,13836125185,34330115073,85179685889
sub $0,1
cal $0,77937 ; Expansion of 1/(1-2*x-2*x^2+2*x... |
SECTION code_fp_math32
PUBLIC tanh_fastcall
EXTERN _m32_tanhf
defc tanh_fastcall = _m32_tanhf
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _tanh_fastcall
defc _tanh_fastcall = tanh_fastcall
ENDIF
|
// Copyright (c) 2013-2014 The Bitcoin Core developers
// Copyright (c) 2017-2020 The PIVX developers
// Copyright (c) 2020 The BTCU developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpc/server.h"
#include... |
lda {m1}
cmp #{c1}
lda {m1}+1
sbc #0
bvc !+
eor #$80
!:
bpl {la1}
|
/*---------------------------------------------------------------------------
File: TDCTInsall.cpp
Comments: Utility class used by the dispatcher to install the DCT agent service.
The TDCTInstall class encapsulates the service control management required
to remotely install the agent service, configure it... |
%ifndef ERROR
%ifndef FATAL
%ifndef WARNING
%define ERROR 1
%endif
%endif
%endif
n0: jmp n1
n1: jmp n2
n2: jmp n3
n3: jmp n4
n4: jmp n5
n5: jmp n6
n6: jmp n7
n7: jmp n8
n8: jmp n9
n9: jmp n10
n10: jmp n11
n11: jmp n12
n12: jmp n13
n13: jmp n14
n14: jmp n15
n15: jmp n16
n16: jm... |
/**
* Copyright 2020 The Magma Authors.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
... |
db DEX_RHYHORN ; pokedex id
db 80 ; base hp
db 85 ; base attack
db 95 ; base defense
db 25 ; base speed
db 30 ; base special
db GROUND ; species type 1
db ROCK ; species type 2
db 120 ; catch rate
db 135 ; base exp yield
INCBIN "pic/bmon/rhyhorn.pic",0,1 ; 77, sprite dimensions
dw RhyhornPicFront
dw RhyhornPicBack
; at... |
format PE64 console
entry start
include 'win64w.inc'
section '.data' data readable writeable
stdout dq ?
filename TCHAR 'filecreate.txt', 0h
failc db 'failed to create file', 0h
failw db 'failed to write file: ', 0h
writes db 'write file success', 0h
bom db 0xff, 0xfe, 0, 0
bomlen = $ - bom
content dw ... |
global irq0
global irq1
global irq8
global irq12
global int0
global int7
global int8
global intd
global inte
global int30
extern current_process
extern handle_timer
extern handle_keyboard
extern handle_clock
extern handle_mouse
extern fpu_task_switch
extern divide_error
extern double_fault
extern gpfault
extern pgfault... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkGL2PSUtilities.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwar... |
; https://www.nasm.us/xdoc/2.15.05/html/nasmdoc0.html
; https://duckduckgo.com/?q=link+nasm+object+file+mac+osx&t=osx&ia=web
; nasm -f macho64 -o hello2.o hello2.asm
; ld -o hello2 -e _main hello2.o -macosx_version_min 10.15 -static
; ld -e _main -o hello2 hello2.o -static
; ./hello2
global _main
section .text
_ma... |
; A022091: Fibonacci sequence beginning 0, 8.
; 0,8,8,16,24,40,64,104,168,272,440,712,1152,1864,3016,4880,7896,12776,20672,33448,54120,87568,141688,229256,370944,600200,971144,1571344,2542488,4113832,6656320,10770152,17426472,28196624,45623096,73819720,119442816
mov $3,1
lpb $0,1
sub $0,1
mov $2,$1
mov $1,$3
a... |
; A309336: a(n) = n^4 if n odd, 15*n^4/16 if n even.
; 0,1,15,81,240,625,1215,2401,3840,6561,9375,14641,19440,28561,36015,50625,61440,83521,98415,130321,150000,194481,219615,279841,311040,390625,428415,531441,576240,707281,759375,923521,983040,1185921,1252815,1500625,1574640,1874161,1954815
pow $0,2
mov $2,$0
lpb $0,1... |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
// Copyright (c) 2012 Intel Corp
// Copyright (c) 2012 The Chromium Authors
//
// 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 Software without restriction, including without limitation the rights... |
IF !DEF(SGB_COMMANDS_INCLUDED)
SGB_COMMANDS_INCLUDED SET 1
INCLUDE "includes/addresses.asm"
INCLUDE "includes/constants.asm"
INCLUDE "includes/ops.asm"
SGB_PACKET_SIZE EQU 16
MASK_NONE EQU 0
MASK_FROZEN EQU 1
MASK_BLACK EQU 2
MASK_COLOUR EQU 3
;;;
; Pads remainder or SGB packet with zeroes
;... |
; A024006: a(n) = 1 - n^8.
; 1,0,-255,-6560,-65535,-390624,-1679615,-5764800,-16777215,-43046720,-99999999,-214358880,-429981695,-815730720,-1475789055,-2562890624,-4294967295,-6975757440,-11019960575,-16983563040,-25599999999,-37822859360,-54875873535,-78310985280,-110075314175,-152587890624,-208827064575,-28242953648... |
; A347266: a(n) is the number whose binary representation is the concatenation of terms in the n-th row of A237048.
; Submitted by Jon Maiga
; 1,1,3,2,3,5,6,4,7,9,12,10,12,9,29,16,24,22,24,17,57,36,48,40,50,36,57,65,96,92,96,64,114,72,101,161,192,144,228,136,192,178,192,129,473,288,384,320,388,304,456,258,384,353,801,5... |
;;
;; Copyright (c) 2020-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... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
lea addresses_A+0x4cb9, %rsi
lea addresses_PSE+0x14eec, %rdi
nop
nop
nop
nop
nop
add $15075, %r8
mov $74, %rcx
rep movsb
nop
nop
nop
nop
mf... |
/*Limits.cpp
$Author: jlconlin $
$Id: Limits.cpp 297 2008-05-09 13:21:30Z jlconlin $
$Revision: 297 $
$Date: 2008-05-09 07:21:30 -0600 (Fri, 09 May 2008) $
This file will help me understand what the numerical limts are for a
particular machine.
*/
#include<limits>
#include<iostream>
#include<ctime>
using std... |
; Read/scan pixel colour v0.00 Sept 1987 J.R.Oakley QJUMP
;
; Registers:
; Entry Exit
; D1 position (x|y) new position | colour
; D2 key | colour (preserved)
; A0 (cdb)
;
; key bit meaning
; 31 set => scan required
; 19 set => scan until same colour: else scan to different
; 18/17 0=scan up, 1=scan dow... |
/* let a n digit number abc....k, then if a^n+b^n+...k^n==abc....k then the output is yes, else no*/
#include<cmath>
#include<iostream>
using namespace std;
int main()
{
int num,len,sum=0;
cout<<"Enter the number to be verified /n";
cin>>num;
int n=num;
while(n!=0)
{
n/=10;
len++;
}
n=num;
for(int i=0;i<l... |
;-----------------------------------------------
state_intro:
call init_game_variables
call clearAllTheSprites
call clearScreenLeftToRight_bitmap
call set_bitmap_mode
ld hl,music_intro_zx0_page1
ld de,music_buffer
call decompress_from_page1
ld a,(song_speeds)
call PlayMusic
ld... |
; A008596: Multiples of 14.
; 0,14,28,42,56,70,84,98,112,126,140,154,168,182,196,210,224,238,252,266,280,294,308,322,336,350,364,378,392,406,420,434,448,462,476,490,504,518,532,546,560,574,588,602,616,630,644,658,672,686,700,714,728,742,756,770,784,798,812,826,840,854,868,882,896,910,924,938,952,966,980,994,1008,1022,1... |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2017 Francois Beaune, The appleseedhq Organization
//
... |
; A101442: a(n) = 9973*n + 10007.
; 10007,19980,29953,39926,49899,59872,69845,79818,89791,99764,109737,119710,129683,139656,149629,159602,169575,179548,189521,199494,209467,219440,229413,239386,249359,259332,269305,279278,289251,299224,309197,319170,329143,339116,349089,359062,369035,379008,388981,398954,408927,418900,... |
/* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hop... |
.file "isrdef.asm"
.macro isr id
.global _isr\id
.extern isrHandle\id
.type _isr\id, @function
_isr\id:
call isrHandle\id
iret
.endm
|
; A083708: G.f.: (x+4*x^3+x^5)/((1-x)^2*(1-x^2)^2*(1-x^3)^2).
; 0,1,2,9,18,39,72,126,204,324,484,710,1008,1401,1902,2547,3342,4335,5544,7012,8768,10872,13344,16260,19656,23601,28146,33381,39346,46151,53856,62562,72348,83340,95604,109290,124488,141337,159950,180495,203070,227871
lpb $0
mov $2,$0
trn $0,3
seq $2,8... |
/* Copyright 2017 - 2021 R. Thomas
* Copyright 2017 - 2021 Quarkslab
*
* 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 req... |
// Copyright (c) 2014-2017 The Dash developers
// Copyright (c) 2017-2018 The BitNodesPro 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 "masternode.h"
#include "activemasterno... |
; A130589: a(n) = F(F(n)-1), where F(n) = A000045(n) (the Fibonacci numbers).
; 1,0,0,1,1,3,13,144,6765,3524578,86267571272,1100087778366101931,343358302784187294870275058337,1366619256256991435939546543402365995473880912459,1697726516284295515651670644354144400761613511040643009353262085480136081475307,839436617877978... |
.file "y0.cpp"
.text
.globl main
.type main, @function
main:
pushl %ebp
movl %esp, %ebp
pushl %esi
pushl %ebx
andl $-16, %esp
subl $32, %esp
call __i686.get_pc_thunk.bx
.L080487E4:
addl $6160, %ebx
movl $4, (%esp)
call __cxa_allocate_exception
.L080487F6:
mo... |
; A130154: Triangle read by rows: T(n, k) = 1 + 2*(n-k)*(k-1) (1 <= k <= n).
; 1,1,1,1,3,1,1,5,5,1,1,7,9,7,1,1,9,13,13,9,1,1,11,17,19,17,11,1,1,13,21,25,25,21,13,1,1,15,25,31,33,31,25,15,1,1,17,29,37,41,41,37,29,17,1,1,19,33,43,49,51,49,43,33,19,1,1,21,37,49,57,61,61,57,49,37,21,1,1,23,41,55,65,71,73,71,65,55,41,23,1,1... |
arch nes.cpu
header
banksize $2000
//; ---------------------------------------------------------------------------
//; Move extra level data (wind speed, miniboss screen lock/door close) to
//; unused space in the regular room data header and read it from there
//; instead.
//;
//; This frees up the space which was or... |
%ifdef CONFIG
{
"RegData": {
"XMM0": ["0x0000000000000000", "0x0000000000000000"],
"XMM1": ["0x0000000000000000", "0x0000000000000000"],
"XMM2": ["0x4200440046004800", "0x5200540056005800"],
"XMM3": ["0xC2C4C6C8CACCCED0", "0xE2E4E6E8EAECEEF0"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
... |
Map_36065A: dc.w Frame_360684-Map_36065A
dc.w Frame_360698-Map_36065A
dc.w Frame_3606AC-Map_36065A
dc.w Frame_3606C0-Map_36065A
dc.w Frame_3606D4-Map_36065A
dc.w Frame_3606E8-Map_36065A
dc.w Frame_3606FC-Map_36065A
dc.w Frame_360710-Map_36065A
dc.w Frame_360724-Map_36065A
dc.w Frame_360738-Map_36065A
... |
; A286298: a(0) = 0, a(1) = 1; thereafter, a(2n) = a(n) + 1 + (n mod 2), a(2n+1) = a(n) + 2 - (n mod 2).
; 0,1,3,2,4,5,4,3,5,6,7,6,5,6,5,4,6,7,8,7,8,9,8,7,6,7,8,7,6,7,6,5,7,8,9,8,9,10,9,8,9,10,11,10,9,10,9,8,7,8,9,8,9,10,9,8,7,8,9,8,7,8,7,6,8,9,10,9,10,11,10,9,10,11,12,11,10,11,10,9,10,11,12,11,12,13,12,11,10,11,12,11,... |
Sound_C4_Header:
smpsHeaderStartSong 3
smpsHeaderVoice Sound_C4_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cFM3, Sound_C4_FM3, $E2, $05
; FM3 Data
Sound_C4_FM3:
smpsSetvoice $00
smpsModSet $01, $01, $35, $00
Sound_C4_Loop00:
dc.b nFs6, $16
smpsContinuousL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.