text stringlengths 1 1.05M |
|---|
.data
array: .space 440
.text
li $t2,50
sw $t2,0($0)
li $t2,49
sw $t2,4($0)
li $t2,48
sw $t2,8($0)
li $t2,47
sw $t2,12($0)
li $t2,46
sw $t2,16($0)
li $t2,45
sw $t2,20($0)
li $t2,44
sw $t2,24($0)
li $t2,43
sw $t2,28($0)
li $t2,42
sw $t2,32($0)
li $t2,41
sw $t2,36($0)
li $t2,40... |
%macro ADD_SYSCALL_GATE 2
global do_%1_syscall
do_%1_syscall:
; save preserved registers on the stack
push ebp
push edi
push esi
push ebx
mov eax, [esp+0x1c] ; arguments
mov ebx, [eax]
mov ecx, [eax+0x4]
mov edx, [eax+0x8]
mov esi, [eax+0xc]
mov edi, [eax+0x10]
mov ebp,... |
; Binary Search for 8085
; Just for test purposes it would be nice to automatically generate test array (haystack) in which to find a needle.
; Fill memory with 8 elements: 0, 1.. 7 and value of element corresponds to it's addresses.
mvi b, 7 ; last index to fill until
mvi h, 0 ; set up HL as memory pointer
... |
; void p_stack_clear(p_stack_t *s)
SECTION code_clib
SECTION code_adt_p_stack
PUBLIC p_stack_clear
EXTERN asm_p_stack_clear
defc p_stack_clear = asm_p_stack_clear
|
// Copyright 2018 Open Source Robotics Foundation, 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 appli... |
; A141214: Defining A to be the interior angle of a regular polygon, the number of constructible regular polygons such that A is in a field extension <= degree 2^n, starting with n=0. This is also the number of values of x such that phi(x)/2 is a power of 2 <= 2^n (where phi is Euler's phi function), also starting with... |
// :copyright: (c) 2017 Alex Huszagh.
// :license: MIT, see licenses/mit.md for more details.
#include <pycpp/compression/exception.h>
PYCPP_BEGIN_NAMESPACE
// EXCEPTIONS
// ----------
compression_error::compression_error(compression_code code) noexcept:
code_(code)
{}
compression_code compression_error::c... |
SECTION code_clib
SECTION code_error
PUBLIC errno_zc
EXTERN error_zc, _errno
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_ERROR = 0
pop hl
pop hl
pop hl
ld l,$ff ; unspecified error
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
errno_zc:
; set errno = l
; set hl = 0
; se... |
defc TAR__clib_exit_stack_size = 0
defc TAR__register_sp = -1
defc TAR__fputc_cons_generic = 1
defc CRT_ORG_CODE = 0x8995
INCLUDE "crt/classic/crt_rules.inc"
org CRT_ORG_CODE
; BASIC header for the vz
basicstart:
defb 0xFF, 0xFF ; poi... |
//=========================================================================
// Author : Ngo Tien Dat
// Email : dat.ngo@epfl.ch
// Organization : EPFL
// Purpose : Fern keypoint matcher to match the input image and the
// reference image
// Date : 10 May 2012
//====... |
; DRAW LOAD SPRITE 1 BYTE DEFINITION NO ROTATION
; 01.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
XLIB SP1_DRAW_LOAD1NR
XREF SP1RETSPRDRAW, SP1V_PIXELBUFFER
; following data segment copied into struct sp1_cs
ld hl,0
nop
ld de,0
call SP1_DRAW_LOAD1NR
; following draw code called by way o... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x15d6, %rsi
lea addresses_A_ht+0x9a56, %rdi
nop
nop
sub $46527, %r15
mov $91, %rcx
rep movsq
nop
dec %r12
lea addresses_normal_ht+0x1bbd7, %r9
nop
nop
nop
nop
nop
cmp $36482, %r12
v... |
; A026225: a(n) = (1/3)*(s(n+1) - 1), where s = A026224.
; Submitted by Christian Krause
; 1,3,4,7,9,10,12,13,16,19,21,22,25,27,28,30,31,34,36,37,39,40,43,46,48,49,52,55,57,58,61,63,64,66,67,70,73,75,76,79,81,82,84,85,88,90,91,93,94,97,100,102,103,106,108,109,111,112,115
mov $2,$0
add $2,2
pow $2,2
lpb $2
mov $3,$1
... |
#
# Register ALU operations
#
ldi 0x12
st r1
ldi 0x34
st r2
ldi 0
add r1
add r2
# now it is 0x46
st r15
or r2 # 0x76
st r14
ldi 0xf0
st r13
ld r14 # 0x76
and r13 # 0x70
addi 0x0f # 0x7f
xor r1 # 0x6d
subi 0x6d
add r15
subi 0x46
exit
|
; A137429: a(n) = -2*a(n-1) - 2*a(n-2), with a(0)=1 and a(1)=-4.
; 1,-4,6,-4,-4,16,-24,16,16,-64,96,-64,-64,256,-384,256,256,-1024,1536,-1024,-1024,4096,-6144,4096,4096,-16384,24576,-16384,-16384,65536,-98304,65536,65536,-262144,393216,-262144,-262144,1048576,-1572864,1048576,1048576,-4194304,6291456
mov $1,$0
add $1,... |
###############################################################################
# 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... |
; A182191: a(n) = 6*a(n-1) - a(n-2) + 12 with n>1, a(0)=-1, a(1)=5.
; -1,5,43,265,1559,9101,53059,309265,1802543,10506005,61233499,356895001,2080136519,12123924125,70663408243,411856525345,2400475743839,13990997937701,81545511882379,475282073356585,2770146928257143,16145599496186285
cal $0,38723 ; a(n) = 6*a(n-1) - a(... |
loop: ; Define a label 'loop', that will allow us
; to jumb back to here to create a loop
jmp loop ; This instruction jumps to a new memory
; address refernced by 'loop'. ie. it will
; run in a loop
times 510 -( $ - $$ ) db 0 ; When compiled, our program must fit
... |
; A083305: (4*(n+10)^n+n^n)/5.
; Submitted by Jon Maiga
; 1,9,116,1763,30784,608125,13431104,328435647,8819323904,258227642321,8194000000000,280279062767899,10285785324929024,403289664570492357,16830798499899981824,745145638470458984375,34890683668357841158144,1723120618512823480401433,89530853568169585920966656,488300... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "guid/msoGuid.h"
#include "motifCpp/testCheck.h"
MSO_STRUCT_GUID(IBaseInterface, "38E23DC7-92B1-4B21-B5FE-6EA786817915")
struct DECLSPEC_NOVTABLE IBaseInterface {
virtual void BaseMethod() = 0;
};
MSO_STRUCT_GUID(IDerive... |
[ORG 0x00]
[BITS 16]
SECTION .text
jmp 0x07C0:START
TOTALSECTORCOUNT: dw 0x02
KERNEL32SECTORCOUNT: dw 0x02
BOOTSTRAPPROCESSOR: db 0x01
START:
mov ax, 0x07C0
mov ds, ax
mov ax, 0xB800
mov es, ax
mov ax, 0x0000
mov ss, ax
mov sp, 0xFFFE
mov bp, 0xFFFE
mov si, 0
... |
#include "stdafx.h"
#include "RegUtils.h"
LONG GetDWORDRegKey(HKEY hKey, const std::wstring &strValueName, DWORD &nValue, DWORD nDefaultValue)
{
nValue = nDefaultValue;
DWORD dwBufferSize(sizeof(DWORD));
DWORD nResult(0);
LONG nError = ::RegQueryValueExW(hKey,
strValueName.c_str(),
0,
NULL,
reinterpret_cas... |
/*******************************************************************************
* Copyright 2020-2022 Intel Corporation
*
* 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.apa... |
; A056105: First spoke of a hexagonal spiral.
; 1,2,9,22,41,66,97,134,177,226,281,342,409,482,561,646,737,834,937,1046,1161,1282,1409,1542,1681,1826,1977,2134,2297,2466,2641,2822,3009,3202,3401,3606,3817,4034,4257,4486,4721,4962,5209,5462,5721,5986,6257,6534,6817,7106,7401,7702,8009,8322,8641,8966,9297,9634,9977,10326,... |
; A016325: Expansion of 1/((1-2x)(1-10x)(1-11x)).
; Submitted by Jon Maiga
; 1,23,377,5395,71841,915243,11317657,136994195,1631936081,19201296763,223714264137,2585856904995,29694425953921,339138685491083,3855525540397817,43660780944367795,492768590388029361,5545454494268290203,62249999436951126697,697249993806462262595... |
;
; jccolext.asm - colorspace conversion (SSE2)
;
; 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 Assembler),
; can *not* be assembled with Microsoft'... |
OPTION DOTNAME
.text$ SEGMENT ALIGN(256) 'CODE'
EXTERN OPENSSL_ia32cap_P:NEAR
PUBLIC sha1_block_data_order
ALIGN 16
sha1_block_data_order PROC PUBLIC
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_sha1_block_data_order::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov r9d,... |
#include <nan.h>
#include "null.h"
namespace SassTypes
{
Nan::Persistent<v8::Function> Null::constructor;
bool Null::constructor_locked = false;
Null::Null() {}
Null& Null::get_singleton() {
static Null singleton_instance;
return singleton_instance;
}
v8::Local<v8::Function> Null:... |
MarkTownVisitedAndLoadMissableObjects::
ld a, [wCurMap]
cp FIRST_ROUTE_MAP
jr nc, .notInTown
ld c, a
ld b, FLAG_SET
ld hl, wTownVisitedFlag ; mark town as visited (for flying)
predef FlagActionPredef
.notInTown
ld hl, MapHSPointers
ld a, [wCurMap]
ld b, $0
ld c, a
add hl, bc
add hl, bc
ld a, [hli] ... |
; This file, plus inc1.asm and inc2.asm, test NASM's file inclusion
; mechanism.
;
; This produces a DOS .COM file: to assemble, use
; nasm -f bin inctest.asm -o inctest.com
; and when run, it should print `hello, world'.
BITS 16
ORG 0x100
jmp _main
%include "inc1.asm"
|
; A183356: One quarter the number of n X 4 1..4 arrays with no two neighbors of any element equal to each other.
; 36,576,1296,3600,9216,24336,63504,166464,435600,1140624,2985984,7817616,20466576,53582400,140280336,367258896,961496064,2517229584,6590192400,17253347904,45169851024,118256205456,309598765056,810540090000,... |
#include "../../util/memDbg.h"
#include "GbSound.h"
#include "../defines.h"
GbSound::GbSound(Gameboy *master) :
_channel1(master, false),
_channel2(master, true),
_channel3(master),
_channel4(master)
{
_gb = master;
}
GbSound::~GbSound()
{
}
void GbSound::registerEvents(void)
{
_channel1.RegisterEvents();
... |
#ifndef __LILAC_HOOK_IMPL_HPP__
#define __LILAC_HOOK_IMPL_HPP__
#include <cstddef>
#include <vector>
#include <unordered_map>
#include "lilac_hook_allocator.hpp"
#if defined(_WIN32)
#include "lilac_hook_windows.hpp"
#elif defined(__arm__)
#include "lilac_hook_android.hpp"
#elif defined(__APPLE__)
#if defined(__arm... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
SD1 SEGMENT para common 'DATA'
C1 LABEL byte
ORG 1h
C2 LABEL byte
SD1 ENDS
CSEG SEGMENT para 'CODE'
ASSUME CS:CSEG, DS:SD1
main:
mov ax, SD1
mov ds, ax
mov ah, 2
mov dl, C1
int 21h
mov dl, C2
int 21h
mov ax, 4c00h
int 21h
CSEG ENDS
END main |
SECTION "ROM Bank 15", ROMX[$4000], BANK[$15]
toc_15_4000:
call toc_01_3DAF
ld hl, $C330
add hl, bc
ld [hl], b
ld hl, $C260
add hl, bc
ld [hl], b
ld hl, $C270
add hl, bc
ld [hl], b
ld hl, $C320
add hl, bc
ld [hl], b
ld hl, $C290
add hl,... |
; A147991: Sequence S such that 1 is in S and if x is in S, then 3x-1 and 3x+1 are in S.
; 1,2,4,5,7,11,13,14,16,20,22,32,34,38,40,41,43,47,49,59,61,65,67,95,97,101,103,113,115,119,121,122,124,128,130,140,142,146,148,176,178,182,184,194,196,200,202,284,286,290,292,302,304,308,310,338,340,344,346,356,358,362,364,365,367... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r15
push %rbp
push %rsi
// Store
lea addresses_PSE+0x82f6, %r12
nop
nop
nop
sub %r11, %r11
movl $0x51525354, (%r12)
nop
nop
nop
nop
inc %r12
// Load
lea addresses_WC+0x1de89, %r14
nop
add %rb... |
db #00,#00,#00,#00,#00,#00,#00,#00
db #00,#00,#00,#00,#00,#00,#00,#00
db #00,#00,#00,#00,#00,#00,#00,#00
db #00,#00,#00,#00,#00,#00,#00,#00
db #88,#88,#88,#88,#88,#88,#88,#88
db #88,#88,#88,#88,#88,#88,#88,#88
db #88,#88,#88,#88,#88,#88,#88,#88
db #88,#88,#88,#88,#88,#88,#88,#88
db #cc,#cc,#cc,#cc,#cc,#cc... |
/*******************************************************************************
* This file was auto-generated using the AutoGemm.py python script.
* DO NOT modify this file! Instead, make changes to scripts in
* clBLAS/src/library/blas/AutoGemm/ then re-generate files
* (otherwise local changes will be lost a... |
; A114243: a(n) = (n+1)(n+2)^2*(n+3)(n+4)(3n+5)/240.
; 1,12,66,245,714,1764,3864,7722,14355,25168,42042,67431,104468,157080,230112,329460,462213,636804,863170,1152921,1519518,1978460,2547480,3246750,4099095,5130216,6368922,7847371,9601320,11670384,14098304,16933224,20227977
mov $1,1
lpb $0
mov $2,$0
sub $0,1
seq... |
#include <boost/test/unit_test.hpp>
using boost::unit_test::test_suite;
int main(){
test_suite* test= BOOST_TEST_SUITE( "Unit test example 1" );
return 0;
}
|
; !to "picload.prg", cbm
!ifdef TARGET_MEGA65 {
TARGET_ASSIGNED = 1
* = $801
}
!ifdef TARGET_PLUS4 {
TARGET_PLUS4_OR_C128 = 1
TARGET_ASSIGNED = 1
* = $1001
bitmap_source = loader_pic_start + $800
bitmap_target = $c000
bitmap_end_highbyte = $e0
screen_source = loader_pic_start
screen_target = $0800
colour_so... |
; A108397: Sums of rows of the triangle in A108396.
; 0,2,10,66,692,9780,167982,3362828,76695880,1961316270,55555555610,1726135607262,58359930206844,2132745542253872,83767436069591302,3518790190560477240,157412216095654840592,7471013615160978901626,374948124011649358071858,19839152658149255713160090,1103764210526315789... |
// Copyright 2017 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 "cc/trees/ukm_manager.h"
#include <algorithm>
#include <utility>
#include <vector>
#include "base/test/simple_test_tick_clock.h"
#include "base... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.1.6 #12555 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
;
; ANSI Video handling for the Epson PX8
; By Stefano Bodrato - 2019
;
; BEL - chr(7) Beep it out
;
;
; $Id: f_ansi_bel.asm $
;
SECTION code_clib
PUBLIC ansi_BEL
EXTERN px8_conout
.ansi_BEL
ld c,7 ; BEL
jp px8_conout
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %r9
push %rax
push %rsi
lea addresses_A_ht+0x42ef, %r8
nop
nop
nop
xor $33468, %rsi
mov $0x6162636465666768, %rax
movq %rax, %xmm3
vmovups %ymm3, (%r8)
nop
nop
nop
xor $34914, %r15
lea addresses_A_ht+0x13d8f, %r10
nop
nop
nop
nop
nop
add $10... |
; A079291: Squares of Pell numbers.
; 0,1,4,25,144,841,4900,28561,166464,970225,5654884,32959081,192099600,1119638521,6525731524,38034750625,221682772224,1292061882721,7530688524100,43892069261881,255821727047184,1491038293021225,8690408031080164
mov $2,5
mov $3,55
lpb $0
sub $0,1
add $2,$1
mov $4,$3
div $4,$3... |
TITLE PUBDEF - Copyright (c) SLR Systems 1994
INCLUDE MACROS
INCLUDE SYMBOLS
INCLUDE SEGMENTS
INCLUDE CDDATA
PUBLIC PUBDEF,PUBDEF32,LPUBDF32,LPUBDF
.DATA
EXTERNDEF PUB_SIZE:BYTE,PUB_TYPE:BYTE
EXTERNDEF SYM_HASH_MOD:DWORD,DEFAULT_SIZE:DWORD,CURNMOD_GINDEX:DWORD,PUB_FRAME:DWORD,PUB_GROUP_GINDEX:DW... |
MtMoon1FWildMons:
def_grass_wildmons 10 ; encounter rate
db 8, DIGLETT
db 7, ZUBAT
db 9, ZUBAT
db 8, GEODUDE
db 8, ZUBAT
db 10, ZUBAT
db 10, GEODUDE
db 8, PARAS
db 11, ZUBAT
db 10, CLEFAIRY
end_grass_wildmons
def_water_wildmons 0 ; encounter rate
end_water_wildmons
|
; A060626: Number of right triangles of a given area required to form successively larger squares.
; 2,14,34,62,98,142,194,254,322,398,482,574,674,782,898,1022,1154,1294,1442,1598,1762,1934,2114,2302,2498,2702,2914,3134,3362,3598,3842,4094,4354,4622,4898,5182,5474,5774,6082,6398,6722,7054,7394,7742,8098,8462,8834,9214,... |
align 16
; Input year as signed dword in EAX
IsLeapYear:
test eax,11b
jz .4
retn ; 75% : ZF=0, not a leap year
.4:
mov ecx,100
cdq
idiv ecx
test edx,edx
jz .100
cmp edx,edx
retn ; 24% : ZF=1, leap year
.100:
test eax,11b
retn ; 1% : ZF=?, leap year if EAX%400=0
|
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
EXTERN OPENSSL_cpuid_setup
section .CRT$XCU rdata align=8
DQ OPENSSL_cpuid_setup
common OPENSSL_ia32cap_P 16
section .text code align=64
global OPENSSL_atomic_add
ALIGN 16
OPENSSL_atomic_add:
mov eax,DWORD[rcx]
$L$spin: lea r8,[rax*1+rdx]
DB 0xf0
cm... |
; A194715: 15 times triangular numbers.
; 0,15,45,90,150,225,315,420,540,675,825,990,1170,1365,1575,1800,2040,2295,2565,2850,3150,3465,3795,4140,4500,4875,5265,5670,6090,6525,6975,7440,7920,8415,8925,9450,9990,10545,11115,11700,12300,12915,13545,14190,14850,15525,16215,16920,17640,18375,19125,19890,20670,21465,22275,23... |
// Copyright 2021 The WebNN-native 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 ... |
; A079610: a(n) = (5*n+1)*(5*n+3)*(5*n+5).
; 15,480,2145,5760,12075,21840,35805,54720,79335,110400,148665,194880,249795,314160,388725,474240,571455,681120,803985,940800,1092315,1259280,1442445,1642560,1860375,2096640,2352105,2627520,2923635,3241200,3580965,3943680,4330095,4740960,5177025,5639040,6127755,6643920,7188285... |
Name: ys_mpen.asm
Type: file
Size: 53113
Last-Modified: '2016-05-13T04:50:34Z'
SHA-1: AFD8809B886FB7B50E1B8CCEC32358A5A02ECB07
Description: null
|
Python_P: DB $02, $19, $00
DW Python_PEdges
DB Python_PEdgesSize
DB $00, $2A
DB Python_PVertSize
DB Python_PEdgesCnt
DB $00, $C8
DB Python_PNormalsSize
DB $28, $FA, $14
DW Python_PNormals
DB $00, $1B
DW Python_PVertices
DB 0,0 ; Type and Tactics
Python_PVertices:... |
; A229852: 3*h^2, where h is an odd integer not divisible by 3.
; 3,75,147,363,507,867,1083,1587,1875,2523,2883,3675,4107,5043,5547,6627,7203,8427,9075,10443,11163,12675,13467,15123,15987,17787,18723,20667,21675,23763,24843,27075,28227,30603,31827,34347,35643,38307,39675,42483,43923,46875,48387,51483,53067,56307,57963,... |
lui $t0 0xf65b
ori $t1 $0 0xabfe
ori $t2 $0 0x3000
lui $t3 0x49bf
addu $t5 $t1 $t3
addu $t4 $t1 $t3
beq $t5 $t4 end #cal-beq
subu $t6 $t2 $t3
ori $1 $0 4
subu $31 $31 $1
end: subu $t6 $t3 $t1
sw $t6 0($0)
lw $s0 0($0)
end1:lw $s1 0($0)
beq $s0 $s1 end1
ori $s0 $s1 0x619f |
/*
* Copyright (c) 2001-2008
* DecisionSoft Limited. All rights reserved.
* Copyright (c) 2004-2008
* Oracle. 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... |
; A171984: Beatty sequence for sqrt(17).
; 4,8,12,16,20,24,28,32,37,41,45,49,53,57,61,65,70,74,78,82,86,90,94,98,103,107,111,115,119,123,127,131,136,140,144,148,152,156,160,164,169,173,177,181,185,189,193,197,202,206,210,214,218,222,226,230,235,239,243,247,251,255,259,263,268,272,276,280,284,288,292,296,300,305,309,313... |
copyright zengfr site:http://github.com/zengfr/romhack
00A2C6 dbra D0, $a2c0
00A382 dbra D0, $a37c
00C014 rts [1p+AA, 1p+AC]
00C022 rts [1p+AA, 1p+AC]
00C03C moveq #$0, D0 [1p+AA, 1p+AC]
copyright zengfr site:http://github.com/zengfr/romhack
|
lui $1,30242
ori $1,$1,43883
lui $2,862
ori $2,$2,51035
lui $3,20658
ori $3,$3,62498
lui $4,61644
ori $4,$4,9565
lui $5,5921
ori $5,$5,32759
lui $6,9317
ori $6,$6,52904
mthi $1
mtlo $2
sec0:
nop
nop
nop
beq $3,$2,yes0
nop
no0:addiu $k1,$k1,1
yes0:addiu $k0,$k0,1
sec1:
nop
nop
subu $2,$3,$0
beq $3,$2,yes1
nop... |
; A228605: The Merrifield-Simmons index of the meta-polyphenylene chain of length n.
; Submitted by Christian Krause
; 1,18,299,4982,83001,1382818,23038099,383820582,6394548401,106534800818,1774896845499,29570232336982,492647582692201,8207633878782018,136741265470126499,2278144220188626182,37954461443189410401,63233096... |
;
; jfdctflt.asm - floating-point FDCT (SSE)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2016, 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 jsi... |
;
; ZX Spectrum specific routines
; by Stefano Bodrato, 14/09/2006
;
; int zx_printer();
;
; The result is:
; - 1 (true) if the ZX printer is connected
; - 0 (false) otherwise
;
; $Id: zx_printer.asm,v 1.1 2008/06/29 08:25:47 aralbrec Exp $
;
XLIB zx_printer
zx_printer:
ld hl,0
in a,($fb)
bit 6,a
ret nz
inc hl... |
; --COPYRIGHT--,BSD_EX
; Copyright (c) 2012, Texas Instruments Incorporated
; 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 co... |
// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_COMMON_CONVERGENCE_STUDY_HH
#define DUNE_STUFF_COMMON_CONVERGENCE_STUDY_HH
... |
// Copyright (c) 2018 Stephan Unverwerth
// This code is licensed under MIT license (See LICENSE for details)
#include "TypeInfo.h"
namespace Strela {
bool TypeInfo::extends(const TypeInfo* tid) const {
if (tid == this) return false;
if (!parent) return false;
if (tid == parent) return true;
auto it = ext... |
/*
----------------------------------------------------------------------------
| mg-dbx.node |
| Author: Chris Munt cmunt@mgateway.com |
| chris.e.munt@gmail.com ... |
// SSE42
#include "../../simd/sse42.hpp"
#include "CellularSSE42.hpp"
#include <limits>
static __m128 VX_VECTORCALL hashCellX(__m128i seed, __m128 cellX, __m128 cellY) {
__m128 rx = vx::simd::sse42::dot_ps(cellX, cellY, _mm_set1_ps(127.1f), _mm_set1_ps(311.7f));
__m128i hashX = vx::simd::sse42::partialJenkinsH... |
#include "Decoder_LDPC_BP_peeling.hpp"
#include "Tools/Perf/common/hard_decide.h"
#include "Tools/Noise/noise_utils.h"
#include "Tools/Math/utils.h"
using namespace aff3ct;
using namespace aff3ct::module;
template<typename B, typename R>
Decoder_LDPC_BP_peeling<B,R>::Decoder_LDPC_BP_peeling(const int K, const int N,... |
dnl Alpha mpn_rshift -- Shift a number right.
dnl Copyright 1994, 1995, 2000, 2002 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 General Public License as publish... |
; A248105: Positions of 1,0,1 in the Thue-Morse sequence (A010060).
; Submitted by Christian Krause
; 3,12,15,20,27,36,43,48,51,60,63,68,75,80,83,92,99,108,111,116,123,132,139,144,147,156,163,172,175,180,187,192,195,204,207,212,219,228,235,240,243,252,255,260,267,272,275,284,291,300,303,308,315,320,323,332,335,340,347,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x12d68, %rsi
lea addresses_D_ht+0x122e8, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
xor %r8, %r8
mov $30, %rcx
rep movsw
nop
nop
nop
nop
nop
and %r14, %r14
lea addresses_WT_ht+0x... |
; A129204: The denominator of 2/n^3.
; 1,1,4,27,32,125,108,343,256,729,500,1331,864,2197,1372,3375,2048,4913,2916,6859,4000,9261,5324,12167,6912,15625,8788,19683,10976,24389,13500,29791,16384,35937,19652,42875,23328,50653,27436,59319,32000
pow $0,3
mov $1,1
mov $2,$0
lpb $0,1
gcd $0,2
sub $1,$1
div $2,$0
lpe
gcd... |
; A168946: Number of reduced words of length n in Coxeter group on 29 generators S_i with relations (S_i)^2 = (S_i S_j)^22 = I.
; 1,29,812,22736,636608,17825024,499100672,13974818816,391294926848,10956257951744,306775222648832,8589706234167296,240511774556684288,6734329687587160064,188561231252440481792,527971447506833... |
/*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/hw_info.h"
#include "shared/source/os_interface/device_factory.h"
#include "shared/source/os_interface/windows/os_interface.h"
#include "shared/test/unit_test/mocks/mock_device.h"
#include "opencl... |
; A046037: Numbers n for which floor((3/2)^n) is composite.
; 8,9,10,11,12,13,14,15,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78
mov $1,$0
mul $0,2
add $1,13
div $0,$1
mul $0,2
add ... |
.686
.model flat,stdcall
option casemap:none
include .\bnlib.inc
include .\bignum.inc
.code
bnShr proc uses edi esi ebx bn:DWORD,sc:DWORD
mov edx,sc
shr edx,5
jnz @@Shr32
@@Shrle31:
mov ecx,sc
mov esi,bn
and ecx,31
jz @@Exit
xor eax,eax
mov ebx,[esi].BN.dwSize
mov edx,[esi].BN.dwArray[0*4]
shrd eax,edx,cl... |
lda ({z1}),y
sec
sbc #<{c1}
sta ({z1}),y
iny
lda ({z1}),y
sbc #>{c1}
sta ({z1}),y
|
.program:
ji i4
noop
DATA_SECTION_OFFSET[0..32]
DATA_SECTION_OFFSET[32..64]
lw $ds $is 1
add $$ds $$ds $is
move $r2 $sp ; save locals base register
cfei i8 ; allocate 8 bytes for all locals
addi $r0 $r2 i0 ; get offset reg for get_ptr
lw $r0 data_0 ... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; gfx functions
;
; int ozputs(int x, int y, char *string);;
;
; ------
; $Id: ozputs_direct.asm,v 1.2 2015/01/23 07:07:31 stefano Exp $
;
PUBLIC ozputs
PUBLIC ozputsgetend
... |
.org 0x8C0179F :: .incbin "m12-psitext.bin"
.org 0x8B194C0 :: dw 0x000E945B
.org 0x8B194C4 :: dw 0x000E945D
.org 0x8B194C8 :: dw 0x000E9465
.org 0x8B194CC :: dw 0x000E9468
.org 0x8B194D0 :: dw 0x000E946D
.org 0x8B194D4 :: dw 0x000E9474
.org 0x8B194D8 :: dw 0x000E947D
.org 0x8B194DC :: dw 0x000E9487
.org 0x8B194E0 :: d... |
; A006061: Star numbers (A003154) that are squares.
; Submitted by Jon Maiga
; 1,121,11881,1164241,114083761,11179044361,1095432263641,107341182792481,10518340481399521,1030690025994360601,100997104206965939401,9896685522256667700721,969774184076946468731281,95027973354018497267964841,9311771614509735785791823161,91245... |
/* bpred-bimode.cpp: Bi-Mode predictor [Lee et al. MICRO 1997]
NOTE: Bi-Mode is *not* the same as "bimodal" (2bC) */
/*
* __COPYRIGHT__ GT
*/
#define COMPONENT_NAME "bimode"
#ifdef BPRED_PARSE_ARGS
if(!strcasecmp(COMPONENT_NAME,type))
{
int l1_size;
int l2_size;
int his_width;
int Xor;
if(sscanf(opt_s... |
_FuchsiaHouse1Text1::
text "SAFARI ZONE's"
line "WARDEN is old,"
cont "but still active!"
para "All his teeth are"
line "false, though."
done
_FuchsiaHouse1Text2::
text "Hmm? You've met"
line "BILL?"
para "He's my grandson!"
para "He always liked"
line "collecting things"
cont "even as a child!"
done
... |
; Use the first found matching item held by any party member, or return zero.
[bits 16]
startPatch EXE_LENGTH, eop-usePartyItem
startBlockAt addr_eop_usePartyItem
push bp
mov bp, sp
; bp-based stack frame:
%assign arg_itemFrame 0x08
%assign arg_itemQuality 0x06
%assign arg_itemType ... |
;
; Fast background restore
;
; Generic version (just a bit slow)
;
; $Id: w_bkrestore.asm $
;
SECTION smc_clib
PUBLIC bkrestore
PUBLIC _bkrestore
EXTERN w_pixeladdress
.bkrestore
._bkrestore
push ix
; __FASTCALL__ : sprite ptr in HL
push hl
pop ix
ld l,(ix+2) ; x
ld h,(ix+3)
ld e,(ix+4) ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: driStrings.asm
AUTHOR: Adam de Boor, Mar 11, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date D... |
;-------------------------------------------------------------------------------
; MSP430 Assembler Code Template for use with TI Code Composer Studio
;
;
;-------------------------------------------------------------------------------
.cdecls C,LIST,"msp430.h" ; Include device header file
... |
#if !defined(__UNIONFIND_H)
#define __UNIONFIND_H
#include <vector>
#include <atomic>
#include <iostream>
/**
* Lock-free parallel disjoint set data structure (aka UNION-FIND)
* with path compression and union by rank
*
* Supports concurrent find(), same() and unite() calls as described
* in the paper
*
* "Wait-free ... |
//-------------------------------------------------------------------------
/*
Copyright (C) 2010-2019 EDuke32 developers and contributors
Copyright (C) 2019 sirlemonhead, Nuke.YKT
This file is part of PCExhumed.
PCExhumed is free software; you can redistribute it and/or
modify it under the terms of the GNU General Pub... |
; A116525: a(0)=1, a(1)=1, a(n) = 11*a(n/2) for even n, and a(n) = 10*a((n-1)/2) + a((n+1)/2) for odd n >= 3.
; 0,1,11,21,121,131,231,331,1331,1341,1441,1541,2541,2641,3641,4641,14641,14651,14751,14851,15851,15951,16951,17951,27951,28051,29051,30051,40051,41051,51051,61051,161051,161061,161161,161261,162261,162361,1633... |
; A141035: Period 10: repeat 0, 0, 4, 2, -2, 4, 2, -4, -4, -2.
; 0,0,4,2,-2,4,2,-4,-4,-2,0,0,4,2,-2,4,2,-4,-4,-2,0,0,4,2,-2,4,2,-4,-4,-2,0,0,4,2,-2,4,2,-4,-4,-2,0,0,4,2,-2,4,2,-4,-4,-2,0,0,4,2,-2,4,2,-4,-4,-2,0,0,4,2,-2,4,2,-4,-4,-2,0,0,4,2,-2,4,2,-4,-4,-2,0,0,4,2,-2,4,2,-4,-4,-2,0,0,4,2,-2,4,2
mov $2,$0
lpb $2
lpb ... |
; A180094: Number of steps to reach 0 or 1, starting with n and applying the map k -> (number of 1's in binary expansion of k) repeatedly.
; 0,0,1,2,1,2,2,3,1,2,2,3,2,3,3,2,1,2,2,3,2,3,3,2,2,3,3,2,3,2,2,3,1,2,2,3,2,3,3,2,2,3,3,2,3,2,2,3,2,3,3,2,3,2,2,3,3,2,2,3,2,3,3,3,1,2,2,3,2,3,3,2,2,3,3,2,3,2,2,3,2,3,3,2,3,2,2,3,3,2... |
// { Driver Code Starts
//Initial Template for C++
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function Template for C++
class Solution{
public:
// Function to find number of bits needed to be flipped to convert A to B
int countBitsFlip(int a, int b){
// Y... |
; A097252: Numbers whose set of base 6 digits is {0,5}.
; 0,5,30,35,180,185,210,215,1080,1085,1110,1115,1260,1265,1290,1295,6480,6485,6510,6515,6660,6665,6690,6695,7560,7565,7590,7595,7740,7745,7770,7775,38880,38885,38910,38915,39060,39065,39090,39095,39960,39965,39990,39995,40140,40145,40170,40175,45360,45365,45390,45... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.