text stringlengths 1 1.05M |
|---|
#include <nano/crypto_lib/random_pool.hpp>
#include <nano/lib/blocks.hpp>
#include <nano/lib/threading.hpp>
#include <nano/lib/work.hpp>
#include <nano/node/xorshift.hpp>
#include <future>
bool nano::work_validate (nano::root const & root_a, uint64_t work_a, uint64_t * difficulty_a)
{
static nano::network_constants ... |
; A188084: Positions of 0 in A188083; complement of A188084.
; Submitted by Jon Maiga
; 2,3,6,7,10,11,13,14,17,18,21,22,25,26,28,29,32,33,36,37,40,41,43,44,47,48,51,52,54,55,58,59,62,63,66,67,69,70,73,74,77,78,81,82,84,85,88,89,92,93,96,97,99,100,103,104,107,108,110,111,114,115,118,119,122,123,125,126,129,130,133,134,1... |
/*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publi... |
; Yeu cau: Nhaop vao 2 so a, b. Tinh tong, hieu, tich, thuong a, b
%include "io.inc"
extern _printf
extern _scanf
extern _getch
section .data
tb1 db "Nhap a: ", 0
tb2 db "Nhap b: ", 0
tb3 db 10,"%d %c %d = %d", 0;
tb4 db " du la: %d", 0
fmt db "%d", 0
section .bss
a resd 1
b resd 1
c res... |
; A233905: a(2n) = a(n), a(2n+1) = a(n) + n, with a(0)=0.
; 0,0,0,1,0,2,1,4,0,4,2,7,1,7,4,11,0,8,4,13,2,12,7,18,1,13,7,20,4,18,11,26,0,16,8,25,4,22,13,32,2,22,12,33,7,29,18,41,1,25,13,38,7,33,20,47,4,32,18,47,11,41,26,57,0,32,16,49,8,42,25,60,4,40,22,59,13,51,32,71,2,42,22,63,12,54,33,76,7,51,29,74,18,64,41,88,1,49,25,... |
; A318919: Define b(0)=0, b(1)[1]=1, b(1)[2]=1; and for n>=2, b(n)[1] = total number of digits in b(n-1), and b(n)[2] = total number of digits in b(0),...,b(n-1); a(n) = b(n)[2].
; 1,3,5,7,9,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59,62,65,68,71,74,77,80,83,86,89,92,95,98,101,105,109,113,117,121,125,129,133,137... |
start:
set r2 1
set r3 6
set r4 1
set r5 0
mov r6 r2
store r5 r6
for_0:
test r6 r3
jg endfor_0
set r7 0
load r7 r7
writenumber r7
add r6 r6 r4
store r5 r6
jmp for_0
endfor_0:
stop
|
; A068639: a(0) = 0, a(n) = a(n-1) + (-1)^p(n) for n >= 1, where p(n) = highest power of 2 dividing n.
; 0,1,0,1,2,3,2,3,2,3,2,3,4,5,4,5,6,7,6,7,8,9,8,9,8,9,8,9,10,11,10,11,10,11,10,11,12,13,12,13,12,13,12,13,14,15,14,15,16,17,16,17,18,19,18,19,18,19,18,19,20,21,20,21,22,23,22,23,24,25,24,25,24,25,24,25,26,27,26
mov $... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x19225, %rdi
nop
nop
nop
nop
nop
add %rdx, %rdx
mov (%rdi), %ebp
nop
nop
xor $55404, %r10
lea addresses_WC_ht+0xb569, %r10
nop
xor %r13, %r13
movb (%r10), %bl
nop
no... |
;;; 程序加载器
;;; 1、编译 azprasm loader.asm -o loader.bin --coe loader.coe
;;; 2、手工将Xilinx FPGA的coe文件转换为Altera FPGA的mif格式作为ROM初始化数据文件 loader16.mif
;;; 3、开发板综合时,将loader16.mif作为ROM的初始化数据文件
;;; 符号定义
UART_BASE_ADDR_H EQU 0x6000 ;UART Base Address High
UART_STATUS_OFFSET EQU 0x0 ;UART Status Register Offset
UART_DATA_OFFSE... |
; A006414: Number of nonseparable toroidal tree-rooted maps with n + 2 edges and n + 1 vertices.
; 1,9,40,125,315,686,1344,2430,4125,6655,10296,15379,22295,31500,43520,58956,78489,102885,133000,169785,214291,267674,331200,406250,494325,597051,716184,853615,1011375,1191640,1396736,1629144,1891505,2186625,2517480,2887221... |
; "main.asm" file by CodePulse, modified by GamePlayer
global start
extern long_mode_start
section .text
bits 32
start:
mov esp, stack_top
call check_multiboot
call check_cpuid
call check_long_mode
call setup_page_tables
call enable_paging
lgdt [gdt64.pointer]
jmp gdt64.code_segment:long_mode_start
hlt
... |
dw 0100000o
dw 0122202o
dw 0155000o
dw 0157575o
dw 0127172o
dw 0154215o
dw 0125356o
dw 0122000o
dw 0142224o
dw 0112221o
dw 0152725o
dw 0122722o
dw 0100021o
dw 0100700o
dw 0100020o
dw 0144211o
dw 0175557o
dw 0123227o
dw 0174717o
dw 0174747o
... |
; A269786: Primes p such that 2*p + 31 is a square.
; Submitted by Christian Krause
; 97,349,997,1609,2797,3769,6829,7549,10789,11689,13597,15649,16729,22669,28069,32497,40597,44089,49597,59497,63709,70297,74869,86929,89449,94597,113749,122497,128509,144169,147409,153997,164149,181789,196549,200329,207997
mov $1,9
mov... |
kernel: file format elf32-i386
Disassembly of section .text:
80100000 <multiboot_header>:
80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh
80100006: 00 00 add %al,(%eax)
80100008: fe 4f 52 decb 0x52(%edi)
8010000b: e4 .byte 0xe4
8010000c <entry>:
# E... |
//===--- FrontendActions.cpp ----------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
; A330571: Square of number of unordered factorizations of n as n = i*j.
; 1,1,1,4,1,4,1,4,4,4,1,9,1,4,4,9,1,9,1,9,4,4,1,16,4,4,4,9,1,16,1,9,4,4,4,25,1,4,4,16,1,16,1,9,9,4,1,25,4,9,4,9,1,16,4,16,4,4,1,36,1,4,9,16,4,16,1,9,4,16,1,36,1,4,9,9,4,16,1,25,9,4,1,36,4,4,4,16,1,36,4,9,4,4,4,36
seq $0,38548 ; Number of divisors... |
/*************************************************************************/
/* gpu_particles_2d.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
;***************************************************************************
; FILENAME: cymem.a51
; Version 3.20
;
; DESCRIPTION:
; Specialized memory routines for Keil bootup. These functions accept
; 3-byte pointers, but the pointers are interpreted as absolute locations
; rather than as Keil generic/far p... |
;
; BASIC-DOS FCB Services
;
; @author Jeff Parsons <Jeff@pcjs.org>
; @copyright (c) 2020-2021 Jeff Parsons
; @license MIT <https://basicdos.com/LICENSE.txt>
;
; This file is part of PCjs, a computer emulation software project at pcjs.org
;
include macros.inc
include devapi.inc
include dos.inc
include d... |
stk 20
psh 4
psh 1
psh 4
psh 3
fsub
pop r1
add r1, .0
out r1
|
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args="algorithm"/>
<%docstring>
Invokes the syscall sched_get_priority_max. See 'man 2 sched_get_priority_max' for more information.
Arguments:
algorithm(int): algorithm
</%docstring>
${syscall('SYS_sched_get_priority_max', algorithm)}
|
; Text for error window v0.00 June 1988 J.R.Oakley QJUMP
section language
include 'dev8_mac_text'
include 'dev8_keys_k'
erstr1 setstr {This application failed with the error\}
mktext erms \
{[erstr1]}
xdef msx.erms... |
SECTION .text
global _crcCalc
align 10h
_crcCalc:
pushad
mov eax, [esp+32+4] ; Load the pointer to dwCrc32
mov ecx, [eax] ; Dereference the pointer to load dwCrc32
mov edi, [esp+32+8] ; Load the CRC32 table
mov esi, [esp+32+12] ; Load buffer
mov ebx, [esp+32+16] ; Load dwBytesRead
lea edx,... |
TITLE cmll-586.asm
IF @Version LT 800
ECHO MASM version 8.00 or later is strongly recommended.
ENDIF
.586
.MODEL FLAT
OPTION DOTNAME
IF @Version LT 800
.text$ SEGMENT PAGE 'CODE'
ELSE
.text$ SEGMENT ALIGN(64) 'CODE'
ENDIF
ALIGN 16
_Camellia_EncryptBlock_Rounds PROC PUBLIC
$L_Camellia_EncryptBlock_Rounds_begin::
push e... |
; A077430: a(n) = floor(log_10(2*n^2)) + 1.
; 1,1,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5
add $0,1
pow $0,2
mov $1,-1
mov $2,$0
mul $2,2
lpb $2
add $1,1
div $2... |
LMHeart8 label byte
word C_BLACK
Bitmap <71,100,BMC_PACKBITS,BMF_MONO>
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0xf8, 0x00
db 0x01, 0x03, 0xe0, 0xfc, 0x00, 0x01, 0x1d, 0xc0
db 0x01, 0x07, 0xf0, 0xfc, 0x00, 0x01, 0x37, 0x60
db 0x01, 0x0e, 0x38, 0xfc, 0x00, 0x01, 0x2a, 0xa0
db 0x01, 0x0c, 0x18, 0x... |
_mkdir: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 83 ec 20 ... |
// 编写一个小程序,要求以几英尺几英寸的方式输入其身高,并以磅为单位输入其体重(使用3个变量来存储这些信息)
// 该程序可以报告体重指数。
// 为了计算BMI,该程序以英寸为单位指出用户的身高(1英尺=12英寸),并将以英寸为单位的身高转换为以米为单位的身高(1英寸=0.0254米)
// 然后,将以磅为单位的体重转换为以千克为单位的体重(1千克=2.2磅)。
// 计算BMI,即体重除以身高的平方。
// 用符号常量表示各种转换因子。
#include <iostream>
using namespace std;
const int FOOT_TO_INCH = 12;
const float INCH_TO_METE... |
;===============================================================================
; class Main
;===============================================================================
bits 16
org 32768
; entry point
; ----------------------------------------------------------------------
jmp Main.main
; private properti... |
// Copyright (c) 2012-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.
#include <key.h>
#include <key_io.h>
#include <streams.h>
#include <test/util/setup_common.h>
#include <uint256.h>
#include ... |
%include "../../defaults_bin.asm"
int 0x61
mov di,0xffff
mov bx,di
mov cx,di
in al,0x61
or al,3
out 0x61,al
mov al,TIMER2 | BOTH | MODE3 | BINARY
out 0x43,al
loopTop:
mov ax,bx ; high word ffff
mul di ; *ffff = fffe:0001
mov... |
;;
;; Copyright (c) 2020, Intel Corporation
;;
;; 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 conditions and the ... |
#include "stdafx.h"
#include "Direct.h"
#include "dms.h"
#include "dMusAudioPathObj.h"
#include "dsound3dbuffer.h"
#include "dsoundbufferobj.h"
#include "dsoundprimarybufferobj.h"
#include "dsound3dlistener.h"
#include "dsoundFXGargleobj.h"
#include "dsoundFXEchoobj.h"
#include "dsoundFXChorusobj.h"
... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.7.1 #10455 (MINGW64)
;--------------------------------------------------------
.module main
.optsdcc -mgbz80
;--------------------------------------------------------
; Public vari... |
GLOBAL cpuVendor
GLOBAL getstatuskeyboard
GLOBAL getcharacter
GLOBAL getRtcStatus
GLOBAL setRtcBinary
GLOBAL getkeyStatus
GLOBAL getcharacterC
GLOBAL getMem
GLOBAL getFromRTC
GLOBAL backupRSP
GLOBAL resetRSP
GLOBAL getRegs
section .text
backupRSP:
mov rax , rsp
ret
;; en rdi tengo el valo... |
; A037487: Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 1,2.
; 1,12,121,1212,12121,121212,1212121,12121212,121212121,1212121212,12121212121,121212121212,1212121212121,12121212121212,121212121212121,1212121212121212,12121212121212121,121212121212121212,121212121212... |
DEVICE ZXSPECTRUMNEXT
; do various config commands without any NEX file being opened => errors
SAVENEX CORE 15,15,255
SAVENEX CFG 5,"hf",1,1
SAVENEX BAR 1,'L','D','d'
SAVENEX SCREEN L2 0, 0, 0, 0
SAVENEX SCREEN LR 0, 0, 0, 0
SAVENEX SCREEN SCR
SA... |
;-----------------------------------------------------------------------------;
; Author: Unknown
; Compatible: Confirmed Windows Server 2003, IE Versions 4 to 6
; Version: 1.0
;-----------------------------------------------------------------------------;
[BITS 32]
; Input: EBP must be the address of 'api_call'
; Out... |
bits 32
global boot ; making entry point visible to linker
extern kmain ; kmain is defined in Main.ooc
;;; Multiboot header. See GRUB docs for details
MODULEALIGN equ 1<<0 ; align loaded modules on page boundaries
MEMINFO equ 1<<1 ; provide memory map
FLAGS equ MODULEALIG... |
#include <gtest/gtest.h>
#include "helpers.hh"
#include <Eigen/Core>
#include <Eigen/Geometry>
#include "../CameraModel/cameramodel.hh"
#include "../geometry/Bounds.hh"
#include "../geometry/LineSegment/LineSegment2/LineSegment2i/linesegment2i.hh"
using namespace bold;
using namespace Eigen;
TEST (CameraModelTests,... |
bits 64
_xxx:
jmp _yyy
nop
nop
nop
_yyy:
jmp _xxx - 1 |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xecfd, %r8
nop
nop
cmp $47471, %r10
movw $0x6162, (%r8)
nop
nop
sub $25190, %r9
lea addresses_WT_ht+0x166d, %rsi
lea addresses_D_ht+0x8a7d, %rdi
nop
nop
nop
nop
nop
sub %rax, %... |
.686
.model flat,stdcall
option casemap:none
include .\bnlib.inc
include .\bignum.inc
.data?
bn_dwrandseed dd ?
.code
;; returns offset of bn_dwrandseed so we can change it
;; if needed
_bn_dwrandomize proc c
rdtsc
mov bn_dwrandseed,eax
mov eax,offset bn_dwrandseed
ret
_bn_dwrandomize endp
; ecx = range
_bn_dwr... |
segment .text
align 4
f:
push ebp
mov ebp, esp
sub esp, 4
lea eax, [ebp+8]
push eax
pop eax
push dword [eax]
push dword [esp]
lea eax, [ebp+-4]
push eax
pop ecx
pop eax
mov [ecx], eax
add esp, 4
lea eax, [ebp+-4]
push eax
pop eax
push dword [eax]
pop eax
leave
ret
align 4
global _main:function
_mai... |
SECTION code_fp_math32
PUBLIC _exp_fastcall
EXTERN _m32_expf
defc _exp_fastcall = _m32_expf
|
extern m7_ippsGFpECSetPointHashBackCompatible_rmf:function
extern n8_ippsGFpECSetPointHashBackCompatible_rmf:function
extern y8_ippsGFpECSetPointHashBackCompatible_rmf:function
extern e9_ippsGFpECSetPointHashBackCompatible_rmf:function
extern l9_ippsGFpECSetPointHashBackCompatible_rmf:function
extern n0_ippsGFpECSetPoi... |
;
; Copyright (C) 2021 by Intel Corporation
;
; Permission to use, copy, modify, and/or distribute this software for any
; purpose with or without fee is hereby granted.
;
; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHA... |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 81 ec 30 02 00 00... |
db "IRON ARMOR@" ; species name
db "You can tell its"
next "age by the length"
next "of its iron horns."
page "It claims an"
next "entire mountain"
next "as its territory.@"
|
#include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include <QPixmap>
#include <QUrl>
#include <qrencode.h>
QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent) :
... |
; A055231: Powerfree part of n: product of primes that divide n only once.
; 1,2,3,1,5,6,7,1,1,10,11,3,13,14,15,1,17,2,19,5,21,22,23,3,1,26,1,7,29,30,31,1,33,34,35,1,37,38,39,5,41,42,43,11,5,46,47,3,1,2,51,13,53,2,55,7,57,58,59,15,61,62,7,1,65,66,67,17,69,70,71,1,73,74,3,19,77,78,79,5,1,82,83,21,85,86,87,11,89,10,91,23... |
; A156095: 5 F(2n) (F(2n) + 1) + 1 where F(n) denotes the n-th Fibonacci number.
; 1,11,61,361,2311,15401,104401,712531,4875781,33398201,228859951,1568486161,10750188961,73681909211,505020747661,3461456968201,23725161388951,162614629188281,1114577128871281,7639424974303651,52361396909490901
mov $2,1
lpb $0
sub $0,1
... |
// Copyright (c) 2012-2014 The Nullex Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "libzerocoin/bignum.h"
#include "script/script.h"
#include <boost/test/unit_test.hpp>
#include <limits.h>
#includ... |
;===============================================================================
; class LabelResolverTest
;===============================================================================
bits 16
org 32768
start:
; ----------------------------------------------------------------------
mov si, msg.testLabel
cal... |
#include "tile.h"
Tile::Tile() {}
Tile::~Tile() {}
void Tile::setValue(int v) {
value = v;
}
|
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D94 move.l D1, (A1)+
004D96 dbra D0, $4d94
0107AA move.b ($5a,A2), ($5a,A3) [123p+ 78]
0107B0 move.b (A4)+, D0
010F30 move.b ($5a,A2), ($5a,A3) [123p+ 78]
010F36 move.b (A4)+, D0
0116F2 move... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2019 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#incl... |
;;
;; Copyright (c) 2020-2022, Intel Corporation
;;
;; 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 conditions and... |
; A002058: Number of internal triangles in all triangulations of an (n+1)-gon.
; 2,14,72,330,1430,6006,24752,100776,406980,1634380,6537520,26075790,103791870,412506150,1637618400,6495886320,25751549340,102042235620,404225281200,1600944863700,6339741660252,25103519174844,99399793096352
mov $1,5
add $1,$0
add $1,$0
bin ... |
/* Copyright 2017 The TensorFlow Authors. 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 by applicable law or a... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "init.h"
#include "main.h"
#include "net.h"
#include "netb... |
; SethWhitakerProj3.asm - Project 4
; Seth Whitaker: 06/21/2020
.386
.model flat,stdcall
.stack 4096
ExitProcess PROTO, dwExitCode:DWORD
.data
source BYTE "This is the string that will be reversed", 0
target BYTE SIZEOF source DUP('#')
.code
main PROC
mov esi, OFFSET target - 2 ; Adress 2 bytes before target
mo... |
; =============================================================================
; Pure64 -- a 64-bit OS/software loader written in Assembly for x86-64 systems
; Copyright (C) 2008-2020 Return Infinity -- see LICENSE.TXT
;
; The first stage loader is required to gather information about the system
; while the BIOS or UE... |
; char *strdup(const char * s)
SECTION code_clib
SECTION code_string
PUBLIC strdup
EXTERN asm_strdup
defc strdup = asm_strdup
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _strdup
defc _strdup = strdup
ENDIF
|
; void sp1_PutTilesInv(struct sp1_Rect *r, struct sp1_tp *src)
; CALLER linkage for function pointers
XLIB sp1_PutTilesInv
LIB sp1_PutTilesInv_callee
XREF ASMDISP_SP1_PUTTILESINV_CALLEE
.sp1_PutTilesInv
ld hl,2
add hl,sp
ld e,(hl)
inc hl
ld d,(hl)
push de
inc hl
ld a,(hl)
inc hl
ld h,(... |
#ifndef STAN_MATH_PRIM_SCAL_PROB_BERNOULLI_RNG_HPP
#define STAN_MATH_PRIM_SCAL_PROB_BERNOULLI_RNG_HPP
#include <boost/random/bernoulli_distribution.hpp>
#include <boost/random/variate_generator.hpp>
#include <stan/math/prim/scal/err/check_consistent_sizes.hpp>
#include <stan/math/prim/scal/err/check_bounded.hpp>
#incl... |
label():
jsr $ffcf
cmp #$00
beq label()
sta ($fb),y
|
;
; LAB02C.asm
;
; Created: 2017/8/28 10:52:35
; Author : LI JINGCHENG
;
; Replace with your application code
.include "m2560def.inc"
.def n=r16
.def a=r17
.def b=r18
.def c=r19
.def cou=r22
.def timerl=r23
.def timerh=r24
.dseg
counter: .byte 1
.cseg
ldi n,8
ldi a,1
ldi b,3
ldi c,2
... |
###############################################################################
# Copyright 2018 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") containe... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
// Store
lea addresses_A+0x83e2, %rcx
nop
nop
nop
nop
nop
cmp $36191, %r9
movl $0x51525354, (%rcx)
nop
nop
nop
nop
nop
sub $58717, %r9
// Faulty Load
lea addr... |
;;
;; Copyright (c) 2018, Intel Corporation
;;
;; 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 conditions and the ... |
; size_t getdelim(char **lineptr, size_t *n, int delimiter, FILE *stream)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _getdelim
EXTERN l0_getdelim_callee
_getdelim:
pop af
pop hl
pop de
pop bc
exx... |
; A062075: a(n) = n^4 * 4^n.
; 0,4,256,5184,65536,640000,5308416,39337984,268435456,1719926784,10485760000,61408804864,347892350976,1916696264704,10312216477696,54358179840000,281474976710656,1434879854116864,7213895789838336,35822363710849024,175921860444160000,855336483526017024,4121075134020714496,196920597394216714... |
; A082447: a(n) = the number k such that s(k)=0 where s(0)=n and s(i)=s(i-1)-(s(i-1) modulo i).
; Submitted by Christian Krause
; 1,2,2,3,3,4,4,4,4,5,5,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,10,10,10,10,10,10,10,10,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,1... |
; A152621: a(n)=8*a(n-1)-6*a(n-2), n>1 ; a(0)=1, a(1)=2.
; 1,2,10,68,484,3464,24808,177680,1272592,9114656,65281696,467565632,3348834880,23985285248,171789272704,1230402470144,8812484124928,63117458178560,452064760678912,3237813336359936,23190118126806016
mov $2,$0
lpb $2,1
sub $2,1
mul $3,6
add $3,$1
add $3,6... |
bits 32 ; assembling for the 32 bits architecture
; declare the EntryPoint (a label defining the very first instruction of the program)
global start
; declare external functions needed by our program
extern exit ; tell nasm that exit exists even if we won't be defining it
import exit msvc... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2016, 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... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... |
#include "catch.hpp"
#include "ApprovalTests/utilities/CartesianProduct.h"
#include <string>
#include <vector>
#include <set>
using namespace ApprovalTests;
using Results = std::vector<std::string>;
// ------------------------------------------------------------------
// Tests which use a non-template object for ac... |
.MODEL SMALL
.STACK 100H
.DATA
STRING DB ?
SYS DB 'S'
VOWEL DB 'S'
INPUT_USER DB 0AH,0DH, 'ENTER A STRING: ',0DH,0AH,'$'
OUTPUT_M DB 0AH,0DH, 'TOTAL VOWEL: ',0DH,0AH,'$'
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
MOV DX, OFFSET INPUT_USER
MOV AH, 09
INT 21H
... |
; A244307: Sum over each antidiagonal of A244306.
; 0,2,7,20,45,92,170,296,486,766,1161,1708,2443,3416,4676,6288,8316,10842,13947,17732,22297,27764,34254,41912,50882,61334,73437,87388,103383,121648,142408,165920,192440,222258,255663,292980,334533,380684,431794,488264,550494,618926,694001,776204,866019,963976,1070604,11... |
;---------------------------------------
; Amiga Boing example
;---------------------------------------
org #c000-4
tableHalf equ 2520
bitmapYSm equ #00 ; смещение по оси Y внутри bitmap делённое на 8
; addr: bitmapYSm 3 * 8 = 24 pixel
; 24 * 256 (если 16 цветные спрайты) получаем смеще... |
//
//
#include "PhysicsTools/PatAlgos/plugins/PATMuonProducer.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "DataFormats/MuonReco/interface/Muon.h"
#include "DataFormats/MuonReco/interface/... |
/*
This parser was written in the distant past by Nick Porcino for the public domain
and is freely available on an as is basis. It is meant for educational
purposes and is not suitable for any particular purpose. No warranty is expressed
or implied. Use at your own risk. Do not operate heavy machinery or governments
w... |
// Copyright 2017 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/installer/zucchini/suffix_array.h"
#include <algorithm>
#include <cstddef>
#include <initializer_list>
#include <string>
#include <vecto... |
comment #
Name : I-Worm.Together
Author : PetiK
Date : March 10th 2002 - March 15th 2002
#
.586p
.model flat
.code
JUMPS
api macro a
extrn a:proc
call a
endm
PROCESSENTRY32 STRUCT
dwSize DWORD ?
cntUsage DWORD ?
th32ProcessID DWORD ?
t... |
#pragma once
bool is_perfect_square(unsigned n);
|
; A267780: Decimal representation of the n-th iteration of the "Rule 211" elementary cellular automaton starting with a single ON (black) cell.
; 1,5,25,125,505,2045,8185,32765,131065,524285,2097145,8388605,33554425,134217725,536870905,2147483645,8589934585,34359738365,137438953465,549755813885,2199023255545,8796093022... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
%>
<%docstring>timer_create(clock_id, evp, timerid) -> str
Invokes the syscall timer_create.
See 'man 2 timer_create' for more information.
Arguments:
clock_id(clockid_t): clock_id
evp(sigevent*): evp
timerid(timer_t... |
global long_mode_start
section .text
bits 64 ; yay we're in 64-bit mode now, that was a lot of work :)
long_mode_start:
extern kernel_main
call kernel_main
.os_returned:
mov rax, 0x4f724f204f534f4f
mov [0xb8000], rax
mov rax, 0x4f724f754f744f65
mov [0xb8008], rax
mov rax, 0x4f214f644f654f... |
; ===========================================================================
; uz80as, an assembler for the Zilog Z80 and several other microprocessors.
;
; Rockwell R65C02.
; ===========================================================================
#define equ .equ
#define end .end
zp: equ $77
a16: eq... |
bipush 20
istore j
bipush 5
istore k
bipush 0
istore q
loop iload j
iload k
isub
istore aux
iload q
bipush 1
iadd
istore q
ifeq l1
iload aux
istore j
iload k
isub
goto loop
l1 iload q
|
#include "builders/generators/CylinderGenerator.hpp"
#include "builders/generators/WallGenerator.hpp"
#include "builders/misc/BarrierBuilder.hpp"
#include "entities/Node.hpp"
#include "entities/Way.hpp"
#include "entities/Area.hpp"
#include "entities/Relation.hpp"
#include "utils/GeometryUtils.hpp"
#include "utils/Mesh... |
/*
* $Header: /Book/reboot.cpp 12 6-09-01 12:52 Oslph312 $
*/
#include "precomp.h"
#include "reboot.h"
#include "utils.h"
#include "formatMessage.h"
#include "startInstance.h"
#include "fileUtils.h"
#include "winUtils.h"
#include "MRU.h"
#include "Registry.h"
#include "Document.h"
#include "Exception.h"
typedef... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; void *heap_alloc_aligned_unlocked(void *heap, size_t alignment, size_t size)
;
; Allocate size bytes from the heap at an address that is an
; integer multiple of alignment... |
%ifndef vgalib_asm__
%define vgalib_asm__
%include 'vgaregs.asm'
%include 'lang.asm'
%include 'videolib_common.asm'
%define SCREEN_WIDTH 640
%define SCREEN_HEIGHT 480
%define SCREEN_WORDS ((SCREEN_WIDTH/16)*SCREEN_HEIGHT)
; Macro to include a resource file. Argument: Resource name. (unquoted)
;
; A label matching t... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1e1e3, %r11
nop
nop
nop
nop
nop
sub %r8, %r8
movb (%r11), %r12b
nop
add %rdx, %rdx
lea addresses_WC_ht+0x1a378, %rsi
lea addresses_WC_ht+0x12bb8, %rdi
nop
nop
nop
cmp %r8, %r8... |
;
; This is in assembly because assembly lets you generate arbitrarily named symbols.
;
.386p
.model flat
extern _ExitProcess@4:near
public __imp__ExitProcess@4
CONST segment
__imp__ExitProcess@4 dd _ExitProcess@4
CONST ends
end
|
SECTION code_clib
SECTION code_fp_math32
PUBLIC asm_dmulpow10
EXTERN m32_float8, m32_fsmul_callee
EXTERN _m32_exp10f
; multiply DEHL' by a power of ten
; DEHL' *= 10^(A)
;
; enter : DEHL'= float x
; A = signed char
;
; exit : success
;
; DEHL'= x * 10^(A)
; ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.