text stringlengths 1 1.05M |
|---|
; A093518: Number of ways of representing n as exactly 2 generalized pentagonal numbers.
; Submitted by Christian Krause
; 1,1,2,1,1,1,1,2,1,1,1,0,2,1,2,1,1,2,0,1,1,0,2,1,2,0,1,3,1,1,1,1,0,1,1,1,1,2,1,0,2,2,2,0,1,1,0,2,1,0,1,1,3,1,0,1,1,2,2,1,0,1,2,1,1,0,2,0,0,1,2,1,2,1,0,2,0,3,1,2,1,0,2,1,1,1,1,0,0,1,0,1,4,1,1,0,1,2,0... |
//=======================================================================
// Copyright (c) 2014-2020 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... |
; A227568: Largest k such that a partition of n into distinct parts with boundary size k exists.
; 0,1,1,2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11... |
; void *p_forward_list_insert_after_callee(void *list_item, void *item)
SECTION code_clib
SECTION code_adt_p_forward_list
PUBLIC _p_forward_list_insert_after_callee
EXTERN asm_p_forward_list_insert_after
_p_forward_list_insert_after_callee:
pop af
pop hl
pop de
push af
jp asm_p_forward_list_ins... |
; A021041: Decimal expansion of 1/37.
; 0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7,0,2,7
pow $0,3
mul $0,2
mod $0,9
|
/* Copyright 2017 R. Thomas
* Copyright 2017 Quarkslab
*
* 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 appli... |
; A217528: a(n) = (n-2)*(n-3)*2^(n-2)+2^n-2.
; 1,2,6,22,78,254,766,2174,5886,15358,38910,96254,233470,557054,1310718,3047422,7012350,15990782,36175870,81264638,181403646,402653182,889192446,1954545662,4278190078,9328132094,20266876926,43889197054,94757715966,204010946558,438086664190,938450354174,2005749727230,42777874... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
lea addresses_WC_ht+0x65e0, %rbp
nop
nop
xor %rdx, %rdx
mov (%rbp), %cx
nop
nop
nop
nop
cmp $65168, %rdi
lea addresses_A_ht+0x11a34, %r9
clflush (%r9)
nop
xor $20570, %rdx
movups (%r9), %xmm4
vpextrq $1, %xmm4, %r11
... |
// Copyright (c) 2012-2015 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 "wallet/wallet.h"
#include <set>
#include <stdint.h>
#include <utility>
#include <vector>
#include "rpc/server.h"
... |
;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
;; See the LICENSE file in the project root for more information.
#include "kxarm.h"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATA SECTIONS ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
... |
;
; VGM YM2612 chip
;
YM2612_PCM_REGISTER: equ 2AH
YM2612_PCMBUFFER_SIZE: equ 100H
YM2612: MACRO
super: Chip YM2612_ym2612Name, Header.ym2612Clock, YM2612_Connect
pcmDataStart:
dd 0
pcmDataPosition:
dd 0
pcmBuffer:
dw 0
; hl' = time remaining
; ix = player
; iy = reader
ProcessPort0Command: PROC
call ... |
_init: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
char *argv[] = { "sh", 0 };
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 push %ebp
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x64bc, %rsi
lea addresses_normal_ht+0xee7f, %rdi
nop
nop
nop
nop
nop
and $13979, %rax
mov $51, %rcx
rep movsw
nop
nop
nop
and $52251, %r13
lea addresses_A_ht+0xecbc, %rsi
lea addresses_D_ht+0x27... |
[bits 32]
dd Key.$FILE_END - Key.$FILE_START
db "OrcaHLL Class", 0
db "Key", 0
Key.$FILE_START :
Key.$global.KEY_DOWN :
db 0x50
Key.$global.KEY_LEFT :
db 0x4B
Key.$global.TAB :
db 0x3A
Key.$global.ESC :
db 0x01
Key.$global.KEY_RIGHT :
db 0x4D
Key.$global.ENTER :
db 0xFE
Key.$global.KEY_UP :
db 0x48
Key.$global... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
include listing.inc
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC Compare_Imp
PUBLIC Initialize_Compare
PUBLIC PMC_Compare_I_X
PUBLIC PMC_Compare_L_X
PUBLIC PMC_Compare_X_I
PUBLIC PMC_Compare_X_L
PUBLIC PMC_Compare_X_X
EXTRN CheckNumber:P... |
/*
Copyright (c) 2015, Mikhail Titov
Copyright (c) 2004-2021, Arvid Norberg
Copyright (c) 2016-2017, Steven Siloti
Copyright (c) 2016, 2020-2021, Alden Torres
Copyright (c) 2020, Paul-Louis Ageneau
All rights reserved.
You may use, distribute and modify this code under the terms of the BSD license,
see LICENSE file.
... |
;---------------------------------
;bplinux@posteo.de
;
;this is used to terminate the
;process and group cleanly
;---------------------------------
[BITS 64]
EXIT_GROUP equ 231
EXIT equ 60
segment .text
global _start
_start: xor rax, rax
mov al, EXIT_GROUP
xor rdi, rdi
syscall
xor rax, rax
mov al, EXIT
xo... |
; unsigned char esx_m_setdrv(unsigned char drive)
SECTION code_esxdos
PUBLIC _esx_m_setdrv_fastcall
EXTERN asm_esx_m_setdrv
defc _esx_m_setdrv_fastcall = asm_esx_m_setdrv
|
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="fd, buf, n, flags, addr, addr_len"/>
<%docstring>
Invokes the syscall recvfrom. See 'man 2 recvfrom' for more information.
Arguments:
fd(int): fd
buf(void): buf
n(size_t): n
flags(int): flags
addr(SOCKADDR_ARG): addr
addr_... |
#include <iostream>
#include "sampling.hh"
using namespace sampling;
int main() {
// testing a zipf distribution, generating numbers between 1 and 1000 with theta=0.8
StoRandomDistribution<>::rng_type rng(1/*seed*/);
StoRandomDistribution<> *dist = new StoZipfDistribution<>(rng /*generator*/, 1 /*low*/, 1... |
; A099978: Bisection of A001157: a(n) = sigma_2(2n-1).
; 1,10,26,50,91,122,170,260,290,362,500,530,651,820,842,962,1220,1300,1370,1700,1682,1850,2366,2210,2451,2900,2810,3172,3620,3482,3722,4550,4420,4490,5300,5042,5330,6510,6100,6242,7381,6890,7540,8420,7922,8500,9620,9412,9410,11102,10202,10610,13000,11450,11882,1370... |
<%
import collections
import pwnlib.abi
import pwnlib.constants
import pwnlib.shellcraft
import six
%>
<%docstring>linkat(fromfd, from, tofd, to, flags) -> str
Invokes the syscall linkat.
See 'man 2 linkat' for more information.
Arguments:
fromfd(int): fromfd
from(char*): from
tofd(int): tofd
to(char... |
;; Draw the heads-up display: enemy, score, radar
draw_hud
; The "enemy" messages should change when there are, you know,
; enemies.
COPY0 enemy_in_range_msg,enemy_1_org
COPY0 enemy_left_msg,enemy_2_org
COPY0 score_msg,score_org
... |
.MODEL SMALL
.STACK 100H
.DATA
MSG1 DB 'Enter a string: $'
S DB 50 DUP('$')
SR DB 50 DUP('$')
MSG2 DB 0dh,0ah,'Your string: $'
MSG3 DB 0dh,0ah,'Your string in backward: $'
MSG4 DB 0dh,0ah,'This is palindrome$'
MSG5 DB 0dh,0ah,'This is not Palindrome$'
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
LEA DX,... |
// Copyright 2015 the V8 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.
#include "src/v8.h"
#if V8_TARGET_ARCH_S390
#include "src/debug/debug.h"
#include "src/codegen.h"
#include "src/debug/liveedit.h"
#include "src/frame... |
#include <iostream>
#include "tools.h"
using Eigen::VectorXd;
using Eigen::MatrixXd;
using std::vector;
Tools::Tools() {}
Tools::~Tools() {}
VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations,
const vector<VectorXd> &ground_truth) {
VectorXd rmse(4);
rmse << 0,0,0,0;
... |
/*
/*
This library was originally copyright of Michael at elechouse.com but permision was
granted by Wilson Shen on 2016-10-23 for me (Simon Monk) to uodate the code for Arduino 1.0+
and release the code on github under the MIT license.
Wilson Shen <elechouse@elechouse.com> 23 October 2016 at 02:08
... |
; A308589: Number of minimal edge covers in the (2n-1)-triangular snake graph.
; Submitted by Jon Maiga
; 0,3,7,17,44,112,285,726,1849,4709,11993,30544,77790,198117,504568,1285043,3272771,8335153,21228120,54064164,137691601,350675486,893106737,2274580561,5792943345,14753573988,37574671882,95695861097,243719968064,62071... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/generated/AI/CTreeNodeActionDefinition.hpp>
namespace RED4ext
{
namespace AI {
struct TreeNodeDeathDefinition : AI::CTreeNodeActionDefinition... |
; A038990: Expansion of (1-x-x^2+2*x^3) / ((1-x)*(1+x)*(1-3*x+x^2)).
; Submitted by Jon Maiga
; 1,2,5,14,37,98,257,674,1765,4622,12101,31682,82945,217154,568517,1488398,3896677,10201634,26708225,69923042,183060901,479259662,1254718085,3284894594,8599965697,22515002498,58945041797,154320122894,404015326885,1057725857762... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x105bc, %rsi
lea addresses_UC_ht+0x14e28, %rdi
nop
inc %r13
mov $56, %rcx
rep movsl
nop
nop
nop
dec %r11
lea addresses_normal_ht+0x15528, %r9
clflush (%r9)
nop
nop
nop
cmp %rs... |
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .text code align=64
global rsaz_1024_sqr_avx2
ALIGN 64
rsaz_1024_sqr_avx2:
mov QWORD[8+rsp],rdi ;WIN64 prologue
mov QWORD[16+rsp],rsi
mov rax,rsp
$L$SEH_begin_rsaz_1024_sqr_avx2:
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
mov r8,QWORD[40+... |
; A105578: a(n+3) = 2a(n+2) - 3a(n+1) + 2a(n); a(0) = 1, a(1) = 1, a(2) = 0.
; 1,1,0,-1,0,3,4,-1,-8,-5,12,23,0,-45,-44,47,136,43,-228,-313,144,771,484,-1057,-2024,91,4140,3959,-4320,-12237,-3596,20879,28072,-13685,-69828,-42457,97200,182115,-12284,-376513,-351944,401083,1104972,302807,-1907136,-2512749,1301524,6327023,... |
// 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 "libcef/browser/printing/printing_message_filter.h"
#include "libcef/browser/printing/print_view_manager.h"
#include <memory>
#include <str... |
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include <filesystem>
#include <fstream>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <string_view>
#include <unordered_set>
#include <utility>
#include <vector>
#include "modules/args_parser/incl... |
# INPUT
# $a0: base address array
# $a1: dimensione array
# $a2: passo
# OUTPUT
# $v0: minimo tra i numeri considerati
.text
.globl min
min:
mul $t0, $a2, 4 #t0=offset tra el. (passo)
move $t1, $a0 #t1=indirizzo prossimo el.
lw $t2, 0($t1) #t2=el. considerato
j updatemin
loop:
slt $t4, $zero, $a1
beq $t4, ... |
#include "toonzqt/schematicviewer.h"
// TnzQt includes
#include "toonzqt/fxtypes.h"
#include "toonzqt/schematicnode.h"
#include "toonzqt/fxschematicnode.h"
#include "toonzqt/schematicgroupeditor.h"
#include "toonzqt/stageschematicscene.h"
#include "toonzqt/fxschematicscene.h"
#include "toonzqt/menubarcommand.h"
#inc... |
; A006530: Gpf(n): greatest prime dividing n, for n >= 2; a(1)=1.
; 1,2,3,2,5,3,7,2,3,5,11,3,13,7,5,2,17,3,19,5,7,11,23,3,5,13,3,7,29,5,31,2,11,17,7,3,37,19,13,5,41,7,43,11,5,23,47,3,7,5,17,13,53,3,11,7,19,29,59,5,61,31,7,2,13,11,67,17,23,7,71,3,73,37,5,19,11,13,79,5,3,41,83,7,17,43,29,11,89,5,13,23,31,47,19,3,97,7,11,... |
; int dup2(int fd, int fd2)
SECTION code_clib
SECTION code_fcntl
PUBLIC dup2_callee
EXTERN asm_dup2
dup2_callee:
pop hl
pop de
ex (sp),hl
jp asm_dup2
|
/*
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
// Copyright (c) 2015 The Bitcoin Core developers
// Copyright (c) 2021 The GLOBALSMARTASSET Core Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "zmqnotificationinterface.h"
#include "zmqpublishnotifier.h"
... |
; A050250: Number of nonzero palindromes less than 10^n.
; 9,18,108,198,1098,1998,10998,19998,109998,199998,1099998,1999998,10999998,19999998,109999998,199999998,1099999998,1999999998,10999999998,19999999998,109999999998,199999999998,1099999999998,1999999999998,10999999999998,19999999999998,109999999999998,199999999999... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x107a5, %rbx
nop
nop
nop
nop
dec %r15
movb $0x61, (%rbx)
nop
cmp %rbx, %rbx
lea addresses_WT_ht+0x184dd, %rsi
lea addresses_WC_ht+0x1e779, %rdi
clflush (%rsi)
nop
xor $35... |
//leetcode.com/problems/rotate-array/
#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
void reverseArray(vector<int>& nums, int start, int end) {
while (start <= end) {
swap(nums[start], nums[end]);
++start;
--end;
}
}
void rot... |
; A120743: a(n) = (1/2)*(1 + 3*i)^n + (1/2)*(1 - 3*i)^n where i = sqrt(-1).
; 1,-8,-26,28,316,352,-2456,-8432,7696,99712,122464,-752192,-2729024,2063872,31417984,42197248,-229785344,-881543168,534767104,9884965888,14422260736,-70005137408,-284232882176,131585609728,3105500041216,4895143985152,-21264712441856,-914808647... |
; A346683: a(n) = Sum_{k=0..n} (-1)^(n-k) * binomial(7*k,k) / (6*k + 1).
; Submitted by Jon Maiga
; 1,0,7,63,756,9716,132062,1865626,27124049,403197584,6100155272,93626517858,1454221328232,22815183746508,361030984965596,5755543515895284,92350704790963431,1490287557170676816,24171116970619575559,393808998160695560841,64... |
; A270456: First differences of number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 163", based on the 5-celled von Neumann neighborhood.
; 4,4,24,-8,60,-36,112,-80,180,-140,264,-216,364,-308,480,-416,612,-540,760,-680,924,-836,1104,-1008,1300,-1196,1512,-140... |
; SYS-DOS 1.0.2 Alpha Written by Aiden Moechnig 9/19/2021
;=========================================================== START
mov ax, 0
mov bx, 0
mov cx, 0
mov dx, 0
call string1
call new
;=========================================================== MAIN LOOP
main:
mov ah, 0x02
mov dl, bl
mov dh, cl
int ... |
;-------------------------------------------
; new key-based set functions
;-------------------------------------------
ksavePatch
lda #1
sta customPatchSaved
;-------------------
lda #SAVED_PATCH_MESSAGE
sta patchSetY
jsr showPatchName
;----------------
ldx #$19
saveLoop:
lda sidData,x
sta sidSaveData,x... |
db 0 ; species ID placeholder
db 70, 110, 70, 90, 115, 70
; hp atk def spd sat sdf
db FIGHTING, FIGHTING ; type
db 45 ; catch rate
db 184 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F12_5 ; gender ratio
db 25 ; step cycles to hatch
INCBIN "gfx/pokemon/lucario/front.dimensions"
db GROWTH_MED... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xd0c, %r15
xor $7191, %r11
mov (%r15), %r13
nop
nop
nop
add %rdx, %rdx
lea addresses_WC_ht+0x1d28c, %rsi
lea addresses_WC_ht+0x4864, %rdi
add $25763, %rdx
mov $15, %rcx
rep m... |
; A111775: Number of ways n can be written as a sum of at least three consecutive integers.
; 0,0,0,0,0,1,0,0,1,1,0,1,0,1,2,0,0,2,0,1,2,1,0,1,1,1,2,1,0,3,0,0,2,1,2,2,0,1,2,1,0,3,0,1,4,1,0,1,1,2,2,1,0,3,2,1,2,1,0,3,0,1,4,0,2,3,0,1,2,3,0,2,0,1,4,1,2,3,0,1,3,1,0,3,2,1,2,1,0,5,2,1,2,1,2,1,0,2,4,2,0,3,0,1,6,1,0,3,0,3,2,1,0,... |
interrupt.irq intIrq()
{
}
interrupt.nmi intNmi() // Non maskable interrupts
{
}
inline sysInit()
{
disable_decimal_mode()
disable_interrupts()
reset_stack()
// clear the registers
lda #0
sta PPU.CNT0
sta PPU.CNT1
sta PPU.BG_SCROLL
sta PPU.BG_SCROLL
sta PCM_CNT
sta PCM_VOLUMECNT
sta SN... |
;--------------------------------------------------------
; Category 7 Function 5B Set DOS mode pointer draw address
;--------------------------------------------------------
;
;
;
IOMSETREALDRAWADDRESS PROC NEAR
RET
IOMSETREALDRAWADDRESS ENDP
|
; A062783: a(n) = 3*n*(4*n-1).
; 0,9,42,99,180,285,414,567,744,945,1170,1419,1692,1989,2310,2655,3024,3417,3834,4275,4740,5229,5742,6279,6840,7425,8034,8667,9324,10005,10710,11439,12192,12969,13770,14595,15444,16317,17214,18135,19080
mov $1,$0
mul $0,12
sub $0,3
mul $1,$0
|
; Sprinter fcntl library
;
; $Id: rename.asm,v 1.3 2015/01/19 01:32:43 pauloscustodio Exp $
;
PUBLIC rename
;int rename(char *s1,char *s2)
;on stack:
;return address,s2,s1
;s1=orig filename, s2=dest filename
.rename
pop bc
pop de ;dest filename
pop hl ... |
Route18GateScript:
ld hl, wd732
res 5, [hl]
call EnableAutoTextBoxDrawing
ld a, [wRoute18GateCurScript]
ld hl, Route18GateScriptPointers
jp JumpTable
Route18GateScriptPointers:
dw Route18GateScript0
dw Route18GateScript1
dw Route18GateScript2
dw Route18GateScript3
Route18GateScript0:
call Route16GateScript... |
/*=============================================================================
Copyright (c) 2001-2006 Joel de Guzman
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)
===================================... |
; A047327: Numbers that are congruent to {3, 5, 6} mod 7.
; 3,5,6,10,12,13,17,19,20,24,26,27,31,33,34,38,40,41,45,47,48,52,54,55,59,61,62,66,68,69,73,75,76,80,82,83,87,89,90,94,96,97,101,103,104,108,110,111,115,117,118,122,124,125,129,131,132,136,138,139,143
mov $2,$0
add $0,1
mov $1,$2
lpb $0
add $0,2
add $1,$0
... |
global _start
section .text
_start:
; int open(const char *pathname, int flags): syscall 0x5
; fd = open("/etc//passwd", O_WRONLY | O_APPEND)
xor ecx, ecx ; ecx = 0
push ecx ; string null-termintator
mov eax, 0x64777373
push eax ; "sswd" reversed
xor eax, 0x... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers
//
// This file is part of DCRS.
//
// DCRS is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the Licen... |
; asmsyntax=nasm
bits 16
org 0x7c00
%define STAGE2_ADDR 0x7e00
section .text
jmp 0x0:_start
BIOSParameterBlock:
dw 0x000B ; BytesPerSector
db 0x000D ; SectorsPerCluster
dw 0x000E ; ReservedSectors
db 0x0010 ; FatCopies
dw 0x0011 ; RootDirEntries
dw 0x0013 ; NumSectors
db 0x0015 ; MediaType
dw 0x001... |
SFX_Cry14_3_Ch1:
dutycycle 240
unknownsfx0x20 8, 228, 144, 7
unknownsfx0x20 15, 245, 192, 7
unknownsfx0x20 8, 209, 216, 7
endchannel
SFX_Cry14_3_Ch2:
dutycycle 165
unknownsfx0x20 10, 196, 113, 7
unknownsfx0x20 15, 182, 162, 7
unknownsfx0x20 8, 161, 183, 7
endchannel
SFX_Cry14_3_Ch3:
unknownnoise0x20 8, 2... |
#ifndef DRK_ENGINE_EVAL_HPP
#define DRK_ENGINE_EVAL_HPP
#include "Core.hpp"
#include "Chess/ChessPrimitives.hpp"
#include <vector>
namespace Drk::Eval
{
// Parameters for configuring Eval (Eval accepts in constructor)
struct EvalParams
{
const int LEVEL;
EvalParams(int level)
... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2016 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... |
/******************************************************************************
* $Id: ogrgmtdatasource.cpp 10645 2007-01-18 02:22:39Z warmerdam $
*
* Project: OpenGIS Simple Features Reference Implementation
* Purpose: Implements OGRGmtDataSource class.
* Author: Frank Warmerdam, warmerdam@pobox.com
*
*****... |
<%
from pwnlib.shellcraft import thumb, pretty
from pwnlib.constants import Constant
from pwnlib.abi import freebsd_arm_syscall as abi
from six import text_type
%>
<%page args="syscall = None, arg0 = None, arg1 = None, arg2 = None, arg3 = None, arg4 = None, arg5 = None"/>
<%docstring>
Args: [syscall_number, \*a... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x68c7, %rbx
nop
nop
xor %r11, %r11
movb (%rbx), %r8b
nop
cmp $9951, %r8
lea addresses_normal_ht+0x549b, %rsi
lea addresses_UC_ht+0x8e9b, %rdi
nop
nop
nop
nop
nop
xor $35321, %rax
mov $1... |
; A053987: Numerators of successive convergents to tan(1/2) using continued fraction 1/(2-1/(6-1/(10-1/(14-1/(18-1/(22-1/(26-1/30-...))))))).
; Submitted by Jon Maiga
; 1,6,59,820,14701,322602,8372951,250865928,8521068601,323549740910,13580568049619,624382580541564,31205548459028581,1684475234207001810,9766835803554707... |
; A160941: a(n)= n - digital sum(n-1)
; 1,1,1,1,1,1,1,1,1,1,10,10,10,10,10,10,10,10,10,10,19,19,19,19,19,19,19,19,19,19,28,28,28,28,28,28,28,28,28,28,37,37,37,37,37,37,37,37,37,37,46,46,46,46,46,46,46,46,46,46,55,55,55,55,55,55,55,55,55,55,64,64,64
div $0,10
mul $0,9
add $0,1
|
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 91
call lwaitly_b
xor a, a
ldff(40), a
ld hl, fea0
lbegin_fill_oam:
dec l
ld(hl), a
jrnz lbegin_fill_oam
ld hl, fe08
ld d, 10
ld a, d
ld(hl), a
inc l
ld a, 08
ld(hl), a
ld a, 97
ldff(4... |
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
; ==++==
;
;
; ==--==
;
; *** NOTE: If you make changes to this file, propagate the changes to
; gmsasm.s in this directory
.586
.model flat
include asmconstants.inc... |
#include "core.h"
#include "wbactionuisetwidgetimage.h"
#include "configmanager.h"
#include "wbeventmanager.h"
WBActionUISetWidgetImage::WBActionUISetWidgetImage()
: m_ScreenName()
, m_WidgetName()
, m_Image()
, m_ImagePE()
{
}
WBActionUISetWidgetImage::~WBActionUISetWidgetImage()
{
}
/*virtual*/ vo... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x9191, %rbp
inc %rax
movl $0x61626364, (%rbp)
add %rcx, %rcx
lea addresses_UC_ht+0x12df1, %r14
nop
nop
nop
nop
sub %r12, %r12
movw $0x6162, (%r14)
nop
nop
nop
nop
and $419... |
#include "test.h"
#include <boost/property_tree/ptree.hpp>
#include <iostream>
#include <stdexcept>
#include "baldr/rapidjson_utils.h"
#include "midgard/distanceapproximator.h"
#include "midgard/encoded.h"
#include "midgard/logging.h"
#include "midgard/util.h"
#include "tyr/actor.h"
#if !defined(VALHALLA_SOURCE_DIR)... |
;*****************************************************************
;* - Description: Device definition file for RC Calibration
;* - File: t26.asm
;* - AppNote: AVR053 - Production calibration of the
;* RC oscillator
;*
;* - Author: Atmel Corporation: http://www.atmel.com
;* ... |
// Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Nazara Engine - OpenGL Renderer"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/OpenGLRenderer/OpenGLFramebuffer.hpp>
#include <Nazara/OpenGLRenderer/Debug.hpp>
namespace Nz
{
}
|
; rename file name in directory
rename jsr alldrs ; set both drive #'s
lda fildrv+1
and #1
sta fildrv+1
cmp fildrv
beq rn10 ; same drive #'s
ora #$80 ; check both drives for name
rn10 sta fildrv
jsr lookup ; look up both names
... |
; A123231: Row sums of A123230.
; 1,2,1,3,2,5,3,8,5,13,8,21,13,34,21,55,34,89,55,144,89,233,144,377,233,610,377,987,610,1597,987,2584,1597,4181,2584,6765,4181,10946,6765,17711,10946,28657,17711,46368,28657,75025,46368,121393,75025,196418,121393,317811,196418,514229,317811,832040,514229,1346269,832040,2178309,1346269,35... |
## Camera mask fullscreen
# Mask camera feed and blit to custom 1-bit-per-pixel buffer in fullscreen mode using VPM writes and TMU reads
# Currently set up to a simple threshold of 0.5 (maskCO register constant)
# More complex programs with neighbour pixel access would be a pain to implement, easier in tiled mode once ... |
;**********************************************************************
;*
;* MK Worm
;*
;* Compile with MASM 4.0
;*
;**********************************************************************
cseg segment
assume cs:cseg,ds:cseg,es:cseg
.radix 16
org 0100
... |
;------------------------------------------------------------------------------ ;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; CpuPause.Asm
;
; Abstract:
;
; CpuPause function
;
; Notes:
;
;-------------------------------------... |
; A029898: Pitoun's sequence: a(n+1) is digital root of a(0) + ... + a(n).
; 1,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2,4,8,7,5,1,2
mov $1,1
mov $2,$0
lpb $2
lpb ... |
// Fig. 11.21: Complex.cpp
// Complex class member-function definitions.
#include <iostream>
#include "Complex.h" // Complex class definition
using namespace std;
//Constructor
Complex::Complex( double realPart, double imaginaryPart )
: real( realPart ), imaginary( imaginaryPart )
{
// empty body
}
//... |
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#include <ai/aigoals.h>
#include <asteroid/asteroid.h>
#include <cfile/cfi... |
org 0x100
mov ax, cs
mov es, ax
mov ds, ax
mov ss, ax ; 设置堆栈指针
mov sp, 100h - 8
; 环境设置
mov ah, 0x01
mov cx, 0x2000
int 0x10 ; 利用10号中断停止光标闪烁
mov ax, 0x0305
mov bx, 0x031F
int 0x16 ; 增加重复键入延迟
call game_loop
game_loop:
call cls ; 清屏
push word [snake_pos] ; 讲蛇头位置压栈保存
mov ah, 0x01 ; 调用功能号为01的16中断判断是否有按键信号
... |
; A054628: Number of n-bead necklaces with 9 colors.
; Submitted by Jon Maiga
; 1,9,45,249,1665,11817,88725,683289,5381685,43046889,348684381,2852823609,23535840225,195528140649,1634056945605,13726075481049,115813764494505,981010688215689,8338590871415805,71097458824894329,607883273127192897
lpb $0
mov $2,$0
seq $... |
/*
* Copyright (c) 2014, Peter Thorson. 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 cond... |
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
class Solution
{
public:
vector<string> maxNumOfSubstrings(string s)
{
vector<int> left(26), right(26);
int N = s.length();
for (int i = 0; i < N; ++i)
right[s[i] - 'a'] = i;
for (int i = N - 1; i >= 0; --i)
left[s[i] - 'a'] ... |
; A014642: Even octagonal numbers: a(n) = 4*n*(3*n-1).
; 0,8,40,96,176,280,408,560,736,936,1160,1408,1680,1976,2296,2640,3008,3400,3816,4256,4720,5208,5720,6256,6816,7400,8008,8640,9296,9976,10680,11408,12160,12936,13736,14560,15408,16280,17176,18096,19040,20008,21000,22016,23056,24120,25208,26320,27456,28616,29800,310... |
;------------------------------------------------------------------------------
;
; 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... |
SECTION code_clib
PUBLIC pointxy
EXTERN pointxy_MODE0
EXTERN pointxy_MODE1
EXTERN __vz200_mode
pointxy:
ld a,(__vz200_mode)
and a
jp z,pointxy_MODE0
jp pointxy_MODE1
|
%include 'config.inc'
jmp entry
nop
%include 'fat12_1_44.inc'
; move to 0x90000
entry:
mov ax, boot_seg
mov ds, ax
mov ax, init_seg
mov es, ax
mov cx, 0x100 ; 256个字 -> 512B
sub si, si ; 置0
sub di, di ; 置0
cld ; 方向标志置1
rep movsw ... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0x000000005c3bc5b0",
"RBX": "0x000000001dd5b1e5",
"RCX": "0x0000000015d1c92d"
}
}
%endif
mov rax, 0x41424344454647
mov rbx, 0x51525354555657
mov rcx, 0x61626364656667
mov rdx, 0x71727374757677
; crc32 rax, rbx
db 0x66 ; Override, Should be ignored
db 0xf2 ; Prefix... |
; void UNSAFE_SMS_VRAMmemcpy64(unsigned int dst,void *src)
SECTION code_clib
SECTION code_SMSlib
PUBLIC _UNSAFE_SMS_VRAMmemcpy64
EXTERN asm_SMSlib_UNSAFE_VRAMmemcpy64
_UNSAFE_SMS_UNSAFE_VRAMmemcpy64:
pop af
pop hl
pop de
push de
push hl
push af
jp asm_SMSlib_UNSAFE_VRAMmemcpy64
|
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2010 Greenplum, Inc.
//
// @filename:
// CParseHandlerHashJoin.cpp
//
// @doc:
// Implementation of the SAX parse handler class for parsing hash join operators.
//--------------------------------------... |
;===============================================================================
; Copyright 2015-2020 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://www.apa... |
/******************************************************************************
* Copyright 2018 The Apollo 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
... |
; A101101: a(1)=1, a(2)=5, and a(n)=6 for n>=3.
; 1,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6
mul $0,4
mov $1,$0
trn $0,5
sub $1,$0
add $1,1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.