text
stringlengths
1
1.05M
; A037085: Beatty sequence for Pi^2. ; Submitted by Jon Maiga ; 0,9,19,29,39,49,59,69,78,88,98,108,118,128,138,148,157,167,177,187,197,207,217,227,236,246,256,266,276,286,296,305,315,325,335,345,355,365,375,384,394,404,414,424,434,444,454,463,473,483,493 mov $1,454 mul $1,$0 div $1,46 mov $0,$1
// ----------------------------------------------------------------------------- // Copyright 2020 Patrick Näf (herzbube@herzbube.ch) // // 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 // //...
; A254628: Triangular numbers (A000217) that are also centered pentagonal numbers (A005891). ; 1,6,276,1891,88831,608856,28603266,196049701,9210162781,63127394826,2965643812176,20326825084231,954928097357851,6545174549727516,307483881705415806,2107525878187175881,99008854981046531641,678616787601720906126,3188054382001...
//////////////////////////////////////////////////////////////////////// // // This file is part of gmic-8bf, a filter plug-in module that // interfaces with G'MIC-Qt. // // Copyright (c) 2020, 2021 Nicholas Hayes // // This file is licensed under the MIT License. // See LICENSE.txt for complete licensing and attributi...
kp_pat_wait_0 EQU $095c kp_pat_wait_1 EQU $0a5f kp_pat_wait_2 EQU $0b62 kp_osc_adr_0_0 EQU $08df kp_osc_adr_0_1 EQU $09e2 kp_osc_adr_0_2 EQU $0ae5 kp_osc_adr_1_0 EQU $08e6 kp_osc_adr_1_1 EQU $...
; A006478: a(n) = a(n-1) + a(n-2) + F(n) - 1, a(0) = a(1) = 0, where F() = Fibonacci numbers A000045. ; 1,3,8,18,38,76,147,277,512,932,1676,2984,5269,9239,16104,27926,48210,82900,142055,242665,413376,702408,1190808,2014608,3401833,5734251,9650312,16216602,27213182,45608092,76345851,127656829,213230144,355817324,5932052...
; Copyright (C) 2020, Vi Grey ; 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 ; notice, this list of conditions and the f...
.MODEL SMALL .STACK 100H .DATA max2_return_val DW ? a2 DW ? b2 DW ? t0 DW ? max3_return_val DW ? a5 DW ? b5 DW ? c5 DW ? maxab5 DW ? t1 DW ? t3 DW ? max4_return_val DW ? a6 DW ? b6 DW ? c6 DW ? d6 DW ? maxabc6 DW ? t4 DW ? t6 DW ? main_return_val DW ? a7 DW ? b7 DW ? c7 DW ? d7 DW ? max7 DW ? t7 DW ? t9 DW ? t1...
; A086953: Binomial transform of (-1)^mod(n,3) (A257075). ; 1,0,0,2,6,12,22,42,84,170,342,684,1366,2730,5460,10922,21846,43692,87382,174762,349524,699050,1398102,2796204,5592406,11184810,22369620,44739242,89478486,178956972,357913942,715827882,1431655764,2863311530,5726623062 mov $1,1 mov $2,1 mov $3,1 lpb $0,1 sub ...
; void shellsort_callee(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *)) SECTION code_clib SECTION code_stdlib PUBLIC __shellsort__callee, l0__shellsort__callee EXTERN asm_shellsort __shellsort__callee: pop af pop bc pop hl pop de exx pop bc push af l0__shell...
; A258402: a(n) = (n^2 + 4*n + 6) * n^2. ; 0,11,72,243,608,1275,2376,4067,6528,9963,14600,20691,28512,38363,50568,65475,83456,104907,130248,159923,194400,234171,279752,331683,390528,456875,531336,614547,707168,809883,923400,1048451,1185792,1336203,1500488,1679475,1874016,2084987,2313288,2559843,2825600,3111531,3418632,...
/* Given an array of strings words representing an English Dictionary, return the longest word in words that can be built one character at a time by other words in words. If there is more than one possible answer, return the longest word with the smallest lexicographical order. If there is no answer, return the empty ...
#note: r40 (the exception handler) and r46 (the start of usermode code) must #be specified in hex (0xwhatever) #I just don't see any reason not to, and it makes programming the script #much nicer to deal with... #load exception handler lc r40, 0x80000050 leh r40 #enable exceptions cle #load TLB ent...
TITLE UTIL - Handle utilities NAME UTIL ; ; Microsoft Confidential ; Copyright (C) Microsoft Corporation 1991 ; All Rights Reserved. ; ;** Handle related utilities for MSDOS 2.X. ; ; pJFNFromHandle written ; SFFromHandle written ; SFFromSFN written ; JFNFree written ; SFNFree written ; ; Modification history: ; ;...
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. ...
;------------------------------------------------------------------------------ ; @file ; Emits Page Tables for 1:1 mapping of the addresses 0 - 0x8000000000 (512GB) ; ; Copyright (c) 2021, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; Linear-Address Translation to a 1-GBy...
section .data textExpectedSum db "What sum do you expect? ", 0 textNumberOne db "Enter number one: ", 0 textNumberTwo db "Enter number two: ", 0 textValidSum db "Valid!", 10, 0 section .bss numberExpectedSum resb 2 numberOne resb 2 numberTwo resb 2 section .text STD_IN equ 0x2000003 STD_OUT equ 0x2000004 SY...
; =============================================================== ; --------------------------------------------------------------- ; Subroutine to generate 1bpp decode table ; --------------------------------------------------------------- ; INPUT: ; a1 Address for the generated table ; d4 .w Pixel index for bit #...
; ; 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...
#include "OpenGLWindow.h" namespace alcube::utils { OpenGLWindow* OpenGLWindow::instance; OpenGLWindow::OpenGLWindow( unsigned int width, unsigned int height, const std::string& name ) { OpenGLWindow::instance = this; if (!glfwInit()) { std::cout << "glfwInit failed." << std::endl; ...
; subroutine for writing registers to "struct sp1_pss" ; 02.2008 aralbrec ; sinclair spectrum version SECTION code_temp_sp1 PUBLIC SP1PSPUSH ; enter : hl = & struct sp1_pss to write to ; e = flags ; b = current x coordinate (relative to bounds rect IY) ; c = current y coordinate (relative ...
; The format is 0 ; High value is 224 ; Low value is 15 db $0B,$01,$01,$03,$03,$09,$32,$30,$4E,$53,$65,$6B,$BC,$5D,$7F,$00
DATA SEGMENT MAT1 dw 0022H, 0011H, 0032H, 2142H, 0015H MAT2 dw 0032H, 0031H, 0022H, 2342H, 0215H RESMAT dw 5 dup(0) DATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA START: mov cx, 05H mov bx, cx mov ax, DATA mov ds, ax mov ax, 0000H mov si, 00H RPT: add ax, MAT1[si] ...
; ; Copyright (c) 2013 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing proje...
; A097830: Partial sums of Chebyshev sequence S(n,16) = U(n,16/2) = A077412(n). ; Submitted by Jamie Morken(s1) ; 1,17,272,4336,69105,1101345,17552416,279737312,4458244577,71052175921,1132376570160,18046972946640,287619190576081,4583860076270657,73054142029754432,1164282412399800256,18555464456367049665,295723148889472...
; A259653: a(0)=0, a(1)=1, a(n) = min{3 a(k) + (3^(n-k)-1)/2, k=0..(n-1)} for n>=2. ; 0,1,4,7,16,25,34,61,88,115,142,223,304,385,466,547,790,1033,1276,1519,1762,2005,2734,3463,4192,4921,5650,6379,7108,9295,11482,13669,15856,18043,20230,22417,24604,31165,37726,44287,50848,57409,63970,70531,77092,83653,103336,123019,1427...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x2513, %r12 nop nop nop nop nop add %r9, %r9 mov $0x6162636465666768, %r14 movq %r14, %xmm4 vmovups %ymm4, (%r12) nop and $21669, %rbp lea addresses_normal_ht+0x10913, %rsi le...
; Copyright 2021 Carl Georg Biermann ; A multitude of macros representing patches for the synth engine. ; Only a few of them will work properly. ; They are just here for test purposes and will eventually be replaced by ; patches loaded from files at runtime. ; Calling this macro loads the factory presets. ; Call thi...
;ADD MOV AX, 17h MOV BX, 20h ADD AX,BX
; A277088: Pisot sequences L(5,12), S(5,12). ; Submitted by Jon Maiga ; 5,12,29,71,174,427,1048,2573,6318,15514,38095,93544,229702,564045,1385042,3401044,8351444,20507414,50357044,123654396,303639937,745603993,1830870208,4495799044,11039673351,27108504296,66566372193,163457262657,401377990645 mov $4,2 lpb $4 mov $1,...
<% from pwnlib.shellcraft.thumb.linux import syscall %> <%page args=""/> <%docstring> Invokes the syscall getppid. See 'man 2 getppid' for more information. Arguments: </%docstring> ${syscall('SYS_getppid')}
#include <stdlib.h> /* All these programmes need to build an in-memory pool Note that this only works properly reading one pool file. Sometime I may fix it to allow the pool to be built from multiple files */ #include "Foundational/data_source/iwstring_data_source.h" #include "Foundational/iw_tdt/iw_tdt.h" #i...
SECTION code_fp_math48 PUBLIC _nan_fastcall EXTERN cm48_sdccix_nan_fastcall defc _nan_fastcall = cm48_sdccix_nan_fastcall
SECTION "Startham forest text strings", ROMX set_text_prefix StarthamForestEndOfDemo dline 0, "Thank you for" dline 1, "playing this short" dline 2, "demo of Aevilia!" dline 3, "Unfortunately this" dline 4, "is as far as it" dline 5, "goes..." dline 6, "So we must bid you" dline 7, "farewell." ...
; A239141: Number of strict partitions of n having standard deviation σ <= 1. ; 1,1,2,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2,3,2,2 bin $0,2 lpb $0 mod $0,3 add $0,1 lpe add $0,1
#include <chrono> #include "envoy/event/timer.h" #include "common/event/dispatcher_impl.h" #include "common/event/scaled_range_timer_manager.h" #include "test/mocks/common.h" #include "test/mocks/event/wrapped_dispatcher.h" #include "test/test_common/simulated_time_system.h" #include "gtest/gtest.h" namespace Envo...
; A054967: Numbers that are congruent to {0, 1, 9} mod 10. ; 0,1,9,10,11,19,20,21,29,30,31,39,40,41,49,50,51,59,60,61,69,70,71,79,80,81,89,90,91,99,100,101,109,110,111,119,120,121,129,130,131,139,140,141,149,150,151,159,160,161,169,170,171,179,180,181,189,190,191,199,200,201,209,210,211,219,220,221,229,230,231,239,240,...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x13164, %rbx clflush (%rbx) nop cmp %rdx, %rdx mov (%rbx), %r13 nop nop dec %rsi lea addresses_WC_ht+0x116ac, %rsi lea addresses_normal_ht+0x13e66, %rdi dec %rbx mov $26, %rcx rep movsw...
; A186493: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) before g(j) when f(i)=g(j), where f(i)=5i and g(j)=j-th pentagonal number. Complement of A186494. ; 2,4,6,7,9,10,11,13,14,15,17,18,19,20,22,23,24,25,27,28,29,30,31,33,34,35,36,37,38,40,41,42,43,44,45,47,48,49,50,51,52,53,55,56,57,58,59,60,61,63,64,...
; A158305: 324n^2 - 2n. ; 322,1292,2910,5176,8090,11652,15862,20720,26226,32380,39182,46632,54730,63476,72870,82912,93602,104940,116926,129560,142842,156772,171350,186576,202450,218972,236142,253960,272426,291540,311302,331712,352770,374476,396830,419832,443482,467780,492726,518320,544562,571452,598990,627176,656010,68...
; A090889: Double partial sums of (n * its dyadic valuation). ; 0,0,2,4,14,24,40,56,96,136,186,236,310,384,472,560,712,864,1034,1204,1414,1624,1856,2088,2392,2696,3026,3356,3742,4128,4544,4960,5536,6112,6722,7332,8014,8696,9416,10136,10976,11816,12698,13580 mov $10,$0 mov $12,$0 lpb $12,1 clr $0,10 mov $0,$10 su...
#include "construction.hpp" #include "../entities/entity.hpp" using namespace Icarus::Activities; using namespace Icarus::Entities; ConstructionActivity::ConstructionActivity() : Activity() { this->materials = new Inventory; }
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; SetMem.Asm ; ; Abstract: ; ; SetMem function ; ; Notes: ; ;-----------------------------------------...
; A336407: a(n) is the number of composites < n-th odd composite. ; Submitted by Jamie Morken(s2.) ; 3,7,11,14,16,20,22,25,29,32,34,37,39,43,45,48,52,54,57,60,62,65,67,69,72,76,80,83,85,87,89,91,93,96,99,101,105,107,109,111,115,117,120,122,125,128,130,133,135,139,141,143,145,149,153,155,157,159,161 mov $1,$0 seq $0,15...
; Z88 Small C+ Run Time Library ; Long functions ; ; feilipu 10/2021 SECTION code_clib SECTION code_l_sccz80 PUBLIC l_long_div_m EXTERN l_long_div_0 ;for __printf_number where LSB of modulus is required in a ;quotient = primary / secondary ;enter with secondary (divisor) in dehl, primary (divi...
%define ARCH_ARM 0 %define ARCH_MIPS 0 %define ARCH_X86 0 %define ARCH_X86_64 1 %define HAVE_EDSP 0 %define HAVE_MEDIA 0 %define HAVE_NEON 0 %define HAVE_NEON_ASM 0 %define HAVE_MIPS32 0 %define HAVE_DSPR2 0 %define HAVE_MSA 0 %define HAVE_MIPS64 0 %define HAVE_MMX 1 %define HAVE_SSE 1 %define HAVE_SSE2 1 %define HAVE_...
// https://leetcode-cn.com/problems/number-of-islands/ #include <iostream> #include <vector> #include <list> using namespace std; class Solution { public: int numIslands(vector<vector<char>>& grid) { int m = grid.size(); if (m <= 0) return 0; int n = grid.front().size(); if (n <= 0) return 0; int c = 0; f...
; A016137: Expansion of 1/((1-3x)(1-6x)). ; 1,9,63,405,2511,15309,92583,557685,3352671,20135709,120873303,725416965,4353033231,26119793709,156723545223,940355620245,5642176768191,33853189749309,203119525916343,1218718317759525 add $0,1 mov $1,3 pow $1,$0 mov $2,6 pow $2,$0 sub $2,$1 mov $0,$2 mul $0,4 div $0,12
ori $ra,$ra,0xf div $2,$ra mtlo $1 divu $5,$ra addiu $3,$3,-17031 ori $5,$2,22721 sll $4,$1,22 mflo $5 sb $5,7($0) mflo $5 mtlo $5 ori $5,$4,2822 addu $4,$2,$3 sll $1,$1,19 srav $5,$4,$2 sb $4,6($0) srav $4,$4,$4 addu $4,$4,$5 addu $4,$5,$4 addu $1,$3,$3 divu $5,$ra lb $2,12($0) multu $6,$2 lb $5,0($0) mflo $4 div $1,$...
; A105076: Numbers k such that 60*k^2 + 60*k + 1 is a square. ; Submitted by Christian Krause ; 0,1,2,11,19,90,153,712,1208,5609,9514,44163,74907,347698,589745,2737424,4643056,21551697,36554706,169676155,287794595,1335857546,2265802057,10517184216,17838621864,82801616185,140443172858,651895745267 mov $3,1 lpb $0 sub...
; A019685: Decimal expansion of Pi/180. ; Submitted by Jamie Morken(s3.) ; 0,1,7,4,5,3,2,9,2,5,1,9,9,4,3,2,9,5,7,6,9,2,3,6,9,0,7,6,8,4,8,8,6,1,2,7,1,3,4,4,2,8,7,1,8,8,8,5,4,1,7,2,5,4,5,6,0,9,7,1,9,1,4,4,0,1,7,1,0,0,9,1,1,4,6,0,3,4,4,9,4,4,3,6,8,2,2,4,1,5,6,9,6,3,4,5,0,9,4,8 mov $2,1 mov $3,$0 mul $3,5 lpb $3 mul $1,...
; A267031: a(n) = (32*n^3 - 2*n)/3. ; 0,10,84,286,680,1330,2300,3654,5456,7770,10660,14190,18424,23426,29260,35990,43680,52394,62196,73150,85320,98770,113564,129766,147440,166650,187460,209934,234136,260130,287980,317750,349504,383306,419220,457310,497640,540274,585276,632710,682640,735130,790244,848046,908600,971970,1...
#include <evoscript/Object.h> #include <evoscript/AbstractOperations.h> #include <evoscript/EscapeSequences.h> #include <evoscript/Runtime.h> #include <evoscript/objects/Exception.h> #include <evoscript/objects/NativeFunction.h> namespace evo::script { ClassWrapper::ClassWrapper() : Class("ClassWrapper") { defin...
; A317323: Multiples of 23 and odd numbers interleaved. ; 0,1,23,3,46,5,69,7,92,9,115,11,138,13,161,15,184,17,207,19,230,21,253,23,276,25,299,27,322,29,345,31,368,33,391,35,414,37,437,39,460,41,483,43,506,45,529,47,552,49,575,51,598,53,621,55,644,57,667,59,690,61,713,63,736,65,759,67,782,69,805,71,828,73,851,75,874,77,...
message db '1+2+3+...+1000=' data dw 0x00, 0x00 ;save sum start: mov ax, 0x7c0 ;Data segment Address mov ds, ax mov ax, 0xb800 ;Video Memory Address mov es, ax ;print string message mov si, message mov di, 0 mov cx, data - message l1: ...
; Draw a rectangular block 16 bit colour v2.00  1998 Tony Tebby ; ; 2.02 (c) W. Lenerz 2016 Oct 23 ; ; The block size and origin are assumed to have been adjusted for ; correct position within the area to be set. ; ; Registers: ; Entry Exit ; D0 smashed ; D1 block size smashed ; D2 block origin smashed ;...
////////////////////////////////////////////////////////////////////////////// // astro_starfield_data.asm // Copyright(c) 2021 Neal Smith. // License: MIT. See LICENSE file in root directory. ////////////////////////////////////////////////////////////////////////////// // data for the starfield effect #importonce #...
#include <boost/fusion/include/reverse_fold.hpp>
// --- // id : 1076 // title : Forwards on Weibo // difficulty : Hard // score : 30 // tag : TODO // keyword : TODO // status : AC // from : PAT (Advanced Level) Practice // --- // --- // id : A1076 // title : Forwards on Weibo // difficulty : Hard // score : 30 ...
; A065424: Catalan-like formula: a(n) = binomial(6m, 3m+1)/(9m+6). ; Submitted by Jon Maiga ; 1,33,1326,59432,2851425,143291610,7446255180,396893583792,21579377870484,1192183281903845,66734212415276406,3776778437640143208,215744630060724034270,12423227699242323077940,720356761939547257421400,42024927437494196952957408,...
; A099076: a(n) = A000960(n) mod 3. ; 1,0,1,1,1,0,0,1,0,1,1,1,1,0,1,0,1,1,1,1,1,0,0,0,1,1,0,1,1,1,1,0,0,0,1,1,1,1,1,1,1,0,1,1,1,1,0,1,0,1,1,1,0,1,0,1,1,0,0,0,0,1,0,1,0,1,1,1,0,1,1,0,0,1,0,1,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,1,1,0,1,1,1,1,1,1,1,1,1,1,0 cal $0,960 ; Flavius Josephus's sieve: Start with the natural numbers; ...
; A154277: a(n) = 81*n^2 - 72*n + 17. ; 17,26,197,530,1025,1682,2501,3482,4625,5930,7397,9026,10817,12770,14885,17162,19601,22202,24965,27890,30977,34226,37637,41210,44945,48842,52901,57122,61505,66050,70757,75626,80657,85850,91205,96722,102401,108242,114245,120410,126737,133226,139877,146690,153665,160802,168101,17556...
; Initialize the stack pointer and the base pointer MOV XL, 0xFF MOV XH, 0xFF MOV SP, X MOV XL, 0 MOV XH, 0 MOV BP, X MOV D, 10100000b ; Carry is 1 SHL D PUSHF POP E ; Write register E to the Output Port OUTB E ; Carry is 0 SHL D PUSHF POP F ; Write register F to the Output Port OUTB F ; Carry is 1 SHL D PUSHF PO...
//rotating calipers // Calculate the maximum distance of a point set. double rotate_caliper() { p[0] = p[n]; int to = 0; double ans = 0; for (int i = 0; i < n; ++i) { while ((to + 1) % n != i) { if (dblcmp(cross(p[i + 1] - p[i], p[to + 1] - p[i]) - cross(p[i + 1] - p[i], p[to] - p[i])) >= 0) to = (to...
// main.cpp - Testing the FindArray subroutine. #include <stdlib.h> #include <iostream.h> #include "findarr.h" int main() { const unsigned ARRAY_SIZE = 10000; long array[ARRAY_SIZE]; // Fill the array with pseudorandom integers. for(unsigned i = 0; i < ARRAY_SIZE; i++) { array[i] = rand(); // cout <...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r9 push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x869f, %rsi lea addresses_normal_ht+0x9f7b, %rdi clflush (%rsi) nop nop xor $51366, %rbp mov $49, %rcx rep movsw nop nop add %rsi, %rsi lea addresses_UC_ht+0xa7bb, %r11 and $20582, %r9 ...
; void *p_forward_list_insert_after_callee(void *list_item, void *item) SECTION code_adt_p_forward_list PUBLIC _p_forward_list_insert_after_callee _p_forward_list_insert_after_callee: pop af pop hl pop de push af INCLUDE "adt/p_forward_list/z80/asm_p_forward_list_insert_after.asm"
#include "Move.h" Move::Move(void) { } Move::~Move(void) { } /*int Move::makeMove(const int from, const int to) { return from | (to << SHIFT_TO); }*/ // returns pgn alike string representation of the move - not full pgn format because then more information is needed void Move::toDbgString(const int move, char* b...
// 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 "base/task/task_scheduler/task_scheduler_impl.h" #include <stddef.h> #include <string> #include <utility> #include <vector> #include "base/bin...
############################################################################### # 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...
; A307559: a(n) = floor(n/3)*(n - floor(n/3))*(n - floor(n/3) - 1). ; 0,0,2,6,12,24,40,60,90,126,168,224,288,360,450,550,660,792,936,1092,1274,1470,1680,1920,2176,2448,2754,3078,3420,3800,4200,4620,5082,5566,6072,6624,7200,7800,8450,9126,9828,10584,11368,12180,13050,13950,14880,15872 lpb $0,1 sub $0,1 add $2,5 a...
.segment "CODE" ; typed by hand ; 8 bytes per metatile = 4 tiles ; 2 bytes per tile, tile # then attributes (palette) Metatiles: ;tile 0 .byte $02, TILE_PAL_0 .byte $03, TILE_PAL_0 .byte $12, TILE_PAL_0 .byte $13, TILE_PAL_0 ;tile 1 .byte $04, TILE_PAL_1 .byte $05, TILE_PAL_1 .byte $14, TILE_PAL_1 .byte $15, TILE_PAL_...
; A189960: Decimal expansion of (9+27*sqrt(2))/17. ; Submitted by Christian Krause ; 2,7,7,5,5,1,5,6,5,7,8,8,6,6,8,0,3,7,1,6,2,6,2,1,1,5,0,3,1,5,6,5,7,9,3,0,1,2,5,7,7,1,4,1,5,5,0,1,0,4,4,6,9,3,9,7,5,1,1,9,7,2,3,0,9,2,6,4,5,7,4,6,5,7,9,2,7,5,8,2,3,8,1,7,4,1,4,4,9,0,7,4,6,1,5,4,8,3,8,0 bin $1,$0 mov $2,2 mov $3,$0 mul $...
/* * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "...
; A313753: Coordination sequence Gal.6.253.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. ; 1,5,10,15,20,26,32,38,43,48,53,58,63,68,73,78,84,90,96,101,106,111,116,121,126,131,136,142,148,154,159,164,169,174,179,184,189,194,200,206,2...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x16933, %rsi lea addresses_normal_ht+0xa3af, %rdi nop and $14819, %r11 mov $97, %rcx rep movsw nop nop nop nop nop xor $21118, %r8 lea addresses_A_ht+0xb8ef, %rsi lea addr...
_echo: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 e4 f0 and $0xfffffff0,%esp 6: 57 ...
include aasyslib.i CGROUP group code code segment dword 'CODE' assume cs:CGROUP,ds:CGROUP SYSLIB_JUMP pj_ioerr sysl_pj_ioerr code ends end
; CALLER linkage for function pointers SECTION code_temp_sp1 PUBLIC sp1_Initialize EXTERN asm_sp1_Initialize sp1_Initialize: ld hl,6 add hl,sp ld a,(hl) dec hl dec hl ld d,(hl) dec hl dec hl ld e,(hl) ex de,hl jp asm_sp1_Initialize
/* * Copyright (c) 2016-2018 ARM Limited. * * SPDX-License-Identifier: MIT * * 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 * ri...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r9 push %rbx push %rcx lea addresses_normal_ht+0x15f29, %r9 mfence movb (%r9), %bl nop nop xor %rcx, %rcx pop %rcx pop %rbx pop %r9 pop %r12 ret .global s_faulty_load s_faulty_load: push %r14 push %r8 push %rax push %rbp push %rbx push %rcx push %rdi pus...
dc.w byte_269F0-Ani_LBZUnusedUnknown_2 byte_269F0: dc.b $B, 0, 1, 2, 1, 0, 3, 4, 3, $FF even
Name: zel_play.asm Type: file Size: 356132 Last-Modified: '2016-05-13T04:25:37Z' SHA-1: C5BF521676B3C71D20F38DA7636698EAD5C87EF0 Description: null
; A178631: a(n) = 27 * ((10^n - 1)/9)^2. ; 27,3267,332667,33326667,3333266667,333332666667,33333326666667,3333333266666667,333333332666666667,33333333326666666667,3333333333266666666667,333333333332666666666667,33333333333326666666666667,3333333333333266666666666667,333333333333332666666666666667,3333333333333332666666...
; int fputs(const char *s, FILE *stream) INCLUDE "clib_cfg.asm" SECTION code_clib SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _fputs EXTERN asm_fputs _fputs: pop af pop hl pop ix push hl push hl push af jp...
; Floating point package extract from the DAI machine ; ; Labels taken from the DAI firmware disassembly ; ; MODULE math_dai32 GLOBAL xget GLOBAL xfmul GLOBAL xfdiv GLOBAL xload GLOBAL xsave GLOBAL xfabs GLOBAL xfchs GLOBAL xfrac ...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x66d3, %rcx nop nop nop nop add $25450, %rbx mov $0x6162636465666768, %rax movq %rax, %xmm4 vmovups %ymm4, (%rcx) nop nop nop xor %rbp, %rbp lea addresses_normal_ht+0xb733, %...
%ifdef CONFIG { "RegData": { "RAX": "0x4142434491514748", "RBX": "0x51525354155595D6", "RCX": "0x195999DA185898D9" }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0x4142434445464748 mov [rdx + 8 * 0], rax mov rax, 0x5152535455565758 mov [rdx + 8 * 1], rax mo...
/// \file ParamGeneration.cpp /// /// \brief Parameter manipulation routines for the Zerocoin cryptographic /// components. /// /// \author Ian Miers, Christina Garman and Matthew Green /// \date June 2013 /// /// \copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green ...
#include "types.h" /* * --INFO-- * Address: ........ * Size: 00009C */ void _Error(char*, ...) { // UNUSED FUNCTION } /* * --INFO-- * Address: ........ * Size: 0000F4 */ void _Print(char*, ...) { // UNUSED FUNCTION } /* * --INFO-- * Address: 8017AD44 * Size: 000020 */ CoreNucleusAi::CoreNucleusAi(CoreN...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x12ce1, %r15 nop nop sub $39297, %r8 movl $0x61626364, (%r15) nop cmp $24396, %r13 lea addresses_normal_ht+0x1abd, %rbp nop inc %r11 mov $0x6162636465666768, %r15 movq %r15, (...
SECTION code_fp_math48 PUBLIC asm_dconst_inf, asm_dconst_pinf, asm_dconst_minf EXTERN am48_dconst_inf, am48_dconst_pinf, am48_dconst_minf defc asm_dconst_inf = am48_dconst_inf defc asm_dconst_pinf = am48_dconst_pinf defc asm_dconst_minf = am48_dconst_minf
; CALLER linkage for function pointers XLIB rindex LIB strrchr_callee XREF ASMDISP_STRRCHR_CALLEE .rindex pop hl pop bc pop de push de push bc push hl jp strrchr_callee + ASMDISP_STRRCHR_CALLEE
create_player_box: ; SI = top line, BX = center line clr ax clr cx clr dx call os_temp_box mov ax, 0920h mov bx, 87h mov cx, 40 int 10h ret draw_progress_bar: ; EAX = current position, EBX = total pushad mov16 dx, 20, 14 call os_move_cursor clr edx mov ecx, 80 mul ecx div ebx cmp ax, [.lastval...
; A156812: a(n) = 225*n^2 - 199*n + 44. ; 44,70,546,1472,2848,4674,6950,9676,12852,16478,20554,25080,30056,35482,41358,47684,54460,61686,69362,77488,86064,95090,104566,114492,124868,135694,146970,158696,170872,183498,196574,210100,224076,238502,253378,268704,284480,300706,317382,334508,352084,370110,388586,407512,42688...
.text .align 2 .thumb .equ NUM_SPECIES, 1263 .equ EVOS_PER_MON, 5 .equ FINAL_DEX_ENTRY, 899 @;.equ SEEN_DEX_FLAGS, 0x202583C @;.equ CAUGHT_DEX_FLAGS, (SEEN_DEX_FLAGS + (FINAL_DEX_ENTRY / 8) + 1) @@Fix Num Evolutions@@ .org 0x4598A, 0xFF mov r5, #EVOS_PER_MON * 8 mov r3, r12 add r3, #EVOS_PER_MON * 8 @@Fix Egg Hatch...
;Test D ;separator is spa 20h ;terminator is cret 0dh mscore equ 100 ;macro for output optstr macro ostr push ax mov dx,offset ostr mov ah,09h int 21h pop ax endm optnum macro onum push ax mov dl,onum mov ah,02h int 21h pop ax endm data segment buff db 80h db 0 db 80h dup(0) flag db 0 ...
;<Square Root Using Look Up Table> LDA VALUE MVI C,0 LXI H,TABLE LOOP: MOV B,M CMP B JZ DONE JC NEXT INX H INR C JMP LOOP NEXT: DCR C DONE: MOV A,C STA RESULT HLT VALUE: db 08 RESULT: db 0 TABLE: db 00,01,04,09,16,25,36,49,64,81,100
PROCESSOR 68HC11 TEST ; 00 - 68HC11 NOP ; 01 IDIV ; 02 - 68HC11 FDIV ; 03 - 68HC11 LSRD ; 04 - 68HC11 6801 6303 ASLD ; 05 - 68HC11 6801 6303 TAP ; 06 TPA ; 07 INX ; 08 DEX ; 09 CLV ; 0A SEV ; 0B CLC ; 0C SEC ; 0D CLI ; 0E SEI ; 0F SBA ; 10 CBA ; 11 BRSET $44 $42...
////////////////////////////////////////////////////////////////////////////// /// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand /// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI /// /// Distributed under the Boost Software License, Version 1.0 /// ...