text stringlengths 1 1.05M |
|---|
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Mult.asm
// Multiplies R0 and R1 and stores the result in R2.
// (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.)
//
// This program only... |
; A113935: a(n) = prime(n) + 3.
; Submitted by Jamie Morken(s3)
; 5,6,8,10,14,16,20,22,26,32,34,40,44,46,50,56,62,64,70,74,76,82,86,92,100,104,106,110,112,116,130,134,140,142,152,154,160,166,170,176,182,184,194,196,200,202,214,226,230,232,236,242,244,254,260,266,272,274,280,284,286,296,310,314,316,320,334,340,350,352,3... |
# $Id: 04_sub_r0.asm,v 1.3 2001/03/22 00:38:59 ellard Exp $
#
# Copyright 1999-2001 by the President and Fellows of Harvard College.
# See LICENSE.txt for license information.
#
#@ tests sub for r0.
# OK
lc r2, -100
lc r3, 100
sub r0, r2, r3
add r5, r1, r0
hlt
|
; See also data/items/heal_status.asm
HeldStatusHealingEffects:
db HELD_HEAL_POISON, 1 << PSN
db HELD_HEAL_FREEZE, 1 << FRZ
db HELD_HEAL_BURN, 1 << BRN
db HELD_HEAL_SLEEP, SLP
db HELD_HEAL_PARALYZE, 1 << PAR
db HELD_HEAL_STATUS, ALL_STATUS
db -1 ; end
|
;;
;; Copyright (c) 2021-2022, Intel Corporation
;;
;; 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... |
#include "Particle.hpp"
#include "Scenes/Scenes.hpp"
namespace acid {
constexpr static float FADE_TIME = 1.0f;
Particle::Particle(std::shared_ptr<ParticleType> particleType, const Vector3f &position, const Vector3f &velocity, float lifeLength, float stageCycles,
float rotation, float scale, float gravityEffect) :
... |
; A056106: Second spoke of a hexagonal spiral.
; 1,3,11,25,45,71,103,141,185,235,291,353,421,495,575,661,753,851,955,1065,1181,1303,1431,1565,1705,1851,2003,2161,2325,2495,2671,2853,3041,3235,3435,3641,3853,4071,4295,4525,4761,5003,5251,5505,5765,6031,6303,6581,6865,7155,7451,7753,8061,8375,8695,9021,9353,9691,10035,10... |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
; A129296: Number of divisors of n^2 - 1 that are not greater than n.
; 1,1,2,2,4,2,5,3,5,3,8,2,8,4,6,4,9,2,12,4,8,4,10,3,10,6,8,4,16,2,14,4,7,8,12,4,12,4,10,4,20,2,16,6,8,6,12,3,18,6,12,4,16,4,20,8,10,4,16,2,16,6,8,12,16,4,16,4,16,4,30,2,15,6,8,12,16,4,24,5,12,5,16,4,16,8,10,4,30,4,24,8,8,8,14,4,21,6,18,6
add $0,1
po... |
; A152891: a(1) = b(1) = 0; for n > 1, b(n) = b(n-1) + n-1 + a(n-1) and a(n) = a(n-1) + n-1 + b(n).
; 0,2,9,29,83,226,602,1588,4171,10935,28645,75012,196404,514214,1346253,3524561,9227447,24157798,63245966,165580120,433494415,1134903147,2971215049,7778742024,20365011048,53316291146,139583862417,365435296133,95672202601... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %r9
push %rax
push %rdi
lea addresses_UC_ht+0x10ffb, %r13
clflush (%r13)
nop
nop
nop
nop
nop
add $14873, %r8
vmovups (%r13), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %rdi
and $4730, %rdi
lea addresses_normal_ht+0x1764b, %rax
no... |
ld, F1, 0(R10)
mult.d, F2, F1, F5
sd, F2, 8(R0)
ld, F3, 8(R0)
ld, F4, 4(R10)
ld, F5, 8(R0) |
xor r0,r0,r0
ldl $8000
and r7,r7,r1
ldl $8002
and r7,r7,r2
ldl $72
store r0,r2,r7
ldl $1
store r0,r1,r4
ldl $101
store r0,r2,r7
ldl $2
store r0,r1,r4
ldl $108
store r0,r2,r7
ldl $3
store r0,r1,r4
ldl $108
store r0,r2,r7
ldl $4
store r0,r1,r4
ldl $111
store r0,r2,r7
ldl $5
store r0,r1,r4
ldl $44
store r0,r2,r7
ldl $6
s... |
.code
ClearBreakpoints proc
invoke RtlZeroMemory,offset breakpoint,sizeof breakpoint
invoke RtlZeroMemory,offset szBPSourceName,sizeof szBPSourceName
ret
ClearBreakpoints endp
AddBreakpoint proc uses ebx esi,nLine:DWORD,lpFileName:DWORD
mov esi,offset szBPSourceName
mov ebx,0
.while byte pt... |
// File implement/oglplus/enums/tess_gen_primitive_type_def.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/tess_gen_primitive_type.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2015 Matus Chochlik.
// Distributed under the... |
#include <gtest/gtest.h>
#include <iostream>
#include <leetcode/anyorder.hpp>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
/**
* This file is generated by leetcode_add.py v1.0
*
* 187.
* Repeated DNA Sequences
*
* ––––––––––––––––––––––––––––– Description ––––––––––––––... |
;
;
; Copyright (c) 2018 by blindtiger. All rights reserved.
;
; The contents of this file are subject to the Mozilla Public 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.mozilla.org/MPL/
;
; Softwa... |
object_const_def ; object_event constants
CanalaveEastGate_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
CanalaveEastGate_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
warp_event 9, 4, ROUTE_218, 3
warp_event 9, 5, ROUTE_218, 4
db 0 ; coord events
db 0 ; bg events
db 0 ; object events
|
// Test a procedure with calling convention stack - and enough parameters to use fast ASM for cleaning stack
// Commodore 64 PRG executable file
.file [name="procedure-callingconvention-stack-2.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.se... |
; A125518: a(n) = tau(n) * prime(n).
; 2,6,10,21,22,52,34,76,69,116,62,222,82,172,188,265,118,366,134,426,292,316,166,712,291,404,412,642,218,904,254,786,548,556,596,1359,314,652,668,1384,358,1448,382,1158,1182,796,422,2230,681,1374,932,1434,482,2008,1028,2104,1076,1084,554,3372,566,1172,1842,2177,1252,2536,662,2022,13... |
#include <iostream>
using namespace std;
int main()
{
int sum = 0;
int add;
while (add != 0)
{
cout << "int: ";
cin >> add;
sum += add;
}
cout << sum;
cout << "\n\n\nhelp my mechanical mind.";
return 0;
}
|
// Copyright (c) 2014-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chain.h"
#include "util.h"
#include "test/test_youlike.h"
#include "test/test_random.h"
#include <vector>
#includ... |
; A002535: a(n) = 2*a(n-1) + 9*a(n-2), with a(0)=a(1)=1.
; Submitted by Jon Maiga
; 1,1,11,31,161,601,2651,10711,45281,186961,781451,3245551,13524161,56258281,234234011,974792551,4057691201,16888515361,70296251531,292589141311,1217844546401,5068991364601,21098583646811,87818089575031,365523431971361,1521409670118001,63... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x4bab, %rsi
lea addresses_A_ht+0x13f4d, %rdi
clflush (%rdi)
nop
nop
nop
nop
cmp %r15, %r15
mov $25, %rcx
rep movsb
nop
nop
nop
add %r8, %r8
lea addresses_A_ht+0xe80b, %rsi
lea... |
; A110328: Row sums of a number triangle related to the Pell numbers.
; Submitted by Christian Krause
; 1,3,15,109,1053,12711,184123,3111585,60096249,1305766603,31523994471,837162204693,24253060182805,761176868685039,25727009276451603,931657420717406281,35987519689305385713,1476986487871517622675
mov $2,$0
add $2,1
mo... |
; A304974: Number of achiral color patterns (set partitions) for a row or loop of length n using exactly 4 colors (sets).
; 0,0,0,0,1,2,9,16,53,90,265,440,1221,2002,5369,8736,22933,37130,96105,155080,397541,640002,1629529,2619056,6636213,10653370,26899145,43144920,108659461,174174002,437826489,701478976,1760871893,2820... |
// Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <fcppt/args_vector.hpp>
#include <fcppt/text.hpp>
#include <fcppt/catch/begin.hpp>
#includ... |
#include<stdio.h>
#include<windows.h>
#include <tchar.h>
// 头文件不可以空格
int main(void)
{
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));
if (!CreateProcess(NULL,
/* "const char *" 类型的实参与 "LPWSTR" 类型的形参不兼容C/C++(167)
* 报错原因代码是vc6.0写的... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x7d4, %rsi
lea addresses_A_ht+0x18824, %rdi
nop
nop
nop
nop
add %rax, %rax
mov $13, %rcx
rep movsq
nop
cmp $27634, %rcx
lea addresses_WT_ht+0x14774, %rsi
lea addresses_UC_ht+0x1c014, %rdi
clflush... |
<%
from pwnlib.shellcraft import eval, pretty, okay
from pwnlib.util import lists, packing, fiddling, misc
from pwnlib.log import getLogger
from pwnlib.shellcraft.registers import get_register, is_register, bits_required
log = getLogger('pwnlib.shellcraft.i386.mov')
%>
<%page args="dest, src, stack_allowed = ... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; IsZeroBuffer.nasm
;
; Abstract:
;
; IsZeroBuffer function
;
; Notes:
;
;----------------------------... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld a, ff
ldff(45), a
ld b, 91
call lwaitly_b
ld hl, fe00
ld d, 10
ld a, d
ld(hl++), a
ld a, 08
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), ... |
// fms_sequence_reverse.t.cpp Test reverse sequence
#include <cassert>
#include <vector>
#include "fms_sequence_reverse.h"
#include "fms_sequence_take.h"
using namespace fms::sequence;
template<class X>
int test_reverse()
{
std::vector<X> s = { 1, 2, 3 };
{
auto r = reverse(s.begin(), s.end());
... |
; A104326: Dual Zeckendorf representation of n or the maximal (binary) Fibonacci representation. Also list of binary vectors not containing 00.
; Submitted by Christian Krause
; 0,1,10,11,101,110,111,1010,1011,1101,1110,1111,10101,10110,10111,11010,11011,11101,11110,11111,101010,101011,101101,101110,101111,110101,11011... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r15
push %rbp
push %rbx
push %rdx
// Faulty Load
mov $0x64bc6c00000003bc, %r12
nop
nop
xor $49772, %rdx
movups (%r12), %xmm4
vpextrq $1, %xmm4, %rbx
lea oracles, %rbp
and $0xff, %rbx
shlq $12, %rbx
mov (%rbp,%rbx... |
module Console
KEY_UP = #19
KEY_DN = #1A
KEY_LT = #8
KEY_RT = #18
newLine:
ld a, CR
call putC
ld a, LF
putC:
ld e, a
ld c, 2
jp BDOS
getC:
peekC:
ld c, 6, e, #ff
jp BDOS
putStringZ:
ld a, (hl)
and a
ret z
push hl
call putC
pop hl
inc hl
jr putStri... |
#ifndef DS_GAME_ROOM_GENERATOR_HPP
#define DS_GAME_ROOM_GENERATOR_HPP
#include "../Block/BlockBrick.hpp"
#include "../Block/BlockBackground.hpp"
#include "../Block/BlockTorch.hpp"
#include "../Block/BlockWindow.hpp"
#include "../Block/BlockLadder.hpp"
#include "../Block/BlockColumn.hpp"
#include "../Block/BlockBroken.... |
; A138252: Beatty sequence of the number t satisfying 1/s + 1/t = 1, where s is the positive root of x^3 - x^2 - 1.
; 3,6,9,12,15,18,22,25,28,31,34,37,40,44,47,50,53,56,59,62,66,69,72,75,78,81,84,88,91,94,97,100,103,107,110,113,116,119,122,125,129,132,135,138,141,144,147,151,154,157,160,163,166,169,173,176,179,182,185,... |
// Tests that identical strings are consolidated
// Commodore 64 PRG executable file
.file [name="string-const-consolidation.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segm... |
.cseg
.org 0x00
rcall main_thread
; include components interrupts
;.include "../../../../../src/kernel/drivers/{driver_name}_int.asm"
.include "../../../../../src/kernel/drivers/soc/usart_int.asm"
; include components definitions
.include "../../../../../src/kernel/kernel_def.asm"
;.include "../../../../../src/kernel/... |
; A240933: a(n) = n^10 - n^9.
; 0,0,512,39366,786432,7812500,50388480,242121642,939524096,3099363912,9000000000,23579476910,56757583872,127253992476,268593608192,538207031250,1030792151040,1897406023952,3372107936256,5808378560022,9728000000000,15885600931620,25352653573632
mov $1,$0
sub $0,1
pow $1,9
mul $0,$1
|
//////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created: 20... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 42
call lwaitly_b
ld a, 40
ldff(41), a
ld a, 02
ldff(ff), a
xor a, a
ldff(0f), a
ei
ld a, b
inc a
inc a
ldff(45), a
ld c, 0f
.text@1000
lstatint:
ld a, 48
ldff(41), a
ldff(45), a
xor... |
_sh: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return 0;
}
int
main(void)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 83 ec 10 sub $0x10,%esp
stat... |
;[]-----------------------------------------------------------------[]
;| TAN.ASM -- trigonometric function |
;[]-----------------------------------------------------------------[]
;
; C/C++ Run Time Library - Version 10.0
;
; Copyright (c) 1991, 2000 by Inprise Corporation... |
;
; Maskierung.asm
;
; Created: 07/05/2021 14:26:56
; Author : Markus
;
.INCLUDE "m16def.inc"
init:
; Setup Bit-Mask
LDI R16, 0b00001111 ; low-nibbl Mask
LDI R17, 0b11110000 ; high-nibbl Mask
LDI R18, 0 ; Register for low nibbl mask
LDI R19, 0 ; Register for high nibbl mask
LDI R20, 0xff ; Initialize POR... |
# mp_limb_t mulredc13(mp_limb_t * z, const mp_limb_t * x, const mp_limb_t * y,
# const mp_limb_t *m, mp_limb_t inv_m);
#
# Stack:
# inv_m ## parameters
# m
# y
# x
# z (4*(2k+7))%esp
# ??? (1 limb???)
# ebp ## pushed registers (4*(2k+5))%esp
# ed... |
#include <iostream>
using namespace std;
int Find_Set(int *parent,int x);
void Union_set(int *parent, int x, int y);
int main()
{
int n, m;
cin >> n >> m; // m = number of operations , n = number of sets
int *parent = new int[n + 1];
for (int i = 0; i <= n; i++)
parent[i] = i;
for (int i = 0; i < m; i++)
{
i... |
dp2(8) g35<1>.xF g34<4>.xyyyF g34<4>.xyyyF { align16 1Q };
dp2(8) g4<1>.yF g1<0>.xyyyF g1.4<0>.xyyyF { align16 NoDDClr 1Q };
dp2(8) g4<1>.zF g1<0>.xyyyF g1.4<0>.zwwwF { align16 NoDDClr,NoDDChk 1Q };
dp2(8) g4<1>.wF g1<0>.xyyyF g2<0>.xy... |
; A053508: a(n) = binomial(n-1,3)*n^(n-4).
; Submitted by Jon Maiga
; 0,0,0,1,20,360,6860,143360,3306744,84000000,2338460520,70946979840,2332989862060,82726831323136,3148511132812500,128071114403348480,5546563698427324720,254873089955815096320,12387799656377835411984,635043840000000000000000,34247814444393128760004740,... |
;;; traps.asm
;;; Sets up the interrupt service routines (system calls)
;; fill all traps with the halt routine
.orig 0x20 ; traps go from 0x20 to 0xff, 0xe0 traps total
.blkw 0xe0, 0xfd70 ; halt address
;; fill standard traps with addresses of their routines
... |
/*
Author: Jason Williams <jdw@cromulence.com>
Copyright (c) 2015 Cromulence LLC
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 u... |
; A010981: Binomial coefficient C(n,28).
; 1,29,435,4495,35960,237336,1344904,6724520,30260340,124403620,472733756,1676056044,5586853480,17620076360,52860229080,151532656696,416714805914,1103068603890,2818953098830,6973199770790,16735679449896,39049918716424,88749815264600,196793068630200,426384982032100,90393616190805... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>gettid() -> str
Invokes the syscall gettid.
See 'man 2 gettid' for more information.
Arguments:
Returns:
pid_t
</%docstring>
<%page args=""/>
<%
abi = pwnlib.abi.ABI.syscall()
stack = abi.s... |
; int find_file (char *filename, struct flos_file file);
; CALLER linkage for function pointers
;
; $Id: find_file.asm,v 1.4 2016-06-22 22:13:09 dom Exp $
;
SECTION code_clib
PUBLIC find_file
PUBLIC _find_file
EXTERN asm_find_file
find_file:
_find_file:
pop bc
pop de ; ptr to file struct
pop hl ; ptr to file... |
; void *sms_set_vram(unsigned char c, unsigned int n)
SECTION code_clib
SECTION code_crt_common
PUBLIC _sms_set_vram_callee
EXTERN asm_sms_set_vram
_sms_set_vram_callee:
pop hl
dec sp
pop af
pop bc
push hl
jp asm_sms_set_vram
|
//===--- ImportType.cpp - Import Clang Types ------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x13320, %rdx
nop
dec %rax
movl $0x61626364, (%rdx)
nop
nop
and $33202, %rdx
lea addresses_UC_ht+0x112e0, %r10
nop
nop
nop
xor $15242, %r11
mov $0x616263646... |
; A092041: Decimal expansion of cube root of e.
; 1,3,9,5,6,1,2,4,2,5,0,8,6,0,8,9,5,2,8,6,2,8,1,2,5,3,1,9,6,0,2,5,8,6,8,3,7,5,9,7,9,0,6,5,1,5,1,9,9,4,0,6,9,8,2,6,1,7,5,1,6,7,0,6,0,3,1,7,3,9,0,1,5,6,4,5,9,5,1,8,4,6,9,6,9,7,8,8,8,1,7,2,9,5,8,3,0,2,2,4
mov $2,1
mov $3,$0
mul $3,5
lpb $3
mul $2,$3
mul $2,3
add $1,$2... |
; A maphack for Warcraft 3 1.24d. WC3 sets the visibility of the map every frame via a call to memset that
; looks like:
; 6F40B446 . 52 PUSH EDX
; 6F40B447 6A 00 PUSH 0
; 6F40B449 . 50 PUSH EAX
; 6F40B44A . ... |
; A109794: a(2n) = A001906(n+1), a(2n+1) = A002878(n).
; Submitted by Jamie Morken(s3)
; 1,1,3,4,8,11,21,29,55,76,144,199,377,521,987,1364,2584,3571,6765,9349,17711,24476,46368,64079,121393,167761,317811,439204,832040,1149851,2178309,3010349,5702887,7881196,14930352,20633239,39088169,54018521,102334155,141422324,267914... |
//===-- XCoreFrameLowering.cpp - Frame info for XCore Target --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
; A221957: Number of n X n rook placements avoiding the pattern 012.
; Submitted by Jon Maiga
; 1,2,7,31,159,921,5988,43632,355491,3223729,32329668,355979064,4273100846,55555511298,777797216472,11667035805840,186672873433635,3173440015174905,57121924810715940,1085316589076234760,21706331850447959610,4558329691285360890... |
; A196593: Number of fixed tree-like convex polyominoes.
; 1,2,6,18,51,134,328,758,1677,3594,7530,15530,31687,64190,129420,260142,521889,1045730,2093806,4190402,8384091,16772022,33548496,67102118,134210101,268426874,536861298,1073731098,2147471727,4294954094,8589920020,17179853150,34359720777,68719457490,137438932470,2... |
; A143433: Expansion of f(-x, x^3) in powers of x where f(,) is Ramanujan's general theta function.
; Submitted by Jamie Morken(s3)
; 1,-1,0,1,0,0,-1,0,0,0,-1,0,0,0,0,1,0,0,0,0,0,-1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0... |
; A127069: Number of lines in a Pauli graph of order n.
; 15,45,153,561,2145,8385,33153,131841,525825,2100225,8394753,33566721,134242305,536920065,2147581953,8590131201,34360131585,137439739905,549757386753,2199026401281,8796099313665,35184384671745
add $0,2
mov $1,2
pow $1,$0
add $1,2
bin $1,2
mov $0,$1
|
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... |
TITLE Assignment Three (Assign3.asm)
; Name: Abhijeet Chopra
; CWID: 50180612
; Date: 17 Nov,16
; Due : 11:59pm, Wednesday, 30 Nov
; Program Description:
;
; Step1: Write an assembly procedure which computes the following:
; int f(n) /* n is a positive integer */
; if (n<=3) return 1;
; /*... |
; A127262: a(0)=2, a(1)=2, a(n) = 2*a(n-1) + 12*a(n-2).
; 2,2,28,80,496,1952,9856,43136,204544,926720,4307968,19736576,91168768,419176448,1932378112,8894873600,40978284544,188695052288,869129519104,4002599665664,18434753560576,84900703109120
mov $4,$0
mov $5,$0
add $5,1
lpb $5,1
mov $0,$4
sub $5,1
sub $0,$5
mo... |
; A026608: a(n) = number of 2's between n-th 1 and (n+1)st 1 in A026600.
; 2,0,2,0,1,1,1,2,1,0,1,1,1,2,0,2,0,1,1,2,0,2,0,2,0,1,2,0,1,1,1,2,0,2,0,1,1,2,0,2,0,2,0,1,1,2,0,2,0,1,1,1,2,0,1,2,0,2,0,2,0,1,1,2,0,2,0,1,1,1,2,1,0,1,1,1,2,0,2,0,2,0,1,1,1,2,0,2,0,1,1,2,0,2,0,2,0,1,1,2,0,2,0,1,1,1,2,0,1,2,0,2,0,2,0,1,1,2,0,2,0,1,1... |
#include "stdafx.h"
#include "../xrRender/du_sphere.h"
#include "../xrRenderDX10/dx10BufferUtils.h"
void CRenderTarget::accum_point_geom_create()
{
// vertices
{
u32 vCount = DU_SPHERE_NUMVERTEX;
u32 vSize = 3*4;
R_CHK( dx10BufferUtils::CreateVertexBuffer( &g_accum_point_vb, du_sphere_vertices, vCount*vS... |
.const BASIC = $0401
.const GLOBALS = $0470
.const PETSCIITABLE = $04f0
.const MAIN = $0539 // 1337
.const ZP_BACKUP = $7d00
.const VVRAM = $7e00
.const VRAM = $8000
.const VVRAM_SIZE = $0160
.const VVRAM_END = VVRAM + VVRAM_SIZE
.const VVRAM_TEMP = $7000
// VVRAM ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x471c, %r9
clflush (%r9)
nop
nop
nop
nop
cmp %rcx, %rcx
mov $0x6162636465666768, %r15
movq %r15, (%r9)
nop
and $35442, %r12
lea addresses_A_ht+0x1be1c, %rsi
nop
sub %rbp, %rbp
... |
#include "Cmdline.h"
#include "Disk.h"
#include "FoldMask.h"
#include "ImageIO.h"
#include "Maths.h"
#include "Geometry.h"
#include "CPicBase.h"
#include "Memory.h"
#include "numerical_recipes.h"
/* --------------------------------------------------------------- */
/* CArgs_tiny -----------------------------------... |
; A121956: a(n) = a(n-1) + (n-2)*a(n-2) + a(n-3) starting a(0)=0, a(1)=a(2)=1.
; Submitted by Jon Maiga
; 0,1,1,2,5,12,34,99,315,1042,3661,13354,51006,201561,826987,3498286,15277665,68578942,316519868,1497639547,7263576113,36035247374,182804409181,946808180148,5004540429504,26963932982089,148019711470333,82712257645206... |
; A021983: Decimal expansion of 1/979.
; Submitted by Jon Maiga
; 0,0,1,0,2,1,4,5,0,4,5,9,6,5,2,7,0,6,8,4,3,7,1,8,0,7,9,6,7,3,1,3,5,8,5,2,9,1,1,1,3,3,8,1,0,0,1,0,2,1,4,5,0,4,5,9,6,5,2,7,0,6,8,4,3,7,1,8,0,7,9,6,7,3,1,3,5,8,5,2,9,1,1,1,3,3,8,1,0,0,1,0,2,1,4,5,0,4,5
seq $0,83811 ; Numbers n such that 2n+1 is the digit re... |
; A017340: a(n) = (10*n + 5)^12.
; 244140625,129746337890625,59604644775390625,3379220508056640625,68952523554931640625,766217865410400390625,5688009063105712890625,31676352024078369140625,142241757136172119140625,540360087662636962890625,1795856326022129150390625,5350250105473711181640625,14551915228366851806640625,36... |
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at www.aome... |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
;===============================================================================
; Copyright 2015-2021 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... |
; A040133: Continued fraction for sqrt(146).
; Submitted by Christian Krause
; 12,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12,24,12
trn $0,1
mod $0,2
mul $0,12
add $0,12
|
// Copyright 2015 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 <stddef.h>
#include <string>
#include <unordered_set>
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/format_macros.h"
... |
;
; Old School Computer Architecture - interfacing FLOS
; Stefano Bodrato, 2012
;
; void set_load_length(unsigned long length);
;
; Forces the read length of the file transfer to a certain value (use after find file)
;
; Input Registers :
; IX:IY = Bytes to load
;
;
; $Id: set_load_length.asm,v 1.2 2012/03/08 07:16:46 ... |
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
main proc
mov ah,02h
mov cx,256 ;c=256
mov dx,0
int 21h
label:
int 21h
inc dx
dec cx
jn... |
; A073089: a(n) = (1/2)*(4n - 3 - Sum_{k=1..n} A007400(k)).
; 0,0,1,1,1,0,0,1,1,0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,0,0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,1,0,0,1,0,0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,1,0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,0,0,1,1,0,0,0,1,0,0,1,1
lpb $0
add $1,1
sub $2,$0
trn $0,2
dif $0,$1
mo... |
segment .data
a: dq 10
b: dq 11
mul: dw "Product" ,10 , 0
fmt: dq "%s %lld\n", 10, 0
segment .text
global main
extern printf
main:
push RBP
mov RAX , [a]
mov RDX, [b]
mul RDX
mov RDI, fmt
mov RSI, mul
mov RDX, RAX
mov RAX , 0
call printf
pop RBP
ret
|
/* The following code example is taken from the book
* "C++ Templates - The Complete Guide"
* by David Vandevoorde and Nicolai M. Josuttis, Addison-Wesley, 2002
*
* (C) Copyright David Vandevoorde and Nicolai M. Josuttis 2002.
* Permission to copy, use, modify, sell and distribute this software
* is granted provi... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
PAGE ,132
TITLE PRINTER.SYS INT2FH Code
;****************** START OF SPECIFICATIONS **************************
;
; MODULE NAME: PRTINT2F.ASM
;
; DES... |
/*
* Copyright (c) 2014 The WebRTC 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 contribut... |
#include "Master.h"
#include "misc.h"
#include <algorithm>
#include <math.h>
#include <functional>
#include <random>
Master::Master(string filename, string alg){
isValidExecutions = 0;
algorithm = alg;
sat_solver = "default";
if(ends_with(filename, "smt2")){
#ifdef NOSMT
print_err("Worki... |
.code
syscall_handler proc
mov r10, rcx
mov eax, 000h ; syscall number will be dynamically set by syscall::setup
syscall
ret
syscall_handler endp
end |
; A040837: Continued fraction for sqrt(867).
; 29,2,4,29,4,2,58,2,4,29,4,2,58,2,4,29,4,2,58,2,4,29,4,2,58,2,4,29,4,2,58,2,4,29,4,2,58,2,4,29,4,2,58,2,4,29,4,2,58,2,4,29,4,2,58,2,4,29,4,2,58,2,4,29,4,2,58,2,4,29,4,2,58,2,4,29,4,2,58,2,4
seq $0,10144 ; Continued fraction for sqrt(59).
seq $0,90771 ; Numbers that are con... |
#ifndef SIMULATION_H
#define SIMULATION_H
#include <list>
#include <map>
#include "topology/topology.hpp"
#include "simulation/event.hpp"
#include "utils/pktdumper.hpp"
#include "traffic/triggerGenerator.hpp"
#include "traffic/incastGenerator.hpp"
typedef struct Simulation
{
std::shared_ptr<Topology> topo;
/... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r9
push %rbp
push %rdx
push %rsi
lea addresses_A_ht+0x1cbd9, %rdx
dec %rsi
mov $0x6162636465666768, %rbp
movq %rbp, %xmm5
vmovups %ymm5, (%rdx)
nop
add $53958, %rsi
lea addresses_WC_ht+0x119b5, %r14
nop
nop
nop
nop
add $5223, %r10
mov $0x6... |
copyright zengfr site:http://github.com/zengfr/romhack
000F80 move.w D6, D5 [base+290, base+2B0, base+2D0]
000F8C lea (-$b28,A5), A4 [base+290, base+2B0, base+2D0]
0029B6 move.w D1, ($8,A4)
0029BA lea (-$20,A4), A4
002ACE cmp.w ($8,A4), D0 [base+28E, base+2AE, base+2CE]
002AD2 beq $2adc [base+2... |
; A262480: Number of trivial c-Wilf equivalence classes in the symmetric group S_n.
; Submitted by Jon Maiga
; 1,1,1,2,8,32,192,1272,10176,90816,908160,9980160,119761920,1556766720,21794734080,326918753280,5230700052480,88921859604480,1600593472880640,30411275148656640,608225502973132800,12772735543856332800,2810001819... |
;
; C128 pseudo graphics routines
; Version for the 2x3 graphics symbols (UDG redefined)
;
;
; Written by Stefano Bodrato 2020
;
;
; Reset pixel at (x,y) coordinate.
;
;
; $Id: respixl.asm $
;
INCLUDE "graphics/grafix.inc"
SECTION code_clib
PUBLIC respixel
EXTERN div3_0
EXTERN __gfx... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1442, %rsi
lea addresses_WC_ht+0x1ec52, %rdi
nop
add $63703, %r13
mov $30, %rcx
rep movsq
nop
nop
nop
nop
nop
sub $19263, %rbx
lea addresses_A_ht+0xd4f2, %r13
nop
nop
sub... |
; A020873: a(n) = number of cycles in Moebius ladder M_n.
; 2,3,7,15,29,53,95,171,313,585,1115,2159,4229,8349,16567,32979,65777,131345,262451,524631,1048957,2097573,4194767,8389115,16777769,33555033,67109515,134218431,268436213,536871725,1073742695,2147484579,4294968289,8589935649,17179870307,34359739559,68719477997,13... |
dnl AMD K6 mpn_divrem_1 -- mpn by limb division.
dnl Copyright 1999, 2000, 2001, 2002, 2003, 2007 Free Software Foundation,
dnl Inc.
dnl
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
dnl modify it under the terms of the GNU Lesser General... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.