text stringlengths 1 1.05M |
|---|
//*****************************************************************************
// Copyright 2017-2019 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://w... |
// Copyright 2013 The Flutter 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 "flutter/common/task_runners.h"
#include "flutter/fml/paths.h"
#include "flutter/fml/synchronization/count_down_latch.h"
#include "flutter/fml/syn... |
; payload
; exec: ssDNA
; type: virus
; desc:
; Adeno-associated virus, infects humans but doesn't cause any disease.
; Is a perfect for carrying payloads (e.g. vector vaccine)
; Mod: make it produce a toxic protein
; related:
; this is the Adeno-associated virus
; taken from https://www.ncbi.nlm.nih.gov/nuc... |
; A071282: Denominators of Peirce sequence of order 3.
; 2,3,1,3,2,3,2,3,1,3,2,3,2,3,1,3,2,3,2,3,1,3,2,3,2,3,1,3,2,3,2,3,1,3,2,3,2,3,1,3,2,3,2,3,1,3,2,3,2,3,1,3,2,3,2,3,1,3,2,3,2,3,1,3,2,3,2,3,1,3,2,3,2,3,1,3,2,3,2,3
add $0,10
gcd $0,6
mov $1,9
div $1,$0
gcd $1,6
mov $0,$1
|
; A077008: Legendre symbol (-1,p) where p is the n-th prime.
; Submitted by Jamie Morken(s1)
; -1,1,-1,-1,1,1,-1,-1,1,-1,1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,1,1,1,-1,-1,1,1,-1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,1,-1,-1,-1,-1,1,1,-1,1,-1,1,-1,1,-1,1,1,-1,1,-1,-1,1,1,-1,1,-1,1,1,-1,-1,1,-1,-1,1,1,1,1,-1,1,-1,1,-1,-1,1,1,1,-1,-1... |
; Let us now switch to 32 bit protected mode
[org 0x7c00]
; Place where we load kernel from
KERNEL_OFFSET equ 0x1000
mov [BOOT_DRIVE], dl
; Set stack
mov bp, 0x9000
mov sp, bp
; Print the 16 bit mode declaration
mov bx, MSG_REAL_MODE
call print_str
; Load kernel
call load_kernel
; Switch to 32 ... |
; A130619: Let M(n) = {{n, 0, 1}, {1, 0, 0}, {0, 1, 0}}, then a(n) is the upper-right term of M(n)*M(n-1)*...*M(1) (empty matrix product yields the identity).
; Submitted by Christian Krause
; 0,1,2,6,25,127,768,5401,43335,390783,3913231,43088876,517457295,6730858066,94275101800,1414643984295,22641034606786,38499186341... |
; A054684: Sum of digits is odd.
; 1,3,5,7,9,10,12,14,16,18,21,23,25,27,29,30,32,34,36,38,41,43,45,47,49,50,52,54,56,58,61,63,65,67,69,70,72,74,76,78,81,83,85,87,89,90,92,94,96,98,100,102,104,106,108,111,113,115,117,119,120,122,124,126,128,131,133,135,137,139,140,142,144,146,148,151,153,155,157,159,160,162,164,166,168,... |
; A028910: Arrange digits of 2^n in descending order.
; Submitted by Jamie Morken(r1)
; 1,2,4,8,61,32,64,821,652,521,4210,8420,9640,9821,86431,87632,66553,732110,644221,885422,8765410,9752210,9444310,8888630,77766211,55443332,88766410,877432211,866554432,987653210,8774432110,8876444321,9997664422,9998855432,99887764111... |
; =============================================================================
; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems
; Copyright (C) 2008-2010 Return Infinity -- see LICENSE.TXT
;
; String Functions
; =============================================================================
alig... |
BattleCommand_Metronome:
; metronome
call ClearLastMove
call CheckUserIsCharging
jr nz, .asm_3742b
ld a, [wKickCounter]
push af
call BattleCommand_LowerSub
pop af
ld [wKickCounter], a
.asm_3742b
call LoadMoveAnim
.GetMove:
call BattleRandom
; No invalid moves.
cp NUM_ATTACKS + 1
jr nc, .GetMove
; None... |
// Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
#include <node_signal_handler.h>
#include <assert.h>
namespace node {
using namespace v8;
Persistent<FunctionTemplate> SignalHandler::constructor_template;
void SignalHandler::Initialize(Handle<Object> target) {
HandleScope scope;
Local<FunctionTemplate> t = Func... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r15
push %rax
push %rbx
push %rdi
push %rsi
// Load
lea addresses_WT+0xa0fb, %r15
nop
sub %rdi, %rdi
movups (%r15), %xmm5
vpextrq $0, %xmm5, %rbx
nop
nop
nop
nop
nop
add $61894, %r15
// Load
mov $0x70b... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, 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 distribution... |
; A283733: a(n) = a(n-1) + 1 + floor(n*golden ratio), with a(0) = 1.
; 1,3,7,12,19,28,38,50,63,78,95,113,133,155,178,203,229,257,287,318,351,385,421,459,498,539,582,626,672,719,768,819,871,925,981,1038,1097,1157,1219,1283,1348,1415,1483,1553,1625,1698,1773,1850,1928,2008,2089,2172,2257,2343,2431,2520,2611,2704,2798,289... |
#include <catch2/catch.hpp>
#include <initializer_list>
#include <pltables++/vector.h>
#include <stdexcept>
#include <string>
#include <vector>
using namespace plt;
TEST_CASE("Vector - construction")
{
SECTION("Default construct empty vector")
{
Vector<int> vec;
REQUIRE(vec.size() == 0);
... |
#include <ATen/core/ivalue.h>
#include <ATen/core/jit_type.h>
#include <ATen/core/Formatting.h>
#include <cmath>
namespace c10 {
namespace ivalue {
CAFFE2_API c10::intrusive_ptr<ConstantString> ConstantString::create(
std::string str_) {
return c10::make_intrusive<ConstantString>(std::move(str_));
}
} // names... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Timer0.inc"
#include "TestFixture.inc"
radix decimal
udata
global firstTMR0
global secondTMR0
global expectedElapsedTicks
firstTMR0 res 1
secondTMR0 res 1
expectedElapsedTicks res 1
startTicks res 1
ElapsedTicksTest code
global testArrange
testArr... |
#include "FireworkFactory.h"
using namespace std;
FireworkFactory::FireworkFactory(){
}
// Receive a stack of Firework pointers and add them to the factories inventory. Fireworks must be sold in the order
// that they are popped off the stack (The top of the stack is the oldest firework).
void FireworkFactory::firewor... |
; A084382: a(n) = n^3 + 6.
; 6,7,14,33,70,131,222,349,518,735,1006,1337,1734,2203,2750,3381,4102,4919,5838,6865,8006,9267,10654,12173,13830,15631,17582,19689,21958,24395,27006,29797,32774,35943,39310,42881,46662,50659,54878,59325,64006,68927,74094,79513,85190,91131,97342,103829,110598,117655,125006,132657,140614,148883... |
; A047673: Row 4 of square array defined in A047671.
; 1,13,61,193,481,1021,1933,3361,5473,8461,12541,17953,24961,33853,44941,58561,75073,94861,118333,145921,178081,215293,258061,306913,362401,425101,495613,574561,662593,760381,868621,988033,1119361
mov $1,$0
pow $0,2
add $0,$1
add $0,2
pow $0,2
sub $0,3
|
#ifndef HENYEYGREENSTEINPHASEFUNCTION_HPP_
#define HENYEYGREENSTEINPHASEFUNCTION_HPP_
#include "PhaseFunction.hpp"
namespace Tungsten {
class HenyeyGreensteinPhaseFunction : public PhaseFunction
{
float _g;
inline float henyeyGreenstein(float cosTheta) const;
public:
HenyeyGreensteinPhaseFunction();
... |
; A077847: Expansion of (1-x)^(-1)/(1-2*x-2*x^2+2*x^3).
; 1,3,9,23,59,147,367,911,2263,5615,13935,34575,85791,212863,528159,1310463,3251519,8067647,20017407,49667071,123233663,305766655,758666495,1882398975,4670597631,11588660223,28753717759,71343560703,177017236479,439214158847
add $0,1
seq $0,52987 ; Expansion of (1... |
; A104638: Number of odd digits in n-th prime.
; 0,1,1,1,2,2,2,2,1,1,2,2,1,1,1,2,2,1,1,2,2,2,1,1,2,2,2,2,2,3,2,3,3,3,2,3,3,2,2,3,3,2,3,3,3,3,2,1,1,1,2,2,1,2,2,1,1,2,2,1,1,2,2,3,3,3,3,3,2,2,3,3,2,3,3,2,2,3,1,1,2,1,2,2,2,1,1,2,1,1,1,2,1,2,2,2,2,2,2,2
seq $0,40 ; The prime numbers.
seq $0,196564 ; Number of odd digits in... |
;
; ANSI Video handling for the Epson PX4
; By Stefano Bodrato - Nov 2014
;
; Clean a text line
;
; in: A = text row number
;
;
; $Id: f_ansi_dline.asm,v 1.1 2015/11/05 16:08:04 stefano Exp $
;
PUBLIC ansi_del_line
EXTERN base_graphics
.ansi_del_line
ld de,32*8
ld b,a
ld hl,$e000
and a
jr z,zline
.lloop
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x29c5, %rsi
lea addresses_D_ht+0x4093, %rdi
nop
nop
nop
xor $33089, %r9
mov $82, %rcx
rep movsb
nop
nop
nop
xor $56436, %r14
lea addresses_WC_ht+0x11593, %r12
nop
nop
nop
nop
and $7324,... |
dnl AMD64 mpn_gcd_11 optimised for AMD BD2, BD3, BT2.
dnl Based on the K7 gcd_1.asm, by Kevin Ryde. Rehacked for AMD64 by Torbjorn
dnl Granlund.
dnl Copyright 2000-2002, 2005, 2009, 2011, 2012, 2017, 2019 Free Software
dnl Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Libra... |
; A101375: a(n) = n*(n+1)*(n^2-2*n+2)/2.
; 0,1,6,30,100,255,546,1036,1800,2925,4510,6666,9516,13195,17850,23640,30736,39321,49590,61750,76020,92631,111826,133860,159000,187525,219726,255906,296380,341475,391530,446896,507936,575025,648550,728910,816516,911791,1015170,1127100,1248040,1378461,1518846,1669690,1831500,2004... |
;
; Camputers Lynx C Library
;
; getk() Read key status
;
; Stefano Bodrato - 2014
;
;
; $Id: getk.asm,v 1.2 2015/01/21 08:09:27 stefano Exp $
;
PUBLIC getk
.getk
call $9bd
ld l,a
ld h,0
ret
|
; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; shadowssdt asm stub for 6.2.9200-sp0-windows-8 amd64
option casemap:none
option prologue:none
option epilogue:none
.code
; ULONG64 __stdcall NtUserYieldTask( );
_6_2_9200_sp0_windows_8_NtUserYieldTask PROC STDCALL
mov r10 , rcx
mov eax , 4096
;syscal... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xa5c1, %r8
nop
nop
inc %rcx
movb $0x61, (%r8)
nop
inc %r15
lea addresses_D_ht+0x11d1, %rsi
lea addresses_normal_ht+0x102c1, %rdi
nop
dec %rdx
mov $29, %rcx
rep movsl
xor $17999,... |
/*
FreeRTOS V8.2.3 - Copyright (C) 2015 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#define BOOST_TEST_MODULE DCU Test Suite
#include "test_dcu.h"
#include "chainparams.h"
#include "consensus/consensus.h"
#i... |
#include <iostream>
#include "type_name_rt.hpp"
#include "type_name_pt.hpp"
// std::array<char> output operator, for type_name_pt output
template <size_t N>
std::ostream& operator<<(std::ostream& o, std::array<char,N> const& a)
{
for (char c : a) o.put(c);
return o;
}
constexpr char static_var{};
int main()
... |
data1 dw 0x0001
data3 db 0x12
mov ax, [data1]
div word [data1]
add word [data1], 0x1234
xor word [data1], 0x1234
div byte [0xf0]
xor al,[data3]
div byte [data1]
jmp near start
start: mov ax,0
mov byte [data],0
data db 0x55,0xaa
jmp 0x2000:0x5000
mov ax, 21015
mov bl, 10
div bl
and cl,0xf0 |
engine_flag: MACRO
; location, bit
; (all locations are in WRAM bank 1)
dwb \1 + (\2 / 8), 1 << (\2 % 8)
ENDM
EngineFlags:
; entries correspond to ENGINE_* constants
; pokegear
engine_flag wPokegearFlags, POKEGEAR_RADIO_CARD_F ; $0
engine_flag wPokegearFlags, POKEGEAR_MAP_CARD_F
engine_flag wPokegearFlags, POKEG... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xed75, %rsi
lea addresses_WT_ht+0x1aa, %rdi
clflush (%rsi)
nop
dec %r9
mov $51, %rcx
rep movsb
nop
nop
nop
add %r9, %r9
lea addresses_D_ht+0xee9d, %rbp
nop
nop
nop
sub $531... |
// Copyright 2017-2018 Chabloom LC
//
// 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 agreed to ... |
; A130103: Expansion of e.g.f. e^(2x)-(1+x)*e^x+x.
; 0,1,1,4,11,26,57,120,247,502,1013,2036,4083,8178,16369,32752,65519,131054,262125,524268,1048555,2097130,4194281,8388584,16777191,33554406,67108837,134217700,268435427,536870882,1073741793,2147483616,4294967263,8589934558,17179869149,34359738332,68719476699,1374389534... |
; cpu_m68k.asm - 6502 CPU emulation for Atari Falcon port
;
; Copyright (C) 2001 Karel Rous (empty head)
; Copyright (C) 2001-2003 Atari800 development team (see DOC/CREDITS)
;
; This file is part of the Atari800 emulator project which emulates
; the Atari 400, 800, 800XL, 130XE, and 5200 8-bit computers.
;... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x9e54, %rcx
nop
nop
nop
nop
nop
cmp $20548, %r12
movups (%rcx), %xmm0
vpextrq $1, %xmm0, %rdi
nop
sub %r9, %r9
lea addresses_WT_ht+0x6334, %rsi
lea addresses_UC_ht+0x163b9, %rdi
nop... |
; A037513: Base-4 digits are, in order, the first n terms of the periodic sequence with initial period 2,0,1.
; 2,8,33,134,536,2145,8582,34328,137313,549254,2197016,8788065,35152262,140609048,562436193,2249744774,8998979096,35995916385,143983665542,575934662168,2303738648673,9214954594694,36859818378776,147439273515105... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; allocate 16 byte aligned stack space for the packed values
lea rcx, [rsp-33]
and rcx, 0xfffffffffffffff0
; load a 128 bit value into xmm0
mov DWORD [rcx], 0x55555555
mov DWORD [rcx+4], 0x14530451
mov DWORD [rcx+8], 0x1badb002
mov... |
/*****************************************************************************
*
* Rokko: Integrated Interface for libraries of eigenvalue decomposition
*
* Copyright (C) 2012-2020 Rokko Developers https://github.com/t-sakashita/rokko
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* fi... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r9
push %rdi
push %rdx
lea addresses_UC_ht+0x4202, %rdi
nop
nop
nop
nop
nop
sub %r9, %r9
mov (%rdi), %r10w
nop
add $6102, %r9
lea addresses_UC_ht+0x181f2, %r13
nop
nop
nop
nop
nop
dec %r11
movups (%r13), %xmm4
vpextrq $0, %xmm4, %rdx
nop
n... |
;
;==================================================================================================
; HDSK DISK DRIVER
;==================================================================================================
;
; IO PORT ADDRESSES
;
HDSK_IO .EQU $FD
;
HDSK_CMDNONE .EQU 0
HDSK_CMDRESET .EQU 1
H... |
; A186271: a(n)=Product{k=0..n, A001333(k)}.
; Submitted by Jamie Morken(s1)
; 1,1,3,21,357,14637,1449063,346326057,199830134889,278363377900377,936136039878967851,7600488507777339982269,148977175240943640992454669,7049748909576694035403947391749,805384464676770256686653161875581007
mov $1,1
mov $2,1
lpb $0
sub $0,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1b97, %rsi
lea addresses_normal_ht+0x1d197, %rdi
nop
dec %r13
mov $80, %rcx
rep movsl
nop
nop
cmp %r15, %r15
lea addresses_normal_ht+0x5324, %r9
add %r15, %r15
vmovups (%r9),... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Epson 48-jet driver
FILE: epson48bjc800MInfo.asm
AUTHOR: Dave Durran
REVISION HISTORY:
Name Date Description
---- ---- ----------... |
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_math
PUBLIC l_mulu_16_8x8
; compute: hl = l * e
; alters : af, bc, de, hl
IF __CPU_Z180__ && ((__CLIB_OPT_IMATH = 0) || (__CLIB_OPT_IMATH = 100))
l_mulu_16_8x8:
ld h,e
mlt hl
ret
ELSE
IF __CPU_Z80N__ && ((__CLIB_OPT_IMATH = 0) || (__C... |
#ifndef NETLIB_IO_STREAM_HANDLER_HPP
#define NETLIB_IO_STREAM_HANDLER_HPP
// Copyright 2014 Jelle Van den Driessche.
// 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)
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#... |
/*
* Copyright (c) 1999, 2011, 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 ... |
PAGE 75, 132
TITLE Lunar_Lander - John Lockwood - 3/97
COMMENT %
LUNAR LANDER
-------------------
ECE291: Machine Problem 4
Prof. John W. Lockwood
Unversity of Illinois, Dept. of Electrical & Computer Engineering
Spring 1997
Documentation: http://... |
; A060372: p(n), positive part of n when n=p(n)-q(n) with p(n), q(n), p(n)+q(n) in A005836, integers written without 2 in base 3.
; Submitted by Jon Maiga
; 0,1,3,3,4,9,9,10,9,9,10,12,12,13,27,27,28,27,27,28,30,30,31,27,27,28,27,27,28,30,30,31,36,36,37,36,36,37,39,39,40,81,81,82,81,81,82,84,84,85,81,81,82,81,81,82,84,8... |
; A141913: Primes congruent to 9 mod 23.
; Submitted by Jon Maiga
; 101,193,239,331,607,653,883,929,1021,1297,1481,1619,1987,2309,2447,2539,2677,2861,2953,2999,3137,3229,3413,3643,3919,4057,4241,4517,4793,4931,5023,5437,5483,5851,5897,6173,6311,6449,6679,6863,7001,7369,7507,7691,7829,8059,8243,8887,8933,9209,9439,9623,... |
;
; jcgryext.asm - grayscale colorspace conversion (MMX)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2011, D. R. Commander.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright n... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x5445, %rdi
clflush (%rdi)
nop
nop
nop
xor $49260, %r13
mov $0x6162636465666768, %rdx
movq %rdx, (%rdi)
dec %rcx
lea addresses_WC_ht+0x1b061, %rsi
lea addresses_WC_ht+0x100d5,... |
; A181176: The minimum absolute value obtainable by partitioning the first n consecutive integers into two sets and subtracting the two sums of the sets.
; 0,1,1,0,2,3,1,2,6,3,1,6,6,1,5,10,4,3,11,8,0,9,13,4,6,17,9,2,14,15,3,10,22,9,5,20,16,1,15,24,8,9,27,16,2,21,25,6,14,35,15,6,28,25,3,20,36,13,11,36,24,1,27,36,10,17,4... |
;
; 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... |
;
; This file is automatically generated
;
; Do not edit!!!
;
; djm 12/2/2000
;
; ZSock Lib function: sock_setssize
XLIB sock_setssize
LIB no_zsock
INCLUDE "packages.def"
INCLUDE "zsock.def"
.sock_setssize
ld a,r_sock_setssize
call_pkg(tcp_all)
ret nc
; We failed..are we installed?
cp rc_pnf
scf ;signal ... |
.386
assume cs:code,ds:data
data segment use16
file db 80 dup('$') ;保存文件名
filePointer dw 0 ;指向文件数据
isPointer dd 0 ;表示当前的阅读的文件位置
countIndex dd 0 ;用于计数,表征文件容量
dataIndex dw 0 ;指示控制台显示的数据量大小
controlLine db 9 dup('$') ;行输出控制的指示符
dataPerPage db 0100h dup('$') ;保存当前显示的文件数据信息
Welco... |
%define SYS_EXIT 60
BITS 64
segment .text
global main
extern printf
print:
mov rdi, format ; set 1st parameter (format)
mov rsi, rax ; set 2nd parameter (current_number)
xor rax, rax ; because printf is varargs
; Stack is already al... |
; tentative move effect constants
; {stat}_(UP|DOWN)(1|2) means that the move raises the user's (or lowers the target's) corresponding stat modifier by 1 (or 2) stages
; {status condition}_side_effect means that the move has a side chance of causing that condition
; {status condition}_effect means that the move causes ... |
; A285185: Expansion of (2*x+4*x^2) / (1-2*x-2*x^2+2*x^3).
; Submitted by Christian Krause
; 0,2,8,20,52,128,320,792,1968,4880,12112,30048,74560,184992,459008,1138880,2825792,7011328,17396480,43164032,107098368,265731840,659332352,1635931648,4059064320,10071327232,24988919808,62002365440,153839916032,381706723328,94708... |
; PIO driver sets up the parallel port as a subtype of Serial/Char device.
;
;
; HBIOS initializes driver by:
;
; 1) Calling Pre-initialization
;
; This involves setting up all the data structures describing the devices.
; If possible, do a hardware test to verify it is available for adding to available d... |
global rrf0
global rrf1
global rrf2
global rrf3
global rrf4
global rrf5
global rrf6
global rrf7
global rrf8
global rrf9
global rrfcl
global rrfscl
global rrflt
global rrfeq
global rrfgt
global rrfqm
global rrfat
global rrfA
global rrfB
global rrfC
global rrfD
global rrfE
global rrfF
global rrfG
global rrfH
globa... |
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int minOperation (int arr[], int n) {
int operations = 0;
int i = 0;
int j = n - 1;
while (i < j) {
if (arr[i] == arr[j]) {
i++;
j--;
}
else if (arr[i] < arr[j]) {
i++;
... |
format PE
start:
int3
push 10
push 10
lea eax,[A_character_]
call drawChar64_16
drawChar64_16:
xor edx,edx
xor ecx,ecx
xor ebx,ebx
mov cx,8
dC6416Subrt:
mov dx,8
mov bl,byte [eax]
dC6416Subrt0:
... |
; void SMS_setLineInterruptHandler(void *theHandlerFunction)
SECTION code_clib
SECTION code_SMSlib
PUBLIC _SMS_setLineInterruptHandler
EXTERN asm_SMSlib_setLineInterruptHandler
_SMS_setLineInterruptHandler:
pop af
pop hl
push hl
push af
jp asm_SMSlib_setLineInterruptHandler
|
; Square Root Calculator by Lee Davison
;
; How to calculate the 8-bit unsigned integer square root of an unsigned 16-bit integer.
; By Lee Davison (leeedavison@googlemail.com), 23 July 2001.
; Calculates the 8 bit root and 9 bit remainder of a 16 bit unsigned integer in
; Numberl/Numberh. The result is always in the r... |
; A021165: Decimal expansion of 1/161.
; Submitted by Jamie Morken(s3)
; 0,0,6,2,1,1,1,8,0,1,2,4,2,2,3,6,0,2,4,8,4,4,7,2,0,4,9,6,8,9,4,4,0,9,9,3,7,8,8,8,1,9,8,7,5,7,7,6,3,9,7,5,1,5,5,2,7,9,5,0,3,1,0,5,5,9,0,0,6,2,1,1,1,8,0,1,2,4,2,2,3,6,0,2,4,8,4,4,7,2,0,4,9,6,8,9,4,4,0
add $0,1
mov $1,10
pow $1,$0
mul $1,84
div $1,13... |
; A168053: Expansion of (1-2*x^2-3*x^3)/((1-x)^2*(1+x+x^2)).
; 1,1,-1,-3,-3,-5,-7,-7,-9,-11,-11,-13,-15,-15,-17,-19,-19,-21,-23,-23,-25,-27,-27,-29,-31,-31,-33,-35,-35,-37,-39,-39,-41,-43,-43,-45,-47,-47,-49,-51,-51,-53,-55,-55,-57,-59,-59,-61,-63,-63,-65,-67,-67,-69,-71,-71,-73,-75,-75,-77,-79,-79,-81,-83,-83,-85,-87,... |
_lab2: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "types.h"
#include "user.h"
int main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 83 ec 10 ... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2010-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_... |
// -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Paragraph
// Copyright (c) 2016-2019 Illumina, 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:... |
.model small
.stack 120h
.data
Ecolor byte 04d ;red
.code
main proc
mov AX, @data
mov DS, AX
mov AX, 0
mov ah, 0
mov al, 13H
int 10h
mov CX, 160d
mov DX, 100d
push CX
mov ah, 0ch
;row 1
Exit:
... |
; unsigned char esx_f_mkdir(unsigned char *pathname)
SECTION code_esxdos
PUBLIC esx_f_mkdir
EXTERN asm_esx_f_mkdir
defc esx_f_mkdir = asm_esx_f_mkdir
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _esx_f_mkdir
defc _esx_f_mkdir = esx_f_mkdir
ENDIF
|
; =============================================================================
; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems
; Copyright (C) 2008-2015 Return Infinity -- see LICENSE.TXT
;
; Interrupts
; =============================================================================
; --------------... |
// Copyright 2019 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 "ios/chrome/browser/ui/dialogs/java_script_dialog_metrics.h"
#include "base/metrics/histogram_macros.h"
// Records a histogram for a dialog dis... |
; A343840: a(n) = Sum_{k=0..n}(-1)^(n-k)*binomial(n, k)*|A021009(n, k)|.
; Submitted by Christian Krause
; 1,0,-5,22,9,-1244,14335,-79470,-586943,25131304,-434574909,4418399470,8524321465,-1771817986548,53502570125719,-1052208254769014,11804172888840705,131741085049224400,-12970386000411511733,482732550618027365574,-12... |
; MURDER-SUICIDE
;Example of killing a process with the kill API. API calls found in this example program:
; kill
; Go back in time and identify parent (using ppid API)
; Murder parent, effectively killing current-time self:
; Murder Suicide
section .text
global _start
_start:
; Get Parent Process ID
;-------------... |
;******************************************************************************
;
; host.asm
; IKForth
;
; Unlicense since 1999 by Illya Kysil
;
;******************************************************************************
; Contains words, provided by hosting application.
;***************************************... |
.INCLUDE "joypad.inc"
;;;=========================================================================;;;
.ZEROPAGE
;;; ButtonsHeld: A bitfield indicating which player 1 buttons are currently
;;; being held.
.EXPORTZP Zp_P1ButtonsHeld_u8
Zp_P1ButtonsHeld_u8: .res 1
;;; ButtonsPressed: A bitfield indicating which player... |
; 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... |
#include "stdafx.h"
#include "XMLList.h"
#include "LearningSkill.h"
bool LearningSkill::SetXML( const XMLPaser& ReadXML )
{
XMLList SkillXMLList;
SkillXMLList.Query( ReadXML, _T("Skill") );
long Count = SkillXMLList.GetCount();
if( Count <= 0 )return false;
SkillList.reserve( SkillList.size() + Count );
for( l... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x2f7d, %r15
nop
xor %rdi, %rdi
mov (%r15), %r11
nop
nop
nop
cmp %rbp, %rbp
lea addresses_WC_ht+0x1bf3d, %r11
nop
nop
nop
add $39282, %r15
mov (%r11), %rcx
sub %rbp, %rbp
lea ... |
; nes music_engine.asm
.autoimport on
.importzp sp, sreg, regsave, regbank
.importzp tmp1, tmp2, tmp3, tmp4, ptr1, ptr2, ptr3, ptr4
.importzp Pulse1ControlCache
.importzp Pulse2ControlCache
.importzp TriangleControlCache
.include "nes.asm"
NUMBER_OF_VOICES = 3
.segment "CODE"
; NOTE: Platform specific (NES).
N... |
; A003079: One of the basic cycles in the x->3x-1 (x odd) or x/2 (x even) problem.
; 5,14,7,20,10,5,14,7,20,10,5,14,7,20,10,5,14,7,20,10,5,14,7,20,10,5,14,7,20,10,5,14,7,20,10,5,14,7,20,10,5,14,7,20,10,5,14,7,20,10,5,14,7,20,10,5,14,7,20,10,5,14,7,20,10,5,14,7,20,10,5,14,7,20,10
add $0,2
mul $0,2
mod $0,5
mul $0,2
add... |
org 0x7c00 ; from https://stackoverflow.com/a/32871939
bits 16
cli
mov ax,0x0E61
int 0x10
hlt
times 510 - ($-$$) db 0
dw 0xaa55
|
;******************************************************************************
;* TI ARM C/C++ Codegen Unix v16.9.6.LTS *
;* Date/Time created: Thu Dec 28 17:45:45 2017 *
;******************************************************************************
... |
; Dummy function to keep rest of libs happy
;
; $Id: readbyte.asm,v 1.5 2016-03-06 21:39:54 dom Exp $
;
SECTION code_clib
PUBLIC readbyte
PUBLIC _readbyte
.readbyte
._readbyte
ret
|
; A264619: a(0) = 1; for n>0, working in binary, write n followed by 1 then n-reversed (including leading zeros); show result in base 10.
; 1,7,21,31,73,93,107,127,273,313,341,381,403,443,471,511,1057,1137,1193,1273,1317,1397,1453,1533,1571,1651,1707,1787,1831,1911,1967,2047,4161,4321,4433,4593,4681,4841,4953,5113,5189... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x1",
"RBX": "0x0"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov r15, 0xe0000000
mov r10, 0x2
mov r11, 0x0
mov r12, 0x1
cmp r10d, r12d
mov rax, 0
mov rbx, 0
setnz al
setz bl
hlt
|
#include <vector>
#include <iostream>
#include <cstdlib>
#include <algorithm>
int BinarySearch(std::vector<int>& arr, int value){
if(arr.empty()){return -1;}
int start = 0;
int end = arr.size()-1;
while(start<end){
int middle = (start+end)/2;
if(arr[middle]==value){return middle;}
if(arr[middle] > ... |
; A061006: a(n) = (n-1)! mod n.
; 0,1,2,2,4,0,6,0,0,0,10,0,12,0,0,0,16,0,18,0,0,0,22,0,0,0,0,0,28,0,30,0,0,0,0,0,36,0,0,0,40,0,42,0,0,0,46,0,0,0,0,0,52,0,0,0,0,0,58,0,60,0,0,0,0,0,66,0,0,0,70,0,72,0,0,0,0,0,78,0,0,0,82,0,0,0,0,0,88,0,0,0,0,0,0,0,96,0,0,0,100,0,102,0,0,0,106,0,108,0,0,0,112,0,0,0,0,0,0,0,0,0,0,0,0,0,126... |
; A005030: a(n) = 5*3^n.
; 5,15,45,135,405,1215,3645,10935,32805,98415,295245,885735,2657205,7971615,23914845,71744535,215233605,645700815,1937102445,5811307335,17433922005,52301766015,156905298045,470715894135,1412147682405,4236443047215,12709329141645,38127987424935,114383962274805,343151886824415,1029455660473245,30... |
;
; Small C+ Runtime Library
;
; Z88 Application functions
;
; *** Z88 SPECIFIC FUNCTION - probably no equiv for your machine! ***
;
; 11/4/99
;
; Save User Screen
;
; int savescr(void)
;
; Returns 0 on failure, or handle on success
XLIB savescr
... |
; vim:filetype=nasm ts=8
; libFLAC - Free Lossless Audio Codec library
; Copyright (C) 2001-2009 Josh Coalson
; Copyright (C) 2011-2016 Xiph.Org Foundation
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
;
;... |
#include <math/subtract/subtract.h>
int math::subtract( int a, int b )
{
return a - b;
}
|
//
// bind_no_placeholders_test.cpp - test for BOOST_BIND_NO_PLACEHOLDERS
//
// Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd.
// Copyright (c) 2001 David Abrahams
// Copyright (c) 2015 Peter Dimov
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.