text stringlengths 1 1.05M |
|---|
OPTION DOTNAME
.text$ SEGMENT ALIGN(64) 'CODE'
EXTERN OPENSSL_ia32cap_P:NEAR
PUBLIC bn_mul_mont
ALIGN 16
bn_mul_mont PROC PUBLIC
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_bn_mul_mont::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
mov r8,QWORD PTR[40+rsp]
mo... |
; void *bsearch_callee(const void *key, const void *base,
; size_t nmemb, size_t size,
; int (*compar)(const void *, const void *))
SECTION code_clib
SECTION code_stdlib
PUBLIC _bsearch_callee, l0_bsearch_callee
EXTERN asm_bsearch
_bsearch_callee:
pop af
exx
pop bc
exx
p... |
[GLOBAL gdt_flush]
gdt_flush:
mov eax, [esp+4]
lgdt [eax]
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
jmp 0x08:.flush
.flush:
ret
[GLOBAL idt_flush]
idt_flush:
mov eax, [esp+4]
lidt [eax]
... |
// Copyright 2017 DiamNet Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "invariant/ConservationOfLumens.h"
#include "invariant/InvariantManager.h"
#include "l... |
/*
* Copyright (c) 2013, Ford Motor Company
* 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 condit... |
// Copyright (c) 2015-2021 Daniel Cooke
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
#include "local_reassembler.hpp"
#include <algorithm>
#include <iterator>
#include <deque>
#include <stdexcept>
#include <thread>
#include <future>
#include <cassert>
#include "tan... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x16f67, %rsi
nop
nop
xor $31368, %r14
vmovups (%rsi), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $1, %xmm2, %rbx
nop
and $19157, %r10
lea addresses_normal_ht+0x... |
//
// AbstractContainerNode.cpp
//
// $Id: //poco/1.4/XML/src/AbstractContainerNode.cpp#2 $
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/DOM/AbstractContain... |
.model small
.data
num1 db 2
.code
main proc
mov dl, num1 ; This is now a decimal value of 50, in the ASCII table it is the value of 2, so 2 will be printed.
; The hex for 2 is 32h, so we could do mov dl, 32h and get the same result. The value printed will always be A... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="resource, rlimits"/>
<%docstring>
Invokes the syscall setrlimit. See 'man 2 setrlimit' for more information.
Arguments:
resource(rlimit_resource_t): resource
rlimits(rlimit): rlimits
</%docstring>
${syscall('SYS_setrlimit', resourc... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: LaserJet Font Driver
FILE: fontUtilsPCL4.asm
AUTHOR: Gene Anderson, Apr 16, 1990
Dave Durran, Apr 16, 1991
ROUTINES:
Name Descript... |
# Nella battaglia virtuale STUDENT BATTLE la milizia A composta da 100 informatici si posiziona ad una certa distanza dalla milizia B di 100 sociologhi.
# Gli informatici hanno un mortaio con cui sparare delle bombe di colore che colpiscono 10 persone e un elaboratore MIPS;
# mentre la milizia dei sociologhi dispone ... |
; A286508: Binary representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 190", based on the 5-celled von Neumann neighborhood.
; 1,10,10,100,100,1000,1000,10000,10000,100000,100000,1000000,1000000,10000000,10000000,100000000,10... |
; A314684: Coordination sequence Gal.6.149.4 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,5,9,13,17,22,26,31,35,39,43,48,53,57,61,65,70,74,79,83,87,91,96,101,105,109,113,118,122,127,131,135,139,144,149,153,157,161,166,170,175,17... |
test START 0x100000 . error: too large
END test
|
; A004643: Powers of 2 written in base 4.
; 1,2,10,20,100,200,1000,2000,10000,20000,100000,200000,1000000,2000000,10000000,20000000,100000000,200000000,1000000000,2000000000,10000000000,20000000000,100000000000,200000000000,1000000000000,2000000000000,10000000000000,20000000000000,100000000000000,200000000000000,100000... |
//---------------------------------------------------------------------
// This file is automatically generated. All manual edits will be lost.
//---------------------------------------------------------------------
// Service implementation for the NI-RFMXNR Metadata
//------------------------------------------------... |
; A125916: Sprague-Grundy values for octal game .15 (Guiles).
; 0,1,1,0,1,1,2,2,1,2,2,1,1,0,1,1,2,2,1,2,2,1,1,0,1,1,2,2,1,2,2,1,1,0,1,1,2,2,1,2,2,1,1,0,1,1,2,2,1,2,2,1,1,0,1,1,2,2,1,2,2,1,1,0,1,1,2,2,1,2,2,1,1,0,1,1,2,2,1,2,2,1,1,0,1,1,2,2,1,2,2,1,1,0,1,1,2,2,1,2
lpb $0
add $0,7
pow $0,2
mod $0,10
lpe
mod $0,4
|
; A084601: Coefficients of 1/(1-2x-7x^2)^(1/2); also, a(n) is the central coefficient of (1+x+2x^2)^n.
; Submitted by Christian Krause
; 1,1,5,13,49,161,581,2045,7393,26689,97285,355565,1305745,4808545,17760965,65753693,243954113,906758785,3375949829,12587460557,46995614449,175669746209,657370655045,2462383495357,92320... |
// Copyright 2018 Google 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://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
//=================================================================================================
/*!
// \file src/mathtest/dvecsvecadd/VHaVCb.cpp
// \brief Source file for the VHaVCb dense vector/sparse vector addition math test
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This file is pa... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args=""/>
<%docstring>
Invokes the syscall setsid. See 'man 2 setsid' for more information.
Arguments:
</%docstring>
${syscall('SYS_setsid')}
|
#include <string>
#include "zserio/StringConvertUtil.h"
namespace zserio
{
static std::string convertIntToString(unsigned int value, bool isNegative)
{
static const char DIGITS[] = "0001020304050607080910111213141516171819"
"2021222324252627282930313233343536373839"
... |
//push constant 7
@7
D=A
@SP
A=M
M=D
@SP
M=M+1
//push constant 8
@8
D=A
@SP
A=M
M=D
@SP
M=M+1
//add
@SP
M=M-1
A=M
D=M
A=A-1
M=M+D
|
; A170613: Number of reduced words of length n in Coxeter group on 28 generators S_i with relations (S_i)^2 = (S_i S_j)^48 = I.
; 1,28,756,20412,551124,14880348,401769396,10847773692,292889889684,7908027021468,213516729579636,5764951698650172,155653695863554644,4202649788315975388,113471544284531335476,3063731695682346... |
#include "mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.setUserUI();
w.setGeometry( 100, 100, 500, 355 );
w.show();
return a.exec();
}
|
map_header VermilionPidgeyHouse, VERMILION_PIDGEY_HOUSE, HOUSE, 0
end_map_header
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1993 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Epson 48-jet printer driver for Zoomer
FILE: epson48zDriverInfo.asm
AUTHOR: Dave Durran
REVISION HISTORY:
Name Date Description
-... |
////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is part of CosmoScout VR //
// and may be used under the terms of the MIT license. See the LICENSE file for details. //
// ... |
#include <iostream>
#include <sodium.h>
#include <fstream>
#include <stdio.h>
#include <cstring>
#include <string>
#include <filesystem>
// g++ path-encryption.cpp -o path -lsodium -lstdc++fs -std=c++17
using std::string;
using std::cout;
using std::endl;
namespace fs = std::filesystem;
#define BASE64_VARIATION sod... |
; A145229: Coefficients in expansion of E'_1(q).
; 4,16,24,48,40,96,56,128,108,160,88,288,104,224,240,320,136,432,152,480,336,352,184,768,300,416,432,672,232,960,248,768,528,544,560,1296,296,608,624,1280,328,1344,344,1056,1080,736,376,1920,588,1200,816,1248,424,1728
mov $1,$0
add $0,1
seq $1,5 ; d(n) (also called tau(... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x2649, %rsi
lea addresses_D_ht+0xbe49, %rdi
nop
nop
nop
nop
nop
dec %r12
mov $108, %rcx
rep movsb
nop
nop
nop
nop
nop
xor %r10, %r10
lea addresses_WC_ht+0xde49, %rsi
lea addresses_UC_ht+0xda69, %... |
; A293163: a(n) = A010060(3n+1).
; 1,1,1,0,1,1,1,1,1,1,1,0,1,0,0,0,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,0,0,0,1,1,1,0,1,0,0,0,0,0,0,0,1,0,0,0,1,1,1,0,1,1,1,1,1,1,1,0,1,0,0,0,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0
mul $0,3
mov $1,1
add $1,$0
seq $1,10060 ; Thue-Morse sequence: let A_k denote the f... |
bits 64
db 0x63, 0xC1 ; MOVSXD eax, cx
db 0x66, 0x63, 0xC1 ; MOVSXD eax, ecx
db 0x48, 0x63, 0xC1 ; MOVSXD rax, ecx
db 0x0F, 0x01, 0xF8 ; SWAPGS
db 0x0F, 0x05 ; SYSCALL
db 0x0F, 0x07 ; SYSRET
db 0xF3, 0x0F, 0xAE, 0xC0 ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xabff, %rsi
lea addresses_D_ht+0x3fbf, %rdi
nop
nop
nop
and %rdx, %rdx
mov $94, %rcx
rep movsw
nop
nop
add $41255, %rsi
lea addresses_D_ht+0x139ff, %r13
nop
nop
add %r8, %r8
mo... |
/*=========================================================================
*
* 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... |
;CodeVisionAVR C Compiler V2.04.4a Advanced
;(C) Copyright 1998-2009 Pavel Haiduc, HP InfoTech s.r.l.
;http://www.hpinfotech.com
;Chip type : ATtiny2313
;Program type : Application
;Clock frequency : 8,000000 MHz
;Memory model : Tiny
;Optimize for :... |
# 我们将会用一个宏来用循环保存寄存器。这是必要的设置
.altmacro
# 寄存器宽度对应的字节数
.set REG_SIZE, 8
# Context 的大小
.set CONTEXT_SIZE, 34
# 宏:将寄存器存到栈上
.macro SAVE reg, offset
sd \reg, \offset * REG_SIZE(sp)
.endm
# 宏:将寄存器从栈中取出
.macro LOAD reg, offset
ld \reg, \offset * REG_SIZE(sp)
.endm
# 宏:将 n 号寄存器保存在第 n 个位置
.macro SAVE_N n
SAVE... |
// 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... |
mod_b: begin
section text
public mod_b
public y
x: extern
fim: extern
result: extern
load x
add y
mult dois
store result
jmp fim
section data
dois: const 2
y: space
end
|
bits 16
; glb intptr_t : int
; glb uintptr_t : unsigned
; glb intmax_t : int
; glb uintmax_t : unsigned
; glb int8_t : signed char
; glb int_least8_t : signed char
; glb int_fast8_t : signed char
; glb uint8_t : unsigned char
; glb uint_least8_t : unsigned char
; glb uint_fast8_t : unsigned char
; glb int16_t : short
... |
; A052594: E.g.f. x(1+x-2x^2)/(1-2x).
; Submitted by Christian Krause
; 0,1,6,24,192,1920,23040,322560,5160960,92897280,1857945600,40874803200,980995276800,25505877196800,714164561510400,21424936845312000,685597979049984000,23310331287699456000
mov $2,2
cmp $2,$0
add $2,2
lpb $0
add $3,1
lpb $3
mul $2,$0
s... |
; A008823: Expansion of (1+2*x^3+x^5)/((1-x)^2*(1-x^5)).
; 1,2,3,6,9,14,19,24,31,38,47,56,65,76,87,100,113,126,141,156,173,190,207,226,245,266,287,308,331,354,379,404,429,456,483,512,541,570,601,632,665,698,731,766,801,838,875
mov $1,$0
add $1,$0
add $1,3
mul $1,$0
div $1,5
add $1,1
|
TITLE Hello World Program (Hello.asm)
; This program displays "Hello, world!"
.model small
.stack 100h
.386
.data
message BYTE "Hello, world!",0dh,0ah
.code
main PROC
mov ax,@data
mov ds,ax
mov ah,40h ; write to file/device
mov bx,1 ; output handle
mov cx,SIZEOF message ; number of... |
;***************************************************************************
; invertir.asm
; Ejercicio que calcula la longitud de un string y lo imprime invertido
;
;***************************************************************************
global _main
extern _puts
extern _printf
section .data
texto db "roda... |
#include "utils.h"
#include "dirent.h"
std::vector<std::string> get_files_in_dir(const std::string& dir_path)
{
std::vector<std::string> result;
DIR *dir;
struct dirent *ent;
if ((dir = opendir(dir_path.c_str())) != NULL) {
/* print all the files and directories within directory */
while ((ent = readdir(dir)) ... |
/**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... |
_rm: 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 ... |
// Draws a chess board in the upper left corner of the screen
// Commodore 64 PRG executable file
.file [name="chessboard.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment... |
; Contains interrupt service routine wrappers
[BITS 32] ; All instructions 32-bit
; Macro creating a stub for an ISR which does NOT pass it's own error code (adds a dummy errcode byte)
%macro ISR_NOERRCODE 1
[GLOBAL isr%1]
isr%1:
cli ; Disable interrupts firstly
push byte 0 ... |
; A005352: Base -2 representation of -n reinterpreted as binary.
; Submitted by Christian Krause
; 3,2,13,12,15,14,9,8,11,10,53,52,55,54,49,48,51,50,61,60,63,62,57,56,59,58,37,36,39,38,33,32,35,34,45,44,47,46,41,40,43,42,213,212,215,214,209,208,211,210,221,220,223,222,217,216,219,218,197,196,199,198,193,192,195,194,205... |
; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 48, 16)
;Char Size: ( 6, 2)
;Sort Priorities: X char, Char line, Y char
;Data Outputted: Gfx
;Interleave: Column
;Mask: No
tile4:
DEFB 1,... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "util/status_notifier.hpp"
using namespace iroha::utility_service;
StatusNotifier::~StatusNotifier() = default;
void StatusNotifier::notify(Status status) {}
|
; A092435: Prime factorials divided by their corresponding primorials.
; Submitted by Jamie Morken
; 1,1,4,24,17280,207360,696729600,12541132800,115880067072000,1366643159020339200000,40999294770610176000000,1854768736099424576471040000000,109950690675973888893203251200000000
add $0,1
mov $1,1
mov $2,1
mov $5,1
lpb $0... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: netwareStrings.asm
AUTHOR: Adam de Boor, Mar 29, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Dat... |
; A226271: Index of 1/n in the Fibonacci (or rabbit) ordering of the positive rationals.
; 1,4,6,9,14,22,35,56,90,145,234,378,611,988,1598,2585,4182,6766,10947,17712,28658,46369,75026,121394,196419,317812,514230,832041,1346270,2178310,3524579,5702888,9227466,14930353,24157818,39088170,63245987,102334156,165580142,26791... |
//Raimundo Fenoll Albaladejo
#include "tavlcalendario.h"
#include <stdlib.h>
#include "string.h"
//-------------- TNODOAVL -----------------------
//Constructor por defecto
TNodoAVL::TNodoAVL() {
//Factor de equilibrio a 0
fe = 0;
}
//Constructor De Copia
TNodoAVL::TNodoAVL(TNodoAVL &avl) {
//Si no es lo mi... |
%include "io.mac"
section .text
global otp
extern printf
otp:
push ebp
mov ebp, esp
pusha
mov edx, [ebp + 8] ; ciphertext
mov esi, [ebp + 12] ; plaintext
mov edi, [ebp + 16] ; key
mov ecx, [ebp + 20] ; length
; One Time Pad cipher
... |
/*
Copyright (C) 2013-2014 by Kristina Simpson <sweet.kristas@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any pur... |
/* **********************************************************
* Copyright (c) 2007-2009 VMware, Inc. All rights reserved.
* ********************************************************** */
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... |
;
; Copyright (c) 2020 Phillip Stevens
;
; This Source Code Form is subject to the terms of the Mozilla Public
; License, v. 2.0. If a copy of the MPL was not distributed with this
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;
; feilipu, August 2020
;
;-----------------------------------------------... |
; A168269: a(n) = 2*n - (-1)^n.
; 3,3,7,7,11,11,15,15,19,19,23,23,27,27,31,31,35,35,39,39,43,43,47,47,51,51,55,55,59,59,63,63,67,67,71,71,75,75,79,79,83,83,87,87,91,91,95,95,99,99,103,103,107,107,111,111,115,115,119,119,123,123,127,127,131,131,135,135,139,139,143,143,147,147,151,151,155,155,159,159,163,163,167,167,171,... |
#include "GroupsockHelper.hh"
#include "H264VideoRTPSink.hh"
#include "H264VideoStreamDiscreteFramer.hh"
#include "H265VideoRTPSink.hh"
#include "H265VideoStreamDiscreteFramer.hh"
#include "server/rtsp_server_media_subsession.h"
RTSPServerMediaSubsession *RTSPServerMediaSubsession::createNew(int32_t payload_type,
... |
bits 32
section .text
extern isr_prehandler
%macro EXC_CODELESS 1
global isr%1
isr%1:
cli
push 0x00 ; Dummy error code
push %1 ; Interrupt number
jmp isr_prehandler ; Call first stage interrupt handler
%endmacro
%macro EXC_CODE 1
global isr%1
isr%1:
cli
; Erro... |
BD_Header:
sHeaderInit ; Z80 offset is $D8BA
sHeaderPatch BD_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $C0, BD_PSG3, $00, $00
BD_PSG3:
sNoisePSG $E7
sVolEnvPSG v1D
ssModZ80 $01, $01, $FE, $53
dc.b nAb6, $06, nEb5, $38
sStop
BD_Patches:
|
; A129137: Number of trees on [n], rooted at 1, in which 2 is a descendant of 3.
; Submitted by Jamie Morken(s4)
; 0,0,1,5,37,366,4553,68408,1206405,24447440,560041201,14315792256,404057805989,12482986261760,419042630871225,15189786100468736,591374264243364037,24612549706061862912,1090556290466098198625,512573472346561... |
#include "sonar_dummy/sonar_dummy.h"
void Sonar::message(double z) {
geometry_msgs::PointStamped msg;
msg.header.seq=++sequenceNumber;
msg.header.stamp=ros::Time::now();
msg.point.z = z;
sonarTopic.publish(msg);
}
void Sonar::run(){
message(sin(sequenceNumber)*30);
}
|
;******************************************************************************
;* AAC Spectral Band Replication decoding functions
;* Copyright (C) 2012 Christophe Gisquet <christophe.gisquet@gmail.com>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under ... |
; BEGIN_LEGAL
; Intel Open Source License
;
; Copyright (c) 2002-2017 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 source code must retain the ab... |
org 0x100
cpu 8086
push bp
push ds
push si
push di
mov bx,80-8192-1
mov ax,0xb800
mov es,ax
mov ds,ax
; TODO: set up initial bp, dx, si, di, cx
; TODO: jump to appropriate starting routine
vline_0_0:
dec cx
jz vline_done
vline_0_0_nocheckdone:
mov al,[di]
and al,0x3f
or al,0x80
stosb
... |
.text
.local _ZN7acommon8StackPtrI13CheckerStringE5resetEPS1_.part.68
.type _ZN7acommon8StackPtrI13CheckerStringE5resetEPS1_.part.68, @function
_ZN7acommon8StackPtrI13CheckerStringE5resetEPS1_.part.68:
subl $12, %esp
pushl $_ZZN7acommon8StackPtrI13CheckerStringE5resetEPS1_E19__PRETTY_FUNCTION__
pushl ... |
// Copyright 2020 D-Wave Systems 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://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... |
sec
lda ({z1}),z
sbc #{c1} |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "hermes/VM/JIT/NativeDisassembler.h"
#include "hermes/VM/JIT/LLVMDisassembler.h"
#include "llvm/Support/Format.h"
#inclu... |
// Time: O(n)
// Space: O(1)
class Solution {
public:
int romanToInt(string s) {
unordered_map<char, int> numeral_map = {{'I', 1}, {'V', 5}, {'X', 10},
{'L', 50}, {'C', 100}, {'D', 500},
{'M', 1... |
/*
* Lab 1.asm
*
* Created: 1/14/2018 11:16:51 AM
* Author: Johnathan Machler
*/
Begin: ldi r16,High(RAMEND)
out SPH,r16
ldi r16,Low(RAMEND)
out SPL,r16
ldi r16,0b11111111
out DDRA,r16
out DDRC,r16
out DDRD,r16
rcall LCDini
rcall LCDi... |
.286
.model huge
.stack 64
.data
;dimensions of the screen
row dw 0
col dw 0
firstPointX db 3d
;position of my registers
myAXx db 3h
myAXy db 3h
myBXx db 3h
myBXy db 4h
myCXx db 3h
myCXy db 6h
myDXx db 3h
myDXy db 7h
mySIx db 0Bh
mySIy db 3h
myDIx db 0Bh
myDIy db 4h
mySPx db 0Bh
mySPy db 6h
myBPx db 0Bh
myBPy db 7h
... |
// 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 "components/policy/core/common/cloud/cloud_policy_service.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/callback.h... |
; A143217: a(n) = n! * (!(n+1)) = n! * Sum_{k=0..n} k!.
; Submitted by Jon Maiga
; 1,2,8,60,816,18480,629280,29806560,1864154880,148459288320,14652782323200,1754531527795200,250496911136102400,42032247888401971200,8188505926989625036800,1832839841629043799552000,467088574163459753336832000,13445405226632598599194214400... |
db 0 ; 259 DEX NO
db 70, 85, 70, 50, 60, 70
; hp atk def spd sat sdf
db WATER, GROUND ; type
db 45 ; catch rate
db 143 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F12_5 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/hoenn/marshtomp/fro... |
SECTION code_l_sdcc
PUBLIC __divuschar
GLOBAL l_div8_signexte
__divuschar:
ld hl,sp+3
ld e,(hl)
dec hl
ld c,(hl)
ld a,c ; Sign extend
rlca
sbc a
ld b,a
call l_div8_sig... |
#include "pch.h"
#include "TriAcePS1InstrSet.h"
#include "VGMRgn.h"
#include "PSXSPU.h"
// *****************
// TriAcePS1InstrSet
// *****************
TriAcePS1InstrSet::TriAcePS1InstrSet(RawFile *file, uint32_t offset)
: VGMInstrSet(TriAcePS1Format::name, file, offset, 0, L"TriAce InstrSet") {
}
TriAcePS1InstrS... |
lda {m2}
sta {m1}
lda {m2}+1
sta {m1}+1
cpy #0
beq !e+
!:
lda {m1}+1
cmp #$80
ror {m1}+1
ror {m1}
dey
bne !-
!e:
|
[BITS 32]
GLOBAL api_fclose
[SECTION .text]
api_fclose: ; void api_fclose(int fhandle);
MOV EDX, 22
MOV EAX, [ESP + 4] ; fhandle
INT 0x40
RET
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x6887, %rsi
lea addresses_WC_ht+0x816b, %rdi
nop
sub $10332, %r12
mov $81, %rcx
rep movsb
nop
xor $45430, %r9
lea addresses_normal_ht+0xca7, %rax
nop
and %r9, %r9
mov (%rax), %... |
; A199485: 8*7^n+1.
; 9,57,393,2745,19209,134457,941193,6588345,46118409,322828857,2259801993,15818613945,110730297609,775112083257,5425784582793,37980492079545,265863444556809,1861044111897657,13027308783283593,91191161482985145,638338130380896009,4468366912666272057,31278568388663904393,218949978720647330745,15326498... |
;
; Copyright (c) 2020 Phillip Stevens
;
; This Source Code Form is subject to the terms of the Mozilla Public
; License, v. 2.0. If a copy of the MPL was not distributed with this
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;
; feilipu, July 2020
;
;-------------------------------------------------... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-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 "rpcprotocol.h"
#include "clientversion.h"
#include "tinyformat.h"
#include "util... |
; A193867: Odd central polygonal numbers.
; 1,7,11,29,37,67,79,121,137,191,211,277,301,379,407,497,529,631,667,781,821,947,991,1129,1177,1327,1379,1541,1597,1771,1831,2017,2081,2279,2347,2557,2629,2851,2927,3161,3241,3487,3571,3829,3917,4187,4279,4561,4657,4951,5051,5357,5461,5779,5887,6217,6329,6671,6787,7141,7261,762... |
#include "PhaseComponent.h"
#include "../Light/LightComponent.h"
#include "../Space/SpaceComponent.h"
#include "../Renderable/RenderableComponent.h"
#include "../Transform/TransformComponent.h"
#include "../Explorer/ExplorerComponent.h"
#include "../../../SnowyStream/Manager/RenderResourceManager.h"
#include "..... |
; int vsprintf(char *s, const char *format, void *arg)
SECTION code_stdio
PUBLIC vsprintf
EXTERN asm_vsprintf
vsprintf:
pop af
pop bc
pop de
exx
pop de
push de
exx
push de
push bc
push af
jp asm_vsprintf
|
; A081300: Diagonal of square array A081297.
; Submitted by Christian Krause
; 1,5,55,481,10501,117181,3879331,52751105,2351234953,37766866501,2120129149711,39311679607201,2663716583547085,56019878838007085,4448878347069812251,104660471059169187841,9534251497305019644433,248114423135671590058165,25504803988878448994962... |
INCLUDE "hardware.inc"
INCLUDE "header.inc"
;--------------------------------------------------------------------------
;- GENERAL FUNCTIONS -
;--------------------------------------------------------------------------
SECTION "Utilities",HOME
;------------... |
// Copyright (c) 2014-2016 Ben Deane
// This code is distributed under the MIT license. See LICENSE for details.
#include <property.h>
using namespace std;
//------------------------------------------------------------------------------
// A test of the machinery
struct TestFunctor
{
bool operator()(int) const { ... |
include "ddragon_sound.inc"
include "ddragon_sound_diag.inc"
include "error_addresses.inc"
include "macros.inc"
global misc_tests
section text
misc_tests:
jsr ic16_dead_output_test
tsta
beq .ic16_dead_output_passed
jmp EA_IC16_DEAD_OUTPUT
.ic16_dead_output_passed:
rts
; ic16 is a 245 that sits be... |
;;
;; File: 1pump/arch/x86/pumpcore/head_64.asm
;;
;; The entry point of the base kernel for the x86_64 arch.
;; This documment will includo some other files.
;;
;; 2021 - Created by Fred Nora.
;; - ported from the 32bit version
;;
; See:
; kernel/include/land/
%include "land/head.inc"
;
; Segmento .head_x86_... |
inst_rom.om: file format elf32-tradbigmips
Disassembly of section .text:
00000000 <_start>:
0: 34010100 li at,0x100
4: 00200008 jr at
8: 00000000 nop
...
40: 34018000 li at,0x8000
44: 34019000 li at,0x9000
48: 40017000 mfc0 at,c0_epc
4c: 20210004 addi at,at,4
50: 40817000 mtc0 at,c0_e... |
setrepeat 2
frame 1, 08
frame 2, 10
frame 1, 08
frame 0, 10
dorepeat 1
frame 4, 20
setrepeat 3
frame 0, 04
frame 4, 04
dorepeat 8
endanim
|
// Copyright (c) 2017 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <script/interpreter.h>
#include <test/scriptflags.h>
#include <boost/algorithm/string/classification.hpp>
#include <boost/al... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="gid"/>
<%docstring>
Invokes the syscall setgid. See 'man 2 setgid' for more information.
Arguments:
gid(gid_t): gid
</%docstring>
${syscall('SYS_setgid', gid)}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.