text
stringlengths
1
1.05M
/* mbed Microcontroller Library * Copyright (c) 2006-2019 ARM Limited * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
/*++ Copyright (C) 1996-2001 Microsoft Corporation Module Name: REGEPROV.CPP Abstract: History: --*/ #include "precomp.h" #include <wbemidl.h> #include <stdio.h> #include "cfdyn.h" #include "stdprov.h" #include "regeprov.h" #include <sync.h> #include <tss.h> #include <genutils.h> #incl...
; void adt_StackDelete(struct adt_Stack *s, void *delete) ; CALLER linkage for function pointers XLIB adt_StackDelete LIB adt_StackDelete_callee XREF ASMDISP_ADT_STACKDELETE_CALLEE .adt_StackDelete pop bc pop de pop hl push hl push de push bc jp adt_StackDelete_callee + ASMDISP_ADT_STACKDEL...
00000000 89C8 mov eax,ecx 00000002 8B4004 mov eax,[eax+0x4] 00000005 8945C4 mov [ebp-0x3c],eax 00000008 65A114000000 mov eax,[gs:0x14] 0000000E 8945E4 mov [ebp-0x1c],eax 00000011 31C0 xor eax,eax 00000013 C745CD44696420 mov dword [ebp-0x33],0x206...
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2009 Greenplum, Inc. // // @filename: // CCTEInfo.cpp // // @doc: // Information about CTEs in a query //--------------------------------------------------------------------------- #include "gpopt/bas...
//============================================================================ // Name : LAB2.cpp // Description : Lab2 Solution. The shorter version. Code Re Use through Inheritance. //============================================================================ #include "LAB2.h" #include <string> using namespa...
LDA #$37 BRK OUT A
/** * @file * @author Caleb Fangmeier <caleb@fangmeier.tech> * @version 0.1 * * @section LICENSE * * * MIT License * * Copyright (c) 2017 Caleb Fangmeier * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"),...
/******************************************************************************* * * Program: new & delete Operator Examples * * Description: Examples of using the new and delete operators in C++. * * YouTube Lesson: https://www.youtube.com/watch?v=wopESdEVJs4 * * Author: Kevin Browne @ https://portfoliocourses.com *...
/*! \file */ /* ************************************************************************ * Copyright (c) 2019-2021 Advanced Micro Devices, Inc. * * 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 S...
/*HJ98 自动售货系统*/ #include <iostream> #include <string> #include <vector> #include "vendingsystem.h" using namespace std; int main() { string str; vector<string> cmds; VendingSystem sys; str = "r 22-18-21-21-7-20 3-23-10-6;c;q0;p 1;b A6;c;b A5;b A1;c;q1;p 5;r 28-12-11-1-16-10 19-30-8-11;b A1;p 1;"; // ...
; A017042: a(n) = (7*n + 5)^2. ; 25,144,361,676,1089,1600,2209,2916,3721,4624,5625,6724,7921,9216,10609,12100,13689,15376,17161,19044,21025,23104,25281,27556,29929,32400,34969,37636,40401,43264,46225,49284,52441,55696,59049,62500,66049,69696,73441,77284,81225,85264,89401,93636,97969,102400,106929,111556,116281,121104,1...
.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_normal_ht+0x176f8, %r12 and $51074, %rdi mov (%r12), %r8 nop nop nop nop cmp $30314, %rsi lea addresses_D_ht+0x6d40, %rsi lea addresses_WT_ht+0x82c8, %rdi clflush (%rdi) dec %rbx mov ...
; void *p_list_pop_front_fastcall(p_list_t *list) SECTION code_adt_p_list PUBLIC _p_list_pop_front_fastcall _p_list_pop_front_fastcall: INCLUDE "adt/p_list/z80/asm_p_list_pop_front.asm"
INCLUDE "config_private.inc" SECTION code_driver SECTION code_driver_terminal_input PUBLIC rc_01_input_hbios0_iterm_msg_getc EXTERN asm_hbios rc_01_input_hbios0_iterm_msg_getc: ; enter : ix = & FDSTRUCT.JP ; ; exit : a = keyboard char after character set translation ; carry set on err...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x16121, %rsi clflush (%rsi) nop and $4973, %r13 movw $0x6162, (%rsi) nop nop and %rbx, %rbx lea addresses_WC_ht+0x6081, %rsi lea addresses_WC_ht+0x2fe9, %rdi clflush (%rdi) n...
MobileTradeRoom_MapScripts: db 2 ; scene scripts scene_script .InitializeMobileTradeRoom ; SCENE_DEFAULT scene_script .DummyScene ; SCENE_FINISHED db 0 ; callbacks .InitializeMobileTradeRoom: prioritysjump .InitializeAndPreparePokecenter2F end .DummyScene: end .InitializeAndPreparePokecenter2F: setscene SCE...
 #include "Tokenizer.h" #include "BdAST.h" #include "CompileError.h" #include <fstream> #include <cstdlib> #include <fstream> #include <iostream> using namespace Birdee; extern int ParseTopLevel(); extern void SeralizeMetadata(std::ostream& out); extern void ParseTopLevelImportsOnly(); extern string GetModuleNameByAr...
_start: mov rdi, hello call printf mov rdi, 0 call exit ret hello: push qword 0x6F6C6C65 ; "hello" and [rdi+0x6F], dh ; " wo" jc short 0x6D ; "rl" or al, [fs:rax] ; "d\n\0"
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x17439, %r8 nop nop xor $36731, %r13 mov (%r8), %bp nop nop nop nop xor $58163, %r15 lea addresses_normal_ht+0x1ab8b, %rdi nop nop add $39795, %rax mov $0x61626364656...
/* * Copyright (c) 2021, NVIDIA 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 ...
; ; Basic keyboard handling for the Grundy Newbrain ; By Stefano Bodrato May 2005 ; ; getk() Read key status ; ; ; $Id: getk.asm,v 1.2 2007/05/14 12:40:47 stefano Exp $ ; XLIB getk .getk ;ld e,0 rst 20h defb 38h rst 20h ; Convert Key code defb 3Ah ld h,0 ld l,a ret
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: tsSmallAccess.asm AUTHOR: John Wedgwood, Nov 19, 1991 ROUTINES: Name Description ---- ----------- SmallGetCharAtOffset Get charact...
struct CryptKeyCacheItem { CryptKeyCacheItem() { Password.Set(L""); } ~CryptKeyCacheItem() { cleandata(AESKey,sizeof(AESKey)); cleandata(AESInit,sizeof(AESInit)); cleandata(&Password,sizeof(Password)); } byte AESKey[16],AESInit[16]; SecPassword Password; bool SaltPresent; byte Salt...
; A228729: Product of the positive squares less than or equal to n. ; 1,1,1,4,4,4,4,4,36,36,36,36,36,36,36,576,576,576,576,576,576,576,576,576,14400,14400,14400,14400,14400,14400,14400,14400,14400,14400,14400,518400,518400,518400,518400,518400,518400,518400,518400,518400,518400 add $0,1 cal $0,214080 ; a(n) = (floor(s...
// Fill out your copyright notice in the Description page of Project Settings. #include "MainCameraActor.h" #include "Camera/CameraComponent.h" // Sets default values AMainCameraActor::AMainCameraActor() { MainCamera = CreateDefaultSubobject<UCameraComponent>(TEXT("CameraCP")); MainCamera->SetProjectionMode(ECame...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
[org 0x7c00] [bits 16] %macro rm_printstr 1 jmp %%branch_point %%string_name: db %1 %%string_len: equ ($-%%string_name) %%branch_point: push ebx push ecx mov ebx, %%string_name mov ecx, %%string_len call rm_puts pop ecx pop ebx %endmacro %macro rm_assert 2 j%1 %%no_error_branch %strcat %%assert_strin...
; A007921: Numbers that are not the difference of two primes. ; Submitted by Jamie Morken ; 7,13,19,23,25,31,33,37,43,47,49,53,55,61,63,67,73,75,79,83,85,89,91,93,97,103,109,113,115,117,119,121,123,127,131,133,139,141,143,145,151,153,157,159,163,167,169,173,175,181,183,185,187,193,199,201,203,205,207,211,213,215,217,21...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Epson 48-jet printer driver FILE: epson48bj10vInfo.asm AUTHOR: Tsutomu Owa REVISION HISTORY: Name Date Description ---- ---- ------...
#include "doom.hpp" #include "doom/types.hpp" #include <iostream> #include <span> #include <string> int main(int argc, const char** argv) { std::span args{argv, static_cast<Size>(argc)}; Doom lib{args}; return 0; }
; A033973: Trajectory of 1 under map n->35n+1 if n odd, n->n/2 if n even ; Submitted by Jon Maiga ; 1,36,18,9,316,158,79,2766,1383,48406,24203,847106,423553,14824356,7412178,3706089,129713116,64856558,32428279,1134989766,567494883,19862320906,9931160453,347590615856,173795307928 add $0,1 mov $1,$0 mov $0,3 lpb $1 mo...
_cat: file format elf32-i386 Disassembly of section .text: 00000000 <main>: } } 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 push %ebp b: ...
; void heap_info_callee(void *heap, void *callback) INCLUDE "clib_cfg.asm" SECTION code_alloc_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $01 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _heap_info_callee, l0_heap_info_callee _heap_info_callee: pop af pop de pop bc push af l0_heap_i...
// // Created by Chaeyoung Lim on 2022/02/18. // #include "Model.h" ModelUPtr Model::Load(const std::string &filename) { auto model = ModelUPtr(new Model()); if (!model->LoadByAssimp(filename)) return nullptr; return std::move(model); } bool Model::LoadByAssimp(const std::string &filename) { ...
; *********************** ; * SVP access code ; *********************** regXST equ 0x00A15000 regXSTState equ 0x00A15004 regXSTState_L equ 0x00A15005 regInterrupt equ 0x00A15006 dramTestResult equ 0x00300000 dramTestResultAcc equ 0x00300002 CheckSVPTestResult: ; d1 = number of retries ...
section .text global memset global memcpy global memmove global memcmp memset: cld mov ecx,edx mov al,sil rep stosb ret memcmp: cld xor eax,eax mov ecx,edx repe cmpsb setnz al ret memcpy: memmove: cld cmp rsi,rdi jae .copy mov r8,r...
#include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "util.h" #include "init.h" #include <QString> #include <QDateTime> #include <QDoubleValidator> #include <QFont> #include <QLineEdit> #include <QUrl> #include <QTextDocument> // For Qt::escape #include ...
; A213565: Principal diagonal of the convolution array A213564. ; Submitted by Jamie Morken(w1) ; 1,21,127,467,1302,3038,6258,11754,20559,33979,53625,81445,119756,171276,239156,327012,438957,579633,754243,968583,1229074,1542794,1917510,2361710,2884635,3496311,4207581,5030137,5976552,7060312,8295848,9698568,11284889,130...
namespace glm { namespace detail { }//namespace detail }//namespace glm
// checker_builtin_procs.hpp enum BuiltinProcId { BuiltinProc_Invalid, BuiltinProc_len, BuiltinProc_cap, BuiltinProc_size_of, BuiltinProc_align_of, BuiltinProc_offset_of, BuiltinProc_type_of, BuiltinProc_type_info_of, BuiltinProc_typeid_of, BuiltinProc_swizzle, BuiltinProc_complex, BuiltinProc_quaterni...
[WiiULauncher0US] moduleMatches = 0x90DAC5CE ; Skip CBrbAICompanion::ForceIdle subroutine 0x306EBA0 = nop [WiiULauncher0EU] moduleMatches = 0x8F7D2702 ; Skip CBrbAICompanion::ForceIdle subroutine 0x306EB80 = nop [WiiULauncher0JP] moduleMatches = 0x0D395735 ; Skip CBrbAICompanion::ForceIdle subroutine 0x306EA30 = n...
; A099488: Expansion of (1-x)^2/((1+x^2)(1-4x+x^2)). ; 1,2,7,28,105,390,1455,5432,20273,75658,282359,1053780,3932761,14677262,54776287,204427888,762935265,2847313170,10626317415,39657956492,148005508553,552364077718,2061450802319,7693439131560,28712305723921 mov $5,$0 mov $7,2 lpb $7,1 clr $0,5 mov $0,$5 sub $7,...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r15 push %rbp push %rcx push %rdi // Load lea addresses_WC+0x722, %rbp sub $20850, %rcx vmovups (%rbp), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %r15 nop nop sub %r12, %r12 // Faulty Load...
; A169450: Number of reduced words of length n in Coxeter group on 5 generators S_i with relations (S_i)^2 = (S_i S_j)^33 = I. ; 1,5,20,80,320,1280,5120,20480,81920,327680,1310720,5242880,20971520,83886080,335544320,1342177280,5368709120,21474836480,85899345920,343597383680,1374389534720,5497558138880,21990232555520,87...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r9 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x10f1e, %rax cmp %r10, %r10 movw $0x6162, (%rax) nop xor $10737, %r9 lea addresses_UC_ht+0x15a3e, %rsi nop nop nop add %rbp, %rbp movb (%rsi), %bl nop nop nop nop nop xor %r10,...
; A211616: Number of ordered triples (w,x,y) with all terms in {-n,...-1,1,...,n} and -2<=w+x+y<=2. ; 0,6,42,102,192,312,462,642,852,1092,1362,1662,1992,2352,2742,3162,3612,4092,4602,5142,5712,6312,6942,7602,8292,9012,9762,10542,11352,12192,13062,13962,14892,15852,16842,17862,18912,19992,21102,22242,23412,24612,25842,2...
_du: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" #include "fcntl.h" 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...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "amount.h" #include "tinyformat.h" CFeeRate::CFeeRate(const CAmount& nFeePa...
/** \file triangle.cpp * \brief Plik z definicją klasy triangle. */ #include "triangle.hpp" triangle::triangle() { type = TRIAGNLE; } void triangle::draw_shape(std::size_t x_position, std::size_t y_position) { size_t x1 = 0, x2 = 0, y1 = 0, y2 = 0; if (abs((int)(x_position - x_begining)) < 4) { ...
/*** * * Copyright (c) 1996-2002, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * ...
; CALLER linkage for function pointers PUBLIC memchr EXTERN memchr_callee EXTERN ASMDISP_MEMCHR_CALLEE .memchr pop af pop bc pop de pop hl push hl push de push bc push af jp memchr_callee + ASMDISP_MEMCHR_CALLEE - 1
!add = "clc : adc" !sub = "sec : sbc" !bge = "bcs" !blt = "bcc" ; Free RAM notes ; Normal doors use $AB-AC for scrolling indicator ; Normal doors use $FE to store the trap door indicator ; Spiral doors use $045e to store stair type ; Gfx uses $b1 to for sub-sub-sub-module thing ; Hooks into various routines incsrc dr...
# mp_limb_t mulredc14(mp_limb_t * z, const mp_limb_t * x, const mp_limb_t * y, # const mp_limb_t *m, mp_limb_t inv_m); # # Stack: # inv_m ## parameters # m # y # x # z (4*(2k+7))%esp # ??? (1 limb???) # ebp ## pushed registers (4*(2k+5))%esp # ed...
// Copyright (c) 2015-2016 The Khronos Group Inc. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and/or associated documentation files (the // "Materials"), to deal in the Materials without restriction, including // without limitation the rights to use, copy, modi...
0000000000401994 <start_farm>: 401994: b8 01 00 00 00 mov $0x1,%eax 401999: c3 retq 000000000040199a <getval_142>: 40199a: b8 fb 78 90 90 mov $0x909078fb,%eax 40199f: c3 retq 00000000004019a0 <addval_273>: 4019a0: 8d 87 48 89 c7 c3 lea -...
############################################################################### # 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...
SFX_Cut_3_Ch7: noisenote 2, 15, 7, 36 noisenote 2, 15, 7, 52 noisenote 4, 15, 7, 68 noisenote 8, 15, 4, 85 noisenote 8, 15, 1, 68 endchannel
default rel %include "reg_sizes.asm" %define DECOMP_OK 0 %define END_INPUT 1 %define OUT_OVERFLOW 2 %define INVALID_BLOCK -1 %define INVALID_SYMBOL -2 %define INVALID_LOOKBACK -3 %define ISAL_DECODE_LONG_BITS 12 %define ISAL_DECODE_SHORT_BITS 10 ;; See inflate_huff_code structure declaration in igzip_lib.h calculat...
_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...
Moves: ; Characteristics of each move. move: macro db \1 ; animation (interchangeable with move id) db \2 ; effect db \3 ; power db \4 ; type db \5 percent ; accuracy db \6 ; pp endm move POUND, NO_ADDITIONAL_EFFECT, 40, NORMAL, 100, 35 MoveEnd: move KARATE_CHOP, NO_ADDITIONAL_EFFECT, ...
; A017283: a(n) = (10*n + 1)^3. ; 1,1331,9261,29791,68921,132651,226981,357911,531441,753571,1030301,1367631,1771561,2248091,2803221,3442951,4173281,5000211,5929741,6967871,8120601,9393931,10793861,12326391,13997521,15813251,17779581,19902511,22188041,24642171,27270901,30080231,33076161,36264691,39651821,43243551,47045...
db FLAMBEAR ; 155 db 45, 54, 50, 60, 60, 40 ; hp atk def spd sat sdf db FIRE, FIRE ; type db 45 ; catch rate db 65 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F0 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/flambear/front.dimensions"...
db 0 ; species ID placeholder db 35, 55, 30, 90, 50, 40 ; hp atk def spd sat sdf db ELECTRIC, ELECTRIC ; type db 190 ; catch rate db 82 ; base exp db NO_ITEM, BERRY ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 10 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/pikach...
// Copyright (c) by respective owners including Yahoo!, Microsoft, and // individual contributors. All rights reserved. Released under a BSD (revised) // license as described in the file LICENSE. #include <sstream> #include <cfloat> #include "reductions.h" #include "v_array.h" #include "io/logger.h" using namespace V...
Name: zel_main.asm Type: file Size: 45770 Last-Modified: '2016-05-13T04:20:48Z' SHA-1: 1E8D161B1EA9CB323E14B66A357E83AE208518A2 Description: null
; A080240: Define two sequences by A_n = mex{A_i,B_i : 0 <= i < n} for n >= 0, B_0=0, B_1=1 and for n >= 2, B_n = 2B_{n-1}+(-1)^{A_n}. Sequence gives A_n. ; 0,1,2,4,5,6,8,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,56,57,58,59,60,61,...
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers // Copyright (c) 2018, The TurtleCoin Developers // Copyright (c) 2020, The Ionize Developers // Copyright (c) 2020 The Ionize Developers. // // Please see the included LICENSE file for more information. #include "DataBaseConfig.h" #includ...
; void sp1_IterateSprChar(struct sp1_ss *s, void *hook1) SECTION code_temp_sp1 PUBLIC _sp1_IterateSprChar _sp1_IterateSprChar: pop af pop hl pop ix push ix push hl push af INCLUDE "temp/sp1/zx/sprites/asm_sp1_IterateSprChar.asm"
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: dosPath.asm AUTHOR: Adam de Boor, Oct 31, 1991 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Desc...
.data // This section contains programmer-initialized data i_var: .hword 0 .bss //This section contains uninitialized space allocated with the .skip pseudo-op array_uninit: .skip 3 * 4 // int array = 12 bytes .text // This section contains program text (machine code) - programmer initia...
SECTION "Map_2275", ROM0[$B800] Map_2275_Header: hdr_tileset 22 hdr_dimensions 11, 8 hdr_pointers_a Map_2275_Blocks, Map_2275_TextPointers hdr_pointers_b Map_2275_Script, Map_2275_Objects hdr_pointers_c Map_2275_InitScript, Map_2275_RAMScript hdr_palette $08 ...
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include "common_test_utils/test_common.hpp" #include "low_precision/rt_info/intervals_alignment_attribute.hpp" #include "low_precision/rt_info/precisions_attribute.hpp" #include "low_precision/layer_transformation.hpp...
#include <cstdio> #include <iostream> #include <algorithm> using std::sort; const int Max=10005; int n, a[Max], b[Max], c[Max]; long long ans; inline int abs(int a) { return a<0?-a:a; } int main(){ freopen("data.in", "r", stdin); scanf("%d", &n); for(int i=0; i<n; i++){ scanf("%d%d%d", &a[i], &b[i], &c[i]); } ...
; A260112: Minimal number of steps to get from 0 to n by (a) adding 1 or (b) multiplying by 4. ; 0,1,2,3,2,3,4,5,3,4,5,6,4,5,6,7,3,4,5,6,4,5,6,7,5,6,7,8,6,7,8,9,4,5,6,7,5,6,7,8,6,7,8,9,7,8,9,10,5,6,7,8,6,7,8,9,7,8,9,10,8,9,10,11,4,5,6,7,5,6,7,8,6,7,8,9,7,8,9,10,5,6,7,8,6,7,8,9,7,8,9,10,8,9,10,11,6,7,8,9 lpb $0 lpb $...
db DEX_CLEFAIRY ; pokedex id db 70 ; base hp db 45 ; base attack db 48 ; base defense db 35 ; base speed db 60 ; base special db NORMAL ; species type 1 db NORMAL ; species type 2 db 150 ; catch rate db 68 ; base exp yield INCBIN "pic/bmon/clefairy.pic",0,1 ; 55, sprite dimensions dw ClefairyPicFront dw ClefairyPicBack...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r15 push %r9 push %rbx push %rcx push %rdi push %rsi // Load lea addresses_normal+0x36b0, %rbx nop xor $3528, %r9 mov (%rbx), %esi and %r15, %r15 // REPMOV lea addresses_A+0x1f930, %rsi lea addresses_P...
; A059602: Expansion of (5+10*x+x^2)/(1-x)^10. ; 5,60,376,1660,5830,17380,45760,109252,240955,497640,972400,1812200,3241628,5594360,9354080,15206840,24107105,37360004,56722600,84527300,123830850,178592700,253886880,356151900 mul $0,2 add $0,1 seq $0,38165 ; G.f.: 1/((1-x)*(1-x^2))^5.
; A333320: a(n) is the number of subsets of {1..n} that contain exactly 4 odd and 1 even numbers. ; 0,0,0,0,0,0,0,3,4,20,25,75,90,210,245,490,560,1008,1134,1890,2100,3300,3630,5445,5940,8580,9295,13013,14014,19110,20475,27300,29120,38080,40460,52020,55080,69768,73644,92055,96900,119700,125685,153615,160930,194810,20366...
#include "dmux/message.h" #include <string.h> namespace dmux { namespace message { /** * Constructor */ base_message::base_message() : m_ptr(NULL), m_size(0) { } /** * Constructor * @param ptr the pointer to the raw message * @param sz the size of the raw message */ base_message::base_message(void *ptr...
//---------------------------------------------------------------------------// // Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation> // Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation> // // MIT License // // Permission is hereby granted, free of charge, to any person obtaining a copy // of th...
; ; Amstrad CPC library ; ; ****************************************************** ; ** Librería de rutinas para Amstrad CPC ** ; ** Raúl Simarro, Artaburu 2009 ** ; ****************************************************** ; ; void cpc_PutMaskSp(int *sprite, char *alto, char *anch...
#include <catch.hpp> #include <rapidcheck/catch.h> #include "rapidcheck/gen/detail/Recipe.h" #include "rapidcheck/seq/Operations.h" #include "rapidcheck/shrinkable/Transform.h" #include "util/ArbitraryRandom.h" #include "util/Generators.h" using namespace rc; using namespace rc::gen::detail; using Any = rc::detail:...
; A278122: a(n) = 204*2^n - 248. ; 160,568,1384,3016,6280,12808,25864,51976,104200,208648,417544,835336,1670920,3342088,6684424,13369096,26738440,53477128,106954504,213909256,427818760,855637768,1711275784,3422551816,6845103880,13690208008,27380416264,54760832776 mov $1,2 pow $1,$0 sub $1,1 mul $1,408 add $1,160 mov $...
#include "Mcu.inc" #include "FarCalls.inc" #include "Ui.inc" #include "../../UiStates.inc" #include "../../../Platform/Lcd/IsLcdIdleStub.inc" #include "../../../Platform/Lcd/PutScreenFromFlashMock.inc" #include "TestFixture.inc" radix decimal PutScreenWhenLcdIsNotIdleTest code global testArrange testArrange...
;------------------- ; test for cpse ;------------------- .equ sreg = 0x3f ;------------------- ldi r28,0x00 ldi r29,0x00 movw r2 ,r28 movw r4 ,r28 movw r10,r28 movw r12,r28 movw r18,r28 movw r20,r28 movw r26,r28 ldi r16,0xff out sreg,r16 ldi r16,0x20 ldi ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "pow.h" #include "arith_uint256.h" #include "chain.h" #include "chainpa...
/* * Copyright 2008 Stephan Aßmus <superstippi@gmx.de> * All rights reserved. Distributed under the terms of the MIT licensce. */ #include "AudioChannelConverter.h" #include <new> #include <stdio.h> #include <string.h> using std::nothrow; //#define TRACE_AUDIO_CONVERTER #ifdef TRACE_AUDIO_CONVERTER # define TR...
; A254609: Triangle read by rows: T(n,k) = A243757(n)/(A243757(k)*A243757(n-k)). ; 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,5,5,5,1,1,1,5,5,5,1,1,1,1,1,5,5,1,1,1,1,1,1,1,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,5,5,5,1,5,5,5,5,1,1,1,5,5,5,1,1,5,5,5,1,1,1,1,1,5,5,1,1,1,5,5,1,1,1,1,1,1,1,5,1,1,1,1,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...
// 分析: // 分为两步进行。第一步,对原链表进行复制,并返回复制后的头结点;第二步 // 对复制后的链表的random指针进行处理,具体处理方式为在第一步中对原节点对应 // 的复制节点,建立<原,复制后>的hash表,用于在O(1)复杂度内找到原节点的random // 节点。 class Solution { public: RandomListNode *CloneNode(RandomListNode *pHead) { RandomListNode *cpHead = new RandomListNode(-1); RandomListNode *cpNode = cpHead; RandomLi...
; ; ZX81 libraries - Stefano ; ;---------------------------------------------------------------- ; ; $Id: zx_cls.asm,v 1.7 2015/01/19 01:33:26 pauloscustodio Exp $ ; ;---------------------------------------------------------------- ; ; ROM mode CLS.. useful to expand collapsed display file ; ;--------------------------...
mov al, 0x3c syscall
// http://atariki.krap.pl/index.php/Programowanie:_U%C5%BCycie_OS-a_przy_wy%C5%82%C4%85czonym_ROM-ie .local rominit sei lda #%00000000 sta NMIEN ;$D40E lda #%11111110 sta PORTB ;$D301 ldx #3 ldy #0 mv inc portb afnt0 lda $e000,y dec portb afnt1 ...
; A054113: T(2n,n), array T as in A054110. ; 1,5,17,57,197,701,2549,9413,35153,132393,501905,1912769,7321081,28122281,108355481,418590521,1620751301,6287963741,24438234341,95128761941,370821819581,1447337568461,5655535495901,22122396951101 mov $13,$0 mov $15,$0 add $15,1 lpb $15,1 mov $0,$13 sub $15,1 sub $0,$15...
; Program 8.3 ; MMX - NASM (32-bit) ; Copyright (c) 2017 Hall & Slonka section .data w1: dw 1, 2, 3, 4 w5: dw 5, 6, 7, 8 result: dq 0 section .text global _main _main: movq mm0, [w1] ; move quadword w1-w4 to MM0 movq mm1, [w5] ; move quadword w5-w8 to MM1 paddsw mm0, mm1 ; add packed signed words movq [result], ...
IDD_DLGMENUEDIT equ 1500 IDC_EDTITEMCAPTION equ 2512 IDC_HOTMENU equ 2513 IDC_EDTITEMNAME equ 2516 IDC_EDTITEMID equ 2518 IDC_EDTHELPID equ 2529 IDC_BTNADD equ 2532 IDC_BTNINSERT equ 2519 IDC_BTNDELETE equ 2520 IDC_BTNL equ 2521 IDC_BTNR equ 2522 IDC_BTNU equ 2523 IDC_BTND e...
// // Description: Get user selections for mesh vertex/edge remapping // // Author: Bruce Hickey // // This is added to prevent multiple definitions of the MApiVersion string. #define _MApiVersion #include <maya/MCursor.h> #include <maya/MFnDependencyNode.h> #include <maya/MFnMesh.h> #include <maya/MGlob...
; DRAW LOAD SPRITE 1 BYTE DEFINITION ROTATED ; 01.2006 aralbrec, Sprite Pack v3.0 ; sinclair spectrum version INCLUDE "clib_target_cfg.asm" SECTION code_clib SECTION code_temp_sp1 PUBLIC _SP1_DRAW_LOAD1 EXTERN _SP1_DRAW_LOAD1NR EXTERN SP1RETSPRDRAW ; following data segment copied into struct sp1_cs ld hl,0 ...
/*===================== begin_copyright_notice ================================== 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, includi...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1448b, %rax nop nop nop nop nop cmp $36059, %rdx mov $0x6162636465666768, %rbp movq %rbp, (%rax) and $49771, %rdi lea addresses_A_ht+0xa28b, %rsi clflush (%rsi) nop and %r12...