text
stringlengths
1
1.05M
; A166496: Prime plus the next composite. ; 6,7,11,15,23,27,35,39,47,59,63,75,83,87,95,107,119,123,135,143,147,159,167,179,195,203,207,215,219,227,255,263,275,279,299,303,315,327,335,347,359,363,383,387,395,399,423,447,455,459,467,479,483,503,515,527 seq $0,6005 ; The odd prime numbers together with 1. mul $0,2 max $0...
; =========================================================================== ; --------------------------------------------------------------------------- ; Routine for loading the Dual PCM driver into Z80 RAM ; --------------------------------------------------------------------------- LoadDualPCM: move #$2700,sr ...
lda {m1}+1 cmp #>{c1} bne !+ lda {m1} cmp #<{c1} !: bcc {la1} beq {la1}
// Copyright (c) 2011-2017 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 <qt/guiutil.h> #include <qt/bitcoinaddressvalidator.h> #include <qt/bitcoinunits.h> #include <qt/qvalidatedlineedit...
; A036143: 3^n mod 127. ; Submitted by Jamie Morken(m3) ; 1,3,9,27,81,116,94,28,84,125,121,109,73,92,22,66,71,86,4,12,36,108,70,83,122,112,82,119,103,55,38,114,88,10,30,90,16,48,17,51,26,78,107,67,74,95,31,93,25,75,98,40,120 mov $2,3 pow $2,$0 mod $2,-127 mov $0,$2
SECTION "sec", ROM0 dw Sym m: MACRO Sym:: ENDM m Sym::
TITLE SHLDXDI - Copyright (c) SLR Systems 1991 INCLUDE MACROS PUBLIC SHL_DXDI_PAGESHIFT_DI .CODE ROOT_TEXT ASSUME DS:NOTHING SHL_DXDI_PAGESHIFT_DI PROC ; ; ; REPT PAGE_SHIFT ADD DI,DI ADC DX,DX ENDM SHRI DI,PAGE_SHIFT RET SHL_DXDI_PAGESHIFT_DI ENDP END
SECTION code_fp_mbf32 PUBLIC l_f32_sub EXTERN ___mbf32_setup_arith EXTERN ___mbf32_SUBCDE EXTERN ___mbf32_return EXTERN msbios l_f32_sub: call ___mbf32_setup_arith ld ix,___mbf32_SUBCDE call msbios jp ___mbf32_return
SECTION code_clib SECTION code_fp_math48 PUBLIC sin EXTERN cm48_sccz80_sin defc sin = cm48_sccz80_sin
; A091823: a(n) = 2*n^2 + 3*n - 1. ; 4,13,26,43,64,89,118,151,188,229,274,323,376,433,494,559,628,701,778,859,944,1033,1126,1223,1324,1429,1538,1651,1768,1889,2014,2143,2276,2413,2554,2699,2848,3001,3158,3319,3484,3653,3826,4003,4184,4369,4558,4751,4948,5149,5354,5563,5776,5993,6214,6439,6668,6901,7138,7379,7624,7873,8...
; A081406: a(n) = (n+1)*a(n-3), a(0)=a(1)=a(2)=1 for n>1. ; 1,1,1,4,5,6,28,40,54,280,440,648,3640,6160,9720,58240,104720,174960,1106560,2094400,3674160,24344320,48171200,88179840,608608000,1252451200,2380855680,17041024000,36321084800,71425670400,528271744000,1162274713600,2357047123200,17961239296000,40679614976000,84...
; =============================================================== ; Dec 2013 ; =============================================================== ; ; void *obstack_base(struct obstack *ob) ; ; Returns the address of the currently growing object. ; ; =============================================================== SECTIO...
; A041589: Denominators of continued fraction convergents to sqrt(312). ; Submitted by Jon Maiga ; 1,1,2,3,104,107,211,318,11023,11341,22364,33705,1168334,1202039,2370373,3572412,123832381,127404793,251237174,378641967,13125064052,13503706019,26628770071,40132476090,1391132957131,1431265433221,2822398390352,42536638235...
SECTION code_fp_math32 PUBLIC ___fs2slong_callee EXTERN cm32_sdcc___fs2slong_callee defc ___fs2slong_callee = cm32_sdcc___fs2slong_callee
main: in 35 call cnt mov e, a in 36 call cnt mov d, a call comp out 37 call slp mvi a, 00 out 37 hlt cnt: mvi b, 00 mvi c, 08 cnt_for: rlc jnc cnt_no inr b cnt_no: jnz a mov a, b ret slp: mvi c, FF slp_for: mvi b, FF slp_for_i...
; void *z80_indr(void *dst, uint8_t port, uint8_t num) SECTION code_clib SECTION code_z80 PUBLIC _z80_indr EXTERN asm_z80_indr _z80_indr: pop af pop hl pop bc push bc push hl push af jp asm_z80_indr
GLOBAL syscall GLOBAL haltAsm ; syscall: Esta funcion en asembler se utiliza para, desde C, llamar a las syscalls con ints. ; parametros: rdi, rsi, rdx y rcx. ; retorna nada. syscall: push rbp mov rbp, rsp ; El orden de las syscalls es rax, rbx, rcx y rdx. ; El orden de las funciones en C son rdi, rsi, rdx...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Crown developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "walletmodel.h" #include "addresstablemodel.h" #include "guiconstant...
#ifndef __Stream_COutputStreamHelper_HPP__ #define __Stream_COutputStreamHelper_HPP__ #include "IOutputStreamHelper.h" namespace Stream { class COutputStreamHelper : public Stream::IOutputStreamHelper { public: COutputStreamHelper(Stream::IOutputStream& rOutputStream); virtual ~COutputStreamHelper(void); v...
#include "MainApp.hpp" #include <Files/Files.hpp> #include <Inputs/Input.hpp> #include <Devices/Mouse.hpp> #include <Graphics/Graphics.hpp> #include <Scenes/Scenes.hpp> #include <Timers/Timers.hpp> #include "MainRenderer.hpp" #include "Scenes/Scene1.hpp" #include "World/World.hpp" #include "Resources/Resources.hpp" i...
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com /** Copyright (c) 2016 Roman Katuntsev <sbkarr@stappler.org> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and...
; A294937: Characteristic function for abundant numbers (A005101): a(n) = 1 if A001065(n) > n, 0 otherwise. ; 0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1 seq $0,23...
; A140124: a(n) = degree in N of the number of orbits under S_N of the set of n-tuples of partitions of {1,...,N} into n subsets. ; 1,20,243,3104,46625,823500,16777159,387420416,9999999909,285311670500,8916100448123,302875106592096,11112006825557833,437893890380859164,18446744073709551375,827240261886336763904,39346408...
// Copyright 2017 Google 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 in ...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Compute the line coordinates and put into a vector ; Basic concept by Rafael de Oliveira Jannone (calculate_side) ; ; Stefano Bodrato - 13/3/2009 ; ; ; $Id: w_stencil_add_circle.asm,v 1.3 2016-04-23 20:3...
; Website: http://shell-storm.org/shellcode/files/shellcode-571.php ; original: 43 ; poly: 44 global _start section .text _start: xor eax,eax cdq push edx push 0x7461632f push 0x6e69622f mov ebx,esp push edx push 0x64777373 push 0x61702f2f push 0x6374652f mov ecx,esp mov al,0xb push edx...
; A328184: Denominator of time taken for a vertex of a rolling regular n-sided polygon to reach the ground. ; 4,8,20,12,28,16,12,20,44,24,52,28,20,32,68,36,76,40,28,44,92,48,100,52,36,56,116,60,124,64,44,68,140,72,148,76,52,80,164,84,172,88,60,92,188,96,196,100,68,104,212,108,220,112,76,116,236,120,244,124,84 mov $4,$...
<% from pwnlib.shellcraft.mips.linux import syscall %> <%page args="fildes"/> <%docstring> Invokes the syscall fdatasync. See 'man 2 fdatasync' for more information. Arguments: fildes(int): fildes </%docstring> ${syscall('SYS_fdatasync', fildes)}
; int fzx_write(struct fzx_state *fs, char *buf, uint16_t buflen) SECTION code_font SECTION code_font_fzx PUBLIC _fzx_write EXTERN l0_fzx_write_callee _fzx_write: pop af pop ix pop de pop bc push bc push de push hl push af jp l0_fzx_write_callee
; Asmt6_2.asm - Write a sequence of instructions that shift three memory words to the left by 1 bit position. INCLUDE Irvine32.inc .data wordArray WORD 810Dh, 0C064h,93ABh .code main PROC shr [wordArray + 2], 1 rcr [wordArray + 1], 1 rcr [wordArray], 1 INVOKE ExitProcess, 0 main ENDP END ma...
; $Id: bs3-cmn-RegSetCr4.asm 72138 2018-05-07 13:03:51Z vboxsync $ ;; @file ; BS3Kit - Bs3RegSetCr4 ; ; ; Copyright (C) 2007-2018 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and/or...
#include <vector> namespace oddvoices { namespace frontend { void write16BitMonoWAVFile( std::string fileName , int sampleRate , const std::vector<int16_t>& data ); } // namespace frontend } // namespace oddvoices
#include "stdafx.h" #include "SplitEmUp.h" #include "FillHole.h" #include "ChainDecomposition.h" #include "ContractDeg2.h" void splitEmUpCorrectly(G& g) { std::cout << "Splitting stuff... "; //1. Break into chains, record their adjacencies into another graph //2. For each chain in that little graph, if its degree is...
/* * Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/LexicalPath.h> #include <LibArchive/Zip.h> #include <LibCompress/Deflate.h> #include <LibCore/ArgsParser.h> #include <LibCore/DirIterator.h> #include <LibCore/File.h> #include <LibCore/Fi...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1bbdd, %rsi lea addresses_WC_ht+0x15ddd, %rdi clflush (%rsi) clflush (%rdi) nop nop nop nop nop inc %r12 mov $29, %rcx rep movsw nop nop nop nop dec %rdi lea addresses_A_ht+0x1517...
//{ #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef double lf; typedef pair<ll,ll> ii; #define REP(i,n) for(ll i=0;i<n;i++) #define REP1(i,n) for(ll i=1;i<=n;i++) #define FILL(i,n) memset(i,n,sizeof i) #define X first #define Y second #define SZ(_a) (int)_a.size() #define ALL(_a) _a.begin(),_...
TITLE seagullbird_t13 .MODEL SMALL .DATA MESSAGE DB 'PLEASE INPUT A NUMBER TO RING: $' .CODE MAIN PROC FAR ASSUME CS:_TEXT, DS:_DATA PUSH DS XOR AX, AX PUSH AX MOV AX, @DATA MOV DS, AX PRINT: MOV AH, 09 LEA DX, MESSAGE INT 21H MOV AH, 01H INT 21H CMP AL, 30H JL PRINT CMP AL, 39H JG PRINT SUB AL, ...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="pid, stat_loc, options, usage"/> <%docstring> Invokes the syscall wait4. See 'man 2 wait4' for more information. Arguments: pid(pid_t): pid stat_loc(WAIT_STATUS): stat_loc options(int): options usage(rusage): usage </%docstrin...
; ; ; ZX Maths Routines ; ; 21/03/03 - Stefano Bodrato ; ; $Id: sinh.asm,v 1.5 2016/06/22 19:59:18 dom Exp $ ; ;double sinh(double) ; e = exp(x) ; ; return ((e-1.0/e)/2) ; IF FORzx INCLUDE "zxfp.def" ENDIF IF FORzx81 INCLUDE "81fp.def" ENDIF IF FORlambda INCLUDE "lambdafp.def" ENDIF ...
; A026911: T(2n,n-2), T given by A026907. ; Submitted by Jon Maiga ; 67,348,1495,6108,24501,97456,385900,1524066,6009720,23675882,93226503,367005692,1444728537,5687662392,22395051912,88199397642,347448657492,1369107075762,5396498311992,21277355051610,83918011194996 mov $3,$0 mov $5,4 lpb $5 mov $0,$3 sub $5,1 ad...
Route12_Object: db $43 ; border block db 4 ; warps warp 10, 15, 0, ROUTE_12_GATE_1F warp 11, 15, 1, ROUTE_12_GATE_1F warp 10, 21, 2, ROUTE_12_GATE_1F warp 11, 77, 0, ROUTE_12_SUPER_ROD_HOUSE db 2 ; signs sign 13, 13, 11 ; Route12Text11 sign 11, 63, 12 ; Route12Text12 db 10 ; objects object SPRITE_SNORLAX,...
PokemonTower7F_Object: db $1 ; border block db 1 ; warps warp 9, 16, 1, POKEMON_TOWER_6F db 0 ; signs db 4 ; objects object SPRITE_ROCKET, 9, 11, STAY, RIGHT, 1, OPP_ROCKET, 19 object SPRITE_ROCKET, 12, 9, STAY, LEFT, 2, OPP_ROCKET, 20 object SPRITE_ROCKET, 9, 7, STAY, RIGHT, 3, OPP_ROCKET, 21 object SPRITE...
#include "MBList.h" void MBList::begin(char *tmpBuf, uint16_t tmpBufLen, FS *fs, Print *stdErr) { m_tmpBuf = tmpBuf; m_tmpBufLen = tmpBufLen; m_stdErr = stdErr; m_fs = fs; } bool MBList::open(ListType type, const char *listName, const SortOrder *sortOrder) { if (!openListFile(type, listName, sortO...
// Copyright 2016 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 "third_party/blink/renderer/platform/geometry/float_quad.h" #include <limits> #include "testing/gtest/include/gtest/gtest.h" #include "third_par...
; A062114: a(n) = 2*Fibonacci(n) - (1 - (-1)^n)/2. ; 0,1,2,3,6,9,16,25,42,67,110,177,288,465,754,1219,1974,3193,5168,8361,13530,21891,35422,57313,92736,150049,242786,392835,635622,1028457,1664080,2692537,4356618,7049155,11405774,18454929,29860704,48315633,78176338,126491971,204668310,331160281,535828592,866988873,14028...
; A247619: Start with a single pentagon; at n-th generation add a pentagon at each expandable vertex; a(n) is the sum of all label values at n-th generation. (See comment for construction rules.) ; Submitted by Jamie Morken(s3) ; 1,6,16,36,66,116,186,296,446,676,986,1456,2086,3036,4306,6216,8766,12596,17706,25376,35606...
5A_Header: sHeaderInit ; Z80 offset is $C6CE sHeaderPatch 5A_Patches sHeaderTick $01 sHeaderCh $02 sHeaderSFX $80, $02, 5A_FM3, $00, $03 sHeaderSFX $80, $C0, 5A_PSG3, $00, $00 5A_FM3: sPatFM $00 ssModZ80 $01, $01, $FA, $00 dc.b nC1, $50 sStop 5A_PSG3: sNoisePSG $E7 sVolEnvPSG v0D dc.b nEb5, $08 5A...
class Solution { public: int maxProduct(vector<int>& nums) { int i,j; int n=nums.size(); int max=nums[0]*nums[1]; for(i=0;i<n;i++) { if(nums[i]*nums[i+1]>max) { max=nums[i]*nums[i+1]; } } return ...
; double scalbn(double x, int n) SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sccz80_scalbn EXTERN am48_scalbn, cm48_sccz80p_dload cm48_sccz80_scalbn: pop af pop hl push hl push af exx ld hl,4 add hl,sp call cm48_sccz80p_dload jp am48_scalbn
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x10462, %rbx nop xor %r14, %r14 movl $0x61626364, (%rbx) nop nop nop cmp $17834, %rcx lea addresses_UC_ht+0x2862, %rsi lea addresses_normal_ht+0x13c62, %rdi sub %rbx, %rbx mov $80, %rc...
#pragma once struct viewport { using vector = std::array<float, 2>; viewport(int width, int height, float f, vector o = {}) : screen{width, height}, origin{o}, fov{f * width / height, f}, min{o[0] - 0.5f * fov[0], o[1] - 0.5f * fov[1]}, max{o[0] + 0.5f * fov[0], o[1] + 0.5f *...
# BYTE : i 0 # BYTE : j 1 # BYTE: size 2 # BYTE: hasTreasure 3 # BYTE: hasKey 4 # BYTE: hasBlock 5 # BYTE: hasSpike 6 # BYTE: spikeAlternates 7 # BYTE: hasMonster 8 # BYTE: hasPlayer 9 # BYTE: isGoal 10 # BYTE: isWalkable 11 # BYTE: mapPart 12 # TOTAL SIZE : 13 BYTES .data .include "resources/monsterIm...
_cat: file format elf32-i386 Disassembly of section .text: 00000000 <cat>: char buf[512]; void cat(int fd) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 28 sub $0x28,%esp int n; while((n = read(fd, buf, sizeof(buf))) > 0) 6: eb 1b ...
.model small .stack 100h .data arrr dw 2,3,9,0,1,'!' .code main proc mov ax , @data mov ds , ax xor si , si rep_: cmp arrr[si] , '!' je exit mov ax , arrr[si] cmp ax , arrr[si+2] jle inc_ jg swap_ swap_: mov bx , arrr[si+2] mov arrr[si] , bx mov arrr[si+2] , ax xor si ,...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 105 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %9 %76 OpExecutionMode %4 Orig...
#ifndef INCLUDED_PARTITIONS_H_ #define INCLUDED_PARTITIONS_H_ #include <vector> #include <algorithm> class Partitions : public std::iterator<std::input_iterator_tag, std::vector<size_t> > { size_t d_number; std::vector<size_t> d_partition; size_t d_parts; public: Partitions(size_t number) : d...
// Copyright 2020 The Tint Authors. // // 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 ...
/* mbed Microcontroller Library * Copyright (c) 2017-2017 ARM Limited * * 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...
; A151763: If n is a prime == 1 mod 4 then a(n) = 1, if n is a prime == 3 mod 4 then a(n) = -1, otherwise a(n) = 0. ; 0,0,-1,0,1,0,-1,0,0,0,-1,0,1,0,0,0,1,0,-1,0,0,0,-1,0,0,0,0,0,1,0,-1,0,0,0,0,0,1,0,0,0,1,0,-1,0,0,0,-1,0,0,0,0,0,1,0,0,0,0,0,-1,0,1,0,0,0,0,0,-1,0,0,0,-1,0,1,0,0,0,0,0,-1,0,0,0,-1,0,0,0,0,0,1,0,0,0,0,0,0...
; A164683: a(n) = 8*a(n-2) for n > 2; a(1) = 1, a(2) = 8. ; 1,8,8,64,64,512,512,4096,4096,32768,32768,262144,262144,2097152,2097152,16777216,16777216,134217728,134217728,1073741824,1073741824,8589934592,8589934592,68719476736,68719476736,549755813888,549755813888,4398046511104,4398046511104,35184372088832,3518437208883...
// Copyright 2017 The Abseil Authors. // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
; A107305: Numbers k such that 11*k - 13 is prime. ; 4,6,10,16,22,24,30,36,42,60,64,70,76,84,90,94,100,102,106,120,126,132,136,142,144,150,160,172,174,184,192,196,210,214,226,232,244,246,256,270,274,276,280,282,294,304,316,322,330,340,346,354,360,366,370,372,384,402,412,424,426,436,444,450,456,466,472,486,492,496,504,5...
; A056570: Third power of Fibonacci numbers (A000045). ; 0,1,1,8,27,125,512,2197,9261,39304,166375,704969,2985984,12649337,53582633,226981000,961504803,4073003173,17253512704,73087061741,309601747125,1311494070536,5555577996431,23533806109393,99690802348032,422297015640625,1788878864685457,7577812474746632 add $0,1 mo...
#include "FileDialogPaths.hpp" FileDialogPaths::FileDialogPaths() { //Create the file chooser config file, if it does not already exist std::experimental::filesystem::path filepath = config_location; bool file_exists = std::experimental::filesystem::exists(filepath); if (!file_exists) { //C...
; A189628: Fixed point of the morphism 0->001, 1->010. ; 0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,1,0,0 add $0,71726 seq $0,189723 ; Fixed point of the morphism 0->01...
; Copyright (c) 2009-2010, Michael Alyn Miller <malyn@strangeGizmo.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: ; ; 1. Redistributions of source code must retain the above copyright notic...
; OS function vectors USERV = &0200 BRKV = &0202 IRQ1V = &0204 IRQ2V = &0206 CLIV = &0208 BYTEV = &020A WORDV = &020C WRCHV = &020E RDCHV = &0210 FILEV = &0212 ARGSV = &0214 BGETV = &0216 BPUTV = &0218 GBPBV = &021A FINDV = &021C FSCV = &021E EVNTV = &0220 UPTV = &0222 NETV = &0224 VDUV = &0226 KEYV = &0228 INSBV = &0...
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_Liopleurodon_AnimBP_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------------...
; A175029: a(n)=2*n if n is prime, otherwise a(n)=3*n. ; 3,4,6,12,10,18,14,24,27,30,22,36,26,42,45,48,34,54,38,60,63,66,46,72,75,78,81,84,58,90,62,96,99,102,105,108,74,114,117,120,82,126,86,132,135,138,94,144,147,150,153,156,106,162,165,168,171,174,118,180,122,186 mov $1,1 max $1,$0 mov $2,$0 seq $0,66247 ; Characteri...
.size 8000 .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld a, 30 ldff(00), a ld c, 44 ld b, 91 lbegin_waitly91: ldff a, (c) cmp a, b jrnz lbegin_waitly91 xor a, a ldff(40), a ld a, 80 ldff(68), a xor a, a ldff(69), a ldff(69), a ld a, 86 ldff(68), a ld a, ff ldff(69),...
START: LDA #$FF ; Set all bits in PORTB to be output bits STA $B402 LDA #$01 ; Start the count with 1 (so that a shift can work) STA $B400 ; Output to PORTB JSR DELAY ; Delay for a bit LEFT: ASL ; Shift left STA $B400 ; Output to PORTB JSR DELAY ; Delay for a bit CMP #$80 ; Cy...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: UnityEngine.MonoBehaviour #...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x7f5c, %r12 clflush (%r12) nop sub %rbx, %rbx and $0xffffffffffffffc0, %r12 vmovntdqa (%r12), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $1, %xmm7, %rax n...
; A132764: a(n) = n*(n+22). ; 0,23,48,75,104,135,168,203,240,279,320,363,408,455,504,555,608,663,720,779,840,903,968,1035,1104,1175,1248,1323,1400,1479,1560,1643,1728,1815,1904,1995,2088,2183,2280,2379,2480,2583,2688,2795,2904,3015,3128,3243,3360 mov $1,$0 add $1,22 mul $0,$1
;; ;; Copyright (c) 2021 Antti Tiihala ;; ;; Permission to use, copy, modify, and/or distribute this software for any ;; purpose with or without fee is hereby granted, provided that the above ;; copyright notice and this permission notice appear in all copies. ;; ;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
#include "AimedAnimation.h" #include "Frame.h" #include "basic_ops.h" AimedAnimation::AimedAnimation() :Animation() { //ctor } AimedAnimation::AimedAnimation(ALLEGRO_BITMAP* sheet, int x, int y, int w, int h, int nb) :Animation() { createFromSheet(sheet, y, x, w, h, nb); } AimedAnimation::~AimedAnimatio...
// Original test: ./freiberg/hw4/problem6/stu_2.asm // Author: freiberg // Test source code follows //in between case lbi r1, 64 lbi r2, 82 stu r2, r1, 18 ld r2, r1, 0 halt
_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...
#include <jni.h> #include <string> #include <android/log.h> #include <errno.h> extern "C" JNIEXPORT jstring JNICALL Java_com_personal_tools_simplestvp_MainActivity_stringFromJNI( JNIEnv *env, jobject /* this */) { FILE* fp = fopen("/data/system/packages.xml","r"); if (fp != NUL...
.repeat 16 .byte 15 .endrepeat
db 0 ; species ID placeholder db 140, 70, 45, 45, 75, 50 ; hp atk def spd sat sdf db NORMAL, NORMAL ; type db 50 ; catch rate db 109 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F75 ; gender ratio db 100 ; unknown 1 db 10 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/wigglytu...
preset_14speed_crateria_ceres_elevator: dw #$0000 dl $7E078B : db $02 : dw $0000 ; Elevator Index dl $7E078D : db $02 : dw $AB58 ; DDB dl $7E078F : db $02 : dw $0000 ; DoorOut Index dl $7E079B : db $02 : dw $DF45 ; MDB dl $7E079F : db $02 : dw $0006 ; Region dl $7E07C3 : db $02 : dw $E22A ;...
;-----------------------------------------------------------------; ; This advanced example shows how to use the Unicode macros ; ; to display some formulas (MAXWELL). ; ; The used font is <Lucida Sans Unicode>. According to ; ; Microsoft's Internet site, the equates should ...
/* * Copyright (c) 2017 - 2018, 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, ...
Route6Gate_h: db GATE ; tileset db ROUTE_6_GATE_HEIGHT, ROUTE_6_GATE_WIDTH ; dimensions (y, x) dw Route6Gate_Blocks ; blocks dw Route6Gate_TextPointers ; texts dw Route6Gate_Script ; scripts db 0 ; connections dw Route6Gate_Object ; objects
0111100000000000 0010001000000000 0001001000000001 0011010000000000 0010001000000001 0001001000000010 0011010000000001 0010001000000010 0001001000000011 0011010000000010 0010001000000011 0001001000000100 0011010000000011 0010001000000100 0001001000000101 0011010000000100 0010001000000101 00010010000001...
bits 64 b0: vmovd xmm2, [rdx+r9] e0: section .data len: dd e0 - b0 ; Should be 6
; A122876: a(0)=1, a(1)=1, a(2)=2, a(n) = a(n-1) - a(n-2) for n>2. ; 1,1,2,1,-1,-2,-1,1,2,1,-1,-2,-1,1,2,1,-1,-2,-1,1,2,1,-1,-2,-1,1,2,1,-1,-2,-1,1,2,1,-1,-2,-1,1,2,1,-1,-2,-1,1,2,1,-1,-2,-1,1,2,1,-1,-2,-1,1,2,1,-1,-2,-1,1,2,1,-1,-2,-1,1,2,1,-1,-2,-1,1,2,1,-1,-2,-1 add $0,1 mul $0,2 sub $0,3 div $0,2 mov $1,1 mov $2,1...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x11e3, %rsi lea addresses_A_ht+0x8a63, %rdi nop nop nop nop nop inc %r12 mov $112, %rcx rep movsl nop nop nop nop inc %rbp lea addresses_UC_ht+0xce63, %rsi nop nop and %r14, ...
NameRatersHouse_Script: jp EnableAutoTextBoxDrawing NameRaterScript_1da15: call PrintText call YesNoChoice ld a, [wCurrentMenuItem] and a ret NameRaterScript_1da20: ld hl, wPartyMonOT ld bc, NAME_LENGTH ld a, [wWhichPokemon] call AddNTimes ld de, wPlayerName ld c, NAME_LENGTH call .asm_1da47 jr c, .asm_...
; multi-segment executable file template. data segment ; add your data here! pkey db 10, 13, "press any key...$" message db 10, 13, "Result : $" string db 300 dup("$") ends stack segment dw 128 dup(0) ends code segment start: ; set segment registers: mov ax, data ...
; Load file into heap V1.00  1988 Tony Tebby section gen_util xdef gu_lchp xdef gu_lchpx xdef gu_lchph xdef gu_lchpf xref gu_iowp xref gu_achp0 xref gu_rchp xref gu_fclos include 'dev8_keys_hdr' in...
{ 'abc_class': 'AbcFile' , 'minor_version': 16 , 'major_version': 46 , 'int_pool': [ , '10' , '20' , '30' ] , 'uint_pool': [ ] , 'double_pool': [ ] , 'utf8_pool': [ , '' , 'Object' , 'Array' , 'RegExp' ...
; A035329: a(n) = n*(2*n+5)*(2*n+7). ; 0,63,198,429,780,1275,1938,2793,3864,5175,6750,8613,10788,13299,16170,19425,23088,27183,31734,36765,42300,48363,54978,62169,69960,78375,87438,97173,107604,118755,130650,143313,156768,171039,186150,202125,218988,236763 mov $2,$0 mul $0,2 mov $3,$0 add $0,5 lpb $0,1 sub $0,1 ad...
; A017814: Binomial coefficients C(98,n). ; 1,98,4753,152096,3612280,67910864,1052618392,13834413152,157366449604,1573664496040,14005614014756,112044912118048,812325612855848,5373846361969456,32626924340528840,182710776306961504,947812152092362802,4571799792445514692,20573099066004816114,86623575014757120480,3421631213...
; A230877: If n = Sum_{i=0..m} c(i)*2^i, c(i) = 0 or 1, then a(n) = Sum_{i=0..m} (m+1-i)*c(i). ; 0,1,1,3,1,4,3,6,1,5,4,8,3,7,6,10,1,6,5,10,4,9,8,13,3,8,7,12,6,11,10,15,1,7,6,12,5,11,10,16,4,10,9,15,8,14,13,19,3,9,8,14,7,13,12,18,6,12,11,17,10,16,15,21,1,8,7,14,6,13,12,19,5,12,11,18,10,17,16,23,4,11,10,17,9,16,15,22,8,1...
; A134314: First differences of A134429. ; Submitted by Jamie Morken(s2) ; -8,8,-8,16,-24,24,-24,32,-40,40,-40,48,-56,56,-56,64,-72,72,-72,80,-88,88,-88,96,-104,104,-104,112,-120,120,-120,128,-136,136,-136,144,-152,152,-152,160,-168,168,-168,176,-184,184,-184,192,-200,200,-200,208 add $0,1 mov $1,-2 bin $1,$0 mov $0,1...
// Copyright(c) 2017 POLYGONTEK // // 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 i...
// Copyright 2014 The Souper 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 ap...
lda {m1} sta $fe lda {m1}+1 sta $ff lda ($fe),y bne {la1} iny lda ($fe),y bne {la1}