text stringlengths 1 1.05M |
|---|
/*
* Copyright 2010-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.amazon.com/apache2.0
*
* or in the "license" fil... |
; 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... |
;
; Copyright (C) 2008-2020 Advanced Micro Devices, Inc. All rights reserved.
;
; Redistribution and use in source and binary forms, with or without modification,
; are permitted provided that the following conditions are met:
; 1. Redistributions of source code must retain the above copyright notice,
; this list of... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r15
push %r9
push %rax
push %rbp
push %rbx
// Store
lea addresses_PSE+0xe9e2, %r12
nop
nop
nop
nop
sub %rax, %rax
mov $0x5152535455565758, %r9
movq %r9, (%r12)
nop
nop
nop
nop
nop
inc %r10
// Store
lea... |
#ifndef STAN_MATH_PRIM_SCAL_META_STDVECTORBUILDER_HPP
#define STAN_MATH_PRIM_SCAL_META_STDVECTORBUILDER_HPP
#include <stan/math/prim/scal/meta/VectorBuilderHelper.hpp>
#include <stan/math/prim/scal/meta/contains_std_vector.hpp>
namespace stan {
/**
* StdVectorBuilder allocates type T1 values to be used as... |
/*************************************************************************/
/* shader.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
; A168866: Number of reduced words of length n in Coxeter group on 45 generators S_i with relations (S_i)^2 = (S_i S_j)^20 = I.
; 1,45,1980,87120,3833280,168664320,7421230080,326534123520,14367501434880,632170063134720,27815482777927680,1223881242228817920,53850774658067988480,2369434084954991493120,1042550997380196256... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; gfx functions
;
; void ozgetfont(int font)
;
;
; ------
; $Id: ozgetfont.asm,v 1.3 2016/06/28 14:48:17 dom Exp $
;
SECTION code_clib
PUBLIC ozgetfont
PUBLIC _ozgetfont
EXTERN ScrCha... |
/*
QTRSensors.cpp - Arduino library for using Pololu QTR reflectance
sensors and reflectance sensor arrays: QTR-1A, QTR-8A, QTR-1RC, and
QTR-8RC. The object used will determine the type of the sensor (either
QTR-xA or QTR-xRC). Then simply specify in the constructor which
Arduino I/O pins are c... |
#include "imagefetcher.hpp"
#include "db.hpp"
#include "pkgi.hpp"
#include "file.hpp"
#include "vitahttp.hpp"
#include <fmt/format.h>
#include <mutex>
#include <optional>
std::string get_image_url(DbItem* item)
{
std::string country_abbv = "USA";
std::string language = "en";
switch (pkgi_get_region(item-... |
data SEGMENT
n1 DB 08h
data ENDS
code SEGMENT
assume CS:code, DS:data
start:
MOV AX,data
MOV DS,AX
MOV CX,05h
MOV AL,n1
l1:
DEC AL
LOOP l1
ADD AL,30h ; decimal to ascii
MOV DL,AL
MOV AH,02h ; character output
INT 21h
MOV AH,4ch ;exit
INT 21h
code ENDS
END start
|
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
016A22 move.w ($6e,A6), (A4)+ [base+6E90]
016A26 move.w ($6c,A6), (A4)+ [base+6E92]
016BD2 move.w ($6e,A6), (A4)+ [123p+ 6A, base+6DE0, base+6DF0, base+6E00, base+6E10, base+6E30, base+6E50, base+6E70, bas... |
;:LISTING GENERATED: 1/27/2018 2:43:43 by MLDL Manager version 1.70.0 by MLDL Manager version
;:OPEN FILE: Z:\home\geir\Dropbox\Cur\0_HP-41CL\2_AMASTRO\ALPHA.rom
.con 0x081 ;
.con 0x017 ;
.con 0x005 ; ... |
; ======================== ZagrOS =======================
; Zagros Open Source Operating System
; Saeid Bostandoust (ssbostan@linuxmail.org)
; Bostandoust.IR
; ======================== ZagrOS =======================
; ==================== zero_cpu_regs ====================
zero_cpu_regs:
mov ... |
#include <memory>
#include <locic/CodeGen/Primitive.hpp>
#include <locic/CodeGen/PrimitiveMap.hpp>
#include <locic/CodeGen/Primitives/BoolPrimitive.hpp>
#include <locic/CodeGen/Primitives/CompareResultPrimitive.hpp>
#include <locic/CodeGen/Primitives/FloatPrimitive.hpp>
#include <locic/CodeGen/Primitives/FunctionPtrPr... |
prob TITLE 'Null problem state test case.'
*
* This file was put into the public domain 2016-11-29
* by John P. Hartmann. You can use it for anything you like,
* as long as this notice remains.
*
prob start 0
using prob,15
org prob+x'1a0' Restart
* P
dc x'0001000180000000',ad(go)
org prob+x'1c0' SVC ne... |
; A040157: Continued fraction for sqrt(171).
; Submitted by Christian Krause
; 13,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13,26,13
trn $0,1
mod $0,2
mul $0,13
add $0,13
|
; char *strndup(const char *s, size_t n)
SECTION code_string
PUBLIC _strndup
EXTERN asm_strndup
_strndup:
pop af
pop hl
pop bc
push bc
push hl
push af
jp asm_strndup
|
drawscreen
lda #1
sta CXCLR
sta COLUBK ; REVENG - don't start with the lastline color
fufu
lda INTIM
bmi fufu
VERTICAL_SYNC
lda #41+128;was 37 - do more w/c code
sta TIM64T
; adjust for pfpos?
; set zero to properly enter C code
lda #<C_functi... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: GeoCalc
FILE: rulerMethods.asm
AUTHOR: Gene Anderson, Jul 1, 1991
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Na... |
// Copyright (c) 2005 - 2012 Marc de Kamps
// 2012 David-Matthias Sichau
// 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 source code must retain the above copyr... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: NewUI/Win (specific code for NewUI)
FILE: winClassSpec.asm
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date De... |
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
; ==++==
;
;
; ==--==
; ***********************************************************************
; File: JitHelpers_Inl... |
.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
// Store
lea addresses_PSE+0x5fba, %r9
nop
sub %rdx, %rdx
movl $0x51525354, (%r9)
nop
add $11924, %r15
// Store
mov $0x7ba, %r8
nop
nop
xor $43049, %r10
mov $0x515253545... |
/*
Copyright (c) 2018 Inverse Palindrome
GenerativeArt - Emitter.cpp
InversePalindrome.com
*/
#include "Emitter.hpp"
#include <cinder/app/App.h>
Emitter::Emitter(EmitterType emitterType) :
emitterType(emitterType),
textureIndex(0),
textureIndexVariance(0),
emissionRate(5.f),
totalLifeTime(10.f)... |
; A141354: Expansion of (1-5*x-x^2+x^3)/((1+x)*(1-x)^3).
; 1,-3,-7,-15,-23,-35,-47,-63,-79,-99,-119,-143,-167,-195,-223,-255,-287,-323,-359,-399,-439,-483,-527,-575,-623,-675,-727,-783,-839,-899,-959,-1023,-1087,-1155,-1223,-1295,-1367,-1443,-1519,-1599,-1679,-1763,-1847
add $0,1
pow $0,2
sub $1,$0
div $1,4
mul $1,4
a... |
; Executable name : decoder
; Designed OS : Linux (32-bit)
; Author : wetw0rk
; Version : 1.0
; Created Following : SLAE
; Description : Encoded shellcode from my custom encoder
;
; Build using the folowing commands:
; make
; python objdump2shellcode.py -d deco... |
;; Reverse a user's string.
lda msg1
puts
get_s
getc
jz print_rev ;; Reached end
sti s_ptr
ld s_ptr
inc
st s_ptr
ld c
dec ;; Decrement c
jz print_rev ;; Out of characters.
st c
j get_s
print_rev
lda s
sub s_ptr
inc
;; c contains number of characte... |
#include "kernel.inc"
#include "corelib.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 20
.db KEXC_KERNEL_VER
.db 0, 6
.db KEXC_NAME
.dw name
.db KEXC_HEADER_END
name:
.db "System Settings", 0
start:
pcall(getLcdLock)
pcall(getKeypadLock)
... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
;
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;------------------------------------------------------------------------------
SECTION .text
;---------------... |
org #0000
patterns:
db #00,#00,#00,#00,#00,#00,#00,#00
db #7e,#5f,#51,#50,#50,#50,#50,#51
db #00,#80,#e0,#78,#1e,#1e,#78,#e0
db #01,#03,#07,#0e,#1c,#38,#70,#50
db #80,#c0,#e0,#70,#38,#1c,#0e,#0e
db #5f,#5e,#50,#50,#50,#70,#00,#00
db #80,#00,#00,#00,#00,#00,#00,#00
db #28,#14,#0a,#05,#... |
_Route24Text_51510::
text "Congratulations!"
line "You beat our 5"
cont "contest trainers!@@"
_Route24Text_51515::
text ""
para "You just earned a"
line "fabulous prize!"
prompt
_Route24Text_5151a::
text "<PLAYER> received"
line "a @"
TX_RAM wcf4b
text "!@@"
_Route24Text_51521::
text "You don't have"
li... |
; A017551: a(n) = (12*n + 2)^7.
; 128,105413504,8031810176,114415582592,781250000000,3521614606208,12151280273024,34792782221696,86812553324672,194871710000000,402271083010688,775771085481344,1414067010444416,2458100350228352
mul $0,12
add $0,2
pow $0,7
|
/* Copyright (c) 2018 PaddlePaddle Authors. 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 applicable law or... |
; ---------------------------------------------------------------
; ------- Copyright 2015 Daniel Valencia, All Rights Reserved. --
; ------- --
; ------- Start.asm --
; ------- ... |
db 0 ; species ID placeholder
db 65, 60, 70, 40, 85, 75
; hp atk def spd sat sdf
db NORMAL, NORMAL ; type
db 45 ; catch rate
db 130 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_UNKNOWN ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/porygon/front.dimensions"
db GROWTH_MEDIU... |
// init
@256
D=A
@R0
M=D
// push constant 7
@7
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 8
@8
D=A
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
A=M
D=D+A
@SP
A=M
M=D
@SP
M=M+1
|
MVI B, 77 ; B=77
MVI C, 82 ; C=82
CALL MULT ; HL=B*C
HLT
MULT: LXI H, 0 ; HL=0
MOV E, B ; DE=B
LOOP: DAD D ; HL+=DE
DCR C ; C-=1
JNZ LOOP ; 0 değilse atla
RET
; B ve C deki iki sayıyı çarpar, sonucu HL de tutar
|
; A021876: Decimal expansion of 1/872.
; Submitted by Jon Maiga
; 0,0,1,1,4,6,7,8,8,9,9,0,8,2,5,6,8,8,0,7,3,3,9,4,4,9,5,4,1,2,8,4,4,0,3,6,6,9,7,2,4,7,7,0,6,4,2,2,0,1,8,3,4,8,6,2,3,8,5,3,2,1,1,0,0,9,1,7,4,3,1,1,9,2,6,6,0,5,5,0,4,5,8,7,1,5,5,9,6,3,3,0,2,7,5,2,2,9,3
seq $0,199685 ; a(n) = 5*10^n+1.
div $0,436
mod $0,10
|
; Phantoon hijacks
{
; 1st pattern
org $A7D5B5
; $A7:D5B5 22 11 81 80 JSL $808111[$80:8111]
JSL hook_phantoon_1st_dir_rng
org $A7D5A6
; $A7:D5A6 AD B6 05 LDA $05B6 [$7E:05B6] ; Frame counter
; $A7:D5A9 4A LSR A
JSL hook_phantoon_1st_pat
; 2nd patter... |
;
; fdgetpos: forget it !
;
; Stefano - 5/7/2006
;
;
; $Id: fdgetpos.asm,v 1.3 2016/06/23 20:40:25 dom Exp $
SECTION code_clib
PUBLIC fdgetpos
PUBLIC _fdgetpos
.fdgetpos
._fdgetpos
ld hl,-1
ret
|
INCLUDE "src/include/hardware.inc"
SECTION "TitleScreen", ROM0
;-Entry--------------------------------------------------------
TitleScreen::
;---------------------------------------------------TitleScreen
xor a
ld [rBGP], a
call initWRAM0
ld hl, SpritesData
ld de, ArrowsData
ld bc, 160
call loadMemory
ca... |
/*
* Copyright (c) 2017, Intel Corporation
*
* 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 to use, copy, modify, merge, publi... |
// Copyright 2017 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 "third_party/blink/renderer/core/layout/ng/ng_break_token.h"
#include "third_party/blink/renderer/core/layout/ng/ng_block_break_token.h"
#includ... |
#ifndef CPUSWITCH_HH
#define CPUSWITCH_HH
#include <click/batchelement.hh>
CLICK_DECLS
/*
* =c
* CPUSwitch()
* =s threads
* classifies packets by cpu
* =d
* Can have any number of outputs.
* Chooses the output on which to emit each packet based on the thread's cpu.
* =a
* RoundRobinSwitch, StrideSwitch, HashS... |
; A289764: Decimal representation of the diagonal from the corner to the origin of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 597", based on the 5-celled von Neumann neighborhood.
; Submitted by Jon Maiga
; 1,2,6,13,29,58,122,245,501,1002,2026,4053,8149,16298,32682,65365,130901,... |
// ============================================================================
// Instructions not yet implemented in hardware, but will be in near future
// ============================================================================
// Multiply
MACRO MUL ( _rX_, _rY_, _imm_ )
...
ENDMACRO
// Divide
MACRO DIV (... |
; DRAW LOAD SPRITE 1 BYTE DEFINITION ROTATED, ON LEFT BORDER
; 01.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _SP1_DRAW_LOAD1LB
EXTERN _SP1_DRAW_LOAD1NR
EXTERN SP1RETSPRDRAW
; following data segment copied into struct sp1_... |
SECTION code_fp_math48
PUBLIC am48_dge
EXTERN am48_dcmp, error_oc, error_znc
am48_dge:
; Return bool (AC >= AC')
;
; enter : AC'= double y
; AC = double x
;
; exit : HL = 0 and carry reset if false
; HL = 1 and carry set if true
;
; uses : af, hl
call am48_dcmp
... |
init_comm PROC
;Set Divisor Latch Access Bit
mov dx,3fbh ; Line Control Register
mov al,10000000b ;Set Divisor Latch Access Bit
out dx,al ;Out it
;Set LSB byte of the Baud Rate Divisor Latch register.
mov dx,3f8h
mov al,0ch
out dx,al
;Set MSB byte of the Baud Rate Divisor Latch reg... |
// Copyright (c) 2011-2014 The MTcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "mtcoinamountfield.h"
#include "mtcoinunits.h"
#include "guiconstants.h"
#include "qvaluecombobox.h"
#include <QAppl... |
/*=============================================================================
Copyright (c) 2011-2014 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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.tx... |
[org 0x7c00] ; tells program to use offset 7c00 for mem. addresses
KERNEL_OFFSET equ 0x1000
mov [BOOT_DRIVE], dl
mov bp, 0x9000
mov sp, bp
mov bx, MSG_REAL_MODE
call print_string
call load_kernel
call switch_to_pm ; transitions to protected mode
jmp $
;Linker's janky. Order of include matters at times.
;Als... |
; A022118: Fibonacci sequence beginning 2, 17.
; 2,17,19,36,55,91,146,237,383,620,1003,1623,2626,4249,6875,11124,17999,29123,47122,76245,123367,199612,322979,522591,845570,1368161,2213731,3581892,5795623,9377515,15173138,24550653,39723791,64274444,103998235,168272679,272270914,440543593,712814507,1153358100,1866172607,... |
; A142198: Primes congruent to 39 mod 40.
; Submitted by Christian Krause
; 79,199,239,359,439,479,599,719,839,919,1039,1279,1319,1399,1439,1559,1759,1879,1999,2039,2239,2399,2719,2879,2999,3079,3119,3319,3359,3559,3719,3919,4079,4159,4519,4639,4679,4759,4799,4919,4999,5039,5119,5279,5399,5479,5519,5639,5839,5879,6079,... |
; A016766: a(n) = (3*n)^2.
; 0,9,36,81,144,225,324,441,576,729,900,1089,1296,1521,1764,2025,2304,2601,2916,3249,3600,3969,4356,4761,5184,5625,6084,6561,7056,7569,8100,8649,9216,9801,10404,11025,11664,12321,12996,13689,14400,15129,15876
mov $1,$0
pow $1,2
mul $1,9
|
#ifndef SANYOFDC_HH
#define SANYOFDC_HH
#include "WD2793BasedFDC.hh"
namespace openmsx {
class SanyoFDC : public WD2793BasedFDC
{
public:
explicit SanyoFDC(const DeviceConfig& config);
virtual byte readMem(word address, EmuTime::param time);
virtual byte peekMem(word address, EmuTime::param time) const;
virtual... |
; A109377: Expansion of ( 2+x+2*x^2 ) / ( 1-2*x+x^2-x^3 ).
; 2,5,10,17,29,51,90,158,277,486,853,1497,2627,4610,8090,14197,24914,43721,76725,134643,236282,414646,727653,1276942,2240877,3932465,6900995,12110402,21252274,37295141,65448410,114853953,201554637,353703731,620706778
mov $1,2
mov $3,5
lpb $0,1
sub $0,1
add... |
; A081115: (p^2 - 1)/12 where p > 3 runs through the primes.
; Submitted by Christian Krause
; 2,4,10,14,24,30,44,70,80,114,140,154,184,234,290,310,374,420,444,520,574,660,784,850,884,954,990,1064,1344,1430,1564,1610,1850,1900,2054,2214,2324,2494,2670,2730,3040,3104,3234,3300,3710,4144,4294,4370,4524,4760,4840,5250,550... |
// Demonstrates problem with conditions using negated struct references
// Commodore 64 PRG executable file
.file [name="struct-ptr-20.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Co... |
.constant_pool
.const 0 string [start]
.const 1 string [constructor]
.const 2 string [(2 * (8 - 18 / 9 * 6) * (49 / 7 - 3))=]
.const 3 int [2]
.const 4 int [8]
.const 5 int [18]
.const 6 int [9]
.const 7 int [6]
.const 8 int [49]
.const 9 int [7]
.... |
; A184036: 1/16 the number of (n+1) X 7 0..3 arrays with all 2 X 2 subblocks having the same four values.
; 325,337,358,400,478,634,934,1534,2710,5062,9718,19030,37558,74614,148534,296374,591670,1182262,2362678,4723510,9443638,18883894,37761334,75516214,151019830,302027062,604029238,1208033590,2416017718,4831985974,966... |
; A334958: GCD of consecutive terms of the factorial times the alternating harmonic series.
; Submitted by Christian Krause
; 1,1,1,2,2,12,12,48,144,1440,1440,17280,17280,241920,18144000,145152000,145152000,2612736000,2612736000,10450944000,219469824000,4828336128000,4828336128000,115880067072000,579400335360000,150644... |
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
SECTION code_l_sccz80
PUBLIC l_xor
l_xor:
; "xor" HL and DE into HL
ld a,l
xor e
ld l,a
ld a,h
xor d
ld h,a
ret
|
; A241756: A finite sum of products of binomial coefficients: Sum_(m=0..n) binomial(-1/4, m)^2*binomial(-1/4, n-m)^2 (C. C. Grosjean's problem, denominators).
; 1,8,512,4096,2097152,16777216,1073741824,8589934592,35184372088832,281474976710656,18014398509481984,144115188075855872,73786976294838206464,590295810358705651... |
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
#include "FileUtils.h"
#include "Luau/Common.h"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
#include <dirent.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#en... |
; A229151: a(n) = n^8*(5*n+4).
; 0,9,3584,124659,1572864,11328125,57106944,224827239,738197504,2109289329,5400000000,12647173979,27518828544,56285419749,109208390144,202468359375,360777252864,620842412249,1035876294144,1681372741059,2662400000000,4122691670349,6255849583104,9319007248439,13649338957824,19683837890625,2... |
;;
;; Copyright (c) 2020-2022, 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... |
; A063957: Numbers not of the form round(m*sqrt(2)) for any integer m, i.e., complement of A022846.
; 2,5,9,12,15,19,22,26,29,32,36,39,43,46,50,53,56,60,63,67,70,73,77,80,84,87,90,94,97,101,104,108,111,114,118,121,125,128,131,135,138,142,145,149,152,155,159,162,166,169,172,176,179,183,186,189,193,196,200,203,207,210,21... |
; A185670: Number of pairs (x,y) with 1 <= x < y <= n with at least one common factor.
; 0,0,0,1,1,4,4,7,9,14,14,21,21,28,34,41,41,52,52,63,71,82,82,97,101,114,122,137,137,158,158,173,185,202,212,235,235,254,268,291,291,320,320,343,363,386,386,417,423,452,470,497,497,532,546,577,597,626,626,669,669,700,726,757,773,818,... |
SECTION code_l
PUBLIC l_inc_dehl
l_inc_dehl:
; increment 32-bit value
;
; enter : dehl = 32 bit number
;
; exit : dehl = dehl + 1
;
; uses : f, de, hl
inc l
ret nz
inc h
ret nz
inc de
ret
|
#include <map>
#include <string>
#include <boost/test/unit_test.hpp>
#include "json/json_spirit_writer_template.h"
#include "main.h"
#include "wallet.h"
using namespace std;
using namespace json_spirit;
// In script_tests.cpp
extern Array read_json(const std::string& filename);
extern CScript ParseScript(string s);
... |
;-----------------------------------------------------------------------
; Prelude1 - PC-DOS 256-byte intro by ern0
; Prototype-2: raw-diff-5 nctab nutab
;
; Target: 80386 real mode, assembler: FASM
;
;-----------------------------------------------------------------------
; Register allocation:
;
; AL - param, result:... |
;
; Amstrad CPC specific routines
; by Stefano Bodrato, Fall 2013
;
; int set_psg(int reg, int val);
;
; Play a sound by PSG
;
;
; $Id: psg_init.asm,v 1.4 2016-06-10 21:13:58 dom Exp $
;
SECTION code_clib
PUBLIC psg_init
PUBLIC _psg_init
EXTERN asm_set_psg
psg_init:
_psg_init:
ld e,@01010101
xor a... |
INF
PINF
HURP
ZURP 0x12
BADR 0x8
EPINF
EINF
LOD blah
blah: .data 4 2
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r9
push %rax
lea addresses_A_ht+0x3001, %r10
and $46751, %rax
movl $0x61626364, (%r10)
nop
nop
and $5501, %r15
pop %rax
pop %r9
pop %r15
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r15
push %r9
push %rax
push %rbp
push %rc... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xf58e, %rsi
lea addresses_WT_ht+0x1970e, %rdi
nop
nop
nop
nop
sub $5714, %r8
mov $70, %rcx
rep movsl
nop
nop
xor $51268, %r13
lea addresses_UC_ht+0xe4ee, %rbx
nop
nop
sub %rdi,... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0
include listing.inc
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
_DATA SEGMENT
$SG5153 DB '%f %f %f %s', 0aH, 00H
_DATA ENDS
PUBLIC __local_stdio_printf_options
PUBLIC _vfprintf_l
PUBLIC printf
PUBLIC func
PUBLIC main
PUBLIC __re... |
; A184516: Lower s-Wythoff sequence, where s=4n-2. Complement of A184517.
; 1,2,4,5,6,7,9,10,11,12,13,15,16,17,18,20,21,22,23,25,26,27,28,30,31,32,33,34,36,37,38,39,41,42,43,44,46,47,48,49,51,52,53,54,56,57,58,59,60,62,63,64,65,67,68,69,70,72,73,74,75,77,78,79,80,81,83,84,85,86,88,89,90,91,93,94,95,96,98,99,100,101,10... |
; 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... |
; sp1_UpdateNow
; 01.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
PUBLIC sp1_UpdateNow
EXTERN SP1DrawUpdateStruct
EXTERN SP1V_UPDATELISTH, SP1V_UPDATELISTT
; Iterates through the invalidated tiles list, drawing all invalidated tiles on screen.
; Validates them and removes them from the list along the ... |
//=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... |
; A089801: a(n) = 0 unless n = 3j^2+2j or 3j^2+4j+1 for some j>=0, in which case a(n) = 1.
; 1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0
mul $0,3
add $0,1
mov $2,3... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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... |
;### CONFIG ###################################################################
db 0 ;paper
db 1 ;pen
db 6 ;font (0=system, x=alternative)
db 0 ;0=autowordwrap, 1=wordwrap at position x, 2=no wordwrap
dw 200 ;wordwrap-position (pixels)
db 8 ;tabstop-position (chars)
db 1 ... |
;
; Z88 Graphics Functions
; Written around the Interlogic Standard Library
;
; Wide resolution (int type parameters) and CALLEE conversion by Stefano Bodrato, 2018
;
; ----- void __CALLEE__ undraw(int x, int y, int x2, int y2)
;
;
; $Id: w_undraw_callee.asm $
;
IF !__CPU_INTEL__
SECTION code_graphic... |
; A010843: Incomplete Gamma Function at -3.
; 1,-2,5,-12,33,-78,261,-360,3681,13446,193509,1951452,23948865,309740922,4341155877,65102989248,1041690874689,17708615729550,318755470552389,6056352778233924,121127059051462881,2543668229620367298
add $0,1
mov $3,3
lpb $0
sub $0,1
add $2,$3
mov $1,$2
mul $2,-3
mul... |
; 11-demo-2
; array demo (direct & indir method)
.MODEL SMALL
.STACK 100
.DATA
LIST DB 7,2,4,6
NL DB 10, 13, "$"
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
; DIRECT OFFSET
MOV SI, 0 ; SI/DI/BX TO CHOOSE
MOV CX, 4
L1:
MOV AH, 02H
MOV DL, LIST[SI]
... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The rogaverse developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sendcoinsdialog.h... |
; size_t b_array_append_n(b_array_t *a, size_t n, int c)
SECTION code_adt_b_array
PUBLIC _b_array_append_n
EXTERN asm_b_array_append_n
_b_array_append_n:
pop af
pop hl
pop de
pop bc
push bc
push de
push hl
push af
jp asm_b_array_append_n
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
// Store
lea addresses_D+0x1e1d7, %r15
cmp $32842, %rcx
movl $0x51525354, (%r15)
nop
nop
and $8528, %r10
// Store
lea addresses_UC+0x18217, %r8
nop
nop
nop
inc... |
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2009 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this... |
/*
* Copyright (c) 2017, Intel Corporation
*
* 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 to use, copy, modify, merge, publi... |
dnl ARM mpn_rsh1add_n and mpn_rsh1sub_n.
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 2012 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:
d... |
; A195016: (n*(5*n+7)-(-1)^n+1)/2.
; 0,7,17,34,54,81,111,148,188,235,285,342,402,469,539,616,696,783,873,970,1070,1177,1287,1404,1524,1651,1781,1918,2058,2205,2355,2512,2672,2839,3009,3186,3366,3553,3743,3940,4140,4347,4557,4774,4994,5221,5451,5688,5928,6175,6425,6682,6942,7209,7479,7756,8036,8323,8613,8910,9210,9517,9... |
; A290858: Decimal representation of the diagonal from the corner to the origin of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 1006", based on the 5-celled von Neumann neighborhood.
; 1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,... |
; A119697: Fib(n)*n*binomial(2*n, n)/(n+1).
; Submitted by Jamie Morken(s1)
; 0,1,4,30,168,1050,6336,39039,240240,1487772,9237800,57551494,359444736,2250244100,14115694320,88707831750,558368324640,3519726403710,22215931214400,140389620550410,888125492826000,5623962934819320
mov $1,$0
mul $0,2
sub $1,1
bin $0,$1
add $1... |
#ifndef FSLUTIL_OPENGLES3_1_GLSHADERPROGRAM_HPP
#define FSLUTIL_OPENGLES3_1_GLSHADERPROGRAM_HPP
/****************************************************************************************************************************************************
* Copyright (c) 2014 Freescale Semiconductor, Inc.
* All rights reserved... |
// Copyright 2020 The Fuchsia 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 <gtest/gtest.h>
#include <measure_tape/hlcpp/measure_tape_for_toplevelunion.h>
#include <measuretape/cpp/fidl.h>
namespace measure_tape {
namespa... |
; A195145: Concentric 14-gonal numbers.
; 0,1,14,29,56,85,126,169,224,281,350,421,504,589,686,785,896,1009,1134,1261,1400,1541,1694,1849,2016,2185,2366,2549,2744,2941,3150,3361,3584,3809,4046,4285,4536,4789,5054,5321,5600,5881,6174,6469,6776,7085,7406,7729,8064,8401,8750,9101,9464,9829,10206,10585,10976,11369,11774,121... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.