text
stringlengths
1
1.05M
; ; Page the graphics bank in/out - used by all gfx functions ; Doesn't really page on the Amstrad CPC. ; ; ; $Id: swapgfxbk.asm,v 1.5 2015/01/19 01:32:47 pauloscustodio Exp $ ; ; There might be something to put here; it looks like the ; alternate registers and/or the index registers have to be ; handled ca...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <ie_iinfer_request.hpp> #include <map> #include <memory> #include <string> #include <vector> #include "cpp_interfaces/base/ie_infer_async_request_base.hpp" #include "cpp_interfaces/impl/ie_executable_network_...
; sort array into new array and discard old one include win1_mac_oli section utility xdef ut_sortnar ;+++ ; sort an 2 dim array and discard unsorted array ; ; Entry Exit ; d1.l array type (0=abs,1=rel) 0 ; a0 unsorted arra...
_usertests: file format elf32-i386 Disassembly of section .text: 00000000 <main>: return randstate; } int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r14 push %r15 push %r8 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x105f6, %rbx nop and %r12, %r12 movb (%rbx), %r15b add %r14, %r14 lea addresses_D_ht+0x1827e, %r8 clflush (%r8) nop and %r11, %r11 vmovups (%r8), %ymm7 vex...
; A070572: n^4 mod 29. ; 0,1,16,23,24,16,20,23,7,7,24,25,1,25,20,20,25,1,25,24,7,7,23,20,16,24,23,16,1,0,1,16,23,24,16,20,23,7,7,24,25,1,25,20,20,25,1,25,24,7,7,23,20,16,24,23,16,1,0,1,16,23,24,16,20,23,7,7,24,25,1,25,20,20,25,1,25 pow $0,4 mod $0,29 mov $1,$0
; A168198: a(n) = 3*n - a(n-1) + 1 with n > 1, a(1)=1. ; 1,6,4,9,7,12,10,15,13,18,16,21,19,24,22,27,25,30,28,33,31,36,34,39,37,42,40,45,43,48,46,51,49,54,52,57,55,60,58,63,61,66,64,69,67,72,70,75,73,78,76,81,79,84,82,87,85,90,88,93,91,96,94,99,97,102,100,105,103,108,106,111,109,114,112,117,115,120,118,123,121,126,124,1...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0xfee4, %rsi lea addresses_WC_ht+0x15ce4, %rdi clflush (%rsi) nop add $64403, %rbp mov $16, %rcx rep movsl nop nop nop cmp %rax, %rax lea addresses_D_ht+0x7c68, %rsi lea addres...
; ; hello2k.asm ; ; A "Hello, World!" which illustrates an Atari 2600 programming ; introduction talk (slides at http://slideshare.net/chesterbr). ; ; This is free software (see license below). Build it with DASM ; (http://dasm-dillon.sourceforge.net/), by running: ; ; dasm hello.asm -ohello.bin -f3 ; PROCESSOR ...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 LITEX Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license...
; A295904: Number of (not necessarily maximum) cliques in the n-sun graph. ; 6,12,20,32,52,88,156,288,548,1064,2092,4144,8244,16440,32828,65600,131140,262216,524364,1048656,2097236,4194392,8388700,16777312,33554532,67108968,134217836,268435568,536871028,1073741944,2147483772,4294967424,8589934724 mov $1,2 pow $1,$0 ad...
;------------------------------------------------------------------------------ ; ; GetInterruptState() function for ARM ; ; Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> ; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> ; This program and the accompanying materials ; ar...
; A054488: Expansion of (1+2*x)/(1-6*x+x^2). ; Submitted by Jamie Morken(s4) ; 1,8,47,274,1597,9308,54251,316198,1842937,10741424,62605607,364892218,2126747701,12395593988,72246816227,421085303374,2454265004017,14304504720728,83372763320351,485932075201378,2832219687887917,16507386052126124,96212096624868827,5607651936...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="fd, path, mode"/> <%docstring> Invokes the syscall mkdirat. See 'man 2 mkdirat' for more information. Arguments: fd(int): fd path(char): path mode(mode_t): mode </%docstring> ${syscall('SYS_mkdirat', fd, path, mode)}
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Fill.asm // Runs an infinite loop that listens to the keyboard input. // When a key is pressed (any key), the program blackens the screen, // i.e. writes...
// VirtualDub - Video processing and capture application // Graphics support library // Copyright (C) 1998-2009 Avery Lee // // This program 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 o...
// Copyright (c) 2014-2018 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 <crypto/hmac_sha256.h> #include <string.h> CHMAC_SHA256::CHMAC_SHA256(const unsigned char* key, size_t key...
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved. // Copyright (c) 2021 by Apex.AI 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:...
_ReceiveItem:: call DoesHLEqualNumItems jp nz, PutItemInPocket push hl call CheckItemPocket pop de ld a, [wItemAttributeParamBuffer] dec a ld hl, .Pockets rst JumpTable ret .Pockets: ; entries correspond to item types dw .Item dw .KeyItem dw .Ball dw .TMHM .Item: ld h, d ld l, e jp PutItemInPocket ....
; A094554: Number of closed walks of length n at a base vertex of a truncated tetrahedron (triangular prism). ; Submitted by Jon Maiga ; 1,0,3,2,19,30,143,322,1179,3110,10183,28842,89939,262990,802623,2380562,7196299,21479670,64657463,193535482,581480259,1742693150,5231574703,15687733602,47077181819,141203583430,423666...
; A198833: The number of inequivalent ways to color the vertices of a regular octahedron using at most n colors. ; 1,10,56,220,680,1771,4060,8436,16215,29260,50116,82160,129766,198485,295240,428536,608685,848046,1161280,1565620,2081156,2731135,3542276,4545100,5774275,7268976,9073260,11236456,13813570,16865705,20460496,...
TITLE CLEAR - CLEAR for BASCOM-86 ;*** ; CLEAR - CLEAR for BASCOM-86 ; ; Copyright <C> 1986, Microsoft Corporation ; ;Purpose: ; ; BASIC Syntax mapping to included runtime entry points: ; ; - CLEAR Statement ; ; CLEAR [,[n][,m]] ; | ; B$SCLR ; ;*************************************************************...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2016 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 "chainparams.h" #include "consensus/merkle.h" #include "tinyformat.h" #inclu...
// Copyright 2015 the V8 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. #include "src/compiler/wasm-compiler.h" #include <memory> #include "src/assembler-inl.h" #include "src/base/optional.h" #include "src/base/platform/el...
/******************************************************************************* * Copyright 2018 BGx Graphics Framework. * * 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:/...
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman 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) =========================================...
db GRANBULL ; 210 db 90, 120, 75, 45, 60, 60 ; hp atk def spd sat sdf db NORMAL, NORMAL ; type db 75 ; catch rate db 178 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F75 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/granbull/front.dimen...
PUSH ->W DRAG PUSH ->W MOVE PUSH 1 EQ JIF drag END drag: PUSH ->W DROP PUSH 1 EQ JIF drop JMP nope drop: PUSH ->E DROP nope: PUSH -> MOVE ...
/* * The XCS Library * A C++ framework to apply and develop learning classifier systems * Copyright (C) 2002-2009 Pier Luca Lanzi and Daniele Loiacono * * Pier Luca Lanzi and Daniele Loiacono * Dipartimento di Elettronica e Informazione * Politecnico di Milano * Piazza Leonardo da Vinci 32 * I-20133 MILANO -...
;;;;;;;;;;;;;;;;;;;;;;;; ; assert ;;;;;;;;;;;;;;;;;;;;;;;; macro Assert cc, a, b, mes if DEBUG = 1 local skip, errorbox, message cmp a, b j#cc skip jmp errorbox message: db mes db 0 errorbox: lea rdi, [message] call Os_ErrorBox mov ecx, 1 jmp Os_ExitProcess skip: end...
; A158253: 289n - 1. ; 288,577,866,1155,1444,1733,2022,2311,2600,2889,3178,3467,3756,4045,4334,4623,4912,5201,5490,5779,6068,6357,6646,6935,7224,7513,7802,8091,8380,8669,8958,9247,9536,9825,10114,10403,10692,10981,11270,11559,11848,12137,12426,12715,13004,13293,13582,13871,14160,14449,14738,15027,15316,15605,15894,1618...
/** * Copyright (c) 2017-present, Facebook, Inc. * * 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 ...
; A255201: Number of prime factors of n^2. ; Submitted by Jamie Morken(s1) ; 0,2,2,4,2,4,2,6,4,4,2,6,2,4,4,8,2,6,2,6,4,4,2,8,4,4,6,6,2,6,2,10,4,4,4,8,2,4,4,8,2,6,2,6,6,4,2,10,4,6,4,6,2,8,4,8,4,4,2,8,2,4,6,12,4,6,2,6,4,6,2,10,2,4,6,6,4,6,2,10,8,4,2,8,4,4,4,8,2,8,4,6,4,4,4,12,2,6,6,8 lpb $0 seq $0,86436 ; Maximum numb...
; 编译链接方法 ; (ld 的‘-s’选项意为“strip all”) ; ; $ nasm -f elf hello.asm -o hello.o ; $ ld -s hello.o -o hello ; $ ./hello ; Hello, world! ; $ [section .data] ; 数据在此 strHello db "Hello, world!", 0Ah STRLEN equ $ - strHello [section .text] ; 代码在此 global _start ; 我们必须导出 _start 这个入口,以便让链接器识别 _start: mov edx, STRLEN mov ec...
[BITS 64] %include "src/asm_routines/constants.asm" global start global endlabel extern rust_main extern rust_ap_get_stack extern rust_ap_main section .entry start: ; clear segment registers xor ax, ax mov ss, ax mov ds, ax mov es, ax mov fs, ax mov gs, ax test rcx, rcx jnz .ap_c...
// Test provided by Karu // Both sources same reg, read and write same reg, result zero lbi r1, 0xfc sub r1, r1, r1 halt
#pragma once /** * open_addr_hashtable: simple hash table that does no allocation. * Emery Berger * https://emeryberger.com **/ template <unsigned long Size> class open_addr_hashtable { public: open_addr_hashtable() { static_assert((Size & (Size - 1UL)) == 0, "Size must be a power of two."); } v...
// Commands.cpp : Implementation of CCommands #include "stdafx.h" #include "COMToVCFClassWizard.h" #include "Commands.h" #include "TypeLibraryConverterDlg.h" #include "ConvertActiveXCtrlDlg.h" #include "TypeLibDump.h" ///////////////////////////////////////////////////////////////////////////// // CCommands ...
//================================================================================================= /*! // \file src/mathtest/dmatdmatadd/M6x6aMDa.cpp // \brief Source file for the M6x6aMDa dense matrix/dense matrix addition math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This fi...
; A178896: a(n) = n OR 9n, where OR is bitwise OR. ; 0,9,18,27,36,45,54,63,72,89,90,107,108,125,126,143,144,153,178,187,180,189,214,223,216,249,250,251,252,285,286,287,288,297,306,315,356,365,374,383,360,377,378,427,428,445,446,431,432,441,498,507,500,509,502 mov $2,$0 mov $4,$0 mov $5,$0 mov $6,$0 mul $0,2 seq $0,178...
org $00894B : LDA.b #SA1SRAM>>16 org $008961 : STA.w SA1SRAM+$0000,Y org $008964 : STA.w SA1SRAM+$0F00,Y org $00896B : STA.w SA1SRAM+$0100,Y org $00896E : STA.w SA1SRAM+$1000,Y org $008975 : STA.w SA1SRAM+$0200,Y org $008978 : STA.w SA1SRAM+$1100,Y org $00897F : STA.w SA1SRAM+$0300,Y org $008982 : STA.w SA1SRAM+$1200,Y...
; A095995: Primes of the form 100n - 1. ; Submitted by Jamie Morken(s4) ; 199,499,599,1399,1499,1699,1999,2099,2399,2699,2999,3299,3499,4099,4799,4999,5099,5399,6199,6299,6599,6899,7499,7699,8599,8699,8999,9199,10099,10399,10499,10799,11299,11399,11699,12799,12899,13099,13399,13499,13799,13999,14699,15199,15299,16699,1...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are perm...
[org 0x0100] jmp start string: db 0 printstr: ;parameters order of pushing ;x pos, ypos, attribute, message, length push bp mov bp, sp ;saving registers push ax push cx push di push si push es mov ax, 0xb800 mov es, ax ;point es to video base mov al, 80 ;load al with coloumns...
// Copyright (c) 2009-2012 The FlorijnCoin Developers // Copyright (c) 2011-2012 Litecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <openssl/aes.h> #include <openssl/evp.h> #include <vector> #includ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x9392, %rsi lea addresses_WT_ht+0x1d952, %rdi nop nop nop sub %r10, %r10 mov $59, %rcx rep movsb nop nop nop nop nop sub %rbp, %rbp lea addresses_A_ht+0x3622, %rsi lea addresse...
;************************************************************************** ; arch/z80/src/ez80/ez80_reset.asm ; ; 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 ownersh...
; =============================================================== ; May 2017 ; =============================================================== ; ; void *tshc_aaddrpdown(void *saddr) ; ; Modify attribute address to move down one pixel. ; ; =============================================================== SECTION code_cli...
;Spawn location table cryptic documentation ;$A0 |$15B6E - $15B7B (2) Starting room ;$0601 |$15B7C - $15BB3 (8) scroll ranges ;$E2 |$15BB4 - $15BC1 (2) Location X? Scroll Data ;$E8 |$15BC2 - $15BCF (2) Location Y? Scroll Data ;$20 |$15BD0 - $15BDD (2) link x? ;$22 |$15BDE - $15BEB (2) link y...
//Due to an inconsistency in the ESP8266 rosserial time, the timestamp is created in this NodeHandle //When an odometryRAW message is received, we add the timestamp of the computer to it //Also the tf transform is sent from there, which is not crucial but is easier to change on the go #include "ros/ros.h" #include "na...
;; ;; Copyright (c) 2012-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...
mov ah, 0x0e ; attempt 1 ; Fails because it tries to print the memory address (i.e. pointer) ; not its actual contents mov al, "1" int 0x10 mov al, the_secret int 0x10 ; attempt 2 ; It tries to print the memory address of 'the_secret' which is the correct approach. ; However, BIOS places our bootsector binary at addr...
; A005614: The binary complement of the infinite Fibonacci word A003849. Start with 1, apply 0->1, 1->10, iterate, take limit. ; 1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0...
/** * Author: Anne van Rossum * Copyright: Distributed Organisms B.V. (DoBots) * Date: 10 Oct., 2014 * License: LGPLv3+, Apache, and/or MIT, your choice */ #include <drivers/serial.h> #include <cstring> #include <cstdarg> #include <cstdio> #include <cstdlib> #include "nRF51822.h" #include "common/boards.h" #def...
aseg org 20D0h start: ld C, 0 ; C contador de positivos ld IX, 2103h ; IX apunta al byte del signo del primer numero (considerando little endian) ld B, 3 ; B cuenta las iteraciones por los 3 numeros ciclo: ld A, (IX) ; cargo el byte del signo en A add A, 80h ; provoca carry jp C, sigo ; si no hub...
; ; Old School Computer Architecture - interfacing FLOS ; Stefano Bodrato, 2011 ; ; Get current volume ; ; $Id: get_current_volume.asm,v 1.3 2016-06-22 22:13:09 dom Exp $ ; INCLUDE "target/osca/def/flos.def" SECTION code_clib PUBLIC get_current_volume PUBLIC _get_current_volume get_current_volume: _...
/* Copyright John Reid 2007 */ #include "bio-pch.h"
/* Declare constants for the multiboot header. */ .set ALIGN, 1<<0 /* align loaded modules on page boundaries */ .set MEMINFO, 1<<1 /* provide memory map */ .set FLAGS, ALIGN | MEMINFO /* this is the Multiboot 'flag' field */ .set MAGIC, 0x1BADB002 /* 'magic number' lets bootlo...
bits 64 section .data sample: db 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff, 0x11, 0x22 section .bss section .text global main main: mov rax, 0x_1122_3344_5566_7788 push rax push sample push qword[sample] pop r15 pop r14 pop rbx mov rax, 60 ...
; =============================================================== ; Mar 2014 ; =============================================================== ; ; size_t w_array_append_n(w_array_t *a, size_t n, void *item) ; ; Append n copies of item to the end of the array, return ; index of first appended item. ; ; ===============...
Sound_BA_Header: smpsHeaderStartSong 3 smpsHeaderVoice Sound_BA_BB_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $01 smpsHeaderSFXChannel cFM4, Sound_BA_FM4, $0A, $0B ; FM4 Data Sound_BA_FM4: smpsSetvoice $00 dc.b nE2, $06, $06, $06 smpsStop Sound_BA_BB_Voices: ; Voice $00 ; $3C ; $00, $01, $...
; A100303: Expansion of (1-x-4x^2)/(1-x-8x^2). ; 1,0,4,4,36,68,356,900,3748,10948,40932,128516,455972,1484100,5131876,17004676,58059684,194097092,658574564,2211351300,7479947812,25170758212,85010340708,286376406404,966459132068,3257470383300 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 trn $0,1 seq...
; A083511: Members of A000124 which are multiples of 11. ; 11,22,121,154,352,407,704,781,1177,1276,1771,1892,2486,2629,3322,3487,4279,4466,5357,5566,6556,6787,7876,8129,9317,9592,10879,11176,12562,12881,14366,14707,16291,16654,18337,18722,20504,20911,22792,23221 seq $0,106387 ; Numbers j such that 6j^2 + 6j + 1 = 11k....
; CHARSET IMAGE DATA... ; 256 images, 8 bytes per image, total size is 2048 ($800) bytes. charset_data: .byte $0F,$0F,$0F,$0F,$5A,$5A,$5A,$5A,$00,$00,$00,$00,$00,$00,$00,$00 .byte $07,$0E,$1D,$25,$27,$3E,$1D,$3D,$D0,$B0,$F4,$97,$A7,$ED,$9C,$9C .byte $36,$2D,$16,$07,$0D,$0A,$0F,$0D,$BD,$D9,$B9,$59,$74,$74,$...
;ASTER 01/03/2009 1545 ;TO BE ASSEMBLED IN KEIL MICROVISION V3.60 ;ARTIFICIAL INTELLIGENCE ;MICROCOMPUTER A ;CODE BASE COMPLETED : 02/03/2009 2120 ;REV 2 LAST UPDATED 02/03/2009 2300 ;----------------------------------------------------------------------------------------------------------- ;SET THE ASSEMBLER FOR AT...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x10f29, %r15 nop nop xor $33694, %rbp mov (%r15), %rcx nop nop add %r12, %r12 lea addresses_WT_ht+0x459, %r10 nop nop nop nop xor $20756, %r11 mov $0x6162636465666768, %rdi m...
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24)) ftyp_start: dd BE(ftyp_end - ftyp_start) dd "ftyp" db 0x61, 0x76, 0x69, 0x66 ; brand(32) ('avif') db 0x00, 0x00, 0x00, 0x00 ; version(32) db 0x61, 0x76, 0x69, 0x66 ; compatible_...
; A114054: Decimal expansion of 998998998998998998998998998/9. ; 1,1,0,9,9,9,8,8,8,7,7,7,6,6,6,5,5,5,4,4,4,3,3,3,2,2,2 sub $0,2 mul $0,29 div $0,3 mod $0,10 add $0,10 mod $0,10
// // Created by tobias on 11.02.17. // #include "Buffer.h" namespace vulkan { Buffer::Buffer (vulkan::Renderer *_renderer, vk::BufferUsageFlagBits _bufferUsage) : renderer (_renderer), bufferUsage (_bufferUsage) { } void Buffer::create (vk::DeviceSize bufferSize, const void *data) ...
; A054322: Fourth unsigned column of Lanczos triangle A053125 (decreasing powers). ; 4,80,896,7680,56320,372736,2293760,13369344,74711040,403701760,2122317824,10905190400,54962159616,272461987840,1331439861760,6425271074816,30666066493440,144929376436224,678948430151680,3155598371717120,14561931998265344,66762346038558...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_UC_ht+0x13da5, %rsi lea addresses_WT_ht+0x18fa5, %rdi nop nop nop add $17222, %rax mov $75, %rcx rep movsq nop nop cmp %r15, %r15 lea addresses_A_ht+0xaabd, %rsi lea addresses_A_ht+0x766b, %rd...
section .text global _start ;must be declared for linker (ld) _start: ;tells linker entry point mov edx,len ;message length mov ecx,msg ;message to write mov ebx,1 ;file descriptor (stdout) mov eax,4 ;system call number (sys_write) int 0x80 ;call kernel mov eax,1 ;system call number (...
// conditional assignment, question mark #include<iostream> #include<string> static int s_Level = 8; static int s_Speed = 2; int main() { /*if (s_Level > 5) s_Speed = 10; else s_Speed = 5;*/ //s_Speed = s_Level > 5 ? 10 : 5; s_Speed = s_Level > 5 ? s_Level > 10 ? 15 : 10 : 5; /*if (s_Level > 5) if (s_Le...
; A056942: Area of rectangle needed to enclose a non-touching spiral of length n on a square lattice. ; 0,1,2,4,6,6,9,12,12,12,16,20,20,20,20,25,30,30,30,30,30,36,42,42,42,42,42,42,49,56,56,56,56,56,56,56,64,72,72,72,72,72,72,72,72,81,90,90,90,90,90,90,90,90,90,100,110,110,110,110,110,110,110,110,110,110,121,132,132,13...
; A274973: Centered cubohemioctahedral numbers: a(n) = 2*n^3+9*n^2+n+1. ; 1,13,55,139,277,481,763,1135,1609,2197,2911,3763,4765,5929,7267,8791,10513,12445,14599,16987,19621,22513,25675,29119,32857,36901,41263,45955,50989,56377,62131,68263,74785,81709,89047,96811,105013,113665,122779,132367 mov $1,9 add $1,$0 add $1,$0...
; A327326: a(n) = A006218(n) - A005187(n). ; 0,0,0,1,1,2,4,5,5,7,9,10,13,14,16,19,19,20,24,25,28,31,33,34,38,40,42,45,48,49,55,56,56,59,61,64,70,71,73,76,80,81,87,88,91,96,98,99,104,106,110,113,116,117,123,126,130,133,135,136,145,146,148,153,153,156,162,163,166,169,175,176,184 mov $2,2 lpb $0 mov $3,$0 cal $3,2485...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ; CMOVNO16rr mov ax, 0x2 mov bx, 0x4 ;TEST_BEGIN_RECORDING cmovno ax, bx ;TEST_END_RECORDING
// Copyright Louis Dionne 2013-2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #include <boost/hana/assert.hpp> #include <boost/hana/contains.hpp> #include <boost/hana/equal.hpp> #include <boost/hana/map.hpp> #include ...
Route20Mons: db $00 db $05 db 5,TENTACOOL db 10,TENTACOOL db 25,GYARADOS db 15,HORSEA db 10,CARVANHA db 15,STARYU db 20,CHINCHOU db 30,KABUTO db 35,OMANYTE db 40,TENTACRUEL
; A005810: a(n) = binomial(4n,n). ; 1,4,28,220,1820,15504,134596,1184040,10518300,94143280,847660528,7669339132,69668534468,635013559600,5804731963800,53194089192720,488526937079580,4495151581425648,41432089765583440,382460951663844400,3535316142212174320,32719234717090658880,303153433901925208740,281166506986108210740...
/** * PlayerListDriver.cpp * * Created on: Oct 29, 2013 * Author: Christopher J. Cunniff * * Driver * tests class PlayerList * functions: * addPlayer() * getCurrentPlayer() * next() * iterate() * purge() * getButton() * getSize() * remove()...
; A165830: Totally multiplicative sequence with a(p) = 9. ; 1,9,9,81,9,81,9,729,81,81,9,729,9,81,81,6561,9,729,9,729,81,81,9,6561,81,81,729,729,9,729,9,59049,81,81,81,6561,9,81,81,6561,9,729,9,729,729,81,9,59049,81,729,81,729,9,6561,81,6561,81,81,9,6561,9,81,729,531441,81,729,9,729,81,729,9,59049,9,81,729,729,81,729,9,...
SECTION code_clib SECTION code_fp_math48 PUBLIC _lgamma EXTERN cm48_sdcciy_lgamma defc _lgamma = cm48_sdcciy_lgamma
#include "dynamixel_workbench_practice/master_slave_joint_traj.h" void jointStateCallback(const sensor_msgs::JointStateConstPtr& msg) { double position = 2 * msg->position[0] - msg->position[1]; traj.header.seq = msg->header.seq; traj.header.stamp = ros::Time::now(); traj.header.frame_id = msg->header.frame_i...
dnl Alpha mpn_lshift -- Shift a number left. dnl Copyright 1994, 1995, 2000, 2003, 2009 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 Gene...
; float _fmax_callee (float left, float right) SECTION code_clib SECTION code_fp_am9511 PUBLIC cam32_sdcc_fmax_callee EXTERN asm_am9511_compare ; maximum of two sdcc floats ; ; enter : stack = sdcc_float right, sdcc_float left, ret ; ; exit : DEHL = sdcc_float ; ; uses : af, bc, de, ...
#include "queryscheduler.h" #include "logger.h" #include <algorithm> #include <atomic> #include <mutex> #include <thread> namespace zeek { namespace { Status querySchedulerThread(QueryScheduler &query_scheduler, std::atomic_bool &terminate) { while (!terminate) { std::this_thread::sl...
; A056811: Number of primes not exceeding square root of n: primepi(sqrt(n)). ; 0,0,0,1,1,1,1,1,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,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,...
;; ;; 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...
; A184519: Upper s-Wythoff sequence, where s=4n-3. Complement of A184518. ; 2,8,13,18,23,28,34,39,44,49,55,60,65,70,76,81,86,91,97,102,107,112,118,123,128,133,138,144,149,154,159,165,170,175,180,186,191,196,201,207,212,217,222,227,233,238,243,248,254,259,264,269,275,280,285,290,296,301,306,311,316,322,327,332,337,343,...
SECTION code_ctype PUBLIC asm_isblank asm_isblank: ; determine if char is tab or space ; enter : a = char ; exit : z flag set if blank ; uses : f cp ' ' ret z cp 9 ret
;------------------------------------------------------------------------------ ; ; 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...
; A247313: a(n) = 5*a(n-1) - 2^n for n>0, a(0)=1. ; 1,3,11,47,219,1063,5251,26127,130379,651383,3255891,16277407,81382939,406906503,2034516131,10172547887,50862673899,254313238423,1271565929971,6357829125567,31789144579259,158945720799143,794728599801411,3973642990618447 mov $2,1 mov $3,2 lpb $0 sub $0,1 add $3,$2...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: UnityEngine.UI...
#include <iostream> struct MyStruct { MyStruct() { std::cout << "MyStruct ctor\n"; } MyStruct(const MyStruct &other) { std::cout << "MyStruct copy ctor\n"; } MyStruct &operator=(const MyStruct &other) { std::cout << "MyStruct copy assignment\n"; return *this; } }; MyStruct Ret1() { MyStruct ...
; A004924: Floor of n*phi^9, where phi is the golden ratio, A001622. ; 0,76,152,228,304,380,456,532,608,684,760,836,912,988,1064,1140,1216,1292,1368,1444,1520,1596,1672,1748,1824,1900,1976,2052,2128,2204,2280,2356,2432,2508,2584,2660,2736 mul $0,76
-- HUMAN RESOURCE MACHINE PROGRAM -- -- in2, in1, ... -> out a: INBOX COPYTO 0 INBOX OUTBOX COPYFROM 0 OUTBOX JUMP a
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE415_Double_Free__malloc_free_char_83a.cpp Label Definition File: CWE415_Double_Free__malloc_free.label.xml Template File: sources-sinks-83a.tmpl.cpp */ /* * @description * CWE: 415 Double Free * BadSource: Allocate data using malloc() and Deallocate data usin...
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Fill.asm // Runs an infinite loop that listens to the keyboard input. // When a key is pressed (any key), the program blackens the screen, // i.e. write...
; A033322: a(n) = floor(2/n). ; 2,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,0,0 mov $1,2 trn $1,$0 mov $0,$1