text stringlengths 1 1.05M |
|---|
; A082988: a(n)=sum(k=0,n,4^k*F(k)) where F(k) is the k-th Fibonacci number.
; 0,4,20,148,916,6036,38804,251796,1628052,10540948,68212628,441505684,2857424788,18493790100,119693957012,774676469652,5013809190804,32450060277652,210021188163476,1359285717096340,8797481879000980
lpb $0
mov $2,$0
sub $0,1
seq $2,1034... |
BITS 64
; Original shellcode written by Dad`
; http://shell-storm.org/shellcode/files/shellcode-806.php
global _start
section .text
_start:
xor rax, rax
mov r10, 0xff978cd091969dd0
not r10
push r10
mov rdi, rsp
cdq ; rdx = 0
push rdx
push rdi
mov rsi, rsp
mov al, 0x3b ;... |
// Copyright (c) 2017-2021 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAO_JSON_EVENTS_NON_FINITE_TO_EXCEPTION_HPP
#define TAO_JSON_EVENTS_NON_FINITE_TO_EXCEPTION_HPP
#include <cmath>
#include <stdexcept>
namespace tao::json::events
{
templat... |
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_l_sdcc
PUBLIC __mulsuchar_callee, __mulsuchar_callee_0
__mulsuchar_callee:
; 8-bit mixed multiply
;
; enter : stack = multiplicand (signed byte), multiplicand (byte), ret
;
; exit : hl = 16-bit product
pop af
pop hl
push af
... |
global _start
section .text
_start:
jmp get_address
decoder:
pop rsi ; Pop the address of 'shellcode' into %rsi as our "source code"
push 32 ; Length of the shellcode below
pop rcx
decode:
dec byte [rsi] ; Perform the decrement "inplace"
inc rsi ; Increment the address in %rsi by one
loop decode
jmp she... |
.386
.model FLAT,C
.stack 400h
.code
includelib libcmt.lib
includelib legacy_stdio_definitions.lib
extern printf:near
extern exit:near
public main
main proc
; Print the message
push offset message
call printf
; Exit the program with status 0
push 0
call exit
main endp
.data
... |
// Copyright (c) 2021 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <pika/config.hpp>
#include <cstddef>
#include <memory>
#if !d... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x5384, %rsi
lea addresses_UC_ht+0x184c4, %rdi
clflush (%rdi)
inc %rax
mov $125, %rcx
rep movsl
dec %rbx
lea addresses_normal_ht+0x170c4, %r8
clflush (%r8)
nop
dec %r10
mov $0x61626364656... |
/*
* All Video Processing kernels
* Copyright © <2010>, Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the ri... |
<% from pwnlib.shellcraft import arm, pretty, common %>
<%page args="in_fd = 'r6', size = 0x800, allocate_stack = True"/>
<%docstring> Reads to the stack from a directory.
Args:
in_fd (int/str): File descriptor to be read from.
size (int): Buffer size.
allocate_stack (bool): allocate 'size' bytes on the st... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r8
push %r9
push %rdi
push %rsi
// Load
lea addresses_RW+0x1fcbd, %rdi
nop
nop
cmp %r8, %r8
mov (%rdi), %r13d
nop
nop
nop
add $56158, %r9
// Store
lea addresses_UC+0x1da5d, %rdi
nop
and %r8, ... |
#include<bits/stdc++.h>
#include <unordered_map>
#include<unordered_set>
using namespace std;
#define _USE_MATH_DEFINES
# define M_PI 3.14159265358979323846 /* pi */
#define ll long long
#define ull unsigned long long
#define ld long double
#define vbe(v) ((v).begin()), ((v).end())
#define sz(v) ... |
SECTION code_fp_math48
PUBLIC asm_ilogb
EXTERN am48_ilogb
defc asm_ilogb = am48_ilogb
|
; A033547: Otto Haxel's guess for magic numbers of nuclear shells.
; 0,2,6,14,28,50,82,126,184,258,350,462,596,754,938,1150,1392,1666,1974,2318,2700,3122,3586,4094,4648,5250,5902,6606,7364,8178,9050,9982,10976,12034,13158,14350,15612,16946,18354,19838,21400,23042,24766,26574,28468,30450,32522,34686,36944,39298,41750,44... |
; A199563: 5*9^n+1.
; 6,46,406,3646,32806,295246,2657206,23914846,215233606,1937102446,17433922006,156905298046,1412147682406,12709329141646,114383962274806,1029455660473246,9265100944259206,83385908498332846,750473176484995606,6754258588364960446,60788327295284644006,547094945657561796046,4923854510918056164406,443146... |
; A345029: a(n) = Sum_{k=1..n} 3^(floor(n/k) - 1).
; Submitted by Jamie Morken(s4)
; 1,4,11,32,87,258,745,2224,6605,19784,59151,177438,531733,1595104,4783811,14351228,43049043,129147030,387427357,1162281532,3486804959,10460413130,31381119537,94143358500,282429716209,847289143468,2541866366735,7625599086782,228767940567... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1ad9f, %rsi
lea addresses_D_ht+0x12d9f, %rdi
and %r11, %r11
mov $31, %rcx
rep movsw
dec %rdx
lea addresses_A_ht+0x915a, %rsi
lea addresses_WC_ht+0x1aa88, %rdi
clflush (%rdi)
n... |
#ifndef OPENMW_ESM_LIGH_H
#define OPENMW_ESM_LIGH_H
#include <string>
namespace ESM
{
class ESMReader;
class ESMWriter;
/*
* Lights. Includes static light sources and also carryable candles
* and torches.
*/
struct Light
{
static unsigned int sRecordId;
enum Flags
{
Dynamic = 0x001,
... |
ASSUME CS:CODE,DS:DATA
DATA SEGMENT
msg db 'Hello! Welcome to 8086-emulator!!!$'
num2 DB 06h
num3 DW 1234h
num4 DW 0002h
sum DB ?
sum2 DW ?
DATA ENDS
CODE SEGMENT
start:
mov ax,data
mov ds,ax ;initialize data segment
mov dx,offset msg ;lea dx,msg
... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0
TITLE D:\Projects\TaintAnalysis\AntiTaint\Epilog\src\func-iparam-fastcall.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC ___local_stdio_printf_options
PUBLIC __vfprintf_l
PUBLI... |
//===-- clang-offload-wrapper/ClangOffloadWrapper.cpp -----------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
;
; 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... |
; A337300: Partial sums of the geometric Connell sequence A049039.
; 1,3,7,12,19,28,39,51,65,81,99,119,141,165,191,218,247,278,311,346,383,422,463,506,551,598,647,698,751,806,863,921,981,1043,1107,1173,1241,1311,1383,1457,1533,1611,1691,1773,1857,1943,2031,2121,2213,2307,2403
mov $10,$0
mov $12,$0
add $12,1
lpb $12
... |
;;
;; Copyright (c) 2017-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... |
;[]-----------------------------------------------------------------[]
;| COMMON.ASM -- string functions |
;[]-----------------------------------------------------------------[]
;
; $Copyright: 2005$
; $Revision: 1.4 $
;
;Fast String standalone methods
;int __fastcall Length() const;
;AnsiString& __f... |
; A028403: Number of types of Boolean functions of n variables under a certain group.
; 4,12,40,144,544,2112,8320,33024,131584,525312,2099200,8392704,33562624,134234112,536903680,2147549184,8590065664,34360000512,137439477760,549756862464,2199025352704,8796097216512,35184380477440,140737505132544,562949986975744,225179... |
; A327573: Partial sums of the number of infinitary divisors function: a(n) = Sum_{k=1..n} id(k), where id is A037445.
; Submitted by Christian Krause
; 1,3,5,7,9,13,15,19,21,25,27,31,33,37,41,43,45,49,51,55,59,63,65,73,75,79,83,87,89,97,99,103,107,111,115,119,121,125,129,137,139,147,149,153,157,161,163,167,169,173,177... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 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 <txmempool.h>
#include <consensus/consensus.h>
#include <consensus/tx_v... |
;*******************************************************************************
; MSP430x24x Demo - USCI_A0, 9600 UART Echo ISR, DCO SMCLK
;
; Description: Echo a received character, RX ISR used. Normal mode is LPM0.
; USCI_A0 RX interrupt triggers TX Echo.
; Baud rate divider with 1MHz = 1MHz/9600 = ~104... |
-- HUMAN RESOURCE MACHINE PROGRAM --
a:
b:
INBOX
JUMPN c
OUTBOX
JUMP a
c:
COPYTO 0
SUB 0
SUB 0
OUTBOX
JUMP b
|
; A021710: Decimal expansion of 1/706.
; Submitted by Jon Maiga
; 0,0,1,4,1,6,4,3,0,5,9,4,9,0,0,8,4,9,8,5,8,3,5,6,9,4,0,5,0,9,9,1,5,0,1,4,1,6,4,3,0,5,9,4,9,0,0,8,4,9,8,5,8,3,5,6,9,4,0,5,0,9,9,1,5,0,1,4,1,6,4,3,0,5,9,4,9,0,0,8,4,9,8,5,8,3,5,6,9,4,0,5,0,9,9,1,5,0,1
seq $0,199685 ; a(n) = 5*10^n+1.
div $0,353
mod $0,10
|
; A288534: a(n) = n*(2*n^2 + 3), n >= 1; a(0)=1.
; 1,5,22,63,140,265,450,707,1048,1485,2030,2695,3492,4433,5530,6795,8240,9877,11718,13775,16060,18585,21362,24403,27720,31325,35230,39447,43988,48865,54090,59675,65632,71973,78710,85855,93420,101417,109858,118755,128120,137965,148302,159143,170500,182385,194810,207787,22... |
.db E4, F8, E5, F8
|
%include 'functions.asm'
SECTION .data
msg1 db 'Hello, brave world!', 0h
msg2 db 'This is how we recycle in NASM', 0h
SECTION .text
global _start
_start:
mov eax, msg1
call sprintLF
mov eax, msg2
call sprintLF
call quit
|
; void *memcpy(void * restrict s1, const void * restrict s2, size_t n)
SECTION code_string
PUBLIC memcpy
EXTERN asm_memcpy
memcpy:
pop af
pop bc
pop hl
pop de
push de
push hl
push bc
push af
jp asm_memcpy
|
#include <interface/ui_ctrlinfolist.h>
#include <control/ui_richlistitem.h>
#include <control/ui_richlistbox.h>
#include <control/ui_radiogroup.h>
#include <control/ui_listheader.h>
#include <control/ui_boxlayout.h>
#include <control/ui_scrollbar.h>
#include <control/ui_groupbox.h>
#include <control/ui_checkbox.h>
#in... |
;;
;; Copyright (c) 2012-2020, 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... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x4142434491514748",
"RBX": "0x51525354155595D6",
"RCX": "0x195999da185898d9"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
mo... |
; A100659: Floor of measure (in degrees) of the internal angles of a regular polygon with n sides.
; 60,90,108,120,128,135,140,144,147,150,152,154,156,157,158,160,161,162,162,163,164,165,165,166,166,167,167,168,168,168,169,169,169,170,170,170,170,171,171,171,171,171,172,172,172,172,172,172,172,173,173,173,173,173
mov ... |
_set_prio: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "types.h"
#include "stat.h"
#include "user.h"
#include "fcntl.h"
int main(void)
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x... |
/*
* This file is part of qpOASES.
*
* qpOASES -- An Implementation of the Online Active Set Strategy.
* Copyright (C) 2007-2017 by Hans Joachim Ferreau, Andreas Potschka,
* Christian Kirches et al. All rights reserved.
*
* qpOASES is free software; you can redistribute it and/or
* modify it under the terms of ... |
; A108210: Let M[n] be the 2 X 2 matrix {{0, -3}, {(n - 1), 5*(n - 1)}} and let v[1] = {0, 1}', v[n] = M[n]*v[n - 1]'. Then a[n] is the first entry of v[n].
; Submitted by Christian Krause
; 0,3,15,132,1845,35316,855225,25021062,857777445,33710592312,1493816663025,73679515381890,4003077396124125,237532181213699460,1528... |
/*
* Copyright 2019 Xilinx, 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 applicable law or agreed to... |
; A161827: Complement of A006446.
; 5,7,10,11,13,14,17,18,19,21,22,23,26,27,28,29,31,32,33,34,37,38,39,40,41,43,44,45,46,47,50,51,52,53,54,55,57,58,59,60,61,62,65,66,67,68,69,70,71,73,74,75,76,77,78,79,82,83,84,85,86,87,88,89,91,92,93,94,95,96,97,98
seq $0,37 ; Numbers that are not squares (or, the nonsquares).
seq $0... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
// Load
lea addresses_WT+0xaee4, %rdi
nop
nop
xor $42121, %rax
mov (%rdi), %r15
nop
nop
nop
add %rdi, %rdi
// Store
lea addresses_A+0x1a9c8, %rax
dec %r13
mov... |
// Copyright (c) 2002 Microsoft Corporation
//
// Encrypted string class
//
// 18 March 2002
#include <headers.hxx>
#include <strsafe.h>
static const size_t CRYPTPROTECTMEMORY_BLOCK_SIZE_IN_CHARS =
CRYPTPROTECTMEMORY_BLOCK_SIZE / sizeof WCHAR;
static WCHAR EMPTY_STRING[CRYPTPROTECTMEMORY... |
-- HUMAN RESOURCE MACHINE PROGRAM --
a:
b:
INBOX
JUMPN c
INBOX
JUMPN g
JUMP e
c:
INBOX
JUMPN d
JUMP f
COMMENT 0
d:
e:
COPYFROM 4 -- default 0
OUTBOX
JUMP b
f:
g:
COPYFROM 5 -- default 1
OUTBOX
JUMP a
DEFINE COMMENT 0
e... |
/*
Copyright 2020 The OneFlow 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 agre... |
*PROCESS DUPALIAS
*
* Compiled by DCC Version 2.25.07 Mar 6 2021 08:51:07
* on Fri Apr 30 15:36:24 2021
*
WXTRN @@ZARCH#
*
*
*
* Code Section
*
@CODE ALIAS C'@REGEXP'
@CODE CSECT
@CODE AMODE ANY
@CODE RMODE ANY
@DATA ALIAS C'@regexp'
setjmp ALIAS C'setjmp'
EXTRN setjmp... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <sys/types.h>
#include <netinet/in.h>
#include <unistd.h>
#include <endian.h>
#include <byteswap.h>
#include <stdexcept>
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define htonll(x) bswap_64(x)
#define ntohll(x) bswap_64(x)
#else
#define htonll(x) x
#define ntohll(x) ... |
.include "defaults_mod.asm"
table_file_jp equ "exe4-utf8.tbl"
table_file_en equ "bn4-utf8.tbl"
game_code_len equ 3
game_code equ 0x4234574A // B4WJ
game_code_2 equ 0x42345745 // B4WE
game_code_3 equ 0x42345750 // B4WP
card_type equ 1
card_id equ 94
card_no equ "094"
card_sub equ "Mod Card 094"
card_sub_x ... |
; void *tshc_cxy2aaddr(uchar x, uchar y)
SECTION code_clib
SECTION code_arch
PUBLIC _tshc_cxy2aaddr_callee
EXTERN asm_tshc_cxy2aaddr
_tshc_cxy2aaddr_callee:
pop hl
ex (sp),hl
jp asm_tshc_cxy2aaddr
|
preset_100early_crateria_ceres_elevator:
dw #$0000
dl $7E078B : db $02 : dw $0000 ; Elevator Index
dl $7E078D : db $02 : dw $AB58 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $DF45 ; MDB
dl $7E079F : db $02 : dw $0006 ; Region
dl $7E07C3 : db $02 : dw $E22A ... |
/*
* Copyright 2016 WebAssembly Community Group participants
*
* 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... |
extern m7_ippsRSA_GetBufferSizePrivateKey:function
extern n8_ippsRSA_GetBufferSizePrivateKey:function
extern y8_ippsRSA_GetBufferSizePrivateKey:function
extern e9_ippsRSA_GetBufferSizePrivateKey:function
extern l9_ippsRSA_GetBufferSizePrivateKey:function
extern n0_ippsRSA_GetBufferSizePrivateKey:function
extern k0_ipps... |
MODULE __scanf_handle_f
SECTION code_clib
PUBLIC __scanf_handle_f
EXTERN __scanf_common_start
EXTERN scanf_exit
EXTERN __scanf_ungetchar
EXTERN __scanf_getchar
EXTERN scanf_loop
EXTERN atof
EXTERN l_cmp
EXTERN asm_isdigit
EXTERN dstore
EXTERN CLIB_32BIT_FLOATS
; Floating point
; We read from ... |
; A168664: a(n) = n^7*(n^7 + 1)/2.
; 0,1,8256,2392578,134225920,3051796875,39182222016,339111948196,2199024304128,11438398618965,50000005000000,189874926535206,641959250190336,1968688224223903,5556003465485760,14596463098125000,36028797153181696,84188913484869801,187406684097150528,399503343338377930,819200000640000000... |
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
SECTION code_l_sccz80
PUBLIC l_gint
EXTERN l_gintsp_gint
defc l_gint = l_gintsp_gint
|
db "COBRA@" ; species name
db "To intimidate"
next "foes, it spreads"
next "its chest wide and"
page "makes eerie sounds"
next "by expelling air"
next "from its mouth.@"
|
copyright zengfr site:http://github.com/zengfr/romhack
0016B2 rts [123p+ AA]
0016E8 cmpa.w ($1a6,A5), A1 [123p+ AA]
00812C btst #$6, ($73,A1) [123p+ AA]
00C3A6 move.w ($20,A6), D1
017DAC btst #$1, (-$3e,A5) [123p+ AA]
017DB8 btst #$2, (-$3e,A5) [123p+ AA]
017DC4 cmp.w D1, D0 [123p+ AA]
01A74C dbra... |
#include "fps_ros_msgs.h"
#include "fps_mapper/StampedCloudMsg.h"
#include "cloud_publisher_trigger.h"
#include <ros/ros.h>
#include "txt_io/message_writer.h"
#include "local_map_listener.h"
#include "boss/serializer.h"
#include "globals/system_utils.h"
using namespace boss;
using namespace fps_mapper;
using namespace... |
#include <bits/stdc++.h>
using namespace std;
/*
array = [[1,2,3],
[4,5,6],
[7,8,9]]
snail(array) #=> [1,2,3,6,9,8,7,4,5]
Given an array of n * x, return the array elements arranged from outermost elements to the middle element,
traveling clockwise. Do not sort the elements from lowest to highest, i... |
; A140664: a(n) = A014963(n)*mobius(n).
; Submitted by Christian Krause
; 1,-2,-3,0,-5,1,-7,0,0,1,-11,0,-13,1,1,0,-17,0,-19,0,1,1,-23,0,0,1,0,0,-29,-1,-31,0,1,1,1,0,-37,1,1,0,-41,-1,-43,0,0,1,-47,0,0,0,1,0,-53,0,1,0,1,1,-59,0,-61,1,0,0,1,-1,-67,0,1,-1,-71,0,-73,1,0,0,1,-1,-79,0,0,1,-83,0,1,1,1,0,-89,0,1,0,1,1,1,0,-97,0... |
; A104777: Integer squares congruent to 1 mod 6.
; 1,25,49,121,169,289,361,529,625,841,961,1225,1369,1681,1849,2209,2401,2809,3025,3481,3721,4225,4489,5041,5329,5929,6241,6889,7225,7921,8281,9025,9409,10201,10609,11449,11881,12769,13225,14161,14641,15625,16129,17161,17689,18769,19321,20449,21025,22201,22801,24025,24649... |
; A275827: a(n) = Sum_{k=0..n} binomial(n+k+2,k)*binomial(2*n+1,n-k).
; Submitted by Christian Krause
; 1,7,50,364,2688,20064,151008,1144000,8712704,66646528,511673344,3940579328,30429184000,235521884160,1826663915520,14192851599360,110453212446720,860819570688000,6717522904350720,52482715893104640,410475846508216320,3... |
#include "builderfilewriter.h"
#include "buildercontext.h"
#include "model/cppsourcefile.h"
#include "codewriter/codewriter.h"
#include "codewriter/codeblock.h"
#include "project.h"
#include "util.h"
#include "constants.h"
#include "Poco/Format.h"
#include "Poco/Path.h"
#include "Poco/File.h"
using names... |
; A028992: Even 9-gonal (or enneagonal) numbers.
; 0,24,46,154,204,396,474,750,856,1216,1350,1794,1956,2484,2674,3286,3504,4200,4446,5226,5500,6364,6666,7614,7944,8976,9334,10450,10836,12036,12450,13734,14176,15544,16014,17466,17964,19500,20026,21646,22200,23904,24486,26274,26884,28756,29394,31350,32016,34056,34750,368... |
SECTION "graphics", ROMX[$4000], BANK[1]
;db $00, $18, $24, $24, $24, $24, $18, $00
;db $00, $18, $38, $18, $18, $18, $3C, $00
;db $00, $38, $44, $04, $08, $10, $3C, $00
;db $00, $18, $24, $04, $38, $04, $38, $00
;db $00, $24, $24, $24, $3C, $04, $04, $00
;db $00, $3C, $20, $20, $3C, $04, $3C, $00
;db $00, $1C, $20, ... |
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
// Helmet Software Framework
//
// Copyright (C) 2018 Hat Boy Software, Inc.
//
// @author Matthew Alan Gray - <mgray@hatboysoftware.com>
// @author Tony Richards - <trichards@indiezen.com>
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-... |
/*
void pal_blend_asm(COLOR *pa, COLOR *pb, COLOR *pc,
int nclrs, u32 alpha) CODE_IN_IWRAM;
//! Blends palettes pa and pb into pc.
//! \param pa, pb. Source palettes
//! \param pc. Destination palette
//! \param nclrs Number of colors
//! \param alpha Blend weight 0-32
//! \note u32 version, 2 clrs/loop. Loop: 16... |
; A116817: Number of permutations of length n which avoid the patterns 2341, 3241, 4132.
; Submitted by Jon Maiga
; 1,2,6,21,74,257,881,2995,10132,34182,115143,387538,1303745,4384933,14746009,49585430,166730986,560620697,1885023706,6338138505,21311063589,71655198707,240929422288,810087129234,2723789200907
add $0,2
lpb... |
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers
//
// This file is part of Urbancash.
//
// Urbancash is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of... |
extern scanf
extern printf
section .data
input: db "%d %d", 0
output: db "%d", 10, 0
a: times 4 db 0
b: times 4 db 0
section .text
global main
main:
lea esp, [esp-12]
;a, b 입력
mov dword[esp], input
mov dword[esp+4], a
mov dword[esp+8], b
call scanf
;첫째 줄에 A+B, 둘째 줄에... |
.const
u64 struct
Lo dd ?
Hi dd ?
u64 ends
.data
align qword
IFNDEF Whirlpool_0
; the Tweaked version
WhirlpoolC0 label qword
dq 018186018c07830d8h,023238c2305af4626h,0c6c63fc67ef991b8h,0e8e887e8136fcdfbh
dq 0878726874ca113cbh,0b8b8dab8a9626d11h,00101040108050209h,04f4f214f426e9e0dh
dq 03636d836adee6c9bh,0a6a... |
; ================================================================
; DevSound song data
; ================================================================
; =================================================================
; Song speed table
; =================================================================
SongSpe... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1495e, %r8
nop
sub %rcx, %rcx
movl $0x61626364, (%r8)
nop
nop
and %rsi, %rsi
lea addresses_WT_ht+0x1e644, %rbp
clflush (%rbp)
nop
nop
nop
sub $15771, %rsi
movw $0x6162, (%rbp)
nop
xor ... |
; ---------------------------------------------------------------------------
; Animation script - bubbles (LZ)
; ---------------------------------------------------------------------------
dc.w byte_129AA-Ani_obj64
dc.w byte_129B0-Ani_obj64
dc.w byte_129B6-Ani_obj64
dc.w byte_129BE-Ani_obj64
dc.w byte_129BE-... |
; void in_WaitForNoKey(void)
; 09.2005 aralbrec
SECTION code_clib
PUBLIC in_WaitForNoKey
PUBLIC _in_WaitForNoKey
; uses : AF
.in_WaitForNoKey
._in_WaitForNoKey
xor a
in a,($b2)
and 127
cp 127
jr nz, in_WaitForNoKey
ret
|
;; Full Keying 128 bit Twofish in ECB Mode
;;
;; Author: Fritz Schneider (fritz.schneider@iname.com)
;;
;; This code was written as part of a project in one of my classes
;; (Microprocessor Lab) at Columbia University. It is placed in the public
;; domain.
;;
;; Notes: * The implementation leaves a lot to be desi... |
; A083589: Expansion of 1/((1-4*x)*(1-x^4)).
; 1,4,16,64,257,1028,4112,16448,65793,263172,1052688,4210752,16843009,67372036,269488144,1077952576,4311810305,17247241220,68988964880,275955859520,1103823438081,4415293752324,17661175009296,70644700037184,282578800148737,1130315200594948,4521260802379792,18085043209519168,7... |
#include <catch/catch.hpp>
#include <Utils/MathUtils.hpp>
using namespace obe::Utils::Math;
TEST_CASE(
"A double should be truncated to an int without data loss"
" (including floating point precision)",
"[obe.Utils.Math.isDoubleInt]"
)
{
SECTION("Correct Positive values")
{
REQUIRE( isD... |
// tiled.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
return 0;
}
|
; A023811: Largest metadrome (number with digits in strict ascending order) in base n.
; 0,1,5,27,194,1865,22875,342391,6053444,123456789,2853116705,73686780563,2103299351334,65751519677857,2234152501943159,81985529216486895,3231407272993502984,136146740744970718253,6106233505124424657789,290464265927977839335179,14606... |
use32
bits 32
org 0x8000
entry:
pusha
mov [saved_esp], esp
mov eax, cr0
mov [saved_cr0], eax
mov eax, 0xeff0
mov esp, eax
jmp 0x18:move_to_real
move_to_real:
use16
mov eax, 0x20
mov ds, eax
mov es, eax
mov fs, eax
mov gs, eax
mov ss, eax
mov eax, cr0
and eax, 01111111_11111111_11111111_11111110b
mov... |
; A141326: Subsequence of 'Fermat near misses' which is generated by a simple formula based on the cubic binomial expansion along with formulas for the corresponding terms in the expression, x^3 + y^3 = z^3 + 1.
; 12,150,738,2316,5640,11682,21630,36888,59076,90030,131802,186660,257088,345786,455670,589872,751740,944838... |
#include "newhoug.h" |
; Skape's egghunter: access(2)
; Shellcode generated: "\xbb\x90\x50\x90\x50\x31\xc9\xf7\xe1\x66\x81\xca\xff\x0f\x42\x60\x8d\x5a\x04\xb0\x21\xcd\x80\x3c\xf2\x61\x74\xed\x39\x1a\x75\xee\x39\x5a\x04\x75\xe9\xff\xe2"
;
global _start:
section .text
_start:
mov ebx, 0x50905090 ; Store EGG in ebx
xor ecx, ec... |
; A188082: [nr+kr]-[nr]-[kr], where r=sqrt(3), k=1, [ ]=floor.
; 1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1... |
; A099267: Numbers generated by the golden sieve.
; Submitted by Jon Maiga
; 2,3,5,6,8,10,11,13,14,16,18,19,21,23,24,26,27,29,31,32,34,35,37,39,40,42,44,45,47,48,50,52,53,55,57,58,60,61,63,65,66,68,69,71,73,74,76,78,79,81,82,84,86,87,89,90,92,94,95,97,99,100,102,103,105,107,108,110,112,113,115,116,118,120,121,123,124,1... |
SECTION code_fp_math48
PUBLIC mm48__subac
mm48__subac:
;AC = AC - AC'
;Traek AC' fra AC.
ld a,h
exx
sub h
mm48__sac1:
exx
ld h,a
ld a,e
exx
sbc a,e
exx
ld e,a
ld a,d
exx
sbc a,d
exx
ld d,a
ld a,c
exx
sbc a,c
exx
ld c,a
ld a,b
exx
sbc a... |
#include<bits/stdc++.h>
#define N 1005
#define M 8
using namespace std;
#define rep(i,a,b) for(int i=(a); i<(b); ++i)
int k, n;
int a, b;
bool vis[N][N];
int dir[M][2] = {1,0, 1,1, 0,1, -1,1, -1,0, -1,-1, 0,-1, 1,-1};
void color(int col, int row) {
int x, y;
rep(i,0,n) {
rep(j,0,M) {
x = col + i*dir[j][0];
... |
SECTION code_fp_math48
PUBLIC derror_edom_zc
EXTERN am48_derror_edom_zc
defc derror_edom_zc = am48_derror_edom_zc
|
; size_t w_vector_push_back(w_vector_t *v, void *item)
SECTION code_adt_w_vector
PUBLIC w_vector_push_back_callee
EXTERN w_vector_append_callee
defc w_vector_push_back_callee = w_vector_append_callee
INCLUDE "adt/w_vector/z80/asm_w_vector_push_back.asm"
|
Sound_86_Header:
smpsHeaderStartSong 3
smpsHeaderVoice Sound_86_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cFM5, Sound_86_FM5, $D0, $06
; FM5 Data
Sound_86_FM5:
smpsSetvoice $00
smpsModSet $01, $01, $09, $F6
dc.b nC0, $37
smpsStop
Sound_86_Voices:
; Voice... |
//!
//! Copyright (c) 2015, The casual project
//!
//! This software is licensed under the MIT license, https://opensource.org/licenses/MIT
//!
#include "casual/buffer/string.h"
#include "common/buffer/pool.h"
#include "common/buffer/type.h"
#include "common/log.h"
#include "common/memory.h"
#include "common/excep... |
; A165838: Totally multiplicative sequence with a(p) = 17.
; 1,17,17,289,17,289,17,4913,289,289,17,4913,17,289,289,83521,17,4913,17,4913,289,289,17,83521,289,289,4913,4913,17,4913,17,1419857,289,289,289,83521,17,289,289,83521,17,4913,17,4913,4913,289,17,1419857,289,4913,289,4913,17,83521,289,83521,289,289,17,83521,17,2... |
###############################################################################
# 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1aac, %rsi
lea addresses_WT_ht+0x32b4, %rdi
nop
nop
dec %r11
mov $120, %rcx
rep movsl
nop
nop
inc %rdx
lea addresses_WC_ht+0xb6fc, %rsi
lea addresses_normal_ht+0x12bfc, %rdi
... |
bfi1(8) g22<1>UD g20<4>.xD g19<4>.xD { align16 1Q };
bfi1(8) g12<1>UD g11<8,8,1>D g10<8,8,1>D { align1 1Q };
bfi1(16) g16<1>UD g14<8,8,1>D g12<8,8,1>D { align1 1H };
|
mov ax,100
mov ax,0a2h
mov ax,$0a2
mov ax,0xa2
mov ax,777q
mov ax,10010011b
mov eax,'abcd'
db 'hello'
db 'h','e','l','l','o'
dd 'ninechars'
dd 'nine','char','s'
db 'ninechars',0,0,0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.