text stringlengths 1 1.05M |
|---|
; A178115: a(n)=(-1)^C(n+1,2)*(F(n+1)*(1+(-1)^n)/2+F(n+2)*(1-(-1)^n)/2).
; Submitted by Jamie Morken(s1)
; 1,-2,-2,5,5,-13,-13,34,34,-89,-89,233,233,-610,-610,1597,1597,-4181,-4181,10946,10946,-28657,-28657,75025,75025,-196418,-196418,514229,514229,-1346269,-1346269,3524578,3524578,-9227465,-9227465,24157817
mov $2,$0... |
; A047925: 3rd column of array in A038150.
; 8,16,29,37,50,63,71,84,92,105,118,126,139,152,160,173,181,194,207,215,228,236,249,262,270,283,296,304,317,325,338,351,359,372,385,393,406,414,427,440,448,461,469,482,495,503,516,529,537,550,558,571,584,592
seq $0,26352 ; a(n) = floor(n*tau)+n+1.
seq $0,276885 ; Sums-complem... |
; DCL_PI_A1.asm - Series PI controller on C28x (fixed point) [r1.02]
;
; Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
; ALL RIGHTS RESERVED
.if __TI_EABI__
.asg DCL_runPI_A1, _DCL_runPI_A1
.endif
.global _DCL_runPI_A1
.sect "dcl32funcs"
; C prototype: int32_t DCL_runPI_A1(DCL_P... |
; A047434: Numbers that are congruent to {0, 2, 4, 5, 6} mod 8.
; 0,2,4,5,6,8,10,12,13,14,16,18,20,21,22,24,26,28,29,30,32,34,36,37,38,40,42,44,45,46,48,50,52,53,54,56,58,60,61,62,64,66,68,69,70,72,74,76,77,78,80,82,84,85,86,88,90,92,93,94,96,98,100,101,102
mov $2,$0
lpb $0,1
sub $0,1
add $1,2
trn $2,$1
trn $1... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="name, length"/>
<%docstring>
Invokes the syscall setdomainname. See 'man 2 setdomainname' for more information.
Arguments:
name(char): name
len(size_t): len
</%docstring>
${syscall('SYS_setdomainname', name, length)}
|
;
; char *asm_strcpy(char *dest, char *src);
;
BITS 64
SECTION .text
GLOBAL asm_strcpy
asm_strcpy:
PUSH RCX
MOV RCX, -1
_loop:
INC RCX
MOV AL, BYTE [RSI + RCX]
MOV BYTE [RDI + RCX], AL
CMP BYTE [RSI + RCX], 0
JNE _loop
_end:
MOV RAX, RDI
POP RCX
RET
|
//---------------------------------------------------------------------------//
// Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// 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
//
// See http://boostorg.gi... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x12541, %rsi
lea addresses_A_ht+0x171, %rdi
nop
nop
nop
add %r13, %r13
mov $117, %rcx
rep movsl
nop
nop
dec %r15
lea addresses_UC_ht+0x13ee1, %r8
nop
nop
nop
nop
add %rdi, ... |
;Jakub Pilch
;Informatyka IEiT
data segment
tabl db 127 dup (?) ;tablica 127 elementów po 1 bajcie (max input)
licz dw 1 ;licznik przeladowanych danych
argz dw 1 ;licznik argrumentow (oddzielonych spacjami/tabulatorem)
len... |
; A055899: Column 3 of triangle A055898.
; 1,7,31,101,272,636,1340,2600,4725,8135,13391,21217,32536,48496,70512,100296,139905,191775,258775,344245,452056,586652,753116,957216,1205477,1505231,1864695,2293025,2800400,3398080,4098496,4915312
mov $16,$0
mov $18,$0
add $18,1
lpb $18,1
clr $0,16
mov $0,$16
sub $18,1
... |
#ifndef RTMATH_H
#define RTMATH_H
/* This contains some extra math/utility definitions for ray tracing. */
/* Delta function - equals 1 if x equals zero, 0 otherwise. Note the very generous delta epsilon. */
#define delta(x) (float)(std::abs(x) <= 1e-3f)
/* Uniform number generation (for C++11 PRNG's only). */
#defi... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.1.4 #12274 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
; A066079: Arises in detailed black hole state counting in loop quantum gravity.
; 3,8,15,24,35,63,80,99,120,143,168,195,224,255
mov $1,2
mov $2,$0
mov $3,$0
lpb $2
mod $2,5
add $3,1
lpe
add $1,$3
pow $1,2
sub $1,1
mov $0,$1
|
;This file contain tests for the various function of math.asm and printing.asm
;It should be printed as 'reflet-nasm libtesting.asm math.asm printing.asm -o out.bin'
;It can then be tested as following: (TODO when the simulator will have a nice cli write a tuto here)
@import libs/import_all_libs.asm
@align_word
label... |
#include "../lib/mainwindow.h"
#include "../lib/fileio.h"
#include "../lib/employee.h"
#include <QApplication>
#include <time.h>
#include <cstdlib>
int main(int argc, char *argv[])
{
srand(time(NULL));
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin Developers
// Copyright (c) 2011-2017 The Peercoin developers
// Copyright (c) 2017-2018 The Stronghands developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/lice... |
; ===============================================================
; October 2014
; ===============================================================
;
; int close(int fd)
;
; Flush and then close the file.
;
; ===============================================================
INCLUDE "clib_cfg.asm"
SECTION code_clib
SEC... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x17163, %rsi
lea addresses_normal_ht+0x18153, %rdi
nop
inc %r15
mov $58, %rcx
rep movsl
nop
cmp %rcx, %rcx
lea addresses_normal_ht+0xe953, %rsi
lea addresses_normal_ht+0x... |
; A213776: Antidiagonal sums of the convolution array A213774.
; 1,8,30,81,184,376,717,1304,2294,3941,6656,11104,18361,30168,49342,80441,130840,212472,344645,558600,904886,1465293,2372160,3839616,6214129,10056296,16273182,26332449,42608824,68944696,111557181,180505784,292067126,472577333,764649152,1237231456,2001885865... |
db DEX_MACHOP ; pokedex id
db 70, 80, 50, 35, 35
; hp atk def spd spc
db FIGHTING, FIGHTING ; type
db 180 ; catch rate
db 88 ; base exp
INCBIN "gfx/pokemon/front/machop.pic", 0, 1 ; sprite dimensions
dw MachopPicFront, MachopPicBack
db KARATE_CHOP, NO_MOVE, NO_MOVE, NO_MOVE ; level 1 learnset
d... |
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
XLIB l_le
;
; DE <= HL [signed]
; set carry if true
.l_le
ld a,d
add a,$80
ld b,a
ld a,h
add a,$80
cp b
ccf
ret nz
ld a,l
cp e... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r14
push %r8
push %r9
push %rdi
lea addresses_A_ht+0x1759a, %r9
nop
nop
nop
nop
nop
cmp %r12, %r12
mov $0x6162636465666768, %r8
movq %r8, (%r9)
nop
nop
nop
cmp $11047, %r11
lea addresses_WT_ht+0x14c74, %rdi
nop
dec %r10
movb $0x61, (%rdi)
... |
#include "test_threads.h"
#include <future>
#include <functional>
#include <chrono>
using namespace std::chrono_literals;
int main(int argc, char** argv)
{
int rc = test_threads();
return rc;
}
|
/*
* Copyright (C) 2021 Alibaba Inc. All rights reserved.
* Author: Kraken Team.
*/
#include "bridge_qjs.h"
#include "gtest/gtest.h"
TEST(Context, isValid) {
auto bridge = new kraken::JSBridge(0, [](int32_t contextId, const char* errmsg) {});
EXPECT_EQ(bridge->getContext()->isValid(), true);
delete bridge;
}... |
; A063204: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 25 ).
; 0,3,7,9,13,16,19,22,26,28,32,35,38,41,45,47,51,54,57,60,64,66,70,73,76,79,83,85,89,92,95,98,102,104,108,111,114,117,121,123,127,130,133,136,140,142,146,149,152,155
add $0,3
mul $0,19
seq $0,10764 ; a(n) = floor(n/2) mod floor(n/3).
s... |
; ===============================================================
; Jan 2014
; ===============================================================
;
; int puts(const char *s)
;
; Write string to stdout followed by a '\n'.
; Return number of bytes written.
;
; ==============================================================... |
/*
* Copyright 2016 Advanced Micro Devices, Inc.
*
* 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, m... |
; A171965: Partial sums of floor(n^2/6) (A056827).
; 0,0,0,1,3,7,13,21,31,44,60,80,104,132,164,201,243,291,345,405,471,544,624,712,808,912,1024,1145,1275,1415,1565,1725,1895,2076,2268,2472,2688,2916,3156,3409,3675,3955,4249,4557,4879,5216,5568,5936,6320,6720,7136,7569,8019,8487,8973,9477,9999,10540,11100,11680,12280,12... |
; A171781: Numbers for which the second bit of the binary expansion is equal to the last bit.
; Submitted by Jon Maiga
; 2,3,4,7,8,10,13,15,16,18,20,22,25,27,29,31,32,34,36,38,40,42,44,46,49,51,53,55,57,59,61,63,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,97,99,101,103,105,107,109,111,113,115,117,119,121,123,125,12... |
; A224882: G.f.: 1/(1 - 32*x)^(1/16).
; Submitted by Christian Krause
; 1,2,34,748,18326,476476,12864852,356540184,10072260198,288738125676,8373405644604,245112419778408,7230816383463036,214699624924363992,6410317372741724904,192309521182251747120,5793324325615333881990,175162864903898918549580
mov $1,1
mov $2,1
mov $... |
MOV A,#1
START:
RLC A
SJMP START |
SECTION "Map_3828", ROM0[$B800]
Map_3828_Header:
hdr_tileset 0
hdr_dimensions 14, 9
hdr_pointers_a Map_3828_Blocks, Map_3828_TextPointers
hdr_pointers_b Map_3828_Script, Map_3828_Objects
hdr_pointers_c Map_3828_InitScript, Map_3828_RAMScript
hdr_palette $06
... |
; decoder.nasm - A decoder for ROL3 shellcode
; Assignment 4 of SLAE32 course
; 2018-07-05 Thomas Karpiniec
; Compile with encoded PAYLOAD
; nasm -f elf32 -o decoder.o -DPAYLOAD="0x90,0x90,..." decoder.nasm
global _start
_start:
jmp short payload_to_stack
decoder:
; Need to rotate each byte once to the... |
/*
* Copyright (c) 2020-2021 Samsung Electronics Co., Ltd. All rights reserved.
* 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 righ... |
//
// Copyright 2019 Autodesk
//
// 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 to in ... |
; A055236: Sums of two powers of 4.
; 2,5,8,17,20,32,65,68,80,128,257,260,272,320,512,1025,1028,1040,1088,1280,2048,4097,4100,4112,4160,4352,5120,8192,16385,16388,16400,16448,16640,17408,20480,32768,65537,65540,65552,65600,65792,66560,69632,81920,131072,262145,262148,262160,262208,262400,263168,266240,278528,327680,524... |
;
; Copyright (C) 1996-2006 by Narech K. All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are
; met:
;
; 1. Redistributions of source code must retain the above copyright
; notice, this list of co... |
; ---------------------------------------------------------------------------
; Animation script - lava balls
; ---------------------------------------------------------------------------
dc.w byte_E4CC-Ani_obj14
dc.w byte_E4D2-Ani_obj14
dc.w byte_E4D6-Ani_obj14
dc.w byte_E4DC-Ani_obj14
byte_E4CC: dc.b 5... |
// 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.
//
// File: clsload.hpp
//
//
//
// ============================================================================
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x19fd5, %rsi
nop
cmp %r10, %r10
movw $0x6162, (%rsi)
nop
nop
nop
add $43850, %rbx
lea addresses_WT_ht+0x1493d, %r11
nop
nop
nop
nop
nop
xor $33216, %r10
movb (%r11), %cl
nop
... |
; A297109: If n is prime(k)^e, e >= 1, then a(n) = k, otherwise 0.
; 0,1,2,1,3,0,4,1,2,0,5,0,6,0,0,1,7,0,8,0,0,0,9,0,3,0,2,0,10,0,11,1,0,0,0,0,12,0,0,0,13,0,14,0,0,0,15,0,4,0,0,0,16,0,0,0,0,0,17,0,18,0,0,1,0,0,19,0,0,0,20,0,21,0,0,0,0,0,22,0,2,0,23,0,0,0,0,0,24,0,0,0,0,0,0,0,25,0,0,0
seq $0,20500 ; Cyclotomic polynomi... |
db 0 ; species ID placeholder
db 73, 100, 60, 65, 100, 60
; hp atk def spd sat sdf
db POISON, POISON ; type
db 90 ; catch rate
db 165 ; 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/seviper/... |
;-- Hash function configuration --------------------------------------------
hash_ror_value equ 0x01
;-- Function hashes --------------------------------------------------------
hash_kernel32_LoadLibraryA equ 0x1AAA
hash_ole32_CoInitialize equ 0xF0DA
hash_ole32_CoIn... |
; A083421: a(n)=2*5^n-2^n.
; 1,8,46,242,1234,6218,31186,156122,780994,3905738,19530226,97654202,488277154,2441398058,12207014866,61035123482,305175715714,1525878775178,7629394269106,38146972131962,190734862232674
mov $2,5
pow $2,$0
mov $3,$0
mov $0,2
pow $0,$3
mov $1,2
mul $1,$2
sub $1,$0
mov $0,$1
|
; A075666: Sum of next n 5th powers.
; Submitted by Jon Maiga
; 1,275,11925,208624,2078375,14118201,72758875,304553600,1084203549,3390961375,9540835601,24582546000,58801331875,131987718149,280410672375,567799960576,1102105900025,2060382328875,3724847929549,6534040766000,11154010982751,18575718271825,30246236395475,4824... |
#include "ARemote.h"
#include <ui/DisplayInfo.h>
#include <ui/PixelFormat.h>
#include "Event.Display.Debug.h"
#include "Event.Display.API.h"
namespace Event
{
[[ maybe_unused ]] static inline const char *ImgTypeString[] =
{
"raw",
"bmp",
"bmz",
"sdl",
"jpg",
"pn... |
#include <iostream>
void needInt(int i)
{
std::cout << "int: " << i << std::endl;
}
int main()
{
std::cout << std::endl;
double d{1.234};
std::cout << "double: " << d << std::endl;
needInt(d);
std::cout << std::endl;
} |
/*******************************************************************\
Module:
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
#include "c_qualifiers.h"
#include <ostream>
std::string c_qualifierst::as_string() const
{
std::string qualifiers;
... |
;------------------------------------------------------------------------------
; @file
; Build paging tables dynamically for x64 mode
;
; Copyright (c) 2020 Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;--------------------------------------------------------------------... |
; Variables on stack
; $3Exx
; 00 end of stack
; 01..1A string array: 2 bytes of length + 1 byte dimensions + content
; 21..3A numeric array: 2 bytes of length + 1 byte dimensions + content
; 41..5A simple string: 2 bytes of max length + 2 bytes of actual length + content
; 61..7A simple numeric: 5 bytes
; 7B REPEAT, ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x19c4c, %rdx
nop
nop
and $26880, %rbx
mov (%rdx), %r8d
nop
xor %r11, %r11
lea addresses_A_ht+0x1a744, %rdi
clflush (%rdi)
nop
nop
nop
nop
add $7180, %r13
mov (%rdi), ... |
;; ----------------------------------------------------------------------------
;;
;; Copyright (c) Microsoft Corporation. All rights reserved.
;;
;; ----------------------------------------------------------------------------
include hal.inc
SYMFIX(?KdNotifyTrap@@YIXPAUKdDebugTrapData@@@Z) proc
... |
; A129527: a(2n) = a(n) + 2n, a(2n+1) = 2n + 1.
; 0,1,3,3,7,5,9,7,15,9,15,11,21,13,21,15,31,17,27,19,35,21,33,23,45,25,39,27,49,29,45,31,63,33,51,35,63,37,57,39,75,41,63,43,77,45,69,47,93,49,75,51,91,53,81,55,105,57,87,59,105,61,93,63,127,65,99,67,119,69,105,71,135,73,111,75,133,77,117,79,155,81,123,83,147,85,129,87,16... |
.global s_prepare_buffers
s_prepare_buffers:
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xdff7, %rsi
lea addresses_D_ht+0x10227, %rdi
nop
nop
nop
nop
inc %rax
mov $122, %rcx
rep movsb
add %rbx, %rbx
lea addresses_UC_ht+0x3cb7, %rdi
add $40946, %r9
movl $0x61626364, (%rdi)
a... |
#include "spark_precompiled.h"
#include <AzTest/AzTest.h>
class sparkTest
: public ::testing::Test
{
protected:
void SetUp() override
{
}
void TearDown() override
{
}
};
TEST_F(sparkTest, ExampleTest)
{
ASSERT_TRUE(true);
}
AZ_UNIT_TEST_HOOK();
|
; this file is part of Release, written by Malban in 2017
;
HAS_VOICE0 = 1
HAS_TONE0 = 1
FIRST7 = $3E
dw $0066
pattern14Data:
db $F3, $1E, $87, $A9, $E3, $DC, $79, $EA, $EE, $F7
db $1E, $78, $9E, $3B, $47, $9D, $67, $8E, $71, $E7
db $AB, $BB, $4F, $1E, $EE, $EF, $53, $C6, $BB, $B8
db $18, $7F, $EF, $47, $6F, $27,... |
.psx
.open "../build/SLUS_005_VANILLA.61", "../build/SLUS_005.61", 0x80010000-0x800
; Constants
PLAYER_ID_X equ 0x00
PLAYER_ID_ZERO equ 0x01
STAGE_ID_SPIDER equ 0x01
STAGE_ID_PEACOCK equ 0x06
STAGE_ID_OWL equ 0x07
STAGE_ID_DRAGOON equ 0x04
STAGE_ID_STINGRAY equ 0x05
STAGE_ID_MUSHROOM equ 0x03
STAGE_ID_BEAST equ 0x08
... |
global @ASM_strncmp@12
segment .text align=16
%define count 4
%define regCount esi
%define count4 edi
%define str1 ecx
%define str2 edx
%define tmpChar eax
%define tmpChar2 ebx
%define loTmpChar al
%define loTmpChar2 bl
%define result eax
@ASM_strncmp@12:
push count4
push regCount
push tm... |
; A095097: Fib000 numbers: those n for which the Zeckendorf expansion A014417(n) ends with three zeros.
; 8,13,18,21,26,29,34,39,42,47,52,55,60,63,68,73,76,81,84,89,94,97,102,107,110,115,118,123,128,131,136,141,144,149,152,157,162,165,170,173,178,183,186,191,196,199,204,207,212,217,220,225,228,233,238,241,246
mov $6,$... |
; ================================================================
; XM2GB replay routine
; ================================================================
; NOTE: For best results, place player code in ROM0.
; ===========
; Player code
; ===========
section "GBMod",rom0
GBMod:
GBM_LoadModule: jp GBM... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC ___sint2fs
EXTERN cm48_sdccixp_sint2ds
defc ___sint2fs = cm48_sdccixp_sint2ds
|
db DEX_BUTTERFREE ; pokedex id
db 60, 45, 50, 70, 80
; hp atk def spd spc
db BUG, FLYING ; type
db 45 ; catch rate
db 160 ; base exp
INCBIN "gfx/pokemon/front/butterfree.pic", 0, 1 ; sprite dimensions
dw ButterfreePicFront, ButterfreePicBack
db CONFUSION, NO_MOVE, NO_MOVE, NO_MOVE ; level 1 lear... |
#include <algorithm>
#include <assert.h>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <unordered_map>
#include <utility>
#include <vector>
using namespace std;
struct Node {
Node(){}
Node(Node * p,string t):parent(p),tag(t){}
Node *parent = nullptr;
string tag;
};
void Par... |
dword ],1,F_IMMED,RBRAC
.wp ONE
.wp STATE
.wp POKE
.wp EXIT
dword [,1,F_IMMED,LBRAC
.wp ZERO
.wp STATE
.wp POKE
.wp EXIT
dword \;,1,F_IMMED+F_COMPILEONLY,SEMICOLON
.comp EXIT
.wp REVEAL
.wp LBRAC
.wp EXIT
dword \:,1,,COLON
.wp HEADER
.lit $22
.wp CCOMMA
.comp DOCOL... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x17f0b, %rsi
lea addresses_UC_ht+0x1247, %rdi
nop
nop
and $21481, %r9
mov $24, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp %r13, %r13
lea addresses_UC_ht+0xaa47, %rsi
nop
nop
nop
nop... |
*= $0801
.byte $4c,$16,$08,$00,$97,$32
.byte $2c,$30,$3a,$9e,$32,$30
.byte $37,$30,$00,$00,$00,$a9
.byte $01,$85,$02
jsr print
.byte 13
.text "(up)decz"
.byte 0
lda #%00011011
sta db
lda #%11000110
st... |
; A128104: a(n) = largest multiple of n which is < exp(n).
; 2,6,18,52,145,402,1092,2976,8100,22020,59873,162744,442403,1202600,3269010,8886096,24154943,65659968,178482295,485165180,1318815729,3584912826,9744803438,26489122128,72004899325,195729609426
mov $2,$0
seq $0,107316 ; Floor(exp(n)/n).
add $2,1
add $3,$0
add $... |
.text
# To test the MEM_to_EX hazard
# To test the WB_to_EX hazard
# If the hazard is handled correctly, $a2 should be 8. Otherwise, it may be -1 or something else
addi $v0, $zero, 1
addiu $v1, $zero, 2
addiu $a0, $zero, 20
addiu $a1, $zero, 16
addi $t1, $zero, 1 # meaningless instruction, just to avoid other hazards
... |
PROGRAM 8
BR L1
L0:
PROC 4
LDLADDR 8
LDCINT 2
STOREW
LDLADDR -8
LOADW
LDLADDR -4
LOADW
LDLADDR 8
LOADW
ADD
STOREW
LDCSTR "m = "
PUTSTR
LDLADDR -8
LOADW
LOADW
PUTINT
LDCSTR ", n = "
PUTSTR
LDLADDR -4
LOADW
PUTINT
LDCSTR ", k = "
PUTSTR
L... |
// Copyright (c) 2006-2008 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/renderer/dom_ui_bindings.h"
#include "base/json_writer.h"
#include "base/stl_util-inl.h"
#include "base/values.h"
#include "chr... |
; A042415: Denominators of continued fraction convergents to sqrt(735).
; Submitted by Jon Maiga
; 1,9,487,4392,237655,2143287,115975153,1045919664,56595637009,510406652745,27618554885239,249077400619896,13477798188359623,121549261095856503,6577137897364610785,59315790337377353568,3209629816115741703457,289459841353790... |
;
; ANSI Video handling for Sharp OZ family
;
; CLS - Clear the text screen
;
;
; Stefano Bodrato - Aug. 2002
;
;
; $Id: f_ansi_cls.asm,v 1.4 2015/01/19 01:33:18 pauloscustodio Exp $
;
PUBLIC ansi_cls
EXTERN base_graphics
EXTERN swapgfxbk
EXTERN swapgfxbk1
.ansi_cls
call swapgfxbk
ld hl,(b... |
; A082181: a(0)=1; for n>=1, a(n) = sum(k=0..n, 9^k*N(n,k)), where N(n,k) =1/n*C(n,k)*C(n,k+1) are the Narayana numbers (A001263).
; Submitted by Christian Krause
; 1,1,10,109,1270,15562,198100,2596645,34825150,475697854,6595646860,92590323058,1313427716380,18798095833012,271118225915560,3936516861402901,57494017447915... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x15313, %r12
clflush (%r12)
nop
nop
nop
add %rbp, %rbp
mov (%r12), %r10d
nop
nop
sub $56400, %r10
lea addresses_WT_ht+0xf9ab, %r8
add $49020, %r9
mov (%r8), %r10d
nop
nop
nop
no... |
; A065330: a(n) = max { k | gcd(n, k) = k and gcd(k, 6) = 1 }.
; 1,1,1,1,5,1,7,1,1,5,11,1,13,7,5,1,17,1,19,5,7,11,23,1,25,13,1,7,29,5,31,1,11,17,35,1,37,19,13,5,41,7,43,11,5,23,47,1,49,25,17,13,53,1,55,7,19,29,59,5,61,31,7,1,65,11,67,17,23,35,71,1,73,37,25,19,77,13,79,5,1,41,83,7,85,43,29,11,89,5,91,23,31,47,95,1,97,49... |
/**
* Copyright (C) 2016 D Levin (http://www.kfrlib.com)
* This file is part of KFR
*
* KFR 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, either version 3 of the License, or
* (at your option) any lat... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xd893, %rsi
lea addresses_WC_ht+0xdb27, %rdi
sub $17849, %r9
mov $40, %rcx
rep movsl
nop
nop
add %r14, %r14
lea addresses_WC_ht+0x24b3, %rsi
lea addresses_A_ht+0x2b63, %rdi
clflush (%rd... |
; A003149: a(n) = Sum_{k=0..n} k!(n-k)!.
; Submitted by Christian Krause
; 1,2,5,16,64,312,1812,12288,95616,840960,8254080,89441280,1060369920,13649610240,189550368000,2824077312000,44927447040000,760034451456000,13622700994560000,257872110354432000,5140559166898176000,107637093007589376000,2361827297364885504000,54193... |
// Copyright 2015 Google Inc. 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... |
/******************************************************************************
* Copyright (c) 2017 Philipp Schubert.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Philipp Schubert and others
**********************... |
;; Code has been used from Philipp Oppermann's blog
;; @ https://os.phil-opp.com/
;; Copyright (c) 2019 Philipp Oppermann
global long_mode_start
STRING_OKAY: equ 0x2f592f412f4b2f4f
VGA_BUFFER_START: equ 0xb8000
section .text
; We should have enabled 64-bit long mode by now
bits 64
long_mode_start:
call res... |
dnl Alpha mpn_sub_n -- Subtract two limb vectors of the same length > 0
dnl and store difference in a third limb vector.
dnl Copyright 1995, 1999, 2000, 2005 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... |
VictoryRoad3Object:
db $7d ; border block
db $4 ; warps
db $7, $17, $3, VICTORY_ROAD_2
db $8, $1a, $5, VICTORY_ROAD_2
db $f, $1b, $4, VICTORY_ROAD_2
db $0, $2, $6, VICTORY_ROAD_2
db $0 ; signs
db $a ; objects
object SPRITE_BLACK_HAIR_BOY_1, $1c, $5, STAY, LEFT, $1, OPP_COOLTRAINER_M, $2
object SPRITE_LASS,... |
; returns in HL the video-lines count for current mode (ie. 0x137 for VGA ZX128)
; modifies: AF, BC, HL
; This algorithm works correctly only for modes with 258..511 video lines
; current core 3.1.5 conforms to this for all VGA/HDMI modes in any variant (min 261?)
findVLinesCount:
ld bc,TBBLUE_REGISTER_SELECT_... |
/**
* Copyright (c) 2019 Melown Technologies SE
*
* 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 the f... |
; void __CALLEE__ *calloc_callee(unsigned int nobj, unsigned int size)
; 12.2006 aralbrec
PUBLIC calloc_callee
EXTERN ASMDISP_CALLOC_CALLEE
EXTERN HeapCalloc_callee
EXTERN _heap, ASMDISP_HEAPCALLOC_CALLEE
.calloc_callee
pop hl
pop de
ex (sp),hl
.asmentry
; enter : hl = number of objects
; de = s... |
BITS 32
%include "inc/util.inc.asm"
call get_msg
db "OWNED BY I4K",0x0a
msg:
pop ecx
mov edx, 13
mov ebx, 1
mov eax, 4
int 0x80
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
jmp exit
get_msg: ... |
#pragma once
#include "Creature.hpp"
// Weaving allows the creation of new items of clothing from fibres.
// Unlike skinning, which just provides a straight evade or soak bonus,
// weaving provides a randomized number of free enchants based on the
// creature's Weaving skill.
class WeavingCalculator
{
public:
in... |
; 1 2 3 4 5 6 7
;234567890123456789012345678901234567890123456789012345678901234567890
;=====================================================================
;
; FUNCTION NAME: mat_zeros
; DOCUMENTATIONS: <See doc/description file>
;
; AUTHOR: ... |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
}
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 push %esi
5: 53 ... |
; unsigned char esx_m_tapein_info(uint8_t *drive,unsigned char *filename)
SECTION code_esxdos
PUBLIC _esx_m_tapein_info
EXTERN l0_esx_m_tapein_info_callee
_esx_m_tapein_info:
pop af
pop de
pop hl
push hl
push de
push af
jp l0_esx_m_tapein_info_callee
|
section .data
option_msg: db "Press: 1 - add | 2 - substract | 3 - multiply | 4 - divide", 0xA
option_msg_length equ $- option_msg
num_msg: db "Enter first number", 0xA
num_msg_length equ $- num_msg
add_msg: db "Add", 0xA
add_msg_length equ $- add_msg
sub_msg: db "Substract", 0x... |
MAP_SAMPLE
byte $00,$00,$00,$00,$08,$08,$10,$10,$40,$40,$40,$40,$00, $ff
byte $01,$01,$01,$01,$09,$09,$11,$11,$80,$80,$80,$80,$00, $ff
byte $02,$02,$02,$02,$0A,$0A,$12,$12,$C0,$C0,$C0,$C0,$00, $ff
byte $03,$03,$03,$03,$0B,$0B,$13,$13,$00,$00,$00,$00,$00, $ff
byte $04,$04,$04,$0... |
//
// main.cpp
//
// Created by Mikołaj Semeniuk on 04/04/2020.
// Copyright © 2020 Mikołaj Semeniuk. All rights reserved.
//
#include <iostream>
#include <vector> // needed for using std::vector
#include <set> // needed for using std::set
#include <numeric> // needed for using std::iota, std::accumulate
#include ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1245c, %r14
nop
nop
nop
and $42901, %rdx
mov (%r14), %r15d
nop
nop
nop
nop
nop
sub %rcx, %rcx
lea addresses_A_ht+0x1c2, %rsi
lea addresses_D_ht+0xdc2, %rdi
nop
nop
nop
no... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xf0e, %r9
nop
nop
nop
sub $708, %r15
movb $0x61, (%r9)
nop
cmp $16941, %rsi
lea addresses_WC_ht+0xa20e, %rsi
lea addresses_A_ht+0x1ab0e, %rdi
sub %rbx, %rbx
mov $55, %rcx
rep ... |
#pragma once
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <Eigen/Dense>
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/vec4.hpp>
#include <glm/mat4x4.hpp>
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
#include <iostream>
#include <string>
#includ... |
TITLE_CURSOR_X_OFFSET = 42
TITLE_CURSOR_Y_OFFSET = 102
load_menu:
; Reset scrolling to 0
lda #0
sta scrollX
sta scrollY
; Make sure we're not writing every 32nd byte rather than every single one, and force back to nametable 0
lda ppuCtrlBuffer
and #%11111000
sta ppuCtrlBuffer
jsr vblank_wait
lda ppuMaskBu... |
_KogaBeforeBattleText::
text "KOGA: Fwahahaha!"
para "A mere child like"
line "you dares to"
cont "challenge me?"
para "Very well, I"
line "shall show you"
cont "true terror as a"
cont "ninja master!"
para "You shall feel"
line "the despair of"
cont "poison and sleep"
cont "techniques!"
done
_KogaAfter... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xf8c1, %r11
nop
nop
nop
nop
add $57465, %rdi
mov (%r11), %r9
nop
nop
nop
cmp $61776, %r9
lea addresses_UC_ht+0x11ac1, %rax
nop
nop
nop
nop
and %rsi, %rsi
movl $0x61626364, (%ra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.