text
stringlengths
1
1.05M
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2018 The PaydayCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // NOTE: This file is intended to be customised by the end user, and includes ...
; A109313: Difference between prime factors of n-th semiprime. ; Submitted by Jamie Morken(w1) ; 0,1,0,3,5,2,4,9,0,11,8,15,2,17,10,21,0,14,6,16,27,29,8,20,35,4,39,12,41,26,6,28,45,14,51,34,18,57,10,0,59,38,40,12,65,44,69,2,24,71,26,77,50,16,81,0,56,87,58,32,6,95,64,99,22,36,101,8,68,105,38,24,107,70,4,111,42,76,6,80,12...
#include "_glm.h" namespace autowig { } #if defined(_MSC_VER) #if (_MSC_VER == 1900) namespace boost { template <> class ::statiskit::glm::QuantitativeScalarRegressionFisherEstimation< class ::statiskit::glm::PoissonRegression, struct ::statiskit::DiscreteUnivariateConditionalDistributionEstimation > const...
/// @ref ext_vector_uint1 /// @file glm/ext/vector_uint1.hpp /// /// @defgroup ext_vector_uint1 GLM_EXT_vector_uint1 /// @ingroup ext /// /// Exposes uvec1 vector type. /// /// Include <glm/ext/vector_uvec1.hpp> to use the features of this extension. /// /// @see ext_vector_int1 extension. /// @see ext_vector_uint1_pre...
; A033032: Numbers all of whose base 6 digits are odd. ; Submitted by Simon Strandgaard ; 1,3,5,7,9,11,19,21,23,31,33,35,43,45,47,55,57,59,67,69,71,115,117,119,127,129,131,139,141,143,187,189,191,199,201,203,211,213,215,259,261,263,271,273,275,283,285,287,331,333,335,343,345,347,355,357,359,403,405,407,415,417,419,427,...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/importer/firefox_profile_lock.h" #include "base/file_path.h" // This class is based on Firefox code in: // profile/dirser...
; A036581: Ternary Thue-Morse sequence: closed under a->abc, b->ac, c->b. ; 0,2,1,0,1,2,0,2,1,2,0,1,0,2,1,0,1,2,0,1,0,2,1,2,0,2,1,0,1,2,0,2,1,2,0,1,0,2,1,2,0,2,1,0,1,2,0,1,0,2,1,0,1,2,0,2,1,2,0,1,0,2,1,0,1,2,0,1,0,2,1,2,0,2,1,0,1,2,0,1,0,2,1,0,1,2,0,2,1,2,0,1,0,2,1,2,0,2,1,0,1,2,0,2,1,2,0,1,0,2,1,0,1,2,0,1,0,2,1,2,0,2,...
; ARRAY a DB 1H, 5H, 3H, 4H MOV AL, a[2]
// Copyright (c) 2007-2016 Hartmut Kaiser // // 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(HPX_PARALLEL_UTIL_LOOP_MAY_27_2014_1040PM) #define HPX_PARALLEL_UTIL_LOOP_MAY_27_2014_1040PM #include <h...
; A017152: a(n) = (8*n + 7)^4. ; 2401,50625,279841,923521,2313441,4879681,9150625,15752961,25411681,38950081,57289761,81450625,112550881,151807041,200533921,260144641,332150625,418161601,519885601,639128961,777796321,937890625,1121513121,1330863361,1568239201,1836036801,2136750625,2472973441,2847396321,3262808641,37220...
; int vasprintf_callee(char **ptr, const char *format, void *arg) SECTION code_clib SECTION code_stdio PUBLIC _vasprintf_callee EXTERN asm_vasprintf _vasprintf_callee: pop af exx pop de exx pop de pop bc push af jp asm_vasprintf
; size_t getline_unlocked_callee(char **lineptr, size_t *n, FILE *stream) SECTION code_stdio PUBLIC _getline_unlocked_callee, l0_getline_unlocked_callee EXTERN asm_getline_unlocked _getline_unlocked_callee: pop af pop hl pop de pop bc push af l0_getline_unlocked_callee: push bc ex (sp),ix ...
# # swap x and y using xor # .data please_x: .string "Please, input integer x: " please_y: .string "Please, input integer y: " x_old: .string "\nSwapping x and y:\n...\ninitial x value is: " y_old: .string "\ninitial y value is: " x_new: .string "\n...\nnew value of x is : " y_new: .string "\nnew value of y is ...
MODULE UtilsText ;; By Kevin Thacker from http://cpctech.cpc-live.com/source/sixpix.asm ;; each char is 6 mode 1 pixels wide and 8 mode 1 pixels tall ;; in mode 1, each byte uses 4 pixels ;; so this means that each char uses 2 bytes, with the last 2 pixels of each line are unused. ;; this is done for simplicity. ;; ...
; ; Generic pseudo graphics routines for text-only platforms ; ; Reset pixel at (x,y) coordinate. SECTION code_graphics PUBLIC c_respixel defc NEEDunplot = 1 .c_respixel INCLUDE "w_c_pixel.inc"
;; ;; 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...
;; ;; Copyright (c) 2018-2020, 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...
; A114103: n multiples of n such that a(n) is a multiple of n. The n-th group contains n multiples of n. Arranged sequentially the n-th term is a multiple of n. ; Submitted by Jon Maiga ; 1,2,6,12,15,6,28,8,36,20,55,60,65,70,15,48,102,18,114,60,42,154,161,168,175,182,189,28,232,120,248,32,264,136,280,72,333,342,117,360...
_usertests: file format elf32-i386 Disassembly of section .text: 00000000 <main>: return randstate; } int main(int argc, char *argv[]) { 0: f3 0f 1e fb endbr32 4: 8d 4c 24 04 lea 0x4(%esp),%ecx 8: 83 e4 f0 and $0xfffffff0,%esp b: ff 71 fc ...
// Copyright 2014 Stellar Development Foundation and contributors. Licensed // under the Apache License, Version 2.0. See the COPYING file at the root // of this distribution or at http://www.apache.org/licenses/LICENSE-2.0 #include "crypto/ShortHash.h" #include "util/Decoder.h" #include "util/GlobalChecks.h" #include...
org 256 start: mov ax, 90 mov bx, 9 xor dx, dx div bx mov bx, dx mov dx, divi call sprint mov dx, ax call iprintCRLF mov dx, rema call sprint mov dx, bx call iprintCRLF int 20h include 'procs.inc' divi db '90 ...
/** * @file LoRaPHYIN865.cpp * * @brief Implements LoRaPHY for Indian 865 MHz band * * \code * ______ _ * / _____) _ | | * ( (____ _____ ____ _| |_ _____ ____| |__ * \____ \| ___ | (_ _) ___ |/ ___) _ \ * _____) ) ____| | | || |_| ____( (__...
; BSD 3-Clause License ; ; Copyright (c) 2019, k4m1 <k4m1@protonmail.com> ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; * Redistributions of source code must retain the above copyright notic...
copyright zengfr site:http://github.com/zengfr/romhack 0168DA move.b #$0, ($5,A6) [base+6BB8] 0168E0 lea $90a814.l, A0 016E40 move.b #$0, ($5,A6) 016E46 move.b (A0,D2.w), ($4,A3) 016EBC move.b #$0, ($5,A6) [base+6BE4, base+6BF4, base+6C04, base+6C24, base+6C34, base+6C44, base+6C54, base+6C84, base+6C9...
#include <iostream> #include <string> #include <stdlib.h> // Included stdlib for srand and rand #include <time.h> // Included time.h for (TIME), seeds srand #include <map> #include <stack> #include <queue> #include <vector> #include <list> #include "template.h" // Going to try making a list of ...
; this sample checks if string is a palindrome or not. ; palindrome is a text that can be read backwards ; and give the same meaning as if it was read forward. ; for example: "abba" is polindrome. ; note: this program is case sensitive, "abba" is not "abba". name "pali" org 100h jmp start m1: s db 'abl...
; A002313: Primes congruent to 1 or 2 modulo 4; or, primes of form x^2 + y^2; or, -1 is a square mod p. ; 2,5,13,17,29,37,41,53,61,73,89,97,101,109,113,137,149,157,173,181,193,197,229,233,241,257,269,277,281,293,313,317,337,349,353,373,389,397,401,409,421,433,449,457,461,509,521,541,557,569,577,593,601,613,617,641,653,...
; A007396: Add 2, then reverse digits!. ; 0,2,4,6,8,1,3,5,7,9,11,31,33,53,55,75,77,97,99,101,301,303,503,505,705,707,907,909,119,121,321,323,523,525,725,727,927,929,139,141,341,343,543,545,745,747,947,949,159,161,361,363,563,565,765,767,967,969,179,181,381,383,583,585,785,787,987,989,199,102,401,304,603,506,805,708,17,...
; A131128: Binomial transform of [1, 1, 5, 1, 5, 1, 5, ...]. ; 1,2,8,20,44,92,188,380,764,1532,3068,6140,12284,24572,49148,98300,196604,393212,786428,1572860,3145724,6291452,12582908,25165820,50331644,100663292,201326588,402653180,805306364,1610612732,3221225468,6442450940,12884901884,25769803772,51539607548,1030792151...
; --------------------------------------------------------------------------- ; Sprite mappings - Orbinaut enemy (LZ, SLZ, SBZ) ; --------------------------------------------------------------------------- dc.w byte_11EEC-Map_obj60, byte_11EF2-Map_obj60 dc.w byte_11EF8-Map_obj60, byte_11EFE-Map_obj60 byte_11EEC: dc...
// Copyright 2017 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 "base/sys_info.h" #include <zircon/syscalls.h> #include "base/logging.h" namespace base { // static int64_t SysInfo::AmountOfPhysicalMemoryIm...
; A239462: A239459(n) / n. ; 11,41,91,161,251,361,491,641,811,10001,12101,14401,16901,19601,22501,25601,28901,32401,36101,40001,44101,48401,52901,57601,62501,67601,72901,78401,84101,90001,96101,102401,108901,115601,122501,129601,136901,144401,152101,160001,168101,176401,184901,193601,202501,211601,220901,230401,240101,...
TITLE GRCOORD - graphics point specification PAGE 56,132 ;*** ;GRCOORD - graphics point specification ; ; Copyright <C> 1986 - 1988, Microsoft Corporation ; ;Purpose: ; This module contains point specification routines, and routines which will ; transform and convert those points as required. ; ;*********************...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromecast/media/base/media_codec_support.h" #include "base/bind.h" #include "base/strings/string_util.h" namespace chromecast { namespace med...
; void *zx_saddrcup_fastcall(void *saddr) SECTION code_arch PUBLIC _zx_saddrcup_fastcall _zx_saddrcup_fastcall: INCLUDE "arch/zx/display/z80/asm_zx_saddrcup.asm"
// Copyright Oliver Kowalke 2013. // 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 "boost/fiber/recursive_mutex.hpp" #include <algorithm> #include <functional> #include "boost/fib...
; A129760: Bitwise AND of binary representation of n-1 and n. ; 0,0,2,0,4,4,6,0,8,8,10,8,12,12,14,0,16,16,18,16,20,20,22,16,24,24,26,24,28,28,30,0,32,32,34,32,36,36,38,32,40,40,42,40,44,44,46,32,48,48,50,48,52,52,54,48,56,56,58,56,60,60,62,0,64,64,66,64,68,68,70,64,72,72,74,72,76,76,78,64,80,80,82,80,84,84,86,80,88,88,...
.data .text addi $s0, $s0, -1 addi $s1, $s1, -4096 and $t0, $s0, $s1 or $t1, $s0, $s1 xor $t2, $s0, $s1 nor $t3, $s0, $s1 slt $t4, $s1, $s0 # Termino do programa li $v0, 10 # Codigo para terminar o programa = 10 syscall
bits 16 jmp start CR equ 0Dh LF equ 0Ah K_CS_ADDR equ 0050h ; data drive0: dw 0 banner: db "MINOS Bootloader", CR, LF, 0 ; General messages msg_loading: db "Loading", 0 msg_done: db "done!", CR, LF, 0 ; Error messages error_msg_panic: db "PANIC: ", 0 error_msg_disk_reset: db "Drive reset failed!", CR, LF, 0 error_...
; A008779: Number of n-dimensional partitions of 5. ; 1,7,24,59,120,216,357,554,819,1165,1606,2157,2834,3654,4635,5796,7157,8739,10564,12655,15036,17732,20769,24174,27975,32201,36882,42049,47734,53970,60791,68232,76329,85119,94640,104931,116032,127984,140829,154610,169371,185157,202014,219989,239130,259486,281107,30404...
include "src/registers.asm" SECTION "crash", ROM0 jp crash SECTION "vblank", ROM0 jp vblank_interrupt SECTION "hblank", ROM0 jp hblank_interrupt SECTION "timer", ROM0 jp timer_interrupt SECTION "serial", ROM0 jp serial_interrupt SECTION "joypad", ROM0 jp joypad_interrupt crash:: di ld b, b ld hl, lcdLin...
; A291305: The arithmetic function v_5(n,1). ; 1,2,3,0,5,6,7,8,5,10,11,12,13,10,15,16,17,18,15,20,21,22,23,20,25,26,27,28,25,30,31,32,33,30,35,36,37,38,35,40,41,42,43,40,45,46,47,48,45,50,51,52,53,50,55,56,57,58,55,60,61,62,63,60,65,66,67,68,65 add $0,2 mov $2,5 gcd $2,$0 sub $0,$2
; A131723: a(2*n) = 1-n^2, a(2*n+1) = n*(n+1). ; 0,2,-3,6,-8,12,-15,20,-24,30,-35,42,-48,56,-63,72,-80,90,-99,110,-120,132,-143,156,-168,182,-195,210,-224,240,-255,272,-288,306,-323,342,-360,380,-399,420,-440,462,-483,506,-528,552,-575,600,-624,650,-675,702,-728,756,-783,812,-840,870,-899,930,-960,992,-1023,1056,-1088,...
; A073851: Cumulative sum of initial digits of (n base 5). ; 0,1,3,6,10,11,12,13,14,15,17,19,21,23,25,28,31,34,37,40,44,48,52,56,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,87,89,91,93,95,97,99,101,103,105,107,109,111,113,115,117,119,121 mov $3,$0 mov $5,$0 lpb $3,1 mov $0,$5 sub ...
; A097076: Expansion of x/(1-x-3x^2-x^3). ; 0,1,1,4,8,21,49,120,288,697,1681,4060,9800,23661,57121,137904,332928,803761,1940449,4684660,11309768,27304197,65918161,159140520,384199200,927538921,2239277041,5406093004,13051463048,31509019101,76069501249,183648021600 lpb $0 sub $0,1 mov $1,$0 mov $0,0 max $1,0 s...
#include <cstdlib> #include <iostream> #include <stdexcept> #include <string> #include <vector> #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/filesystem/operations.hpp> #include <castel/runtime/Box.hh> #include <castel/toolchain/Source.hh> #include "E...
;; ;; Copyright (c) 2021 Antti Tiihala ;; ;; Permission to use, copy, modify, and/or distribute this software for any ;; purpose with or without fee is hereby granted, provided that the above ;; copyright notice and this permission notice appear in all copies. ;; ;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
;Write a program for the 8051 to transfer ‘VIT’ serially to 9600 baud, 8 bit data, 1 stop b it, do this continuously. ORG 0000H MOV TMOD,#20H MOV TH1,#0FDH MOV SCON,#50H SETB TR1 AGAIN:MOV A,#'V' ACALL TRANS MOV A,#'I' ACALL TRANS MOV A,#'T' ACALL TRANS MOV A,#' ' ACALL TRANS SJMP AGAIN TRANS:MOV SBUF,A ...
; A050476: a(n) = C(n)*(6n+1) where C(n)=Catalan numbers (A000108). ; Submitted by Jon Maiga ; 1,7,26,95,350,1302,4884,18447,70070,267410,1024556,3938662,15184876,58689100,227327400,882230895,3429693990,13353413370,52062618300,203235266850,794258570820,3107215911540,12167180964120,47685286297350,187036101361980,7341539...
; SBAS_PAITM - SuperBASIC Parser Items  1992 Tony Tebby section sbas xdef sb_patxt ; parse text item xdef sb_pastr ; parse string item xdef sb_pakey ; parse keywords xdef sb_panky ; parse non-keywords xref sb_parcl xref ...
; A010650: Decimal expansion of cube root of 80. ; Submitted by Christian Krause ; 4,3,0,8,8,6,9,3,8,0,0,6,3,7,6,7,4,4,3,5,1,8,5,8,7,1,3,3,0,3,8,7,0,0,9,9,0,5,1,8,6,8,9,8,8,4,3,8,4,2,1,7,1,6,4,9,7,8,4,7,1,0,1,2,6,9,2,8,2,2,2,1,3,2,9,6,6,8,1,6,0,0,3,7,0,8,8,3,0,0,7,0,8,6,4,8,6,5,5,2 mov $2,1 mov $3,$0 mul $3,4 lpb $3 ...
; PUTSYS for 2014 systems with 64MB CF ; ; Adapted from: ;================================================================================== ; Grant Searle's code, modified for use with Small Computer Workshop IDE. ; Also embedded CP/M hex files into this utility to make it easier to use. ; Compile options for Li...
// -*- indent-tabs-mode: nil -*- #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdlib.h> #include <iostream> #include <fstream> #include <ctype.h> #include <getopt.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <sys/stat.h> #include <sys/typ...
; A153056: a(0)=2, a(n) = n^2+a(n-1). ; 2,3,7,16,32,57,93,142,206,287,387,508,652,821,1017,1242,1498,1787,2111,2472,2872,3313,3797,4326,4902,5527,6203,6932,7716,8557,9457,10418,11442,12531,13687,14912,16208,17577,19021,20542,22142,23823,25587,27436,29372,31397,33513,35722,38026,40427,42927,45528,48232,51041,53957,56982...
; A288134: Positions of 1 in A288132; complement of A288133. ; 3,5,6,8,9,10,11,13,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,9...
; A008589: Multiples of 7. ; 0,7,14,21,28,35,42,49,56,63,70,77,84,91,98,105,112,119,126,133,140,147,154,161,168,175,182,189,196,203,210,217,224,231,238,245,252,259,266,273,280,287,294,301,308,315,322,329,336,343,350,357,364,371,378,385,392,399,406,413,420,427,434,441,448,455,462,469,476,483,490,497,504,511,518,525,532,...
#include "leveldb/db.h" #include "leveldb/write_batch.h" #include <cassert> #include <iostream> int main() { leveldb::DB * pDb; leveldb::Options tOptions; { tOptions.create_if_missing = true; } leveldb::Status tStatus = leveldb::DB::Open(tOptions, "testdb", &pDb); assert(tStatus.ok());...
; A051871: 19-gonal (or enneadecagonal) numbers: n(17n-15)/2. ; 0,1,19,54,106,175,261,364,484,621,775,946,1134,1339,1561,1800,2056,2329,2619,2926,3250,3591,3949,4324,4716,5125,5551,5994,6454,6931,7425,7936,8464,9009,9571,10150,10746,11359,11989,12636,13300,13981,14679,15394,16126,16875,17641,18424,19224,20041,20875,217...
; Performance for copying 0 into a 100000 bytes buffer for all the versions (lower is better) : ; 386 : 252241/73458 = 3.43 ; SSE : 254930/74463 = 3.43 ; SSE2 : 80673/75956 = 1.06 ; SSSE3 : 79104/78349 = 1.01 ; AVX : 76435/75405 = 1.01 ; AVX2 : 53782/75036 = 0.72 global @ASM_memset@12 extern _getInstructionSet ...
# Exception Handler # Interrupt: Excode = 0 # Overflow: ExCode = 12 # Status $12 # Cause $13 # EPC $14 .kdata 0x90000000 # Espa�o para salvamento de contexto: save: .word 0,0,0,0 # Espa�o para salvamento do valor que est� sendo digitado: _temp: .word 0 .ktext 0x80000180 # Reloca o tratador para residir no en...
SECTION code_clib SECTION code_fp_am9511 PUBLIC cam32_sdcc___mulsint2slong EXTERN asm_am9511_imul cam32_sdcc___mulsint2slong: ; 16-bit multiplication, 32-bit result ; ; enter : stack = multiplicand, multiplicand, ret ; ; exit : dehl = product pop af pop hl pop de push de push hl ...
/* * (C) 2016 Daniel Neus * (C) 2016 Philipp Weber * * Botan is released under the Simplified BSD License (see license.txt) */ #include "tests.h" #include "test_pkcs11.h" #include <string> #include <vector> #include <functional> #include <memory> #include <array> #include <map> #if defined(BOTAN_HAS_PKCS11) #incl...
; ; Set flags E to 11111110 ; Loop: A << 2 ; if carry was 0 ; if a >= D ; A = A - D ; clear carry (probably irrelevant really) ; else ; sla flags << bringing in carry of 1 ; if bit 7 of flag was set then loop ; ...
; A211661: Number of iterations log_3(log_3(log_3(...(n)...))) such that the result is < 1. ; 1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3 div $0,2 lpb $0 div $0,13 add $1,1 lpe add $1,1 m...
; A033885: a(n) = 3*n - sum of divisors of n. ; 2,3,5,5,9,6,13,9,14,12,21,8,25,18,21,17,33,15,37,18,31,30,45,12,44,36,41,28,57,18,61,33,51,48,57,17,73,54,61,30,81,30,85,48,57,66,93,20,90,57,81,58,105,42,93,48,91,84,117,12,121,90,85,65,111,54,133,78,111,66,141,21,145,108,101,88,135,66,157,54,122,120,165,28,147,126,141,8...
C x86_64/umac-nh.asm ifelse(< Copyright (C) 2013 Niels Möller This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation; either version...
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. /...
%ifdef CONFIG { "RegData": { "RAX": "0x4142434445464748", "RBX": "0x41424344FFFFFFFF", "RCX": "0xFFFFFFFFFFFFFFFF" } } %endif mov rdx, 0xe0000000 mov rax, 0x4142434445464748 mov [rdx + 8 * 0], rax mov rax, 0x8080808080808080 mov [rdx + 8 * 1], rax mov rax, 0x8080808000000000 mov [rdx + 8 * 2], rax mov...
.data coeff: .word 2 exp: .word -3 .text: main: lw $a0, coeff lw $a1, exp jal create_term #write test code move $a0, $v0 li $v0, 1 syscall li $v0, 10 syscall .include "hw5.asm"
; A023891: Sum of composite divisors of n. ; Submitted by Jon Maiga ; 0,0,0,4,0,6,0,12,9,10,0,22,0,14,15,28,0,33,0,34,21,22,0,54,25,26,36,46,0,61,0,60,33,34,35,85,0,38,39,82,0,83,0,70,69,46,0,118,49,85,51,82,0,114,55,110,57,58,0,157,0,62,93,124,65,127,0,106,69,129,0,189,0,74,115,118,77,149,0,178,117,82,0,211,85,86,87,1...
; A206735: Triangle T(n,k), read by rows, given by (0, 2, -1/2, 1/2, 0, 0, 0, 0, 0, 0, 0, ...) DELTA (1, 0, -1/2, 1/2, 0, 0, 0, 0, 0, 0, 0, ...) where DELTA is the operator defined in A084938. ; 1,0,1,0,2,1,0,3,3,1,0,4,6,4,1,0,5,10,10,5,1,0,6,15,20,15,6,1,0,7,21,35,35,21,7,1,0,8,28,56,70,56,28,8,1,0,9,36,84,126,126,84,...
CheckReceivedItemPropertiesBeforeLoad: LDA $A0 : BEQ .normalCode LDA $7EC005 : BNE .lightOff .normalCode LDA.l AddReceivedItemExpanded_properties, X ;Restore Rando Code RTL .lightOff PHX : PHY : PHB LDA.l AddReceivedItemExpanded_properties, X ; get palette REP #$30 AND ...
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
; Map 09 exec Map9Exec: lda MapVar3 bmi L32ED lda Map9Lamps+0*4 bne L32ED dec MapVar3 lda #VINE_DN ;=1 sta VineDir lda #$07 sta VineSpeed L32ED: lda Map9Lamps+1*4 bne L330A lda MapVa...
COPY START 0 FIRST STL RETADR 17202D LDB #LENGTH 69202D BASE LENGTH CLOOP +JSUB RDREC 4B101036 LDA LENGTH 032026 COMP #0 290000 JEQ ENDFIL 332007 +JSUB WRREC ...
/******************************************************************************* * Copyright 2021 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.apache.o...
; A104879: Row sums of a sum-of-powers triangle. ; 1,2,4,8,17,40,106,316,1049,3830,15208,65072,297841,1449756,7468542,40555748,231335961,1381989882,8623700812,56078446616,379233142801,2662013133296,19362917622002,145719550012300,1133023004941273,9090156910550110,75161929739797520 mov $14,$0 mov $16,$0 add $16,1 lpb $1...
map_header CeladonMart5F, CELADON_MART_5F, LOBBY, 0 end_map_header
//-------------------------------------------------------------------------- // Copyright 2021 Yohan Sandun // // 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.o...
///////////////////////////////////////////////////////////////////////////////// // // Thor C++ Library // Copyright (c) 2011-2021 Jan Haller // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this ...
; ; Grundy Newbrain Specific libraries ; ; Stefano Bodrato - 19/05/2007 ; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; put char to stream ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; void nb_putc( int stream, char byte ); ; ; - - - - - - - - - - - - - - - - - - - - - -...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE194_Unexpected_Sign_Extension__fgets_malloc_82_bad.cpp Label Definition File: CWE194_Unexpected_Sign_Extension.label.xml Template File: sources-sink-82_bad.tmpl.cpp */ /* * @description * CWE: 194 Unexpected Sign Extension * BadSource: fgets Read data from the...
; A194029: Natural fractal sequence of the Fibonacci sequence (1,2,3,5,8,...). ; 1,1,1,2,1,2,3,1,2,3,4,5,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,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 add $0,1 mov $2,1 mov $3,1 lpb $0 sub...
; A137410: a(n) = (5^n - 3) / 2. ; -1,1,11,61,311,1561,7811,39061,195311,976561,4882811,24414061,122070311,610351561,3051757811,15258789061,76293945311,381469726561,1907348632811,9536743164061,47683715820311,238418579101561,1192092895507811,5960464477539061,29802322387695311,149011611938476561,745058059692382811,372529...
// Copyright (c) 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. #include <vector> #include "prevector.h" #include "random.h" #include "serialize.h" #include "streams.h" #include "test/test_des...
// // HUDErrorRenderer.hpp // G3M // // Created by Diego Gomez Deck on 9/28/13. // // #ifndef __G3M__HUDErrorRenderer__ #define __G3M__HUDErrorRenderer__ #include "ErrorRenderer.hpp" class HUDImageRenderer; class ErrorMessagesCustomizer { public: #ifdef C_CODE virtual ~ErrorMessagesCustomizer() {} #endif ...
; ; jccolor.asm - colorspace conversion (AVX2) ; ; Copyright (C) 2009, 2016, D. R. Commander. ; Copyright (C) 2015, Intel Corporation. ; ; Based on the 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 ; ; T...
; A172472: a(n) = floor(sqrt(2*n^3)). ; 0,1,4,7,11,15,20,26,32,38,44,51,58,66,74,82,90,99,108,117,126,136,145,155,166,176,187,198,209,220,232,244,256,268,280,292,305,318,331,344,357,371,384,398,412,426,441,455,470,485,500,515,530,545,561,576,592,608,624,640,657,673,690,707,724,741,758,775,793,810,828,846,864,882,900,91...
ORG $100 C1 EQU $20D C2 EQU $20E N1L EQU $201 N1H EQU $200 N2L EQU $203 N2H EQU $202 D1 EQU $205 D2 EQU $206 D3 EQU $207 D4 EQU $208 D5 EQU $209 D6 EQU $20A D7 EQU $20B D8 EQU $20C RH1 EQU $210 RH2 EQU $211 RL1 EQU $212 RL2 EQU $213 CLR C1 ...
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing proje...
#include <torch/csrc/utils/disable_torch_function.h> #include <torch/csrc/utils/pybind.h> #include <torch/csrc/Exceptions.h> #include <torch/csrc/utils/python_strings.h> namespace torch { static thread_local bool enable_torch_function = true; PyObject* disabled_torch_function = nullptr; PyObject* disabled_torch_...
SFX_Poisoned_1_Ch5: duty_cycle 0 pitch_sweep 1, 4 square_note 4, 15, 2, 1536 sound_loop 4, SFX_Poisoned_1_Ch5 square_note 15, 15, 3, 1536 pitch_sweep 0, 8 sound_ret
db "FAIRY@" ; species name dw 200, 170 ; height, weight db "In truth, it is a" next "cowardly #MON." next "It growls eagerly" page "in order to hide" next "its fear from its" next "opponent.@"
;modified version of the code in example 4.6 global _start extern ExitProcess %INCLUDE "lib.h" section .data nwln db 10, 0 space db 32, 0 str_prompt db "Please input a string (len<100): ",0 out_msg1 db "The ASCII code of ",0 out_msg2 db " in binary is ",0 query_msg db "Do you want to quit (Y/N...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Microsoft Research Singularity ;;; ;;; Copyright (c) Microsoft Corporation. All rights reserved. ;;; ;;; This file contains ARM-specific assembly code. ;;; ; __dtou double precision floating point to unsigned ...
; A304723: a(n) = 5^(n-1)*(3^n - 1)/2. ; Submitted by Jon Maiga ; 0,1,20,325,5000,75625,1137500,17078125,256250000,3844140625,57664062500,864970703125,12974609375000,194619384765625,2919291992187500,43789385986328125,656840820312500000,9852612457275390625,147789187622070312500,2216837818145751953125,3325256729125976562...
SECTION "Stack", WRAM0[$C080] ds $80 - 1 wStack:: SECTION "Init", ROM0 Init: di cp $11 ld a, 1 jr z, .cgb xor a .cgb ld [hGBC], a xor a ldx [rIF], [rIE] ldx [rRP] ldx [rSCX], [rSCY] ldx [rSB], [rSC] ldx [rWX], [rWY] ldx [rBGP], [rOBP0], [rOBP1] ldx [rTMA], [rTAC] put [rTAC], rTAC_4096Hz .wait...
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 001880 add.l D1, ($8,A6) 001884 moveq #$0, D1 [enemy+ 8, enemy+ A] 0018AE add.l D0, ($8,A6) 0018B2 moveq #$0, D0 [123p+ 8, 123p+ A, base+744, enemy+ 8, enemy+ A, etc+ 8, etc+ A, item+ 8, item+ A]...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ash/file_system_provider/operations/read_directory.h" #include <memory> #include <string> #include <utility> #include <vector> ...
// Copyright (c) 2009-2014 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/amfeed-config.h" #endif #include <cstring> #if HAVE_DECL_STRNLEN == 0 size_t st...