text stringlengths 1 1.05M |
|---|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x5173, %rax
add %r10, %r10
movups (%rax), %xmm7
vpextrq $0, %xmm7, %rdi
sub $64471, %rax
lea addresses_WC_ht+0xb153, %r9
nop
nop
nop
sub %rax, %rax
movups (%r9), %xmm5
vpe... |
TMHMPocket:
ld a, $1
ldh [hInMenu], a
call TMHM_PocketLoop
ld a, $0
ldh [hInMenu], a
ret nc
call PlaceHollowCursor
call WaitBGMap
ld a, [wCurItem]
dec a
ld [wCurItemQuantity], a
ld hl, wTMsHMs
ld c, a
ld b, 0
add hl, bc
ld a, [hl]
ld [wItemQuantityBuffer], a
call .ConvertItemToTMHMNumber
scf
ret
.C... |
/*
//*****************************************************************************
// SPI Master and LCD output controller Code for MSP430g24x2
//
// Built with the Naken assembler (http://www.mikekohn.net/micro/naken_asm.php)
// This Code needs a part with the USI subsytem in order to support 16bit
// SPI transfers.
/... |
cpu 8086
org 0x100
bits 16
mov ax, 0x0003 ; 80-column text
int 10h
mov ax, 0xb800 ; Set up ES
mov es, ax
call draw_screen
call srand
;; hide cursor
mov ax, 0x0103
mov cx, 0... |
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
ORG 100h ; for COM file.
mov bx,10
mov cx,10
outer_loop:
; push bx value to stack , because bx current state value is need letter
push bx
inner_loop:
; move ascii code 42 to dl... |
; A174418: Alternately sum and multiply with a(1) = 2 and a(2) = 3.
; Submitted by Christian Krause
; 2,3,5,15,20,300,320,96000,96320,9246720000,9246816320,85502721402470400000,85502721411717216320,7310715368019097765567999459196928000000
mov $1,2
mov $2,3
lpb $0
sub $0,2
add $1,$2
mul $2,$1
lpe
lpb $0
div $0,... |
; A192880: Constant term in the reduction by (x^2 -> x + 1) of the polynomial p(n,x) given in Comments.
; Submitted by Christian Krause
; 1,0,3,7,34,123,495,1912,7501,29253,114342,446545,1744489,6814224,26618619,103979239,406172770,1586623227,6197795703,24210320296,94572284197,369425778645,1443080391558,5637075481729,2... |
dnl SPARC v9 mpn_hamdist for T3/T4.
dnl Contributed to the GNU project by David Miller.
dnl Copyright 2013 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 it under the terms of either:
dnl
dnl ... |
SECTION code_sound_bit
PUBLIC _bitfx_29
INCLUDE "clib_target_cfg.asm"
EXTERN asm_bit_beep_raw
_bitfx_29:
ld hl,300
ld de,1
fx6_1:
push de
push hl
call asm_bit_beep_raw
pop hl
pop de
push de
push hl
ld bc,200
sbc hl,bc
call asm_bit_beep_raw
pop hl
... |
;*****************************************************************************
;* Copyright (C) 2013 Martin Storsjo
;*
;* This file is part of Libav.
;*
;* Libav 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 Fo... |
.model
.stack 100h
.data
.code
main proc
mov ah, 01h
int 21h
mov bl,al
mov ah, 01h
int 21h
mov cl, al
mov cl,al
mov ah,02h
mov dl,0Ah
int 21h... |
// 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.
#include "chrome/browser/plugins/plugin_finder.h"
#include "base/values.h"
#include "chrome/browser/plugins/plugin_metadata.h"
#include "testing/gtes... |
//===- islClan.cpp ---------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------------------------------... |
; A093069: a(n) = (2^n + 1)^2 - 2.
; 7,23,79,287,1087,4223,16639,66047,263167,1050623,4198399,16785407,67125247,268468223,1073807359,4295098367,17180131327,68720001023,274878955519,1099513724927,4398050705407,17592194433023,70368760954879,281475010265087,1125899973951487
mov $1,2
pow $1,$0
add $1,1
bin $1,2
mul $1,8
s... |
;//
;// INTEL CORPORATION PROPRIETARY INFORMATION
;// This software is supplied under the terms of a license agreement or
;// nondisclosure agreement with Intel Corporation and may not be copied
;// or disclosed except in accordance with the terms of that agreement.
;// Copyright (c) 2000 Intel C... |
5B_Header:
sHeaderInit ; Z80 offset is $C711
sHeaderPatch 5B_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, 5B_FM5, $11, $00
5B_FM5:
sPatFM $00
dc.b nBb5, $02
sStop
5B_Patches:
; Patch $00
; $24
; $2A, $05, $02, $01, $1A, $10, $1F, $1F
; $0F, $1F, $1F, $1F, $0C, $11, $0D, $11
; $0C, $0... |
;
; Copyright (c) 2018 The WebM 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 in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
/// @example eagine/compress_self.cpp
///
/// Copyright Matus Chochlik.
/// 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
///
#include <eagine/compression.hpp>
#include <eagine/file_contents.hpp>
#include <eagine... |
;--------------------------------------------------
; Ram edit
;--------------------------------------------------
;--------------------------------------------------
; Setting
;--------------------------------------------------
PrgCount = 1
.inesprg PrgCount ; PRG Bank
.ineschr 1 ; CHR Bank
.inesmir 0 ; Mirror... |
; A168604: a(n) = 2^(n-2) - 1.
; 1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215,33554431,67108863,134217727,268435455,536870911,1073741823,2147483647,4294967295,8589934591,17179869183,34359738367,68719476735,137438953471,274877906943,549755... |
//===- MipsSEFrameLowering.cpp - Mips32/64 Frame Information --------------===//
//
// 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
//
//===---------------------------... |
;
; ZX81 libraries
;
;--------------------------------------------------------------
; This code comes from the 'HRG_Tool'
; by Matthias Swatosch
; Original function name: "HRG_Tool_TXTcopy"
;--------------------------------------------------------------
;
; $Id: copytxt.asm,v 1.1 2007/10/01 12:26:46 stefano ... |
#pragma once
#include <functional>
#include <array>
namespace SGE {
enum class EventType
{
WindowResize = 0,
WindowClose,
KeyPressed,
KeyReleased,
MouseButtonPressed,
MouseButtonReleased,
MouseMoved,
EventsCount
};
struct BaseEvent... |
; A305559: [0, -1, -1] together with A000290.
; 0,-1,-1,0,1,4,9,16,25,36,49,64,81,100,121,144,169,196,225,256,289,324,361,400,441,484,529,576,625,676,729,784,841,900,961,1024,1089,1156,1225,1296,1369,1444,1521,1600,1681,1764,1849,1936,2025,2116,2209,2304,2401,2500
mul $0,2
mov $2,4
lpb $0
trn $0,$2
sub $0,1
mov ... |
; A170444: Number of reduced words of length n in Coxeter group on 3 generators S_i with relations (S_i)^2 = (S_i S_j)^45 = I.
; 1,3,6,12,24,48,96,192,384,768,1536,3072,6144,12288,24576,49152,98304,196608,393216,786432,1572864,3145728,6291456,12582912,25165824,50331648,100663296,201326592,402653184,805306368,1610612736... |
; A316168: Decimal expansion of the middle x such that 1/x + 1/(x+2) + 1/(x+4) = 2, negated.
; Submitted by Jamie Morken(s4)
; 1,5,5,2,6,6,2,3,2,6,2,1,3,5,2,6,0,6,1,7,8,0,6,9,9,0,8,4,1,1,0,3,0,6,0,3,6,8,2,3,4,3,5,8,2,1,7,8,7,4,8,1,1,9,0,2,5,4,3,1,8,2,8,1,8,8,1,1,7,6,0,9,9,7,5,4,3,5,6,4,4,7,6,2,2,8
mov $1,1
mov $3,$0
m... |
_kill: 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 ... |
; z88dk wrapper for TMS9918A graphics subroutines
; Copyright 2018 J.B. Langston
;
; 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 r... |
_testfreeAndAllocate: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "user.h"
#include "syscall.h"
#include "stat.h"
#include "fcntl.h"
int main(int argc, char **argv){
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 53 ... |
; ***************************************************************************************
; ***************************************************************************************
;
; Name : data.asm
; Author : Paul Robson (paul@robsons.org.uk)
; Date : 7th December 2018
; Purpose : Data area
;
; **************... |
; A175126: a(0) = a(1) = 0, for n >= 2, a(n) = number of steps of iteration of {r - (smallest prime divisor of r)} needed to reach 0 starting at r = n.
; 0,0,1,1,2,1,3,1,4,4,5,1,6,1,7,7,8,1,9,1,10,10,11,1,12,11,13,13,14,1,15,1,16,16,17,16,18,1,19,19,20,1,21,1,22,22,23,1,24,22,25,25,26,1,27,26,28,28,29,1,30,1,31,31,32,3... |
;------------------------------------------------------------------------------
; @file
; Search for the SEC Core entry point
;
; Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of... |
CODE SEGMENT
ASSUME CS:CODE
START: MOV BL,2
DEC BL
PUSH BX
PUT1: MOV DL,20H
MOV AH,2
INT 21H
POP BX
MOV AL,BL
INC AL
DAA
AND AL,0FH
... |
;-------------------------------------------------------------------------------
; dabort.asm
;
; Copyright (C) 2009-2015 Texas Instruments Incorporated - www.ti.com
;
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Flash.inc"
#include "Buttons.inc"
#include "Lcd.inc"
#include "Motor.inc"
#include "Door.inc"
#include "Ui.inc"
#include "States.inc"
#include "WaitButtonPressState.inc"
radix decimal
LEFT_ARROW equ 0x7f
RIGHT_ARROW equ 0x7e
defineUiState UI_STATE... |
; double atan(double x)
SECTION code_clib
SECTION code_fp_math48
PUBLIC am48_atan
EXTERN mm48_atn
; arctan
; AC' = atan(AC')
;
; enter : AC' = double x
;
; exit : AC' = atan(x)
;
; note : -pi/2 < atan(x) < pi/2
;
; atan( 1 )= pi/4
; atan(-1 )=-pi/4
;
; uses ... |
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
int mat[10010][10010];
int main() {
int k, m, n, index = 0;
cin >> k;
for (n = sqrt(k); n >= 1; n--)
if (k % n == 0) {
m = k / n;
break;
}
vector<int> v(k);
for (int i = 0; i < k; i++) scanf("%d", &v[i]);
so... |
name "hi-world"
; this example prints out "hello world!"
; by writing directly to video memory.
; in vga memory: first byte is ascii character, byte that follows is character attribute.
; if you change the second byte, you can change the color of
; the character even after it is printed.
; character attribute is 8 bi... |
int lIuU ,
HY //B
,Aq1YK,
g7B , XE,
a3F1
,xX, tcHL,Hn , DkSA ,bb , vN
,/**/OP,
adW6//ZJd
,
FDPe ,UwR//B3
,vF6NBy ,
NCy1
, q//
, fyzY , NA0,
fsBc , qZ
,/*5H*/ct2, z ,//b
/**/hue
,ZL
,FHP , o5pj8
,//j
Q0d//
/*SW*/,Ah9uP ,lOHS,mTI,yV , dWGY ,
K1Z
,/*b*/mk, My
,nC, va
,OZ2
,
/*ZAa*/mT ,Tkk51
;vo... |
LDA 19
OUT
ADDR 20
STA 19
SUBR 21
JZ 14
JMP 0
14 LDA 19
OUT
HALT
20 DATA 1 The increment
21 DATA 10 The value to count to |
I_ED equ 0
I_NET equ 1
I_AKEY equ 0
include 'dev8_sbsext_tk2_procs_asm'
|
; double frexp(double value, int *exp)
SECTION code_fp_math48
PUBLIC am48_frexp
EXTERN am48_dconst_0
am48_frexp:
; return normalized fraction part of value and store
; power of 2 exponent of value in exp
;
; enter : AC' = double value
; HL = int *exp
;
; exit : AC' = normalized frac... |
/*
* Copyright (c) 2008, Willow Garage, Inc.
* 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 l... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1ef55, %r8
nop
nop
nop
add %rdi, %rdi
mov $0x6162636465666768, %r11
movq %r11, (%r8)
nop
nop
and $57917, %rax
lea addresses_UC_ht+0x8565, %rbp
nop
nop
nop
nop
nop
c... |
LoadRoomHook:
;JSL.l IndoorTileTransitionCounter
stz !MULTIWORLD_SWAP
.noStats
JSL Dungeon_LoadRoom
REP #$10 ; 16 bit XY
LDX $A0 ; Room ID
LDA.l RoomCallbackTable, X
SEP #$10 ; 8 bit XY
JSL UseImplicitRegIndexedLongJumpTable
; Callback routines:
dl NoCallback ; 00
d... |
; A166812: Number of n X 7 1..2 arrays containing at least one of each value, all equal values connected, rows considered as a single number in nondecreasing order, and columns considered as a single number in nondecreasing order.
; 6,34,118,328,790,1714,3430,6433,11438,19446,31822,50386,77518,116278,170542,245155,3461... |
; A000194: n appears 2n times, for n >= 1; also nearest integer to square root of n.
; 0,1,1,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10
lpb $0
add $1,2
trn... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; set up st0 to be 3.141593
FLD1
;TEST_BEGIN_RECORDING
lea rdi, [rsp-08]
mov word [rdi], 0x0001
FICOMP word [rdi]
;TEST_END_RECORDING
|
; add two 40bit integers
;------------
; stack segment :
STSEG SEGMENT
DB 64 DUP (?)
STSEG ENDS
;------------
; data segment :
DTSEG SEGMENT
; place program data here
first DQ 1100A8C054H ; this is a 40bit number
ORG 10H
second DQ 63917788D7H ; this is another
ORG 20H
result DQ 00H ; here we... |
; A312941: Coordination sequence Gal.5.14.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,4,9,13,18,23,27,31,36,40,45,50,54,58,63,67,72,77,81,85,90,94,99,104,108,112,117,121,126,131,135,139,144,148,153,158,162,166,171,175,180,185... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x8ec8, %r11
nop
nop
nop
nop
add %rbp, %rbp
mov (%r11), %ebx
nop
nop
nop
xor %r11, %r11
lea addresses_A_ht+0x11484, %rsi
lea addresses_WT_ht+0x1028, %rdi
nop
nop
nop
nop
nop
s... |
// Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... |
; A025581: Triangle T(n, k) = n-k, 0 <= k <= n.
; 0,1,0,2,1,0,3,2,1,0,4,3,2,1,0,5,4,3,2,1,0,6,5,4,3,2,1,0,7,6,5,4,3,2,1,0,8,7,6,5,4,3,2,1,0,9,8,7,6,5,4,3,2,1,0,10,9,8,7,6,5,4,3,2,1,0,11,10,9,8,7,6,5,4,3,2,1,0,12,11,10,9,8,7,6,5,4,3,2,1,0,13,12,11,10,9,8,7,6,5,4,3,2,1,0,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,15,14,13,12,11,... |
; A005857: The coding-theoretic function A(n,12,7).
; 1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,4,4,4,5,5,6,8
add $0,1
lpb $0
add $0,$1
sub $0,5
trn $0,1
add $1,1
mov $2,$0
lpe
add $1,$2
add $1,$2
mov $0,$1
|
/*!
* Copyright (C) tkornuta, IBM Corporation 2015-2019
*
* 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 app... |
//
// Mail.cpp
//
// This sample demonstrates the MailMessage and SecureSMTPClientSession classes.
//
// Copyright (c) 2005-2011, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Net/MailMessage.h"
#include "Poco/Net/MailRecipient.h"
#include... |
// ex2.cpp,v 4.17 1999/04/19 19:48:58 irfan Exp
// ============================================================================
//
// = LIBRARY
// examples
//
// = FILENAME
// ex2.cpp
//
// = DESCRIPTION
// Example for using <ACE_UPIPE_SAP> and <ACE_Thread> for
// intra-process communication.
//... |
/*
* Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
*
* This is part of HarfBuzz, an OpenType Layout engine library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for ... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: CommonUI/CExcl (common code for all specific UIs)
FILE: citemManager.asm (main file for all gadget code)
REVISION HISTORY:
Name Date Description
... |
/** @file DJI_Follow.cpp
* @version 3.1.7
* @date July 1st, 2016
*
* @brief
* Follow API for DJI onboardSDK library
*
* @copyright 2016 DJI. All right reserved.
*
*/
#include "dji_sdk_lib/DJI_Follow.h"
using namespace DJI;
using namespace DJI::onboardSDK;
Follow::Follow(CoreAPI *ControlAPI)
{
api = C... |
; size_t p_stack_size(p_stack_t *s)
SECTION code_clib
SECTION code_adt_p_stack
PUBLIC _p_stack_size
EXTERN _p_forward_list_size
defc _p_stack_size = _p_forward_list_size
|
#include <iostream>
#include <cstring>
using namespace std;
const char SEGNAPOSTO = '!';
const int DIMMAX = 40;
// Dichiarare qui sotto la funzione reverse_array
void reverse_array(char *in, int dim);
bool vocale_minuscola(char c);
int main(int argc, char *argv[]) {
char input[DIMMAX];
cout << "Introdurre ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1da11, %rsi
lea addresses_WC_ht+0x431b, %rdi
nop
nop
nop
nop
nop
cmp %r14, %r14
mov $65, %rcx
rep movsq
add $41245, %rsi
lea addresses_A_ht+0xfc6d, %r11
nop
nop
nop
nop
and %... |
Name: Mobjrot.asm
Type: file
Size: 12891
Last-Modified: '1992-09-24T02:25:44Z'
SHA-1: AD074C5EE9CF3BF833A44B524C5CFE3D8AB3B699
Description: null
|
; Barry Moore, April 10, 2016
; Program to convert a Complex number to polar and then Rectangular parts
; http://www.stefanv.com/calculators/hp35s.html#programming
MODEL P35S
SEGMENT Rectangular CODE
LBL R
ARG
LASTx
ABS
STOP
x<>y
COS
LASTx
... |
; A134977: Period 6: repeat [1, 4, 2, 3, 0, 2].
; 1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,3,0,2,1,4,2,... |
/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is ... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.6.0 #9615 (MINGW32)
;--------------------------------------------------------
.module assert
.optsdcc -mmcs51 --model-small
;--------------------------------------------------------
; Publ... |
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <base/math.h>
#include <base/system.h>
#include <engine/config.h>
#include <engine/console.h>
#include <engine/engine... |
%macro x 2
xchg %1,%2
xchg %2,%1
%endmacro
bits 16
x ax,ax
x ax,cx
x ax,dx
x ax,bx
x ax,sp
x ax,bp
x ax,si
x ax,di
x eax,eax
x eax,ecx
x eax,edx
x eax,ebx
x eax,esp
x eax,ebp
x eax,esi
x eax,edi
bits 32
x ax,ax
x ax,cx
x ax,dx
x ax,bx
x ax,sp
x ax,bp
x ax,s... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>nice(inc) -> str
Invokes the syscall nice.
See 'man 2 nice' for more information.
Arguments:
inc(int): inc
Returns:
int
</%docstring>
<%page args="inc=0"/>
<%
abi = pwnlib.abi.ABI.syscall()
... |
/*
* 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... |
#include "RandomGenerator.h"
#include <ctime>
#include <QDebug>
#include <math.h>
#include <algorithm>
#include <stdexcept>
RandomGenerator::RandomGenerator(int userSeed)
{
if (userSeed < 1)
{
mUserSeed = false;
mSeed = createRandomSeed();
}
else
{
mUserSeed = true;
... |
.include "../qpu/vc4.qinc"
.func gvpm_wr_setup(stride, addr)
# Ignored, Horizontal, Laned (ignored), 32-bit
gvpm_setup(0, stride, 1, 0, 2, addr)
.endf
.func gvpm_rd_setup(num, stride, addr)
# Horizontal, Laned (ignored), 32-bit
gvpm_setup(num, stride, 1, 0, 2, addr)
.endf
.func gvpm_setup(num, stride... |
/*****************************************************************************
*
* NXP Confidential Proprietary
*
* Copyright (c) 2013-2016 Freescale Semiconductor
* Copyright 2017 NXP
* All Rights Reserved
*
******************************************************************************
*
* THIS SOFTWARE IS PROVIDED ... |
.hll asm
.frame main
.frame inner
.local str
getlex %0 *0!1
print %0
.frame main
.local int
.var str OK "ok"
.lex str ok $OK
.var obj coderef
.var obj context
getcode $coderef &inner
ctx $context
forceouterctx $coderef $context
.var obj inner
getcode $inner &inne... |
; A047340: Numbers that are congruent to {0, 2, 3, 4} mod 7.
; 0,2,3,4,7,9,10,11,14,16,17,18,21,23,24,25,28,30,31,32,35,37,38,39,42,44,45,46,49,51,52,53,56,58,59,60,63,65,66,67,70,72,73,74,77,79,80,81,84,86,87,88,91,93,94,95,98,100,101,102,105,107,108,109,112,114,115,116,119,121,122,123,126,128,129,130,133,135,136,137,... |
; A040931: Continued fraction for sqrt(963).
; Submitted by Christian Krause
; 31,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62,31,62
trn $0,1
mod $0,2
add $0,1
mul $0,31
|
; ---------------------------------------------------------------------------
; Animation script - Caterkiller enemy (uses non-standard format)
; ---------------------------------------------------------------------------
dc.b 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1
dc.b 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, ... |
DrawPartyMenu_::
xor a
ldh [hAutoBGTransferEnabled], a
call ClearScreen
call UpdateSprites
farcall LoadMonPartySpriteGfxWithLCDDisabled ; load pokemon icon graphics
RedrawPartyMenu_::
ld a, [wPartyMenuTypeOrMessageID]
cp SWAP_MONS_PARTY_MENU
jp z, .printMessage
call ErasePartyMenuCursors
farcall InitPartyMen... |
SECTION bss_clib
SECTION bss_input
PUBLIC __input_amx_mouse_x
PUBLIC __input_amx_mouse_y
PUBLIC __input_amx_mouse_dx
PUBLIC __input_amx_mouse_dy
__input_amx_mouse_x: defw 0
__input_amx_mouse_y: defw 0
__input_amx_mouse_dx: defw 0
__input_amx_mouse_dy: defw 0
|
###############################################################################
# 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 %r10
push %r11
push %r12
push %r13
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x5cf9, %r11
nop
add %rax, %rax
mov (%r11), %r8w
dec %r12
lea addresses_D_ht+0x2c3f, %r11
clflush (%r11)
nop
nop
xor $45672, %r13
mov (%r11), %r9d
nop
nop
no... |
; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021 Marco Spedaletti (asimov@mclink.it)
; *
; * Licensed un... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x16b78, %r13
nop
sub $4532, %r9
mov $0x6162636465666768, %r12
movq %r12, (%r13)
nop
nop
nop
nop
nop
cmp $47901, %rcx
lea addresses_UC_ht+0x3ca9, %rdi
nop
nop
nop
nop
nop
and $5... |
; A015584: Expansion of x/(1 - 9*x - 8*x^2).
; Submitted by Jamie Morken(s3)
; 0,1,9,89,873,8569,84105,825497,8102313,79524793,780541641,7661073113,75193991145,738034505209,7243862476041,71099038326041,697842244742697,6849372509292601,67227090541574985,659838794948515673,6476365878869240937,63566003269411293817,6239049... |
#include <thread>
#include <vector>
#include <unistd.h>
#include <mutex>
#include <cassert>
#include <iostream>
#include "spsc_queue.h"
SPSCQueue q;
int TOTALVAL = 500;
std::vector<int64_t> kValVec;
template <int k>
struct Modulo {
int i = 0;
bool rollover() {
++i;
if (i == k) {
i = 0;
return true;
}... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2017 Barend Gehrels, Amsterdam, the Netherlands.
// This file was modified by Oracle on 2017.
// Modifications copyright (c) 2017, Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Or... |
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714
//
//
///
// Buffer Definitions:
//
// cbuffer cbPerMesh
// {
//
// float4x4 g_mConstBoneWorld[80]; // Offset: 0 Size: 5120
//
// }
//
// cbuffer cbPerFrame
// {
//
// float4x4 g_mViewProjection; // Offset: 0 Size: 64
// fl... |
; A084351: Length of period of sequences r(k,n)=floor(sin(1)*k!)-n*floor(sin(1)*k!/n) when n is fixed.
; 1,4,12,4,20,12,28,8,36,20,44,12,52,28,60,16,68,36,76,20,84,44,92,24,100,52,108,28,116,60,124,32,132,68,140,36,148,76,156,40,164,84,172,44,180,92,188,48,196,100,204,52,212,108,220,56,228,116,236,60,244,124,252
add $... |
; A215646: n * (11*n^2 + 6*n + 1) / 6.
; 0,3,19,59,134,255,433,679,1004,1419,1935,2563,3314,4199,5229,6415,7768,9299,11019,12939,15070,17423,20009,22839,25924,29275,32903,36819,41034,45559,50405,55583,61104,66979,73219,79835,86838,94239,102049,110279,118940
mul $0,11
add $0,3
bin $0,3
mov $1,$0
div $1,121
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1cff, %r14
nop
nop
inc %r11
mov $0x6162636465666768, %r13
movq %r13, %xmm7
movups %xmm7, (%r14)
nop
nop
nop
inc %rbp
lea addresses_normal_ht+0x18aff, %rsi
nop
nop
nop
nop
no... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1ca8, %r13
clflush (%r13)
sub $1914, %r12
movb (%r13), %r9b
nop
nop
nop
nop
nop
cmp $43618, %r10
lea addresses_WC_ht+0x138fb, %rsi
lea addresses_normal_ht+0x141bb, %rdi
clflu... |
; A178789: 4^(n-1) + 2: Number of acute angles after n iterations of the Koch snowflake construction.
; 3,6,18,66,258,1026,4098,16386,65538,262146,1048578,4194306,16777218,67108866,268435458,1073741826,4294967298,17179869186,68719476738,274877906946,1099511627778,4398046511106,17592186044418,70368744177666,281474976710... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1c4ee, %rsi
lea addresses_WC_ht+0x1d6b3, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
sub %r10, %r10
mov $10, %rcx
rep movsl
nop
nop
nop
add $29789, %r11
lea addresses_D_ht+0x1b3d... |
Name: ys_w49.asm
Type: file
Size: 15766
Last-Modified: '2016-05-13T04:51:43Z'
SHA-1: 8C676387C23DB032CBA3A00B0E0AD785646350D5
Description: null
|
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="fd, offset, count"/>
<%docstring>
Invokes the syscall readahead. See 'man 2 readahead' for more information.
Arguments:
fd(int): fd
offset(off64_t): offset
count(size_t): count
</%docstring>
${syscall('SYS_readahead', fd, offset... |
; A242124: Primes modulo 26.
; Submitted by Jon Maiga
; 2,3,5,7,11,13,17,19,23,3,5,11,15,17,21,1,7,9,15,19,21,1,5,11,19,23,25,3,5,9,23,1,7,9,19,21,1,7,11,17,23,25,9,11,15,17,3,15,19,21,25,5,7,17,23,3,9,11,17,21,23,7,21,25,1,5,19,25,9,11,15,21,3,9,15,19,25,7,11,19,3,5,15,17,23,1,7,15,19,21,25,11,19,23,5,9,15,1,3,21
mul... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>mount(special_file, dir, fstype, rwflag, data) -> str
Invokes the syscall mount.
See 'man 2 mount' for more information.
Arguments:
special_file(char*): special_file
dir(char*): dir
fstype(char*): fsty... |
db 'push ax',0
push ax
db 'push bx',0
push bx
db 'push cx',0
push cx
db 'push dx',0
push dx
db 'push si',0
push si
db 'push di',0
push di
db 'push bp',0
push bp
db 'push sp',0
push sp
db 'push LabelOne',0
push LabelOne
LabelOne:
db 'LabelOne',0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.