text stringlengths 1 1.05M |
|---|
; A204708: Number of (n+1) X 4 0..1 arrays with the permanents of all 2 X 2 subblocks equal and nonzero.
; 25,81,257,833,2689,8705,28161,91137,294913,954369,3088385,9994241,32342017,104660993,338690049,1096024065,3546808321,11477712897,37142659073,120196169729,388962975745,1258710630401,4073273163777,13181388849153,426... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; int ba_priority_queue_empty(ba_priority_queue_t *q)
;
; Return non-zero if the queue is empty.
;
; ===============================================================
SECTION... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Microsoft Research Singularity
;;;
;;; Copyright (c) Microsoft Corporation. All rights reserved.
;;;
;;; This file contains ARM-specific assembly code.
;;;
GBLL leq_s
GET basic_d.asm
END
|
scene_var: MACRO
; map, variable
map_id \1
dw \2
ENDM
MapScenes::
scene_var POKECENTER_2F, wPokecenter2FSceneID
scene_var TRADE_CENTER, wTradeCenterSceneID
scene_var COLOSSEUM, wColosseumSceneID
scene_var TIME_CAPSULE,... |
[BITS 32]
GLOBAL _main
EXTERN _ExitProcess@4
EXTERN _GetCommandLineA@0
EXTERN _GetStdHandle@4
EXTERN _WriteFile@20
SECTION .text
_main:
;;; GetCommandLineA retrieves the cmdline as it was called. It
;;; includes the program name as it was called (e.g. quotes,
;;; relative/absolute path). 2... |
; A045326: Primes congruent to {2, 3} mod 4.
; 2,3,7,11,19,23,31,43,47,59,67,71,79,83,103,107,127,131,139,151,163,167,179,191,199,211,223,227,239,251,263,271,283,307,311,331,347,359,367,379,383,419,431,439,443,463,467,479,487,491,499,503,523,547,563,571,587,599,607,619,631,643,647,659,683,691,719,727,739,743,751,787,81... |
; A058038: a(n) = Fibonacci(2*n)*Fibonacci(2*n+2).
; 0,3,24,168,1155,7920,54288,372099,2550408,17480760,119814915,821223648,5628750624,38580030723,264431464440,1812440220360,12422650078083,85146110326224,583600122205488,4000054745112195,27416783093579880
lpb $0
sub $0,1
add $2,1
add $1,$2
add $2,$1
add $1,$2... |
* Network physical layer - QXL (20 MHz) 1984 & 1993 Tony Tebby
*
section nd
*
xdef nd_qxlc network access code
xdef nd_qxle
xdef nd_send send a packet
xdef nd_send0 send a packet (server protocol)
xdef nd_read read a packet
xdef nd_read0 read a packet (server protocol)
xdef nd_bcast read ... |
// Copyright 2015-2020 Tier IV, 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 app... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 96
call lwaitly_b
ld a, 80
ldff(68), a
ld a, ff
ld c, 69
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
xor a, a
ldff(c), a
ldff(c), a
ld a, 40
ldff(41), a
ld a, 02... |
/*
============================================================================
Name : Coordinate.cpp
Author : Sun Jinbo
Version : 1.0
Copyright : Your copyright notice
Description : CCoordinate implementation
============================================================================
*/
#include <eiken... |
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2015 The Khronos Group Inc.
* Copyright (c) 2015 ARM Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in c... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012, John Haddon. All rights reserved.
// Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided... |
; void __CALLEE__ sp1_IterateSprChar_callee(struct sp1_ss *s, void *hook1)
; 02.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
SECTION code_sprite_sp1
PUBLIC sp1_IterateSprChar_callee
PUBLIC ASMDISP_SP1_ITERATESPRCHAR_CALLEE
EXTERN l_jpix
.sp1_IterateSprChar_callee
pop hl
pop ix
ex (sp),hl
.a... |
// Copyright 2010 Google Inc. All Rights Reserved.
// Author: rays@google.com (Ray Smith)
//
// 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
// ... |
<% from pwnlib.shellcraft import arm, pretty, common %>
<%page args="in_fd = 'r6', size = 0x800, allocate_stack = True"/>
<%docstring> Reads to the stack from a directory.
Args:
in_fd (int/str): File descriptor to be read from.
size (int): Buffer size.
allocate_stack (bool): allocate 'size' bytes on the st... |
SECTION code_fp_math16
PUBLIC asinf16_fastcall
EXTERN _m16_asinf
defc asinf16_fastcall = _m16_asinf
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _asinf16_fastcall
defc _asinf16_fastcall = _m16_asinf
ENDIF
|
addi r28, r29, 16702650 # fedcba
addi r28, r29, 16702650 # fedcba
label0: addi r28, r29, 65535 # ffff
addi r28, r29, $label4 # abcde
subi r28, r29, 16702650 # fedcba
subi r28, r29, 16702650 # fedcba
label1: subi r28, r29, 65535 # ffff
subi r28, r29, $label3 # abcde
muli r28, r... |
; ========================================================================
;
; void *sms_memcpy_mem_to_vram_unsafe(void *dst, void *src, unsigned int n)
;
; memcpy from memory to vram; VRAM addresses are assumed to be stable.
;
; ========================================================================
SECTION code_cl... |
/*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#include "../../StroikaPreComp.h"
#include "IConsumer.h"
using namespace Stroika::Foundation::DataExchange;
using namespace Stroika::Foundation::DataExchange::StructuredStreamEvents;
/*
***************************************************... |
dos_func macro val
mov ah, val
int 21h
endm
exit macro
dos_func 4ch
endm
.model small
.stack 64h
.data
array dw 4400h, 1100h, 9900h, 2200h, 3300h
len equ ($ - array) / 2
.code
mov ax, @data
mov ds, ax
mov cx, 2
outer:
mov dx, cx
dec dx
mov si,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x116a0, %rsi
lea addresses_D_ht+0xe7a0, %rdi
and %r11, %r11
mov $8, %rcx
rep movsw
nop
xor $43685, %rdi
lea addresses_WC_ht+0x1aea0, %r11
nop
nop
nop
nop
nop
xor $56837, %rbx
m... |
// Example usages of conio for Atari XL target.
// Atari XL/XE executable XEX file with a single segment
// https://www.atarimax.com/jindroush.atari.org/afmtexe.html
.plugin "dk.camelot64.kickass.xexplugin.AtariXex"
.file [name="atarixl-conio.xex", type="bin", segments="XexFile"]
.segmentdef XexFile [segments="Progra... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <net_processing.h>
#include <addrman.h>
#include <arith_uint256.h>
#inc... |
lw $s1, ($s0)
addi $s0, $zero, 233
bne $s0, $s1, label
label:
addi $v0, $zero, 10
syscall
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x166d, %r11
nop
xor %r15, %r15
mov (%r11), %rbp
nop
nop
xor %r8, %r8
lea addresses_UC_ht+0x3a6d, %rbp
nop
inc %rcx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm4
vmovups %ymm4,... |
/**
* @author Nicholas Kidd
* @author Akash Lal
*
* @version $Id$
*
*/
#include "wali/Worklist.hpp"
#include "wali/Common.hpp"
#include "wali/HashMap.hpp"
#include "wali/SemElem.hpp"
#include "wali/KeyPairSource.hpp"
// ::wali::util
#include "wali/util/Timer.hpp"
// ::wali::wfa
#include "wali/wfa/WFA.hpp"
#inc... |
#ifndef PERSISTENCE_HPP
#define PERSISTENCE_HPP
#include "SimFunction.hpp"
#include "ContourTreeData.hpp"
namespace contourtree {
class Persistence : public SimFunction
{
public:
Persistence(const ContourTreeData& ctData);
void init(std::vector<float> &fn, std::vector<Branch> &br);
void update(const std... |
// Copyright Carl Philipp Reh 2009 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_CONTAINER_GET_OR_INSERT_RESULT_IMPL_HPP_INCLUDED
#define FCPPT_CONTAINER_GET_OR_INSE... |
#INCLUDE<P16F84A.INC>
ORG 0X00
GOTO INICIO
;--- Se uma entrada é acionada, uma saída deve permanecer acionada enquanto a entrada estiver acionada. ---;
INICIO
CLRW
CLRF PORTA
CLRF PORTB
BSF STATUS,RP0
MOVLW 0
MOVWF TRISA ;porta A toda de saida
MOVLW... |
db "DELIVERY@" ; species name
dw 211, 350 ; height, weight
db "It always carries"
next "its food with it,"
next "wherever it goes."
page "If attacked, it"
next "throws its food at"
next "the opponent.@"
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1527c, %rsi
lea addresses_D_ht+0x19204, %rdi
clflush (%rdi)
nop
and $23394, %r9
mov $42, %rcx
rep movsl
nop
lfence
lea addresses_WC_ht+0x18f9c, %rsi
lea addresses_WT_ht+0x16e84... |
; A010692: Constant sequence: a(n) = 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
mov $1,10
|
;Copyright (c) 2004-2020 Microchip Technology Inc. and its subsidiaries.
;SPDX-License-Identifier: MIT
$NOMOD51
$INCLUDE (REG52.INC)
NAME MISCUTIL3
PUBLIC _mac_cmp
PUBLIC _ip_cmp
PUBLIC _mac_copy
PUBLIC _ip_copy
PUBLIC _mem_cmp
PUBLIC _mem_copy
PUBLIC _mem_set
PROG SEGMENT CODE
RSEG PROG
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %rcx
lea addresses_D_ht+0x183cc, %r10
nop
nop
nop
nop
cmp %rcx, %rcx
and $0xffffffffffffffc0, %r10
movntdqa (%r10), %xmm2
vpextrq $0, %xmm2, %r11
nop
nop
nop
nop
nop
cmp $12356, %r11
pop %rcx
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x15e5c, %r15
xor %rbx, %rbx
movw $0x6162, (%r15)
nop
nop
nop
nop
nop
cmp $57713, %rsi
lea addresses_A_ht+0x1d5c, %rsi
nop
nop
nop
nop
nop
xor %r10, %r10
vmovups (%rsi), %y... |
; A160413: a(n) = A160411(n+1)/4.
; 2,1,7,2,13,3,19,4,25,5,31,6,37,7,43,8,49,9,55,10,61,11,67,12,73,13,79,14,85,15,91,16,97,17,103,18,109,19,115,20,121,21,127,22,133,23,139,24,145
mov $4,3
mul $4,$0
gcd $4,2
mov $1,$4
mov $2,$4
mul $4,2
mov $5,$2
mul $5,2
sub $5,$1
mul $0,$5
mov $1,$4
sub $1,1
mov $3,$0
add $0,1
mul $... |
/*
* 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... |
Route2Gate_Object:
db $a ; border block
def_warps
warp 4, 0, 3, LAST_MAP
warp 5, 0, 3, LAST_MAP
warp 4, 7, 4, LAST_MAP
warp 5, 7, 4, LAST_MAP
def_signs
def_objects
object SPRITE_SCIENTIST, 1, 4, STAY, LEFT, 1 ; person
object SPRITE_YOUNGSTER, 5, 4, WALK, LEFT_RIGHT, 2 ; person
def_warps_to ROUTE_... |
/********************************************************************************
* File Name:
* chimera_usart.cpp
*
* Description:
* Implements the Chimera USART driver
*
* 2020-2021 | Brandon Braun | brandonbraun653@gmail.com
***************************************************************************... |
Spawn_Bees:
{
LDA #$79
JSL Sprite_SpawnDynamically
BMI .done
LDA $22
STA $0D10, Y
LDA $23
STA $0D30, Y
LDA $20
STA $0D00, Y
LDA $21
STA $0D20, Y
.done
RTL
} |
; void __CALLEE__ *adt_ListSearch_callee(struct adt_List *list, void *match, void *item1)
; 02.2003, 08.2005 aralbrec
SECTION code_clib
PUBLIC adt_ListSearch_callee
PUBLIC _adt_ListSearch_callee
PUBLIC ASMDISP_ADT_LISTSEARCH_CALLEE
EXTERN ADTListSearch, l_jpiy
.adt_ListSearch_callee
._adt_ListSearch_callee
pop h... |
; A344598: a(n) = Sum_{k=1..n} phi(k) * (floor(n/k)^2 - floor((n-1)/k)^2).
; 1,4,7,12,13,24,19,32,33,44,31,68,37,64,75,80,49,108,55,124,109,104,67,176,105,124,135,180,85,240,91,192,177,164,199,300,109,184,211,320,121,348,127,292,333,224,139,432,217,340,279,348,157,432,323,464,313,284,175,660,181
mov $2,$0
seq $0,18804... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_GeneralStringsContainer_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//----------------------------------------------... |
/* -----------------------------------------------------------------------------
The copyright in this software is being made available under the Clear BSD
License, included below. No patent rights, trademark rights and/or
other Intellectual Property Rights other than the copyrights concerning
the Software are grante... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; put 2 into ecx for future load into xmm0
mov ecx, 2
cvtsi2ss xmm0, ecx
mov ecx, 0
cvtsi2ss xmm1, ecx
;TEST_BEGIN_RECORDING
lea ecx, [esp-4]
movss [ecx], xmm1
ucomiss xmm0, [ecx]
mov ecx, 0
;TEST_END_RECORDING
cvtsi2ss xmm0, ecx
cv... |
; A264763: a(0) = a(1) = 1; for n>1, a(n) = a(n-1) + (a(n-2) mod 5).
; 1,1,2,3,5,8,8,11,14,15,19,19,23,27,30,32,32,34,36,40,41,41,42,43,45,48,48,51,54,55,59,59,63,67,70,72,72,74,76,80,81,81,82,83,85,88,88,91,94,95,99,99,103,107,110,112,112
mov $4,$0
add $4,1
mov $5,$0
lpb $4,1
mov $0,$5
sub $4,1
sub $0,$4
mov ... |
BmpByteWidth equ 1
CharByteWidth equ 1
VdpIn_Data equ &98
VdpIn_Status equ &99
VdpOut_Data equ &98
VdpOut_Control equ &99
VdpOut_Palette equ &9A
VdpOut_Indirect equ &9B
Vdp_SendByteData equ &9B
;V9990 functions
;Vdp9k_Data equ &60 ;VRAM data port
;Vdp9k_Palette equ &61 ;Palette data port
;Vdp9... |
.386
.model flat, stdcall
.stack 4096
STD_OUTPUT_HANDLE EQU -11
GetStdHandle PROTO NEAR32 stdcall, nStdHandle:DWORD
WriteFile PROTO NEAR32 stdcall,
hFile:DWORD, lpBuffer:NEAR32, nNumberOfBytesToWrite:DWORD,
lpNumberOfBytesWritten:NEAR32, lpOverlapped:NEAR32
ExitProcess PROTO NEAR32 stdcall, dwExitCode:DWO... |
prog 2 1
copy 3 2
jmpn $6 3
dec 3
inc 4
jmp $2
copy 0 3
copy 1 4 |
; A060901: Exact power of 3 that divides the n-th Fibonacci number (sequence A000045).
; 1,1,1,3,1,1,1,3,1,1,1,9,1,1,1,3,1,1,1,3,1,1,1,9,1,1,1,3,1,1,1,3,1,1,1,27,1,1,1,3,1,1,1,3,1,1,1,9,1,1,1,3,1,1,1,3,1,1,1,9,1,1,1,3,1,1,1,3,1,1,1,27,1,1,1,3,1,1,1,3,1,1,1,9,1,1,1,3,1,1,1,3,1,1,1,9,1,1,1,3
mov $2,$0
div $2,2
add $2,2
... |
# /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt... |
printh:
; value of dx is the hex val
push cx
push di
push bx
mov si, HEX_PATTERN
mov cl, 12
mov di, 2
hexLoop:
mov bx, dx ; copy dx to bx to preserve val
shr bx, cl ; shift by 12 bits (3 bytes) right
and bx, 0x000f ... |
.program:
ji i4
noop
DATA_SECTION_OFFSET[0..32]
DATA_SECTION_OFFSET[32..64]
lw $ds $is 1
add $$ds $$ds $is
lw $r1 $fp i73 ; load input function selector
lw $r0 data_4 ; load fn selector for comparison
eq $r0 $r1 $r0 ; function selector comparison
jnzi $r0 i14 ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x45fb, %r9
nop
nop
nop
xor %rax, %rax
vmovups (%r9), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %r14
nop
nop
nop
nop
cmp %r10, %r10
lea addresses_WC_ht+0x15fb, %rsi... |
// ----------------------------------------------------
// AIMP DotNet SDK
// Copyright (c) 2014 - 2020 Evgeniy Bogdan
// https://github.com/martin211/aimp_dotnet
// Mail: mail4evgeniy@gmail.com
// ----------------------------------------------------
#include "Stdafx.h"
#include "AimpConverter.h"
#include "ManagedAimp... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xd995, %rsi
lea addresses_WC_ht+0x17995, %rdi
nop
sub %r14, %r14
mov $26, %rcx
rep movsb
and $64946, %r11
lea addresses_UC_ht+0x1eb95, %rsi
lea addresses_UC_ht+0x16b95, %rdi
sub %r12, ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x14241, %rdi
nop
nop
nop
nop
nop
sub $51537, %r13
mov (%rdi), %r11
nop
add $3921, %r12
lea addresses_WT_ht+0x1e02d, %rbx
nop
nop
nop
nop
nop
and %r14, %r14
mov (%rbx), %r11
no... |
; A021346: Decimal expansion of 1/342.
; 0,0,2,9,2,3,9,7,6,6,0,8,1,8,7,1,3,4,5,0,2,9,2,3,9,7,6,6,0,8,1,8,7,1,3,4,5,0,2,9,2,3,9,7,6,6,0,8,1,8,7,1,3,4,5,0,2,9,2,3,9,7,6,6,0,8,1,8,7,1,3,4,5,0,2,9,2,3,9,7,6,6,0,8,1,8,7,1,3,4,5,0,2,9,2,3,9,7,6,6
add $0,1
mov $1,10
pow $1,$0
mul $1,7
div $1,2394
mod $1,10
mov $0,$1
|
; A219810: Number of n X 2 arrays of the minimum value of corresponding elements and their horizontal, vertical or diagonal neighbors in a random, but sorted with lexicographically nondecreasing rows and nonincreasing columns, 0..2 n X 2 array.
; 3,6,16,33,61,106,176,281,433,646,936,1321,1821,2458,3256,4241,5441,6886,8... |
/*
MIT License
Copyright (c) 2021 SAE Institute Geneva
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, pu... |
; A343461: a(n) is the maximal number of congruent n-gons that can be arranged around a vertex without overlapping.
; 6,4,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
add $0,1
mov $1,4
div $1,$0... |
;===============================================================================
; Copyright 2016-2020 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.apa... |
;
; Copyright (c) 2020 Phillip Stevens
;
; 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/.
;
; feilipu, August 2020
;
;-----------------------------------------------... |
#include <hxcpp.h>
#ifndef INCLUDED_flash_utils_ByteArray
#include <flash/utils/ByteArray.h>
#endif
#ifndef INCLUDED_flash_utils_IDataInput
#include <flash/utils/IDataInput.h>
#endif
#ifndef INCLUDED_flash_utils_IDataOutput
#include <flash/utils/IDataOutput.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/By... |
; A167542: Natural numbers, swapped in pairs, with decimal digits reversed.
; Submitted by Jamie Morken(s3)
; 2,1,4,3,6,5,8,7,1,9,21,11,41,31,61,51,81,71,2,91,22,12,42,32,62,52,82,72,3,92,23,13,43,33,63,53,83,73,4,93,24,14,44,34,64,54,84,74,5,94,25,15,45,35,65,55,85,75,6,95,26,16,46,36,66,56,86,76,7,96,27,17,47,37,67
... |
// Copyright 2009-2021 NTESS. Under the terms
// of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Copyright (c) 2009-2021, NTESS
// All rights reserved.
//
// This file is part of the SST software package. For license
// information, see the LICENSE file in the ... |
; SameBoy CGB bootstrap ROM
; Todo: use friendly names for HW registers instead of magic numbers
SECTION "BootCode", ROM0[$0]
Start:
; Init stack pointer
ld sp, $fffe
; Clear memory VRAM
call ClearMemoryPage8000
ld a, 2
ld c, $70
ld [c], a
; Clear RAM Bank 2 (Like the original boot ROM)
ld h, $... |
; A007070: a(n) = 4*a(n-1) - 2*a(n-2) with a(0) = 1, a(1) = 4.
; 1,4,14,48,164,560,1912,6528,22288,76096,259808,887040,3028544,10340096,35303296,120532992,411525376,1405035520,4797091328,16378294272,55918994432,190919389184,651839567872,2225519493120,7598398836736,25942556360704,88573427769344,302408598355968,103248753... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x10b7b, %rax
nop
nop
nop
nop
nop
cmp %r10, %r10
mov $0x6162636465666768, %rcx
movq %rcx, %xmm3
movups %xmm3, (%rax)
nop
nop
nop
nop
nop
sub $45645, %r10
lea addresses_A_ht+0x8e1b, ... |
#include "GameConfig.h"
int main(int argc,char * argv[]){
using namespace game::config;
GameConfig gc(argc,argv);
std::cout<<gc.get<std::string>("ShaderResDir")<<
gc.get<std::string>("ModelResDir")<<std::endl;
std::cout<<std::boolalpha<<gc.get<bool>("GLProfileCore")<<std::endl;
} |
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
// 2006, 2007, 2008, 2009
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as publi... |
#include "extensions/tracers/xray/config.h"
#include <string>
#include "envoy/config/core/v3/address.pb.h"
#include "envoy/config/trace/v3/xray.pb.h"
#include "envoy/config/trace/v3/xray.pb.validate.h"
#include "envoy/registry/registry.h"
#include "common/common/utility.h"
#include "common/config/datasource.h"
#inc... |
#include <SAMP-EDGEngine/Everything.hpp>
extern samp_edgengine::GameModeSetupResult SAMPGameModeSetup();
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
PLUGIN_EXPORT unsigned int PLUGIN_CALL Supports()
{
return sampgdk_Supports() | SUPPORTS_... |
; SFROM: (128,256KB)PRG-ROM + (16,32,64)KB CHR-ROM
; http://bootgod.dyndns.org:7777/search.php?keywords=SFROM&kwtype=pcb
;------------------------------------------------------------------------------;
; number of 16K PRG banks
; Valid configurations: $08 (128K), $10 (256K)
PRG_BANKS = $08
; number of 8K CHR banks
; V... |
#pragma once
#include "physics/apsides.hpp"
#include <optional>
#include <vector>
#include "base/array.hpp"
#include "base/jthread.hpp"
#include "numerics/root_finders.hpp"
namespace principia {
namespace physics {
namespace internal_apsides {
using base::BoundedArray;
using geometry::Barycentre;
using geometry:... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x14f86, %rsi
lea addresses_normal_ht+0xec26, %rdi
add $46076, %r14
mov $11, %rcx
rep movsl
nop
nop
nop
inc %r11
lea addresses_WC_ht+0x10254, %rdx
nop
inc %r15
movb (%rdx),... |
SECTION code_clib
SECTION code_ctype
PUBLIC asm_islower
asm_islower:
; determine if char is in [a-z
; enter : a = char
; exit : carry if not lower
; uses : f
cp 'a'
ret c
cp 'z'+1
ccf
ret
|
processor 6502
include "vcs.h"
include "macro.h"
SEG.U vars
ORG $80
SpriteHeight = 7
SpritePosition ds 1
PlayerX ds 2
PS_temp ds 1
Sprite ds 2
Sprite1 ds 2
SpriteEnd ds 1
Sprite1End ds 1
XIncrement ds 1
X1Increment ds 1
YIncrement ds 1
Y1Increment ds 1
YVelocity ds 1
Y1Velocity ds 1
YCounter ds 1
Y1Counter d... |
/*
* FreeRTOS Kernel V10.3.0
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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, ... |
; A190960: a(n) = 3*a(n-1) - 6*a(n-2), with a(0)=0, a(1)=1.
; 0,1,3,3,-9,-45,-81,27,567,1539,1215,-5589,-24057,-38637,28431,317115,780759,439587,-3365793,-12734901,-18009945,22379571,175198383,391317723,122762871,-1979617725,-6675430401,-8148584853,15606827847,95711992659,193495010895,6213076731,-1142330835177,-3464270... |
# Dan Ellard - 05/10/2000
# Echos input until EOI is reached, converting from lowercase
# to uppercase.
# Register usage:
# r2 - holds each character read in
# r3 - address of $process
# r4 - address of $print
# r5 - address of $uppercase
# r6 - 'a', the smallest lowercase ASCII value (0x61)
# r7 - 'z', the largest low... |
; A014106: a(n) = n*(2*n + 3).
; 0,5,14,27,44,65,90,119,152,189,230,275,324,377,434,495,560,629,702,779,860,945,1034,1127,1224,1325,1430,1539,1652,1769,1890,2015,2144,2277,2414,2555,2700,2849,3002,3159,3320,3485,3654,3827,4004,4185,4370,4559,4752,4949,5150,5355,5564,5777,5994,6215,6440,6669,6902,7139,7380,7625,7874,812... |
DATA SEGMENT
STR1 DB 0AH,0DH ,'ENTER STRING : $'
STR2 DB 'YOUR STRING IS :$'
STR3 DB 'REVERSE STRING IS :$'
INSTR1 DB 20 DUP()
RSTR DB 20 DUP()
N DB ?
S DB ?
MSG1 DB 'STRING IS PALINDROME $'
MSG2 DB 'STRING IS NOT PALINDROME $'
A... |
//! \file
/*
** Copyright (c) 2016 - Ponce
** Authors:
** Alberto Garcia Illera agarciaillera@gmail.com
** Francisco Oca francisco.oca.gonzalez@gmail.com
**
** This program is under the terms of the BSD License.
*/
#pragma once
#include <idp.hpp>
#include <list>
#include "glo... |
-- HUMAN RESOURCE MACHINE PROGRAM --
COMMENT 11
INBOX
COPYTO 0
INBOX
COPYTO 1
INBOX
OUTBOX
COPYFROM 1
OUTBOX
COPYFROM 0
OUTBOX
COMMENT 12
INBOX
OUTBOX
INBOX
OUTBOX
INBOX
OUTBOX
a:
b:
c:
d:
e:
f:
COMMENT 0
... |
INCLUDE "clib_cfg.asm"
SECTION code_math
PUBLIC l_fast_mulu_16_8x8
l_fast_mulu_16_8x8:
; unsigned multiplication of two 8-bit
; multiplicands into a sixteen bit product
;
; enter : l = 8-bit multiplicand
; e = 8-bit multiplicand
;
; exit : hl = 16-bit product
; a = 0
; ... |
dnl AMD64 mpn_addmul_1 and mpn_submul_1 optimised for Intel Nehalem.
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 2003-2005, 2007, 2008, 2011-2013 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 redistribu... |
/*
* Copyright Andrey Semashev 2020
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* https://www.boost.org/LICENSE_1_0.txt)
*/
/*!
* \file rotr.hpp
*
* This header defines \c rotr algorithm, which rotates integer right.
*/
#ifndef BOOST_BIT_... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
; --------------------------------------------------------------------------------------------------
; Decoded payload, stage 1
; --------------------------------------------------------------------------------------------------
0x04006354: 60 81 02 10 MOVqw R1, @R0 (+2, +0) ; arg1
0x040063... |
; int isupper_fastcall(int c)
SECTION code_clib
SECTION code_ctype
PUBLIC _isupper_fastcall
EXTERN asm_isupper, error_zc
_isupper_fastcall:
inc h
dec h
jp nz, error_zc
ld a,l
call asm_isupper
ld l,h
ret c
inc l
ret
|
; A178821: Triangle read by rows: T(n,k) = binomial(n+4,4) * binomial(n,k), 0 <= k <= n.
; Submitted by Christian Krause
; 1,5,5,15,30,15,35,105,105,35,70,280,420,280,70,126,630,1260,1260,630,126,210,1260,3150,4200,3150,1260,210,330,2310,6930,11550,11550,6930,2310,330,495,3960,13860,27720,34650,27720,13860,3960,495,715... |
; A010999: a(n) = binomial coefficient C(n,46).
; 1,47,1128,18424,230300,2349060,20358520,154143080,1040465790,6358402050,35607051480,184509266760,891794789340,4047376351620,17345898649800,70539987842520,273342452889765,1012974972473835,3601688791018080,12321566916640800,40661170824914640
add $0,46
mov $1,$0
bin $1,46... |
;******************************************************************************
;* Copyright (c) 2012 Michael Niedermayer
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg 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 Sof... |
; uint z80_get_int_state(void)
SECTION code_clib
SECTION code_z80
PUBLIC z80_get_int_state
EXTERN asm_z80_get_int_state
defc z80_get_int_state = asm_z80_get_int_state
|
.org 0x8004BE30
.definelabel VROM_CODE, 0x3480000 // addr of code //MUST BE 0x01 0000 aligned!
.definelabel VROM_CODE_SIZE, 0x0B00 // MUST NOT BE GREATER THAN 0x7FFF!
.definelabel VROM_CODE_ADDR, 0x001DAFA0
.definelabel VROM_CODE_VADDR, 0x80000000 | VROM_CODE_ADDR
// a0 = Global Context
addiu $sp, $sp, 0xFFD0 //saf... |
;;
;; 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... |
; A139596: A033587(n) followed by even hexagonal number A014635(n+1).
; 0,6,14,28,44,66,90,120,152,190,230,276,324,378,434,496,560,630,702,780,860,946,1034,1128,1224,1326,1430,1540,1652,1770,1890,2016,2144,2278,2414,2556,2700,2850,3002,3160,3320,3486,3654,3828
mul $0,2
add $0,2
bin $0,2
div $0,2
mov $1,$0
mul $1,2
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.