text
stringlengths
1
1.05M
page ,132 ;-----------------------------Module-Header-----------------------------; ; Module Name: TASKA.ASM - Some task functions ; ; Copyright (c) 1984-1991 Microsoft Corporation ; ;-----------------------------------------------------------------------; ?PLM = 1 ?WIN = 0 ...
; uint __FASTCALL__ wpeek(void *addr) ; 11.2006 aralbrec XLIB wpeek .wpeek ld e,(hl) inc hl ld d,(hl) ex de,hl ret
; char *utoa(unsigned int num, char *buf, int radix) SECTION code_clib SECTION code_stdlib PUBLIC utoa EXTERN asm_utoa utoa: pop af pop bc pop de pop hl push hl push de push bc push af jp asm_utoa
; Inicialização addi $1 $0 -76 addi $2 $0 -128 addi $3 $0 127 addi $4 $0 -1 addi $5 $0 53 addi $6 $0 64 addi $7 $0 72 ; Salva na mem sb $7 $0 248 sb $6 $0 249 sb $5 $0 250 sb $4 $0 251 sb $3 $0 252 sb $2 $0 253 sb $1 $0 254 ; Carrega ordenado da mem lb $7 $0 252 lb $6 $0 248 lb $5 $0 249 lb $4 $0 250 lb $3 $0 251 lb ...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r9 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0xe980, %rax nop and %rbx, %rbx movb (%rax), %r14b nop nop nop nop sub %rbp, %rbp lea addresses_WT_ht+0xc660, %rsi lea addresses_D_ht+0x1b980, %rdi nop nop and %r9, %r9 mov $40...
db 0 ; species ID placeholder db 65, 102, 67, 77, 112, 77 ; hp atk def spd sat sdf db FIRE, WATER ; type db 75 ; catch rate db 175 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 20 ; step cycles to hatch INCBIN "gfx/pokemon/bomsheal/front.dimensions" db GROWTH_MEDIUM_FAS...
_init: file format elf32-i386 Disassembly of section .text: 00000000 <main>: char *argv[] = { "sh", 0 }; int main(void) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 83 ec 20 sub ...
; A209094: Number of n X 2 0..2 arrays with new values 0..2 introduced in row major order and no element equal to more than one of its immediate leftward or upward or right-upward antidiagonal neighbors. ; 2,11,82,612,4568,34096,254496,1899584,14178688,105831168,789934592,5896152064,44009478144,328491216896,24518918225...
; A047394: Numbers that are congruent to {0, 1, 6} mod 8. ; 0,1,6,8,9,14,16,17,22,24,25,30,32,33,38,40,41,46,48,49,54,56,57,62,64,65,70,72,73,78,80,81,86,88,89,94,96,97,102,104,105,110,112,113,118,120,121,126,128,129,134,136,137,142,144,145,150,152,153,158,160,161,166,168,169,174,176,177,182,184,185,190,192,193,198,200...
; A017133: a(n) = (8*n + 5)^9. ; 1953125,10604499373,794280046581,14507145975869,129961739795077,756680642578125,3299763591802133,11694146092834141,35452087835576229,95151694449171437,231616946283203125,520411082988487293,1093685272684360901,2171893279442309389,4108400332687853397,7450580596923828125,130216125399085388...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2019 The LemonAd developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r15 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x1547b, %r10 nop nop nop nop nop dec %rbx movb (%r10), %r11b nop nop add %r9, %r9 lea addresses_A_ht+0x1135e, %r15 nop nop nop nop nop xor $38087, %rbx movb (%r15), %r...
; ; Copyright (c) 2020 Phillip Stevens ; ; This Source Code Form is subject to the terms of the Mozilla Public ; License, v. 2.0. If a copy of the MPL was not distributed with this ; file, You can obtain one at http://mozilla.org/MPL/2.0/. ; ; feilipu, July 2020 ; ;-------------------------------------------------...
; A040609: Continued fraction for sqrt(635). ; 25,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50,5,50 sub $0,1 mod $0,2 mul $0,11 add $0,2 pow $0,2 div $0,17 mul $0,5 add $0,5
//===------------------------------------------------------------*- C++ -*-===// // // This file is distributed under the MIT License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // Copyright (c) 2015 Technical University of Kaiserslautern. #incl...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x520a, %rdx nop nop xor $4307, %r14 movw $0x6162, (%rdx) nop nop sub $2649, %rbx lea addresses_D_ht+0xc6f6, %r13 clflush (%r13) inc %r14 mov $0x6162636465666768, %rdx movq %r...
; A092440: a(n) = 2^(2n+1) - 2^(n+1) + 1. ; 1,5,25,113,481,1985,8065,32513,130561,523265,2095105,8384513,33546241,134201345,536838145,2147418113,8589803521,34359476225,137438429185,549754765313,2199021158401,8796088827905,35184363700225,140737471578113,562949919866881,2251799746576385,9007199120523265 mov $1,2 pow $1,...
;******************************************************************************* ; * ; Microchip licenses this software to you solely for use with Microchip * ; products. The software is owned by Microchip and/or its licensors, an...
; A033324: [ 4/n ]. ; 4,2,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 add $0,1 mov $1,4 div $1,$0
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a STAK-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/log_reader.h" #include "db/log_writer.h" #include "leveldb/env.h" #include "util/coding.h...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
; A243989: Rounded down ratio of a lune area and a unit circle one, the lune is bounded by two unit circles whose centers are separated by a distance 1/n. ; 1,3,4,6,7,9,11,12,14,15,17,18,20,21,23,25,26,28,29,31,32,34,36,37,39,40,42,43,45,47,48,50,51,53,54,56,58,59,61,62,64,65,67,69,70,72,73,75,76,78,80,81,83,84,86,87,8...
; A076127: n-th term is binary string of length t_n with 1's at positions t_i, where t_n = n-th triangular number. ; Submitted by Jon Maiga ; 0,1,101,101001,1010010001,101001000100001,101001000100001000001,1010010001000010000010000001,101001000100001000001000000100000001,101001000100001000001000000100000001000000001 m...
; =============================================================== ; Jun 2007 ; =============================================================== ; ; uint zx_px2bitmask(uchar x) ; ; Return bitmask corresponding to pixel x coordinate. ; ; =============================================================== SECTION code_arch ...
;---------------------------------------------------------------; ; ; ; Banchor ; ; Boss Data ; ; ...
//! \file /* ** Copyright (C) - Triton ** ** This program is under the terms of the BSD License. */ #include <cmath> #include <new> #include <triton/ast.hpp> #include <triton/astContext.hpp> #include <triton/astRepresentation.hpp> #include <triton/exceptions.hpp> #include <triton/tritonToZ3Ast.hpp> namespace tri...
; A057651: a(n) = (3 * 5^n - 1)/2. ; 1,7,37,187,937,4687,23437,117187,585937,2929687,14648437,73242187,366210937,1831054687,9155273437,45776367187,228881835937,1144409179687,5722045898437,28610229492187,143051147460937,715255737304687,3576278686523437,17881393432617187,89406967163085937,447034835815429687,2235174179077...
; A053158: Sum of n and its cototient function value (A051953). ; 1,3,4,6,6,10,8,12,12,16,12,20,14,22,22,24,18,30,20,32,30,34,24,40,30,40,36,44,30,52,32,48,46,52,46,60,38,58,54,64,42,72,44,68,66,70,48,80,56,80,70,80,54,90,70,88,78,88,60,104,62,94,90,96,82,112,68,104,94,116 mov $1,2 mov $2,$0 mov $3,$0 cal $0,10 ; Eule...
; this file is part of Release, written by Malban in 2017 ; ; ; Scroller of text (normal vectrex text format) ; using vector chartable ; the chars 0,0 ; (start is allways = end!) ; all letters are drawn in "SCROLL_SCALE_FACTOR" ; positioning is done in "SCALE_FACTOR_GAME" ; two routines, ; a) set_up_scrolling() need...
; A141989: Primes congruent to 13 mod 29. ; Submitted by Jon Maiga ; 13,71,419,593,709,883,941,1231,1289,1579,1637,1753,1811,2333,2797,2971,3203,3319,4073,4363,4421,4943,5059,5233,5407,5581,5639,5813,5987,6277,6451,6857,7321,7669,7727,7901,8017,8191,8423,8539,8597,8713,8887,9293,9467,9931,10163,10337,10453,10627,10859,...
// pdfiletests.cpp : pdfile unit tests. // /** * Copyright (C) 2008 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is di...
#pragma once #include "store.hpp" namespace flow { template <class S> basic_store<S> create_store(std::function<S(S, action)> reducer, const S& initial_state) { return basic_store<S>::create(reducer, initial_state, std::experimental::optional<action>()); } template <class S> basic_store<S> create_store_with_actio...
; --COPYRIGHT--,BSD_EX ; Copyright (c) 2012, Texas Instruments Incorporated ; 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 ...
#define MODULE_NAME "Duktape" #define MODULE_NAME_LEN 7 // rtld working object __attribute__((section(".bss"))) char __nx_module_runtime[0xD0]; struct ModuleName { int unknown; int name_lengh; char name[MODULE_NAME_LEN + 1]; }; __attribute__((section(".rodata.module_name"))) ModuleName module_name = {.un...
#include <okiidoku_cli/repl.hpp> #include <okiidoku_cli/config.hpp> #include <okiidoku_cli_utils/str.hpp> #include <iostream> // cout, endl, #include <charconv> // from_chars namespace okiidoku::cli { namespace str = okiidoku::util::str; void Config::verbosity(verbosity::E verbosity) { verbosity_ = verbosity;...
; A052560: a(n) = 3*n!. ; 3,3,6,18,72,360,2160,15120,120960,1088640,10886400,119750400,1437004800,18681062400,261534873600,3923023104000,62768369664000,1067062284288000 mov $1,$0 cal $1,142 mul $1,3
TITLE Console Demo #2 (Console2.asm) ; Demonstration of SetConsoleCursorPosition, ; GetConsoleCursorInfo, SetConsoleCursorInfo, ; SetConsoleScreenBufferSize, SetConsoleCursorPosition, ; SetConsoleTitle, and GetConsoleScreenBufferInfo. ; Last update: 9/28/01 INCLUDE SmallWin.inc .data outHandle DWOR...
#include "exception.h" namespace paxos { SysCallException::SysCallException(int err_code, const std::string& err_msg, bool detail) : err_code_(err_code), err_msg_(err_msg) { if (detail) { err_msg_.append(", ").append(::strerror(err_code_)); } } int SysCallException::GetErrorCode() const throw ()...
RocketHideout1Object: db $2e ; border block db $5 ; warps db $2, $17, $0, ROCKET_HIDEOUT_2 db $2, $15, $2, GAME_CORNER db $13, $18, $0, ROCKET_HIDEOUT_ELEVATOR db $18, $15, $3, ROCKET_HIDEOUT_2 db $13, $19, $1, ROCKET_HIDEOUT_ELEVATOR db $0 ; signs db $7 ; objects object SPRITE_ROCKET, $1a, $8, STAY, LEFT,...
/*============================================================================= Boost.Wave: A Standard compliant C++ preprocessor library http://www.boost.org/ Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt ...
; A061501: a(1) = 1, a(n+1) = (a(n) + n) mod 10. ; Submitted by Christian Krause ; 1,2,4,7,1,6,2,9,7,6,6,7,9,2,6,1,7,4,2,1,1,2,4,7,1,6,2,9,7,6,6,7,9,2,6,1,7,4,2,1,1,2,4,7,1,6,2,9,7,6,6,7,9,2,6,1,7,4,2,1,1,2,4,7,1,6,2,9,7,6,6,7,9,2,6,1,7,4,2,1,1,2,4,7,1,6,2,9,7,6,6,7,9,2,6,1,7,4,2,1 add $0,11 bin $0,2 sub $0,54 mod $0,...
; ; NewBrain driver support file, used by "open" and "close" ; ; Stefano - 29/5/2007 ; ; $Id: nbhandl.asm,v 1.1 2007/06/03 15:13:06 stefano Exp $ XLIB nbhandl ; handles: ; 10 files open at once should be enough. ; we use stream numbers startimg from 100 ; ; 100 101 102 103 104 105...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x9a6b, %rbx clflush (%rbx) nop xor $11278, %r14 mov $0x6162636465666768, %r12 movq %r12, %xmm6 movups %xmm6, (%rbx) nop nop nop nop nop inc %r8 lea addresses_WT_ht+0x418b, %r1...
// // FILE NAME: Speech.cpp // // AUTHOR: Dean Roddey // // CREATED: 08/11/2010 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2019 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://opensource.org/lic...
; A169383: Number of reduced words of length n in Coxeter group on 34 generators S_i with relations (S_i)^2 = (S_i S_j)^31 = I. ; 1,34,1122,37026,1221858,40321314,1330603362,43909910946,1449027061218,47817893020194,1577990469666402,52073685498991266,1718431621466711778,56708243508401488674,1871372035777249126242,617552...
; A238276: a(n) = (9*8^n - 2)/7. ; 1,10,82,658,5266,42130,337042,2696338,21570706,172565650,1380525202,11044201618,88353612946,706828903570,5654631228562,45237049828498,361896398627986,2895171189023890,23161369512191122,185290956097528978,1482327648780231826,11858621190241854610,94868969521934836882,7589517561754786950...
/test/samples/vsx_mem.c.power8_gcc-6.o: file format elf64-powerpcle Disassembly of section .text: 0000000000000000 <INTRIN_schar>: 0: 00 00 26 2c cmpdi r6,0 4: 00 00 20 39 li r9,0 8: 20 00 82 4d beqlr c: 14 00 00 48 b 20 <INTRIN_schar+0x20> 10: 00 00 00 60 nop 14: 00 00 00 6...
/* Copyright (c) 2020 Adithya Venkatarao * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, pub...
;=================================================================== ; TitchySID v1.5 by StatMat - November 2020 ; ; Based on TinySID by Tammo Hinrichs (kb) and Rainer Sinsch (myth) ; ; Caveat: This library has been stripped down to the bare essentials ; required for SID playback. This means that the code is pret...
;-----------------------------------------------------------------------------; ; Author: HD Moore ; Compatible: Confirmed Windows 7, Windows 2008 Server, Windows XP SP1, Windows SP3, Windows 2000 ; Known Bugs: Incompatible with Windows NT 4.0, buggy on Windows XP Embedded (SP1) ; Version: 1.0 ;-------------------...
// // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2018 Francois Beaune, The appleseedhq Organization //...
; A090654: Decimal expansion of 4 + 2*sqrt(6). ; Submitted by Jon Maiga ; 8,8,9,8,9,7,9,4,8,5,5,6,6,3,5,6,1,9,6,3,9,4,5,6,8,1,4,9,4,1,1,7,8,2,7,8,3,9,3,1,8,9,4,9,6,1,3,1,3,3,4,0,2,5,6,8,6,5,3,8,5,1,3,4,5,0,1,9,2,0,7,5,4,9,1,4,6,3,0,0,5,3,0,7,9,7,1,8,8,6,6,2,0,9,2,8,0,4,6,9 mov $2,$0 cmp $2,0 add $0,$2 seq $0,10480 ; D...
// SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenColorIO Project. #include "BitDepthUtils.h" #include "fileformats/FileFormatCTF.cpp" #include "ops/fixedfunction/FixedFunctionOp.h" #include "ops/gradingrgbcurve/GradingRGBCurve.h" #include "testutils/UnitTest.h" #include "UnitTestLogUtils....
// Automatically created by soundconv.exe // Ready Set Go - Part 1 org $811FA6C; dd $8B9F7F8 // point to sound block org $8B9F7F8; db $00,$00,$00,$00,$00,$60,$F6,$00,$00,$00,$00,$00,$00,$00,$00,$00 org $8B9F804; dw $1A06 // length of sound data (minus header) org $8B9F808; incbin sound_readysetgo_a.bin // Re...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "maintenancedocumentsubdb.h" #include <vespa/searchcore/proton/common/ipendinglidtracker.h> namespace proton { MaintenanceDocumentSubDB::MaintenanceDocumentSubDB() : _name(""), _s...
; A293552: a(n) is the least integer k such that k/Fibonacci(n) > 1/4. ; 0,1,1,1,1,2,2,4,6,9,14,23,36,59,95,153,247,400,646,1046,1692,2737,4428,7165,11592,18757,30349,49105,79453,128558,208010,336568,544578,881145,1425722,2306867,3732588,6039455,9772043,15811497,25583539,41395036,66978574,108373610,175352184,283725793,...
// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - Core module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Core/PluginManager.hpp> #include <Nazara/Core/DynLib.hpp> #include <Nazara/Core/Error.hpp> #include <memory> #include <Nazara/Co...
; A197690: Decimal expansion of Pi/(4 + 2*Pi). ; Submitted by Jon Maiga ; 3,0,5,5,0,7,7,3,5,1,7,5,8,2,8,6,4,4,6,9,0,2,9,7,6,9,3,9,7,6,9,8,4,4,3,0,8,6,8,7,1,1,3,1,6,4,7,8,0,4,6,3,9,7,6,0,4,4,5,8,3,8,7,5,2,1,2,3,2,4,1,6,9,6,8,1,5,7,9,1,9,3,2,8,6,8,5,6,9,1,7,2,8,3,3,7,1,5,2 add $0,1 mov $2,1 mov $3,$0 mul $3,5 lpb $3 m...
%ifidn __OUTPUT_FORMAT__,obj section code use32 class=code align=64 %elifidn __OUTPUT_FORMAT__,win32 %ifdef __YASM_VERSION_ID__ %if __YASM_VERSION_ID__ < 01010000h %error yasm version 1.1.0 or later needed. %endif ; Yasm automatically includes .00 and complains about redefining it. ; https://www.tortall.net/projects/ya...
; A270472: Expansion of (1-2*x)/(1-9*x). ; 1,7,63,567,5103,45927,413343,3720087,33480783,301327047,2711943423,24407490807,219667417263,1977006755367,17793060798303,160137547184727,1441237924662543,12971141321962887 mov $1,9 pow $1,$0 mul $1,7 div $1,18 mul $1,2 add $1,1
%include "macros/patch.inc" %include "macros/datatypes.inc" %include "TiberianSun.inc" sstring str_EnhanceINI, "ENHANCE.INI" sstring str_SoundsMIX, "SOUNDS.MIX" sstring str_DTALong, "Dawn of the Tiberium Age" sstring str_DTAGameWindow, "DTA (Game Window)" sstring str_LanguageDLLNotFound, "Language.dll not found, pleas...
; size_t strlcpy(char * restrict s1, const char * restrict s2, size_t n) SECTION code_string PUBLIC strlcpy EXTERN asm_strlcpy strlcpy: pop af pop bc pop hl pop de push de push hl push bc push af jp asm_strlcpy
db "DRAGON@" ; species name dw 1301, 360 ; height, weight db "It is called the" next "divine #MON." next "When its entire" page "body brightens" next "slightly, the" next "weather changes.@"
Lab3_h: db LAB ; tileset db CINNABAR_LAB_3_HEIGHT, CINNABAR_LAB_3_WIDTH ; dimensions (y, x) dw Lab3Blocks, Lab3TextPointers, Lab3Script ; blocks, texts, scripts db $00 ; connections dw Lab3Object ; objects
/* Copyright 2015 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
; A081659: a(n) = n + Fibonacci(n+1). ; 1,2,4,6,9,13,19,28,42,64,99,155,245,390,624,1002,1613,2601,4199,6784,10966,17732,28679,46391,75049,121418,196444,317838,514257,832069,1346299,2178340,3524610,5702920,9227499,14930387,24157853,39088206,63246024,102334194,165580181,267914337,433494479,701408776,1134903214,183631194...
; A014634: a(n) = (2*n+1)*(4*n+1). ; 1,15,45,91,153,231,325,435,561,703,861,1035,1225,1431,1653,1891,2145,2415,2701,3003,3321,3655,4005,4371,4753,5151,5565,5995,6441,6903,7381,7875,8385,8911,9453,10011,10585,11175,11781,12403,13041,13695,14365,15051,15753,16471,17205,17955,18721,19503,20301,21115,21945,22791,23653,2453...
/* Q Light Controller miditemplate.cpp Copyright (c) Heikki Junnila This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be u...
%macro INTERRUPT_NAME 1 dq __interrupt%1 %endmacro %macro INTERRUPT_ERR 1 __interrupt%1: push %1 jmp __interrupt_common %endmacro %macro INTERRUPT_NOERR 1 __interrupt%1: push 0 push %1 jmp __interrupt_common %endmacro %macro __pusha 0 push rax push rbx push rcx push rdx push rsi push rdi p...
; A011853: [ binomial(n,7)/7 ]. ; 0,0,0,0,0,0,0,0,1,5,17,47,113,245,490,919,1634,2778,4546,7198,11074,16611,24363,35022,49443,68671,93971,126861,169148,222968,290828,375653,480836,610292,768516,960645 bin $0,7 div $0,7 mov $1,$0
; /usr/local/bin/nasm -f macho64 64.asm && ld -macosx_version_min 10.7.0 -lSystem -o 64 64.o && ./64 global start section .text start: mov rax, 0x2000004 ; write mov rdi, 1 ; stdout mov rsi, msg mov rdx, msg.len syscall mov rax, 0x2000001 ; exit mov rdi, 0 sysc...
; A039267: Numbers whose base-12 representation has the same number of 7's and 10's. ; 0,1,2,3,4,5,6,8,9,11,12,13,14,15,16,17,18,20,21,23,24,25,26,27,28,29,30,32,33,35,36,37,38,39,40,41,42,44,45,47,48,49,50,51,52,53,54,56,57,59,60,61,62,63,64,65,66,68,69,71,72,73,74,75,76,77,78,80,81,83 add $0,1 seq $0,39218 ; Numbers...
; A158306: 324n - 1. ; 323,647,971,1295,1619,1943,2267,2591,2915,3239,3563,3887,4211,4535,4859,5183,5507,5831,6155,6479,6803,7127,7451,7775,8099,8423,8747,9071,9395,9719,10043,10367,10691,11015,11339,11663,11987,12311,12635,12959,13283,13607,13931,14255,14579,14903,15227,15551,15875,16199,16523,16847,17171,17495,17819,...
; A254865: a(n) = Product_{k = 1+n-floor(n/3) .. n} k. ; 1,1,3,4,5,30,42,56,504,720,990,11880,17160,24024,360360,524160,742560,13366080,19535040,27907200,586051200,859541760,1235591280,29654190720,43609104000,62990928000,1700755056000,2506375872000,3634245014400,109027350432000,160945136352000,234102016512000,772536654...
//.............................................................................. // // This file is part of the Jancy toolkit. // // Jancy is distributed under the MIT license. // For details see accompanying license.txt file, // the public copy of which is also available at: // http://tibbo.com/downloads/archive/...
;Author: Bill Wang ;Date: 11/20/2016/ ;Main ; Include derivative-specific definitions INCLUDE 'mc9s12dp256.inc' ;CPU used by Dragon12+ board INCLUDE 'Name_LCD_Macro.mac' ABSENTRY Entry R1 EQU $1001 R2 EQU $1002 R3 EQU $1003 R4 EQU $1004 LCD_DATA...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2014, 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...
#include "DataFormats/Common/interface/Handle.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/global/EDFilter.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include...
; A338199: a(n) = v(1 + F(4*n - 3)), where F(x) = (3*x + 1)/2^v(3*x + 1), x is any odd natural number, and v(y) is the 2-adic valuation of y. ; 1,1,3,1,1,1,2,2,1,3,5,1,1,1,2,3,1,1,3,1,1,1,2,2,1,2,4,1,1,2,2,4,1,1,3,1,1,3,2,2,1,5,7,1,1,1,2,3,1,1,3,1,1,1,2,2,1,2,4,1,1,3,2,5,1,1,3,1,1,1,2,2,1 mul $0,3 seq $0,265 ; Remove ...
; int printf(const char *format, ...) INCLUDE "clib_cfg.asm" SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC printf EXTERN asm_printf defc printf = asm_printf ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ELSE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC pr...
// Copyright 2014 SuperNode 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/ByteSlice.h" #include "crypto/SHA.h" #include "lib/catch.hpp" #include "main...
; A047418: Numbers that are congruent to {0, 2, 3, 4, 6} mod 8. ; 0,2,3,4,6,8,10,11,12,14,16,18,19,20,22,24,26,27,28,30,32,34,35,36,38,40,42,43,44,46,48,50,51,52,54,56,58,59,60,62,64,66,67,68,70,72,74,75,76,78,80,82,83,84,86,88,90,91,92,94,96,98,99,100,102,104,106,107,108,110,112,114,115,116,118,120,122,123,124,126,128...
; $Id: bs3-cpu-basic-2-asm.asm 69111 2017-10-17 14:26:02Z vboxsync $ ;; @file ; BS3Kit - bs3-cpu-basic-2 ; ; ; Copyright (C) 2007-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it a...
; /***************************************************************************** ; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ; ***************************************************************************** ; * Copyright 2021 Marco Spedaletti (asimov@mclink.it) ; * ; * Licensed un...
;****************************************************************************** ;* VP9 Intra prediction SIMD optimizations ;* ;* Copyright (c) 2015 Ronald S. Bultje <rsbultje gmail com> ;* Copyright (c) 2015 Henrik Gramner <henrik gramner com> ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can re...
/* ************************************************ username : smmehrab fullname : s.m.mehrabul islam email : mehrab.24csedu.001@gmail.com institute : university of dhaka, bangladesh session : 2017-2018 ************************************************ */ #include <bits/stdc++.h> #include <st...
; =============================================================== ; Jan 2014 ; =============================================================== ; ; size_t fwrite(void *ptr, size_t size, size_t nmemb, FILE *stream) ; ; Write nmemb records of size bytes pointed at by ptr. Output ; one record at a time and return the nu...
;; Licensed to the .NET Foundation under one or more agreements. ;; The .NET Foundation licenses this file to you under the MIT license. include AsmMacros.inc LEAF_ENTRY memclr_for_gc, _TEXT ; x64 version ; we get the following parameters ; rcx = destination address ; rdx = size to clear ; save rdi -...
; A142692: Primes congruent to 44 mod 57. ; Submitted by Jon Maiga ; 101,443,557,1013,1583,1697,1811,2039,2153,2267,2381,2609,2837,3407,3863,4091,4547,4889,5003,5231,5573,5801,6029,6143,6257,6599,6827,7283,7853,8081,8423,8537,9221,9677,9791,10133,10247,10589,11159,11273,12071,12413,12527,12641,12983,13553,13781,14009,1...
kp_song kp_reloc dc.w kp_song_registers dc.w kp_speed dc.w kp_grooveboxpos dc.w kp_grooveboxlen dc.w kp_groovebox dc.w kp_patternlen dc.w kp_patternmap_lo dc.w kp_patternmap_hi dc.w kp_insmap_lo dc.w kp_insmap_hi dc.w kp_volmap_lo dc.w kp_volmap_hi dc.w kp_sequence kp_song_registers kp_speed dc.b $02 kp_g...
#unsigned numbers .data .text .globl main main: li $t1, 1 li $t2, 2 sltu $t0, $t1, $t2 #u stands for unsigned li $t2, 0xF1000000 li $t3, 0x00000001 sltu $t0, $t2, $t3 #u stands for unsigned li $v0, 10 syscall
#include <recorder.h> #include <sstream> #include <sys/time.h> namespace gni { recorder_t::recorder_t(packetbuffer_t &packets, uint32_t max_file_size) : _file(nullptr), _max_file_size(max_file_size), _file_segment_counter(0), _file_size_counter(0), _pktbuff(packets) {} void recorder_t::run(void) noexcept {...
; A295581: Maximal value of a length-n "minimal cyclically good sequence" in the sense of Cavenagh et al. (2006). ; Submitted by Christian Krause ; 3,5,6,8,9,11,13,15,18,21,23,26,29 mov $3,$0 trn $0,6 mul $3,5 lpb $3 add $2,1 sub $3,1 mov $5,$2 div $5,3 add $5,$0 mov $4,$5 div $4,2 cmp $4,0 add $5,$4...
; A138750: a(n) = ceiling(n/2) if n == 2 (mod 3), a(n) = 2n otherwise. ; 0,2,1,6,8,3,12,14,4,18,20,6,24,26,7,30,32,9,36,38,10,42,44,12,48,50,13,54,56,15,60,62,16,66,68,18,72,74,19,78,80,21,84,86,22,90,92,24,96,98,25,102,104,27,108,110,28,114,116,30,120,122,31,126,128,33,132,134,34 add $0,1 mov $2,$0 mov $8,$0 add $0,2...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_AF ;TEST_FILE_META_END ; AND32mr ;TEST_BEGIN_RECORDING lea eax, [esp-0x4] mov DWORD [eax], 0x55555 mov ebx, 0x77777 and DWORD [eax], ebx mov eax, 0x0 ;TEST_END_RECORDING
; void b_vector_destroy(b_vector_t *v) SECTION code_adt_b_vector PUBLIC b_vector_destroy defc b_vector_destroy = asm_b_vector_destroy INCLUDE "adt/b_vector/z80/asm_b_vector_destroy.asm"
; Copyright Oliver Kowalke 2009. ; 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) ; ; Boost Software License - Version 1.0 - August 17th, 2003 ; ; Permission is hereby granted, free of char...
; A114870: a(n) = A002627(n+1) - A002627(n) - n!. ; 0,1,5,25,141,911,6703,55581,513929,5248891,58724211,714554633,9397715341,132870076119,2009977939271,32396622193141,554297204755473,10034223725151731,191617109450287579,3849745645109036001,81175324213252160021,1792470446010795600463,41365699837952508490671,995832146864...
; A010882: Period 3: repeat [1, 2, 3]. ; Submitted by Christian Krause ; 1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1 mod $0,3 add $0,1
;Write an 8051 assembly language program to glow the LEDs connected on PORT1 one at a time in a serial fashion (from LSB to MSB) ;continuously with 0.5 seconds delay for each . Verify the output using ESA 8051 Microcontroller kit. ORG 0000H MOV P1,#00H MOV A, #01H MOV R1,#07 ...