text
stringlengths
1
1.05M
; A302707: Number of factors of Chebyshev polynomial S(2*n+1, x) (A049310) over the integers. Factorization is into the minimal integer polynomials C (A187360). ; Submitted by Jamie Morken(s1) ; 1,2,4,3,4,6,4,4,7,6,4,8,4,6,10,5,4,10,4,8,10,6,4,10,7,6,10,8,4,14,4,6,10,6,10,13,4,6,10,10,4,14,4,8,16,6,4,12,7,10,10,8,4,14,...
db "PUNCHING@" ; species name db "To increase the" next "strength of all" next "its punch moves," page "it spins its arms" next "just before making" next "contact.@"
#include "AminoAcidUtil.h" #include "crux_version.h" #include "mass.h" #include "model/Peptide.h" #include "model/objects.h" #include "parameter.h" #include "Params.h" #include "StringUtils.h" #include <algorithm> using namespace std; #include "app/CometApplication.h" /** * \file Params.cpp * * This module handle...
BattleCommand_Present: ; present ld a, [wLinkMode] cp LINK_COLOSSEUM jr z, .colosseum_skippush push bc push de .colosseum_skippush call BattleCommand_Stab ld a, [wLinkMode] cp LINK_COLOSSEUM jr z, .colosseum_skippop pop de pop bc .colosseum_skippop ld a, [wTypeMatchup] and a jp z, AnimateFailedMove l...
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L ; ; See "bifrost_h.h" for further details ; ---------------------------------------------------------------- SECTION code_clib SECTION code_bifrost_h PUBLIC asm_BIFROSTH_drawBackTilesH ...
MODULE generic_console_ioctl PUBLIC generic_console_ioctl SECTION code_clib EXTERN generic_console_cls EXTERN __console_h EXTERN __console_w EXTERN __pc6001_mode EXTERN generic_console_font32 EXTERN generic_console_udg32 INCLUDE "target/pc6001/def/pc6001.def" INCLUDE "ioctl.def" ; a = ioctl ; de = arg ...
; A083487: Triangle read by rows: T(r,c) = 2*r*c + l + c (1 <= c <= l). ; Submitted by Christian Krause ; 4,7,12,10,17,24,13,22,31,40,16,27,38,49,60,19,32,45,58,71,84,22,37,52,67,82,97,112,25,42,59,76,93,110,127,144,28,47,66,85,104,123,142,161,180,31,52,73,94,115,136,157,178,199,220,34,57,80,103,126,149,172,195,218,241...
/*----------------------------------------------------------------------- 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 ...
;//////////////////////////////////////////////////////////////////////////////; ;/// void drawRect(int x, int y, int width, int height, int color) ///; ;//////////////////////////////////////////////////////////////////////////////; ; Label for procedure. drawRect: ;////////////////////////////////////////...
; A022388: Fibonacci sequence beginning 6, 13. ; 6,13,19,32,51,83,134,217,351,568,919,1487,2406,3893,6299,10192,16491,26683,43174,69857,113031,182888,295919,478807,774726,1253533,2028259,3281792,5310051,8591843,13901894,22493737,36395631,58889368,95284999,154174367,249459366,403633733,653093099,1056726832,1709819931,27...
/* * This file is part of the CitizenFX project - http://citizen.re/ * * See LICENSE and MENTIONS in the root of the source tree for information * regarding licensing. */ #include "StdInc.h" #include <ComponentLoader.h> #include <Server.h> class ServerMain { public: virtual void Run(fwRefContain...
; A114219: Number triangle (k-(k-1)*0^(n-k))*[k<=n]. ; Submitted by Simon Strandgaard ; 1,0,1,0,1,1,0,1,2,1,0,1,2,3,1,0,1,2,3,4,1,0,1,2,3,4,5,1,0,1,2,3,4,5,6,1,0,1,2,3,4,5,6,7,1,0,1,2,3,4,5,6,7,8,1,0,1,2,3,4,5,6,7,8,9,1 mov $2,$0 lpb $2 mov $0,4 sub $1,1 add $2,$1 lpe sub $2,1 add $1,$2 add $2,$0 add $2,16 mul $...
TITLE RTM86 - 8086 Runtime Module Dispatcher ;*** ; RTM86 - 8086 Runtime Module Dispatcher ; ; Copyright <C> 1986, Microsoft Corporation ; ;Purpose: ; Contains the runtime module entry point for direct ; execution which outputs the copyright messages. ; It also contains the RTM software interrupt handler ; and the ru...
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Guido Tack <tack@gecode.org> * * Copyright: * Guido Tack, 2012 * * Last modified: * $Date: 2013-07-11 12:30:18 +0200 (to, 11 jul 2013) $ by $Author: schulte $ * $Revision: 13840 $ * * This file is part ...
; A028914: Divide A028913 by 2. ; 1,1,2,1,3,2,4,2,4,3,5,1,9,2,10,3,5,7,9,2,10,9,9,2,13,9,8,4,20,4,15,6,15,8,12,6,22,6,15,15,21,5,13,12,23,7,24,11,19,15,24,6,30,6,26,7 mov $5,2 mov $7,$0 lpb $5 sub $5,1 add $0,$5 sub $0,1 mov $2,$0 mov $4,3 lpb $2 mov $6,$4 lpb $6 add $4,1 trn $6,$2 ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r8 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x10c57, %r11 nop nop nop dec %r9 mov (%r11), %ebp nop and %r8, %r8 lea addresses_WT_ht+0x412f, %rcx nop nop nop cmp %r8, %r8 mov $0x6162636465666768, %r9 movq %r9, %xmm4 movups...
db 0 ; 390 DEX NO db 44, 58, 44, 61, 58, 44 ; hp atk def spd sat sdf db FIRE, FIRE ; type db 45 ; catch rate db 65 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F12_5 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/sinnoh/chimchar/front.d...
/* WDL - resample.cpp Copyright (C) 2010 and later Cockos Incorporated This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this sof...
// 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 "chrome/browser/android/mojo/chrome_service_registrar_android.h" #include "base/android/context_utils.h" #include "base/android/jni_android.h" #...
...
.global s_prepare_buffers s_prepare_buffers: push %r15 push %rcx push %rdi push %rsi lea addresses_D_ht+0x2282, %rsi lea addresses_WC_ht+0xae82, %rdi add %r15, %r15 mov $88, %rcx rep movsw nop nop nop add %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %r15 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 pu...
;Take 2 numbers and returns sum ; https://www.spoj.com/problems/TESTINT/ global _start section .data section .bss numb resb 1 sum resb 3 section .text _start: mov edi,0 mov esi,0 getfirstnum: mov eax,3 mov ebx,0 mov ecx,numb mov edx,1 int 80h movzx eax, BYTE[...
#include <GL/error.h> #include <ResourceImp.h> #include "materials/TexturedMaterial.h" #include "materials/TexturedLitMaterial.h" #include "Renderer.h" #include "Texture.h" namespace GLRenderer { Texture2DRGBA8::Texture2DRGBA8(Renderer& renderer, GLsizei width, GLsizei height, GLsizei levels, c...
;---------------------------------------------------------------------------- ; Configuration parameters ; NUM_INTERRUPT_STACKS = 4 INTERRUPT_STACK_SIZE = 1000h ;---------------------------------------------------------------------------- ; TASM red tape ; .386 .model flat .code PUBLICDLL SetIRQHandler PUBLICDLL Ge...
; A340301: a(n) = n * floor(log_2(n)). ; 0,2,3,8,10,12,14,24,27,30,33,36,39,42,45,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,160,165,170,175,180,185,190,195,200,205,210,215,220,225,230,235,240,245,250,255,260,265,270,275,280,285,290,295,300,305,310,315,384,390,396,402,408,414,420,426,432,438,444,450,456,462...
; A248474: Numbers congruent to 13 or 17 mod 30. ; 13,17,43,47,73,77,103,107,133,137,163,167,193,197,223,227,253,257,283,287,313,317,343,347,373,377,403,407,433,437,463,467,493,497,523,527,553,557,583,587,613,617,643,647,673,677,703,707,733,737,763,767,793,797,823,827,853,857,883,887,913,917,943,947,973,977,1003,1007,1...
.memorymap slotsize $7000 defaultslot 0 slot 0 $200 .endme .rombankmap bankstotal 1 banksize $7000 banks 1 .endro .emptyfill 0 ;;;;;;;;;;; SPC700 CPU registers / IO locations ;;;;;;;;;;;;;;;;;;;; .define TEST $00F0 ; Testing functions .define CONTROL $00F1 ; Timer, I/O and ROM Control .define DSPADDR $00F2 ; D...
; ; jccolor.asm - colorspace conversion (SSE2) ; ; Copyright (C) 2009, D. R. Commander. ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright notice in jsimdext.inc ; ; This file should be assembled with NASM (Netwide...
; A116520: a(0) = 0, a(1) = 1; a(n) = max { 4*a(k) + a(n-k) | 1 <= k <= n/2 }, for n > 1. ; 0,1,5,9,25,29,45,61,125,129,145,161,225,241,305,369,625,629,645,661,725,741,805,869,1125,1141,1205,1269,1525,1589,1845,2101,3125,3129,3145,3161,3225,3241,3305,3369,3625,3641,3705,3769,4025,4089,4345,4601,5625,5641,5705,5769,6025...
// Copyright 2009-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #pragma once #if defined(RKCOMMON_TASKING_TBB) #define __TBB_NO_IMPLICIT_LINKAGE 1 #define __TBBMALLOC_NO_IMPLICIT_LINKAGE 1 #include <tbb/task_group.h> #elif defined(RKCOMMON_TASKING_OMP) #include <thread> #elif defined(RKCOMMON_TASKING_...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QVBoxLayout> #include <QHBoxLayout> #include <QLabel> #include <QWidget> #include <QDebug> #include <QMessageBox> #include <QList> #include <QFileDialog> #include <QInputDialog> #include "parsetextedit.h" #include "nodeeditor.h" #include "treemanager.h" #in...
############################################################################### # 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...
; Basic block with two non-branching instructions terminated by a ; branching instruction with the successors block_1 and block_2. block_0: mov eax, 0 cmp ecx, 42 je block_2 ; Basic block with one non-branching instruction terminated by a ; fallthrough into block_2, as branches may only target the firs...
// Copyright 2018, Bosch Software Innovations GmbH. // // 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 applicabl...
%ifdef CONFIG { "RegData": { "XMM0": ["0x0", "0xFFFFFFFFFFFFFFFF"], "XMM1": ["0x0", "0xFFFFFFFFFFFFFFFF"], "XMM2": ["0x1010101010101010", "0xFFFFFFFFFFFFFFFF"] }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0xFFFFFFFFFFFFFFFF mov [rdx + 8 * 0], rax mov rax,...
; A104887: Triangle T(n,k) = (n-k+1)th prime, read by rows. ; 2,3,2,5,3,2,7,5,3,2,11,7,5,3,2,13,11,7,5,3,2,17,13,11,7,5,3,2,19,17,13,11,7,5,3,2,23,19,17,13,11,7,5,3,2,29,23,19,17,13,11,7,5,3,2,31,29,23,19,17,13,11,7,5,3,2,37,31,29,23,19,17,13,11,7,5,3,2,41,37,31,29,23,19,17,13,11,7,5,3,2,43,41,37,31,29,23,19,17,13,11,7...
HappinessData_OlderHaircutBrother: db $4c, 2, HAPPINESS_OLDERCUT1 ; 30% chance db $80, 3, HAPPINESS_OLDERCUT2 ; 20% chance db $ff, 4, HAPPINESS_OLDERCUT3 ; 50% chance HappinessData_YoungerHaircutBrother: db $9a, 2, HAPPINESS_YOUNGCUT1 ; 60% chance db $4c, 3, HAPPINESS_YOUNGCUT2 ; 10% chance db $ff, 4, HAPPINESS_...
#define BOOST_FILESYSTEM_NO_DEPRECATED #define BOOST_FILESYSTEM_NO_LIB #include "3rd/Catch/single_include/catch.hpp" //#include <atomic> #include "ara/async_rwqueue.h" #include "ara/async_threadpool.h" #include "ara/event.h" #include "ara/log.h" #include "test_async_helper.h" TEST_CASE("async rwqueue", "[async]")...
dnl Intel Pentium 4 mpn_popcount, mpn_hamdist -- population count and dnl hamming distance. dnl Copyright 2000-2002, 2007 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 dnl it under the terms of eithe...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x1bb4a, %rdx and $9566, %r10 movw $0x6162, (%rdx) and %r8, %r8 lea addresses_UC_ht+0x1b01a, %rsi nop and %rdx, %rdx movw $0x6162, (%rsi) nop nop nop nop nop add %r12,...
; A113655: Invert blocks of three in the sequence of natural numbers. ; 3,2,1,6,5,4,9,8,7,12,11,10,15,14,13,18,17,16,21,20,19,24,23,22,27,26,25,30,29,28,33,32,31,36,35,34,39,38,37,42,41,40,45,44,43,48,47,46,51,50,49,54,53,52,57,56,55,60,59,58,63,62,61,66,65,64,69,68,67,72,71,70,75,74,73,78,77,76,81,80,79,84,83,82,87,86...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x7edc, %r15 nop nop inc %rax mov $0x6162636465666768, %r8 movq %r8, %xmm6 vmovups %ymm6, (%r15) sub $36265, %r13 lea addresses_UC_ht+0x7d40, %rsi lea addresses_normal_ht+0xa34...
global _main section .text _main: MOV EAX, 2 MOV EBX, 3 ADD EAX, EBX INC EAX MOV ECX, 6 JMP SHORT
// 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 ...
; A173522: Zero together with the partial sums of A105321. ; 0,1,4,8,14,20,26,34,46,56,62,70,82,94,106,122,146,164,170,178,190,202,214,230,254,274,286,302,326,350,374,406,454,488,494,502,514,526,538,554,578,598,610,626,650,674,698,730,778,814,826,842,866,890,914,946,994,1034,1058,1090,1138,1186,1234,1298,1394,1460,1466...
;Test file for assembly of the ADD instruction ;This is a comment .orig x3000 ADD R0, R1, R2 ADD R1, R2, R3 ADD R2, R3, R4 ADD R3, R4, R5 ADD R4, R5, R6 ADD R5, R6, R7 ADD R6, R7, R0 ADD R7, R0, R1 ADD R0, R0, #15 ADD R1, R1, #-15 ADD R2, R2, #10 ADD R3, R3, #-10 ADD R5, R4, #0 ADD R7, R5, #-1 .END
; A246697: Row sums of the triangular array A246696. ; 1,5,16,34,67,111,178,260,373,505,676,870,1111,1379,1702,2056,2473,2925,3448,4010,4651,5335,6106,6924,7837,8801,9868,10990,12223,13515,14926,16400,18001,19669,21472,23346,25363,27455,29698,32020,34501,37065,39796 mov $12,$0 mov $14,$0 add $14,1 lpb $14,1 clr $0,1...
; void printhex(int stdout_stderr, int number); global printhex section .data hex_table db '0123456789abcdef' section .text printhex: mov rax,1 ; write syscall mov rbx,rsp mov rdx,1 ; write 1 character divide: mov rcx,rsi and rcx,15 ; push mod 16 push rcx shr rsi,4 jnz div...
;================================================================================ ;-------------------------------------------------------------------------------- AssignKiki: LDA.b #$00 : STA $7EF3D3 ; defuse bomb LDA.b #$0A : STA $7EF3CC ; assign kiki as follower RTL ;----------------------------------------...
%assign limit 15 is_prime: db 0, 0, 1 ; 0: not, 1: not, 2: is %assign n 3 %rep limit %assign current 1 %assign i 1 %rep n/2 %assign i i+1 %if n % i = 0 %assign current 0 %exitrep %endif %endrep db current %assign n n+1 %endrep
section ".data" xdef pSnd_GetFrequency_voice1 pSnd_GetFrequency_voice1: move.w frequency_voice1,d0 rts
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ PAGE ,132 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; FILENAME: CPS Device Driver -- Font Parser ;; MODULE N...
;UNIVERSIDAD DE SAN CARLOS DE GUATEMALA ;FACULTAD DE INGENIERIA ;ARQUITECTURA DE COMPUTADORAS Y ENSAMBLADORES 1 ;PRACTICA 6 ;LESTER EFRAIN AJUCUM SANTOS ;201504510 ;====================================== MY MACROS ================================= %macro print 1 ;this macro will print to screen push ax push dx ...
; A315498: Coordination sequence Gal.6.334.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,6,11,16,22,28,34,40,46,51,56,62,68,73,78,84,90,96,102,108,113,118,124,130,135,140,146,152,158,164,170,175,180,186,192,197,202,208,214,220,...
; A235796: 2*n - 1 - sigma(n). ; 0,0,1,0,3,-1,5,0,4,1,9,-5,11,3,5,0,15,-4,17,-3,9,7,21,-13,18,9,13,-1,27,-13,29,0,17,13,21,-20,35,15,21,-11,39,-13,41,3,11,19,45,-29,40,6,29,5,51,-13,37,-9,33,25,57,-49,59,27,21,0,45,-13,65,9,41,-5,69,-52,71,33,25,11,57,-13,77,-27,40,37,81,-57,61,39,53,-5,87,-55,69,15,57,43,69,-61,95,24,...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x698, %rsi lea addresses_normal_ht+0xd698, %rdi nop nop nop nop inc %r8 mov $121, %rcx rep movsq nop nop nop nop xor %rsi, %rsi lea addresses_WT_ht+0x147f8, %rsi lea addresses_...
<% from pwnlib.shellcraft.amd64.linux import syscall %> <%page args=""/> <%docstring> Invokes the syscall sched_yield. See 'man 2 sched_yield' for more information. Arguments: </%docstring> ${syscall('SYS_sched_yield')}
/** * Autogenerated by Thrift for src/module.thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @nocommit */ #include "thrift/compiler/test/fixtures/includes/gen-cpp2/module_types.h" #include "thrift/compiler/test/fixtures/includes/gen-cpp2/module_types.tcc" #include <thrift...
; --------------------------------------------------------------------------- ; Sprite mappings - harpoon (LZ) ; --------------------------------------------------------------------------- Map_Harp_internal: dc.w @h_retracted-Map_Harp_internal dc.w @h_middle-Map_Harp_internal dc.w @h_extended-Map_Harp_internal ...
#include "operators/arithmetic/add_op.h" #include "core/workspace.h" #include "utils/math_functions.h" namespace dragon { template <class Context> template <typename T> void RAddOp<Context>::EltwiseRunWithType() { auto* X1data = input(0).template data<T, Context>(); auto* X2data = input(1).template data<T, C...
; A053838: a(n) = (sum of digits of n written in base 3) modulo 3. ; 0,1,2,1,2,0,2,0,1,1,2,0,2,0,1,0,1,2,2,0,1,0,1,2,1,2,0,1,2,0,2,0,1,0,1,2,2,0,1,0,1,2,1,2,0,0,1,2,1,2,0,2,0,1,2,0,1,0,1,2,1,2,0,0,1,2,1,2,0,2,0,1,1,2,0,2,0,1,0,1,2,1,2,0,2,0,1,0,1,2,2,0,1,0,1,2,1,2,0,0 lpb $0 add $1,$0 div $0,3 lpe mod $1,3 mov $0,...
/* * TPCC.actor.cpp * * This source file is part of the FoundationDB open source project * * Copyright 2013-2020 Apple Inc. and the FoundationDB project 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 obtai...
PAGE 60, 132 TITLE Setting 1/4 bits per pel bitmap or 3 planes-1BPP bitmap COMMENT ` Copyright (c) 1990-1991 Microsoft Corporation Module Name: htwbmp.asm Abstract: This module is used to provide set of functions to set the bits into the final destination bitmap, the input...
; A204000: Symmetric matrix based on f(i,j)=min{i(j+1)-1,j(i+1)-1}, by antidiagonals. ; Submitted by Jon Maiga ; 1,2,2,3,5,3,4,7,7,4,5,9,11,9,5,6,11,14,14,11,6,7,13,17,19,17,13,7,8,15,20,23,23,20,15,8,9,17,23,27,29,27,23,17,9,10,19,26,31,34,34,31,26,19,10,11,21,29,35,39,41,39,35,29,21,11,12,23,32,39,44,47,47 lpb $0 ...
cpu 1802 r0 = 0 r1 = 1 r2 = 2 r3 = 3 r4 = 4 r5 = 5 r6 = 6 rc = 12 re = 14 rf = 15 screen = 0700h idl ; switch to P = 3 ghi r0 phi r3 ldi start & 255 plo r3 sep r3 start: ldi 6 ; set stack to 6FFh phi r2 ldi 0FFh plo r2 ldi screen/256 ; R0 points ...
; ; Get the pixel address for Timex hires mode ; SECTION code_graphics PUBLIC pixeladdress_MODE6 EXTERN __zx_screenmode ; ****************************************************************** ; ; Get absolute pixel address in map of virtual (x,y) coordinate. ; ; in: hl = x ; de = y ; ; out: de = h...
// Test signed word comparisons // Commodore 64 PRG executable file .file [name="test-comparisons-sword.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpsta...
; ; jfdctint.asm - accurate integer FDCT (64-bit SSE2) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright (C) 2009, D. R. Commander. ; ; Based on the x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright not...
.data words: .asciiz "is the result of factorial(1).\n" .text main: #Call Fact(4) addi $a0, $zero, 1 jal fact #Print 4! add $a0, $zero, $v0 addi $v0, $zero, 1 syscall #Print some words li $v0, 4 la $a0, words syscall #Exit Code li $v0, 10 syscall fact: addi $sp, $sp,-8 #Crea...
/* ============================================================================ * Copyright (c) 2009-2016 BlueQuartz Software, LLC * * 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...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
; A262267: Number of (n+2) X (1+2) 0..1 arrays with each row and column divisible by 5, read as a binary number with top and left being the most significant bits. ; 2,4,7,13,26,52,103,205,410,820,1639,3277,6554,13108,26215,52429,104858,209716,419431,838861,1677722,3355444,6710887,13421773,26843546,53687092,107374183,21...
page ,132 title xtoa - convert integers/longs to ASCII string ;*** ;xtoa.asm - convert integers/longs to ASCII string ; ; Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved. ; ;Purpose: ; The module has code to convert integers/longs to ASCII strings. ; ;Revision History: ; 01-06-85 GFW initial vers...
; A028195: Expansion of 1/((1-5x)(1-8x)(1-11x)(1-12x)). ; Submitted by Christian Krause ; 1,36,825,15380,254721,3910596,56993545,800115060,10923586641,145981963556,1918518760665,24879137417940,319158529241761,4058064014390916,51218264422582185,642449405949396020 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 sub $2...
; A315312: Coordination sequence Gal.6.639.4 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,6,10,16,20,26,32,38,42,48,52,58,64,68,74,78,84,90,96,100,106,110,116,122,126,132,136,142,148,154,158,164,...
; A214861: First differences of round(n*sqrt(5)) (A022848). ; 2,2,3,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,3 mov $12,$0 mov $14,2 lpb $14,1 clr $0,12 mov $0,$12 sub $14,1 add $0,$14 ...
; Input: ; peak_x: [bp + 8] -> [bp + triangle_x] ; peak_y: [bp + 6] -> [bp + triangle_y] ; height: [bp + 4] -> [bp + triangle_h] Triangle_Obtuse_Algorithm: push bp mov bp, sp sub sp, 4 push es push di push ax push cx push si ;___________________...
#include <QGuiApplication> #include <QCoreApplication> #include <QQmlApplicationEngine> // #include <QMessageBox> #include <QTextCodec> #include <QtWebView/QtWebView> #include <QtWebEngine/qtwebengineglobal.h> #include <QWebEngineSettings> #include <QIcon> #include <QtGlobal> #include <QtDebug> #include <QTextStream> ...
; A118738: Number of ones in binary expansion of 5^n. ; 1,2,3,6,5,6,7,8,12,13,11,15,13,14,17,20,20,20,24,19,26,29,25,27,30,19,31,33,29,36,37,33,39,34,42,40,44,42,38,46,53,54,49,52,52,53,50,49,54,60,58,60,54,64,58,74,61,67,74,65,61,77,74,81,86,78,87,85,82,89,83,79,90,83,85,93,90,107,94,94,106,100,86,89,97,94,105,87,105,...
############################################################################### # Copyright 2018 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
// Test that address vars are turned into load/store and located at hardcoded addresses // Hard-coded zero-page address - local variable // Commodore 64 PRG executable file .file [name="address-1.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] ....
; A204443: Symmetric matrix: f(i,j)=floor[(i+j+3)/4]-floor[(i+j)/4], by (constant) antidiagonals. ; 1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,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,0,0,0,0,0,0,0,0,0,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 cal $0,204255 ; Symme...
InitList: ld a, [wInitListType] cp INIT_ENEMYOT_LIST jr nz, .check_party_ot_name ld hl, wOTPartyCount ld a, ENEMY_OT_NAME jr .done .check_party_ot_name cp INIT_PLAYEROT_LIST jr nz, .check_mon_name ld hl, wPartyCount ld a, PARTY_OT_NAME jr .done .check_mon_name cp INIT_MON_LIST jr nz, .check_item_name l...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0xa43e, %rsi lea addresses_normal_ht+0x19851, %rdi nop add %rax, %rax mov $42, %rcx rep movsl nop and $49452, %rbp lea addresses_D_ht+0x1b451, %r12 cmp %rbx, %rbx mov $0x616263...
SECTION code_clib PUBLIC xorpixl EXTERN xor_MODE0 EXTERN xor_MODE1 EXTERN __gal_mode xorpixl: ld a,(__gal_mode) cp 1 jp z,xor_MODE1 and a ret nz jp xor_MODE0
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r8 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0xe8bb, %r14 nop and $8613, %rax mov $0x6162636465666768, %rbx movq %rbx, %xmm4 vmovups %ymm4, (%r14) nop nop nop nop nop cmp %r8, %r8 lea addresses_UC_ht+0x1835b, %rsi lea ...
STACKSG SEGMENT STACK GLOBAL_BUILTIN_GETS_BUF DW 129 DUP(0) GLOBAL_BUILTIN_GETS_CHARCOUNT DW 1 DUP(0) GLOBAL_BUILTIN_COMPACT_BUF DW 129 DUP(0) DW 70,65,73,76,32,84,79,32,79,80 DW 69,78,70,73,76,69,10,0 DW 70,65,73,76,32,84,79,32,67,76 DW 79,83,69,70,73,76,69,10,0 GLOBAL_actId DW 1 GL...
#include "Platform.inc" #include "FarCalls.inc" #include "PowerManagement.inc" #include "TestFixture.inc" radix decimal NoSleepWhenPreventedTest code global testArrange testArrange: fcall initialisePowerManagement clrwdt banksel WDTCON bsf WDTCON, SWDTEN testAct: fcall preventSleep fcall pollPowerManag...
; A060635: a(n) is the number of 2 X 1 domino tilings of the set S in the plane R^2 consisting of the union of the following two rectangles: rectangle1: |x| <= n, |y| <= 1, rectangle2: |x| <= 1, |y| <= n. ; 2,8,72,450,3200,21632,149058,1019592,6993800,47922050,328499712,2251473408,15432082562,105772401800,724976569800,...
/* Copyright (C) 2003, 2005, 2006 MySQL AB, 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2...
#include "StrategyEngines/PvZ.h" #include "Units.h" #include "Map.h" #include "Strategist.h" #include "Players.h" #include "Workers.h" #include "Plays/Macro/SaturateBases.h" #include "Plays/MainArmy/DefendMyMain.h" #include "Plays/MainArmy/AttackEnemyBase.h" #include "Plays/Scouting/EarlyGameWorkerScout.h" #include "...
; ; File: tasking.asm ; ; Copyright (c) 2017-2018 Sydney Erickson, John Davis ; ; 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 compile: ; del integer_io.exe ; c:\masm32\bin\ml.exe /c /coff integer_io.asm ; c:\masm32\bin\polink.exe /SUBSYSTEM:console integer_io.obj ; integer_io.exe .386 ; 386 Processor Instruction Set .model flat, stdcall ; Flat memory model and stdcall method option casemap: none ; Case Sensitive incl...
!general_address = $0017 ; temp variables and loop counters !loop_counter_62 = $62 !temp_62 = $62 !temp_63 = $63 !loop_counter_64 = $64 !temp_64 = $64 !temp_65 = $65 !flags_d8 = $00d8 !color_data_source_offset = $00f4 !color_data_source_offset_2 = $00f7 !ram_0111 = $0111 !tilemap_wram_source_start = $0800 !tilem...
dnl x86-32 mpn_mod_1_1p, requiring cmov. dnl Contributed to the GNU project by Niels Möller and Torbjorn Granlund. dnl Copyright 2010, 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 dnl it under...
; F-Zero Climax Translation by Normmatt .align 4 Profile38_CharacterProfile: .sjis "" .align 4 Profile38_VehicleProfile: .sjis "" ; make sure to leave an empty line at the end
// Copyright 2021 Google LLC // // 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 agreed to in...
; A226405: Expansion of x/((1-x-x^3)*(1-x)^3). ; 0,1,4,10,21,40,71,120,196,312,487,749,1139,1717,2571,3830,5683,8407,12408,18281,26898,39537,58071,85245,125082,183478,269074,394534,578418,847927,1242926,1821840,2670295,3913782,5736217,8407142,12321590,18058510,26466393,38788763,56848093,83315347,122105013,178954052,262...
; A192491: Molecular topological indices of the complete tripartite graphs K_{n,n,n}. ; 24,240,864,2112,4200,7344,11760,17664,25272,34800,46464,60480,77064,96432,118800,144384,173400,206064,242592,283200,328104,377520,431664,490752,555000,624624,699840,780864,867912,961200 add $0,1 mov $1,3 mul $1,$0 bin $1,2 mul $1,$...
; A107843: Number of iterations of McCarthy 91 Function until it terminates. ; 201,199,197,195,193,191,189,187,185,183,181,179,177,175,173,171,169,167,165,163,161,159,157,155,153,151,149,147,145,143,141,139,137,135,133,131,129,127,125,123,121,119,117,115,113,111,109,107,105,103,101 mov $1,19 sub $1,$0 mul $1,2 add $1,...