text stringlengths 1 1.05M |
|---|
;
;
; ZX Maths Routines
;
; 10/12/02 - Stefano Bodrato
;
; $Id: tan.asm,v 1.5 2016/06/22 19:59:18 dom Exp $
;
;double tan(double)
;Number in FA..
IF FORzx
INCLUDE "zxfp.def"
ENDIF
IF FORzx81
INCLUDE "81fp.def"
ENDIF
IF FORlambda
INCLUDE "lambdafp.def"
ENDIF
SECTION code_... |
; ---------------------------------------------------------------------------
; Sprite mappings - Buzz Bomber enemy
; ---------------------------------------------------------------------------
dc.w byte_9A42-Map_obj22, byte_9A61-Map_obj22
dc.w byte_9A80-Map_obj22, byte_9AA4-Map_obj22
dc.w byte_9AC8-Map_obj2... |
// 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 "components/password_manager/core/browser/android_affiliation/affiliation_fetch_throttler.h"
#include <stdint.h>
#include "base/bind.h"
#includ... |
#pragma once
namespace MyMQUtils
{
inline void UpdateMinOrMax(float value, float& inoutMin, float& inoutMax)
{
if (inoutMin > value)
{
inoutMin = value;
}
else if (inoutMax < value)
{
inoutMax = value;
}
}
template<typename TFunctor> void ScanAllFaces(MQCDocument* doc, const TFu... |
org 100h
start:
mov al, 0x13
int 0x10
mov dx, 0x3C8 ; set palette
out dx, al
inc dx
.paletteloop:
out dx, al ; simple grayscale palette
out dx, al
out dx, al
inc ax
jnz .paletteloop
push 0xA000 - 10 ; shift the s... |
; A040020: Continued fraction for sqrt(26).
; 5,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10... |
;###########################################;
; Console utilities. ;
;###########################################;
; --------------------------------------;
; Clears the screen
; --------------------------------------;
CLEAR_SCREEN PROC NEAR
PUSH 0007h ; White characters in black background
PUSH 184Fh ; Lower r... |
#include "graph_database.h"
#include "shared_thread_state.h"
namespace dllama_ns {
int world_size;
int world_rank;
shared_thread_state* sstate;
void start_mpi_listener() {
sstate->snapshot_merger_instance->start_snapshot_listener();
}
}
using namespace dllama_ns;
graph_database::~graph_database() {
delete da... |
; A028191: Expansion of 1/((1-5x)(1-8x)(1-9x)(1-11x)).
; Submitted by Christian Krause
; 1,33,690,11690,175371,2432283,31956940,403804980,4956450741,59506980533,702298022790,8177594495070,94207230682111,1076026739628783,12205736906550240,137681865037361960,1546019692623509481,17295892741708761033,192909937302644291290,... |
#include "clay.hpp"
namespace clay {
static llvm::SpecificBumpPtrAllocator<InvokeEntry> *invokeEntryAllocator
= new llvm::SpecificBumpPtrAllocator<InvokeEntry>();
static llvm::SpecificBumpPtrAllocator<InvokeSet> *invokeSetAllocator
= new llvm::SpecificBumpPtrAllocator<InvokeSet>();
//
// callableOverloads
... |
bits 16
; glb intptr_t : int
; glb uintptr_t : unsigned
; glb intmax_t : int
; glb uintmax_t : unsigned
; glb int8_t : signed char
; glb int_least8_t : signed char
; glb int_fast8_t : signed char
; glb uint8_t : unsigned char
; glb uint_least8_t : unsigned char
; glb uint_fast8_t : unsigned char
; glb int16_t : short
... |
; A231103: Number of n X 3 0..3 arrays x(i,j) with each element horizontally or antidiagonally next to at least one element with value (x(i,j)+1) mod 4, no adjacent elements equal, and upper left element zero.
; 0,2,8,42,208,1042,5208,26042,130208,651042,3255208,16276042,81380208,406901042,2034505208,10172526042,508626... |
/***********************************************************************
created: 8/8/2004
author: Steve Streeting
purpose: Implementation of TabButton widget base class
*************************************************************************/
/*********************************************************************... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x19796, %rbx
nop
xor %r13, %r13
movb (%rbx), %r10b
xor %r15, %r15
lea addresses_UC_ht+0x17936, %rsi
lea addresses_WT_ht+0x3d26, %rdi
clflush (%rsi)
add %r15, %r15
mov $122, %... |
; A276333: The most significant digit in greedy A001563-base (A276326): a(n) = floor(n/A258199(n)), a(0) = 0.
; 0,1,2,3,1,1,1,1,2,2,2,2,3,3,3,3,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,1,1,1,1
mov $1,... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_char_alloca_ncat_82a.cpp
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.string.label.xml
Template File: sources-sink-82a.tmpl.cpp
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource... |
; A112062: Positive integers i for which A112049(i) == 2.
; 3,4,7,8,15,16,19,20,27,28,31,32,39,40,43,44,51,52,55,56,63,64,67,68,75,76,79,80,87,88,91,92,99,100,103,104,111,112,115,116,123,124,127,128,135,136,139,140,147,148,151,152,159,160,163,164,171,172,175,176
mov $1,$0
add $0,1
mov $4,1
lpb $0,1
trn $0,2
add $1... |
;---------------------------------------
; string to int converter
;---------------------------------------
; in: hl,string addr
; out:hl = value
str2int ld bc,#0000
ld de,#0000
ex de,hl
ld (intBuffer),hl
ex de,hl
calcLen ld a,(hl)
cp #20 ; end as space
jr z,calcVal
cp #00 ; end as zero
jr z... |
// Copyright 2020 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 "chrome/browser/chromeos/policy/dlp/dlp_content_manager.h"
#include "ash/public/cpp/ash_features.h"
#include "base/callback_helpers.h"
#include ... |
; A021265: Decimal expansion of 1/261.
; 0,0,3,8,3,1,4,1,7,6,2,4,5,2,1,0,7,2,7,9,6,9,3,4,8,6,5,9,0,0,3,8,3,1,4,1,7,6,2,4,5,2,1,0,7,2,7,9,6,9,3,4,8,6,5,9,0,0,3,8,3,1,4,1,7,6,2,4,5,2,1,0,7,2,7,9,6,9,3,4,8,6,5,9,0,0,3,8,3,1,4,1,7,6,2,4,5,2,1
add $0,2
mov $1,10
pow $1,$0
mul $1,2
div $1,5220
mod $1,10
mov $0,$1
|
;
; Amstrad CPC library
; creates a copy of a string in CPC format
;
; char __LIB__ __FASTCALL__ *cpc_rsx_str(char *str)
;
; $Id: cpc_rsx_str.asm,v 1.2 2015/01/19 01:32:42 pauloscustodio Exp $
;
PUBLIC cpc_rsx_str
EXTERN strlen
EXTERN malloc
.cpc_rsx_str
pus... |
BITS 64
GLOBAL memmove:function
memmove:
PUSH RBP
MOV RBP, RSP
XOR RAX, RAX
XOR RCX, RCX
XOR R10, R10
CMP RDX, 0
JZ return_0
MOV R10, RDI
SUB R10, RSI
JGE sub_RDX
loop:
CMP RCX, RDX
JE end
MOV R8B, [RSI + RCX]
MOV BYTE[RDI + RCX], R8B
inc RCX
JMP loop
sub_RDX:
SUB RDX, 1
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x11605, %rsi
lea addresses_UC_ht+0xdb61, %rdi
clflush (%rsi)
nop
nop
nop
nop
cmp $46430, %r8
mov $83, %rcx
rep movsq
inc %r12
lea addresses_normal_ht+0x1c167, %r12
and $31421,... |
; A118358: Records in A086793.
; 5,9,11,12,13,15,16,17,18,19,20,21,22
mov $1,7
add $1,$0
mul $1,$0
add $0,1
div $1,$0
add $1,5
mov $0,$1
|
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: deq.asm,v 1.4 2016-06-22 19:50:48 dom Exp $
;
SECTION code_fp
INCLUDE "cpcfirm.def"
INCLUDE "cpcfp.def"
PUBLIC deq
PUBLIC deqc
EXTERN fsetup
EXTERN stkequcmp
EXTERN cmpfin
.deq call fset... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x15ac6, %rsi
lea addresses_D_ht+0xb696, %rdi
nop
nop
nop
and %r11, %r11
mov $6, %rcx
rep movsw
and %rdi, %rdi
lea addresses_UC_ht+0xf6ee, %rsi
lea addresses_UC_ht+0xcfee, %rd... |
//===--- JumpDiagnostics.cpp - Protected scope jump analysis ------*- C++ -*-=//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include <core/light.h>
#include <core/color.h>
#include <core/geometry.h>
#include <core/sampling.h>
#include <util/parameters.h>
namespace pine {
LightSample PointLight::Sample(vec3 p, vec2) const {
LightSample ls;
ls.wo = Normalize(position - p, ls.distance);
ls.pdf = pstd::sqr(ls.distance);
ls.Le ... |
; A140262: A140260 reduced modulo 9.
; 0,4,1,1,6,0,4,6,4,1,6,0,4,6,4,6,4,1,6,0,4,6,4,1,6,4,6,4,1,1,1,1,6,0,4,6,4,1,1,1,1,1,1,6,4,6,0,0,0,0,4,1,6,0
seq $0,140260 ; Those n for which A140259(n) = A002264(n+11).
mod $0,9
|
;------------------------------------------------------------------------------
;
; EnableInterrupts() for ARM
;
; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
; This program and the accompanying materials
; are ... |
/*
* Copyright (C) 2019 Open Source Robotics Foundation
*
* 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 appl... |
; --COPYRIGHT--,BSD_EX
; Copyright (c) 2012, Texas Instruments Incorporated
; 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 ... |
; A038846: 4-fold convolution of A000302 (powers of 4); expansion of 1/(1-4*x)^4.
; 1,16,160,1280,8960,57344,344064,1966080,10813440,57671680,299892736,1526726656,7633633280,37580963840,182536110080,876173328384,4161823309824,19585050869760,91396904058880,423311976693760,1947235092791296,8901646138474496
mov $1,2
add ... |
; AVX mpn_xor_n
;
; Copyright 2017 Jens Nurmann
;
; This file is part of the MPIR Library.
; The MPIR Library is free software; you can redistribute it and/or modify
; it under the terms of the GNU Lesser General Public License as published
; by the Free Software Foundation; either version 2.1 of the License, or ... |
; A010536: Decimal expansion of square root of 85.
; 9,2,1,9,5,4,4,4,5,7,2,9,2,8,8,7,3,1,0,0,0,2,2,7,4,2,8,1,7,6,2,7,9,3,1,5,7,2,4,6,8,0,5,0,4,8,7,2,2,4,6,4,0,0,8,0,0,7,7,5,2,2,0,5,4,4,2,6,7,1,0,2,6,8,0,1,8,7,5,4,6,0,7,6,7,8,9,4,0,9,0,7,9,3,2,8,0,5,6,4
mov $1,1
mov $2,1
mov $3,$0
add $3,8
mov $4,$0
add $4,3
mul $4,2
m... |
#include "spike/simif.h"
#include "spike/processor.h"
#include "spike/disasm.h"
class CustomSpike : public simif_t {
public:
CustomSpike(const char* isa_string, const char* elf_file, size_t memory_sz);
~CustomSpike();
char* addr_to_mem(reg_t addr);
bool mmio_load(reg_t addr, size_t... |
//
// Created by Raffaele Montella on 30/10/2018.
//
#ifndef SIGNALK_SERVER_CPP_STRING_HPP
#define SIGNALK_SERVER_CPP_STRING_HPP
#include <string>
#include <random>
#include <sstream>
namespace Utils {
class String {
public:
static bool endsWith(std::string const &fullString, std::string const &end... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x14546, %rsi
lea addresses_D_ht+0x3d50, %rdi
nop
nop
nop
nop
and $37320, %r12
mov $9, %rcx
rep movsq
nop
nop
nop
nop
and %rdx, %rdx
lea addresses_UC_ht+0x119d0, %rsi
lea addr... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.1.6 #12555 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
/*
* NAppGUI Cross-platform C SDK
* 2015-2022 Francisco Garcia Collado
* MIT Licence
* https://nappgui.com/en/legal/license.html
*
* File: setst.hxx
* https://nappgui.com/en/core/setst.html
*
*/
/* Set macros for type checking at compile time */
#define SetStDebug(type)\
struct NodeSt##type\
{\
uint32_t ... |
//
// Created by fanghr on 2020/5/10.
//
#include "fsm_test.h"
namespace {
class StateMachine : public fsm::FSM<StateMachine> {
friend class FSM;
public:
enum States { kInit, kExit, kError };
struct Event {};
struct Reset {};
private:
#pragma clang diagnostic push
#pragma ide diagnostic ignored "HidingNo... |
XLIB w_pixeladdress
INCLUDE "graphics/grafix.inc"
;XREF base_graphics
XREF _vdcDispMem
;
; $Id: w_pixladdr.asm,v 1.2 2012/09/20 21:13:15 stefano Exp $
;
; ******************************************************************
;
; Get absolute pixel address in map of virtu... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "BotAIController.h"
#include "Bot.h"
#include "StarterProjectCharacter.h"
#include "BehaviorTree/BehaviorTree.h"
#include "BehaviorTree/BehaviorTreeComponent.h"
#include "BehaviorTree/BlackboardComponent.h"
#include "BehaviorTree/B... |
;
; ZX Spectrum specific routines
; by Stefano Bodrato, 14/09/2006
;
; int zx_kempstonmouse();
;
; The result is:
; - 1 (true) if a Kempston mouse is present
; - 0 (false) otherwise
;
; $Id: zx_kempstonmouse.asm,v 1.3 2016-06-10 20:02:05 dom Exp $
;
SECTION code_clib
PUBLIC zx_kempstonmouse
PUBLIC _zx_kempstonmouse... |
; A176972: a(n) = 7^n + 7*n + 1.
; 2,15,64,365,2430,16843,117692,823593,5764858,40353671,282475320,1977326821,13841287286,96889010499,678223072948,4747561510049,33232930569714,232630513987327,1628413597910576,11398895185373277
mov $1,$0
mul $1,6
mov $2,7
pow $2,$0
add $0,$2
add $0,4
sub $1,3
add $1,$0
|
#include "Option.h"
char *Option::trainPath = NULL;
char *Option::testPath = NULL;
char *Option::resultPath = NULL;
int Option::buildTensorFile;
int Option::solverType;
int Option::tensorOrder;
int Option::cacheSize;
int Option::rankSize;
int Option::threadSize;
int Option::iterationSize;
int Option::gridSize;
doubl... |
; load DH sectors to ES:BX from drive DL
disk_load:
push dx ; Store DX on stack so latter we can recall
; how many sectors were request to be read,
; even if it is altered in the meantime
mov ah, 0x02 ; BIOS read sector function
mov al, dh ... |
; int wa_stack_empty(wa_stack_t *s)
SECTION code_clib
SECTION code_adt_wa_stack
PUBLIC wa_stack_empty
EXTERN asm_wa_stack_empty
defc wa_stack_empty = asm_wa_stack_empty
|
;------------------------------------------------------------------------------ ;
; Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distri... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D3C move.l D0, (A4)+
004D3E move.l D0, (A4)+
03FE98 move.l D0, ($c8,A6) [enemy+ 8, enemy+ A]
03FE9C move.l D0, D2 [enemy+C8, enemy+CA]
041464 jmp $120e.l
041470 move.b #$1, ($a0,A6) [enemy+C... |
; A100162: Structured disdyakis dodecahedral numbers (vertex structure 7).
; 1,26,117,316,665,1206,1981,3032,4401,6130,8261,10836,13897,17486,21645,26416,31841,37962,44821,52460,60921,70246,80477,91656,103825,117026,131301,146692,163241,180990,199981,220256,241857,264826,289205,315036,342361,371222,401661,433720,467441... |
_cat: file format elf32-i386
Disassembly of section .text:
00000000 <cat>:
char buf[512];
void
cat(int fd)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 28 sub $0x28,%esp
int n;
while((n = read(fd, buf, sizeof(buf))) > 0)
6: eb 1b ... |
;
; Fast background restore
;
; Generic version (just a bit slow)
;
; $Id: bkrestore.asm,v 1.9 2017-01-02 21:51:24 aralbrec Exp $
;
SECTION code_clib
PUBLIC bkrestore
PUBLIC _bkrestore
EXTERN pixeladdress
.bkrestore
._bkrestore
push ix
; __FASTCALL__ : sprite ptr in HL
push hl
pop ix
ld h,(ix+2)
l... |
; A305716: Order of rowmotion on the divisor lattice for n.
; Submitted by Jamie Morken(s1)
; 2,3,3,4,3,4,3,5,4,4,3,5,3,4,4,6,3,5,3,5,4,4,3,6,4,4,5,5,3,5,3,7,4,4,4,6,3,4,4,6,3,5,3,5,5,4,3,7,4,5,4,5,3,6,4,6,4,4,3,6,3,4,5,8,4,5,3,5,4,5,3,7,3,4,5,5,4,5,3,7,6,4,3,6,4,4,4,6,3,6,4,5,4,4,4,8,3,5,5,6
lpb $0
seq $0,86436 ; M... |
; A142762: Primes congruent to 35 mod 59.
; Submitted by Jon Maiga
; 271,389,743,1097,1451,2749,3221,3457,3929,4283,4519,4637,5227,5581,6053,6761,6997,7351,7823,8059,9239,9829,10301,10891,11717,11953,12071,13487,13723,13841,14431,14549,15139,15493,16319,16673,17027,17971,18089,18443,18679,18797,19387,20921,21157,22573,... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS - Spline edit object
MODULE: Splines
FILE: splineEC.asm
AUTHOR: Chris Boyke
REVISION HISTORY:
Name Date Description
---- ---- -----------
CDB 4/91 In... |
$***********************************************************************
$ THE FOLLOWING BULK DATA ENTRIES RELATED TO EXT. SUPERELEMENT 102
$ ARE FOR USE IN THE MAIN BULK DATA PORTION OF THE ASSEMBLY RUN
$***********************************************************************
$
SEBULK 102 EXTOP4 MA... |
//===--------------------------------------------------------------------------------*- C++ -*-===//
// _
// | |
// __| | __ ___ ___ ___
// / _` |/ _` \ \ /\ / / '_ |
// | (_| | (_| |\ V V /| | | |
// ... |
===INSTRUCTIONS===
0x0: ADQ/ADD,≠ SP++,= 255 + XORQ = y/SP++ + imm8/reg
0x1: ADR/reg-relative, ¥ = reg++, y / SP++ + imm8/reg
0x2: ADC/add-carry=, ≠ SP++, £ = SP++ = y/n=y + c / imm8/reg
0x3: POP/ES = SP, PC ≠ imm8/reg = true¿
0x4: PUSH/ES = PC ≠ SP, imm8/reg = No8
0x5: CMP =, ≠ SP
0x6: NEG/Negate = y
0x7: SUBQ... |
; A047423: Numbers that are congruent to {2, 3, 4, 5, 6} mod 8.
; 2,3,4,5,6,10,11,12,13,14,18,19,20,21,22,26,27,28,29,30,34,35,36,37,38,42,43,44,45,46,50,51,52,53,54,58,59,60,61,62,66,67,68,69,70,74,75,76,77,78,82,83,84,85,86,90,91,92,93,94,98,99,100,101,102
mov $1,$0
div $0,5
mul $0,3
add $1,$0
add $1,2
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xc6ef, %r14
clflush (%r14)
nop
nop
xor $63614, %rdx
mov $0x6162636465666768, %rbp
movq %rbp, %xmm4
and $0xffffffffffffffc0, %r14
vmovaps %ymm4, (%r14)
cmp... |
; A044322: Numbers n such that the string 7,8 occurs in the base 9 representation of n but not of n-1.
; 71,152,233,314,395,476,557,638,719,800,881,962,1043,1124,1205,1286,1367,1448,1529,1610,1691,1772,1853,1934,2015,2096,2177,2258,2339,2420,2501,2582,2663,2744,2825,2906,2987,3068,3149
mov $1,$0
mul $1,81
add $1,71
|
/*
The MIT License (MIT)
Copyright (c) 2011 - 2013, Philipp Heise and Sebastian Klose
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 limitat... |
; ================================================================
; DevSound song data
; ================================================================
; =================================================================
; Song speed table
; =================================================================
... |
; A242603: Largest divisor of n not divisible by 7. Remove factors 7 from n.
; 1,2,3,4,5,6,1,8,9,10,11,12,13,2,15,16,17,18,19,20,3,22,23,24,25,26,27,4,29,30,31,32,33,34,5,36,37,38,39,40,41,6,43,44,45,46,47,48,1,50,51,52,53,54,55,8,57,58,59,60,61,62,9,64,65,66,67,68,69,10,71,72,73,74,75,76,11,78,79,80,81,82,83,12,85,86,... |
; A004688: Fibonacci numbers written in base 5.
; 0,1,1,2,3,10,13,23,41,114,210,324,1034,1413,3002,4420,12422,22342,40314,113211,204030,322241,1031321,1404112,2440433,4400100,12341033,22241133,40132221,112423404,203111130,321040034,1024201214,1400241303,2424443022,4330234330,12310232402,22141022232,40001310134,11214233... |
; A234133: Number of (n+1) X (1+1) 0..3 arrays with every 2 X 2 subblock having the sum of the absolute values of all six edge and diagonal differences equal to 9.
; Submitted by Jon Maiga
; 32,80,192,512,1280,3584,9216,26624,69632,204800,540672,1605632,4259840,12713984,33816576,101187584,269484032,807403520,2151677952... |
.data
array: .space 1000
n: .word 0
TBNhap1: .asciiz "Size of array: "
TBNhap2: .asciiz "a["
TBNhap3: .asciiz "]: "
TBXuat1: .asciiz "Array a: "
TBXuat2: .asciiz "Empty array\n"
Menu: .asciiz "\n==========Menu==========\n1. Input array again\n2. Output array\n3. List of prime number in array\n4. Find max\n5. S... |
/*
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
; A327493: a(n) = 2^A327492(n).
; 1,4,8,32,128,512,1024,4096,32768,131072,262144,1048576,4194304,16777216,33554432,134217728,2147483648,8589934592,17179869184,68719476736,274877906944,1099511627776,2199023255552,8796093022208,70368744177664,281474976710656,562949953421312
seq $0,327492 ; Partial sums of A327491.
seq $... |
# x86 mpn_divexact_by3 -- mpn division by 3, expecting no remainder.
#
# cycles/limb
# P5 17.0
# P6 13.5
# K7 10.0
# Copyright (C) 2000 Free Software Foundation, Inc.
#
# This file is part of the GNU MP Library.
#
# The GNU MP Library is free software; you can redistribute it and/or modify
# it un... |
ds 192
ds 64,3 |
; Original address was $BAF5
; Airship boss room
.word $0000 ; Alternate level layout
.word $0000 ; Alternate object layout
.byte LEVEL1_SIZE_01 | LEVEL1_YSTART_070
.byte LEVEL2_BGPAL_05 | LEVEL2_OBJPAL_09 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_10 | LEVEL3_VSCROLL_LOCKED | LEVEL3_PIPENOTEXIT
.byte LEVEL4_BGBANK_... |
/*
Source File : InputRC4XcodeStream.cpp
Copyright 2016 Gal Kahana PDFWriter
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 applica... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x19e3b, %rdi
nop
nop
nop
add $12698, %r8
mov (%rdi), %r13d
nop
nop
nop
cmp %r9, %r9
lea addresses_WC_ht+0xcd3b, %rsi
lea addresses_UC_ht+0x535b, %rdi
clflush (%rsi)
sub $22263, %rdx
mov $... |
db KADABRA ; pokedex id
db 40 ; base hp
db 35 ; base attack
db 30 ; base defense
db 105 ; base speed
db 120 ; base special
db PSYCHIC ; species type 1
db PSYCHIC ; species type 2
db 100 ; catch rate
db 145 ; base exp yield
INCBIN "pic/gsmon/kadabra.pic",0,1 ; 66, sprite dimensions
dw KadabraPicFront
dw KadabraPicBack
;... |
SECTION code_sound_ay
PUBLIC ay_wyz_stop
EXTERN asm_wyz_stop
defc ay_wyz_stop = asm_wyz_stop
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _ay_wyz_stop
defc _ay_wyz_stop = ay_wyz_stop
ENDIF
|
Entity start
No options
Constants
0 S start
1 S 2.0 - 1.0=
2 R 2.000000
3 R 1.000000
4 I 2
5 S io.writeln
6 S 2.0 * 7=
7 I 7
8 S 2.0 * 8.0 - 5.0=
9 R 8.000000
10 R 5.000000
11 S 2.0 - 8.0 * 5.0=
12 S (2.0 - 8.0) * 5.0=
13 S (2.0 * (8.0 - 18.0 / 9.0 * (7.0 * 8.0 - 4.0 + 5.0 * 7.0) - 6.0) * ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x3d4b, %r13
nop
nop
add %r15, %r15
movups (%r13), %xmm0
vpextrq $1, %xmm0, %r12
nop
nop
nop
nop
and %r9, %r9
lea addresses_UC_ht+0x1a1d7, %r14
nop
nop
nop
nop
nop
cmp... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x17356, %rsi
lea addresses_WC_ht+0x12ddf, %rdi
nop
nop
nop
nop
nop
sub $23590, %r14
mov $115, %rcx
rep movsl
nop
dec %r9
lea addresses_normal_ht+0x1bdf, %rsi
lea addresses_WT_h... |
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at www.aome... |
SECTION code_fp_math48
PUBLIC asm_dgt
EXTERN am48_dgt
defc asm_dgt = am48_dgt
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2018-2022 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... |
; A152535: a(n) = n*prime(n) - Sum_{i=1..n} prime(i).
; 0,1,5,11,27,37,61,75,107,161,181,247,295,321,377,467,563,597,705,781,821,947,1035,1173,1365,1465,1517,1625,1681,1797,2217,2341,2533,2599,2939,3009,3225,3447,3599,3833,4073,4155,4575,4661,4837,4927,5479,6043,6235,6333,6533,6839,6943,7473,7797,8127,8463,8577,8925,91... |
; set absolute pointer position
include win1_mac_oli
include win1_keys_qdos_io
section utility
xdef xwm_saptr
;+++
; set relative pointer position
;
; Entry Exit
; d1.l position
; a0 channel id
;
; errors
;---
xwm_saptr s... |
; A267816: Decimal representation of the n-th iteration of the "Rule 221" elementary cellular automaton starting with a single ON (black) cell.
; 1,3,23,111,479,1983,8063,32511,130559,523263,2095103,8384511,33546239,134201343,536838143,2147418111,8589803519,34359476223,137438429183,549754765311,2199021158399,8796088827... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="dirp"/>
<%docstring>
Invokes the syscall readdir. See 'man 2 readdir' for more information.
Arguments:
dirp(DIR): dirp
</%docstring>
${syscall('SYS_readdir', dirp)}
|
; A178730: Partial sums of floor(7^n/8)/6.
; 0,1,8,58,408,2859,20016,140116,980816,6865717,48060024,336420174,2354941224,16484588575,115392120032,807744840232,5654213881632,39579497171433,277056480200040,1939395361400290,13575767529802040,95030372708614291,665212608960300048,4656488262722100348,32595417839054702448,228... |
Map_399D8: dc.w word_399E0-Map_399D8
dc.w word_399E8-Map_399D8
dc.w word_399F0-Map_399D8
dc.w word_399F8-Map_399D8
word_399E0: dc.w 1
dc.b $FC, 0, 0, 0, $FF, $FC
word_399E8: dc.w 1
dc.b $FC, 0, 0, 1, $FF, $FC
word_399F0: dc.w 1
dc.b $FC, 0, 0, 2, $FF, $FC
word_399F8: dc.w 1 ... |
; A168269: a(n) = 2*n - (-1)^n.
; 3,3,7,7,11,11,15,15,19,19,23,23,27,27,31,31,35,35,39,39,43,43,47,47,51,51,55,55,59,59,63,63,67,67,71,71,75,75,79,79,83,83,87,87,91,91,95,95,99,99,103,103,107,107,111,111,115,115,119,119,123,123,127,127,131,131,135,135,139,139,143,143,147,147,151,151,155,155,159,159,163,163,167,167,171,... |
; A172077: a(n) = n*(n+1)*(7*n^2 - n - 4)/4.
; 0,1,33,168,520,1245,2541,4648,7848,12465,18865,27456,38688,53053,71085,93360,120496,153153,192033,237880,291480,353661,425293,507288,600600,706225,825201,958608,1107568,1273245,1456845,1659616,1882848,2127873,2396065,2688840,3007656,3354013,3729453,4135560,4573960,5046321,... |
SECTION code_crt0_sccz80
PUBLIC dstore
EXTERN fa
;--------------
; Copy FA to hl
;--------------
dstore: ld de,fa
ld bc,6
ex de,hl
ldir
ex de,hl ; returns de=fa+6, hl=hl+6
ret
|
; uint8_t hbios_e_dehl(uint16_t func_device, uint32_t arg) __smallc
SECTION code_clib
SECTION code_arch
PUBLIC hbios_e_dehl
EXTERN asm_hbios_e
.hbios_e_dehl
pop af
pop hl
pop de
pop bc
push bc
push de
push hl
push af
jp asm_hbios_e
|
# Y combinator in ASM
(var I (lambda (x) x))
(var M (lambda (x) (x x)))
(var B (lambda (x)
(lambda (y)
(lambda (z)
(x (y z))))))
(var B2 (lambda (x y)
(lambda (z)
(x (y z)))))
(var B3 (lambda (x y z)
(x (y z))))
(var L (lambda (x)
(lambda (... |
; A006634: From generalized Catalan numbers.
; Submitted by Christian Krause
; 1,9,72,570,4554,36855,302064,2504304,20974005,177232627,1509395976,12943656180,111676661460,968786892675,8445123522144,73940567860896,649942898236596,5733561315124260,50744886833898400,450461491952952690,4009721145437152530,35782256673785401... |
; A017752: Binomial coefficients C(n,88).
; 1,89,4005,121485,2794155,51971283,814216767,11050084695,132601016340,1429144287220,14005614014756,126050526132804,1050421051106700,8160963550905900,59458448728028700,408281347932463740,2653828761561014310,16391295291994500150,96526516719523167550,543596699420472575150,2935422... |
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Christian Schulte, 2007
*
* This file is part of Gecode, the generic constraint
* development environment:
* http://www.gecode.org
*
* Permission is ... |
; A142054: Primes congruent to 8 mod 33.
; Submitted by Jon Maiga
; 41,107,173,239,503,569,701,1031,1097,1163,1229,1361,1427,1493,1559,1823,1889,2087,2153,2351,2417,2549,2879,3011,3209,3407,3539,3671,3803,4001,4133,4397,4463,4793,5189,5387,5519,5651,5717,5783,5849,5981,6047,6113,6311,6971,7103,7433,7499,7829,8093,8291,... |
; size_t b_array_erase(b_array_t *a, size_t idx)
SECTION code_clib
SECTION code_adt_b_array
PUBLIC b_array_erase
EXTERN asm_b_array_erase
b_array_erase:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_b_array_erase
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _b_array_erase
defc... |
; A170209: Number of reduced words of length n in Coxeter group on 8 generators S_i with relations (S_i)^2 = (S_i S_j)^40 = I.
; 1,8,56,392,2744,19208,134456,941192,6588344,46118408,322828856,2259801992,15818613944,110730297608,775112083256,5425784582792,37980492079544,265863444556808,1861044111897656,13027308783283592... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.