text stringlengths 1 1.05M |
|---|
// Copyright (c) 2017-2018, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list o... |
# ----------------------------------------------------------------------
# Test_name: nand_test
# ----------------------------------------------------------------------
#
# RAM memory will be structured in the following manner:
#
# +---------+----------+
# | Address | Variable |
# +---------+----------+
# | RAM[00] | A... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="epfd, op, fd, event"/>
<%docstring>
Invokes the syscall epoll_ctl. See 'man 2 epoll_ctl' for more information.
Arguments:
epfd(int): epfd
op(int): op
fd(int): fd
event(epoll_event): event
</%docstring>
${syscall('SYS_epol... |
TITLE Display the Date and Time (DateTime.asm)
; This Real-mode program displays the date and time.
; Last update: 12/8/01
Include Irvine16.inc
Write PROTO char:BYTE
.data
str1 BYTE "Date: ",0
str2 BYTE ", Time: ",0
.code
main PROC
mov ax,@data
mov ds,ax
; Display the date:
mov dx,OFFSET str1
call Wri... |
/*
* Copyright (c) 2003-2019 Rony Shapiro <ronys@pwsafe.org>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
/**
* \file Windows-... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
; A212135: Number of (w,x,y,z) with all terms in {1,...,n} and median<mean.
; 0,0,4,24,84,220,480,924,1624,2664,4140,6160,8844,12324,16744,22260,29040,37264,47124,58824,72580,88620,107184,128524,152904,180600,211900,247104,286524,330484,379320,433380,493024,558624,630564,709240,795060,888444,989824,1099644,1218360,1346... |
; A288170: a(n) = 3*a(n-1) - a(n-2) - 4*a(n-3) + 2*a(n-4) for n >= 4, where a(0) = 2, a(1) = 4, a(2) = 8, a(3) = 16, a(4) = 34, a(5) = 70 .
; 2,4,8,16,34,70,144,292,590,1186,2380,4768,9546,19102,38216,76444,152902,305818,611652,1223320,2446658,4893334,9786688,19573396,39146814,78293650,156587324,313174672,626349370,125... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2019-2019 ArangoDB GmbH, Cologne, Germany
///
/// 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 co... |
; A173598: Period 6: repeat [1, 8, 7, 2, 4, 5].
; 1,8,7,2,4,5,1,8,7,2,4,5,1,8,7,2,4,5,1,8,7,2,4,5,1,8,7,2,4,5,1,8,7,2,4,5,1,8,7,2,4,5,1,8,7,2,4,5,1,8,7,2,4,5,1,8,7,2,4,5,1,8,7,2,4,5,1,8,7,2,4,5,1,8,7,2,4,5,1,8,7,2,4,5,1,8
mov $1,7
mov $2,$0
lpb $2
mul $1,5
mod $1,36
sub $2,1
lpe
sub $1,7
div $1,4
add $1,1
mov $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... |
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
;; ==++==
;;
;;
;; ==--==
#include "ksarm64.h"
#include "asmconstants.h"
IMPORT CallDescrWorkerUnwindFrameChainHandler
;;------------------------------------------------------... |
MODULE tms9918_console_vpeek
SECTION code_clib
PUBLIC __tms9918_console_vpeek
EXTERN generic_console_font32
EXTERN generic_console_udg32
EXTERN screendollar
EXTERN screendollar_with_count
EXTERN msxbios
IF FORmsx
INCLUDE "target/msx/def/msxbios.def"
ENDIF
IF FORsvi
INCLUDE "target/svi/def/sv... |
; A032031: Triple factorial numbers: (3n)!!! = 3^n*n!.
; 1,3,18,162,1944,29160,524880,11022480,264539520,7142567040,214277011200,7071141369600,254561089305600,9927882482918400,416971064282572800,18763697892715776000,900657498850357248000,45933532441368219648000,2480410751833883860992000,141383412854531380076544000,8483... |
// Copyright (c) 2011-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <qt/sendcoinsdialog.h>
#include <qt/forms/ui_s... |
; A267317: a(n) = final digit of 2^n-1.
; 0,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5,1,3,7,5
mov $1,1
mov $2,$0
lpb $2
mod $1,5
mul $1,2
sub $2,1
lpe
sub $1,1
mov $0,$1
|
;*!
;* \copy
;* Copyright (c) 2009-2013, Cisco Systems
;* 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 abov... |
;addresses
PORTB = $6000 ;0x6000 = I/O Register B
PORTA = $6001 ;0x6001 = I/O Register A
DDRB = $6002 ;0x6002 = Data Direction Register B
DDRA = $6003 ;0x6003 = Data Direction Register A
T1CL = $6004 ;0x6004 = T1 Low Order Latches/Counter
T1CH ... |
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int MAXN = 5e5+5;
int N;
int A[MAXN];
LL pos, neg;
int main() {
scanf("%d",&N);
for (int i = 0; i < N; i++) {
scanf("%d", &A[i]);
if (A[i] > 0) pos += A[i];
if (A[i] < 0) neg += A[i];
}
LL ans = -1e18;
if (N == 1) {
ans = A[0];
... |
; A144898: Expansion of x/((1-x-x^3)*(1-x)^4).
; 0,1,5,15,36,76,147,267,463,775,1262,2011,3150,4867,7438,11268,16951,25358,37766,56047,82945,122482,180553,265798,390880,574358,843432,1237966,1816384,2664311,3907237,5729077,8399372,12313154,18049371,26456513,38778103,56836613,83303006,122091769,178939862,262255209,38436... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Set/Reset the couple of vectors being part of a "stencil"
; Basic concept by Rafael de Oliveira Jannone (calculate_side)
;
; Stefano Bodrato - 13/3/2009
;
;
; $Id: w_stencil_init.asm,v 1.4 2016-04-... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
;
; Small C+ Library Functions
;
; Renamed once more and rechristened for ANSIstdio
;
; This outputs a character to the console
;
; 1/4/2000 (Original Aug 98)
;
;
;
; $Id: fputc_cons.asm,v 1.5 2016/05/15 20:15:46 dom Exp $
;
SECTION code_clib
PUBLIC fputc_cons_native ;Print char
.fputc_co... |
; A167585: a(n) = 12*n^2 - 8*n + 9.
; 13,41,93,169,269,393,541,713,909,1129,1373,1641,1933,2249,2589,2953,3341,3753,4189,4649,5133,5641,6173,6729,7309,7913,8541,9193,9869,10569,11293,12041,12813,13609,14429,15273,16141,17033,17949,18889,19853,20841,21853,22889,23949,25033,26141,27273,28429,29609,30813,32041,33293,34569... |
; "Blessed is he who expects nothing, for he shall not be disappointed."
; The original source of one of the first Bulgarian viruses is in front of
; you. As you may notice, it's full of rubbish and bugs, but nevertheless
; the virus has spread surprisingly quickly troughout the country and made a
; quick round th... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xd95c, %rbx
nop
mfence
movl $0x61626364, (%rbx)
nop
nop
nop
nop
nop
sub $24508, %r8
lea addresses_WT_ht+0x1d859, %rax
nop
nop
nop
inc %rcx
mov $0x6162636465666768, %rdi
movq %... |
; A014577: The regular paper-folding sequence (or dragon curve sequence).
; 1,1,0,1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,1,1,0,0,0,1,1,0,0,1,0,0,1,1,1,0,1,1,0,0,1,1,1,0,0,1,0,0,0,1,1,0,1,1,0,0,0,1,1,0,0,1,0,0,1,1,1,0,1,1,0,0,1,1,1,0,0,1,0,0,1,1,1,0,1,1,0,0,0,1,1,0,0,1,0,0,0,1,1,0,1,1,0,0,1,1,1,0,0,1,0,0,0,1,1,0,1,1,0,0,0,1,1,... |
#include <application_manager/smart_object_keys.h>
namespace application_manager {
namespace strings {
const char* params = "params";
const char* message_type = "message_type";
const char* correlation_id = "correlation_id";
const char* function_id = "function_id";
const char* protocol_version = "protocol_version";
c... |
; A308196: Partial sums of A063808.
; 1,5,13,19,25,31,37,43,49,55,61,67,73,79,85,91,97,103,109,115,121,127,133,139,145,151,157,163,169,175,181,187,193,199,205,211,217,223,229,235,241,247,253,259,265,271,277,283,289,295,301,307,313,319,325,331,337,343,349,355
mov $1,1
cmp $1,$0
mul $0,3
sub $0,$1
mov $1,$0
mul $1,2
add... |
ADDI 1
STORE 1
LOAD 0
CHECK 0
|
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; SetMem.Asm
;
; Abstract:
;
; SetMem function
;
; Notes:
;
;--------------------------... |
; A336650: a(n) = p^e, where p is the smallest odd prime factor of n, and e is its exponent, with a(n) = 1 when n is a power of two.
; 1,1,3,1,5,3,7,1,9,5,11,3,13,7,3,1,17,9,19,5,3,11,23,3,25,13,27,7,29,3,31,1,3,17,5,9,37,19,3,5,41,3,43,11,9,23,47,3,49,25,3,13,53,27,5,7,3,29,59,3,61,31,9,1,5,3,67,17,3,5,71,9,73,37,3,19... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld c, 41
ld b, 02
ld d, 03
lbegin_waitm2:
ldff a, (c)
and a, d
cmp a, b
jrnz lbegin_waitm2
ld a, 08
ldff(c), a
ld a, 02
ldff(ff), a
ei
ld ... |
; A140827: Interleave denominators and numerators of convergents to sqrt(3).
; Submitted by Simon Strandgaard
; 1,1,2,3,4,7,11,15,26,41,56,97,153,209,362,571,780,1351,2131,2911,5042,7953,10864,18817,29681,40545,70226,110771,151316,262087,413403,564719,978122,1542841,2107560,3650401,5757961,7865521,13623482,21489003,293... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatmin/M5x5bMDa.cpp
// \brief Source file for the M5x5bMDa dense matrix/dense matrix minimum math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This fil... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 Intel Corporation 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 so... |
lda #{c1}
tay
sta ({z1}),y
iny
lda #0
sta ({z1}),y
iny
sta ({z1}),y
iny
sta ({z1}),y
|
//
// anchoref.cpp
//
// CAnchorRef
//
#include "private.h"
#include "anchoref.h"
#include "anchor.h"
#include "acp2anch.h"
#include "globals.h"
#include "normal.h"
#include "memcache.h"
#include "ic.h"
#include "txtcache.h"
/* 9135f8f0-38e6-11d3-a745-0050040ab407 */
const IID IID_PRIV_CANCHORREF = {... |
; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it)
; *
; * Licens... |
# $Id: 01_lc_r0.asm,v 1.2 2001/03/22 00:39:02 ellard Exp $
#
# Copyright 1999-2000 by the President and Fellows of Harvard College.
# See LICENSE.txt for license information.
#
#@ tests lc for r0
# OK
lc r0, 1
hlt
|
; Original address was $BA02
; Airship boss room
.word $0000 ; Alternate level layout
.word $0000 ; Alternate object layout
.byte LEVEL1_SIZE_01 | LEVEL1_YSTART_070
.byte LEVEL2_BGPAL_05 | LEVEL2_OBJPAL_09 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_10 | LEVEL3_VSCROLL_LOCKED | LEVEL3_PIPENOTEXIT
.byte LEVEL4_BGBANK_... |
//-----------------------------------------------------------------------------
// File: GDFInstall.cpp
//
// Desc: Windows code that calls GameuxInstallHelper sample dll and displays the results.
// The Microsoft Platform SDK or Microsoft Windows SDK is required to compile this sample
//
// (C) Copyright Microsoft Cor... |
global long_mode_start
extern rust_main
section .text
bits 64
long_mode_start:
; Load NULL into all data segment registers
mov ax, 0
mov ss, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
; Call the rust main
call rust_main
; print `OKAY` to screen
;mov rax, 0x2f592f412f4b2f4f
;mov qword [0xb8000], rax
... |
[bits 64]
push dword 50 ; 6a 32
push dword -1 ; 6a ff
push strict dword 50 ; 68 32 00 00 00
push strict dword -1 ; 68 ff ff ff ff
push dword 1000000000000 ; 68 00 10 a5 d4 [warning: value does not fit in signed 32 bit field]
|
/*******************************************************************************
* Copyright 2013-2020 Aerospike, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://ww... |
.intel_syntax noprefix
LFENCE
# delay the cond. jump
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
LEA rbx, [rbx + rax + 1]
# reduce the en... |
/*
* Copyright 2008-2013 NVIDIA Corporation
*
* 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... |
lda {c1},x
sta {m1}
lda #0
sta {m1}+1
|
#include "FlushFormatPlotfile.H"
#include "Diagnostics/ParticleDiag/ParticleDiag.H"
#include "Particles/Filter/FilterFunctors.H"
#include "Particles/WarpXParticleContainer.H"
#include "Particles/ParticleBuffer.H"
#include "Utils/Interpolate.H"
#include "Utils/WarpXProfilerWrapper.H"
#include "WarpX.H"
#include <AMReX... |
/**
* @file Commitment.cpp
*
* @brief Commitment and CommitmentProof classes 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 project is rele... |
; A136013: a(n) = floor(n/2) + 2*a(floor(n/2)), a(0) = 0.
; Submitted by Jon Maiga
; 0,0,1,1,4,4,5,5,12,12,13,13,16,16,17,17,32,32,33,33,36,36,37,37,44,44,45,45,48,48,49,49,80,80,81,81,84,84,85,85,92,92,93,93,96,96,97,97,112,112,113,113,116,116,117,117,124,124,125,125,128
mov $2,2
mov $3,1
lpb $0
div $0,$2
mov $4,... |
; A206857: Number of n X 2 0..2 arrays avoiding the pattern z z+1 z in any row, column, diagonal or antidiagonal.
; 9,81,625,4761,36481,279841,2146225,16459249,126225225,968018769,7423717921,56932346025,436613028289,3348376640449,25678633973281,196928934060769,1510244084935881,11582031898782801,88822372650180625,681177... |
;******************************************************************************
; MiteOS Stage 2 Bootloader main source file
; @author: Thirumal Venkat
; @pre: We are loaded at linear address 0x500
;******************************************************************************
bits 16
; Let's assume that our code is ... |
;*************************************************************************
; SOFTWARE BUFFERS MODULE
;
; Version 0.10
; 17/07/2005
;
; Li-Wen Yip
; Ad Hoc Radio Networking Research Project
; School Of Engineering
; James Cook University
;
;
; The RAM allocated for each buffer must not overlap two RAM banks. This allow... |
;
; Copyright (C) 2009-2012 Intel Corporation.
; SPDX-License-Identifier: MIT
;
PUBLIC Analysis_func
PUBLIC Analysis_func_immed
PUBLIC Analysis_func_reg_overwrite
.code
Analysis_func PROC
push rbx
push rsi
push rdi
sub rsp, 16
mov QWORD PTR[rsp], rbx
mov QWOR... |
; A048587: Pisot sequence L(6,10).
; 6,10,17,29,50,87,152,266,466,817,1433,2514,4411,7740,13582,23834,41825,73397,128802,226031,396656,696082,1221538,2143649,3761841,6601570,11584947,20330164,35676950,62608682,109870577,192809421,338356946,593775047,1042002568,1828587034,3208946546,5631308625,9882257737,17342153394,304... |
; A037660: Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 3,1,0.
; Submitted by Christian Krause
; 3,13,52,211,845,3380,13523,54093,216372,865491,3461965,13847860,55391443,221565773,886263092,3545052371,14180209485,56720837940,226883351763,907533407053,3630133628212,14520534... |
_info: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "user.h"
#include "fs.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 ... |
_userscheduletest: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "user.h"
#include "fcntl.h"
#include "param.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 pu... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Error Checking Specific Definitions
FILE: soundblasterError.asm
AUTHOR: Todd Stumpf, Aug 17, 1992
REVISION HISTORY:
Name Date Description
----... |
SECTION .text
GLOBAL square_p521
square_p521:
sub rsp, 0x128 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0xf8 ], rbx; saving to stack
mov [ rsp + 0x100 ], rbp; saving to stack
mov [ rsp + 0x108 ], r12; saving to stack
mov [ rsp + 0x110 ], r13; saving to stack
mov [ rsp + 0x118 ], r14; saving to stack
mov [ rsp... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.24.28117.0
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
CONST SEGMENT
$SG5099 DB 'Hello World!', 0aH, 00H
ORG $+2
$SG5100 DB 'sum_result=%d,multi_result=%d', 0aH, 00H
CONST ENDS
PUBLIC __local_stdio_printf_options
PUBLIC _vfprintf_l
P... |
;------------------------------------------------------------------------------
;
; 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... |
<%
from pwnlib.shellcraft.mips.linux import syscall
%>
<%page args="fd, params"/>
<%docstring>
Invokes the syscall gtty. See 'man 2 gtty' for more information.
Arguments:
fd(int): fd
params(sgttyb): params
</%docstring>
${syscall('SYS_gtty', fd, params)}
|
//
// Copyright (c) 2018-2019 Christian Mazakas (christian dot mazakas at gmail dot com)
//
// 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)
//
// Official repository: https://github.com/LeonineKing1199/foxy
//
#ifn... |
; ===============================================================
; 2014
; ===============================================================
;
; void zx_cls_wc(struct r_Rect8 *r, uchar attr)
;
; Clear the rectangular area on screen.
;
; ===============================================================
SECTION code_clib
... |
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
0087F0 move.l #$914400, ($8,A0) [base+44E, base+450]
0087F8 move.l #$914800, ($c,A0) [base+452, base+454]
00887E move.l #$914400, ($8,A0) [base+44E, base+450]
008886 move.l #$914800, ($c,A0) [base+452, b... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; InterlockedCompareExchange32.Asm
;
; Abstract:
;
; InterlockedCompareExchange32 function
;
; ... |
[org 0x7c00] ; bootloader offset
mov bp, 0x9000 ; set the stack
mov sp, bp
mov bx, MSG_REAL_MODE
call print ; This will be written after the BIOS messages
call switch_to_pm
jmp $ ; this will actually never be executed
%include "../05-bootsector-functions-strings/boot_sect_print.asm"
%include ... |
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/auxv.h>
#include <sys/mman.h>
#include <sys/poll.h>
#include <sys/resource.h>
#include <sys/socket.h>
#include <sys/sysmacros.h>
#include <sys/timerfd.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <iomanip>
#include ... |
// Copyright 2016 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "packager/media/codecs/decoder_configuration_record.h"
namespace shaka {
namespace media... |
; A195056: Decimal expansion of Pi^2/7.
; Submitted by Jon Maiga
; 1,4,0,9,9,4,3,4,8,5,8,6,9,9,0,8,3,7,4,1,1,9,2,1,2,9,9,9,9,8,2,3,0,7,3,0,5,0,4,4,8,1,4,2,0,1,0,3,4,3,9,8,6,6,0,9,1,6,1,9,2,7,6,8,0,3,1,4,3,4,9,7,4,6,3,1,3,1,5,0,3,4,7,1,4,5,3,9,0,5,7,6,7,4,0,7,8,8,9,0
add $0,1
mov $2,1
mov $3,$0
mul $3,4
lpb $3
mul $1... |
; debug monitor console routines
; print a string to the monitor
; inputs:
; r0: pointer to null-terminated string
; outputs:
print_string_to_monitor:
push r0
push r3
mov r3, r0
print_string_to_monitor_loop:
movz.8 r0, [r3]
call print_character_to_monitor
inc r3
cmp.8 [r3], 0x00
ifnz jm... |
;Performed By: Bilal Khan
; this is an example of out instruction.
; it writes values to virtual i/o port
; that controls the stepper-motor.
#start=stepper_motor.exe#
name "stepper"
#make_bin#
steps_before_direction_change = 20h ; 32 (decimal)
jmp start
; ========= data ===============
; bin data for clock-wis... |
; FASTCALL bitwise xor 32 version.
; Performs 32bit xor 32bit and returns the bitwise
; result DE,HL
; First operand in DE,HL 2nd operand into the stack
__BXOR32:
ld b, h
ld c, l ; BC <- HL
pop hl ; Return address
ex (sp), hl ; HL <- Lower part of 2nd Operand
ld a, b
xor h
ld b, a
ld a... |
#include "../headers/cacho.hpp"
lru_cache<std::string, std::string> cacho_lru(SIZE);
bool set(std::string key, std::string value)
{
try
{
cacho_lru.put(key, value);
return true;
}
catch(const std::exception& e)
{
std::cerr << e.what() << '\n';
return false;
}
}
... |
#ifndef TIMER_HPP
#define TIMER_HPP
#include <chrono>
#include <ctime>
#include <cstdlib>
class Timer
{
public:
Timer(size_t);
~Timer();
time_t
diff();
private:
const std::chrono::high_resolution_clock::time_point start_;
const size_t count_;
};
#endif
|
/*
* Copyright (c) 2012 The WebRTC 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 contribut... |
.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_WC_ht+0xa1d7, %rsi
lea addresses_WT_ht+0x10edd, %rdi
clflush (%rdi)
nop
xor %r9, %r9
mov $119, %rcx
rep movsb
add $40125, %rdi
lea addresses_normal_ht+0x999d, %rdi
nop
dec %r10
movl $... |
; A103128: a(n) = floor(sqrt(2n-1)).
; 1,1,2,2,3,3,3,3,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6,6,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,1... |
; A004676: Primes written in base 2.
; Submitted by Jon Maiga
; 10,11,101,111,1011,1101,10001,10011,10111,11101,11111,100101,101001,101011,101111,110101,111011,111101,1000011,1000111,1001001,1001111,1010011,1011001,1100001,1100101,1100111,1101011,1101101,1110001,1111111,10000011,10001001,10001011,10010101,10010111,1001... |
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "System_System_Collections_Spe... |
; void b_array_clear(b_array_t *a)
SECTION code_clib
SECTION code_adt_b_array
PUBLIC b_array_clear
EXTERN asm_b_array_clear
defc b_array_clear = asm_b_array_clear
|
.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+0x170a3, %rsi
lea addresses_D_ht+0x124e3, %rdi
clflush (%rsi)
nop
nop
nop
nop
sub %r11, %r11
mov $39, %rcx
rep movsq
nop
nop
cmp $5615, %rcx
lea addresses_WC_ht+0x92a3, %rsi
le... |
$NOMOD51
$INCLUDE(hwconf.inc)
;------------------------------------------------------------------------------
; This file is part of the C51 Compiler package
; Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
;------------------------------------------------------------------------------
; STARTU... |
; A010478: Decimal expansion of square root of 22.
; 4,6,9,0,4,1,5,7,5,9,8,2,3,4,2,9,5,5,4,5,6,5,6,3,0,1,1,3,5,4,4,4,6,6,2,8,0,5,8,8,2,2,8,3,5,3,4,1,1,7,3,7,1,5,3,6,0,5,7,0,1,8,9,1,0,1,7,0,2,4,6,3,2,7,5,3,2,3,9,7,2,1,4,8,2,1,1,5,5,9,6,0,6,1,5,4,3,1,3,5
mov $1,1
mov $2,1
mov $3,$0
add $3,3
mov $4,$0
add $4,5
mul $4,2
m... |
; A265762: Coefficient of x in minimal polynomial of the continued fraction [1^n,2,1,1,1,...], where 1^n means n ones.
; Submitted by Jon Maiga
; -3,-5,-15,-37,-99,-257,-675,-1765,-4623,-12101,-31683,-82945,-217155,-568517,-1488399,-3896677,-10201635,-26708225,-69923043,-183060901,-479259663,-1254718085,-3284894595,-85... |
/*
* File: Sieve of Eratosthenes
* Algorithm: Sieve of Eratosthenes
* Created Date: Saturday July 25th 2020
* Author: preetam rane
*/
#include<bits/stdc++.h>
using namespace std;
bool Check(int N,int pos){
return (bool)(N & (1<<pos));
}
void Set(int &N,int pos){
N=N | (1<<pos);
}
const int MAX = 99... |
; A051397: a(n) = (2*n-2)*(2*n-1)*a(n-1)+1.
; Submitted by Jon Maiga
; 0,1,7,141,5923,426457,46910271,7318002277,1536780478171,418004290062513,142957467201379447,60042136224579367741,30381320929637160076947,18228792557782296046168201,12796612375563171824410077103,10390849248957295521420982607637,96634898015302848349215... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %rax
push %rbp
push %rdx
lea addresses_UC_ht+0x7a89, %rbp
nop
and %rax, %rax
mov $0x6162636465666768, %rdx
movq %rdx, %xmm6
vmovups %ymm6, (%rbp)
nop
and $64243, %r14
lea addresses_D_ht+0xa89, %r11
nop
nop
nop
nop
nop
xor %r14, %r14
mov (%r... |
org 0
%include "../../defaults_common.asm"
%macro outputCharacter 0
call doPrintCharacter
%endmacro
;%define bin
..start:
; mov ax,0x40
; mov ds,ax
;checkMotorShutoff:
; cmp byte[0x40],0
; je noMotorShutoff
; mov byte[0x40],1
; jmp checkMotorShutoff
;noMotorShutoff:
mov dx,0x3b8
mov al,29
out dx,al... |
; void *zx_saddrpright(void *saddr, uint bitmask)
SECTION code_arch
PUBLIC zx_saddrpright_callee
zx_saddrpright_callee:
pop hl
pop de
ex (sp),hl
INCLUDE "arch/zx/display/z80/asm_zx_saddrpright.asm"
|
UpdateUnownDex:
ld a, [wUnownLetter]
ld c, a
ld b, NUM_UNOWN
ld hl, wUnownDex
.loop
ld a, [hli]
and a
jr z, .done
cp c
ret z
dec b
jr nz, .loop
ret
.done
dec hl
ld [hl], c
ret
PrintUnownWord:
hlcoord 4, 15
ld bc, 12
ld a, " "
call ByteFill
ld a, [wDexCurUnownIndex]
ld e, a
ld d, 0
ld hl, wUnown... |
; A242658: a(n) = 3n^2-3n+2.
; 2,2,8,20,38,62,92,128,170,218,272,332,398,470,548,632,722,818,920,1028,1142,1262,1388,1520,1658,1802,1952,2108,2270,2438,2612,2792,2978,3170,3368,3572,3782,3998,4220,4448,4682,4922,5168,5420,5678,5942,6212,6488,6770,7058,7352,7652,7958,8270,8588,8912,9242,9578,9920,10268,10622,10982,11348... |
;******************************************************************************
;*
;* tickbyte kernel containing
;* - Initialization
;* - Task switcher
;*
;******************************************************************************
.include "tickbytedef.inc"
.include "projectdef.inc"
.cseg
;***********... |
preset_rbo_bombs_parlor_down:
dw #$0000
dl $7E078B : db $02 : dw $0000 ; Elevator Index
dl $7E078D : db $02 : dw $88FE ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $91F8 ; MDB
dl $7E079F : db $02 : dw $0000 ; Region
dl $7E07C3 : db $02 : dw $C629 ; GFX Point... |
; A257564: Irregular triangle read by rows: T(n,k) = r(n+k)+r(n-k) with r(n) = (n-(n mod 2))/2 for n>=0 and -n<=k<=n.
; 0,1,0,1,2,1,2,1,2,3,2,3,2,3,2,3,4,3,4,3,4,3,4,3,4,5,4,5,4,5,4,5,4,5,4,5,6,5,6,5,6,5,6,5,6,5,6,5,6,7,6,7,6,7,6,7,6,7,6,7,6,7,6,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8,7,8
add $0,1
mov $1,$0
mov $3,$0
lpb $1
... |
SECTION code_fp_math16
PUBLIC ceilf16
EXTERN asm_f16_ceil
defc ceilf16 = asm_f16_ceil
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _ceilf16
EXTERN cm16_sdcc_ceil
defc _ceilf16 = cm16_sdcc_ceil
ENDIF
|
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>stat64(file, buf) -> str
Invokes the syscall stat64.
See 'man 2 stat64' for more information.
Arguments:
file(char*): file
buf(stat64*): buf
Returns:
int
</%docstring>
<%page args="file=0, buf=0"/>
<%
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.