text stringlengths 1 1.05M |
|---|
///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2017 - 2018.
// 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)
//
// chapter03_17-003_user_def... |
;doar se compileaza si link-editeaza si doar se discuta pe slide-uri
;mai apoi se transforma in segmente cu nume dupa care se depaneaza
;ACEST PROGRAM SE DEPANEAZA SI ESTE TRANSFORMAT DIN CEL ANTERIOR
.model large ; diferenta intre model small si large
MyData SEGMENT
n dw 4
vector dw 23,16,35,12
suma dw ?... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 17.00.50727.1
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC ?kern_acpi@@3PEAU_aurora_acpi_@@EA ; kern_acpi
_BSS SEGMENT
?kern_acpi@@3PEAU_aurora_acpi_@@EA DQ 01H DUP (?) ; kern_acpi
_BSS ENDS
CONST SEGMENT
$SG3270 DB '[ACPI]: data ... |
#pragma once
#include <memory>
#include <type_traits>
#include "invoke.h"
#include "small_unique_function.hpp"
#include "unique_function.h"
namespace portable_concurrency {
inline namespace cxx14_v1 {
template <typename R, typename... A>
unique_function<R(A...)>::unique_function() noexcept = default;
template <typ... |
%ifdef CONFIG
{
"RegData": {
"R15": "0x2"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
%macro cfmerge 0
; Get CF
sbb r14, r14
and r14, 1
; Merge in to results
shl r15, 1
or r15, r14
%endmacro
mov rdx, 0xe0000000
mov rax, 0x0000000100000000
mov [rdx + 8 * 0], rax
xor r15, r15 ; Will cont... |
; A011797: a(n) = floor(C(n,6)/7).
; 0,0,0,0,0,0,0,1,4,12,30,66,132,245,429,715,1144,1768,2652,3876,5537,7752,10659,14421,19228,25300,32890,42287,53820,67860,84825,105183,129456,158224,192129,231880,278256
bin $0,6
div $0,7
mov $1,$0
|
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x13f2b, %rax
nop
nop
dec %r9
mov (%rax), %rcx
and %r8, %r8
lea addresses_D_ht+0x1295b, %rsi
lea addresses_D_ht+0xacc7, %rdi
clflush (%rsi)
nop
cmp %rbp, %rbp
mov $51, %rcx
rep ... |
//----------------------------------*-C++-*----------------------------------//
/*!
* \file norms/Index_Labeled.hh
* \author Rob Lowrie
* \date Fri Jan 14 13:57:58 2005
* \brief Header for Index_Labeled.
* \note Copyright (C) 2016-2019 Triad National Security, LLC.
* All rights reserved.
*/
//----... |
; A331418: If A331417(n) is the maximum sum of primes of the parts of an integer partition of n, then a(n) = A331417(n) - n + 1.
; 1,2,3,4,5,7,8,11,12,15,20,21,26,29,30,33,38,43,44,49,52,53,58,61,66,73,76,77,80,81,84,97,100,105,106,115,116,121,126,129,134,139,140,149,150,153,154,165,176,179,180,183,188,189,198,203,208,... |
Name: zel_main1.asm
Type: file
Size: 45771
Last-Modified: '2016-05-13T04:23:03Z'
SHA-1: 438CD96800DAF766E71B069D36BBD0D0E1104306
Description: null
|
; A072130: a(n+1) -3*a(n) + a(n-1) = (2/3)*(1+w^(n+1)+w^(2*n+2)); a(1) = 0, a(2) = 1; where w is the cubic root of unity.
; 0,1,5,14,37,99,260,681,1785,4674,12237,32039,83880,219601,574925,1505174,3940597,10316619,27009260,70711161,185124225,484661514,1268860317,3321919439,8696898000,22768774561,59609425685,15605950249... |
/*
* Copyright 2011 Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*/
#include "sharingclientqmlobj.h"
#include <sharingclientservice.h>
#include <sharin... |
section .realmode
global rm_hcf
rm_hcf:
; Jump to real mode
jmp 0x08:.bits16
.bits16:
bits 16
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
mov eax, cr0
btr ax, 0
mov cr0, eax
jmp 0x00:.cszero
.cszero:
xor ax, ax
mov ds, ax
mov e... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="fd, file, mode, flag"/>
<%docstring>
Invokes the syscall fchmodat. See 'man 2 fchmodat' for more information.
Arguments:
fd(int): fd
file(char): file
mode(mode_t): mode
flag(int): flag
</%docstring>
${syscall('SYS_fchmodat',... |
//
// Copyright (C) 2010 Helene Lageber
//
// This program 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 2
// of the License, or (at your option) any later version.
//
// This program... |
/*Create a function to return the maximum of two numbers by reference*/
#include<iostream.h>
#include<conio.h>
int& return_by_reference(int&,int&);
void main()
{
int x,y;
clrscr();
cout<<"Enter two numbers : ";
cin>>x>>y;
int& z=return_by_reference(x,y);
//chair and table are passed by refere... |
; $Id: bit_close_ei.asm,v 1.3 2015/01/19 01:32:44 pauloscustodio Exp $
;
; Galaksija 1 bit sound functions
;
; Close sound and restore interrupts
;
; Stefano Bodrato
;
PUBLIC bit_close_ei
EXTERN bit_irqstatus
.bit_close_ei
push hl
ld hl,(bit_irqstatus)
ex (sp),hl
pop af
ret po
ei
ret
|
/*=========================================================================
*
* 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... |
dnl mpn_mod_1_2
dnl Copyright 2009 Jason Moxham
dnl This file is part of the MPIR Library.
dnl The MPIR Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by the Free Software Foundation; either version 2.1 of the Lic... |
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#ifndef COH_ASSOCIATIVE_ARRAY_HPP
#define COH_ASSOCIATIVE_ARRAY_HPP
#include "coherence/lang/compatibility.hpp"
#include "coherence/lang/Obje... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright noti... |
; VirusName : Human Greed
; Origin : Sweden
; Author : The Unforgiven
; Date : 20/12/93
;
; This is a "mutation" of the Infernal Demand virus, written by Metal
; Militia. Even if it's high modified, its ground is still the same.
; This is yet another of this simple overwriting virus, and it's
; nothing re... |
// ----------------------------------------------------------------------------
// tropter: test_derivatives.cpp
// ----------------------------------------------------------------------------
// Copyright (c) 2017 tropter authors
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may
// not use ... |
//
// client.cpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/asio.hpp>
#include <boost/lambd... |
// Copyright 2010 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 "base/strings/string_number_conversions.h"
#include <ctype.h>
#include <stdint.h>
#include <limits>
namespace base {
namespace {
template<ty... |
; A145126: a(n) = 1 + (6 + (11 + (6 + n)*n)*n)*n/24.
; 1,2,6,16,36,71,127,211,331,496,716,1002,1366,1821,2381,3061,3877,4846,5986,7316,8856,10627,12651,14951,17551,20476,23752,27406,31466,35961,40921,46377,52361,58906,66046,73816,82252,91391,101271,111931,123411,135752,148996,163186,178366,194581,211877,230301,249901,2... |
/* This is an assembly language implementation of mulsi3, divsi3, and modsi3
for the sparc processor.
These routines are derived from the Sparc Architecture Manual, version 8,
slightly edited to match the desired calling convention, and also to
optimize them for our purposes. */
#ifdef L_mulsi3
.text
.a... |
// Copyright (c) 2012-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 "clientversion.h"
#include "tinyformat.h"
#include <string>
/**
* Name of client reported in the 'version' message. R... |
#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/Vector4.hpp>
#include <RED4ext/Types/generated/anim/AnimNode_Base.hpp>
#include <RED4ext/Types/generated/anim/PoseLink.hpp>
#include ... |
; Tail of a PSO file (only has the end_disk definition)
section .data
global __pso_end_disk
__pso_end_disk:
|
; A037636: Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,3.
; Submitted by Christian Krause
; 2,17,139,1114,8913,71307,570458,4563665,36509323,292074586,2336596689,18692773515,149542188122,1196337504977,9570700039819,76565600318554,612524802548433,4900198420387467
mov ... |
/*
* init_vdp.asm
* Written for use with GNU AS
*
* Copyright © 2020 Ben Sampson <github.com/billyrayvalentine>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for mo... |
; https://adventofcode.com/2020/day/17 (part 1)
OPT listoff : DEVICE ZXSPECTRUMNEXT : MMU 0 7, 0, $0000
inputFile: ; load the input.txt into virtual device memory for processing
; INCBIN "input_t.txt"
INCBIN "input.txt"
inputEnd:
DS 128,0 : ALIGN 256,0 ; zeroed padding after + align address
cubes: ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1b49, %rsi
lea addresses_normal_ht+0x1a7ba, %rdi
nop
nop
nop
and $10719, %rbp
mov $100, %rcx
rep movsb
nop
nop
sub %r10, %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r10
ret
.global s_faulty_load
s_... |
;CodeVisionAVR C Compiler V3.46a Evaluation
;(C) Copyright 1998-2021 Pavel Haiduc, HP InfoTech S.R.L.
;http://www.hpinfotech.ro
;Build configuration : Debug
;Chip type : ATmega8535
;Program type : Application
;Clock frequency : 1.000000 MHz
;Memory model : Small
;O... |
; A342362: Expansion of the o.g.f. (1 + 8*x + 10*x^2 + 8*x^3 + x^4)/((1 - x)^4*(1 + x)^2).
; 1,10,31,76,145,254,399,600,849,1170,1551,2020,2561,3206,3935,4784,5729,6810,7999,9340,10801,12430,14191,16136,18225,20514,22959,25620,28449,31510,34751,38240,41921,45866,50015,54444,59089,64030,69199,74680,80401,86450,92751,993... |
bits 32
push dword 0x11111111
push dword 0x22222222
push dword 0x33333333
push dword 0x44444444
push dword 0x55555555
push dword 0x66666666
push dword 0x77777777
popad
|
;;
;; Copyright (c) 2012-2021, 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... |
; A314827: Coordination sequence Gal.5.53.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,14,18,22,26,30,35,39,44,49,53,58,62,66,70,74,79,83,88,93,97,102,106,110,114,118,123,127,132,137,141,146,150,154,158,162,167,171,176,181... |
// Copyright 2020-2021 CesiumGS, Inc. and Contributors
#include "CesiumRasterOverlay.h"
#include "Cesium3DTilesSelection/Tileset.h"
#include "Cesium3DTileset.h"
// Sets default values for this component's properties
UCesiumRasterOverlay::UCesiumRasterOverlay() {
this->bAutoActivate = true;
// Set this component ... |
-- HUMAN RESOURCE MACHINE PROGRAM --
a:
INBOX
JUMPN b
INBOX
JUMPN c
JUMP e
b:
INBOX
JUMPN d
c:
COPYFROM 5
JUMP f
d:
e:
COPYFROM 4
f:
OUTBOX
JUMP a
|
#include "renderBuffer.h"
#include "renderParam.h"
#include "rprApi.h"
#include "pxr/imaging/hd/sceneDelegate.h"
PXR_NAMESPACE_OPEN_SCOPE
HdRprRenderBuffer::HdRprRenderBuffer(SdfPath const& id)
: HdRenderBuffer(id)
, m_numMappers(0)
, m_isConverged(false) {
}
void HdRprRenderBuffer::Sync(HdSceneDelegat... |
#include <bits/stdc++.h>
using namespace std;
int cei(int a, int b) {
if(a % b == 0) return a / b;
return (a / b) + 1;
}
int main() {
int n, x; cin >> n;
if(sqrt(n) * sqrt(n) == n) {
x = sqrt(n);
} else {
x = sqrt(n) + 1;
}
cout << cei(n, x) + x << endl;
return 0;
}
|
#pragma once
#include <systemd/sd-bus.h>
#include <map>
#include <sdbusplus/sdbus.hpp>
#include <sdbusplus/server.hpp>
#include <string>
#include <tuple>
#include <variant>
namespace sdbusplus
{
namespace xyz
{
namespace openbmc_project
{
namespace Channel
{
namespace server
{
class ChannelAccess
{
public:
/* ... |
; A056738: Positions where 2's occur in A056731.
; 1,4,8,13,20,28,37,47,59,72,86,101,117,135,154,174,195,217,240,264,290,317,345,374,404,435,467,500,535,571,608,646,685,725,766,808,851,896,942,989,1037,1086,1136,1187,1239,1292,1346,1402,1459,1517,1576,1636
mov $21,$0
mov $23,$0
add $23,1
lpb $23,1
clr $0,21
mov $0... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: HMUI.ViewContr... |
; A138134: a(n) = Sum_{i=0..n} Fibonacci(5*i).
; 0,5,60,670,7435,82460,914500,10141965,112476120,1247379290,13833648315,153417510760,1701426266680,18869106444245,209261597153380,2320746675131430,25737475023599115,285432971934721700,3165500166305537820
mul $0,5
mov $1,4
mov $2,5
lpb $0
sub $0,2
add $1,$2
add $2,$... |
#include "FrameRateManager.h"
#include "../Constants.h"
#include "GameState.h"
#include <stdio.h>
#include <windows.h>
#include <iostream>
#include <detours.h>
#pragma comment(lib, "detours.lib")
#ifdef CURRENT_GAME_SUB_STATE_ADDRESS
namespace MLAC::Components
{
FrameRateManager::FrameRateManager()
{
}
FrameRate... |
; A037584: Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 3,1.
; 3,16,83,416,2083,10416,52083,260416,1302083,6510416,32552083,162760416,813802083,4069010416,20345052083,101725260416,508626302083,2543131510416,12715657552083,63578287760416,317891438802083
mov $1,5
pow $1,$0
... |
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; hdboot.asm
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Forrest Yu, 2008
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++... |
//
// FILE NAME: CIDLib_RefQueue.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 02/21/2000
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensourc... |
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC zx_01_output_char_64_oterm_msg_scroll
EXTERN asm_zx_scroll_wc_up_noexx
EXTERN zx_01_output_char_64_proc_stack_window_32
zx_01_output_char_64_oterm_msg_scroll:
; enter : c = number of rows to scroll
; can use: af, bc, de, hl
;
; Sc... |
TITLE DEFCLASS - Copyright (c) 1994 by SLR Systems
INCLUDE MACROS
INCLUDE CLASSES
INCLUDE SEGMENTS
INCLUDE IO_STRUC
PUBLIC DEFINE_CLASS
.DATA
EXTERNDEF SEG_COMBINE:BYTE,CLASS_TYPE:BYTE,CLASS_PLTYPE:BYTE,DEBUG_TYPES_SELECTED:BYTE
EXTERNDEF FIRST_CLASS_GINDEX:DWORD,LAST_CLASS_GINDEX:DWORD,CLASS_SE... |
; A221876: T(n,k) is the number of order-preserving full contraction mappings (of an n-chain) with exactly k fixed points.
; Submitted by Jon Maiga
; 1,2,1,5,2,1,12,5,2,1,28,12,5,2,1,64,28,12,5,2,1,144,64,28,12,5,2,1,320,144,64,28,12,5,2,1,704,320,144,64,28,12,5,2,1,1536,704,320,144,64,28,12,5,2,1,3328,1536,704,320,144... |
;******************************************************************************
;
; (c) 2007 by BECK IPC GmbH
; http://www.beck-ipc.com
;
;******************************************************************************
;
; Module: tcpA5dyn.asm
; Function: Dynamic linking of TCPI/IP API Function Dev_Get_Buffer()
;
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x2edc, %r9
clflush (%r9)
nop
nop
nop
inc %r11
movb $0x61, (%r9)
nop
nop
nop
nop
and $9589, %r14
lea addresses_A_ht+0x145cc, %r13
nop
nop
nop
nop
and %r9, %r9
mov $0x6... |
#initial
lui $1,0x2819
ori $1,$1,0x9384
lui $2,0x7cfd
ori $2,$2,0x5738
lui $3,0x883c
ori $3,$3,0x8847
lui $4,0x9382
ori $4,$4,0xacfe
sw $1,0($0)
sw $2,4($0)
sw $3,8($0)
sw $4,12($0)
#lh
jal l4
lh $1,-0x3038($31)
lh $2,-0x3036($31)
lh $3,-0x3034($31)
l4:
jal l5
ori $1,$0,29
addi $1,$1,1
l5:
lh $4,-0x3042($31)
lh $5,-0x3... |
; Moises Campos Zepeda
; 02-10-2020
; IE0623: Microprocesadores
; Tarea 5: Pantallas
#include registers.inc
; *****************************************************************************
; Data Structures
; *****************************************************************************
CR: ... |
; A109175: Minimum number of moves to solve the first Panex puzzle of order n of transferring a side tower to the center column.
; Submitted by Christian Krause
; 1,3,9,24,58,143,345,836,2018,4875,11769,28416,68602,165623,399849,965324,2330498,5626323,13583145,32792616,79168378,191129375,461427129,1113983636,2689394402... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld a, ff
ldff(45), a
ld b, 42
call lwaitly_b
ld a, 40
ldff(41), a
ld a, 02
ldff(ff), a
xor a, a
ldff(0f), a
ei
ld a, b
inc a
inc a
ldff(45), a
ld c, 0f
.text@1000
lstatint:
ld a, 08
ldff(41), a
xor a, a
.text@... |
#pragma once
#include <async/result.hpp>
#include <helix/ipc.hpp>
#include <vector>
enum class BindType {
null,
offset,
memoryView,
bitsetEvent
};
async::result<void> connectKernletCompiler();
async::result<helix::UniqueDescriptor> compile(void *code, size_t size,
std::vector<BindType> bind_types);
|
ldy #0
lda #<{c1}
sta ({z1}),y
iny
lda #>{c1}
sta ({z1}),y |
; A228261: Number of third differences of arrays of length 5 of numbers in 0..n.
; 31,143,319,565,881,1267,1723,2249,2845,3511,4247,5053,5929,6875,7891,8977,10133,11359,12655,14021,15457,16963,18539,20185,21901,23687,25543,27469,29465,31531,33667,35873,38149,40495,42911,45397,47953,50579,53275,56041,58877,61783,64759,6... |
; ---------------------------------------------------------------------------
; Sprite mappings - walls (GHZ)
; ---------------------------------------------------------------------------
dc.w byte_E256-Map_obj44
dc.w byte_E26B-Map_obj44
dc.w byte_E280-Map_obj44
byte_E256: dc.b 4
dc.b $E0, 5, 0, 4, $F8
... |
.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++), ... |
; A171495: a(n) = 3*a(n-1)+4 for n > 0; a(0) = 6.
; 6,22,70,214,646,1942,5830,17494,52486,157462,472390,1417174,4251526,12754582,38263750,114791254,344373766,1033121302,3099363910,9298091734,27894275206,83682825622,251048476870,753145430614,2259436291846
mov $1,3
pow $1,$0
mul $1,8
sub $1,2
mov $0,$1
|
#pragma once
#include <files/File.hpp>
#include <cstdint>
#include <string>
namespace files
{
namespace miles
{
/// <summary>
/// AIL XMIDI Driver Interface File parsing
/// ported from XMIDI.ASM (YAMAHA.INC)
/// </summary>
/// TODO: this is working for only YAMAHAINC f... |
; A076736: Let u(1) = u(2) = u(3) = 2, u(n) = (1 + u(n-1)*u(n-2))/u(n-3); then a(n) is the denominator of u(n).
; Submitted by Jon Maiga
; 1,1,1,2,1,4,2,8,4,16,8,32,16,64,32,128,64,256,128,512,256,1024,512,2048,1024,4096,2048,8192,4096,16384,8192,32768,16384,65536,32768,131072,65536,262144,131072,524288,262144,1048576,... |
; A218986: Power floor sequence of 2+sqrt(7).
; 4,18,83,385,1788,8306,38587,179265,832820,3869074,17974755,83506241,387949228,1802315634,8373110219,38899387777,180716881764,839565690386,3900413406835,18120350698497,84182643014492,391091624153458,1816914425657307,8440932575089601,39214473577330324,182180692034590098,846... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1d260, %rsi
lea addresses_normal_ht+0x17672, %rdi
nop
and %r15, %r15
mov $55, %rcx
rep movsw
xor $62367, %rsi
lea addresses_D_ht+0x16bd2, %r11
nop
nop
nop
nop
nop
xor $35095... |
;;
;; Upcaste Performance Libraries
;; Copyright (C) 2012-2013 Jesse W. Towner
;;
;; 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 limitatio... |
; A016002: a(n) = (tau(n^7)+6)/7.
; Submitted by Jon Maiga
; 1,2,2,3,2,10,2,4,3,10,2,18,2,10,10,5,2,18,2,18,10,10,2,26,3,10,4,18,2,74,2,6,10,10,10,33,2,10,10,26,2,74,2,18,18,10,2,34,3,18,10,18,2,26,10,26,10,10,2,138,2,10,18,7,10,74,2,18,10,74,2,48,2,10,18,18,10,74,2,34,5,10,2,138,10,10,10,26,2,138,10,18,10,10,10,42,2,1... |
//===-- MCJIT.cpp - MC-based Just-in-Time Compiler ------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1deb7, %rsi
lea addresses_WC_ht+0x19f48, %rdi
nop
add $27545, %r10
mov $90, %rcx
rep movsl
nop
nop
nop
nop
sub $25693, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r10
ret
.global s_faulty_load
s_f... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x7878, %r9
lfence
mov $0x6162636465666768, %r11
movq %r11, (%r9)
nop
and %rsi, %rsi
lea addresses_A_ht+0x148b8, %r12
nop
nop
nop
nop
sub $39953, %rdx
movups (%r12), %xmm5
vpext... |
; A170938: 4^n+2^n+2.
; 4,8,22,74,274,1058,4162,16514,65794,262658,1049602,4196354,16781314,67117058,268451842,1073774594,4295032834,17180000258,68719738882,274878431234,1099512676354,4398048608258,17592190238722,70368752566274,281474993487874,1125899940397058
mov $2,2
pow $2,$0
mov $0,$2
mul $0,$2
add $0,$2
mov $1,$0... |
;========================================================
COMMENT #
NEWINT13.ASM
Copyright (c) 1991 - Microsoft Corp.
All rights reserved.
Microsoft Confidential
=================================================
New interrupt 13h handler and support functions
which check for DMA boundary errors and if detecte... |
org 24000
start_load:
ld ix, loader_table_ianna
ld b, (ix+0) ; b==iteratons
inc ix
load_loop:
push bc
ld a, (ix+0) ; ROM page
call IF2_SetROM ; Set ROM page
ld a, (ix+7) ; RAM page
call setrambank ; set RAM page
ld l, (ix+1)
ld h, (ix+2) ; HL = source (offset in page)
ld c, (ix+3)
ld b, (ix+4) ;... |
; A096773: a(n+2) = 4*a(n) + 1; a(1) = 0, a(2) = 3.
; 0,3,1,13,5,53,21,213,85,853,341,3413,1365,13653,5461,54613,21845,218453,87381,873813,349525,3495253,1398101,13981013,5592405,55924053,22369621,223696213,89478485,894784853,357913941,3579139413,1431655765
mov $2,$0
mod $0,2
mul $2,2
add $2,3
mov $3,$0
mov $0,$2
add ... |
; external functions from X11 library
extern XOpenDisplay
extern XDisplayName
extern XCloseDisplay
extern XCreateSimpleWindow
extern XMapWindow
extern XRootWindow
extern XSelectInput
extern XFlush
extern XCreateGC
extern XSetForeground
extern XDrawLine
extern XNextEvent
; external functions from stdio library (ld-linu... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x127f2, %rsi
lea addresses_D_ht+0x187a2, %rdi
clflush (%rsi)
nop
nop
nop
nop
and $15276, %r9
mov $110, %rcx
rep movsq
nop
nop
nop
nop
nop
sub %rbp, %rbp
lea addresses_UC_h... |
#To be inserted at 80190a18
##################################
##FPSHack_TEST_GetTimePass_LowHz##
##################################
lis r17, 0x817F
lwz r17, 0x0000 (r17) #Load LowHzUpdate
cmpwi r17, 0
li r3, 0 #Load 0 by default
beq- 0x0008
lbz r3, -0x765C (r13) #Vanilla
nop |
; A024057: a(n) = 5^n - n^8.
; 1,4,-231,-6436,-64911,-387500,-1663991,-5686676,-16386591,-41093596,-90234375,-165530756,-185841071,404972404,4627726569,27954687500,148292923329,755963695684,3803677305049,19056502765084,95341831640625,476799335343764,2384130915142089,11920850644092844,59604534700076449,29802307128906250... |
;Notes:
mov ah, 0x0e ;tty mode for video services
mov al, 'H'
int 0x10
mov al, 'e'
int 0x10
mov al, 'l'
int 0x10
mov al, 'l'
int 0x10
mov al, 'o'
int 0x10
jmp $;
times 510 - ($-$$) db 0
dw 0xaa55 |
; A135854: a(n) = (n+1)*(2^n+1) for n > 0 with a(0)=1.
; Submitted by Jamie Morken(s2)
; 1,6,15,36,85,198,455,1032,2313,5130,11275,24588,53261,114702,245775,524304,1114129,2359314,4980755,10485780,22020117,46137366,96469015,201326616,419430425,872415258,1811939355,3758096412,7784628253,16106127390,33285996575,687194767... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#include "stdafx.h"
#include "DeckLinkManager.h"
#if USE_DECKLINK
DeckLinkManager::DeckLinkManager(bool useCPU, bool passthroughOutput)
{
_useCPU = us... |
; Source name : CHARSIN.ASM
; Executable name : CHARSIN
; Version : 2.0
; Created date : 11/21/1999
; Last update : 5/28/2009
; Author : Jeff Duntemann
; Description : A character input demo for Linux, using NASM 2.05,
; incorporating calls to both fgets() and scanf().
;
; Build ... |
; A very simple example of
; self-modifying code
; and code entry points
lda $fe
sta $1001
jmp $1000
*=$1000
lda #$00
sta $3ef
jmp $600
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: GeoDex
MODULE: Misc
FILE: miscTitle.asm
AUTHOR: Andrew Wilson, Dec 3, 1990
ROUTINES:
Name Description
---- -----------
TitledGlyphSpecBuild Intercept ... |
; Top-hole Golf
; Copyright 2020-2021 Matthew Clarke
maths_c_BEGIN = *
; *****************
; *** CONSTANTS ***
; *****************
; Trig tables: tangent, sine and cosine. Angles: [0, 2*PI) in (4*16=)64 steps.
; All values are signed 16-bit. Sine and cosine to be interpreted as fractions
; of 256; tangent as inte... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="file, length"/>
<%docstring>
Invokes the syscall truncate64. See 'man 2 truncate64' for more information.
Arguments:
file(char): file
length(off64_t): length
</%docstring>
${syscall('SYS_truncate64', file, length)}
|
; A326714: a(n) = binomial(n,2) + (2-adic valuation of n).
; Submitted by Jamie Morken(l1)
; 0,2,3,8,10,16,21,31,36,46,55,68,78,92,105,124,136,154,171,192,210,232,253,279,300,326,351,380,406,436,465,501,528,562,595,632,666,704,741,783,820,862,903,948,990,1036,1081,1132,1176,1226,1275,1328,1378
mov $1,$0
add $1,1
mul $... |
INCLUDE "graphics/grafix.inc"
SECTION code_graphics
PUBLIC gety
PUBLIC _gety
EXTERN __gfx_coords
;
; $Id: gety.asm $
;
; ******************************************************************
;
; Get the current X coordinate of the graphics cursor.
;
;
.gety
._gety
ld de,(__gfx_coords)
ld h,0
ld l,e... |
; fat32mbr.asm
;
; Copyright (c) 2012, Riley Barnett
; All rights reserved.
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
; 1. Redistributions of source code must retain the above copyright notice, this
; ... |
; A168480: G.f.: Sum_{n>=0} 2^(n^2)*(1 + 2^n*x)^n*x^n.
; Submitted by Christian Krause
; 1,2,20,640,78080,37847040,74189111296,589682903613440,18955380356036952064,2455824622368881511497728,1278825951842748707166092263424,2671459568763422966186162922297753600
mov $1,2
pow $1,$0
mov $2,1
lpb $0
sub $0,1
mul $2,$1
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xbf1b, %rbx
nop
sub $56773, %r12
mov (%rbx), %r15
nop
nop
and %rbp, %rbp
lea addresses_A_ht+0x1773b, %r11
nop
nop
nop
nop
sub $33870, %r12
movb $0x61, (%r1... |
/***
* Copyright (C) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
*
* =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
*
* HTTP Library: JSON parser
*
* For the lat... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x14254, %rax
clflush (%rax)
nop
nop
cmp %r14, %r14
mov (%rax), %r15w
nop
nop
nop
nop
nop
xor %rbx, %rbx
lea addresses_A_ht+0x1e154, %rsi
lea addresses_WT_ht+0x192d4, %rdi
nop
nop
n... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 30/9/98
;
;
; $Id: xordraw.asm,v 1.3 2017-01-02 21:51:24 aralbrec Exp $
;
SECTION code_clib
PUBLIC xordraw
PUBLIC _xordraw
... |
; A279169: a(n) = floor( 4*n^2/5 ).
; 0,0,3,7,12,20,28,39,51,64,80,96,115,135,156,180,204,231,259,288,320,352,387,423,460,500,540,583,627,672,720,768,819,871,924,980,1036,1095,1155,1216,1280,1344,1411,1479,1548,1620,1692,1767,1843,1920,2000,2080,2163,2247
mul $0,2
pow $0,2
div $0,5
mov $1,$0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.