text
stringlengths
1
1.05M
;/* Revision history since 5.0 Golden: ; * ; * M013 SHK 10/02/91 Zero out BX before we make the call to detect mouse ; * mouse version numbers. ; */ ;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; ...
// Copyright (C) 2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vector> #include <string> #include "functional_test_utils/skip_tests_config.hpp" std::vector<std::string> disabledTestPatterns() { return { // Issue 26268 ".*ConcatLayerTest.*axis=0.*", ...
VermilionGymObject: db $3 ; border block db $2 ; warps db $11, $4, $3, $ff db $11, $5, $3, $ff db $0 ; signs db $5 ; objects object SPRITE_SURGE, $5, $1, STAY, DOWN, $1, OPP_LT_SURGE, $1 object SPRITE_BLACK_HAIR_BOY_2, $9, $6, STAY, LEFT, $2, OPP_ENGINEER, $1 object SPRITE_BLACK_HAIR_BOY_2, $3, $8, STAY, LE...
// // Created by Sam on 11/11/2018. // #include <catch.hpp> #include <string> #include <pybind11/embed.h> namespace py = pybind11; TEST_CASE("Embedded interpreter") { py::scoped_interpreter guard{}; try { SECTION("Correct Python Version") { auto correctVersion = "3.6.6"; ...
Start: NOP JMP Start HLT
SECTION code_fp_math48 PUBLIC _lgamma_fastcall EXTERN cm48_sdcciy_lgamma_fastcall defc _lgamma_fastcall = cm48_sdcciy_lgamma_fastcall
SECTION code_clib SECTION code_l_sdcc PUBLIC ____sdcc_ll_sub_hlix_deix_bc EXTERN ____sdcc_ll_sub_de_bc_hl ____sdcc_ll_sub_hlix_deix_bc: push bc IFDEF __SDCC_IX push ix pop bc ELSE push iy pop bc ENDIF add hl,bc ex de,hl add hl,bc ex (sp),hl pop bc j...
; A131229: Numbers congruent to {1,7} mod 10. ; 1,7,11,17,21,27,31,37,41,47,51,57,61,67,71,77,81,87,91,97,101,107,111,117,121,127,131,137,141,147,151,157,161,167,171,177,181,187,191,197,201,207,211,217,221,227,231,237,241,247,251,257,261,267,271,277,281 mov $1,$0 mod $0,2 mul $1,5 add $0,$1 add $0,1
db "ROCK SNAKE@" ; species name db "As it digs through" next "the ground, it" next "absorbs many hard" page "objects. This is" next "what makes its" next "body so solid.@"
// Copyright 2018 The Fuchsia 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 "garnet/bin/iquery/formatters/json.h" #include <rapidjson/prettywriter.h> #include "garnet/bin/iquery/utils.h" #include "lib/inspect/hierarchy.h...
/* * Copyright 2011 The LibYuv 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 ...
/* * All or portions of this file Copyright(c) Amazon.com, Inc.or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution(the "License").All use of this software is governed by the License, *or, if provided, by the license below or the li...
// Copyright 2020 The IREE Authors // // Licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "iree/hal/drivers/vulkan/native_descriptor_set.h" #include <cstddef> #include "iree/ba...
/* * Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org> * Copyright (c) 2020-2021, Linus Groh <linusg@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Demangle.h> #include <AK/HashMap.h> #include <AK/HashTable.h> #include <AK/ScopeGuard.h> #include <AK/StringBuilder.h> #include...
// // memory_window.cpp: Memory view window. // // CEN64D: Cycle-Accurate Nintendo 64 Debugger // Copyright (C) 2015, Tyler J. Stachecki. // // This file is subject to the terms and conditions defined in // 'LICENSE', which is part of this source code package. // #include "memory_window.h" MemoryWindow::MemoryWindow(...
/*************************************************************************/ /* editor_file_system.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
; A277546: a(n) = n/8^m mod 8, where 8^m is the greatest power of 8 that divides n. ; 1,2,3,4,5,6,7,1,1,2,3,4,5,6,7,2,1,2,3,4,5,6,7,3,1,2,3,4,5,6,7,4,1,2,3,4,5,6,7,5,1,2,3,4,5,6,7,6,1,2,3,4,5,6,7,7,1,2,3,4,5,6,7,1,1,2,3,4,5,6,7,1,1,2,3,4,5,6,7,2,1,2,3,4,5,6,7,3,1,2,3,4,5,6,7,4,1,2,3,4 add $0,1 lpb $0 dif $0,8 lpe lp...
; A143839: Ulam's spiral (SSE spoke). ; 1,24,79,166,285,436,619,834,1081,1360,1671,2014,2389,2796,3235,3706,4209,4744,5311,5910,6541,7204,7899,8626,9385,10176,10999,11854,12741,13660,14611,15594,16609,17656,18735,19846,20989,22164,23371,24610,25881,27184,28519,29886,31285,32716,34179,35674,37201,38760,40351,41974,43629...
; sp1_InvUpdateStruct SECTION code_clib SECTION code_temp_sp1 PUBLIC _sp1_InvUpdateStruct_fastcall EXTERN asm_sp1_InvUpdateStruct defc _sp1_InvUpdateStruct_fastcall = asm_sp1_InvUpdateStruct
/* By: facug91 From: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=898 Name: Popes Date: 02/04/2015 */ #include <bits/stdc++.h> #define EPS 1e-9 #define DEBUG(x) cerr << "#" << (#x) << ": " << (x) << endl const double PI = 2.0*a...
// Copyright Vladimir Prus 2004. // 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) #ifndef BOOST_VALUE_SEMANTIC_HPP_VP_2004_02_24 #define BOOST_VALUE_SEMANTIC_HPP_VP_2004_02_24 #include <boost/program_options/con...
//--------------------------------------------------------------------------- // Copyright (c) 2017 Michael G. Brehm // // 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 restri...
; SMSQ general KBD polling routine v1.01  1988 / 1993 / 2000 Tony Tebby ; 2003 Marcel Kilgus ; 2000-06-24 1.01 Handles left and right shift key separately. ; 2006-09-28 1.02 Allows normal code for CAPS + SFHT/CTRL/ALT ; uses LED routine qmp_updt_led (BC) ; This takes a stream of keyboard codes from the ...
// (C) Copyright John Maddock 2000. // Use, modification and distribution are subject to 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 "test.hpp" #include "check_integral_constant.hpp" #ifdef TEST_STD # ...
############################################################################### # Copyright 2019 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
; A123509: Rohrbach's problem: a(n) is the largest integer such that there exists a set of n integers that is a basis of order 2 for (0, 1, ..., a(n)-1). ; 1,3,5,9,13,17,21,27,33,41,47,55 add $0,3 mul $0,7 pow $0,2 div $0,336 sub $0,1 mul $0,2 add $0,1
;--------------------------------------------------------- ; ; LZ4 block 68k small depacker ; Written by Arnaud Carré ( @leonard_coder ) ; https://github.com/arnaud-carre/lz4-68k ; ; LZ4 technology by Yann Collet ( https://lz4.github.io/lz4/ ) ; ;--------------------------------------------------------- ; Smallest ver...
; ; Include code from halx86 ; This is a cpp style symbolic link include ..\..\halx86\i386\xxioacc.asm
; A209648: Number of n X 6 0..1 arrays avoiding 0 0 1 and 1 0 0 horizontally and 0 0 1 and 1 0 1 vertically. ; 22,484,2354,7128,16830,34012,61754,103664,163878,247060,358402,503624,688974,921228,1207690,1556192,1975094,2473284,3060178,3745720,4540382,5455164,6501594,7691728,9038150,10553972,12252834,14148904,16256878,1...
; *********************************************************************************** ; ; Blink two LEDs (PB1 and PB2) on an ATmega328p at 1 Hz on opposite duty cycles ; ; The MIT License (MIT) ; ; Copyright (c) 2020 Igor Mikolic-Torreira ; ; Permission is hereby granted, free of charge, to any person obtai...
; A169346: Number of reduced words of length n in Coxeter group on 45 generators S_i with relations (S_i)^2 = (S_i S_j)^30 = I. ; 1,45,1980,87120,3833280,168664320,7421230080,326534123520,14367501434880,632170063134720,27815482777927680,1223881242228817920,53850774658067988480,2369434084954991493120,1042550997380196256...
; Small C+ Math Library - Support routine ; Negate a floating point number XLIB minusfa XREF fa .MINUSFA LD HL,FA+4 LD A,(HL) XOR $80 LD (HL),A RET
#include <atomic> #include <bitset> #include <chrono> #include <iostream> #include <unordered_map> #include <unordered_set> #include <vector> #include "atomic_types.hpp" #include "container_growth.hpp" #include "experiment_runner.hpp" #include "memory.hpp" #include "shared_ptr.hpp" #include "sorting.hpp" #include "spe...
// // detail/impl/kqueue_reactor.ipp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com) // Copyright (c) 2005 Stefan Arentz (stefan at soze dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2018, Advanced Micro Device, Inc. 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 dis...
############################################################################### # Copyright 2018 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
; ; jiss2fst-64.asm - fast integer IDCT (64-bit SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright 2009 D. R. Commander ; ; Based on ; x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in js...
; A178142: Sum over the divisors d = 2 and/or 3 of n. ; 0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3,2,0,5,0,2,3 add $0,7 lpb $0 mul $1,2 div $1,3 add $1,6 gc...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x200f, %r8 nop nop nop nop nop sub %r14, %r14 mov $0x6162636465666768, %r10 movq %r10, %xmm3 movups %xmm3, (%r8) nop nop xor %rbx, %rbx lea addresses_A_ht+0x15b7d, %rsi lea ad...
// created by Kona @VSCode #include <algorithm> #include <iostream> #include <map> #include <string> #include <queue> #include <vector> #include <string.h> #define LOCAL_TEST typedef long long ll; using std::cin; using std::cout; using std::endl; using std::map; using std::queue; using std::string; using std::vector;...
LOD 15 STR 1000 LOD 3 STR 1001 LOD 8 LOD 1001 JMP 19
/* * Copyright (c) 2017, Intel Corporation * * 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, publi...
; tabsize = 8 ; Plazma by .nebula (June, 2001) ; This is my first 256b intro, so it is rather simple. .model tiny .code .386 org 100h start: mov al,13h int 10h ;================================================================================================ ; Set the palette (black->red->yellow->white->bl...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129_rand_62a.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129.label.xml Template File: sources-sinks-62a.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: rand Set da...
SECTION code_fp_am9511 PUBLIC cam32_sccz80_tanh EXTERN _am9511_tanh defc cam32_sccz80_tanh = _am9511_tanh
GiveDratini: ; if wScriptVar is 0 or 1, change the moveset of the last Dratini in the party. ; 0: give it a special moveset with Extremespeed. ; 1: give it the normal moveset of a level 15 Dratini. ld a, [wScriptVar] cp $2 ret nc ld bc, wPartyCount ld a, [bc] ld hl, MON_SPECIES call .GetNthPartyMon ld a, [bc...
#pragma once #include "indexer/feature_data.hpp" #include "coding/file_reader.hpp" #include "coding/file_writer.hpp" #include "coding/read_write_utils.hpp" #include "base/geo_object_id.hpp" #include "base/stl_helpers.hpp" #include "base/thread_pool_delayed.hpp" #include <functional> #include <list> #include <mutex>...
; A005251: a(0) = 0, a(1) = a(2) = a(3) = 1; thereafter, a(n) = a(n-1) + a(n-2) + a(n-4). ; 0,1,1,1,2,4,7,12,21,37,65,114,200,351,616,1081,1897,3329,5842,10252,17991,31572,55405,97229,170625,299426,525456,922111,1618192,2839729,4983377,8745217,15346786,26931732,47261895,82938844,145547525,255418101,448227521,786584466,...
; A261585: Number of sexagesimal digits of Fibonacci numbers in base-60 representation. ; 1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,...
;RECEIVING AND SENDING RS232 DATA @57600 BITS/S ON A STANDARD MSX 3.58MHz CPU Z80 FNAME "RS232.BIN" VOICEAQ: EQU $F975 ;BUFFER TO OCCUPY IN SYSTEM AREA: DO NOT USE PLAY... ;MSX .BIN HEADER DB $FE DW START, END, START ORG VOICEAQ START: ;TRANSFER 'BC' BYTES FROM JOY2, 'UP', PIN1 TO (HL) ;MSX, Z80 3.58MHz 57600bps...
; A304615: a(n) = 507*2^n - 273. ; 234,741,1755,3783,7839,15951,32175,64623,129519,259311,518895,1038063,2076399,4153071,8306415,16613103,33226479,66453231,132906735,265813743,531627759,1063255791,2126511855,4253023983,8506048239,17012096751,34024193775,68048387823,136096775919,272193552111,544387104495,1088774209263,2...
FuchsiaGymScript: call FuchsiaGymScript_75453 call EnableAutoTextBoxDrawing ld hl, FuchsiaGymTrainerHeaders ld de, FuchsiaGymScriptPointers ld a, [wFuchsiaGymCurScript] call ExecuteCurMapScriptInTable ld [wFuchsiaGymCurScript], a ret FuchsiaGymScript_75453: ld hl, wCurrentMapScriptFlags bit 6, [hl] res 6, [...
// Copyright (C) 2004 Davis E. King (davis@dlib.net) // License: Boost Software License See LICENSE.txt for the full license. #include <sstream> #include <string> #include <cstdlib> #include <ctime> #include <dlib/sequence.h> #include "tester.h" namespace { using namespace test; using namespace std; ...
; A100587: Number of nonempty subsets of divisors of n. ; 1,3,3,7,3,15,3,15,7,15,3,63,3,15,15,31,3,63,3,63,15,15,3,255,7,15,15,63,3,255,3,63,15,15,15,511,3,15,15,255,3,255,3,63,63,15,3,1023,7,63,15,63,3,255,15,255,15,15,3,4095,3,15,63,127,15,255,3,63,15,255,3,4095,3,15,63,63,15,255,3,1023,31,15,3,4095,15,15,15,255,3,40...
include w2.inc include noxport.inc include consts.inc include structs.inc createSeg _LAYOUT2,layout2,byte,public,CODE ; DEBUGGING DECLARATIONS ifdef DEBUG midLayout2n equ 18 ; module ID, for native asserts endif ; EXTERNAL FUNCTIONS externFP <CpPlc> externFP <FInCa> externFP <IInP...
#include <iostream> using namespace std; int main(){ cout<<"Hello"<<endl; cout<<"hey"<<endl; return 0; }
global int80 section .text %macro pushState 0 push rax push rbx push rcx push rdx push rbp push rdi push rsi push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 %endmacro %macro popState 0 pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rsi pop rdi pop rb...
# Counts the number of 1s in a 32-bit word # num = 35; # counter = 0; # position = 1; # for (i = 0; i < 32; i++) { # bit = num & position; # if (bit != 0) # counter++; # position = position << 1; # } # print(counter); .text # $s0 = num, $s1 = counter, $s2 = bit, $t0 = position, $t1 = i li $s0, 0xf1f0f0f0 # num...
#include "renderer.h" #include <algorithm> #include <iostream> /** * TODO: when adding new Renderable to the queue, generate/find it's appropiate batch in the same time * and get loose of dirty flag. Also, on delete, remove it from vertices and batch, shrinking indexes buffer and vertices. * When adding to a batch...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 30/9/98 ; ; ; $Id: unplot.asm,v 1.7 2016-04-13 21:09:09 dom Exp $ ; ;Usage: unplot(int x, int h) SECTION code_graphics PUBLIC c_unplot ...
; ****************************************************** ;Prob3.2...... Divide two 8-bit data without using the DIV instructionfor AVR ; ****************************************************** .include "C:\VMLAB\include\m8def.inc" ; Define here the variables .def temp =r16 ; Define here Reset and...
.thumb .org 0x0 @since I'm not 100% sure which bit is being used for Capture, I'll just call this function to return true if capturing @r0=char data ldr r0,[r0,#0xC] mov r1,#0x80 lsl r1,#0x17 and r0,r1 cmp r0,#0x0 beq GoBack mov r0,#0x1 GoBack: bx r14
.include "myTiny13.h" ; sets Bit0 OFF if timer match 250, makes Bit0 ON if Timer if on TOP .org 0x0000 rjmp Main .org 0x0006 rjmp CompareFits ; fade via tick-length (=255-N) .org 0x0010 CompareFits: ; toggle Bit4 ldi A, 0b00010000 in B, PINB eor A, B out PORTB, A ; change compareValue to make IRQ earlier...
object_const_def ; object_event constants const CINNABARISLAND_BLUE CinnabarIsland_MapScripts: db 0 ; scene scripts db 1 ; callbacks callback MAPCALLBACK_NEWMAP, .FlyPoint .FlyPoint: setflag ENGINE_FLYPOINT_CINNABAR return CinnabarIslandBlue: faceplayer opentext writetext CinnabarIslandBlueText waitbutto...
%ifdef CONFIG { "RegData": { "MM7": ["0x8000000000000000", "0x3FFF"] }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0x4000000000000000 ; 2.0 mov [rdx + 8 * 0], rax fld qword [rdx + 8 * 0] fdiv st0, st0 hlt
; Copyright 2021 IBM Corporation ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writi...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 442 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %12 %435 OpExecutionMode %4 Or...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft %> <%docstring>fchownat(fd, file, owner, group, flag) -> str Invokes the syscall fchownat. See 'man 2 fchownat' for more information. Arguments: fd(int): fd file(char*): file owner(uid_t): owner group(gid_t): gro...
<% from pwnlib.regsort import regsort from pwnlib.constants import Constant, eval from pwnlib.shellcraft import registers from pwnlib.shellcraft.thumb import mov %> <%page args="reg_context, stack_allowed = True"/> <%docstring> Sets multiple registers, taking any register dependencies into account (i.e., given ...
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x14d2c, %rbx and $6005, %r8 mov (%rbx), %ebp cmp $64412, %r12 lea addresses_UC_ht+0xb90c, %rsi lea addresses_UC_ht+0x452c, %rdi clflush (%rsi) nop sub $55772, %r9 mov $14, %rcx ...
; A278169: Characteristic function for A000960. ; 1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,...
; void sp1_PutSprClr(uchar **sprdest, struct sp1_ap *src, uchar n) ; 02.2006 aralbrec, Sprite Pack v3.0 ; sinclair spectrum version SECTION code_clib SECTION code_temp_sp1 PUBLIC asm_sp1_PutSprClr asm_sp1_PutSprClr: ; Colour sprite by writing (mask,attr) pairs into each ; struct_sp1_cs whose addresses are stored in...
; A184536: a(n) = floor(1/{(1+n^4)^(1/4)}), where {} = fractional part. ; 5,32,108,256,500,864,1372,2048,2916,4000,5324,6912,8788,10976,13500,16384,19652,23328,27436,32000,37044,42592,48668,55296,62500,70304,78732,87808,97556,108000,119164,131072,143748,157216,171500,186624,202612,219488,237276,256000,275684,296352,318...
[org 0x0100] jmp start arr: dw 0,0,0,0,0,0,0,0 start: push word testFunct call addtoset push word testFunct call addtoset call callset end: mov ax, 0x4c00 int 21h ;An implied operand say any register which stores the count of the offsets in the array ;will make the solution simpler addtos...
/* * Copyright (c) 2017, Intel Corporation * * 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, publi...
; A265333: Characteristic function for A265334: a(n) = 1 if n >= k! but < 2*k! for some k, 0 otherwise. ; 0,1,1,1,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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,...
; A011936: a(n) = floor( n(n-1)(n-2)(n-3)/26 ). ; 0,0,0,0,0,4,13,32,64,116,193,304,456,660,924,1260,1680,2196,2824,3577,4472,5524,6752,8173,9808,11676,13800,16200,18900,21924,25296,29044,33193,37772,42808,48332,54373 bin $0,4 mul $0,24 div $0,26
; A157843: 1728000n - 1343760. ; 384240,2112240,3840240,5568240,7296240,9024240,10752240,12480240,14208240,15936240,17664240,19392240,21120240,22848240,24576240,26304240,28032240,29760240,31488240,33216240,34944240,36672240,38400240,40128240,41856240,43584240,45312240,47040240,48768240,50496240,52224240,53952240,556802...
; ; MSX specific routines ; by Stefano Bodrato, December 2007 ; ; int msx_sound(int reg, int val); ; ; Play a sound by PSG ; ; ; $Id: set_psg_callee.asm $ ; SECTION code_clib PUBLIC set_psg_callee PUBLIC _set_psg_callee ;; EXTERN msxbios PUBLIC asm_set_psg IF FORmsx INCLUDE "target/msx/def/m...
; void SMS_useFirstHalfTilesforSprites(_Bool usefirsthalf) SECTION code_clib SECTION code_SMSlib PUBLIC _SMS_useFirstHalfTilesforSprites EXTERN asm_SMSlib_useFirstHalfTilesforSprites _SMS_useFirstHalfTilesforSprites: pop af pop hl push hl push af jp asm_SMSlib_useFirstHalfTilesforSprites
;this file for FamiStudio Sound Engine generated by FamiStudio journey_to_silius_music_data: .db 1 .dw .instruments .dw .samples-3 .dw .song0ch0,.song0ch1,.song0ch2,.song0ch3,.song0ch4 .db LOW(.tempo_env_5_mid), HIGH(.tempo_env_5_mid), 0, 0 .instruments: .dw .env2,.env0,.env9,.env4 .dw .env3,.env0,....
; A281773: Number of distinct topologies on an n-set that have exactly 4 open sets. ; 0,0,1,9,43,165,571,1869,5923,18405,56491,172029,521203,1573845,4742011,14266989,42882883,128812485,386765131,1160950749,3484162963,10455110325,31370573851,94122207309,282387593443,847204723365,2541698056171,7625261940669,2287612136632...
; A187339: Floor((7+sqrt(5))*n/4); complement of A187330. ; 2,4,6,9,11,13,16,18,20,23,25,27,30,32,34,36,39,41,43,46,48,50,53,55,57,60,62,64,66,69,71,73,76,78,80,83,85,87,90,92,94,96,99,101,103,106,108,110,113,115,117,120,122,124,126,129,131,133,136,138,140,143,145 add $0,1 mov $1,30 mul $1,$0 div $1,13 mov $0,$1
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x17ed1, %rsi lea addresses_A_ht+0x103d1, %rdi nop and $55218, %rbp mov $105, %rcx rep movsb nop nop nop nop nop sub $54809, %rcx lea addresses_UC_ht+0xa321, %rdx nop nop nop d...
/* Copyright (c) 2003, Xentronix Author: Frans van Nispen (frans@xentronix.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 ...
global _get_random _get_random: push bp mov bp, sp sub sp, 2 mov [bp-2], bx mov ax, [bp+4] mov bx, [bp+6] call os_get_random mov ax, cx mov bx, word [bp-2] mov sp, bp pop bp ret
// Copyright (c) 2013 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/common/extensions/api/extension_action/page_action_handler.h" #include "base/strings/utf_string_conversions.h" #include "base/values...
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR NIRVANA+ ENGINE - by Einar Saukas ; ; See "nirvana+.h" for further details ; ---------------------------------------------------------------- ; void NIRVANAP_drawT(unsigned int tile, unsigned int lin, unsigned int col) SE...
; A001737: Squares written in base 2. ; 0,1,100,1001,10000,11001,100100,110001,1000000,1010001,1100100,1111001,10010000,10101001,11000100,11100001,100000000,100100001,101000100,101101001,110010000,110111001,111100100,1000010001,1001000000,1001110001,1010100100,1011011001,1100010000,1101001001,1110000100,1111000001,1000...
; A158656: a(n) = 54*n^2 - 1. ; 53,215,485,863,1349,1943,2645,3455,4373,5399,6533,7775,9125,10583,12149,13823,15605,17495,19493,21599,23813,26135,28565,31103,33749,36503,39365,42335,45413,48599,51893,55295,58805,62423,66149,69983,73925,77975,82133,86399,90773,95255,99845,104543,109349,114263,119285,124415,129653,134999...
; A072266: Number of words of length 2n generated by the two letters s and t that reduce to the identity 1 using the relations sssssss=1, tt=1 and stst=1. The generators s and t along with the three relations generate the 14-element dihedral group D7. ; Submitted by Jon Maiga ; 1,1,3,10,35,126,462,1717,6451,24463,93518...
; Universal Dot Command ; ; Select dot command depending on whether ; the machine is in 48k or 128k mode. ; ; z80asm -b zxn_universal_dot.asm INCLUDE "config_zxn_private.inc" org 0x2000 zxn_universal_dot: jr start ;; Fixed position data filled in by appmake __filename_dotx : defs 13 __filename_dotn : d...
; formatMem [System] ; Formats memory in preparation for memory allocation. ; Notes: ; This function will deallocate **all allocated memory**. formatMem: ld a, 0xFF ld (userMemory), a ld hl, (0x10000 - userMemory) - 5 ; Total RAM - Kernel RAM Size - Formatting Overhead + 1 ld (userMemory + 1), hl ...
; A035746: Coordination sequence for C_9 lattice. ; Submitted by Jamie Morken(w2) ; 1,162,4482,53154,374274,1854882,7159170,22952610,63821826,158611106,360027522,758497698,1501390338,2818849698,5057616258,8724341922,14540038146,23507426466,36993091970,56826471330,85417838082,125897578914,182279185794,259648519842,36438...
; A088218: Total number of leaves in all rooted ordered trees with n edges. ; 1,1,3,10,35,126,462,1716,6435,24310,92378,352716,1352078,5200300,20058300,77558760,300540195,1166803110,4537567650,17672631900,68923264410,269128937220,1052049481860,4116715363800,16123801841550,63205303218876,247959266474052,973469712824056,...
#include "defaults.h" #include "ram.h" #ifndef RAM_SPI static uint8_t RAM[64*1024]={0}; // Definition of the emulated RAM #else #include <SPI.h> #include <SRAM_23LC.h> SRAM_23LC SRAM(&RAM_SPI_PERIPHERAL, RAM_SPI_CS, RAM_SPI_CHIP); #endif uint8_t ram_read(uint16_t address) { #ifdef RAM_SPI return SRAM.readByt...
// Copyright CERN and copyright holders of ALICE O2. This software is // distributed under the terms of the GNU General Public License v3 (GPL // Version 3), copied verbatim in the file "COPYING". // // See http://alice-o2.web.cern.ch/license for full licensing information. // // In applying this license CERN does not ...
;;----------------------------------------------------------------------------;; ;; Hacks for overlay 13 for arm9 ;; Copyright 2014 Benito Palacios (aka pleonex) ;; ;; Licensed under the Apache License, Version 2.0 (the "License"); ;; you may not use this file except in compliance with the License. ;; You may obta...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...