text
stringlengths
1
1.05M
/* * Copyright (C) 2019 Open Source Robotics Foundation * * 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 appl...
object_const_def ; object_event constants OreburghApartmentN2F_MapScripts: db 0 ; scene scripts db 0 ; callbacks OreburghApartmentN2F_AbilityGuyScript: jumptextfaceplayer .Text .Text: text "A few #MON have" line "a special power" cont "called an ability." done OreburghApartmentN2F_PikcupGirlScript: jumptex...
SECTION code_clib SECTION code_fp_am9511 PUBLIC l_f32_eq ; Entry: dehl = right ; stack = left, ret IFDEF __CPU_8085__ EXTERN asm_am9511_compare_sccz80 .l_f32_eq pop bc push de push hl push bc call asm_am9511_compare_sccz80 pop bc ld de,sp+8 ex...
; A228272: Volume of sphere (rounded down) with the diameter equal to n. ; Submitted by Christian Krause ; 0,4,14,33,65,113,179,268,381,523,696,904,1150,1436,1767,2144,2572,3053,3591,4188,4849,5575,6370,7238,8181,9202,10305,11494,12770,14137,15598,17157,18816,20579,22449,24429,26521,28730,31059,33510,36086,38792,41629,...
; A077832: Expansion of 1/(1-2*x-3*x^2-3*x^3). ; Submitted by Jamie Morken(s4) ; 1,2,7,23,73,236,760,2447,7882,25385,81757,263315,848056,2731328,8796769,28331690,91247671,293880719,946499521,3048384212,9817909144,31620469487,101839819042,327994773977,1056370413541,3402244606139,10957584774832,35291014608704 mov $1,1 m...
db 0 ; 426 DEX NO db 150, 80, 44, 80, 90, 54 ; hp atk def spd sat sdf db GHOST, FLYING ; type db 60 ; catch rate db 204 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 30 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/sinnoh/drifblim/fron...
;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX ;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO ;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS ;IN USING, DISPLAYI...
lc ra, 1 lc sp, 2 lc sp, 3 lc a0, 10 lc a1, 11 lc r2, 0 _data_: .ascii "\000\001\002\003" .ascii "abcdefg" .word 10
; A168053: Expansion of (1-2*x^2-3*x^3)/((1-x)^2*(1+x+x^2)). ; 1,1,-1,-3,-3,-5,-7,-7,-9,-11,-11,-13,-15,-15,-17,-19,-19,-21,-23,-23,-25,-27,-27,-29,-31,-31,-33,-35,-35,-37,-39,-39,-41,-43,-43,-45,-47,-47,-49,-51,-51,-53,-55,-55,-57,-59,-59,-61,-63,-63,-65,-67,-67,-69,-71,-71,-73,-75,-75,-77,-79,-79,-81,-83,-83,-85,-87,...
; A135675: a(n) = ceiling(n^(4/3) - n)]. ; 0,1,2,3,4,5,7,8,10,12,14,16,18,20,22,25,27,30,32,35,37,40,43,46,49,52,54,58,61,64,67,70,73,77,80,83,87,90,94,97,101,104,108,112,116,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175,180,184,188,192,197,201,206,210,215,219,223,228,233,237,242,246,251,256,260,265,270,2...
;******************************************************************************************************** ; uC/OS-II ; The Real-Time Kernel ; ; (c) Copyright 1992-2006, Micrium, Weston, FL ; ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %rax push %rcx push %rdi push %rsi lea addresses_A_ht+0x18bfc, %rsi lea addresses_D_ht+0xc440, %rdi clflush (%rsi) clflush (%rdi) nop nop nop nop dec %rax mov $97, %rcx rep movsl nop nop nop nop sub %r11, %r11 lea addresses_WC_ht+0x2940, %r...
; A021758: Decimal expansion of 1/754. ; Submitted by Jon Maiga ; 0,0,1,3,2,6,2,5,9,9,4,6,9,4,9,6,0,2,1,2,2,0,1,5,9,1,5,1,1,9,3,6,3,3,9,5,2,2,5,4,6,4,1,9,0,9,8,1,4,3,2,3,6,0,7,4,2,7,0,5,5,7,0,2,9,1,7,7,7,1,8,8,3,2,8,9,1,2,4,6,6,8,4,3,5,0,1,3,2,6,2,5,9,9,4,6,9,4,9 seq $0,199685 ; a(n) = 5*10^n+1. div $0,377 mod $0,10
; A081593: Third row of Pascal-(1,7,1) array A081582. ; 1,17,97,241,449,721,1057,1457,1921,2449,3041,3697,4417,5201,6049,6961,7937,8977,10081,11249,12481,13777,15137,16561,18049,19601,21217,22897,24641,26449,28321,30257,32257,34321,36449,38641,40897,43217,45601,48049,50561,53137,55777,58481,61249,64081,66977,69937,7296...
class Solution { public: int calculate(string s) { if (s.length() == 0) return 0; stack<int> st; st.push(1); int ans = 0, sign = 1; for (int i=0; i<s.length(); ++i) { char c = s[i]; int num = 0; if (c == ' ') continue; if ('0' <= c && c <= '9') { int j = i; while (j < s.length(...
; Copyright 2015-2021 Matt "MateoConLechuga" Waltz ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; 1. Redistributions of source code must retain the above copyright notice, ; this list of conditions and the follo...
# This is a comment /* So is this */ .byte 0 /* at end of line? */ .byte 0 /* at end of line, multi-line? */ /* start of line? */ .byte 0 /* What about a multi-line comment? -- at start of line? */ .byte 0 .byte 0, /* in middle? */ 1 # Illegal; 1 seen on next line #.byte 0, /* in middle, #spanning lines? */ 1 ...
<% from pwnlib.shellcraft import amd64, pretty, common from pwnlib.util.packing import pack, unpack from pwnlib.util.lists import group from pwnlib.util.misc import force_bytes from pwnlib import constants, log %> <%page args="egg, start_address=0x7efc00000000, stride=0x10000"/> <%docstring> egghunter(egg, start_addres...
DiglettsCaveScript: jp EnableAutoTextBoxDrawing DiglettsCaveTextPointers: db "@"
; A228293: a(n) = Sum_{k=1..9} n^k. ; 0,9,1022,29523,349524,2441405,12093234,47079207,153391688,435848049,1111111110,2593742459,5628851292,11488207653,22250358074,41189313615,73300775184,125999618777,210027483918,340614792099,538947368420,833994048909,1264758228162,1883023236983,2756668737624,3973642985025,564668382613...
extern m7_ippsGFpECInitStd521r1:function extern n8_ippsGFpECInitStd521r1:function extern y8_ippsGFpECInitStd521r1:function extern e9_ippsGFpECInitStd521r1:function extern l9_ippsGFpECInitStd521r1:function extern n0_ippsGFpECInitStd521r1:function extern k0_ippsGFpECInitStd521r1:function extern ippcpJumpIndexForMergedLib...
/*Exercise 2 - Selection Convert the C program given below which calculates an employee's salary to a C++ program. Input Type, Salary, otHours Type = 1 OtRate = 1000 Type = 2 OtRate = 1500 Type = 3 OtRate = 1700 Please Note that the input command in C++ is std::cin. This is a representation of the Keyboard.*/ #incl...
/* * Copyright (C) 2018 The Android Open Source Project * * 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 app...
#ifndef SKIP_DOXYGEN_PROCESSING static char const rcsid[] = "$Id: blast_options_cxx.cpp 371842 2012-08-13 13:56:38Z fongah2 $"; #endif /* SKIP_DOXYGEN_PROCESSING */ /* =========================================================================== * * PUBLIC DOMAIN NOTICE * ...
#include "../addresses.hpp" #include <component.hpp> #include <fstream> #include <iostream> #include <thread> #include <unistd.h> #define COMP_NAME Radio #define COMP_ADDR la_RADIO #define MNGR_ADDR la_LSM class COMP_NAME : public Component { public: COMP_NAME(std::shared_ptr<LocalCommunicator> com = nullptr) : Com...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r15 push %r9 push %rcx lea addresses_normal_ht+0x119e8, %rcx nop nop nop nop cmp $8996, %r9 vmovups (%rcx), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %r13 nop nop nop dec %r13 lea addresses_normal_ht+0x1cee8, %r9 clflush (%r9) cmp %r12,...
// See the file "COPYING" in the main distribution directory for copyright. #include "zeek-config.h" #include "Val.h" #include <sys/types.h> #include <sys/param.h> #include <netinet/in.h> #include <netdb.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <cmath> #include <set> #include "Attr.h...
; A280042: a(1) = 1, a(n+1) is the numerator of n-th partial fraction of the continued fraction [1; 10, 100, 1000, ..., 10^n]. ; Submitted by Christian Krause ; 1,11,1101,1101011,11010111101,1101011111201011,1101011111212021111101,11010111112121312122121201011,1101011111212132313223231313121111101,110101111121213232423...
// Copyright (c) 2011-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 "signverifymessagedialog.h" #include "ui_signverifymessagedialog.h" #include "addressbookpage.h" #include "guiutil....
db "SHADOW@" ; species name dw 411, 890 ; height, weight db "Hiding in people's" next "shadows at night," next "it absorbs their" page "heat. The chill it" next "causes makes the" next "victims shake.@"
// file : libbuild2/bin/rule.hxx -*- C++ -*- // license : MIT; see accompanying LICENSE file #ifndef LIBBUILD2_BIN_RULE_HXX #define LIBBUILD2_BIN_RULE_HXX #include <libbuild2/types.hxx> #include <libbuild2/utility.hxx> #include <libbuild2/rule.hxx> #include <libbuild2/bin/export.hxx> namespace build2 { na...
*= $0801 .byte $4c,$16,$08,$00,$97,$32 .byte $2c,$30,$3a,$9e,$32,$30 .byte $37,$30,$00,$00,$00,$a9 .byte $01,$85,$02 jsr print .byte 13 .text "(up)clin" .byte 0 lda #%00011011 sta db lda #%11000110 st...
; A123350: a(n) = (n^4 + 2n^3 + 5n^2 + 4)/4. ; 1,3,14,46,117,251,478,834,1361,2107,3126,4478,6229,8451,11222,14626,18753,23699,29566,36462,44501,53803,64494,76706,90577,106251,123878,143614,165621,190067,217126,246978,279809,315811,355182,398126,444853,495579,550526,609922,674001,743003,817174,896766,982037,1073251,117...
; A063759: Spherical growth series for modular group. ; 1,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576,32768,49152,65536,98304,131072,196608,262144,393216,524288,786432,1048576,1572864,2097152,3145728,4194304,6291456,8388608,12582912,16777216,25165824,3355443...
#pragma once #include <cstdint> #include <map> struct Portal { enum class Type { Ladder, Snake }; Type type; std::uint8_t target; }; struct Action { enum class Type { Move, Win }; Type type; std::uint8_t target; /*bool operator=(Action const rhs) const { return std::tie(type, target) == std::tie(rh...
; aPACK/aPLib decompressor ; Intel 8080 version by Ivan Gorodetsky, 2018-2020 ; GBZ80 adaptation by Tony Pavlov, 2020 ; No self-modifying code ; Based on z80 version by dwedit/utopian/Metalbrain ; ; Taken from: https://github.com/untoxa/UnaPACK.GBZ80 ; ; And reconverted back to 8080 compatible SECTION code_clib SECTIO...
; ; 6502EMU.asm ; ; Created: 5/12/2018 8:00:12 AM ; Author : ROTP ; start: ;to avoid overwriting the interrupt table with our includes! jmp init .DB 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 .include "programcode.asm" .include "definitions.asm" .include "general_macros.asm" .include "memorymap.asm" .include "dereferencer....
; A022372: Fibonacci sequence beginning 2, 20. ; 2,20,22,42,64,106,170,276,446,722,1168,1890,3058,4948,8006,12954,20960,33914,54874,88788,143662,232450,376112,608562,984674,1593236,2577910,4171146,6749056,10920202,17669258,28589460,46258718,74848178,121106896,195955074,317061970,513017044,830079014,1343096058,217317507...
.byte $00 ; Unknown purpose .byte OBJ_ROTODISCCLOCKWISE, $10, $14 .byte OBJ_ROTODISCCCLOCKWISE, $19, $15 .byte OBJ_DRYBONES, $14, $18 .byte OBJ_THWOMP, $2B, $11 .byte OBJ_BOO, $3F, $14 .byte OBJ_DRYBONES, $36, $18 .byte OBJ_THWOMP, $48, $11 .byte OBJ_BOO, $4F, $14 .byte OBJ_DRYBONES, $5C, $18 .byte OBJ_DRYB...
//----------------------------------------------------------------------------- // MurmurHash3 was written by Austin Appleby, and is placed in the public // domain. The author hereby disclaims copyright to this source code. // Note - The x86 and x64 versions do _not_ produce the same results, as the // algorithms are ...
; vvvv ; ^^^^ ORG 32768 ; === b e g i n === ld (Stop+1), SP ; 4:20 init storing the original SP value when the "bye" word is used ld L, 0x1A ; 2:7 init Upper screen call 0x1605 ; 3:17 init Open channel ld HL, 60000 ; 3:10 init In...
; A107960: Numbers n such that 11*n - 1 is prime. ; Submitted by Jon Maiga ; 4,10,12,18,22,24,28,34,40,42,52,54,60,70,78,88,94,108,112,118,120,130,132,144,148,154,160,168,174,180,190,192,202,204,208,210,222,232,238,244,250,258,264,270,280,288,300,304,322,328,334,340,342,364,372,378 mov $2,$0 add $2,6 pow $2,2 mov $4,2...
%include "defs.asm" ; procname64.asm ; ; Author: Agner Fog ; Date created: 2007 ; Last modified: 2011-07-02 ; Description: ; ProcessorName ; ============= ; This function produces a zero-terminated ASCII string containing a name ; for the microprocessor in human-readable fo...
; A158948: Triangle read by rows, left border = natural numbers repeated (1, 1, 2, 2, 3, 3,...); all other columns = (1, 0, 1, 0, 1, 0,...). ; 1,1,1,2,0,1,2,1,0,1,3,0,1,0,1,3,1,0,1,0,1,4,0,1,0,1,0,1,4,1,0,1,0,1,0,1,5,0,1,0,1,0,1,0,1,5,1,0,1,0,1,0,1,0,1 mov $3,2 mov $5,$0 lpb $3,1 mov $0,$5 sub $3,1 add $0,$3 s...
#include "DPointArray.hpp" #define INITVAL_N 0 #define INITVAL_d 0 //-------------------------------------------------------------------------- DPointArray:: DPointArray() { X = NULL; N = INITVAL_N; d = INITVAL_d; Init(); } //-------------------------------------------------------------------------- void D...
/** * @Author: Tian Qiao <qiaotian> * @Date: 2016-07-08T13:53:55+08:00 * @Email: qiaotian@me.com * @Last modified by: qiaotian * @Last modified time: 2016-07-08T14:00:12+08:00 * @Difficulty: Medium */ Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triple...
Route2Object: db $f ; border block db $8 ; warps db $9, $c, $0, DIGLETTS_CAVE_EXIT db $b, $3, $0, VIRIDIAN_FOREST_EXIT db $b, $4, $1, VIRIDIAN_FOREST_EXIT db $13, $f, $0, ROUTE_2_HOUSE db $23, $10, $0, ROUTE_2_GATE db $23, $11, $1, ROUTE_2_GATE db $27, $10, $2, ROUTE_2_GATE db $2b, $3, $2, VIRIDIAN_FOREST_EN...
############################################################################### # 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...
; A031382: a(n) = prime(8*n - 2). ; Submitted by Jon Maiga ; 13,43,79,113,163,199,251,293,349,397,443,491,557,601,647,701,757,821,863,929,983,1033,1091,1151,1213,1277,1307,1399,1451,1493,1559,1609,1667,1733,1789,1871,1931,1997,2053,2111,2161,2243,2297,2357,2411,2473,2551,2633,2687,2729,2791,2851,2917,2999,3061,3137,320...
FuchsiaHouse1Object: db $a ; border block db $2 ; warps db $7, $2, $1, $ff db $7, $3, $1, $ff db $0 ; signs db $3 ; objects object SPRITE_MOM_GEISHA, $2, $3, STAY, RIGHT, $1 ; person object SPRITE_GAMBLER, $7, $2, STAY, UP, $2 ; person object SPRITE_BUG_CATCHER, $5, $5, STAY, NONE, $3 ; person ; warp-to ...
/* * Exception.cpp * * Created on: 2018/04/14 * Author: iizuka */ #include "debug/debugMacros.h" #include "base/Exception.h" #include "base/UnicodeString.h" namespace alinous { Exception::Exception(const char* srcfile, int srcline) noexcept { this->srcfile = srcfile; this->srcline = srcline; this->cau...
; ; MYANSI.8 ; ; Byron Peebles ; ; It only acts on cursor and colour commands. ; It's much faster then ANSI.SYS. For normal text (i.e. no ANSI commands) ; MyANSI is faster then the default INT 29 that comes with DOS (DOS 6.22 ; any way). By the way, the default INT 29 with DOS just calls the BIOS ; video inter...
#To be inserted at 8015b524 ########################## ##FPSHack_SlowOceanWaves## ########################## lis r21, 0x817F lfs f17, 0x0004 (r21) fdivs f0,f0,f17 fdivs f1,f1,f0 #VANILLA mr r21,r4
; Make File List V1.02  1989 Tony Tebby QJUMP ; after Jonathan Oakley ; ????-??-?? 1.01 Preserve A2 for MKLIS (Jochen Merz) ; 2017-11-24 1.02 Check 2nd char is 1..8 for Xx_ network check (MK) section gen_util xdef gu_mkfll xdef gu_mkdrl xdef gu_mkflc xref gu_fopen xref gu_fclos xref gu_mklis ...
/*========================================================================= Program: Visualization Toolkit Module: vtkImageSlice.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is...
%ifidn __OUTPUT_FORMAT__,obj section code use32 class=code align=64 %elifidn __OUTPUT_FORMAT__,win32 $@feat.00 equ 1 section .text code align=64 %else section .text code %endif global _gcm_gmult_4bit_x86 align 16 _gcm_gmult_4bit_x86: L$_gcm_gmult_4bit_x86_begin: push ebp push ebx push esi push edi ...
; Test program. SP = SP - 8 M[SP + 4] = -180 M[SP] = 7 CALL <remainder> M[SP + 4] = RV M[SP] = 0 R1 = M[SP] BGE R1, 10000, PC + 32 R1 = M[SP + 4] R1 = R1 + 1 M[SP + 4] = R1 R1 = M[SP] R1 = R1 + 1 M[SP] = R1 JUMP PC - 32 RV = M[SP + 4] SP = SP + 8 RET <remainder> R1 = M[SP + 8] R2 = M[SP + 4] R...
// Copyright (c) 2016-2019 The CryptoCoderz Team / Espers // Copyright (c) 2019 The CryptoCoderz Team / INSaNe project // Copyright (c) 2018 The Rubix project // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "blockpa...
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp -x c++ -emit-llvm %s -o - -femit-all-decls | FileCheck %s // RUN: %clang_cc1 -fopenmp -x c++ -triple x86_64-apple-darwin10 -emit-pch -o %t %s // RUN: %clang_cc1 -fopenmp -x c++ -triple x86_64-apple-darwin10 -include-pch %t -verify %s -emit-llvm -o - -fem...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r14 push %r15 push %r9 push %rdx lea addresses_normal_ht+0x18b14, %r13 nop cmp %r14, %r14 mov $0x6162636465666768, %r15 movq %r15, %xmm0 movups %xmm0, (%r13) dec %rdx lea addresses_normal_ht+0x7f3c, %r9 nop nop nop nop nop cmp %r13, %r13 m...
; A052552: a(2*n+1) = 1, a(2*n) = 2*a(2*n-2) - 1. ; 2,1,3,1,5,1,9,1,17,1,33,1,65,1,129,1,257,1,513,1,1025,1,2049,1,4097,1,8193,1,16385,1,32769,1,65537,1,131073,1,262145,1,524289,1,1048577,1,2097153,1,4194305,1,8388609,1,16777217,1,33554433,1,67108865,1 add $0,1 mov $2,11 lpb $0,1 sub $0,2 mul $2,2 lpe mul $0,$2 mo...
// from SimpleFunction.vm // function (SimpleFunction.test) @2 D=A @R13 M=D (SimpleFunction.testLOOP) @R13 D=M @SimpleFunction.testEND D;JEQ @0 D=A @SP A=M M=D @SP M=M+1 @R13 M=M-1 @SimpleFunction.testLOOP 0;JMP (SimpleFunction.testEND) // push LCL[0] onto the stack @LCL D=M @0 A=D+A D=M @SP A=M M=D @SP M=M+1 // p...
_mkdir: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.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) a: 55 ...
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2011 EMC Corp. // // @filename: // CDatumTest.cpp // // @doc: // Tests for datum classes //--------------------------------------------------------------------------- #include "gpos/io/COstreamString.h...
; A114209: Number of permutations of [n] having exactly two fixed points and avoiding the patterns 123 and 231. ; 0,1,0,2,1,3,2,5,3,7,5,9,7,12,9,15,12,18,15,22,18,26,22,30,26,35,30,40,35,45,40,51,45,57,51,63,57,70,63,77,70,84,77,92,84,100,92,108,100,117,108,126,117,135,126,145,135,155,145,165,155,176,165,187,176,198,18...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 172 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %153 OpExecutionMode %4 Origin...
#include <bits/stdc++.h> using namespace std; typedef unsigned long long int ull; typedef long long int ll; typedef long double ld; #define Mod 1000000007 #define Infinity (ll)1e18 #define Append(a) push_back(a) #define Pair(a,b) make_pair(a,b) #define Clear(a) for(ll &x : a){x=0;} #define Point(x) std::fixed<<setpreci...
rgConfig = $6000 ; write: D6=1 - NMI is off, D6=0 - NMI is on rgStatus = $6000 ; read: D6=0 - UART is busy rgTxD = $5000 ; write: data to send via UART vcNMI = $FFFA Refresh = 450 ; NMI rate in Hz ldx #<NMI ; ins...
; A063216: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 49 ). ; 1,8,14,22,28,35,42,49,55,63,69,76,83,90,96,104,110,117,124,131,137,145,151,158,165,172,178,186,192,199,206,213,219,227,233,240,247,254,260,268,274,281,288,295,301,309,315,322,329,336 add $0,9 seq $0,63235 ; Dimension of the space of ...
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: TreeNode* getTargetCopy(TreeNode* orig, TreeNode* clone, TreeNode* targ) { return orig == nullpt...
; A185721: Arises in the maximum number of C5's in a triangle-free graph. ; 0,0,0,0,0,1,2,5,10,18,32,51,79,118,172,243,335,454,604,792,1024,1306,1649,2059,2548,3125,3802,4591,5507,6563,7776,9161,10737,12523,14539,16807,19349,22190,25355,28871,32768,37073,41821,47042,52773,59049,65908,73390,81537,90392,100000,110408,121...
; A287726: Positions of 0 in A287725; complement of A287727. ; 2,7,11,16,21,25,30,34,39,44,48,53,58,62,67,71,76,81,85,90,94,99,104,108,113,118,122,127,131,136,141,145,150,155,159,164,168,173,178,182,187,191,196,201,205,210,215,219,224,228,233,238,242,247,251,256,261,265,270,275,279,284,288,293,298,302,307,312,316,321,3...
OEM_ID: db "HELLOOS " BytesPerSector: dw 0x0200 SectorsPerCluster: db 0x08 ReservedSectors: dw 0x073E TotalFATs: db 0x02 MaxRootEntries: dw 0x0000 NumberOfSectors: dw 0x0000 MediaDescriptor: db 0xF8 SectorsPerFAT: dw 0x0000 SectorsPerTrack: dw 0x003F SectorsPerHead: dw...
; A047212: Numbers that are congruent to {0, 2, 4} mod 5. ; 0,2,4,5,7,9,10,12,14,15,17,19,20,22,24,25,27,29,30,32,34,35,37,39,40,42,44,45,47,49,50,52,54,55,57,59,60,62,64,65,67,69,70,72,74,75,77,79,80,82,84,85,87,89,90,92,94,95,97,99,100,102,104,105,107,109,110,112,114,115,117,119,120,122,124,125,127,129,130,132,134,13...
// File include/oglplus/enums/object_type.ipp // // Automatically generated file, DO NOT modify manually. // Edit the source 'source/enums/oglplus/object_type.txt' // or the 'source/enums/make_enum.py' script instead. // // Copyright 2010-2019 Matus Chochlik. // Distributed under the Boost Software License, Versi...
vs_3_0 def c0, 0, 0, 0, 0 dcl_position o0 mov o0, c0.x
# Simple RISC-V assembly for starting off with and x0, x0, x0 # Register addresses begin with x addi x1, x0, 1 # Immediates are integers addi x2, x0, 1 -> 0x1 # Expected values are hex jalr x3, 4(x0) -> 0x14 # Register offset
; A165563: a(n) = 1 + 2*n + n^2 + 2*n^3 + n^4. ; 1,7,41,151,409,911,1777,3151,5201,8119,12121,17447,24361,33151,44129,57631,74017,93671,117001,144439,176441,213487,256081,304751,360049,422551,492857,571591,659401,756959,864961,984127,1115201,1258951,1416169,1587671,1774297,1976911,2196401,2433679,2689681,2965367,326172...
[org 0x7c00] [bits 16] Entry: jmp 0x0000:Start times 8-($-$$) db 0 BootTable: BootTable.PrimaryDescriptor: resd 1 BootTable.BootFileLocation: resd 1 BootTable.BootFileLength: resd 1 BootTable.Checksum: resd 1 BootTable.Reserved: resb 40 ...
Snd_Invic_Header: smpsHeaderStartSong 3 smpsHeaderVoice Snd_Invic_Voices smpsHeaderChan $06, $03 smpsHeaderTempo $01, $70 smpsHeaderDAC Snd_Invic_DAC smpsHeaderFM Snd_Invic_FM1, $00, $15 smpsHeaderFM Snd_Invic_FM2, $00, $0A smpsHeaderFM Snd_Invic_FM3, $00, $1F smpsHeade...
; dNPC spr_id facing_dir pal_id interact_id movt_type ; Use to declare a NPC in ROM dNPC: MACRO db ((\1 & $07) << 5) | ((\2 & $03) << 3) | (\3 & $07) db ((\4 & $1F) << 3) | (\5 & $07) ENDM ; Use to declare a NPC buffer in RAM struct_NPC: MACRO wNPC\1_ypos:: dw ; Vertical position wNPC\1_xpos:: dw ; ...
; A229522: Final digit (in decimal system) of (n^n)^n, i.e., (n^n)^n mod 10. ; 1,6,3,6,5,6,7,6,9,0,1,6,3,6,5,6,7,6,9,0,1,6,3,6,5,6,7,6,9,0,1,6,3,6,5,6,7,6,9,0,1,6,3,6,5,6,7,6,9,0,1,6,3,6,5,6,7,6,9,0,1,6,3,6,5,6,7,6,9,0,1,6,3,6,5,6,7,6,9,0,1,6,3,6,5,6 add $0,1 gcd $1,$0 gcd $0,2 pow $0,2 pow $1,$0 mod $1,10 mov $0,$1
;RhyperiorBaseStats: ; 39002 (e:5002) db DEX_RHYPERIOR ; pokedex id db 115 ; base hp db 140 ; base attack db 130 ; base defense db 40 ; base speed db 55 ; base special db GROUND ; species type 1 db ROCK ; species type 2 db 35 ; catch rate db 217 ; base exp yield INCBIN "pic/ymon/rhyperior.pic",0,1 ; 77, sprite dimensio...
; A057060: Let R(i,j) be the rectangle with antidiagonals 1; 2,3; 4,5,6; ...; each k is an R(i(k),j(k)) and A057058(n)=i(n-th prime)). ; 1,2,2,1,1,3,2,4,2,1,3,1,5,7,2,8,4,6,1,5,7,1,5,11,6,10,12,2,4,8,7,11,1,3,13,15,4,10,14,2,8,10,1,3,7,9,1,13,17,19,2,8,10,20,4,10,16,18,1,5,7,17,7,11,13,17,6,12,22,24,2,8,16,22,1,5,11 s...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x1a02, %r9 nop nop add $34164, %rdi mov $0x6162636465666768, %r13 movq %r13, (%r9) nop inc %rbx lea addresses_WC_ht+0x1a2a2, %rcx nop nop xor $29638, %rbx movl $0x61626364, (%r...
/*! * \brief Model implementation for version information. * * \copyright Copyright (c) 2016-2018 Governikus GmbH & Co. KG, Germany */ #include "VersionInformationModel.h" #include "AppSettings.h" #include "BuildHelper.h" #include "DeviceInfo.h" #include <QCoreApplication> #include <QSslSocket> #include <QString...
copyright zengfr site:http://github.com/zengfr/romhack 00042A move.l D1, (A0)+ 00042C dbra D0, $42a 004B1E move.w D1, -(A0) 004B20 dbra D0, $4b1e 004B34 move.w A6, -(A4) [base+6A90] 004B36 move.w A4, ($6a90,A5) [base+6ABC, base+6ABE, base+6AC0] 006698 movea.w (A0)+, A1 00669A tst.b ($7e,A1) [b...
_test: file format elf32-i386 Disassembly of section .text: 00001000 <main>: int n = 1; void test_func(void * arg_ptr); int main(int argc, char *argv[]){ 1000: 55 push %ebp 1001: 89 e5 mov %esp,%ebp 1003: 83 e4 f0 and $0xfffffff0,%esp 10...
; A226293: Class of sequences of (p-1)-tuples of reverse order of natural numbers for p = 7. ; 6,5,4,3,2,1,13,12,11,10,9,8,20,19,18,17,16,15,27,26,25,24,23,22,34,33,32,31,30,29,41,40,39,38,37,36,48,47,46,45,44,43,55,54,53,52,51,50,62,61,60,59,58,57,69,68,67,66,65,64,76,75,74,73,72,71,83 mov $1,14 mov $2,$0 mul $2,2 mo...
; A046162: Reduced numerators of (n-1)^2/(n^2+n+1). Arises in Routh's theorem. ; 0,1,4,3,16,25,12,49,64,27,100,121,48,169,196,75,256,289,108,361,400,147,484,529,192,625,676,243,784,841,300,961,1024,363,1156,1225,432,1369,1444,507,1600,1681,588,1849,1936,675,2116,2209,768,2401,2500,867,2704,2809,972,3025,3136,1083,3364,...
// Copyright (c) 2012 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/browser/extensions/extension_action.h" #include <algorithm> #include <utility> #include "base/base64.h" #include "base/logging.h" #...
PokedexTypeSearchConversionTable: ; entries correspond with PokedexTypeSearchStrings (see data/types/search_strings.asm) db NORMAL db FIRE db WATER db GRASS db ELECTRIC db ICE db FIGHTING db POISON db GROUND db FLYING db PSYCHIC db BUG db ROCK db GHOST db DRAGON db DARK db STEEL db FAIRY
/* * Copyright 2014 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 law or agreed to...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x12f71, %r9 nop nop nop sub $26322, %r10 mov $0x6162636465666768, %rcx movq %rcx, (%r9) nop nop nop xor %r9, %r9 lea addresses_WT_ht+0x5c85, %rsi lea addresses_UC_ht+0x13c01, ...
; A010058: 1 if n is a Catalan number else 0. ; 0,1,1,0,0,1,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,0,...
; area de codigo iniciara' a partir do endereco 2000H # ORG 2000H # BEGIN 2000H LXI H, 2501 ; coloca o ponteiro para os dados nos registradores H e L MOV A, M ; busca os dados da memoria (M) e os coloca no acumulador INX H ; incrimenta o ponteiro em uma unidade SUB M ; busca os dados no endereco apontado e ja' ...
#ifndef __CONSOLEHELPERS_HPP #define __CONSOLEHELPERS_HPP #include <iostream> #include "InputService.hpp" #define BUFFER 100 class ConsoleHelpers { public: ConsoleHelpers(); ~ConsoleHelpers(); void ReadCommands(SessionStorage& sessionStorage, int& currentSessionId); void RenderConsole(); private: void RenderHe...
; ; $Id: 0x26.asm,v 1.1.1.1 2016/03/27 08:40:13 raptor Exp $ ; ; 0x26 explanation - from xchg rax,rax by xorpd@xorpd.net ; Copyright (c) 2016 Marco Ivaldi <raptor@0xdeadbeef.info> ; ; This snippet is equivalent to the following asm code: ; ; ror rax,7 ; ; It rotates rax to the right by 7 positions, by exploiting ; the ...
; A314043: Coordination sequence Gal.6.618.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; Submitted by Simon Strandgaard ; 1,5,11,15,21,25,31,37,41,47,51,57,62,67,73,77,83,87,93,99,103,109,113,119,124,129,135,139,145,149,155,161,1...
.include "myTiny13.h" ; 43210 ; HV Main: ; r RGB ldi r16, 0b00011111 ; H: new line, V: new frame, Red Green Blue out DDRB, r16 Loop: cbi PORTB, 4 sbi PORTB, 4 rjmp Loop