text stringlengths 1 1.05M |
|---|
.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 29
card_no equ "029"
card_sub equ "Mod Card 029"
card_sub_x ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x195dd, %rbp
clflush (%rbp)
xor $30447, %rdi
and $0xffffffffffffffc0, %rbp
movntdqa (%rbp), %xmm0
vpextrq $0, %xmm0, %r11
nop
nop
nop
nop
add %r15, %r15
lea addresses_UC_ht+0... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r14
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x73ce, %r12
nop
nop
add %r14, %r14
mov $0x6162636465666768, %rcx
movq %rcx, %xmm0
vmovups %ymm0, (%r12)
cmp %rax, %rax
lea addresses_WC_ht+0x164ce, %r11
clflush (%r11)
xo... |
; A285075: Positions of 1 in A285073; complement of A285074.
; 2,4,6,9,11,14,16,18,21,23,26,28,30,33,35,38,40,43,45,47,50,52,55,57,59,62,64,67,69,72,74,76,79,81,84,86,88,91,93,96,98,100,103,105,108,110,113,115,117,120,122,125,127,129,132,134,137,139,142,144,146,149,151,154,156,158,161,163,166,168,170,173,175,178,180,18... |
// *************************************************************************
//
// This File Is Automatically Generated by the StarBusIDL-to-C++ Compiler !
//
// Copyright (c) 2003
// Network Information Security Institute,Computer College,NUDT.
// ChangSha,Hunan,PRC
//
// All Rights Reserved
//
// ********************... |
frame 1, 08
frame 2, 18
frame 3, 12
frame 1, 08
endanim |
#ifndef CLIENT_PRIVATE_HTTP_HPP
#define CLIENT_PRIVATE_HTTP_HPP
#include <boost/asio.hpp>
#include <boost/beast/http.hpp>
#include <memory>
#include "client_private.hpp"
namespace simple_http {
template <typename RequestBody, typename ResponseBody> class basic_client;
template <typename RequestBody, typename Respon... |
%include "common.inc"
global gdt_load
gdt_load:
lgdt [rdi]
mov ax, 0x10 ; 0x10 is the offset in the GDT to our data segment
mov ds, ax ; Load all data segment selectors
mov es, ax
mov ss, ax
; flush the CS segment with iretq
mov rcx, qword .reloadcs
mov rsi, rsp
push r... |
SafariZoneEast_h:
db FOREST ; tileset
db SAFARI_ZONE_EAST_HEIGHT, SAFARI_ZONE_EAST_WIDTH ; dimensions (y, x)
dw SafariZoneEastBlocks, SafariZoneEastTextPointers, SafariZoneEastScript ; blocks, texts, scripts
db $00 ; connections
dw SafariZoneEastObject ; objects
|
;
; jdmerge.asm - merged upsampling/color conversion (64-bit AVX2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2009, 2016, D. R. Commander.
; Copyright (C) 2015, Intel Corporation.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
... |
disableGameLogik dc.b $00 ; no gamelogik at all just interstitials and so on
disablePlayerInteraction dc.b $00 ; the player isn't controllable and doesn't collide
playerShotActive dc.b $00
;-------------------------------------------------------------
;-- The main gamelogik loopfunction --
;--------------------... |
// Copyright 2020 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <xnnpack.h>
#include <algorithm>
#include <functional>
#include <iostream>
#include <limits>
#include <random>
#include "models/models.h"
names... |
_MainMenu:
ld de, MUSIC_NONE
call PlayMusic
call DelayFrame
ld de, MUSIC_MAIN_MENU
ld a, e
ld [wMapMusic], a
call PlayMusic
farcall MainMenu
jp StartTitleScreen
; unused
ret
PrintDayOfWeek:
push de
ld hl, .Days
ld a, b
call GetNthString
ld d, h
ld e, l
pop hl
call PlaceString
ld h, b
ld l, c
ld d... |
STDIN equ 0
STDOUT equ 1
SYS_EXIT equ 1
SYS_READ equ 3
SYS_WRITE equ 4
section .data
msg db "The sum is: ", 0xA, 0xD
len equ $- msg
section .bss
res resb 1
section .text
global main
main:
mov ecx, '4'
sub ecx, '0'
mov edx, '5'
sub edx, '0'
call sum ;call sum... |
_cat: file format elf32-i386
Disassembly of section .text:
00000000 <cat>:
char buf[512];
void
cat(int fd)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 28 sub $0x28,%esp
int n;
while((n = read(fd, buf, sizeof(buf))) > 0)
6: eb 1b ... |
; A005481: Decimal expansion of cube root of 5.
; Submitted by Jon Maiga
; 1,7,0,9,9,7,5,9,4,6,6,7,6,6,9,6,9,8,9,3,5,3,1,0,8,8,7,2,5,4,3,8,6,0,1,0,9,8,6,8,0,5,5,1,1,0,5,4,3,0,5,4,9,2,4,3,8,2,8,6,1,7,0,7,4,4,4,2,9,5,9,2,0,5,0,4,1,7,3,2,1,6,2,5,7,1,8,7,0,1,0,0,2,0,1,8,9,0,0,2
mov $1,1
pow $2,$0
mov $3,$0
mul $3,4
lpb $3... |
; A141107: Upper Odd Swappage of Upper Wythoff Sequence.
; 3,5,7,11,13,15,19,21,23,27,29,31,35,37,39,41,45,47,49,53,55,57,61,63,65,69,71,73,75,79,81,83,87,89,91,95,97,99,103,105,107,109,113,115,117,121,123,125,129,131,133,137,139,141,143,147,149,151,155,157,159,163
add $0,1
mov $1,17
mul $1,$0
div $1,13
mul $1,2
add $... |
.text
main:
addi x1, x0, 1
addi x2, x0, 2
jal x1, first
addi x3, x0, 3
addi x4, x0, 4
addi x5, x0, 5
first:
jal x9, skip
addi x6, x0, 6
addi x7, x0, 7
addi x8, x0, 8
skip:
addi x9, x0, 9
halt: j halt
|
/*
* Copyright (c) 2020 Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "updated-rpc/config.h"
// This file is just to make sure that config.h compiles and is checked by
// static analyzers.
|
#include <LibGUI/GAction.h>
#include <LibGUI/GApplication.h>
#include <LibGUI/GDesktop.h>
#include <LibGUI/GLabel.h>
#include <LibGUI/GMenuBar.h>
#include <LibGUI/GPainter.h>
#include <LibGUI/GWindow.h>
#include <LibGUI/GWindowServerConnection.h>
static GApplication* s_the;
GApplication& GApplication::the()
{
ASS... |
; A021671: Decimal expansion of 1/667.
; Submitted by Jamie Morken(s2.)
; 0,0,1,4,9,9,2,5,0,3,7,4,8,1,2,5,9,3,7,0,3,1,4,8,4,2,5,7,8,7,1,0,6,4,4,6,7,7,6,6,1,1,6,9,4,1,5,2,9,2,3,5,3,8,2,3,0,8,8,4,5,5,7,7,2,1,1,3,9,4,3,0,2,8,4,8,5,7,5,7,1,2,1,4,3,9,2,8,0,3,5,9,8,2,0,0,8,9,9
add $0,1
mov $1,10
pow $1,$0
div $1,667
mod $1,... |
; A160076: Numerator of Hermite(n, 17/26).
; Submitted by Christian Krause
; 1,17,-49,-12325,-159839,13946137,507212239,-19660157773,-1534286839615,27078190344737,5127629801969359,-4354576731731957,-19138555408161520031,-307693278714841022935,78864026725309421626319,2796693049208887888175843,-35229683366076767354644799... |
// Program: Sum1toN.asm
// Computes RAM[1] = 1 + 2 + ... + n
// Usage: put a number (n) in RAM[0]
// Algorithm:
//
// Declaration:
// n = R0
// i = 1
// sum = 0
//
// LOOP:
// if i > n goto STOP
// sum = sum + i
// i = i + 1
// goto LOOP
// STOP:
// R1 = sum
// Declaration:
@R0
D=M
@n
M=D // n = R0
@i
M=... |
; A328372: Expansion of Sum_{k>=1} x^(k^2) / (1 - x^(2*k^2)).
; Submitted by Jamie Morken(s1.)
; 1,0,1,1,1,0,1,0,2,0,1,1,1,0,1,1,1,0,1,1,1,0,1,0,2,0,2,1,1,0,1,0,1,0,1,2,1,0,1,0,1,0,1,1,2,0,1,1,2,0,1,1,1,0,1,0,1,0,1,1,1,0,2,1,1,0,1,1,1,0,1,0,1,0,2,1,1,0,1,1,3,0,1,1,1,0,1,0,1,0,1,1,1,0,1,0,1,0,2,2
add $0,1
mov $2,$0
lpb... |
// Copyright (C) 2015-2020 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <dhcp/pkt4.h>
#i... |
/**
* Copyright 2017 Colin Doig. Distributed under the MIT license.
*/
#include <stdexcept>
#include "greentop/sport/enum/TimeGranularity.h"
#include "greentop/Enum.h"
namespace greentop {
namespace sport {
const std::string TimeGranularity::DAYS = "DAYS";
const std::string TimeGranularity::HOURS = "HOURS";
const... |
; TRABALHO PRATICO - CODIGO XXXX
; Aluno 1:
; Aluno 2:
; Aluno 3:
.8086
.model small
.stack 2048
dseg segment para public 'data'
lin byte 2 ; VARIAVEIS...
col byte 3
alt byte 7
larg byte 5
dseg ends
cseg segment para public 'code'
assume cs:cseg, ds:dseg
main proc
mov ax, dseg
mov ds, ax
... |
global _dialog_box
_dialog_box:
push bp
mov bp, sp
mov ax, word [bp+4]
mov bx, word [bp+6]
mov cx, word [bp+8]
movzx dx, byte [bp+10]
call os_dialog_box
pop bp
ret |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: GeoDraw
FILE: graphicHead.asm
AUTHOR: Steve Scholl, Jun 18, 1991
ROUTINES:
Name
----
INT GrObjHeadCreateBlock
INT GrObjHeadCreateFloater
INT GrObjHea... |
; A321999: Sum of digits of n minus the number of digits of n.
; 0,0,1,2,3,4,5,6,7,8,-1,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,11,3,4,5,6,7,8,9,10,11,12,4,5,6,7,8,9,10,11,12,13,5,6,7,8,9,10,11,12,13,14,6,7,8,9,10,11,12,13,14,15,7
lpb $0
mov $2,$0
div $0,10
mod $2,10
sub $... |
title "Histogram AVX Routines"
option nokeyword:<Length>
;++
;
; Copyright (c) 2018 Trent Nelson <trent@trent.me>
;
; Module Name:
;
; Histogram.asm
;
; Abstract:
;
; This module implements various routines for constructing histograms.
;
;--
include ksamd64.inc
;
; Define constants.
;
OP_EQ eq... |
// Copyright (c) 2012 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.
#ifndef NDEBUG
#include "ui/compositor/debug_utils.h"
#include <iomanip>
#include <iostream>
#include <string>
#include "base/logging.h"
#include "... |
db DEX_CHARIZARD ; pokedex id
db 78 ; base hp
db 84 ; base attack
db 78 ; base defense
db 100 ; base speed
db 85 ; base special
db FIRE ; species type 1
db FLYING ; species type 2
db FULL_HEAL ;make lance more annoying yes?
db 209 ; base exp yield
INCBIN "pic/ymon/charizard.pic",0,1 ; 77, sprite dimensions
dw Charizard... |
// -*- 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
//
//===------------... |
/*************************************************
Author:Micooz
Date:2013-10-23
Description:精灵实现
**************************************************/
#include "Config.h"
#include "QSprite.h"
#include "CTimeDelay.h"
extern CTimeDelay timeController;
extern QPainter *p;
QSprite::QSprite()
{
this->Init();
}
void QS... |
###############################################################################
# Copyright 2018 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") containe... |
/**
* @file AccumulatorProofOfKnowledge.cpp
*
* @brief AccumulatorProofOfKnowledge class for the Zerocoin library.
*
* @author Ian Miers, Christina Garman and Matthew Green
* @date June 2013
*
* @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green
* @license This pro... |
;nasm 2.11.08
section .data
hello: db 'Hello world!',10 ; 'Hello world!' plus a linefeed character
helloLen: equ $-hello ; Length of the 'Hello world!' string
section .bss
var1: resb 4
section .text
global _start
_start:
mov esp, 65
mov [var1], esp
mov eax,4 ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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 "amount.h"
#include "tinyformat.h"
const std::string CURRENCY_UNIT = "... |
; A242181: Numbers with four X's in Roman numerals.
; 39,89,139,189,239,289,339,389,439,489,539,589,639,689,739,789,839,889,939,989,1039,1089,1139,1189,1239,1289,1339,1389,1439,1489,1539,1589,1639,1689,1739,1789,1839,1889,1939,1989,2039,2089,2139,2189,2239,2289,2339
mul $0,50
add $0,39
|
; A154519: a(n) = 216*n + 12.
; 228,444,660,876,1092,1308,1524,1740,1956,2172,2388,2604,2820,3036,3252,3468,3684,3900,4116,4332,4548,4764,4980,5196,5412,5628,5844,6060,6276,6492,6708,6924,7140,7356,7572,7788,8004,8220,8436,8652,8868,9084,9300,9516,9732,9948,10164,10380,10596,10812,11028,11244,11460,11676,11892,12108,12... |
/*
* example6: instruction examples
*/
/* no-operation instruction */
nop # no-operation
/* move instructions */
mov r1, 0x403 # r1 = 0x403
mov r2, 0x101
mov r3, 0
mov r4, 2
mov r5, 27
mov r0, r1 # r0 = r1
mov r0, pc # r0 = pc
/* arithmetic operation instructions */
add r0, r1, r2 # r0 = ... |
CGROUP group code
code segment dword 'CODE'
assume cs:CGROUP,ds:CGROUP
;pj_stuff_words(USHORT data, USHORT *buf, unsigned count)
;careful about passing a zero count. It will be interpreted as 4 Gigawords.
public pj_stuff_words
pj_stuff_words proc near
push edi
push ecx
mov edi,[esp+16] ;buf
mov... |
; ************************************************************************************************
; ************************************************************************************************
;
; Name: search.asm
; Purpose: Search for token in the token tables
; Created: 8th March 2021
; Reviewed: 16th Marc... |
; A338206: Inverse of A160016.
; 0,2,1,6,3,10,4,14,5,18,7,22,8,26,9,30,11,34,12,38,13,42,15,46,16,50,17,54,19,58,20,62,21,66,23,70,24,74,25,78,27,82,28,86,29,90,31,94,32,98,33,102,35,106,36,110,37,114,39,118,40,122,41,126,43,130,44,134,45,138,47,142,48,146,49,150,51,154,52,158
mov $1,$0
mod $0,2
sub $0,1
mul $1,2
lpb ... |
/***************************************************************************************************************************
* landpad_det.cpp
* Author: Jario
* Update Time: 2020.1.12
*
* 说明: 降落目标识别程序,降落板的尺寸为60cmX60cm
* 1. 【订阅】图像话题 (默认来自web_cam)
* /prometheus/camera/rgb/image_raw
* 2. 【发布】目标位置... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %rdx
lea addresses_A_ht+0x18545, %r12
nop
nop
nop
nop
nop
add %r14, %r14
movups (%r12), %xmm7
vpextrq $1, %xmm7, %rdx
nop
nop
nop
nop
nop
cmp $17428, %rdx
pop %rdx
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
pu... |
;******************************************************************************
;* MMX optimized DSP utils
;* Copyright (c) 2008 Loren Merritt
;* Copyright (c) 2003-2013 Michael Niedermayer
;* Copyright (c) 2013 Daniel Kang
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "util.h"
#include "sync.h"
#include "ui_interface.h"
#includ... |
; A199750: 2*11^n+1.
; 3,23,243,2663,29283,322103,3543123,38974343,428717763,4715895383,51874849203,570623341223,6276856753443,69045424287863,759499667166483,8354496338831303,91899459727144323,1010894056998587543,11119834626984462963,122318180896829092583,1345499989865120018403,14800499888516320202423,16280549877367952... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x7206, %rsi
lea addresses_UC_ht+0x1d46a, %rdi
clflush (%rsi)
nop
nop
nop
nop
and %r13, %r13
mov $88, %rcx
rep movsw
nop
nop
nop
nop
nop
add $61143, %rbp
lea addresses_WC_ht+0x... |
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... |
;----------------------------------------------------------------------
; dup2.asm - user-callable entry point to dup2() function.
;----------------------------------------------------------------------
;
; C/C++ Run Time Library - Version 10.0
;
; Copyright (c) 1991, 2000 by Inprise Corporation
; A... |
; A047360: Numbers that are congruent to {1, 2, 3} mod 7.
; 1,2,3,8,9,10,15,16,17,22,23,24,29,30,31,36,37,38,43,44,45,50,51,52,57,58,59,64,65,66,71,72,73,78,79,80,85,86,87,92,93,94,99,100,101,106,107,108,113,114,115,120,121,122,127,128,129,134,135,136,141
mov $1,$0
div $1,3
mul $1,4
add $0,$1
add $0,1
|
;;
;; Title: Random number generators.
;;
.zp
seed .ds 1
.code
;;
;; Function: rand8_seed
;; Set pseudo-random number seed.
;;
;; Parameters:
;; A - Seed.
rand8_seed:
cmp #$00
bne @store
lda #$b8
@store:
sta <seed
rts
;;
;; Function: rand8
;; Generates 8-bit pseudo-rand... |
; process
; CALLEE linkage for long2ipstring
; int long2ipstring_callee(inet_addr_t *addr, char *str);
PUBLIC long2ipstring_callee
PUBLIC ASMDISP_LONG2IPSTRING_CALLEE
include "spectranet.asm"
.long2ipstring_callee
pop bc ; return address
pop de ; char *str
pop hl ; inet_addr_t *addr
push bc ; restore return a... |
Name: zel_sut1.asm
Type: file
Size: 67203
Last-Modified: '2016-05-13T04:20:48Z'
SHA-1: EC74D956A544DE4AC0058BD1F3142094A50C254E
Description: null
|
/**
* @file nsga2.hpp
* @author Sayan Goswami
*
* NSGA-II is a multi-objective optimization algorithm, widely used in
* many real-world applications. NSGA-II generates offsprings using
* crossover and mutation and then selects the next generation according
* to non-dominated-sorting and crowding distance compari... |
; A266591: Middle column of the "Rule 37" elementary cellular automaton starting with a single ON (black) cell.
; Submitted by Christian Krause
; 1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %rax
push %rcx
lea addresses_D_ht+0x1864b, %rax
nop
nop
nop
nop
nop
cmp $61538, %rcx
mov (%rax), %r15
nop
nop
nop
nop
dec %r10
pop %rcx
pop %rax
pop %r15
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %r15
p... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r8
push %rax
push %rbx
push %rdi
push %rdx
lea addresses_D_ht+0x3d70, %r14
nop
nop
add %rbx, %rbx
vmovups (%r14), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %rax
nop
nop
nop
inc %r8
lea addresses_WC_ht+0x57e0, %r12
nop
nop
nop
nop
dec %r... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r15
push %rbx
push %rdi
push %rsi
// Faulty Load
lea addresses_PSE+0x17c51, %rsi
nop
nop
nop
inc %r14
movups (%rsi), %xmm6
vpextrq $0, %xmm6, %r12
lea oracles, %rdi
and $0xff, %r12
shlq $12, %r12
mov (%... |
; A153026: a(1)=0, a(n) = n^3 - a(n-1).
; 0,8,19,45,80,136,207,305,424,576,755,973,1224,1520,1855,2241,2672,3160,3699,4301,4960,5688,6479,7345,8280,9296,10387,11565,12824,14176,15615,17153,18784,20520,22355,24301,26352,28520,30799,33201,35720,38368,41139,44045,47080,50256,53567,57025,60624,64376,68275,72333,76544,80920... |
#include "common/generate_tone.h"
#include <cmath>
#include <cstddef>
#include <vector>
namespace vrt::common {
/**
* Generate tone signal in vector.
*
* \param n Number of elements to generate.
* \param fc Center frequency [Hz].
* \param sr Sample rate [Hz].
*
* \return Generated signal tone.
*/
std::vecto... |
;
; jidctint.asm - accurate integer IDCT (64-bit SSE2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright 2009 D. R. Commander
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in j... |
; A138102: The number 2*k^2 repeated 2*k^2 times, k=1 to 4.
; 2,2,8,8,8,8,8,8,8,8,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32
add $0,1
lpb $0
add $2,2
add $1,$2
trn $0,$1
add $2,2
lpe
mov $0,$1
|
; L1503.asm
; Generated 03.08.2001 by mlevel
; Modified 03.08.2001 by Abe Pralle
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
VAR_DESTZONE EQU 0
VAR_DESTCOLOR EQU 1
VAR_DESTBG EQU 3
VAR_DESTBANK EQU 5
VAR_SELSTAGE EQU 6
;---------------------------------------------------------------------
SECT... |
; A114119: Row sums of triangle A114118.
; 1,3,5,6,8,9,11,12,14,15,17,18,20,21,23,24,26,27,29,30,32,33,35,36,38,39,41,42,44,45,47,48,50,51,53,54,56,57,59,60,62,63,65,66,68,69,71,72,74,75,77,78,80,81,83,84,86,87,89,90,92,93,95,96,98,99,101,102,104,105
mov $1,$0
mul $0,2
sub $1,1
div $1,2
sub $0,$1
add $0,1
|
; A156718: Numbers k such that k^2 == -1 (mod 13^2).
; 70,99,239,268,408,437,577,606,746,775,915,944,1084,1113,1253,1282,1422,1451,1591,1620,1760,1789,1929,1958,2098,2127,2267,2296,2436,2465,2605,2634,2774,2803,2943,2972,3112,3141,3281,3310,3450,3479,3619,3648,3788,3817,3957,3986,4126,4155,4295,4324,4464,4493,4633,4662... |
#include "format/json.hpp"
#include <parsium/common/tag/throw.hpp>
#include <parsium/mckeeman/formatting.hpp>
#include <parsium/mckeeman/parser.hpp>
#include <iostream>
#include <sstream>
using namespace parsium;
using namespace parsium::mckeeman;
std::string formatted(const builder::Grammar& g, const MultiHead& mh... |
; A341055: Inverse permutation to A341054.
; Submitted by Christian Krause
; 0,1,4,2,3,12,13,11,5,6,7,10,8,9,36,37,35,38,39,40,34,32,33,15,16,14,17,18,19,22,20,21,30,31,29,23,24,25,28,26,27,108,109,107,110,111,112,106,104,105,114,115,113,116,117,118,121,119,120,102,103,101,95,96,97,100,98,99,45,46,44,47,48,49,43,41,42,... |
; A211440: Number of ordered triples (w,x,y) with all terms in {-n,...,0,...,n} and 2w+3x+3y=0.
; 1,3,5,17,23,29,53,63,73,109,123,137,185,203,221,281,303,325,397,423,449,533,563,593,689,723,757,865,903,941,1061,1103,1145,1277,1323,1369,1513,1563,1613,1769,1823,1877,2045,2103,2161,2341,2403,2465,2657,2723,2789,2993,3063... |
; int isgreater(real-floating x, real-floating y)
SECTION code_clib
SECTION code_fp_math48
PUBLIC am48_isgreater
EXTERN am48_dgt
; Return bool (AC > AC')
;
; enter : AC = double x
; AC' = double y
;
; exit : HL = 0 and carry reset if false
; HL = 1 and carry set if true
;
... |
TITLE Segment Example (main module, Seg2.asm)
EXTRN var2:WORD, subroutine_1:PROC
cseg SEGMENT BYTE PUBLIC 'CODE'
ASSUME cs:cseg,ds:dseg, ss:sseg
main PROC
mov ax,dseg ; initialize DS
mov ds,ax
mov ax,var1 ; local variable
mov bx,var2 ; external variable
call subroutine_1 ... |
; A199474: Leftmost column in the monotonic justified array of all positive generalized Fibonacci sequences (A160271).
; Submitted by Jamie Morken(s2)
; 1,2,3,2,4,3,5,4,3,6,5,4,7,6,5,4,8,7,6,5,9,8,7,6,5,10,9,8,7,6,11,10,9,8,7,6,12,11,10,9,8,7,13,12,11,10,9,8,7,14,13,12,11,10,9,8,15,14,13,12,11,10,9,8,16,15,14,13,12,11,... |
; t10-challenge-1.0-HOT-TOPIC.asm
; Write a program to determine the number of positive &
; negative numbers in a list
LIST DB 12, 29, -9, 5, -48, 20
MOV SI, 0
MOV CX, 6
L1:
CMP LIST[SI], 0
JE L2
JG L3
INC CNTN ; > 0
JMP L2
L3: INC CNTP ; <0
L2:
INC SI
LOOP L1
MOV AH, 02H |
; A158064: a(n) = 36*n^2 + 2*n.
; 38,148,330,584,910,1308,1778,2320,2934,3620,4378,5208,6110,7084,8130,9248,10438,11700,13034,14440,15918,17468,19090,20784,22550,24388,26298,28280,30334,32460,34658,36928,39270,41684,44170,46728,49358,52060,54834,57680,60598,63588,66650,69784,72990,76268,79618,83040,86534,90100,93738,97... |
; A094875: a(n)=1 if floor(Pi*10^n) is prime, otherwise a(n)=0.
; Submitted by Jon Maiga
; 1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
lpb $0
gcd $0,20165
mov ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "irc.h"
#include "net.h"
#include "strlcpy.h"
#include "base58.h"
using ... |
; int wv_priority_queue_reserve(wv_priority_queue_t *q, size_t n)
SECTION code_clib
SECTION code_adt_wv_priority_queue
PUBLIC wv_priority_queue_reserve_callee
EXTERN asm_wv_priority_queue_reserve
wv_priority_queue_reserve_callee:
pop hl
pop bc
ex (sp),hl
jp asm_wv_priority_queue_reserve
|
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/arc/intent_helper/local_activity_resolver.h"
#include <string>
#include <utility>
#include "components/arc/intent_helper/intent_fil... |
; sounds.asm - makes sounds 'n' stuff
SUBROUTINE
LDA stepVol
STA AUDV0
LDA stepSnd
STA AUDC0
LDA #NULL
STA stepVol
|
; unsigned int sms_dzx7_standard_vram(void *src, unsigned int dst)
SECTION code_clib
SECTION code_compress_zx7
PUBLIC _sms_dzx7_standard_vram
EXTERN asm_sms_dzx7_standard_vram
_sms_dzx7_standard_vram:
pop af
pop hl
pop de
push de
push hl
push af
jp asm_sms_dzx7_standard_vram
|
; A165020: Length of cycle mentioned in A165019
; 2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3
add $0,3896
div $0,1300
mov $1,$0
|
_ln: file format elf32-littlearm
Disassembly of section .text:
00000000 <main>:
#include "user.h"
int
main(int argc, char *argv[])
{
if(argc != 3){
0: e3500003 cmp r0, #3
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
4: e92d4818 push {r3, r4, fp, lr}
8: e1a04001 mov r4, ... |
#include <bits/stdc++.h>
using namespace std;
#define f(i,x,n) for(int i=x;i<n;i++)
// Let Bot is 2 and User is 1
int n=8,m=8;
int la;
int a[16][16],sum=0;
array <int,8> b;
int check()
{
if(sum==64)
return 3;
f(i,0,n)
f(j,0,m)
{
if(a[i][j]!=0&&a[i][j]==a[i][j+1]&&a[i][j+1]==a[i][j+2]&&a[i][j+2]==a[i][j+3])
... |
_ln: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
if(argc != 3){
7: 83 39 03 cmpl $0x3,(%ecx)... |
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="file, owner, group"/>
<%docstring>
Invokes the syscall lchown. See 'man 2 lchown' for more information.
Arguments:
file(char): file
owner(uid_t): owner
group(gid_t): group
</%docstring>
${syscall('SYS_lchown', file, owner, group... |
CHECK 0
ADD 0
ADD 1
JZ error
EXIT 0
error: EXIT 1
|
.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_WC_ht+0xae56, %r11
nop
nop
nop
nop
sub %rcx, %rcx
mov $0x6162636465666768, %rbp
movq %rbp, (%r11)
nop
nop
nop
cmp $5271, %rbp
lea addresses_A_ht+0x19556, %rdx
nop
nop
nop
cmp %r14, ... |
;*************************************************
.define gpu_addr, 0x2000
.define gpu_ctrl_reg, 0x80
.define gpu_isr_vector, 0x14
;*************************************************
.code
ldi r0, 0b00001100
out r0, gpu_ctrl_reg
ldi r2, gpu_addr[l]
... |
; A284557: a(n) = A048727(n) mod 3.
; Submitted by Jamie Morken(s1)
; 0,1,2,0,1,0,0,0,2,0,0,1,0,2,0,0,1,2,0,1,0,2,2,2,0,1,1,2,0,2,0,0,2,0,1,2,0,2,2,2,0,1,1,2,1,0,1,1,0,1,2,0,2,1,1,1,0,1,1,2,0,2,0,0,1,2,0,1,2,1,1,1,0,1,1,2,1,0,1,1,0,1,2,0,2,1,1,1,2,0,0,1,2,1,2,2,0,1,2,0
seq $0,48727 ; a(n) = Xmult(n,7) or rule150(n,1).... |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
org 0E
NOP
LOADIM R1, #5
LOADIM R5, #AC
LOADIM R6, #79
ROTAR R3, R5, R1
ROTAL R4, R6, R1
GRTEQ R3, R4
JMPADDR greater
greater:
XOR R1, R3, R4
NOT R3, R3
NEG R4, R4
fin:
JMPADDR fin
|
db JIGGLYPUFF ; pokedex id
db 115 ; base hp
db 45 ; base attack
db 20 ; base defense
db 20 ; base speed
db 25 ; base special
db NORMAL ; species type 1
db NORMAL ; species type 2
db 170 ; catch rate
db 76 ; base exp yield
INCBIN "pic/gsmon/jigglypuff.pic",0,1 ; 55, sprite dimensions
dw JigglypuffPicFront
dw JigglypuffP... |
; A051708: Number of ways to move a chess rook from the lower left corner to square (n,n), with the rook moving only up or right.
; Submitted by Jon Maiga
; 1,2,14,106,838,6802,56190,470010,3968310,33747490,288654574,2480593546,21400729382,185239360178,1607913963614,13991107041306,122002082809110,1065855419418690,93272... |
.include "header.inc"
.include "misc_macros.inc"
.include "zeropage.inc"
.define TEXT_SCREEN_BYTE_PITCH 64
; define characters used for drawing boxes
.define FIRST_BOX_CHAR $80
.define BOX_CHAR_UL FIRST_BOX_CHAR+0 ; upper left corner
.define BOX_CHAR_UR FIRST_BOX_CHAR+1 ; upper right corner
.define BOX_CHAR_LL FIRST_... |
; A257970: a(1) = 1, a(2) = 2, a(3) = 5; thereafter a(n) = 2 * Sum_{k=1..n-1} a(k).
; 1,2,5,16,48,144,432,1296,3888,11664,34992,104976,314928,944784,2834352,8503056,25509168,76527504,229582512,688747536,2066242608,6198727824,18596183472,55788550416,167365651248,502096953744,1506290861232,4518872583696,13556617751088
m... |
; A078716: Sequence has period 9 and differences between successive terms are 4, -3, 4, -3, 4, -3, 4, -3, -4.
; 1,5,2,6,3,7,4,8,5,1,5,2,6,3,7,4,8,5,1,5,2,6,3,7,4,8,5,1,5,2,6,3,7,4,8,5,1,5,2,6,3,7,4,8,5,1,5,2,6,3,7,4,8,5,1,5,2,6,3,7,4,8,5,1,5,2,6,3,7,4,8,5,1
mod $0,9
mov $1,$0
mov $2,7
lpb $0,1
div $0,2
mul $0,2
... |
; A309322: Expansion of Sum_{k>=1} phi(k) * x^k/(1 - x^k)^3, where phi = Euler totient function (A000010).
; Submitted by Christian Krause
; 1,4,8,15,19,35,34,56,63,86,76,141,103,157,182,212,169,294,208,355,335,359,298,556,405,490,522,657,463,865,526,816,773,812,856,1239,739,1003,1058,1424,901,1610,988,1525,1617,1445,1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.