text stringlengths 1 1.05M |
|---|
/* boost random/shuffle_output.hpp header file
*
* Copyright Jens Maurer 2000-2001
* Distributed under the Boost Software License, Version 1.0. (See
* accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* See http://www.boost.org for most recent version including documentation.... |
;------------------------------------------------------------------------------
;
; 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... |
// Boost.Geometry
// Copyright (c) 2014-2018, Oracle and/or its affiliates.
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Licensed under the Boost Software License version 1.0.
// http://www.boost.org/users/license.... |
;******************************************************************************
;* MMX optimized discrete wavelet trasnform
;* Copyright (c) 2010 David Conrad
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Public
;*... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x186c8, %rsi
lea addresses_normal_ht+0x5528, %rdi
nop
nop
add %rdx, %rdx
mov $78, %rcx
rep movsq
nop
nop
nop
xor %r15, %r15
lea addresses_normal_ht+0x8e1d, %r12
nop
nop
nop
nop
nop
xor ... |
; A244634: 27*n^2.
; 0,27,108,243,432,675,972,1323,1728,2187,2700,3267,3888,4563,5292,6075,6912,7803,8748,9747,10800,11907,13068,14283,15552,16875,18252,19683,21168,22707,24300,25947,27648,29403,31212,33075,34992,36963,38988,41067,43200,45387,47628,49923,52272,54675,57132,59643,62208,64827,67500,70227,73008,75843,78732... |
; A117520: Triangular numbers for which the digital root is also a triangular number.
; 0,1,3,6,10,15,21,28,55,66,78,91,105,120,136,190,210,231,253,276,300,325,406,435,465,496,528,561,595,703,741,780,820,861,903,946,1081,1128,1176,1225,1275,1326,1378,1540,1596,1653,1711,1770,1830,1891,2080,2145
mov $2,$0
lpb $2,1
ad... |
//*****************************************************************************
// Copyright 2017-2021 Intel 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://w... |
; Object Mappings Subtype Frame Arttile
dbglistobj Obj_Ring, Map_Ring, 0, 0, make_art_tile($6BC,1,1)
dbglistobj Obj_Monitor, Map_Monitor, 6, 0, make_art_tile($4C4,0,0)
dbglistobj Obj_PathSwap, Map_PathSwap, 9, 1, make_art_tile($6BC,1,0)
dbglistobj Obj_PathSwap, Map_PathSwap, $D, ... |
#include <opencv2/core/core.hpp>
#include <stdint.h>
#include <algorithm>
#include <map>
#include <vector>
#include "caffe/data_transformer.hpp"
#include "caffe/layers/annotated_data_layer.hpp"
#include "caffe/util/benchmark.hpp"
#include "caffe/util/sampler.hpp"
#include "caffe/parallel.hpp"
namespace caffe {
temp... |
SECTION code_fcntl
PUBLIC _font_8x8_rom
defc _font_8x8_rom = 15360+256
|
if VERSION_OS = 'W'
SEP_CHAR = ';'
else
SEP_CHAR = ':'
end if
; MAX_RESETCNT should NOT be more than the number of times search is called per second/core,
; which is about half of nps/core (the other half comes from qsearch). Higher setting are
; dangerous but lower settings lead to increased polling of the time
... |
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifidn __OUTPUT_FORMAT__,win32
$@feat.00 equ 1
section .text code align=64
%else
section .text code
%endif
global _bn_mul_mont
align 16
_bn_mul_mont:
L$_bn_mul_mont_begin:
push ebp
push ebx
push esi
push edi
xor eax,eax
mov edi,DWORD [40+esp]
... |
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
#include <cmath>
#include <iostream>
#include <unordered_map>
#include <unordered_set>
#include <bitset>
#ifdef __GNUC__
#include <cxxabi.h>
#end... |
//
// Created by Okada, Takahiro on 2018/02/11.
//
#include "Util.h"
#include "Arduino.h"
#include <cstdio>
#include <cstdlib>
#include <vector>
// returns output (header) length
uint32_t Util::RlpEncodeWholeHeader(uint8_t* header_output, uint32_t total_len) {
if (total_len < 55) {
header_output[0] = (uin... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x103d9, %rax
nop
nop
nop
add %r12, %r12
mov $0x6162636465666768, %rbx
movq %rbx, %xmm6
and $0xffffffffffffffc0, %rax
vmovaps %ymm6, (%rax)
nop
nop
nop
nop
nop
inc %rdi
lea addresses_UC_... |
#include <iostream>
using namespace std;
class Rectangle
{
protected:
float length, breadth;
public:
Rectangle(): length(0.0), breadth(0.0)
{
length = 5;
breadth = 6;
}
};
/* Area class is derived from base class Rectangle. */
class Area : public Rectangl... |
%define System @_System@
%define Darwin 0
%define Linux 1
%define Windows 2
%define x86_64 0
%define arm64 1
%define Processor @_Processor@
|
/*
* Gamedev Framework (gf)
* Copyright (C) 2016-2022 Julien Bernard
*
* 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 fo... |
<% from pwnlib.shellcraft import common %>
<% from pwnlib.shellcraft import amd64 %>
<%docstring>
Recives a fixed sized payload into a mmaped buffer
Useful in conjuncion with findpeer.
After running the socket will be left in RDI.
Args:
sock, the socket to read the payload from.
size, the size of the payload
</... |
.include "defaults_mod.asm"
table_file_jp equ "exe6-utf8.tbl"
table_file_en equ "bn6-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252354A // BR5J
game_code_2 equ 0x42523545 // BR5E
game_code_3 equ 0x42523550 // BR5P
card_type equ 1
card_id equ 68
card_no equ "068"
card_sub equ "Mod Card 068"
card_sub_x ... |
STORE 1 # HEAP[1] = 0
ADDI 1 # ACCU = 1
STORE [1] # HEAP[0] = 1
LOAD [0] # ACCU = 0
ADD [1] # ACCU = 1
CMP [1] # ACCU = 0 == true
|
/*
MIT License
Copyright (c) 2021 Maciej Malecki
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,... |
_stressfs: formato do arquivo elf32-i386
Desmontagem da seção .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
int fd, i;
char path[] = "stressfs0";
7: b8 30 00 ... |
TITLE Program_6a (Program_6a.asm)
; Author: Brian Stamm
; Email: stammbr@onid.oregonstate.edu
; Course: CS 271-400
; Assignment: Assignment 6a
; Due Date: 7.7.15
; Description: This is the final assignment, where the program asks the user
; for 10 numbers, gets the average and sum of those numbers, and... |
LoadFile:
JSL LoadNewSoundFx
LDA.b #$00 : STA $7EC011 ; restore what we overwrote
RTL |
; Hello World for Intel Assembler (MSDOS)
; from http://www.roesler-ac.de/wolfram/hello.htm
mov ax,cs
mov ds,ax
mov ah,9
mov dx, offset Hello
int 21h
xor ax,ax
int 21h
Hello:
db "Hello World!",13,10,"$"
|
// <Snippet3>
#pragma warning( disable : 4290 )
#pragma warning( disable : 4530 )
#define _WINSOCKAPI_
#include <windows.h>
#include <io.h>
#include <sal.h>
#include <httpserv.h>
#include <string>
using namespace std;
#import "msxml6.dll"
using namespace MSXML2;
// The CConvert class mirrors the Convert class that ... |
/*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the fil... |
; A027016: T(2n+1,n+1), T given by A027011.
; 1,5,28,98,291,806,2164,5729,15072,39542,103615,271370,710568,1860413,4870756,12751946,33385179,87403694,228826012,599074457,1568397480,4106118110,10749956983,28143752978,73681302096,192900153461,505019158444,1322157322034,3461452807827,9062201101622,23725150497220,621132503... |
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function LF_7x12_Parent.LF_7x12_Paren... |
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//////////////////////////////////////////////////////////////////////////////////////////
// Bug : VSW563686
// iostream has memory leaks
// Problem :
// istream and ostream virtually inherits from ... |
; ==========================================================================
; Noptest ROM example
; ==========================================================================
; First we includ the Gameboy Hardware Definitions
; into our assembly file, so that we get some nice
; constants and macros available.
... |
.section .data
strLOCK2:
.asciz "Hello, World!\n"
.section .bss
.section .text
.globl _start
_start:
call main
movl %eax, %ebx
movl $1, %eax
int $0x80
.type main, @function
main:
pushl %ebp
movl %esp, %ebp
subl $4, %esp
movl $5, %ecx
movl %ecx, -4(%ebp)
movl -4(%ebp), %ecx
pushl %ecx
movl $3, %ecx... |
; A052208: Pell(n)*Pell(2*n)/2.
; Submitted by Jamie Morken(s1)
; 0,1,12,175,2448,34481,485100,6826079,96049728,1351523425,19017374892,267594778639,3765344259600,52982414452241,745519146496332,10490250465629375,147609025664755968,2077016609773544641,29225841562491165900,411238798484657629039
mov $3,1
lpb $0
sub $0,1... |
; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it)
; *
; * Licens... |
#include "Render.h"
#include <cstdio>
void Draw()
{
for (int i = 0; i < df_LINE; i++)
{
if (g_pArray[i] != nullptr)
g_pArray[i]->Draw();
wprintf(L"\n");
}
} |
; A100381: a(n) = 2^n*binomial(n,2).
; 0,0,4,24,96,320,960,2688,7168,18432,46080,112640,270336,638976,1490944,3440640,7864320,17825792,40108032,89653248,199229440,440401920,968884224,2122317824,4630511616,10066329600,21810380800,47110422528,101468602368,217969590272,467077693440,998579896320,2130303778816,4535485464576... |
/*
* Copyright 2016 - 2021 Angelo Matni, Simone Campanoni
*
* 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, ... |
; A051937: Truncated triangular pyramid numbers: a(n) = Sum_{k=4..n} k*(k+1)/2-9.
; 1,7,19,38,65,101,147,204,273,355,451,562,689,833,995,1176,1377,1599,1843,2110,2401,2717,3059,3428,3825,4251,4707,5194,5713,6265,6851,7472,8129,8823,9555,10326,11137,11989,12883,13820,14801,15827,16899,18018,19185,20401,21667,22984,24353... |
;******************************************************************************
; BIOS_jblks.asm
;
; BIOS Jumpblocks
; for dastaZ80's dzOS
; by David Asta (Apr 2019)
;
; Version 1.0.0
; Created on 25 Apr 2019
; Last Modification 25 Apr 2019
;******************************************************************************... |
######### HELPER FUNCTIONS ##############
printNewline: # Print string newline
la $a0, newline # load the address of newline
li $v0, 4 # print_string syscall code = 4
syscall
jr $ra # return
printString:
li $v0, 4 # print_string sys... |
// Copyright 2016 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 "third_party/blink/renderer/modules/push_messaging/push_subscription_options.h"
#include "third_party/blink/renderer/bindings/modules/v8/array_b... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x19181, %rsi
lea addresses_D_ht+0xfc81, %rdi
nop
nop
nop
nop
add %rbp, %rbp
mov $9, %rcx
rep movsw
nop
nop
nop
inc %r13
lea addresses_normal_ht+0x13001, %r10
nop
nop
nop
nop
... |
/**
* @file src/llvmir2hll/hll/hll_writer.cpp
* @brief Implementation of HLLWriter.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include <algorithm>
#include <cstddef>
#include <sstream>
#include "retdec/llvmir2hll/hll/bracket_manager.h"
#include "retdec/llvmir2hll/hll/hll_writer.h"
#inclu... |
; *********************************************************************************
; *********************************************************************************
;
; File: command.asm
; Purpose: Command line code
; Date : 9th December 2018
; Author: paul@robsons.org.uk
;
; ********************************... |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
}
}
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 fc pushl -0x4(%ecx)
e: 55... |
#include "selfdrive/ui/qt/widgets/timpilot.h"
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <thread>
#include <chrono>
#include <QComboBox>
#include <QAbstractItemView>
#include <QScroller>
#include <QListView>
#include <QListWidget>
#include "selfdrive/common/params.h"
#include "selfdrive/ui/qt... |
;; xOS32
;; Copyright (C) 2016-2017 by Omar Mohammad.
use32
page_directory = 0x9C000
page_tables = 0x200000
PAGE_PRESENT = 0x01
PAGE_WRITEABLE = 0x02
PAGE_USER = 0x04
PAGE_NO_CACHE = 0x10
; vmm_init:
; Initializes the virtual memory manager and paging subsystem
vmm_init:
; first construct the page d... |
; EngineFlags indexes (see engine/engine_flags.asm)
const_def
; wPokegearFlags
const ENGINE_RADIO_CARD
const ENGINE_MAP_CARD
const ENGINE_PHONE_CARD
const ENGINE_EXPN_CARD
const ENGINE_POKEGEAR
; wDayCareMan
const ENGINE_DAY_CARE_MAN_HAS_EGG
const ENGINE_DAY_CARE_MAN_HAS_MON
; wDayCareLady
const ENGINE_DAY_CAR... |
ItemNames::
db "MASTER BALL@"
db "ULTRA BALL@"
db "BRIGHTPOWDER@"
db "GREAT BALL@"
db "# BALL@"
db "TOWN MAP@"
db "BICYCLE@"
db "MOON STONE@"
db "ANTIDOTE@"
db "BURN HEAL@"
db "ICE HEAL@"
db "AWAKENING@"
db "PARLYZ HEAL@"
db "FULL RESTORE@"
db "MAX POTION@"
db "HYPER POTION@"
db "SUPER POTION@"
db "PO... |
SECTION code_clib
SECTION code_fp_am9511
PUBLIC derror_einval_zc
EXTERN asm_am9511_derror_einval_zc
defc derror_einval_zc = asm_am9511_derror_einval_zc
|
; A267924: Decimal representation of the n-th iteration of the "Rule 245" elementary cellular automaton starting with a single ON (black) cell.
; 1,3,27,123,507,2043,8187,32763,131067,524283,2097147,8388603,33554427,134217723,536870907,2147483643,8589934587,34359738363,137438953467,549755813883,2199023255547,8796093022... |
; A057552: a(n) = Sum_{k=0..n} C(2k+2,k).
; 1,5,20,76,286,1078,4081,15521,59279,227239,873885,3370029,13027729,50469889,195892564,761615284,2965576714,11563073314,45141073924,176423482324,690215089744,2702831489824,10593202603774,41550902139550,163099562175850,640650742051802,2518056616783910
mov $2,$0
add $2,1
mov $3... |
; A160651: a(n) is the number of triangular nonnegative integers that are each equal to n(n+1)/2 - m(m+1)/2, for some m's where 0 <= m <= n.
; 1,2,2,3,2,2,4,2,4,2,4,4,2,4,2,4,4,2,4,2,3,6,2,8,2,2,4,4,8,2,2,4,2,4,2,2,8,4,4,2,4,8,2,4,4,4,6,2,4,6,2,4,4,6,4,4,4,4,6,4,2,8,4,4,4,2,8,4,4,2,2,6,2,4,4,4,4,4,12,2,4,4,2,4,2,2,8,2,... |
.size 8000
.text@48
ei
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, 44
ld b, 90
lbegin_waitly90:
ldff a, (c)
cmp a, b
jrnz lbegin_waitly90
ld a, 11
ldff(40), a
ld hl, 8000
ld b, 08
lbegin_settile0data... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2012-2015 The PPCoin developers
// Copyright (c) 2013-2017 The Novacoin
// Copyright (c) 2014-2015 The BDSM COIN(BDSM) & Fetish Coin(FETISH) developers
// Copyright (c) 2014-2017 The BDSM-FETISH(WHIPPED) devel... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r15
push %r8
push %rax
push %rbp
// Store
lea addresses_A+0x1746c, %r15
nop
nop
nop
nop
cmp $58837, %r10
movw $0x5152, (%r15)
nop
nop
nop
nop
nop
add %r8, %r8
// Faulty Load
lea addresses_RW+... |
;------------------------------------------------------------------------------
;
; 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... |
;
; Z88DK Graphics Functions
;
; Draw a "gfx profile" metadata stream - Stefano Bodrato 16/10/2009
;
; void draw_profile(int dx, int dy, int scale, unsigned char *metapic);
;
; $Id: draw_profile.asm,v 1.8 2015/01/23 07:07:31 stefano Exp $
;
INCLUDE "graphics/grafix.inc"
PUBLIC draw_p... |
; A164161: Number of binary strings of length n with equal numbers of 0001 and 1000 substrings.
; Submitted by Christian Krause
; 1,2,4,8,14,26,50,100,200,400,800,1600,3200,6400,12800,25600,51200,102400,204800,409600,819200,1638400,3276800,6553600,13107200,26214400,52428800,104857600,209715200,419430400,838860800,16777... |
_zombie: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(void)
{
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 pus... |
; A129342: a(2n) = a(n) + 2^(2n), a(2n+1) = 2^(2n+1).
; 0,2,6,8,22,32,72,128,278,512,1056,2048,4168,8192,16512,32768,65814,131072,262656,524288,1049632,2097152,4196352,8388608,16781384,33554432,67117056,134217728,268451968,536870912,1073774592
mov $20,$0
mov $22,$0
lpb $22
mov $0,$20
sub $22,1
sub $0,$22
mov $... |
; A273372: Squares ending in digit 1.
; 1,81,121,361,441,841,961,1521,1681,2401,2601,3481,3721,4761,5041,6241,6561,7921,8281,9801,10201,11881,12321,14161,14641,16641,17161,19321,19881,22201,22801,25281,25921,28561,29241,32041,32761,35721,36481,39601,40401,43681,44521,47961,48841,52441,53361,57121,58081,62001,63001,6708... |
; ---------------------
; THE 'SPARE' LOCATIONS
; ---------------------
;; spare
L386E: DEFB $FF, $FF ;
DEFB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF;
DEFB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF;
DEFB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF;
DEFB $FF, $FF, $FF, $FF... |
; A296211: a(n) = 1 if sigma(n)-1 is a prime, 0 otherwise.
; 0,1,1,0,1,1,1,0,0,1,1,0,1,1,1,0,1,0,1,1,1,0,1,1,0,1,0,0,1,1,1,0,1,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,0,0,1,1,1,0,1,0,1,1,1,1,1,0,1,0,1,0,1,0,0,0,1,0,1,1,0,1,0,1,1,0,0,0,1,1,1,1,0,1,1,1,0,1,1,0,0,1,1,0,0,0
seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n... |
.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 a, ff
ldff(45), a
ld b, 91
call lwaitly_b
ld hl, fe00
ld d, 10
ld a, d
ld(hl++), a
ld a, 08
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), ... |
#include "RTC/RTCP/FuzzerFeedbackPsSli.hpp"
void Fuzzer::RTC::RTCP::FeedbackPsSli::Fuzz(::RTC::RTCP::FeedbackPsSliPacket* packet)
{
packet->Dump();
packet->Serialize(::RTC::RTCP::Buffer);
packet->GetCount();
packet->GetSize();
// TODO.
// AddItem(Item* item);
auto it = packet->Begin();
for (; it != packet->E... |
ori $ra,$ra,0xf
sll $4,$5,11
mflo $5
mthi $6
lui $4,46731
lb $5,14($0)
mflo $4
addu $5,$4,$4
lui $6,37633
sb $5,4($0)
sb $4,10($0)
sll $4,$1,24
mflo $1
srav $5,$0,$0
addiu $6,$2,27110
div $2,$ra
divu $5,$ra
mtlo $4
ori $0,$4,37968
div $5,$ra
lb $6,3($0)
div $2,$ra
mfhi $6
sb $1,3($0)
ori $1,$0,57068
addiu $1,$6,-3360
l... |
SECTION code_fp_math48
PUBLIC remquo
EXTERN cm48_sccz80_remquo
defc remquo = cm48_sccz80_remquo
|
ori $ra,$ra,0xf
div $5,$ra
mult $2,$5
mthi $0
addiu $6,$1,20965
addu $3,$1,$3
mflo $4
lui $5,73
lb $2,3($0)
mflo $2
mfhi $4
mthi $5
divu $0,$ra
mfhi $1
sb $1,13($0)
mult $5,$5
multu $4,$4
divu $2,$ra
mfhi $6
lb $2,0($0)
sb $0,6($0)
sb $4,11($0)
divu $1,$ra
lui $1,44076
mtlo $5
multu $6,$1
multu $5,$2
mfhi $1
addiu $3,$... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1a4fa, %rsi
lea addresses_WC_ht+0x86fa, %rdi
nop
nop
nop
xor $1006, %r15
mov $49, %rcx
rep movsw
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_A_ht+0x195fa, %rsi
lea addresses_WC_ht+0x... |
section .data
buffer: times 256 db 0 ; buffer of memory
section .text
global _start
_start:
mov rbx, 0 ; mem pointer
mov rsi, buffer
add rsi, rbx
add byte [rsi], 0x41; Add 0x41 to buffer[mem pointer]
call write_byte
add bl, 1 ; increment mem pointer mod 256
mov rsi, buffer
add rsi, rbx
add byte [rsi], ... |
/* -*- C++ -*-
* Copyright 2019-2021 LibRaw LLC (info@libraw.org)
*
Placehoder functions to build LibRaw w/o postprocessing
and preprocessing calls
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of two licenses as you choose:
1. GNU LESSER GENERAL PUBLIC LICENSE v... |
; A080236: Triangle of differences of consecutive pairs of row elements of triangle A080233.
; Submitted by Christian Krause
; 1,1,-1,1,0,-2,1,1,-2,-2,1,2,-1,-4,-1,1,3,1,-5,-5,1,1,4,4,-4,-10,-4,4,1,5,8,0,-14,-14,0,8,1,6,13,8,-14,-28,-14,8,13,1,7,19,21,-6,-42,-42,-6,21,19,1,8,26,40,15,-48,-84,-48,15,40,26
lpb $0
add ... |
%include "print.asm"
%include "exit.asm"
%include "longop.asm"
%include "module.asm"
section .data
nameAutor db "Developer: Savchenko Yuriy", 0xa, 0xd ; name of Author
lenName equ $-nameAutor ; length of name Author
border db "------------------... |
adc (ix) ; Error
adc (ix+127) ; Error
adc (ix-128) ; Error
adc (iy) ; Error
adc (iy+127) ; Error
adc (iy-128) ; Error
adc a', (hl) ; Error
adc a', (ix) ; Error
... |
;===============================================================================
; Name: Moya, Branden
; Username: bmoya001@ucr.edu
;
; Lab: lab 9.2
; Lab section: 021
; TA: Bryan Marsh
;
;===============================================================================
.ORIG x3000
;Instructions
LD R1, POINTER ;S... |
/*******************************************************************************
* Copyright 2018 BGx Graphics Framework.
*
* 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:/... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1c133, %rsi
lea addresses_UC_ht+0x19d90, %rdi
nop
nop
nop
nop
nop
cmp %r10, %r10
mov $79, %rcx
rep movsq
nop
nop
and $38618, %r15
lea addresses_normal_ht+0x12bc0, %r10
nop
nop
xor %r11... |
.macro padded_string string, max
1:
.ascii "\string"
2:
.ifle \max - (2b - 1b)
.error "String too long"
.endif
.ifgt \max - (2b - 1b)
.zero \max - (2b - 1b)
.endif
.endm
|
assume cs:codesg
codesg segment
mov ax, 2000H ; 这里注意要加H,不然就会被认为是十进制的数
; 与debug底下不大相同
mov ss, ax
mov sp, 0
add sp, 10
pop ax
pop bx
push ax
push bx
pop ax
pop bx
mov ax, 4c00H
int 21H
codesg ends
end |
#include "ifc/File.h"
#include "ifc/Environment.h"
#include "ifc/Trait.h"
#include "ifc/Attribute.h"
#include "ifc/Chart.h"
#include "ifc/Declaration.h"
#include "ifc/Expression.h"
#include "ifc/SyntaxTree.h"
#include "ifc/Type.h"
#include <boost/iostreams/device/mapped_file.hpp>
#include <cassert>
#include <span>
#... |
;-------------------------------------------------------------------------------
; posix/1b.nasm - routines described by "POSIX Realtime Extensions" (1003.1b).
;-------------------------------------------------------------------------------
module libc.posix1b
%include "errors.ah"
%include "locstor.ah"
%include "sync... |
DEVICE ZXSPECTRUMNEXT
CSPECTMAP sunDrawTst.map
OPT --zxnext=cspect --syntax=a --reversepop
DEBUGSEGSIZE equ 1
DEBUGLOGSUMMARY equ 1
;DEBUGLOGDETAIL equ 1
;----------------------------------------------------------------------------------------------------------------------------------
; Game Defines
ScreenLocal... |
; A055881: a(n) = largest m such that m! divides n.
; 1,2,1,2,1,3,1,2,1,2,1,3,1,2,1,2,1,3,1,2,1,2,1,4,1,2,1,2,1,3,1,2,1,2,1,3,1,2,1,2,1,3,1,2,1,2,1,4,1,2,1,2,1,3,1,2,1,2,1,3,1,2,1,2,1,3,1,2,1,2,1,4,1,2,1,2,1,3,1,2,1,2,1,3,1,2,1,2,1,3,1,2,1,2,1,4,1,2,1,2
add $0,1
mov $1,2
lpb $0
dif $0,$1
add $2,1
min $2,1
add ... |
; Often loaded into 0x7c00
[org 0x7c00] ; set the offset to bootsector code
mov bx, WELCOME
call print
call print_nl
mov bp, 0x8000 ; set the stack far from us
mov sp, bp
mov bx, 0x9000
mov dh, 2 ; read 2 sectors
call disk_load
; Infinite loop (e9 fd ff)
jmp $
%include "./boot-sector-help... |
#include "object.h"
#include <llvm/IR/Type.h>
#include <llvm/IR/Value.h>
#include <llvm/IR/Function.h>
#include <llvm/Support/Casting.h>
_BeginNamespace(eokas)
llvm_expr_t::llvm_expr_t(llvm::Value* value, llvm::Type* type)
{
this->value = value;
if(type != nullptr)
{
this->type = type;
}
else if(llvm... |
; void *heap_calloc(void *heap, size_t nmemb, size_t size)
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_alloc_malloc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $01
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _heap_calloc
EXTERN asm_heap_calloc
_heap_calloc:
pop af
pop de
pop ... |
/*******************************************************************************
* Copyright (c) 2018-, UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the BSD 3-Clause License
* which accompanies this distribution.
*
* Contributors:
... |
INCLUDE "defines.asm"
SECTION "Header", ROM0[$100]
; This is your ROM's entry point
; You have 4 bytes of code to do... something
sub $11 ; This helps check if we're on CGB more efficiently
jr EntryPoint
; Make sure to allocate some space for the header, so no important
; code gets put there and later overwr... |
; A081728: Length of periods of Euler numbers modulo prime(n).
; 1,2,2,6,10,6,8,18,22,14,30,18,20,42,46,26,58,30,66,70,36,78,82,44,48,50,102,106,54,56,126,130,68,138,74,150,78,162,166,86,178,90,190,96,98,198,210,222,226,114,116,238,120,250,128,262,134,270,138,140,282,146
seq $0,6005 ; The odd prime numbers together wi... |
# /* Copyright (C) 2001
# * Housemarque Oy
# * http://www.housemarque.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)
# */
#
# /* Revised by Paul Mensonides (2002) */
#
# /* See http://www.boost... |
; A086652: a(n) = A000225(n+3)-A052955(n).
; 6,13,28,58,120,244,496,1000,2016,4048,8128,16288,32640,65344,130816,261760,523776,1047808,2096128,4192768,8386560,16774144,33550336,67102720,134209536,268423168,536854528,1073717248,2147450880
mov $1,6
add $1,$0
mov $3,$0
lpb $0
sub $0,1
mov $2,$1
sub $2,$3
add $1,$... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x4882, %r12
nop
nop
nop
nop
xor $9841, %rcx
mov (%r12), %r10d
nop
nop
cmp %r11, %r11
lea addresses_UC_ht+0x2202, %r10
nop
nop
nop
and $42560, %rbx
mov (%r10), %r15w
nop
nop
no... |
; A004343: Binomial coefficient C(5n,n-1).
; 1,10,105,1140,12650,142506,1623160,18643560,215553195,2505433700,29248649430,342700125300,4027810484880,47465835030320,560658857389200,6635869816740560,78682166288559225,934433788613079150
mov $1,5
mul $1,$0
add $1,5
bin $1,$0
mov $0,$1
|
/*
* Attack.cpp
*
* Created on: May 18, 2013
* Author: planke
*/
#include "PoisonEffect.h"
#include "../Units/Unit.h"
PoisonEffect::~PoisonEffect() {
}
PoisonEffect::PoisonEffect(float timeInMilliseconds, float tickEveryMilliSeconds, float dmgPerTick) :
Effect(timeInMilliseconds, tickEveryMilliSeconds)... |
//===-- ExpandPostRAPseudos.cpp - Pseudo instruction expansion pass -------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
map_header BluesHouse, BLUES_HOUSE, HOUSE, 0
end_map_header
|
#include <bits/stdc++.h>
using namespace std;
typedef long long int llint;
typedef unsigned long long int ullint;
typedef short int sint;
#define endn "\n"
#define umap unordered_map
#define uset unordered_set
#define pb push_back
template<typename tem>
void print_vector(vector<tem> &vec) {
for (auto &ele : vec) cout<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.