text
stringlengths
1
1.05M
; Public definitions: ; clearScreen ; showCursor ; hideCursor ; putC ; gotoXY clearScreen: IFNDEF ZX48 ld a, 7 : call changeBank ENDIF xor a out (#fe), a ld hl, #c000 ld de, #c001 ld (hl), 0 ld bc, #17FF ldir ld hl, #d800 ld de, #d801 ld a, (attr_screen) ld (hl), a ld bc, #2F...
;code by unic0rn/Asm Force org 100h segment .code mov al,13h int 10h xor ax,ax mov dx,03C8h out dx,al inc dx pal: push ax mov cl,al shr al,2 and cl,0Fh cmp cl,0Fh je ps1 ror ax,1 ps1: out dx,al out dx,al je ps2 rol ax...
[org 0x0100] jmp start sum: dw 0 sum1: dw 0 add2: pop ax pop bx pop cx add ax,bx add ax,cx add word[sum1],ax ret add1: pop bx pop ax add word[sum],bx add word[sum],ax push word[sum] push bx push ax call add2 ret 4 start: mov ax,5 mov bx,4 push ax push bx call add1 mov ax, 0x4c00 int 0x21
; A152435: a(n)=(11^n - 1)/(5*2^(3 - 2*Mod[n, 2])). ; Submitted by Jon Maiga ; 0,1,3,133,366,16105,44289,1948717,5358972,235794769,648435615,28531167061,78460709418,3452271214393,9493745839581,417724816941565,1148743246589304,50544702849929377,138997932837305787 mov $2,11 pow $2,$0 sub $2,1 dif $2,4 mov $0,$2 div $0,1...
; A195938: a(n) = n/2 if n mod 4 = 2, 0 otherwise. ; 0,1,0,0,0,3,0,0,0,5,0,0,0,7,0,0,0,9,0,0,0,11,0,0,0,13,0,0,0,15,0,0,0,17,0,0,0,19,0,0,0,21,0,0,0,23,0,0,0,25,0,0,0,27,0,0,0,29,0,0,0,31,0,0,0,33,0,0,0,35,0,0,0,37,0,0,0,39,0,0,0,41,0,0,0,43,0,0,0,45,0,0,0,47,0,0,0,49,0,0,0,51,0,0,0,53,0,0,0,55,0,0,0,57,0,0,0,59,0,0,0,...
//---------------------------------------------------------------------------// //! //! \file MonteCarlo_ParticleEnteringCellEventLocalDispatcher.cpp //! \author Alex Robinson //! \brief Particle entering cell event dispatcher declaration. //! //-----------------------------------------------------------------------...
// Copyright 2015-2017 Hans Dembinski // // 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 <array> #include <boost/core/lightweight_test.hpp> #include <boost/core/lightweight_test_trait.hpp> #include <boo...
; unsigned int sms_vdp_feature_enable(unsigned int features) INCLUDE "config_private.inc" SECTION code_clib SECTION code_arch PUBLIC asm_sms_vdp_feature_enable PUBLIC asm_sms_vdp_feature_enable_0 EXTERN _GLOBAL_SMS_VDP_R0R1 asm_sms_vdp_feature_enable: ; enter : hl = R1/R0 bits to enable ; ; exit : hl = ...
#pragma once namespace Copy_User_Command { #include "Copy_User_Command_Structures.hpp" #include "Copy_User_Command_Variables.hpp" #include "Copy_User_Command_Functions.hpp" };
; uint zx_saddr2cx(void *saddr) SECTION code_clib SECTION code_arch PUBLIC zx_saddr2cx EXTERN asm_zx_saddr2cx defc zx_saddr2cx = asm_zx_saddr2cx
; A133528: Sum of sixth powers of four consecutive primes. ; Submitted by Jon Maiga ; 134067,1905564,6731644,30853588,77781820,224046148,814042660,1677408772,4196089300,8798157652,14524697380,24416409028,44015043748,81445473148,126644484460,206323651300,312259574092,421413266740 mov $3,4 mov $4,$0 lpb $3 mov $0,$4 ...
; CALLER linkage for function pointers XLIB strlcat LIB strlcat_callee XREF ASMDISP_STRLCAT_CALLEE .strlcat pop af pop bc pop de pop hl push hl push de push bc push af jp strlcat_callee + ASMDISP_STRLCAT_CALLEE
.MEM: val: db 0xA00A .INT_BUTTONS: PUSH AX PUSH CX PUSH DX MOV AH 0xB0 ; buttons register MOV AL 0x00 LD CX AX MOV CH CL AND CH 0x01 ; if first button is clicked ;BREQ buttons_end ; if result is zero - jump to end ; reset counter ADD BL 0x0F ADC BH 0 MOV AH 0x9...
*= $0801 .BYTE $4C,$14,$08,$00,$97 TURBOASS = 780 .TEXT "780" .BYTE $2C,$30,$3A,$9E,$32,$30 .BYTE $37,$33,$00,$00,$00 LDA #1 STA TURBOASS JMP MAIN PRINT .BLOCK PLA STA PRINT0+1 PLA ...
#include <dmlc/logging.h> #include <gtest/gtest.h> #include <tvm/ir_mutator.h> #include <tvm/ir_operator.h> namespace { using namespace tvm::ir; using namespace HalideIR::Internal; using namespace HalideIR; // replace variable to constant class IRVar2Const : public IRMutator { public: VarExpr var; int int_val; ...
lda {m2} ora {m3} sta {m1} lda {m2}+1 ora {m3}+1 sta {m1}+1 lda {m2}+2 ora {m3}+2 sta {m1}+2 lda {m2}+3 ora {m3}+3 sta {m1}+3
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <utility> using namespace std; typedef pair<int, int> point; struct segment { point a, b; segment(const point &a_, const point &b_): a(a_)...
; float round(float x) __z88dk_fastcall SECTION code_fp_math48 PUBLIC cm48_sdcciy_round_fastcall EXTERN cm48_sdcciyp_dx2m48, am48_round, cm48_sdcciyp_m482d cm48_sdcciy_round_fastcall: call cm48_sdcciyp_dx2m48 call am48_round jp cm48_sdcciyp_m482d
global long_mode_start section .text bits 64 long_mode_start: ; load 0 into all data segment registers mov ax, 0 mov ss, ax mov ds, ax mov es, ax mov fs, ax mov gs, ax ;print 'OKAY' to screen mov rax, 0x2f592f412f4b2f4f mov qword [0xb8000], rax extern kernel_main call kernel_main ...
; 64-bit 'CallFunc' ; ; LICENCE: Public domain bits 64 %include "sehhdr64_nasm.h" global CallFunc64 section .text ; [CallFunc64] ; ; The 'CallFunc64' function calls the sppecified function with the specified array as arguments. ; ; [Syntax] ; ; INT_PTR CallFunc64(INT_PTR const *arguments, FARPROC external_function...
;------------------------------------------------------------------------------ ;* ;* Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> ;* SPDX-License-Identifier: BSD-2-Clause-Patent ;* ;* CpuAsm.nasm ;* ;* Abstract: ;* ;------------------------------------------------------------------...
; A040302: Continued fraction for sqrt(320). ; 17,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1,34,1,7,1 seq $0,40304 ; Continued fraction for sqrt(322). seq $0,199423 ; Greatest prime fac...
Name: ys_bgsc2.asm Type: file Size: 96028 Last-Modified: '2016-05-13T04:51:43Z' SHA-1: 38DCE8FD2C366CF9C6401E09A548CA87B19344DD Description: null
; A324999: Array read by descending antidiagonals: A(n,k) is the number of oriented colorings of the facets (or vertices) of a regular n-dimensional simplex using up to k colors. ; Submitted by Jon Maiga ; 1,4,1,9,4,1,16,11,5,1,25,24,15,6,1,36,45,36,21,7,1,49,76,75,56,28,8,1,64,119,141,127,84,36,9,1,81,176,245,258,210,...
; A130766: 3n+2 sandwiched by tripled 3n+1 . ; 1,1,1,2,4,4,4,5,7,7,7,8,10,10,10,11,13,13,13,14,16,16,16,17,19,19,19,20,22,22,22,23,25,25,25,26,28,28,28,29,31,31,31,32,34,34,34,35,37,37,37,38,40,40,40,41,43,43,43,44,46,46,46,47,49,49,49,50,52,52,52,53,55,55,55,56,58,58,58,59,61,61,61,62,64,64,64,65,67,67,67,68,70,70,70,...
; A036546: a(n) = T(5,n), array T given by A048471. ; 1,33,129,417,1281,3873,11649,34977,104961,314913,944769,2834337,8503041,25509153,76527489,229582497,688747521,2066242593,6198727809,18596183457,55788550401,167365651233,502096953729,1506290861217,4518872583681,13556617751073,40669853253249,122009559759777,3660286792...
// Module name: AVS .kernel PA_TO_PL3 .code #include "VP_Setup.g4a" #include "Set_Layer_0.g4a" #include "Set_AVS_Buf_0123_VYUA.g4a" #include "PA_AVS_Buf_0.g4a" #include "PA_AVS_Buf_1.g4a" #include "PA_AVS_Buf_2.g4a" #include "PA_AVS_Buf_3.g4a" #include "Save_AVS_PA.g4a" #include "EOT.g4a" .end_code .end_kernel
editGrid: lda #$01 sta editorCursorMode ldx cursorY_grid lda editorTrackPhrase,x tax lda phraseBanks,x jsr setMMC1r1 lda phraseTableLo,x sta editorTmp0 lda phraseTableHi,x sta editorTmp1 jsr checkRepeatKeyA jsr checkRepeatKeyB jsr checkRepeatKeyUD jsr checkRepeatKeyLR lda editorWaitForAB beq :+ ...
/* ---------------------------------------------------------------------------- * Robotics Laboratory, Westphalian University of Applied Science * ---------------------------------------------------------------------------- * Project : Stereo Vision Project * Revision : 1.0 * Recent changes : 18.06.2014 ...
Music_Keksandra: musicheader 4, 1, Music_TrickHouse_Ch1 musicheader 1, 2, Music_TrickHouse_Ch2 musicheader 1, 3, Music_TrickHouse_Ch3 musicheader 1, 4, Music_TrickHouse_Ch4 Music_TrickHouse_Ch1: dutycycle 3 vibrato $12, $15 tone $0001 tempo 140 notetype $6, $50 octave 3 note A#, 8 note B_, 8 octave 4 ...
; A086112: Denominator of the mean deviation of a discrete uniform distribution on n elements. ; 1,2,3,1,5,2,7,1,9,2,11,1,13,2,15,1,17,2,19,1,21,2,23,1,25,2,27,1,29,2,31,1,33,2,35,1,37,2,39,1,41,2,43,1,45,2,47,1,49,2,51,1,53,2,55,1,57,2,59,1,61,2,63,1,65,2,67,1,69,2,71,1,73,2,75,1,77,2,79,1,81,2,83 mov $1,$0 lpb $1 ...
#include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <cstring> #include <string.h> #include <stdio.h> #include <cmath> #include <limits> #include <assert.h> #include <stdint.h> #include "il2cpp-class-internals.h" #include "codegen/il2cpp-codegen.h" #include "i...
nop ld b, d ld h, h ld b, d or l ld b, d ld d, $43 adc a, e ld b, e ret c ld b, e rr a ld b, h rrc a ld b, l ld l, h ld b, l cp b ld b, l stop ld b, [hl] ld h, c ld b, [hl] xor e ld b, [hl] inc h ld b, a adc a, a ld b, a ld d, h ld c, b and b ld c, b rs...
; Perform simple addition and test transfers from accumulator to x & y registers. LDA #01 TAX LDA #02 TAY ADC #01
/* *注意:和maxDepth, 一样,只是返回的是mindepth *遵循的规律是: *!root, 0 *!left, 返回右+1 *!right, 返回左+1 *!left && !right, 返回1 *其他情况,返回1+min(minDepth(left), minDepth(right)) */ class Solution { public: int minDepth(TreeNode* root) { if(!root) return 0; if(!root->left) return 1+minDepth(root->right); else if(!...
; A189442: a(n) = A140230(n) / A016116(n-1). ; Submitted by Simon Strandgaard ; 1,3,1,-3,-5,-7,-1,7,9,11,1,-11,-13,-15,-1,15,17,19,1,-19,-21,-23,-1,23,25,27,1,-27,-29,-31,-1,31,33,35,1,-35,-37,-39,-1,39,41,43,1,-43,-45,-47,-1,47,49,51,1,-51,-53,-55,-1,55,57,59,1,-59,-61,-63,-1,63 mov $1,$0 seq $0,140230 ; Binomial tra...
_forktest: file format elf32-i386 Disassembly of section .text: 00000000 <main>: printf(1, "fork test OK\n"); } int main(void) { 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 push...
; A188037: a(n) = floor(nr) - 1 - floor((n-1)r), where r = sqrt(2). ; 0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,0,...
;/* ; 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) ;*/ ; ******************************************************* ; * ...
#include "Scheduler.h" #include <sys/sysinfo.h> using namespace Zireael; Scheduler* Scheduler::pScher_ = nullptr; std::mutex Scheduler::scherMtx_; Scheduler::Scheduler(): //按声明的顺序初始化,所以不会出现问题 //没有在初始化列表中的会按声明的顺序进行默认初始化 _proSelector(_processors) { } Scheduler::~Scheduler() { for(auto it : _processors) { it->s...
; A332126: a(n) = 2*(10^(2n+1)-1)/9 + 4*10^n. ; 6,262,22622,2226222,222262222,22222622222,2222226222222,222222262222222,22222222622222222,2222222226222222222,222222222262222222222,22222222222622222222222,2222222222226222222222222,222222222222262222222222222,22222222222222622222222222222,2222222222222226222222222222222 ...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END FLDZ ;TEST_BEGIN_RECORDING FNINIT ;TEST_END_RECORDING
; A000007: The characteristic function of {0}: a(n) = 0^n. ; Submitted by Christian Krause ; 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,0,0,0,0,0,0,0,0,0 cmp $0,0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Microsoft Research Singularity ;;; ;;; Copyright (c) Microsoft Corporation. All rights reserved. ;;; ;;; This file contains ARM-specific assembly code. ;;; ; __stou64 single precision floating point to unsigne...
; A171464: a(n) = 0+1+2+...+n in lunar arithmetic in base 4 written in base 10. ; Submitted by Jon Maiga ; 0,1,2,3,7,7,7,7,11,11,11,11,15,15,15,15,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,127,127,127,127,127,127 mov ...
; A056451: Number of palindromes using a maximum of five different symbols. ; 1,5,5,25,25,125,125,625,625,3125,3125,15625,15625,78125,78125,390625,390625,1953125,1953125,9765625,9765625,48828125,48828125,244140625,244140625,1220703125,1220703125,6103515625,6103515625,30517578125,30517578125,152587890625,152587890625,76...
times 512*18*10 db 0
; A070353: a(n) = 3^n mod 14. ; 1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13,11,5,1,3,9,13 mul $0,5 seq $0,70369 ; a(n) = 5^n mod 14. mul $0,2 su...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_WC_ht+0xfb2d, %rcx clflush (%rcx) nop nop and $2525, %rsi mov $0x6162636465666768, %r9 movq %r9, %xmm3 vmovups %ymm3, (%rcx) nop nop nop nop nop sub %r8, %r8 lea addresses_WT_ht+0x1d3fd, %rcx n...
; A258809: a(n) = n^8 - 1. ; Submitted by Christian Krause ; 0,255,6560,65535,390624,1679615,5764800,16777215,43046720,99999999,214358880,429981695,815730720,1475789055,2562890624,4294967295,6975757440,11019960575,16983563040,25599999999,37822859360,54875873535,78310985280,110075314175 add $0,1 pow $0,8 sub $0,1
.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++), ...
; ; 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...
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x25b8, %rsi lea addresses_D_ht+0xd8, %rdi nop nop nop nop nop add $62957, %r9 mov $102, %rcx rep movsq nop cmp $57607, %rbp lea addresses_normal_ht+0x24f8, %r8 nop nop nop cmp ...
; A087278: Distance to nearest square is not greater than 1. ; 0,1,2,3,4,5,8,9,10,15,16,17,24,25,26,35,36,37,48,49,50,63,64,65,80,81,82,99,100,101,120,121,122,143,144,145,168,169,170,195,196,197,224,225,226,255,256,257,288,289,290,323,324,325,360,361,362,399,400,401 mov $2,$0 div $0,3 mov $1,$0 mul $1,$0 sub $1,$0 add...
;; Standard library definitions. EXIT_FAILURE = 1 EXIT_SUCCESS = 0 NULL = 0 RAND_MAX = 1 shl 32 - 1 ; include 'lib/wait.asm' ? WNOHANG = 0 WUNTRACED = 0 WEXITSTATUS = 0 WIFEXITED = 0 WIFSIGNALED = 0 WIFSTOPPED = 0 WSTOPSIG = 0 WTERMSIG = 0 ; Constants: _Exit = panic abort = pani...
#include<bits/stdc++.h> using namespace std; int main(){ cout<<"hello"; }
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 ...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft import six %> <%docstring>link(from_, to) -> str Invokes the syscall link. See 'man 2 link' for more information. Arguments: from_(char*): from to(char*): to Returns: int </%docstring> <%page args="from_=0, to=0"/> <...
//%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor lice...
; A136778: Number of primitive multiplex juggling sequences of length n, base state <2,1> and hand capacity 2. ; Submitted by Jon Maiga ; 1,3,15,75,381,1947,9975,51159,262497,1347123,6913911,35485779,182133885,934823451,4798101855,24626900271,126400914849,648769995939,3329901037119,17091174551835,87722802540957,4502493...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r9 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0xde00, %r11 nop nop inc %r14 mov $0x6162636465666768, %rdx movq %rdx, (%r11) nop nop nop add %rbp, %rbp lea addresses_UC_ht+0x11adc, %rbx dec %rbp movb (%rbx), %...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="addr, length"/> <%docstring> Invokes the syscall munmap. See 'man 2 munmap' for more information. Arguments: addr(void): addr len(size_t): len </%docstring> ${syscall('SYS_munmap', addr, length)}
; ; Small C+ Runtime Library ; ; Z88 Application functions ; ; *** Z88 SPECIFIC FUNCTION - probably no equiv for your machine! *** ; ; 11/4/99 ; ; Enable interrupts (used with di to get value) ; void ei(int) SECTION code_clib PUBLIC ei PUBL...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_WT_ht+0x18dc6, %rsi lea addresses_WT_ht+0x19f46, %rdi nop sub $9635, %r9 mov $43, %rcx rep movsb nop nop nop nop nop cmp $62950, %r15 lea addresses_A_ht+0x1c75e, %rsi lea addresses_normal_ht+0...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r14 push %r15 push %rax push %rdi // Store lea addresses_normal+0xafc3, %rax xor $41280, %rdi movb $0x51, (%rax) nop nop nop nop nop inc %rdi // Faulty Load lea addresses_WT+0xb3c3, %r15 nop ...
; A054014: Chowla function of n read modulo (the number of divisors of n). ; Submitted by Jamie Morken(s2) ; 0,0,0,2,0,1,0,2,0,3,0,3,0,1,0,4,0,2,0,3,2,1,0,3,2,3,0,3,0,1,0,0,2,3,0,0,0,1,0,1,0,5,0,3,2,1,0,5,1,0,0,3,0,1,0,7,2,3,0,11,0,1,4,6,2,5,0,3,2,1,0,2,0,3,0,3,2,1,0,5,4,3,0,7,2,1,0,3,0,11,0,3,2,1,0,11,0,0,2,8 add $0,...
; A001352: a(0) = 1, a(1) = 6, a(2) = 24; for n>=3, a(n) = 4a(n-1) - a(n-2). ; 1,6,24,90,336,1254,4680,17466,65184,243270,907896,3388314,12645360,47193126,176127144,657315450,2453134656,9155223174,34167758040,127515808986,475895477904,1776066102630,6628368932616,24737409627834,92321269578720,344547668687046,12858694051...
/* * Author: Crownstone Team * Copyright: Crownstone (https://crownstone.rocks) * Date: Sep 20, 2020 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed) */ #include <drivers/cs_RNG.h> #include <drivers/cs_Serial.h> #include <events/cs_EventDispatcher.h> #include <logging/cs_Logger.h> #include <st...
test_device(): # @test_device() push rax call rand mov ecx, dword ptr [rsp + 4] shr ecx, 12 imul ecx, eax and ecx, 63 shl ecx, 12 mov eax, -258049 and eax, dword ptr [rsp + 4] or e...
; Z88 Small C+ Run time Library ; Moved functions over to proper libdefs ; To make startup code smaller and neater! ; ; 6/9/98 djm PUBLIC l_gt ; ; DE > HL [signed] ; set carry if true .l_gt ld a,d add a,$80 ld b,a ld a,h add a,$80 cp b ret nz l...
/** Code to handle button presses. */ #include <Arduino.h> #define DEFAULT_LONGPRESS_LEN 25 // Min nr of loops for a long press #define DELAY 20 // Delay per loop in ms enum class SwitchStatus { NO_CHANGE_OFF, NO_CHANGE_ON, CHANGE_OFF, CHANGE_ON }; class SwitchHandler { public: ...
#include <Storages/System/StorageSystemRoleGrants.h> #include <DataTypes/DataTypeEnum.h> #include <DataTypes/DataTypeNullable.h> #include <DataTypes/DataTypeString.h> #include <DataTypes/DataTypesNumber.h> #include <Columns/ColumnString.h> #include <Columns/ColumnNullable.h> #include <Columns/ColumnsNumber.h> #include ...
; A021765: Decimal expansion of 1/761. ; Submitted by Jamie Morken(s4.) ; 0,0,1,3,1,4,0,6,0,4,4,6,7,8,0,5,5,1,9,0,5,3,8,7,6,4,7,8,3,1,8,0,0,2,6,2,8,1,2,0,8,9,3,5,6,1,1,0,3,8,1,0,7,7,5,2,9,5,6,6,3,6,0,0,5,2,5,6,2,4,1,7,8,7,1,2,2,2,0,7,6,2,1,5,5,0,5,9,1,3,2,7,2,0,1,0,5,1,2 add $0,1 mov $2,10 pow $2,$0 div $2,761 mov $0,...
; ; ; $Id: time.asm,v 1.1 2016-05-12 21:47:13 dom Exp $ ; SECTION code_clib PUBLIC time PUBLIC _time INCLUDE "target/test/def/test_cmds.def" .time ._time pop bc pop hl push hl push bc push hl ;save store ld a,CMD_GETTIME call SYSCALL pop bc ld a,b or c ret z ld a,l ;swap bc + hl ld l,c ld c,a ...
; A037887: a(n)=(1/2)*Sum{|d(i)-e(i)|} where Sum{d(i)*10^i) is the base 10 representation of n and e(i) are the digits d(i) in nondecreasing order. ; 0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,0,0,0,1,2,3,4,5,6,7,0,0,0,0,1,2,3,4,5,6,0,0,0,0,0,1,2,3,4,5,0,0,0,0,0,0,1,2,3,4,0,0,0,0,0,0,0,1,2,3,0,0,0,0,0,0,0,0,1,2,0,0,0,0,0,0,...
; Copyright 2021 Justin Skists ; ; 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, publish, distribute,...
\ ****************************************************************************** \ \ ELITE-A SHIP BLUEPRINTS FILE O \ \ Elite-A is an extended version of BBC Micro Elite by Angus Duggan \ \ The original Elite was written by Ian Bell and David Braben and is copyright \ Acornsoft 1984, and the extra code in Elite-A is co...
; A222423: Sum of (n AND k) for k = 0, 1, 2, ..., n, where AND is the bitwise AND operator. ; Submitted by Jon Maiga ; 0,1,2,6,4,11,18,28,8,21,34,50,60,79,98,120,16,41,66,94,116,147,178,212,216,253,290,330,364,407,450,496,32,81,130,182,228,283,338,396,424,485,546,610,668,735,802,872,816,889,962,1038,1108,1187,1266,1348...
; A273052: Numbers n such that 7*n^2 + 8 is a square. ; Submitted by Jon Maiga ; 2,34,542,8638,137666,2194018,34966622,557271934,8881384322,141544877218,2255836651166,35951841541438,572973628011842,9131626206648034,145533045678356702,2319397104647059198,36964820628674590466,589117732954146388258,9388918906637667621662,...
; A033338: [ 18/n ]. ; 18,9,6,4,3,3,2,2,2,1,1,1,1,1,1,1,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 add $0,1 mov $1,18 div $1,$0
; A069930: Number of integers of the form (n+k)/(n-k) with 1 <= k <= n-1. ; Submitted by Jamie Morken(s3) ; 0,1,2,2,2,4,2,3,4,4,2,6,2,4,6,4,2,7,2,6,6,4,2,8,4,4,6,6,2,10,2,5,6,4,6,10,2,4,6,8,2,10,2,6,10,4,2,10,4,7,6,6,2,10,6,8,6,4,2,14,2,4,10,6,6,10,2,6,6,10,2,13,2,4,10,6,6,10,2,10,8,4,2,14,6,4,6,8,2,16,6,6,6,4,6,12,2,7...
; A294630: Partial sums of A294629. ; 4,20,48,104,172,292,424,616,844,1140,1448,1888,2340,2876,3488,4224,4972,5892,6824,7936,9140,10460,11792,13416,15092,16900,18816,20960,23116,25612,28120,30880,33764,36812,39968,43568,47180,50972,54904,59240,63588,68372,73168,78288,83676,89276,94888,101112,107404,114044,120856,128040...
.model small .stack .data a dw -2 b dw 1 c dw 2 m4 db 4 nonRealeMessage db 'no radici reali!!!!!!' realeMessage db 'si radici reali!!!!!!' errorDD db 'delta non rappresentabile in word!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ' .code .startup mov di,0 mov ax,b imul b jc erroreDD mov dx, ax mov ax,a imul c i...
//: C08:Volatile.cpp // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright notice in Copyright.txt // The volatile keyword class Comm { const volatile unsigned char byte; volatile unsigned char flag; enum { bufsize = 100 }; unsigned char buf[bufsize...
; size_t fwrite(void *ptr, size_t size, size_t nmemb, FILE *stream) INCLUDE "clib_cfg.asm" SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _fwrite EXTERN l0_fwrite_callee _fwrite: pop af pop hl pop bc pop de exx pop bc ...
; A011797: a(n) = floor(C(n,6)/7). ; 0,0,0,0,0,0,0,1,4,12,30,66,132,245,429,715,1144,1768,2652,3876,5537,7752,10659,14421,19228,25300,32890,42287,53820,67860,84825,105183,129456,158224,192129,231880,278256 bin $0,6 div $0,7
_ls: file format elf32-i386 Disassembly of section .text: 00000000 <main>: close(fd); } int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 57 push %edi 4: 56 push %esi 5: 53 ...
SFX_Battle_1E_Ch4: duty 0 unknownsfx0x10 58 unknownsfx0x20 4, 242, 0, 2 unknownsfx0x10 34 unknownsfx0x20 8, 226, 0, 2 unknownsfx0x10 8 endchannel SFX_Battle_1E_Ch7: unknownnoise0x20 0, 209, 66 unknownnoise0x20 4, 161, 50 unknownnoise0x20 0, 209, 34 unknownnoise0x20 6, 161, 50 endchannel
; Super Mario Bros. 3 Full Disassembly by Southbird 2012 ; For more info, see http://www.sonicepoch.com/sm3mix/ ; ; PLEASE INCLUDE A CREDIT TO THE SOUTHBIRD DISASSEMBLY ; AND THE ABOVE LINK SOMEWHERE IN YOUR WORKS :) ; ; Original disassembler source generated by DCC6502 version v1.4 ; (With labels, comments, and some s...
_prog1: 文件格式 elf32-i386 Disassembly of section .text: 00000000 <main>: #include "types.h" #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 83 ec 1...
; A190949: Odd Fibonacci numbers with odd index. ; 1,5,13,89,233,1597,4181,28657,75025,514229,1346269,9227465,24157817,165580141,433494437,2971215073,7778742049,53316291173,139583862445,956722026041,2504730781961,17167680177565,44945570212853,308061521170129,806515533049393,5527939700884757,14472334024676221,9919485309...
#include<stdio.h> #include<iostream> #include<algorithm> #include<math.h> #include<queue> #include<map> #include<bitset> #include<stack> #include<set> #include<vector> #include <time.h> #include<string.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef double db; typedef pair <int, i...
; Dummy function to keep rest of libs happy ; ; $Id: read.asm,v 1.1 2001/05/01 13:55:21 dom Exp $ ; XLIB read .read ret
// Copyright 2019-2020 Jan Feitsma (Falcons) // SPDX-License-Identifier: Apache-2.0 /* * mainMatchMode.cpp * * Bridge worldModel to teamplay, only when in match mode. * If in test mode, the bridge is open, because robotCLI is expected to stimulate the applicable component. * * Created on: Feb 12, 2019 * Au...
; A247563: a(n) = 3*a(n-1) - 4*a(n-2) with a(0) = 2, a(1) = 3. ; 2,3,1,-9,-31,-57,-47,87,449,999,1201,-393,-5983,-16377,-25199,-10089,70529,251943,473713,413367,-654751,-3617721,-8234159,-10231593,2241857,47651943,133988401,211357431,98118689,-551073657,-2045695727,-3932792553,-3615594751,4884385959,29115536881,6780906...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xc10e, %r13 nop nop nop nop cmp $28441, %rbp mov $0x6162636465666768, %r10 movq %r10, (%r13) nop nop nop nop add $43110, %r10 lea addresses_WC_ht+0x1a3...
# Si implementi una procedura ricorsiva S che prenda in input un array e il numero di elementi di quell’array # e restituisca la somma di tutti gli elementi dell’array. Si usi come riferimento il seguente codice sorgente C: # # int S(int arr[], int dim) { # if (dim == 0) // caso base: array vuoto # return 0; # else //...
;******************************************************************************************************** ; uC/OS-III ; The Real-Time Kernel ; ; Copyright 2009-2020 Silicon Laboratories Inc. www.silabs.com ; ; ...
; A057147: a(n) = n times sum of digits of n. ; 0,1,4,9,16,25,36,49,64,81,10,22,36,52,70,90,112,136,162,190,40,63,88,115,144,175,208,243,280,319,90,124,160,198,238,280,324,370,418,468,160,205,252,301,352,405,460,517,576,637,250,306,364,424,486,550,616,684,754,826,360,427,496,567,640,715,792,871,952,1035,490,568,648,730...
; A105220: Trajectory of 1 under the morphism 1->{1,2,1}, 2->{2,2,2}. ; 1,2,1,2,2,2,1,2,1,2,2,2,2,2,2,2,2,2,1,2,1,2,2,2,1,2,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,2,2,2,1,2,1,2,2,2,1,2,1,2,2,2,2,2,2,2,2,2,1,2,1,2,2,2,1,2,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,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,...