text
stringlengths
1
1.05M
; By Zikai Liu ; This program does the following things: ; 1. Initialize the fixed-length field of schedule at x3800. ; 2. Translates the event list starting at x4000 into the fixed-length field ; of schedule at x3800. If any invalid slot numbers or conflict is ; detected, print the error message and HAL...
; A229593: Number of boomerang patterns appearing in n X n coins, rotation not allowed. ; 0,2,3,4,10,12,14,24,27,30,44,48,52,70,75,80,102,108,114,140,147,154,184,192,200,234,243,252,290,300,310,352,363,374,420,432,444,494,507,520,574,588,602,660,675,690,752,768,784,850,867,884,954,972,990,1064,1083,1102,1180,1200,1220,...
#include "ChangeFloatValueAction.h" #include <Engine/Core/AssetLibrary/AssetLibrary.h> #include <Engine/Core/Trigger/Trigger.h> ChangeFloatValueAction::ChangeFloatValueAction(void) {} ChangeFloatValueAction::ChangeFloatValueAction(int32 _type): AbstractAction(_type), argValue(0.0f) {} ChangeFloatValueAction::~Ch...
COMMENT @--------------------------------------------------------------------- Copyright (c) GeoWorks 1991 -- All rights reserved PROJECT: Peanut command MODULE: -- FILE: amateurMain AUTHOR: Chris Boyke ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description...
SECTION code_fp_math48 PUBLIC _acos_fastcall EXTERN cm48_sdccix_acos_fastcall defc _acos_fastcall = cm48_sdccix_acos_fastcall
.constant_pool .const 0 string [a] .const 1 string [x] .const 2 string [set_x] .const 3 string [value] .const 4 string [start] .const 5 string [constructor] .const 6 string [e] .const 7 string [on_property_changed] .const 8 string [alterado] .const 9 int [12] .const...
db PONYTA ; 077 db 50, 85, 55, 90, 65, 65 ; hp atk def spd sat sdf db FIRE, FIRE ; type db 190 ; catch rate db 152 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/ponyta/front.dimensions" ...
; ; ANSI Video handling for the Philips VG-5000 ; ; set it up with: ; .text_cols = max columns ; .text_rows = max rows ; ; Display a char in location (ansi_ROW),(ansi_COLUMN) ; A=char to display ; ; Stefano Bodrato - 2014 ; ; ; $Id: f_ansi_char.asm,v 1.4 2016-06-12 16:06:43 dom Exp $ ; SECTION code_clib PUBL...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1988-1996 All Rights Reserved. GEOWORKS CONFIDENTIAL PROJECT: GEOS MODULE: CommonUI/CView FILE: cviewScrollbar.asm ROUTINES: Name Description ---- ----------- INT SwapIfHorizontal Swaps cx a...
; A144773: 10-fold factorials: Product_{k=0..n-1} (10*k+1). ; 1,1,11,231,7161,293601,14973651,913392711,64850882481,5252921480961,478015854767451,48279601331512551,5359035747797893161,648443325483545072481,84946075638344404495011,11977396665006561033796551,1808586896415990716103279201,291182490322974505292627951361,497...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_UC_ht+0x75ab, %r15 clflush (%r15) nop nop add %r9, %r9 movl $0x61626364, (%r15) nop nop cmp $498, %r11 lea addresses_D_ht+0x2a0e, %rsi lea addresses_A_ht+0x17e4e, %rdi xor %r8, %r8 mo...
;5.asm .orig x3000 ADD R0, R0, #0; NOT R0, R0; ADD R0, R0,#-2; RSHFL R1, R0, #1; halt .END
// push constant 0 @0 D=A @SP A=M M=D @SP M=M+1 // if-goto FDFD @SP AM=M-1 D=M @$FDFD D;JGT // push constant 1 @1 D=A @SP A=M M=D @SP M=M+1 // label FDFD ($FDFD) // push constant 2 @2 D=A @SP A=M M=D @SP M=M+1 // label EF ($EF) // goto EF @$EF 0;JMP
; A164550: a(n) = 6*a(n-1)-3*a(n-2) for n > 1; a(0) = 1, a(1) = 7. ; 1,7,39,213,1161,6327,34479,187893,1023921,5579847,30407319,165704373,903004281,4920912567,26816462559,146136037653,796366838241,4339792916487,23649656984199,128878563155733,702322407981801 mov $1,1 mov $2,1 lpb $0 sub $0,1 mov $3,3 add $3,$1 ...
; A177107: 3*(10^n-7). ; 9,279,2979,29979,299979,2999979,29999979,299999979,2999999979,29999999979,299999999979,2999999999979,29999999999979,299999999999979,2999999999999979,29999999999999979,299999999999999979 add $0,1 mov $1,10 pow $1,$0 sub $1,6 mul $1,4 div $1,12 mul $1,9 mov $0,$1
; A237617: a(n) = n*(n + 1)*(17*n - 14)/6. ; Submitted by Jamie Morken(s1.) ; 0,1,20,74,180,355,616,980,1464,2085,2860,3806,4940,6279,7840,9640,11696,14025,16644,19570,22820,26411,30360,34684,39400,44525,50076,56070,62524,69455,76880,84816,93280,102289,111860,122010,132756,144115,156104,168740,182040,196021,210700,2260...
/* * Copyright (c) 2016 Clyde Stanfield * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, pub...
; A089109: Convoluted convolved Fibonacci numbers G_5^(r). ; 5,9,17,25,38,51,70,89,115,141,175,209,252,295,348,401,465,529,605,681,770,859,962,1065,1183,1301,1435,1569,1720,1871,2040,2209,2397,2585,2793,3001,3230,3459,3710,3961,4235,4509,4807,5105,5428,5751,6100,6449 mov $3,$0 add $0,2 mov $2,$0 mov $4,2 lpb $2,1 su...
/* * nghttp2 - HTTP/2 C Library * * Copyright (c) 2014 Tatsuhiro Tsujikawa * * 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...
; A227842: First differences of A014817. ; 1,2,3,2,4,5,6,5,5,8,9,6,10,11,12,7,13,12,15,12,14,17,18,13,15,20,19,16,22,21,24,17,21,26,27,18,26,29,28,21,29,28,33,28,30,33,36,27,31,34,35,32,38,39,40,31,37,42,45,32,44,45,46,33,45,44,49,44,46,51,52,37,49,56,49,48,54,53,60,47 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 ...
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); y...
;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-; ; "64K RAM Ought to be enough" - Part 1 ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-; ; Pungas de Villa Martelli - http://pungas.space ; ; code: riq (http://retro.moe) ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=...
n_linha EQU 10 MOV CX, n_linha ;0=repete 2^16 R1: MOV AH,1 INT 21H LOOP R1
; A089013: a(n) = (A088567(8n) mod 2). ; 1,0,0,1,0,0,1,1,0,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,1,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,0,0,1,1,1,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,0,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,1,0,0,1,1,0,1,1,1,0,0,1,0,0,1,1,0,0,0,1 mov $3,1 lpb $3 mul $0,2 mov $1,1 mov $2,$0 sub $3,1 ...
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC/GEOS MODULE: Standalone Driver FILE: resident.asm REVISION HISTORY: Name Date Description ---- ---- ----------- Eric 2/92 Initial version Eric 8/92 P...
// Copyright (c) 2009-2014 Bitcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" // for pwalletMain #include "bitcoinrpc.h" #include "ui_interface.h" #include "base58.h" #include <boost/lexica...
%include "defines.inc" section .data achar db '0' section .text global _start _start: call display sys_exit display: mov ecx, 256 next: push ecx ; back to stack ; show current char in ascii encoding sys_call SYS_WRITE, STDOUT, achar, 1 ; sys stdout macros pop ecx ; ...
; ; ZX Spectrum OPUS DISCOVERY specific routines ; ; Stefano Bodrato - Jun. 2006 ; ; int opus_getblocksize (int drive); ; ; $Id: opus_getblocksize.asm,v 1.1 2007/10/04 12:18:56 stefano Exp $ ; XLIB opus_getblocksize LIB opus_rommap XREF P_DEVICE opus_getblocksize: call opus_rommap ld ix,2 add ...
SECTION code_clib SECTION code_stdio PUBLIC __stdio_scanf_u EXTERN __stdio_scanf_sm_decimal, __stdio_scanf_number_head EXTERN l_inc_sp, asm__strtou, __stdio_scanf_number_tail_int __stdio_scanf_u: ; %u converter called from vfscanf() ; ; enter : ix = FILE * ; de = void *buffer ; bc = ...
; A235136: a(n) = (2*n - 1) * a(n-2) for n>1, a(0) = a(1) = 1. ; 1,1,3,5,21,45,231,585,3465,9945,65835,208845,1514205,5221125,40883535,151412625,1267389585,4996616625,44358635475,184874815125,1729986783525,7579867420125,74389431691575,341094033905625,3496303289504025,16713607661375625,178311467764705275,885821206052908...
/*! * Copyright (c) 2014 by Contributors * \file allreduce_base.cc * \brief Basic implementation of AllReduce * * \author Tianqi Chen, Ignacio Cano, Tianyi Zhou */ #define NOMINMAX #include "rabit/base.h" #include "rabit/internal/rabit-inl.h" #include "allreduce_base.h" #ifndef _WIN32 #include <netinet/tcp.h> #...
; A314244: Coordination sequence Gal.6.644.2 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,11,17,23,29,33,39,45,51,57,62,67,73,79,85,91,95,101,107,113,119,124,129,135,141,147,153,157,163,169,175,181,186,191,197,203,209,215,219,...
// S-CPU-A hardware DMA bug test // ============================= // // Copyright (c) 2021, Marcus Rowe <undisbeliever@gmail.com>. // Distributed under The MIT License: https://opensource.org/licenses/MIT define mChannel = 0 define hChannel = 1 include "dma-test.inc" variable sv_counter = 0 macro sv() { db s...
// Copyright (c) 2018 Microsoft Corporation // Licensed under the MIT license. // Author: Paul Koch <code@koch.ninja> // !! To add a new loss/objective function in C++ follow the steps at the top of the "loss_registrations.hpp" file !! // LossRegressionMse is a VERY VERY special Loss function. // Anyone writing a c...
org 0x100 cpu 8086 xor ax,ax mov ds,ax mov byte[0x485],16 ; Request 25 line mode ret
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_A_ht+0xbc4d, %rax nop xor $32382, %rcx mov (%rax), %r14w sub %rsi, %rsi lea addresses_normal_ht+0x148dd, %rax clflush (%rax) nop nop xor $37981, %r9 movb (%rax), %cl and $15003, %rax ...
; void *p_list_push_front(p_list_t *list, void *item) SECTION code_clib SECTION code_adt_p_list PUBLIC p_list_push_front_callee EXTERN asm_p_list_push_front p_list_push_front_callee: pop hl pop de ex (sp),hl jp asm_p_list_push_front ; SDCC bridge for Classic IF __CLASSIC PUBLIC _p_list_push_front...
# ORG 8000 MVI A,72 MOV B,A MVI A,FF SUB B HLT
; General heap allocatiion v0.01  Apr 1988 J.R.Oakley QJUMP section gen_util include 'dev8_keys_qdos_sms' xdef gu_achp0 xdef gu_achpj xdef gu_achpp ;+++ ; Allocate heap permanently, preserving register contents. ; ; Registers: ; Entr...
; A309878: The real part of b(n) where b(n) = (n + b(n-1)) * (1 + i) with b(-1)=0; i = sqrt(-1). ; 0,1,2,1,-4,-13,-22,-23,-8,23,54,53,-12,-141,-270,-271,-16,495,1006,1005,-20,-2069,-4118,-4119,-24,8167,16358,16357,-28,-32797,-65566,-65567,-32,131039,262110,262109,-36,-524325,-1048614,-1048615,-40,2097111,4194262,419426...
// config_migrate.cpp /** * Copyright (C) 2008 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that i...
; A021144: Expansion of 1/((1-x)(1-2x)(1-5x)(1-10x)). ; Submitted by Jon Maiga ; 1,18,227,2520,26481,271278,2745247,27615060,276964061,2773708938,27757433067,277676053200,2777269152841,27775234648998,277765062125687,2777714199500940,27777459886360821,277776188320627458,2777769830491895107,27777738041348102280,277777579...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="pid, param"/> <%docstring> Invokes the syscall sched_setparam. See 'man 2 sched_setparam' for more information. Arguments: pid(pid_t): pid param(sched_param): param </%docstring> ${syscall('SYS_sched_setparam', pid, param)}
.class fib_20:Obj .method $constructor .local n1,n2,next,x enter load n1 const 0 load n1 const 0 store n1 load n2 const 1 load n2 const 1 store n2 load next const 0 load next const 0 store next load x const 0 load x const 0 store x ...
#pragma once #include <bits/stdc++.h> #pragma region modint template <uint32_t mod> class modint{ uint64_t value; public: constexpr modint(const int64_t x=0) noexcept: value(x % mod + (x < 0 ? mod : 0)){ } constexpr explicit operator uint64_t() const noexcept{ return value; } constexpr modint inverse()...
; A061650: a(n) = n*20^(n-1). ; 1,40,1200,32000,800000,19200000,448000000,10240000000,230400000000,5120000000000,112640000000000,2457600000000000,53248000000000000,1146880000000000000,24576000000000000000,524288000000000000000,11141120000000000000000,235929600000000000000000,4980736000000000000000000,104857600000000000...
dnl x86-64 mpn_addmul_1 and mpn_submul_1, optimized for "Core 2". dnl Copyright 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser G...
; ; Copyright (C) 2015-2016 Intel Corporation. ; SPDX-License-Identifier: MIT ; include asm_macros.inc PROLOGUE .code PUBLIC foo foo PROC BEGIN_STACK_FRAME END_STACK_FRAME call GAX_REG foo ENDP BYTE 0h PUBLIC bar bar PROC BEGIN...
; A022775: Place where n-th 1 occurs in A007336. ; 1,3,6,11,17,25,34,44,56,69,84,100,117,136,156,178,201,226,252,279,308,338,370,403,437,473,510,549,589,631,674,718,764,811,860,910,961,1014,1068,1124,1181,1239,1299,1360,1423,1487,1553,1620,1688 mov $18,$0 mov $20,$0 add $20,1 lpb $20,1 clr $0,18 mov $0,$18 sub $...
#include "Entity.h" #include "GlobalVars.h" #include "LocalPlayer.h" #include "UserCmd.h" float GlobalVars::serverTime(UserCmd* cmd) noexcept { static int tick; static UserCmd* lastCmd; if (cmd) { if (localPlayer && (!lastCmd || lastCmd->hasbeenpredicted)) tick = localPlayer->tickBase(...
; ; Copyright (c) 2010 The VP8 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 projec...
section .text global set_gdt set_gdt: cli mov eax, [esp+4] lgdt [eax] ret
; ================================================================================================== ; === RENDER CURRENT VIEW ; ================================================================================================== m6_render: ; This routine draws the 3D view of the map into the viewport buffer. It ta...
; A133818: a(n) = (8*n+3)*(8*n+5)*(8*n+7)*(8*n+9). ; Submitted by Christian Krause ; 945,36465,229425,801009,2070705,4456305,8473905,14737905,23961009,36954225,54626865,77986545,108139185,146289009,193738545,251888625,322238385,406385265,506025009,622951665,759057585,916333425,1096868145 add $0,1 mul $0,2 bin $0,2 mov...
#include "PCH.h" #include "OpenGLRendererAPI.h" #include <glad/glad.h> namespace GE { void OpenGLRendererAPI::Init() { GS_PROFILE_FUNCTION(); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_DEPTH_TEST); } void OpenGLRendererAPI::SetClearColor(const glm::vec4& color) ...
; A094913: Maximal number of distinct nonempty substrings of any binary string of length n. ; 0,1,3,5,8,12,16,21,27,34,42,50,59,69,80,92,105,119,134,150,166,183,201,220,240,261,283,306,330 lpb $0,1 sub $0,1 add $1,1 add $2,$1 mul $1,2 trn $2,$0 lpe sub $1,$2
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_array_delete_class_52b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_array_delete.label.xml Template File: sources-sinks-52b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory ...
.data a: 70 80 40 20 10 30 50 60 n: 8 .text main: load %x0, $n, %x4 ; x4 = n subi %x0, 0, %x10 ; x10 = 0 addi %x10, 0, %x5 ; x5 = x10 (i.e. j = i) j is inner loop, i is outer loop loop: beq %x10, %x4, moveOut ; if x4 == x10 (ie. n = i), end prog load %x10, $a, %x11 ; x11 = a[x10] (ie. x11 = a[i]) l...
; A047370: Numbers that are congruent to {2, 3, 5} mod 7. ; Submitted by Christian Krause ; 2,3,5,9,10,12,16,17,19,23,24,26,30,31,33,37,38,40,44,45,47,51,52,54,58,59,61,65,66,68,72,73,75,79,80,82,86,87,89,93,94,96,100,101,103,107,108,110,114,115,117,121,122,124,128,129,131,135,136,138,142,143,145,149,150,152,156,157,15...
;β–‘β–ˆβ–„β–€β–’β–ˆβ–ˆβ–€β–’β–ˆβ–€β–„β–‘β–ˆβ–„β–‘β–ˆβ–’β–„β–€β–„β–‘β–ˆβ–’β–‘β–‘β–‘β–’β–ˆβ–€β–„β–‘β–„β–€β–„β–‘β–ˆβ–’β–ˆβ–‘β–€β–ˆβ–€β–‘β–ˆβ–‘β–ˆβ–„β–‘β–ˆβ–’β–ˆβ–ˆβ–€β–‘β–„β–€β–€ ;β–‘β–ˆβ–’β–ˆβ–‘β–ˆβ–„β–„β–‘β–ˆβ–€β–„β–‘β–ˆβ–’β–€β–ˆβ–‘β–ˆβ–€β–ˆβ–’β–ˆβ–„β–„β–’β–‘β–‘β–ˆβ–€β–„β–‘β–€β–„β–€β–‘β–€β–„β–ˆβ–‘β–’β–ˆβ–’β–‘β–ˆβ–‘β–ˆβ–’β–€β–ˆβ–‘β–ˆβ–„β–„β–’β–„β–ˆβ–ˆ ;******************************************************************************* ;Kernal Routines - Modify as needed to save ram ;**********************************************************************...
; A198973: 8*10^n-1. ; 7,79,799,7999,79999,799999,7999999,79999999,799999999,7999999999,79999999999,799999999999,7999999999999,79999999999999,799999999999999,7999999999999999,79999999999999999,799999999999999999,7999999999999999999,79999999999999999999,799999999999999999999,7999999999999999999999,7999999999999999999999...
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld b, 91 call lwaitly_b ld a, b1 ldff(40), a ld a, 07 ldff(4b), a ld c, 41 ld b, 03 lbegin_waitm3: ldff a, (c) and a, b cmp a, b jrnz lbegin_waitm3 ld a, 20 ldff(c), a xor a, a ldff(0f), a l...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/api/braille_display_private/brlapi_connection.h" #include <errno.h> #include "base/macros.h" #include "base/message_...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft import six %> <%docstring>setregid32(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str Invokes the syscall setregid32. See 'man 2 setregid32' for more information. Arguments: vararg(int): vararg Returns: long </%d...
; A141468: Zero together with the nonprime numbers A018252. ; 0,1,4,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26,27,28,30,32,33,34,35,36,38,39,40,42,44,45,46,48,49,50,51,52,54,55,56,57,58,60,62,63,64,65,66,68,69,70,72,74,75,76,77,78,80,81,82,84,85,86,87,88,90,91,92,93,94,95,96,98,99,100,102,104,105,106,108,110,111,112,114...
db DEX_DRAGONITE ; pokedex id db 91, 134, 95, 80, 100 ; hp atk def spd spc db DRAGON, FLYING ; type db 45 ; catch rate db 218 ; base exp INCBIN "gfx/pokemon/front/dragonite.pic", 0, 1 ; sprite dimensions dw DragonitePicFront, DragonitePicBack db WRAP, LEER, THUNDER_WAVE, AGILITY ; level 1 learnset...
; A022264: a(n) = n*(7*n - 1)/2. ; 0,3,13,30,54,85,123,168,220,279,345,418,498,585,679,780,888,1003,1125,1254,1390,1533,1683,1840,2004,2175,2353,2538,2730,2929,3135,3348,3568,3795,4029,4270,4518,4773,5035,5304,5580,5863,6153,6450,6754,7065,7383,7708,8040,8379,8725,9078,9438,9805,10179,10560,10948,11343,11745,12154,1257...
b Lmain L0: sw $ra, ($sp) L1: lw $t1, -12($sp) lw $t2, -12($sp) bgt $t1, $t2, L3 L2: b L5 L3: lw $t1, -12($sp) lw $t0, -8($sp) sw $t1, ($t0) lw $ra, ($sp) jr $ra L4: b L6 L5: lw $t1, -16($sp) lw $t0, -8($sp) sw $t1, ($t0) lw $ra, ($sp) jr $ra L6: lw $ra, ($sp) jr $ra L7: s...
; A040583: Continued fraction for sqrt(608). ; 24,1,1,1,11,1,1,1,48,1,1,1,11,1,1,1,48,1,1,1,11,1,1,1,48,1,1,1,11,1,1,1,48,1,1,1,11,1,1,1,48,1,1,1,11,1,1,1,48,1,1,1,11,1,1,1,48,1,1,1,11,1,1,1,48,1,1,1,11,1,1,1,48,1,1,1,11,1,1,1,48,1,1,1 cal $0,40329 ; Continued fraction for sqrt(348). add $0,1 add $1,$0 add $0,8 div $1...
dnl SH mpn_sub_n -- Subtract two limb vectors of the same length > 0 and store dnl difference in a third limb vector. dnl Copyright 1995, 1997, 2000, 2011 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify...
; A010236: Continued fraction for sqrt(194). ; 13,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1,12,1,26,1 add $0,3 mul $0,5 lpb $0,1 mov $2,$0 add $0,5 mod $2,10 trn $2,1 add $2,3 add $4,$3 mov $3,1 ...
; A178842: a(n) = binomial((n-1)^2, n). ; 0,0,4,126,4368,177100,8347680,450978066,27540584512,1878392407320,141629804643600,11703541346076580,1052134368066259632,102250849636865496528,10683770265451303535424,1194448077521704400002650,142288257910903254700704000,17993390003427864738863790640,2407454876540195826762940031...
; A033410: a(n) = floor(90/n). ; 90,45,30,22,18,15,12,11,10,9,8,7,6,6,6,5,5,5,4,4,4,4,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0 add $0,1 mov $1,90 div $1,$0 mov $0,$1
db PIDGEY ; pokedex id db 40 ; base hp db 45 ; base attack db 40 ; base defense db 56 ; base speed db 35 ; base special db NORMAL ; species type 1 db FLYING ; species type 2 db 255 ; catch rate db 55 ; base exp yield INCBIN "pic/gsmon/pidgey.pic",0,1 ; 55, sprite dimensions dw PidgeyPicFront dw PidgeyPicBack ; attacks ...
; A066665: a(n) = #{(x,y) | 0<=y<=x<=n and x+y is prime}. ; Submitted by Christian Krause ; 1,3,5,7,9,11,14,16,19,23,27,31,35,38,42,47,52,56,61,65,70,76,82,88,94,100,107,114,121,128,136,143,150,158,166,175,185,194,203,213,223,233,243,252,262,272,282,291,301,311,322,334,346 mov $6,$0 lpb $6 sub $6,1 sub $0,$6 mov...
page ,132 subttl emfmul.asm - Multiplication ;*** ;emfmisc.asm - Multiplication ; ; Copyright (c) 1986-89, Microsoft Corporation ; ;Purpose: ; Multiplication ; ; ; This Module contains Proprietary Information of Microsoft ; Corporation and should be treated as Confidential. ; ;Revision History: ; See e...
; ; ZX IF1 & Microdrive functions ; ; Stefano Bodrato - Oct. 2004 ; ; ; if1_rommap: ; - detect the shadow rom version ; - init the jump table ; ; MAKE_M can't be called with the 'hook code' system because ; the first issue of the interface one just doesn't have it. ; ;...
; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. ; See the LICENSE file in the project root for more information. ; ; ; This is the fast memcpy implementation for ARM stolen from the CRT (original location ; vctools\crt\crtw32\str...
#include "benchmark_statistical.h" #include <transwarp.h> #include <chrono> #include <fstream> #include <random> #include <numeric> namespace tw = transwarp; namespace { using data_t = std::shared_ptr<std::vector<double>>; data_t generate_gamma(std::mt19937& gen) { const double alpha = 2; const double beta ...
/* * Copyright (c) 2021, Richard GrÑčik <r.gracik@gmail.com> * * SPDX-License-Identifier: BSD-2-Clause */ #include "CatDog.h" #include <LibGUI/Painter.h> #include <LibGUI/Window.h> #include <LibGUI/WindowServerConnection.h> void CatDog::timer_event(Core::TimerEvent&) { if (!m_roaming) return; if (...
ORG $100 LDAA $200 STAA $205 ROT ROL $205 BRA ROT 
//============================================================================== // Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
#ifndef RADIUMENGINE_INTERPOLATION_HPP #define RADIUMENGINE_INTERPOLATION_HPP #include <Core/Math/LinearAlgebra.hpp> namespace Ra { namespace Core { namespace Asset { inline void interpolate( const Core::Math::Vector3& v0, const Core::Math::Vector3& v1, const Scalar t, Core::Math::Vector3& r...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and ...
/* Copyright (c) 2015-2018, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
; A060160: a(n) = 2^n - 1 + Fibonacci(n-1)*2^(n+1). ; Submitted by Christian Krause ; 1,11,23,79,223,703,2175,6911,22015,70655,227327,733183,2367487,7651327,24739839,80019455,258867199,837550079,2710044671,8769241087,28376563711,91825897471,297149661183,961586135039,3111737360383,10069752152063,32586319527935,105451379...
; MIT License ; Copyright (c) 2018 David Alejandro Gonzalez Marquez ; ---------------------------------------------------------------------------- ; -- OrgaSmallSystem --------------------------------------------------------- ; ---------------------------------------------------------------------------- ; EXAMPLE Orga...
//===-- LTOModule.cpp - LLVM Link Time Optimizer --------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xd437, %rsi lea addresses_UC_ht+0x1c57b, %rdi nop cmp %r14, %r14 mov $70, %rcx rep movsl dec %rbx lea addresses_D_ht+0x1db37, %r15 nop nop nop nop and $21079, %rbp mov $0x...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x13866, %r12 nop nop nop nop sub %rax, %rax movw $0x6162, (%r12) nop nop nop nop xor $11960, %r12 lea addresses_D_ht+0x1cf66, %rsi lea addresses_A_ht+0x5966, %rdi nop sub %r14, %r14 mo...
; void __FASTCALL__ astar_Cleanup(struct astar_path *p) ; delete paths in astar's priority queue and optional path in parameter ; 01.2007 aralbrec XLIB astar_CleanUp LIB astar_DeletePath XREF _astar_queueN, _astar_queue .astar_CleanUp call astar_DeletePath ; does nothing if hl=0 ld hl,(_astar_queue) in...
; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt org 100h MOV AX, 07 ; AX <-- 07 ADD AX, 06 ; AX=07+06 ADD AX, 04 ; AX= 0B+04=0F MOV CX, AX ; CX <-- AX ret
INCLUDE "gbhw.asm" INCLUDE "sound_constants.asm" INCLUDE "audio_constants.asm" SECTION "bank 3", ROMX, BANK[3] LevelPointersBank3:: ; 3:4000 dw $503F dw $5074 dw $509B dw $503F dw $5074 dw $509B dw $503F ; 3-1 dw $5074 ; 3-2 dw $509B ; 3-3 dw $503F dw $5074 dw $509B dw $50C0 ; End of world "hangar" Level...
; unsigned char PSGSFXGetStatus(void) SECTION code_clib SECTION code_PSGlib PUBLIC PSGSFXGetStatus EXTERN asm_PSGlib_SFXGetStatus defc PSGSFXGetStatus = asm_PSGlib_SFXGetStatus ; SDCC bridge for Classic IF __CLASSIC PUBLIC _PSGSFXGetStatus defc _PSGSFXGetStatus = PSGSFXGetStatus ENDIF
section action include win1_mac_xref include win1_keys_wman include win1_keys_wwork include win1_keys_wstatus include win1_keys_qdos_pt include win1_keys_qdos_io include win1_keys_qdos_ioa include win1_keys_qdos_sms include win1_keys_k include win1_keys_qlv include win1_spread_keys xdef mea_cfil xdef me...
lda {c1},y asl sta {m1} lda {c1}+1,y rol sta {m1}+1 asl {m1} rol {m1}+1
//===----------------------------------------------------------------------===// // // Peloton // // target_proxy.cpp // // Identification: src/codegen/proxy/target_proxy.cpp // // Copyright (c) 2015-2017, Carnegie Mellon University Database Group // //===----------------------------------------...
; A094013: Expansion of (1-4*x)/(1-4*x-4*x^2). ; Submitted by Jamie Morken(s4) ; 1,0,4,16,80,384,1856,8960,43264,208896,1008640,4870144,23515136,113541120,548225024,2647064576,12781158400,61712891904,297976201216,1438756372480,6946930294784,33542746669056,161958707855360 mov $1,1 lpb $0 sub $0,1 mov $2,$3 mul $2...
; A137976: Fibonacci numbers (A000045) not in A103311. ; Submitted by Christian Krause ; 3,13,34,144,377,1597,4181,17711,46368,196418,514229,2178309,5702887,24157817 mov $2,$0 mul $0,2 add $2,3 div $2,2 add $0,$2 seq $0,166876 ; a(n) = a(n-1) + Fibonacci(n), a(1)=1983. sub $0,1981
; A186381: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) after g(j) when f(i)=g(j), where f(i)=4i and g(j)=j(j+1)/2 (triangular number). Complement of A186382. ; 3,5,7,9,10,12,14,15,17,18,19,21,22,24,25,26,28,29,30,32,33,34,36,37,38,39,41,42,43,45,46,47,48,50,51,52,53,54,56,57,58,59,61,62,63,64,65,67,68,...