text stringlengths 1 1.05M |
|---|
;
; Generic pseudo graphics routines for text-only platforms
; Version for the 2x3 graphics symbols
;
; Written by Stefano Bodrato 19/12/2006
;
;
; Clears graph screen.
;
;
; $Id: clsgraph.asm,v 1.5 2017/01/02 22:57:59 aralbrec Exp $
;
INCLUDE "graphics/grafix.inc"
SECTION code_clib
... |
#include "stdafx.h"
#include "compress.h"
#include "Platform.h"
#include <assert.h>
#include "Alloc.h"
#include "LzmaLib.h"
#include "LzmaDec.h"
#include "LzmaEnc.h"
#include <iostream>
#include <fstream>
using namespace std;
#pragma comment(lib,"..\\lzma\\C\\Util\\LzmaLib\\Release\\LZMA.lib")
... |
; A047311: Numbers that are congruent to {4, 5, 6} mod 7.
; 4,5,6,11,12,13,18,19,20,25,26,27,32,33,34,39,40,41,46,47,48,53,54,55,60,61,62,67,68,69,74,75,76,81,82,83,88,89,90,95,96,97,102,103,104,109,110,111,116,117,118,123,124,125,130,131,132,137,138,139,144
mov $1,$0
div $1,3
mul $1,4
add $0,$1
add $0,4
|
_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 ... |
GEN_XFRM = 1
include ftrans.asm
|
;Program to find out the sum of n-terms of an AP
;Number of terms stored at 0x0001
;Loading of registers
LDA 0x0001
LXI H, 0x0000
LXI D,0x0001
LXI B,0x0006 ;Loading of constant difference
;Performing the addition
AGAIN:DAD D
XCHG
DAD B
XCHG
DCR A
JNZ AGAIN
;Stroing the result at 0x0002
SHLD 0x0002
HLT
|
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; gfx functions
;
; Videmo memory page handling
;
;
; ------
; $Id: ozgetdisplaypage.asm,v 1.1 2003/10/23 10:42:50 stefano Exp $
;
XLIB ozgetdisplaypage
ozgetdisplaypage:
in a,(22h... |
; A171835: Partial sums of numbers congruent to {3, 4, 5, 6} mod 8 (A047425).
; 3,7,12,18,29,41,54,68,87,107,128,150,177,205,234,264,299,335,372,410,453,497,542,588,639,691,744,798,857,917,978,1040,1107,1175,1244,1314,1389,1465,1542,1620,1703,1787,1872,1958,2049,2141,2234,2328,2427,2527,2628,2730,2837,2945,3054,3164,32... |
MarowakAnim:
; animate the ghost being unveiled as a Marowak
ld a, $e4
ld [rOBP1], a
call CopyMonPicFromBGToSpriteVRAM ; cover the BG ghost pic with a sprite ghost pic that looks the same
; now that the ghost pic is being displayed using sprites, clear the ghost pic from the BG tilemap
coord hl, 12, 0
lb bc, 7, 7
... |
; A013966: a(n) = sigma_18(n), the sum of the 18th powers of the divisors of n.
; 1,262145,387420490,68719738881,3814697265626,101560344351050,1628413597910450,18014467229220865,150094635684419611,1000003814697527770,5559917313492231482,26623434909949071690,112455406951957393130,426880482624234915250,147789188385048507... |
;
; Intrinsic sccz80 routine to multiply by a power of 2
;
;
SECTION code_fp_dai32
PUBLIC l_f32_ldexp
; Entry: a = adjustment for exponent
; Stack: float, ret
; Exit: dehl = adjusted float
l_f32_ldexp:
add d
ld d,a
ret
|
#include "idb_transaction.h"
#include "idb_object_store.h"
#include "idb_database.h"
USING_NAMESPACE_HTML5;
HTML5_BIND_CLASS(IDBDatabase);
IDBDatabase::IDBDatabase(emscripten::val v) :
EventTarget(v)
{
}
IDBDatabase::~IDBDatabase()
{
}
IDBDatabase *IDBDatabase::create(emscripten::val v)
{
auto db = new I... |
; vi:syntax=z80
; ZEnv - Forth for the ZX Spectrum
; Copyright 2021 (C) - Christopher Leonard, MIT Licence
; https://github.com/veltas/zenv
; Memory manipulating words
HEADER fetch, "@", 0
fetch:
LD E, (HL)
INC HL
LD D, (HL)
EX DE, HL
JP next
HEADER c_fetch, "C@", 0
c_fetch:
LD E, (HL)
LD D, 0
EX DE, HL... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>getrusage(who, usage) -> str
Invokes the syscall getrusage.
See 'man 2 getrusage' for more information.
Arguments:
who(rusage_who_t): who
usage(rusage*): usage
Returns:
int
</%docstring>
<%p... |
;
; Put character to console
;
; fputc_cons(char c)
;
;
; $Id: fgetc_cons.asm,v 1.5 2016-05-12 21:42:05 dom Exp $
;
SECTION code_clib
PUBLIC fgetc_cons
PUBLIC _fgetc_cons
INCLUDE "target/test/def/test_cmds.def"
.fgetc_cons
._fgetc_cons
ld a,CMD_READKEY
call SYSCALL
ret
|
// Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/heap/mark-compact.h"
#include "src/base/atomicops.h"
#include "src/base/bits.h"
#include "src/base/sys-info.h"
#include "src/code-stubs.h... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1e940, %r11
and %r8, %r8
mov (%r11), %r10w
nop
nop
nop
nop
nop
xor %r13, %r13
lea addresses_normal_ht+0x175c0, %r11
nop
nop
nop
nop
and $37036, %r9
mov $0x6162636465666768, %rc... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT:
MODULE:
FILE: meltpref.asm
AUTHOR: Adam de Boor, Dec 3, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Descriptio... |
VictoryRoad3Script:
call VictoryRoad3Script_44996
call EnableAutoTextBoxDrawing
ld hl, VictoryRoad3TrainerHeaders
ld de, VictoryRoad3ScriptPointers
ld a, [wVictoryRoad3CurScript]
call ExecuteCurMapScriptInTable
ld [wVictoryRoad3CurScript], a
ret
VictoryRoad3Script_44996:
ld hl, wCurrentMapScriptFlags
bit 5, ... |
db 0 ; species ID placeholder
db 80, 80, 80, 80, 80, 80
; hp atk def spd sat sdf
db ICE, ICE ; type
db 75 ; catch rate
db 187 ; base exp
db NO_ITEM, NEVERMELTICE ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/glalie/fr... |
; A157079: 32805000n^2 - 10513800n + 842401.
; 23133601,111034801,264546001,483667201,768398401,1118739601,1534690801,2016252001,2563423201,3176204401,3854595601,4598596801,5408208001,6283429201,7224260401,8230701601,9302752801,10440414001,11643685201,12912566401,14247057601,15647158801,17112870001,18644191201,20241122... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
001272 move.l (A1,D0.w), ($4c,A6)
001278 or.w D0, D0 [enemy+4C, enemy+4E, etc+4C, etc+4E, item+4C, item+4E]
0012C2 move.l (A1,D0.w), ($4c,A6)
0012C8 move #$1, CCR [enemy+4C, enemy+4E, etc+4C, etc+4... |
#include "Geometry/EcalMapping/interface/ESElectronicsMapper.h"
ESElectronicsMapper::ESElectronicsMapper(const edm::ParameterSet& ps) {
lookup_ = ps.getParameter<edm::FileInPath>("LookupTable");
for (int i = 0; i < 2; ++i)
for (int j = 0; j < 2; ++j)
for (int k = 0; k < 40; ++k)
for (int m = 0; ... |
#include <iostream>
#include <iomanip>
using namespace std;
int main(void)
{
int a, b;
cin >> a >> b;
if (a % b == 0 || b % a == 0) cout << "Sao Multiplos" << endl;
else cout << "Nao sao Multiplos" << endl;
return 0;
}
|
; A214863: Numbers n such that n XOR 11 = n - 11.
; 11,15,27,31,43,47,59,63,75,79,91,95,107,111,123,127,139,143,155,159,171,175,187,191,203,207,219,223,235,239,251,255,267,271,283,287,299,303,315,319,331,335,347,351,363
mov $1,$0
mod $0,2
mul $1,2
sub $1,$0
mul $1,4
add $1,11
|
song1_header:
.byte $04 ;4 streams
.byte MUSIC_SQ1 ;which stream
.byte $01 ;status byte (stream enabled)
.byte SQUARE_1 ;which channel
.byte $70 ;initial duty (01)
.byte ve_tgl_1 ;volume envelope
.word song1_square1 ;pointer to stream
.byt... |
;------------------------------------------------------------------------------ ;
; Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; ExceptionHandlerAsm.Asm
;
; Abstract:
;
; x64 CPU Exception Handler
;
; Notes:
;... |
/*
* Copyright Andrey Semashev 2007 - 2015.
* 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)
*/
/*!
* \file named_scope.cpp
* \author Andrey Semashev
* \date 24.06.2007
*
* \brief ... |
; A200978: Number of ways to arrange n books on 3 consecutive shelves leaving none of the shelves empty.
; 6,72,720,7200,75600,846720,10160640,130636800,1796256000,26345088000,410983372800,6799906713600,118998367488000,2196892938240000,42682491371520000,870722823979008000,18611700362551296000,416026243398205440000
mov... |
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_PrimitiveID 0 x 0 PRIMID uint x
// SV_SampleIndex ... |
; A213184: Numbers which may represent a date in "condensed American notation" MMDDYY.
; 10100,10101,10102,10103,10104,10105,10106,10107,10108,10109,10110,10111,10112,10113,10114,10115,10116,10117,10118,10119,10120,10121,10122,10123,10124,10125,10126,10127,10128,10129,10130,10131,10132,10133,10134,10135,10136,10137,101... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x13942, %rdx
cmp %r9, %r9
mov (%rdx), %r14d
nop
nop
nop
nop
xor %r9, %r9
lea addresses_A_ht+0x7e02, %r8
nop
cmp $28765, %rbx
movl $0x61626364, (%r8)
add $40531, %r8
l... |
; A016805: (4n)^5.
; 0,1024,32768,248832,1048576,3200000,7962624,17210368,33554432,60466176,102400000,164916224,254803968,380204032,550731776,777600000,1073741824,1453933568,1934917632,2535525376
mul $0,4
pow $0,5
|
/* Copyright 2018 Stanford University
*
* 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 agree... |
; A005725: Quadrinomial coefficients.
; Submitted by Jon Maiga
; 1,1,3,10,31,101,336,1128,3823,13051,44803,154518,534964,1858156,6472168,22597760,79067375,277164295,973184313,3422117190,12049586631,42478745781,149915252028,529606271560,1872653175556,6627147599476,23471065878276,83186110269928,295024653043480,1046972450... |
.pc = BASIC "Basic upstart" {
.word !+
.byte 1, 0
rp: .byte $9e, $20
.byte $31, $33, $33, $37, 0
!: .word !+
.byte 2, $00
.byte $8f, $20
.text "PET-A-BYTE"
.byte 0
!: .word !+
.byte 3, $00
.byte $8f, $20
.text " "
.text "BY B00LDUCK"
.byte 0
!: .word !+
.byte 5,$00
.byte $8f, $20
... |
_setPriority: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "traps.h"
#include "memlayout.h"
int
main(int argc, char *argv[])
{
0: f3 0f 1e fb endbr32
4: 8d 4c 24 04 lea 0x4(%esp),%ecx
8: 83 e4 f0 and $0xfffffff0,%esp
b: ff 71... |
// Copyright (c) 2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "timedata.h"
#include "netbase.h"
#include "sync.h"
#include "ui_interface.h"
#include "util.h"
#include "utilstrencodings.h"... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x10fe4, %rsi
lea addresses_UC_ht+0x44e4, %rdi
xor %r12, %r12
mov $31, %rcx
rep movsl
nop
nop
nop
nop
nop
sub %r13, %r13
lea addresses_D_ht+0x9160, %rbx
add %r9, %r9
mov (%rbx)... |
include "hardware.inc"
;; This is a short program which just contains the noise macro logic found
;; in hUGEDriver. Values are poked by the tracker into RAM, and they are played back
;; by this routine, which is constantly running when the tracker is not playing a song.
add_a_to_r16: MACRO
add \2
ld \2, a
... |
; A086577: a(n) = 6*(10^n - 1).
; 0,54,594,5994,59994,599994,5999994,59999994,599999994,5999999994,59999999994,599999999994,5999999999994,59999999999994,599999999999994,5999999999999994,59999999999999994,599999999999999994,5999999999999999994,59999999999999999994,599999999999999999994
mov $1,10
pow $1,$0
sub $1,1
mul ... |
dnl mpn_double
dnl Copyright 2011 The Code Cavern
dnl This file is part of the MPIR Library.
dnl The MPIR Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by the Free Software Foundation; either version 2.1 of the L... |
; A125254: Smallest prime divisor of 4n-1 that is of the form 4k-1.
; 3,7,11,3,19,23,3,31,7,3,43,47,3,11,59,3,67,71,3,79,83,3,7,19,3,103,107,3,23,7,3,127,131,3,139,11,3,151,31,3,163,167,3,7,179,3,11,191,3,199,7,3,211,43,3,223,227,3,47,239,3,19,251,3,7,263,3,271,11,3,283,7,3,59,23,3,307,311,3,11,19,3,331,67,3,7,347,3,71... |
; A040507: Continued fraction for sqrt(531).
; 23,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46,23,46
pow $1,$0
sub $1,2
gcd $1,$0
mul $1,23
|
; A270794: The prime/nonprime compound sequence BAA.
; Submitted by Jamie Morken(s1)
; 6,9,18,26,45,57,81,91,112,143,165,203,228,244,267,303,345,354,411,437,454,495,530,564,623,668,687,714,728,749,856,893,931,959,1032,1054,1104,1158,1185,1233,1268,1298,1372,1392,1425,1445,1539,1672,1698,1714,1742,1773,1802,1886,1914,19... |
/* <!-- copyright */
/*
* aria2 - The high speed download utility
*
* Copyright (C) 2009 Tatsuhiro Tsujikawa
*
* This program 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 2 of the Lice... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
; A051880: a(n) = binomial(n+4,4)*(2*n+1).
; 1,15,75,245,630,1386,2730,4950,8415,13585,21021,31395,45500,64260,88740,120156,159885,209475,270655,345345,435666,543950,672750,824850,1003275,1211301,1452465,1730575,2049720,2414280,2828936,3298680,3828825,4425015,5093235
lpb $0
mov $1,$0
add $2,1
mov $3,$0
div $0,... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosGetCtryInfo DOS wrapper
;
; (c) osFree Project 2018, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokus... |
processor 6502
org $1000
loop:
lda #$03
sta $d021
sta $d020
jmp loop |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x151a5, %rcx
nop
nop
sub %r11, %r11
mov (%rcx), %r15
nop
nop
nop
nop
nop
and %r14, %r14
lea addresses_UC_ht+0x12b25, %rsi
lea addresses_WC_ht+0xafd5, %rdi
clflush (%rdi)
nop
cmp %rbx, %... |
// Copyright 2019 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/safe_browsing/core/realtime/url_lookup_service.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/mock_callback.... |
; A343998: a(n) = A343997(n)/2.
; Submitted by Jon Maiga
; 1,2,1,4,2,2,3,8,4,2,5,4,6,4,3,16,8,4,9,8,3,6,11,8,12,6,13,4,14,8,15,32,6,8,7,4,18,10,6,8,20,10,21,16,5,12,23,16,24,12,9,20,26,14,5,24,9,14,29,8,30,16,14,64,13,6,33,8,12,10,35,32,36,18,12,28,11,6,39,32,40,20,41,24,17,22
add $0,1
mov $3,$0
mul $3,3
mov $4,$0
lpb... |
###############################################################################
# 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... |
org 0x7c00
jmp 0x0000:start
; ♥ ♥ ♥ ♥ ♥
; Assembly is love
; @ovictoraurelio
; @jgfn1
; With contributions of Nathan Martins Freire.
;int number_programs
;int i
;int maior = 0
;int menor = 100000
;
;scanf(number_programs)
;for(i = 0; i < number_programs;i++)
;{
; scanf(inteiro[i])
; if(inteiro[i] > maior)
; m... |
; A191275: Numbers that are congruent to {0, 1, 3, 5, 7, 9, 11} mod 12.
; 0,1,3,5,7,9,11,12,13,15,17,19,21,23,24,25,27,29,31,33,35,36,37,39,41,43,45,47,48,49,51,53,55,57,59,60,61,63,65,67,69,71,72,73,75,77,79,81,83,84,85,87,89,91,93,95,96,97,99,101,103,105,107,108,109,111
mov $1,$0
lpb $0
add $1,$0
trn $0,6
sub ... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 96
call lwaitly_b
ld a, 80
ldff(68), a
ld a, ff
ld c, 69
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
ldff(c), a
xor a, a
ldff(c), a
ldff(c), a
ld a, 40
ldff(41), a
ld a, 02... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GlobalPC 1999 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Printer Drivers
FILE: jobStartCanonBJ.asm
AUTHOR: Joon Song, 9 Jan 1999
ROUTINES:
Name Description
---- -----------
PrintStartJob Setup ... |
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="who, usage"/>
<%docstring>
Invokes the syscall getrusage. See 'man 2 getrusage' for more information.
Arguments:
who(rusage_who_t): who
usage(rusage): usage
</%docstring>
${syscall('SYS_getrusage', who, usage)}
|
;------------------------------------------------------------------------------
;
; GetInterruptState() function for ARM
;
; Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Pate... |
;ASTER 06/03/2009 1245
;TO BE ASSEMBLED IN KEIL MICROVISION V3.60
;ARTIFICIAL INTELLIGENCE
;MICROCOMPUTER B SERVO
;-----------------------------------------------------------------------------------------------------------
;SET THE ASSEMBLER FOR AT89S52
$NOMOD51
$INCLUDE (AT89X52.h)
;------------------------------... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, 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... |
; A007495: Josephus problem: survivors.
; 1,1,2,2,2,4,5,4,8,8,7,11,8,13,4,11,12,8,12,2,13,7,22,2,8,13,26,4,26,29,17,27,26,7,33,20,16,22,29,4,13,22,25,14,22,37,18,46,42,46,9,41,12,7,26,42,24,5,44,53,52,58,29,22,12,48,27,30,58,52,49,57,13,14,32,24,75,8,67,56,40,61,51,77,35,57,74,63,75,12,72,89,11,32,32,59,61,62,89,22,31,... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1d4ca, %rax
nop
nop
xor $5664, %rbx
movb (%rax), %r11b
nop
nop
nop
and %r15, %r15
lea addresses_A_ht+0xf11e, %r14
nop
nop
nop
nop
nop
dec %rdi
mov $0x6162636465666768, %rsi
... |
; A082114: Diagonal sums of number array A082110.
; 1,2,9,32,89,210,441,848,1521,2578,4169,6480,9737,14210,20217,28128,38369,51426,67849,88256,113337,143858,180665,224688,276945,338546,410697,494704,591977,704034,832505,979136,1145793,1334466,1547273
mov $19,$0
mov $21,$0
add $21,1
lpb $21
clr $0,19
mov $0,$19
s... |
.model small
.stack 100h
.data
msg1 db "Hello world...!$"
msg2 db "i am wasit shafi!$"
.code
main proc
mov ax, @data
mov ds, ax
up:
lea dx, msg1
mov ah, 09h
int 21H
mov dl, 10 ;line feed
mov ah, 02h
int 21h
mov dl, 13 ;Carriage re... |
; A220088: a(n) = 2^n - 81.
; -80,-79,-77,-73,-65,-49,-17,47,175,431,943,1967,4015,8111,16303,32687,65455,130991,262063,524207,1048495,2097071,4194223,8388527,16777135,33554351,67108783,134217647,268435375,536870831,1073741743,2147483567,4294967215
mov $1,2
pow $1,$0
sub $1,81
|
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, 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... |
#include <ros/ros.h>
#include <math.h>
#include <nav_msgs/OccupancyGrid.h>
#include <nav_msgs/MapMetaData.h>
#include "std_msgs/String.h"
#include "sensor_msgs/LaserScan.h"
//CONSTANTS
#define MAX_DISTANCE 10 // Max distance of 10 meters
#define DIMENSIONS 200 // The grid dimensions
#define RESOLUTION 0.1 // Resolut... |
;-----------------------------------------------------------------------------;
; Author: Stephen Fewer (stephen_fewer[at]harmonysecurity[dot]com)
; Compatible: Windows 7, 2008, 2003, XP
; Architecture: x64
; Version: 1.0 (Jan 2010)
; Size: 314 bytes
; Build: >build.py migrate
;----------------------------------... |
/**
Copyright 2014-2015 Jason R. Wendlandt
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 writing, sof... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1e3ab, %rsi
lea addresses_WC_ht+0x12073, %rdi
nop
nop
nop
dec %r9
mov $81, %rcx
rep movsb
nop
add $21414, %r12
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push... |
; A073388: Convolution of A002605(n) (generalized (2,2)-Fibonacci), n >= 0, with itself.
; 1,4,16,56,188,608,1920,5952,18192,54976,164608,489088,1443776,4238336,12382208,36022272,104407296,301618176,868765696,2495715328,7152286720,20452548608,58369409024,166276481024,472876388352,1342740086784,3807270862848,10780966420... |
#include "common/call_log.h"
#include "common/zlog.h"
# pragma warning (disable:4819) //unicode warning
#include <boost/format.hpp>
//boost::atomic<long> call_log::counter(0);
call_log::call_log(std::string function, std::string file, enum logging_level level)
: level(level), mfunction(function)
{
static uint32 co... |
;-----------------------------------------------------------------------------
; ceil.asm - floating point ceiling
; Ported from Al Maromaty's free C Runtime Library
;-----------------------------------------------------------------------------
SECTION .text
global ceil
... |
; Tilesets indexes (see data/tilesets.asm)
const_def 1
const TILESET_SINNOH_1 ; 01 WEST SINNOH 1 (TWINLEAF, SANDGEM, JUBILIFE)
const TILESET_SINNOH_2 ; 02 WEST SINNOH 2 (OREBURGH, CANALAVE)
const TILESET_SINNOH_3 ; 03 WEST SINNOH 3 (FLOAROMA, ETERNA)
const TILESET_PLAYERS_ROOM ... |
/*
Copyright (c) 2017-2021,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include "helics/helics-config.h"
#include "helics/helic... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xe304, %r15
and $5513, %r8
mov $0x6162636465666768, %rbx
movq %rbx, %xmm0
vmovups %ymm0, (%r15)
sub $3844, %rbp
lea addresses_WC_ht+0x124da, %rsi
lea addresses_normal_ht+0xd98a,... |
; A047413: Numbers that are congruent to {3, 4, 6} mod 8.
; 3,4,6,11,12,14,19,20,22,27,28,30,35,36,38,43,44,46,51,52,54,59,60,62,67,68,70,75,76,78,83,84,86,91,92,94,99,100,102,107,108,110,115,116,118,123,124,126,131,132,134,139,140,142,147,148,150,155,156,158
add $0,1
mov $1,$0
lpb $0,1
sub $0,1
trn $0,1
add $1,... |
#pragma once
#include "physics/rotating_body.hpp"
#include <algorithm>
#include <vector>
#include "geometry/r3_element.hpp"
#include "geometry/rotation.hpp"
#include "physics/oblate_body.hpp"
#include "quantities/constants.hpp"
#include "quantities/si.hpp"
namespace principia {
namespace physics {
namespace inter... |
db DEX_SCYTHER ; pokedex id
db 70, 110, 80, 105, 55
; hp atk def spd spc
db BUG, FLYING ; type
db 45 ; catch rate
db 187 ; base exp
INCBIN "gfx/pokemon/front/scyther.pic", 0, 1 ; sprite dimensions
dw ScytherPicFront, ScytherPicBack
db QUICK_ATTACK, NO_MOVE, NO_MOVE, NO_MOVE ; level 1 learnset
db ... |
; push color
; push x1
; push y1
; push x2
; push y2
lineFromTo:
push bp
mov bp,sp
push bx
mov ax,[bp+6]
sub ax,[bp+10]
jnl lineFromTo_prev1
neg ax
lineFromTo_prev1:
mov cx,[bp+4]
sub cx,[bp+8]
jnl lineFromTo_prev2
neg cx
lineFromTo_prev2:
cmp cx,ax
jle lineFromTo_y_less_x
;------... |
section .text
global start
extern main
extern exitu
start:
call main
call exitu
jmp $ |
%include "include/PagingInit.mac"
[BITS 16]
;********************************************************************************************************
;Generacion de paginas para el mappeo de los 4 primeros megas de memoria en identity mapping
;
;
;*******************************************************************... |
%include "lib.asm"
global str_ncpy
global _start
section .code
;;; palindrome(str1)
palindrome:
enter 0,0
push edi
push esi
mov esi, DWORD [EBP+8] ; load str1 pointer
mov edi, esi
dec edi
.edi2end:
inc edi
cmp [edi], byte 0
jne .edi2end
;dec edi ; edi is on last char
dec esi ; fake for... |
global switch_to_user_mode
extern user_base
extern _user
section .text
bits 64
switch_to_user_mode:
mov rcx, _user
o64 mov r11, 0x0202
o64 sysret
|
; A130727: List of triples 2n+1, 2n+3, 2n+2.
; 1,3,2,3,5,4,5,7,6,7,9,8,9,11,10,11,13,12,13,15,14,15,17,16,17,19,18,19,21,20,21,23,22,23,25,24,25,27,26,27,29,28,29,31,30,31,33,32,33,35,34,35,37,36,37,39,38,39,41,40,41,43,42,43,45,44,45,47,46,47,49,48,49,51
add $0,2
mov $2,$0
mov $3,$0
lpb $2
trn $2,2
mov $1,$2
tr... |
#include <cstdio>
#include <map>
#include <vector>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Image_3.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
typedef Kernel::Point_3 Point_3;
int idx(Point_3 p,
std::vector<Point_3> &V,
std::map<Point_... |
; A001899: Number of divisors of n of form 5k+4; a(0) = 0.
; 0,0,0,0,1,0,0,0,1,1,0,0,1,0,1,0,1,0,1,1,1,0,0,0,2,0,0,1,2,1,0,0,1,0,1,0,2,0,1,1,1,0,1,0,2,1,0,0,2,1,0,0,1,0,2,0,2,1,1,1,1,0,0,1,2,0,0,0,2,1,1,0,3,0,1,0,2,0,1,1,1,1,0,0,3,0,0,1,2,1,1,0,1,0,1,1,2,0,2,2
mov $2,$0
lpb $0
max $0,1
mov $3,$2
dif $3,$0
cmp ... |
copyright zengfr site:http://github.com/zengfr/romhack
007128 tst.b ($4d5,A5)
00712C bne $71fc
00731C tst.b ($4d5,A5) [123p+ B1]
007320 bne $732c
0074EC tst.b ($4d5,A5)
0074F0 bne $7560
007D8E tst.b ($4d5,A5)
007D92 bne $7dd8
007E78 tst.b ($4d5,A5)
007E7C bne $7f46
007E... |
; AtriumOS display routines
; Copyright (c) 2017-2021 Mislav Bozicevic
; 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, t... |
; A081903: A sequence related to binomial(n+5, 5).
; Submitted by Jon Maiga
; 1,10,85,660,4830,33876,230030,1522400,9866375,62828750,394146875,2440812500,14944687500,90590625000,544242187500,3243437500000,19189111328125,112777832031250,658804931640625,3827075195312500,22117736816406250,127216186523437500,72848052978515... |
#include "SimDataFormats/Vertex/interface/SimVertex.h"
SimVertex::SimVertex() : itrack(-1), vtxId(0), procType(0) {}
SimVertex::SimVertex(const math::XYZVectorD& v, float tof) : Core(v, tof), itrack(-1), vtxId(0), procType(0) {}
SimVertex::SimVertex(const math::XYZVectorD& v, float tof, int it) : Core(v, tof), itrac... |
/*
* Copyright (c) 2018-2021, 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 rights to use, copy, modify, merge, p... |
fetch_controllers:
.(
; Fetch controllers state
lda #$01
sta CONTROLLER_A
lda #$00
sta CONTROLLER_A
; x will contain the controller number to fetch (0 or 1)
ldx #$00
fetch_one_controller:
; Save previous state of the controller
lda controller_a_btns, x
sta controller_a_last_frame_btns, x
; Reset the con... |
org 0x7c00
jmp LABEL_START
LABEL_START:
mov ah, 0
int 0x16 ; 获取键盘输入
mov ah, 0x0e
int 0x10 ; 显示字符
jmp LABEL_START
times 510-($-$$) db 0
dw 0xaa55
|
#include "blobAnalysis.hpp"
#include <iostream>
#include <cmath>
#include <list>
// --------------------------------------------------------------------------
BlobAnalysis::BlobAnalysis()
{
initialize();
}
// --------------------------------------------------------------------------
BlobAnalysis::~B... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x868a, %r11
nop
nop
nop
nop
nop
and %r14, %r14
mov $0x6162636465666768, %r10
movq %r10, %xmm4
movups %xmm4, (%r11)
nop
nop
nop
nop
and %r9, %r9
lea addresses_A_ht+0x85dc, %rsi... |
/*
* Copyright (С) since 2019 Andrei Guluaev (Winfidonarleyan/Kargatum) https://github.com/Winfidonarleyan
* Copyright (С) since 2019+ AzerothCore <www.azerothcore.org>
* Licence MIT https://opensource.org/MIT
*/
#include "CFBG.h"
#include "BattlegroundMgr.h"
#include "Chat.h"
#include "Config.h"
#include "Contain... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.