text
stringlengths
1
1.05M
; A019550: a(n) is the concatenation of n and 2n. ; 12,24,36,48,510,612,714,816,918,1020,1122,1224,1326,1428,1530,1632,1734,1836,1938,2040,2142,2244,2346,2448,2550,2652,2754,2856,2958,3060,3162,3264,3366,3468,3570,3672,3774,3876,3978,4080,4182,4284,4386,4488,4590,4692,4794,4896,4998,50100,51102,52104,53106,54108,55110,...
; A255465: a(n) = A255464(2^n-1). ; Submitted by Jon Maiga ; 1,6,22,90,358,1434,5734,22938,91750,367002,1468006,5872026,23488102,93952410,375809638,1503238554,6012954214,24051816858,96207267430,384829069722,1539316278886,6157265115546,24629060462182,98516241848730,394064967394918,1576259869579674,6305039478318694,25220...
; A090889: Double partial sums of (n * its dyadic valuation). ; 0,0,2,4,14,24,40,56,96,136,186,236,310,384,472,560,712,864,1034,1204,1414,1624,1856,2088,2392,2696,3026,3356,3742,4128,4544,4960,5536,6112,6722,7332,8014,8696,9416,10136,10976,11816,12698,13580 lpb $0 mov $2,$0 sub $0,1 seq $2,249152 ; Exponent of 2...
/* Copyright 2015 The TensorFlow 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 a...
; A011800: Number of labeled forests of n nodes each component of which is a path. ; Submitted by Jon Maiga ; 1,1,2,7,34,206,1486,12412,117692,1248004,14625856,187638716,2614602112,39310384192,634148436104,10923398137576,200069534481616,3882002527006352,79535575126745632,1715658099715217584,38862145700256398816,9221964...
; Copyright 2021 IBM 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.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writi...
#include <map> #include <exception> #include <string> #include <cstdint> #include <iostream> #include <math.h> #include <fc/exception/exception.hpp> /* #include <boost/multiprecision/cpp_dec_float.hpp> #include <boost/multiprecision/cpp_bin_float.hpp> #include <boost/multiprecision/cpp_bin_float.hpp> #include <boost/ra...
#include <boost/assign.hpp> #include <string> #include <map> namespace locvar { std::map<std::string, std::string> trigger_data_ui = boost::assign::map_list_of ("GetTriggeringTrigger","trigger") ("GetTriggerEventId","eventid") ("GetEventGameState","gamestate") ("GetWinningPlayer","player") ("GetTriggeringRe...
/* Copyright (C) 2001, 2002 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distribut...
%include "macros/patch.inc" %include "macros/datatypes.inc" %include "TiberianSun.inc" ;;; Force RandomLoopDelay to use ScenarioClass.CriticalRandomNumber to keep everything in sync. hack 0x00415AE7 mov eax, [0x007E2438] ; ScenarioClass lea ecx, [eax+0x218] ; CriticalRandomNumber call 0x00...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_AF|FLAG_OF ;TEST_FILE_META_END ; SHR8ri mov ch, 0x8 ;TEST_BEGIN_RECORDING shr ch, 0x2 ;TEST_END_RECORDING
db EKANS ; pokedex id db 35 ; base hp db 60 ; base attack db 44 ; base defense db 55 ; base speed db 40 ; base special db POISON ; species type 1 db POISON ; species type 2 db 255 ; catch rate db 62 ; base exp yield INCBIN "pic/gsmon/ekans.pic",0,1 ; 55, sprite dimensions dw EkansPicFront dw EkansPicBack ; attacks know...
/* vim: set sw=2: * Copyright (c) 2009, Gennady Bystritsky <bystr@mac.com> * * Distributed under the MIT Licence. * This is free software. See 'LICENSE' for details. * You must read and accept the license prior to use. * * Author: Gennady Bystritsky */ #include <iostream> #include <sk/util/IllegalArgument...
; char __FASTCALL__ *strlwr(char *s) ; change string to lower case ; 12.2006 aralbrec ; enter: hl = char *s ; exit : hl = char *s ; uses : af XLIB strlwr XDEF ASMDISP_STRLWR LIB asm_tolower .strlwr push hl dec hl .loop inc hl ld a,(hl) or a jr z, exit call asm_tolower ld (hl),a jp...
################################################# # exe4 MIPS assembly # # author: Rogério Peixoto # ################################################# .data .text main: #int a = 10; li $t1, 10 # if (a>0) { b = a + 10} else { b = a - 10 } beq $t1, $zero, else ...
; A133280: Triangle formed by: 1 even, 2 odd, 3 even, 4 odd, ... starting with zero. ; Submitted by Simon Strandgaard ; 0,1,3,4,6,8,9,11,13,15,16,18,20,22,24,25,27,29,31,33,35,36,38,40,42,44,46,48,49,51,53,55,57,59,61,63,64,66,68,70,72,74,76,78,80,81,83,85,87,89,91,93,95,97,99,100,102,104,106,108,110,112,114,116,118,12...
;; ;; Copyright (c) 2012-2018, 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...
; A055843: Expansion of (1+3*x)/(1-x)^10. ; 1,13,85,385,1375,4147,11011,26455,58630,121550,238238,445094,797810,1379210,2309450,3759074,5965487,9253475,14060475,20967375,30735705,44352165,63081525,88529025,122713500,168152556,227961228,305965660,406833460,536222500,700950052,909184276,1170660205,1496922505,1901597425,2...
//===-- RISCVAsmParser.cpp - Parse RISCV assembly to MCInst instructions --===// // // 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 // //===---------------------------...
; A315033: Coordination sequence Gal.5.129.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,5,9,15,19,25,29,35,39,44,49,53,59,63,69,73,79,83,88,93,97,103,107,113,117,123,127,132,137,141,147,151,157,161,167,171,176,181,185,191,195,...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld b, 91 call lwaitly_b ld a, b1 ldff(40), a ld a, 00 ldff(4a), a ld a, a6 ldff(4b), a ld c, 41 ld b, 03 lbegin_waitm3: ldff a, (c) and a, b cmp a, b jrnz lbegin_waitm3 ld a, 20 ldff(c), a x...
.model small outpb macro mov dx,pb out dx,al endm outpc macro mov dx,pc out dx,al endm printf macro l lea dx,l mov ah,9 int 21h endm exit macro mov ah,4ch int 21h endm .data pa equ 1190h pb equ 1191h cr equ 1193h pc equ 1192h m1 db 10,13,"any key to exit:$" fire db 8eh,0cfh,0afh,86h help d...
;/*! ; @file ; ; @ingroup fapi ; ; @brief BmsGetNumButtons DOS wrapper ; ; (c) osFree Project 2018, <http://www.osFree.org> ; for licence see licence.txt in root directory, or project website ; ; This is Family API implementation for DOS, used with BIND tools ; to link required API ; ; @author Yuri Prok...
; Compile: ; vasm6502_oldstyle.exe 03-rotate-right.asm -o 03-rotate-right.bin -c02 -dotdir -Fbin .org $8000 ; Base address of the 6522 VIA. VIA_BASE_ADDR = $6000 ; 6522 VIA ports and registers. PORT_B = VIA_BASE_ADDR + 0 PORT_A = VIA_BASE_ADDR + 1 DDRB = VIA_BASE_ADDR + 2 DDRA = VIA_BA...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 30/9/98 ; ; ; $Id: undraw.asm $ ; ; CALLER LINKAGE FOR FUNCTION POINTERS ; ----- void undraw(int x, int y, int x2, int y2) IF !__CPU_INTEL__ & !__CPU_GBZ80__ SECTION c...
assert Sym SECTION "test", ROM0 db 69 Sym:
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1b2d7, %rax nop nop nop nop cmp $32064, %rsi and $0xffffffffffffffc0, %rax vmovaps (%rax), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %r12 nop add $3164, %r13 le...
; A327329: Twice the sum of all divisors of all positive integers <= n. ; 2,8,16,30,42,66,82,112,138,174,198,254,282,330,378,440,476,554,594,678,742,814,862,982,1044,1128,1208,1320,1380,1524,1588,1714,1810,1918,2014,2196,2272,2392,2504,2684,2768,2960,3048,3216,3372,3516,3612,3860,3974,4160,4304,4500,4608,4848,4992 add...
dnl AMD64 mpn_mul_1. dnl Copyright 2003-2005, 2007, 2008, 2012 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as pub...
/*! * @copyright * Copyright 2017 Tymoteusz Blazejczyk * * @copyright * 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 * * @copyright * http://www.apache.org/licenses/LICENSE-2.0 ...
.model small .stack 100h .data .code main proc mov cx,244 mov dl,0 top: mov ah,2 int 21h inc dl dec cx jnz top ;lala mov ah,2 mov dl,'v' int 21h mov ah,9 mov dl,4Ch int 21h main endp end main
section .data heapByte Debug, ' G::Error' heapByte numOut, ' ' heapTega piValue, 3.141592653589793238462 heapDuo savp, 0 heapDuo seedVal, 0 Array words, 12 Array preWord, 12 savePoint times 24 db 0 Array variables, 160 Array sv, 20 Array hydSave, 24 Array matSave, 24 commands: db 'int ...
; A038723: a(n) = 6*a(n-1) - a(n-2), n >= 2, a(0)=1, a(1)=4. ; 1,4,23,134,781,4552,26531,154634,901273,5253004,30616751,178447502,1040068261,6061962064,35331704123,205928262674,1200237871921,6995498968852,40772755941191,237641036678294,1385073464128573 mov $1,4 mov $2,1 lpb $0 sub $0,1 add $1,$2 add $2,$1 add ...
; A100150: Structured snub cubic numbers. ; 1,24,107,288,605,1096,1799,2752,3993,5560,7491,9824,12597,15848,19615,23936,28849,34392,40603,47520,55181,63624,72887,83008,94025,105976,118899,132832,147813,163880,181071,199424,218977,239768,261835,285216,309949,336072,363623,392640,423161,455224,488867,524128,561045,599656...
; A083658: a(n) = a(n-1) + a(n-2) + gcd(a(n-1),a(n-2)) for n>1, with a(0)=1, a(1)=1. ; 1,1,3,5,9,15,27,45,81,135,243,405,729,1215,2187,3645,6561,10935,19683,32805,59049,98415,177147,295245,531441,885735,1594323,2657205,4782969,7971615,14348907,23914845,43046721,71744535,129140163,215233605,387420489 sub $0,1 lpb $0,1 ...
; A276254: With respect to the dictionary ordering of words over the alphabet {a,b}, i.e., e,a,b,aa,ab,ba,bb,aaa,..., the sequence is the characteristic function of the language of words that have no consecutive b's. ; 1,1,1,1,1,1,0,1,1,1,0,1,1,0,0,1,1,1,0,1,1,0,0,1,1,1,0,0,0,0,0,1,1,1,0,1,1,0,0,1,1,1,0,0,0,0,0,1,1,1,0...
; ; ----------------- Stereo Editor Character Set ------------------ ; .org $7000 .obj "002" ; ; Character code 0 ; .bitmap " **** " .bitmap " ** ** " .bitmap " ** *** " .bitmap " ** *** " .bitmap " ** " .bitmap " ** * " .bitmap " **** " .bitmap " " ; ; Charac...
;; ;; Copyright (c) 2020-2022, Intel Corporation ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, ;; this list of conditions and...
;------------------------------------------------------------------------------ ; ; 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 (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 <list> #include <set> #include "base/files/scoped_temp_dir.h" #include "base/memory/ref_counted.h" #include "base/memory/weak_ptr.h" #includ...
; A214922: Numbers of the form x^2 + y^2 + z^3 + w^3 (x, y, z, w >= 0). ; 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54 mov $1,$0 lpb $0,1 mov $0,22 add $1,1 lpe
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld a, 30 ldff(00), a ld a, 01 ldff(4d), a stop, 00 ld a, ff ldff(45), a ld b, 91 call lwaitly_b ld hl, fe00 ld d, 10 ld a, d ld(hl++), a ld a, 08 ld(hl++), a inc l inc l ld a, d ld(hl++), ...
; A202689: a(n) = (2n)!(n+1)! / 2^(2n). ; Submitted by Jon Maiga ; 1,1,9,270,18900,2551500,589396500,214540326000,115851776040000,88626608670600000,92614806060777000000,128364121200236922000000,230285233433225038068000000,523898906060586961604700000000,1485253398681764036149324500000000,51686818274125388457996492600000...
#include<bits/stdc++.h> // g++ -std=c++17 -Wl,-stack_size -Wl,0x10000000 main.cpp #define mt make_tuple #define mp make_pair #define pu push_back #define INF 1000000001 #define MOD 1000000007 #define EPS 1e-6 #define ll long long int #define ld long double #define fi first #define se second #define all(v) v.begin(),v.e...
<?hh // strict namespace Zynga\Framework\Testing\TestCase\V2\Test\Mock; use Zynga\Framework\Exception\V1\Exception; use Zynga\Framework\Testing\TestCase\V2\Base; class BrokenDoHideLogs extends Base { public function doHideLogs(): void { throw new Exception('We logged but failed'); } }
#include "glfw_view.hpp" #include "glfw_backend.hpp" #include "glfw_renderer_frontend.hpp" #include "ny_route.hpp" #include "test_writer.hpp" #include <mbgl/annotation/annotation.hpp> #include <mbgl/gfx/backend.hpp> #include <mbgl/gfx/backend_scope.hpp> #include <mbgl/map/camera.hpp> #include <mbgl/renderer/renderer.h...
; A130840: a(n) = floor((1/16)*(16 + 2^n - 8*n + 8*n^2)). ; 1,1,2,4,8,13,20,30,45,69,110,184,323,591,1116,2154,4217,8329,16538,32940,65727,131283,262376,524542,1048853,2097453,4194630,8388960,16777595,33554839,67109300,134218194,268435953,536871441,1073742386,2147484244,4294967927,8589935259,17179869888,34359739110,687...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft import six %> <%docstring>getpriority(which, who) -> str Invokes the syscall getpriority. See 'man 2 getpriority' for more information. Arguments: which(priority_which_t): which who(id_t): who Returns: int </%docstri...
#include <iostream> #include <fstream> #include <d3dx9.h> #include "FontApp.h" #pragma region Exemple: Destructeur Virtuel class A { public: A(); A(int i); ~A(); protected: int i; }; A::A(){} A::A(int i){ this->i = i; } A::~A(){ std::cout << "A Destroyed!"; } class B : public A { public: B(); B(int i); ~B()...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Polcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcserver.h" #include "base58.h" #include "init.h" #include "random.h" #inc...
############################################################################### # Copyright 2019 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
[org 0x0100] mov bx,0 mov cx,0; mov dx,0 mov al,[num1] loop1: loop2: mov dl,[num1+bx] add cl,1 CMP dl,al JE counting add bx,2 CMP cl,15 JNE loop2 body1: mov bx,0 add bx,2 mov al,[num1+bx] mov bx,0 J...
// Copyright (C) 2001 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 published by the // Free Software Foundation; either version 2, or (at your option)...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2018, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; Lfence.nasm ; ; Abstract: ; ; Performs a serializing operation on all load-from-memory ins...
; A130722: The twice repeated nonnegative integers at even indices, the non-repeated nonnegative integers at odd indices. ; 0,0,0,1,1,2,1,3,2,4,2,5,3,6,3,7,4,8,4,9,5,10,5,11,6,12,6,13,7,14,7,15,8,16,8,17,9,18,9,19,10,20,10,21,11,22,11,23,12,24,12,25,13,26,13,27,14,28,14,29,15,30,15,31,16,32,16,33,17,34,17,35,18,36,18,3...
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x15396, %r10 nop nop sub $28241, %rbx movups (%r10), %xmm4 vpextrq $1, %xmm4, %r13 nop nop dec %rdi lea addresses_UC_ht+0x1d696, %rdx nop nop nop nop dec %r11 and $0xfffffffff...
#include <cstddef> #include <cmath> template <class Vec> struct VecOperators { constexpr Vec& operator-=(const Vec& rhs) noexcept { return (*this += -rhs); } constexpr Vec& operator+(const Vec& rhs) noexcept { return Vec(*this) += rhs; } constexpr Vec& operator-(const Vec&...
; A103290: n*(n-1)*(n^2-n+4)/6. ; 0,0,2,10,32,80,170,322,560,912,1410,2090,2992,4160,5642,7490,9760,12512,15810,19722,24320,29680,35882,43010,51152,60400,70850,82602,95760,110432,126730,144770,164672,186560,210562,236810,265440,296592,330410,367042 bin $0,2 add $0,1 pow $0,2 mov $1,$0 div $1,3 mul $1,2
; A250130: Numerator of the harmonic mean of the first n primes. ; 2,12,90,840,11550,180180,3573570,77597520,2007835830,64696932300,2206165391430,89048857617720,3955253425853730,183158658643380420,9223346738827371150,521426535635040715680,32686925952621614864190,2111190864469325477698860,149308109470525074061702710,111...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r9 push %rbp push %rbx push %rdi lea addresses_A_ht+0xffec, %rbx clflush (%rbx) nop nop nop sub $48960, %r9 movb (%rbx), %r10b nop dec %rdi lea addresses_D_ht+0x950c, %r9 nop nop nop nop nop cmp $21791, %rdi movb (%r9), %bl nop nop nop nop add $8961, %rdi pop...
section .text global _start _start: mov edx,len mov ecx,msg mov ebx,1 mov eax,4 int 0x80 mov eax,1 int 0x80 mov rax, 0x60 mov dil, 0 int 0x80 section .data msg db 'Hello, friend.',0xa len equ $...
; A306285: Numbers congruent to 4 or 21 mod 26. ; 4,21,30,47,56,73,82,99,108,125,134,151,160,177,186,203,212,229,238,255,264,281,290,307,316,333,342,359,368,385,394,411,420,437,446,463,472,489,498,515,524,541,550,567,576,593,602,619,628,645,654,671,680,697,706,723,732,749,758,775,784,801,810,827,836,853,862,879,888,905...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0xe290, %rsi lea addresses_D_ht+0x19942, %rdi clflush (%rsi) add %r13, %r13 mov $30, %rcx rep movsb nop nop nop nop nop sub $32238, %r8 lea addresses_WC_ht+0x1edc0, %r15 nop nop nop ...
[BITS 32] ; EggHunter usando a função NtAccessCheckAndAuditAlarm ; Autor: skape mmiller[at]hick.org ; Ajustes por: Helvio Junior (M4v3r1cK) ; ; Procedimento de compilação do EggHunter ; nasm egghunter1.asm -o egghunter -l egghunter.lst ; cat egghunter | msfvenom -p - -a x86 --platform win -e generic/none -f python ; ...
.686 .model flat,stdcall option casemap:none include .\bnlib.inc include .\bignum.inc .code _bn_sub_ignoresign proc c uses edi esi; uses eax,ecx,edx ; x = x - y , x >= y mov ecx,[edi].BN.dwSize lea esi,[esi].BN.dwArray lea edx,[edi].BN.dwArray xor eax,eax; clear carry .repeat mov eax,[esi] lea esi,[esi+4] ...
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR THE NIRVANA ENGINE - by Einar Saukas ; ; See "nirvana-.h" for further details ; ---------------------------------------------------------------- ; void NIRVANAM_fillC(unsigned int attr, unsigned int lin, unsigned int col) ...
; A165850: Totally multiplicative sequence with a(p) = 29. ; Submitted by Jon Maiga ; 1,29,29,841,29,841,29,24389,841,841,29,24389,29,841,841,707281,29,24389,29,24389,841,841,29,707281,841,841,24389,24389,29,24389,29,20511149,841,841,841,707281,29,841,841,707281,29,24389,29,24389,24389,841,29,20511149,841,24389,841,243...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x11bd5, %rsi lea addresses_normal_ht+0x8a95, %rdi nop xor $58181, %rdx mov $32, %rcx rep movsw nop nop nop nop and $50324, %r10 lea addresses_WT_ht+0x18b85, %rdi nop inc %rbx mov (%rdi...
; A171555: Numbers of the form prime(n)*(prime(n)-1)/4. ; 5,39,68,203,333,410,689,915,1314,1958,2328,2525,2943,3164,4658,5513,6123,7439,8145,9264,9653,13053,13514,14460,16448,18023,19113,19670,21389,24414,25043,28308,30363,31064,34689,37733,39303,40100,41718,44205,46764,50288,52098,53015,64643,67730,73035,77423,80798,8...
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Author: Piyush Agram # Copyright 2014, by the California Institute of Technology. ALL RIGHTS RESERVED. # United States Government Sponsorship acknowledged. # Any commercial use must be negotiated with the Office of Technology Transfer at # th...
adc a', (hl) ; Error adc a', (ix) ; Error adc a', (ix+127) ; Error adc a', (ix-128) ; Error adc a', (iy) ; Error adc a', (iy+127) ; Error adc a', (iy-128) ; Error adc a', -128 ; Error ...
#include "util.h" #include "../simu/Global.h" #include <cstring> #include <cstdio> using namespace std; int checksum(Packet& pkt){ return pUtils->calculateCheckSum(pkt); } void timer_(RandomEventTarget identity, int id, int timeout){ pns->startTimer(identity, timeout, id); } void stoptimer_(RandomEventTarget...
db "BELL@" ; species name db "It emits high-" next "frequency cries" next "that people can't" page "hear. Once it" next "starts, it can cry" next "for a long time.@"
; ; This file is automatically generated ; ; Do not edit!!! ; ; djm 12/2/2000 ; ; ZSock Lib function: sock_write SECTION code_clib PUBLIC sock_write PUBLIC _sock_write EXTERN no_zsock INCLUDE "packages.def" INCLUDE "zsock.def" .sock_write ._sock_write ld a,r_sock_write call_pkg(tcp_all) ret nc ; We ...
############################################################################### # Copyright 2019 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; InterlockedDecrement.Asm ; ; Abstract: ; ; InterlockedDecrement function ; ; Not...
############################################################################### # Copyright 2019 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
// Copyright (C) 2000 Stephen Cleary (shammah@voyager.net) // // This file can be redistributed and/or modified under the terms found // in "copyright.html" // This software and its documentation is provided "as is" without express or // implied warranty, and with no claim as to its suitability for any purpose. // //...
; A090995: Number of meaningful differential operations of the n-th order on the space R^10. ; Submitted by Jon Maiga ; 10,18,32,58,104,188,338,610,1098,1980,3566,6428,11580,20870,37602,67762,122096,220018,396448,714388,1287266,2319594,4179738,7531660,13571542,24455124,44066548,79405254,143083226,257827186,464588384,83...
dnl mpn_mod_1_1 dnl Copyright 2011 The Code Cavern dnl This file is part of the MPIR Library. dnl The MPIR Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the Free Software Foundation; either version 2.1 of the ...
START_POS_LOC EQU 40H END_POS_LOC EQU 41H VRAM_SIZE EQU 08D START_ADDR EQU 30H END_ADDR EQU 37H ORG 00H SJMP MAIN ORG 30H MAIN: MOV START_POS_LOC, #START_ADDR MOV END_POS_LOC, #END_ADDR ACALL SCAN_ROW HALT: SJMP MAIN ;=========================================================================== SCAN_ROW: AC...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x1b159, %r8 nop nop nop nop xor $14511, %r9 vmovups (%r8), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %rcx sub $5318, %r12 lea addresses_UC_ht+0x18f66, %rsi lea addr...
# programa que imprimia por pantalla un vector que acaba en -1. .data vector: .byte 2, 3, 1, 8, -1 .text li $t0, 0 # t0 = 0 # lb $t1, vector($t0) # $t1 = 2 # addi $t0, $t0, 1 # $t0 = 1 # lb $t1, vector($t0) # $t1 = 3 # addi $t0, $t0, 1 # $t0 = 2 # lb $t1, vector($t0) # $t1 = 1 li $t0, 0 inicio_bucle: lb $t1, vect...
; Double Dabble Algorithm ; takes int "input" and prints to console. JMP main ones: DB 0 tens: DB 0 hundreds: DB 0 input: DB 0 print: ; printing to console MOV D, [4] ; hundreds place SHR D, 4 ; shift to ones place ADD D, 48 ; change to ascii MOV [232], D MOV D, [3] ; tens place SHR D, 4 ; shift to ones...
; A110766: Fractalization of Pi. ; 3,3,1,3,4,1,1,3,5,4,9,1,2,1,6,3,5,5,3,4,5,9,8,1,9,2,7,1,9,6,3,3,2,5,3,5,8,3,4,4,6,5,2,9,6,8,4,1,3,9,3,2,8,7,3,1,2,9,7,6,9,3,5,3,0,2,2,5,8,3,8,5,4,8,1,3,9,4,7,4,1,6,6,5,9,2,3,9,9,6,9,8,3,4,7,1,5,3,1,9 seq $0,25480 ; a(2n) = n, a(2n+1) = a(n). seq $0,796 ; Decimal expansion of Pi (or d...
; 改变光标位置 -> 通过写入显卡寄存器实现 ; 显卡寄存器很多, 通过 0x3d4 端口下发显卡寄存器编号 ; 再从 0x3d5 读写对应编号寄存器的值 ; 光标的位置由两个寄存器的值决定: 0x0e(光标位置高 8 位) 0x0f(光标位置低 8 位) ; 一个屏幕一行可显示 80 个字符 ; eg: 若算得的光标位置为 185, 185 / 80 = 2 .. 25 ; 那么光标就在 2 行 25 列 ; ; 0x0d: 回车 -> 光标位置回到行首 ; 0x0a: 换行 -> 光标位置换到下一行, 不回到行首 SETCHAR equ 0x07 VIDEORAM equ 0xb800 NUL equ 0x00 ...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "frc2/command/button/Trigger.h" #include <frc/Debouncer.h> #include "frc2/command/InstantCommand.h" using na...
// Original test: ./shi-ting/hw4/problem6/roli_1.asm // Author: shi-ting // Test source code follows //Author: Shi-Ting Zhou, shi-ting lbi r1, 97 roli r2, r1, 2 halt
// // DCP-082.cpp // // // Created by 楊承昊 on 2017/3/16. // // #include <iostream> using namespace std; int main() { int T; cin>>T; while(T--) { int N; cin>>N; if(N>=120) cout<<"Good Boy Sifat"<<endl; else cout<<"Naughty Boy Sifat"<<endl; } return 0; }
; ADRESSAGE DIRECT ; MULTIPLICATION ET STOCKAGE DE DONNE .text ldi 55,R2 ;CHARGER 55 DANS R2 sti R2,@180h ;STOCKER R2 DANS L'ADRESSE @180h ldi 45,R2 ;CHARGER 45 DANS R2 mpyi @180h, R2 ;MULTIPLIER @ PAR R2 RESULTAT SUR R2 sti R2,@181h ;STOCKER R2 DANS L'ADRESSE @181h .end
JMP start :table DAT 0xF00D DAT 0xBEEF DAT 0xFEED DAT 0xBEEE :start STO A,0 STO J,4 ; Loop through table :loop STO [0x1000+A],[table+A] ADD A,1 IFN A,J JMP loop
; A157623: 781250n^2 - 455000n + 66249. ; 392499,2281249,5732499,10746249,17322499,25461249,35162499,46426249,59252499,73641249,89592499,107106249,126182499,146821249,169022499,192786249,218112499,245001249,273452499,303466249,335042499,368181249,402882499,439146249,476972499,516361249,557312499,599826249,643902499,689...
; A264891: a(n) = n*(5*n - 3)*(25*n^2 - 15*n - 6)/8. ; 0,1,112,783,2839,7480,16281,31192,54538,89019,137710,204061,291897,405418,549199,728190,947716,1213477,1531548,1908379,2350795,2865996,3461557,4145428,4925934,5811775,6812026,7936137,9193933,10595614,12151755,13873306,15771592,17858313,20145544,22645735,25371711,28...
;----------------------------------------------------------; ; BOS kernel Christoffer Bubach, 2004-2005. ; ;----------------------------------------------------------; ; ; ; DMA transfer code. ; ; ...
db 0 ; species ID placeholder db 20, 25, 45, 60, 70, 90 ; hp atk def spd sat sdf db PSYCHIC, PSYCHIC ; type db 145 ; catch rate db 52 ; base exp db NO_ITEM, MYSTERYBERRY ; items db GENDER_F50 ; gender ratio db 25 ; step cycles to hatch INCBIN "gfx/pokemon/mime_jr/front.dimensions" db GROWTH_ME...
; A141992: Primes congruent to 16 mod 29. ; Submitted by Jon Maiga ; 103,277,509,683,857,1031,1321,1553,1669,1901,2017,2423,2539,2713,2887,3061,3119,3467,3583,3931,3989,4337,4801,5323,5381,5903,6367,6599,6947,7121,7237,7411,7643,7759,7817,7933,8513,8629,8803,8861,9151,9209,10079,10253,10369,10427,10601,10891,10949,1123...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Sample.h" #include "SkAnimTimer.h" #include "SkBlurMask.h" #include "SkBlurMaskFilter.h" #include "SkColorFilter.h" #include "SkCamera.h" #include "SkCanvas.h" #incl...
#include <iostream> #include <QLinkedList> #include <QString> #include <cassert> using namespace std; int main () { QLinkedList<QString> first; first << "A" << "B" << "C"; QLinkedList<QString> second; second << "D" << "E"; QLinkedList<QString> third = first + second; assert(third.size() != 5); ...
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1985-1991 ; * All Rights Reserved. ; */ ;----------------------------------------------------------------------------; ; This has all the code needed for a very simple grabber to work o...