text stringlengths 1 1.05M |
|---|
#include "BaseLibInternals.h"
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2013, 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
; w... |
/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/execution_environment/root_device_environment.h"
#include "shared/source/os_interface/linux/os_interface_linux.h"
namespace NEO {
bool RootDeviceEnvironment::initOsInterface(std::unique_ptr<HwDeviceId> &&hwDe... |
; A101156: a(n) = 2*Fibonacci(n) + 8*Fibonacci(n-5).
; 10,24,34,58,92,150,242,392,634,1026,1660,2686,4346,7032,11378,18410,29788,48198,77986,126184,204170,330354,534524,864878,1399402,2264280,3663682,5927962,9591644,15519606,25111250,40630856,65742106,106372962,172115068,278488030,450603098,729091128,1179694226,1908785... |
#define STB_IMAGE_IMPLEMENTATION
#include "telabrium/model.h"
// Static initialization
Texture Model::tesst;
// constructor, expects a filepath to a 3D model.
Model::Model(std::string const &path, glm::vec3 _pos, glm::vec3 _rot, glm::vec3 _scl, bool gamma) : Object3d(_pos, _rot, _scl) {
this->path = path;
... |
/* Copyright (c) 2020 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... |
; TypeNames indexes (see data/types/names.asm)
; also used in:
; - PokedexTypeSearchConversionTable (see data/types/search_types.asm)
; - PokedexTypeSearchStrings (see data/types/search_strings.asm)
; - TypeMatchups (see data/types/type_matchups.asm)
; - TypeBoostItems (see data/types/type_boost_items.asm)
const_def
... |
#include <hyperion/CaptureCont.h>
// hyperion includes
#include <hyperion/Hyperion.h>
// utils includes
#include <utils/GlobalSignals.h>
// qt includes
#include <QTimer>
CaptureCont::CaptureCont(Hyperion* hyperion)
: QObject()
, _hyperion(hyperion)
, _v4lCaptEnabled(false)
, _v4lCaptPrio(0)
, _v4lCaptName()
... |
/*!
\brief Function implementations of the Vulkan Device class.
\file PVRVk/DeviceVk.cpp
\author PowerVR by Imagination, Developer Technology Team
\copyright Copyright (c) Imagination Technologies Limited.
*/
//!\cond NO_DOXYGEN
#include "PVRVk/DeviceVk.h"
#include "PVRVk/InstanceVk.h"
#include "PVRVk/BufferVk.h"
#inc... |
/*
Algorithm:Selection Sort
Time:O(n²)
Space:O(1)
Author:Selvaraj Kuppusamy, github/selvaraj-kuppusamy
*/
#include<iostream>
using namespace std;
void swap(int &a,int &b)
{
int temp;
temp=a;
a=b;
b=temp;
}
void display(int *array,int size)
{
for(int i=0;i<size;i++)
{
cout<<array[i]<<" ";
}
cout<<endl;
}
void... |
export PM_SlideMove
code
proc PM_SlideMove 316 28
ADDRLP4 208
CNSTI4 4
ASGNI4
ADDRLP4 212
ADDRGP4 pm
INDIRP4
INDIRP4
CNSTI4 32
ADDP4
INDIRB
ASGNB 12
ADDRFP4 0
INDIRI4
CNSTI4 0
EQI4 $43
ADDRLP4 224
ADDRGP4 pm
INDIRP4
ASGNP4
ADDRLP4 116
ADDRLP4 224
INDIRP4
INDIRP4
CNSTI4 32
ADDP4
INDIRB
ASGNB 12
ADDRLP4 116+8
ADDRLP4 116... |
// Copyright Boston University SESA Group 2013 - 2014.
// 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)
#include "EventManager.h"
#include <unordered_map>
#include <boost/container/flat_map.... |
; Startup Code for Sega Master System
;
; Haroldo O. Pinheiro February 2006
;
; $Id: sms_crt0.asm,v 1.20 2016-07-13 22:12:25 dom Exp $
;
DEFC ROM_Start = $0000
DEFC INT_Start = $0038
DEFC NMI_Start = $0066
DEFC CODE_Start = $0100
DEFC RAM_Start = $C000
DEFC RAM_Length = $2000
DEFC Stack_Top = $dff0
... |
.include "defaults_item.asm"
table_file_jp equ "exe6-utf8.tbl"
table_file_en equ "bn6-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252354A // BR5J
game_code_2 equ 0x42523545 // BR5E
game_code_3 equ 0x42523550 // BR5P
card_type equ 0
card_id equ 24
card_no equ "024"
card_sub equ "Item Card 024"
card_sub_... |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* 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... |
#include <QCoreApplication>
#include <QThread>
#include <iostream>
#include <string>
#include "windows.h"
static HANDLE g_event = nullptr;
static QString g_data;
class ReaderThread1 : public QThread
{
protected:
virtual void run() override
{
WaitForSingleObject(g_event, INFINITE);
... |
SECTION code_clib
SECTION code_alloc_malloc
PUBLIC __heap_lock_release
PUBLIC __heap_lock_release_0
EXTERN asm_mtx_unlock
__heap_lock_release:
; Release the heap's lock
;
; enter : hl = void *heap
;
; exit : none
;
; uses : hl
push af
push bc
push de
call asm_mtx_unlock
... |
; size_t wv_priority_queue_capacity_fastcall(wv_priority_queue_t *q)
SECTION code_adt_wv_priority_queue
PUBLIC _wv_priority_queue_capacity_fastcall
defc _wv_priority_queue_capacity_fastcall = asm_wv_priority_queue_capacity
INCLUDE "adt/wv_priority_queue/z80/asm_wv_priority_queue_capacity.asm"
|
; A030007: a(n) = (prime(n)-3)*(prime(n)-5)/8.
; 0,0,1,6,10,21,28,45,78,91,136,171,190,231,300,378,406,496,561,595,703,780,903,1081,1176,1225,1326,1378,1485,1891,2016,2211,2278,2628,2701,2926,3160,3321,3570,3828,3916,4371,4465,4656,4753,5356,5995,6216,6328,6555,6903,7021,7626,8001,8385,8778,8911,9316,9591,9730,10440,11... |
// -*- C++ -*-
/*
* linear_recurrence.cpp
*
* Copyright (C) 2009-2012 Intel Corporation. All Rights Reserved.
*
* The source code contained or described herein and all
* documents related to the source code ("Material") are owned by
* Intel Corporation or its suppliers or licensors. Title to the
* Material re... |
//@result 1101 / 1101 test cases passed. Status: Accepted Runtime: 8 ms Submitted: 0 minutes ago You are here! Your runtime beats 16.11% of cpp submissions.
class Solution {
public:
int addDigits(int num) {
int sum(0);
while (num) {
sum += num % 10;
num /= 10;
}
if (sum >= 10) {
return addDi... |
; A138188: Expansion of (1-2x-2x^2-x^3)/(1+x+x^2-x^3-x^4-x^5).
; 1,-3,0,3,-5,0,5,-7,0,7,-9,0,9,-11,0,11,-13,0,13,-15,0,15,-17,0,17,-19,0,19,-21,0,21,-23,0,23,-25,0,25,-27,0,27,-29,0,29,-31,0,31,-33,0,33,-35,0,35,-37,0,37,-39,0,39,-41,0,41
mov $1,$0
add $1,1
mov $2,1
lpb $1
sub $1,3
add $2,2
lpe
mul $1,$2
|
; A035936: Number of squares in (n^3, (n+1)^3 ].
; 1,1,3,3,3,3,4,4,5,4,5,5,5,6,6,6,6,6,6,7,7,7,7,7,8,7,8,8,8,8,8,9,8,9,9,9,9,9,9,9,10,10,9,10,10,10,11,10,11,10,11,10,11,11,11,12,11,11,12,11,12,12,12,12,12,12,12,12,13,12,13,12,13,13,13,13,13,13,14,13,14,13,14,13,14,14,14,14,14,14,15,14,14,15,14,15,15,15,15,15,15,15,15,1... |
//===-- ClangExpressionDeclMap.cpp -----------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------------------------... |
# Seção de dados
.data
prompt: .asciiz "Digite n: " # String com \0 no final
output: .asciiz "Você digitou: "
#Seção de texto
.text
# Imprime prompt
la $a0, prompt # coloca em a0 o parâmetro da chamada a syscall
li $v0, 4 # 4 é o código para imprimir uma string
syscall
# Le inte... |
// Copyright (c) 2018-2019, The TurtleCoin Developers
// Copyright (c) 2019-2020, The 2ACoin Team
//
// Please see the included LICENSE file for more information.
#include <emscripten/bind.h>
#include <stdio.h>
#include <stdlib.h>
#include <cuddlecoin-crypto.h>
using namespace emscripten;
struct Keys
{
std::stri... |
; A146302: a(n) = (8*n+5)*(8*n+9).
; 45,221,525,957,1517,2205,3021,3965,5037,6237,7565,9021,10605,12317,14157,16125,18221,20445,22797,25277,27885,30621,33485,36477,39597,42845,46221,49725,53357,57117,61005,65021,69165,73437,77837,82365
mul $0,8
add $0,7
pow $0,2
sub $0,4
|
; Z88 Small C+ Run Time Library
; Long functions
;
SECTION code_crt0_sccz80
PUBLIC l_putptr
.l_putptr
ld a,l
ld (bc),a
inc bc
ld a,h
ld (bc),a
inc bc
ld a,e
ld (bc),... |
;
; Enterprise 64/128 C Library
;
; getkey() Wait for keypress
;
; Stefano Bodrato - 2011
;
;
; $Id: fgetc_cons.asm,v 1.4 2016-06-12 17:07:43 dom Exp $
;
SECTION code_clib
PUBLIC fgetc_cons
PUBLIC _fgetc_cons
.fgetc_cons
._fgetc_cons
ld a,69h ; keyboard channel
rst $30 ; EXOS
defb 5 ; output to... |
; A301727: Partial sums of A301726.
; 1,6,17,33,54,81,114,152,195,244,298,357,422,492,567,648,735,827,924,1027,1135,1248,1367,1491,1620,1755,1896,2042,2193,2350,2512,2679,2852,3030,3213,3402,3597,3797,4002,4213,4429,4650,4877,5109,5346,5589,5838,6092,6351,6616,6886,7161,7442,7728,8019,8316,8619,8927
mov $10,$0
mov $12... |
; A289150: Binary 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,10,110,1101,11101,111010,1111010,11110101,111110101,1111101010,11111101... |
; A078007: Expansion of (1-x)/(1-x-2*x^2-x^3).
; Submitted by Jon Maiga
; 1,0,2,3,7,15,32,69,148,318,683,1467,3151,6768,14537,31224,67066,144051,309407,664575,1427440,3065997,6585452,14144886,30381787,65257011,140165471,301061280,646649233,1388937264,2983297010,6407820771,13763352055,29562290607,63496815488,13638474875... |
;
; jquant.asm - sample data conversion and quantization (SSE & MMX)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; Thi... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; gfx functions
;
; Font Pointers
;
; ------
; $Id: ozfontpointers.asm,v 1.3 2016-06-28 14:48:17 dom Exp $
;
SECTION code_clib
PUBLIC ozfontpointers
PUBLIC _ozfontpointers
PUBLIC Lower... |
title "Injection Thunk Assembly Routine"
;++
;
; Copyright (c) 2017 Trent Nelson <trent@trent.me>
;
; Module Name:
;
; InjectionThunk5.asm
;
; Abstract:
;
; This module implements the injection thunk routine as a NESTED_ENTRY with
; a slightly approach to the prologue versus InjectionThunk4.asm.
;
;--
i... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xb249, %rsi
lea addresses_D_ht+0x1781d, %rdi
and %rbx, %rbx
mov $9, %rcx
rep movsl
nop
nop
nop
nop
nop
xor $44868, %r8
lea addresses_UC_ht+0x14832, %rsi
lea addresses_D_ht+0xfc1d, %rdi
c... |
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
#ifndef ONLINE_JUDGE
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
#endif
int t;
cin>>t;
int a,b,c;
int f=0;
while(t--) {
cin>>a>>b>>c;
if(a&b || b&c || a&c)++f;
}
cout<<f<<"\n";
return 0;
} |
; A052733: E.g.f.: x^2*(1-sqrt(1-4*x))/2.
; Submitted by Christian Krause
; 0,0,0,6,24,240,3600,70560,1693440,47900160,1556755200,57081024000,2328905779200,104589041356800,5124863026483200,272011960636416000,15543540607795200000,951264685197066240000,62070020709108572160000
mov $2,$0
trn $0,1
seq $0,52717 ; E.g.f. x*(... |
; A145801: Number of islands of ones fitting in an n X n array with all ones connected only either two adjacent vertically or two adjacent horizontally.
; 0,1,2,4,6,9,12,16,19,25,29,36
lpb $0
add $2,$0
trn $0,2
mov $1,6
cmp $1,$0
sub $2,$1
lpe
mov $0,$2
|
DEVICE ZXSPECTRUM128
MMU 0 3, 4
ORG 0x4000-2
orgL1:
.local:
ASSERT 4 == $$.local
DISP 0xC000-1
dispL1:
ASSERT 4 == $$orgL1 && 4 == $$ ; label and page in 0000-3FFF is 4
ASSERT 6 == $$dispL1 ; dispL1 page is taken from current mapping
; also the CSpect export o... |
; void *_falloc_(void *p, size_t size)
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_alloc_malloc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $01
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC __falloc_
EXTERN asm__falloc
__falloc_:
pop af
pop bc
pop hl
push hl
push bc
push... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_delete_array_char_05.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_delete_array.label.xml
Template File: sources-sinks-05.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Man... |
;================================================================================================
; 文件:ipc.asm
; 作用:i386体系的消息通信向外暴露的的系统调用
; 作者: Flyan
; 联系QQ: 1341662010
;================================================================================================
; 库函数开始
[SECTION .lib]
; 导出库函数
global send
global ... |
; stage 2 boot loader.
; by Philip Simonson.
; =======================
[org 0x7e00]
[bits 16]
start:
mov [iBootDrive], dl
call reset_disk
; set text mode (80x25)
mov ax, 0x0003
int 0x10
call a20_bios
call check_a20
mov si, op_loading
call print
call load_file
; load kernel from sectors
mov bx, load_se... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "helpers/memenv/memenv.h"
#include <cstring>
#include <limits>
#include <map>
#include <strin... |
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,fma")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#include <complex>
#include <queue>
#include <set>
#include <unordered_set>
#include <list>
#include <chrono>
#include <random>
#include <iostream>
#incl... |
;Sounding the Buzzer on PT5 using Chann 5 Timer (Output Compare option)
;PT5 of PORTT is connected to buzzer/speaker on Dragon12+ board
;Notice this is NOT using any Time Delay
;Modified from Example 9-11 HCS12 book by Mazidi & Causey for Dragon12+ board/CodeWarrior
ABSENTRY Entry ; for absolute assem... |
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// \file
///
/// \copyright Copyright (C) 2015 - 2020 CoSoSys Ltd <info@cososys.com>\n
/// Licensed under the Apache License, Version 2.0 (the "License");\n
/// you may not use this file e... |
// Portal.cpp: implementation of the CPortal class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "r__sector.h"
#include "../../xrEngine/xrLevel.h"
#include "../../xrEngine/xr_object.h"
#include "fbasicvisual.h"
#include "../../xrEngine/IGame_Persistent... |
; A200310: a(n) = n-1 for n <= 4, otherwise if n is even then a(n) = a(n-5)+2^(n/2), and if n is odd then a(n) = a(n-1)+2^((n-3)/2).
; Submitted by Christian Krause
; 0,1,2,3,5,8,12,18,26,37,53,76,108,154,218,309,437,620,876,1242,1754,2485,3509,4972,7020,9946,14042,19893,28085,39788,56172,79578,112346,159157,224693,318... |
page ,132
;*****************************************************************************;
; ;
; FILE NAME: getdate.asm ;
; ;
; DESCRIPTION: MS-DOS get date function 2AH ;
; ;
; NOTES: ;
; ;
; HISTORY: ... |
; A064801: Take 1, skip 2, take 2, skip 3, take 3, etc.
; 1,4,5,9,10,11,16,17,18,19,25,26,27,28,29,36,37,38,39,40,41,49,50,51,52,53,54,55,64,65,66,67,68,69,70,71,81,82,83,84,85,86,87,88,89,100,101,102,103,104,105,106,107,108,109,121,122,123,124,125,126,127,128,129,130,131,144,145,146,147,148,149,150,151,152,153,154,155... |
call func_3daf
ld hl, $c330
add hl, bc
ld [hl], b
ld hl, $c260
add hl, bc
ld [hl], b
ld hl, $c270
add hl, bc
ld [hl], b
ld hl, $c320
add hl, bc
ld [hl], b
ld hl, $c290
add hl, bc
ld [hl], b
ld hl, $c2a0
add hl, bc
ld [hl], b
ld hl, $c2b0
add hl, bc
ld [hl], b
ld hl, $c2c0
... |
; A169960: Binomial(11n,n).
; 1,11,231,5456,135751,3478761,90858768,2404808340,64276915527,1731030945644,46897636623981,1276749965026536,34898565177533200,957150015393611193,26327386978706181060,725971390105457325456,20062118235172477959495,555476984964439251664995,15406114558482236881576284,427936041510109397793688160... |
;-------------------------------------------------------------------------------
; File: Lab_5_SW_Mult.asm
; Description: This subroutine calculates the first five powers of B using
; a shift and add multiplication algorithm.
; Input: Integers A, B
; Output: Integer product of A and B, C
; Author: David Thornton (... |
; void __CALLEE__ sp1_InsertCharStruct_callee(struct sp1_update *u, struct sp1_cs *cs)
; 05.2007 aralbrec, Sprite Pack v3.0
; sinclair zx version
SECTION code_clib
SECTION code_temp_sp1
PUBLIC sp1_InsertCharStruct_callee
EXTERN asm_sp1_InsertCharStruct
sp1_InsertCharStruct_callee:
pop hl
pop de
ex (sp),h... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Copyright (c) 2017 The Sucrecoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "transactionrecord.h"
#include "base58.h"
#include "consensus/c... |
; Title: Windows Bind Stager (NX, IPv6)
; Platforms: Windows NT 4.0, Windows 2000, Windows XP, Windows 2003
; Author: Metasploit LLC
[BITS 32]
global _start
_start:
call LKernel32Base
LGetProcAddress:
push ebx
push ebp
push esi
push edi
mov ebp, [esp + 24]
mov eax, [ebp + 0x3c]
mov edx,... |
; A169919: a(n) = n*n in the arithmetic where digits are added in base 10 (as usual) but when digits are to be multiplied they are also added in base 10.
; 0,2,4,6,8,10,12,14,16,18,220,242,264,286,308,330,352,374,396,418,440,462,484,506,528,550,572,594,616,638,660,682,704,726,748,770,792,814,836,858,880,902,924,946,968... |
; A081334: sigma(2*n^2) modulo 4.
; Submitted by Jon Maiga
; 3,3,3,3,1,3,3,3,3,1,3,3,1,3,1,3,1,3,3,1,3,3,3,3,3,1,3,3,1,1,3,3,3,1,1,3,1,3,1,1,1,3,3,3,1,3,3,3,3,3,1,1,1,3,1,3,3,1,3,1,1,3,3,3,3,3,3,1,3,1,3,3,1,1,3,3,3,1,3,1,3,1,3,3,3,3,1,3,1,1,1,3,3,3,1,3,1,3,3,3
mul $0,2
add $0,2
pow $0,2
sub $0,1
seq $0,46897 ; Sum of ... |
; A169687: a(n) = 3^n - 3*2^(n-2).
; 6,21,69,219,681,2091,6369,19299,58281,175611,528369,1588179,4770681,14324331,42997569,129041859,387223881,1161868251,3485997969,10458780339,31377913881,94136887371,282416953569,847263443619,2541815496681,7625496821691,22876591128369,68629974711699,205890326788281,617671785671211,185... |
db DEX_FEAROW ; pokedex id
db 65 ; base hp
db 90 ; base attack
db 65 ; base defense
db 100 ; base speed
db 61 ; base special
db NORMAL ; species type 1
db FLYING ; species type 2
db 37 ; catch rate
db 162 ; base exp yield
INCBIN "pic/ymon/fearow.pic",0,1 ; 77, sprite dimensions
dw FearowPicFront
dw FearowPicBack
; atta... |
SECTION code_clib
SECTION code_stdio
PUBLIC __stdio_scanf_ln
__stdio_scanf_ln:
; %ln converter called from vfscanf()
;
; enter : hl = long *p
;
; exit : carry reset
;
; uses : all except ix
ld a,h
or l
ret z ; if assignment suppressed
exx
push de
e... |
min:
movq %rdi, %rax
cmpq %rsi, %rdi
jb rdi_ls
movq %rsi, %rax
rdi_ls:
ret
|
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x924e, %r15
sub %r8, %r8
movl $0x61626364, (%r15)
nop
nop
nop
dec %rax
lea addresses_A_ht+0x10ace, %rsi
lea addresses_D_ht+0x474e, %rdi
nop
nop
and $48563, %rax
mov $126, %rcx
... |
; A281787: a(n) = sum of all numbers between 1 and 10^n that are divisible by 3 or 5.
; 23,2318,233168,23331668,2333316668,233333166668,23333331666668,2333333316666668,233333333166666668,23333333331666666668,2333333333316666666668,233333333333166666666668,23333333333331666666666668,2333333333333316666666666668,23333333... |
; A273628: a(n) = (7*n)!/((5*n)!*n!^2).
; 1,42,6006,1085280,217567350,46262007792,10217700004512,2317454130543552,536022010184210550,125863265857621191900,29909151834298018538256,7176685161839833601969280,1735941935586019529116213920,422752608090008019258722317800
mov $1,$0
mul $1,2
mov $2,7
mul $2,$0
bin $2,$1
bin $1... |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
}
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
b:... |
; void sp1_IterateUpdateSpr(struct sp1_ss *s, void *hook2)
; 11.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
SECTION code_clib
SECTION code_temp_sp1
PUBLIC asm_sp1_IterateUpdateSpr
EXTERN l_jpix
asm_sp1_IterateUpdateSpr:
; Iterate over all the sp1_update* that the sprite's characters
; occupy in row... |
copyright zengfr site:http://github.com/zengfr/romhack
00073E move.b ($16,A5), ($1b,A5) [base+ 1F]
000744 move.b ($17,A5), ($1c,A5) [base+ 1B]
007040 move.b ($1b,A5), D1 [base+ 16]
007044 eor.b D1, D0 [base+ 1B]
00B14A move.b (A1), D1
00B14C eor.w D0, D1 [base+ 1B, base+ 1C, base+ 1D]
00DFDE cmp.b ($1... |
;Add the contents of memory locations 200h and 2001h and place the result in the memory locations 2002h 2003h.
LXI H,2000H ;HL Points 2000H
MOV A,M ;Get the first operand
INX H ;HL points to 2001H
ADD M ;Add second operand
INX H ;HL points to 2002H
MOV M,A ;Store lower byte of result at 2002H
... |
; This patch removes various hardcoded cutscenes from the game.
; nop out a couple lines so the long intro movie is skipped.
.open "sys/main.dol"
.org 0x80232C78
nop
.org 0x80232C88
nop
.close
; This makes the warps out of boss rooms always skip the cutscene usually shown the first time you beat the boss and... |
_rm: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
// Copyright (c) 2012 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 "content/browser/browser_child_process_host_impl.h"
#include "base/base_switches.h"
#include "base/bind.h"
#include "base/command_line.h"
#i... |
; A032916: Numbers whose set of base 9 digits is {1,3}.
; 1,3,10,12,28,30,91,93,109,111,253,255,271,273,820,822,838,840,982,984,1000,1002,2278,2280,2296,2298,2440,2442,2458,2460,7381,7383,7399,7401,7543,7545,7561,7563,8839,8841,8857,8859,9001,9003,9019,9021,20503,20505,20521,20523,20665,20667,20683,20685,21961,21963,21... |
; A016894: (5n+3)^10.
; 59049,1073741824,137858491849,3570467226624,41426511213649,296196766695424,1531578985264449,6278211847988224,21611482313284249,64925062108545024,174887470365513049,430804206899405824,984930291881790849,2113922820157210624,4297625829703557649,8335775831236199424,15516041187205853449,2785009760094... |
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2014) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this software... |
/*! \file */ //Copyright 2011-2018 Tyler Gilbert; All Rights Reserved
#ifndef SAPI_UART_HPP_
#define SAPI_UART_HPP_
#include <sos/dev/uart.h>
#include "PinAssignment.hpp"
#include "Periph.hpp"
namespace hal {
/*! \brief UART Pin Assignment
* \details This class allows simple manipulation of the uart_pin_assignme... |
dnl AMD K7 mpn_addlsh1_n -- rp[] = up[] + (vp[] << 1)
dnl Copyright 2011 Free Software Foundation, Inc.
dnl Contributed to the GNU project by Torbjorn Granlund and Marco Bodrato.
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 ... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
#include <limits>
#include "mozill... |
#include "templatecache.h"
#include <QDateTime>
#include <QStringList>
#include <QSet>
using namespace stefanfrings;
TemplateCache::TemplateCache(QSettings* settings, QObject* parent)
:TemplateLoader(settings,parent)
{
cache.setMaxCost(settings->value("cacheSize","1000000").toInt());
cacheTimeout=settings... |
/*
*********************************************************************************************************
* uC/OS-III
* The Real-Time Kernel
*
* Copyright 2009-2021 Silicon Laboratories Inc. www.silabs.com
*
* ... |
; ---------------------------------------------------------------------------
; Object 45 - spiked metal block from beta version (MZ)
; ---------------------------------------------------------------------------
SideStomp:
moveq #0,d0
move.b obRoutine(a0),d0
move.w SStom_Index(pc,d0.w),d1
jmp SStom_Index(pc,d1... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===---------------------------------... |
#include <monsoon/metric_name.h>
#include <monsoon/grammar/intf/rules.h>
#include <stdexcept>
namespace monsoon {
metric_name metric_name::parse(std::string_view s) {
std::string_view::iterator parse_end = s.begin();
grammar::ast::simple_path_lit_expr result;
bool r = grammar::x3::phrase_parse(
parse_en... |
# ORG 80A2
# DB FF
# ORG 80A3
# DB A2
# ORG 80A4
# DB 00
# ORG 80A5
# DB 26
# ORG 8000
LHLD 80A2
INR L
INR H
SHLD 80A2
LHLD 80A4
DCR L
DCR H
SHLD 80A4
HLT
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x11dd3, %rdi
nop
lfence
mov $0x6162636465666768, %r9
movq %r9, %xmm7
vmovups %ymm7, (%rdi)
nop
nop
nop
nop
add $9990, %rsi
lea addresses_WT_ht+0x1a8a3, %r12
add %r10, %r10
mov... |
Name: sfxdos..asm
Type: file
Size: 11529
Last-Modified: '1991-10-29T15:00:00Z'
SHA-1: E8CA0DE6D72032D781999F8BF80FB2D5D6749E1C
Description: null
|
# mp_limb_t mulredc6(mp_limb_t * z, const mp_limb_t * x, const mp_limb_t * y,
# const mp_limb_t *m, mp_limb_t inv_m);
#
# Stack:
# inv_m ## parameters
# m
# y
# x
# z (4*(2k+7))%esp
# ??? (1 limb???)
# ebp ## pushed registers (4*(2k+5))%esp
# edi... |
start_include:
mov [1], 1
prn [1]
ret
end_include:
jmp end_include
|
; A194050: Natural fractal sequence of A014739.
; 1,1,2,3,1,2,3,4,1,2,3,4,5,6,7,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,1,2,3,4,5,6,7,8,9,10
mov $3,$0
add $0,1
mov $2,$3
lpb $0
mov $1,$0
add $0,$2
sub $0,$3... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019-2020 Baldur Karlsson
*
* 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... |
; A296021: Number of primes of the form 4*k+1 <= 4*n+1.
; 0,1,1,2,3,3,3,4,4,5,6,6,6,7,7,8,8,8,9,9,9,9,10,10,11,12,12,13,14,14,14,14,14,14,15,15,15,16,16,17,17,17,17,18,18,19,19,19,20,21,21,21,21,21,21,21,21,22,23,23,24,24,24,24,25,25,25,26,26,27,28,28,28,29,29,29,29,29,30,31,31,31,31,31,32,32,32,33,34,34,34,34,34,35,35... |
; A164135: Numbers k such that k^2 == 2 (mod 47).
; 7,40,54,87,101,134,148,181,195,228,242,275,289,322,336,369,383,416,430,463,477,510,524,557,571,604,618,651,665,698,712,745,759,792,806,839,853,886,900,933,947,980,994,1027,1041,1074,1088,1121,1135,1168,1182,1215,1229,1262,1276,1309,1323,1356,1370,1403,1417,1450,1464,1... |
;; Built with `nasm -felf64 cfg.asm -g` and `gcc cfg.o -o cfg.bin`
global main
section .text
main:
push rbp
mov rbp, rsp
mov rcx, 10
xor rax, rax
.loop:
cmp rcx, 0
jle .end
add rax, 2
sub rcx, 1
jmp .loop
.end:
mov rsp, rbp
pop rbp
ret
|
; Configuration that can be included to Arkos Tracker 2 players.
; It indicates what parts of code are useful to the song/sound effects, to save both memory and CPU.
; The players may or may not take advantage of these flags, it is up to them.
; You can either:
; - Include this to the source that also includes th... |
; A069894: Centered square numbers: a(n) = 4*n^2 + 4*n + 2.
; 2,10,26,50,82,122,170,226,290,362,442,530,626,730,842,962,1090,1226,1370,1522,1682,1850,2026,2210,2402,2602,2810,3026,3250,3482,3722,3970,4226,4490,4762,5042,5330,5626,5930,6242,6562,6890,7226,7570,7922,8282,8650,9026,9410,9802,10202,10610,11026,11450,11882,... |
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
... |
; new 'macro' test
;
; test1
macro MyMacro arg0, arg1
call arg0_f
call arg0_arg1
call arg1_arg0
endm
MyMacro abc, def
;should be expanded to:
;
; call abc_f
; call abc_def
; call def_abc
;test 2
macro a0a1 a0, a1
call a0_a1__yyy
endm
macro a1a0 a0, a1
call a1_a0___yyy
endm
macro a1a0a1 a0, a1
ca... |
<%
from pwnlib.shellcraft.mips.linux import syscall
%>
<%page args="fd, name, flag"/>
<%docstring>
Invokes the syscall unlinkat. See 'man 2 unlinkat' for more information.
Arguments:
fd(int): fd
name(char): name
flag(int): flag
</%docstring>
${syscall('SYS_unlinkat', fd, name, flag)}
|
; A037124: Numbers that contain only one nonzero digit.
; 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100,200,300,400,500,600,700,800,900,1000,2000,3000,4000,5000,6000,7000,8000,9000,10000,20000,30000,40000,50000,60000,70000,80000,90000,100000,200000,300000,400000,500000,600000,700000,800000,900000,1000000,2000000,300... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.