text stringlengths 1 1.05M |
|---|
MonBaseStats:
db DEX_BULBASAUR ; pokedex id
db 45 ; base hp
db 49 ; base attack
db 49 ; base defense
db 45 ; base speed
db 65 ; base special
db GRASS ; species type 1
db POISON ; species type 2
db 45 ; catch rate
db 64 ; base exp yield
INCBIN "pic/bmon/bulbasaur.pic",0,1 ; 55, sprite dimensions
dw BulbasaurPicFront
dw ... |
; int fgetpos_unlocked(FILE *stream, fpos_t *pos)
SECTION code_stdio
PUBLIC fgetpos_unlocked
EXTERN asm_fgetpos_unlocked
fgetpos_unlocked:
pop af
pop hl
pop ix
push ix
push hl
push af
jp asm_fgetpos_unlocked
|
//////////////////////////////////////////////////////////////////////////////
// rand_test.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
/////////////////////////////////////////////////////////////////////////////
// This program tests the code in the file nv_rand_macs.asm ... |
;,; lyrics_itwillleadus .withinpagefrom=lyrics
;,; <- lyrics
!byte $21,$29,$1d ; IT
!byte $07 ; 'LL
!byte $51,$19,$1d ; (L)EAD ; was 71
!byte $3a,$34 ; US
!byte $59,$1d,$46 ; TO ; was 49
!byte $4a,$46,$40,$89 ; OUR ; was 09
!byte $1b,$2a,$40 ; PRO
!byte $28,$41,$24,$19,$1d ; MISED
!byte $39,$43,$51 ... |
// Copyright(C) 2021 Intel Corporation
// Licensed under the MIT License
#include "dnnl_softmax.h"
#include "dnnl_subgraph.h"
#include "dnnl_subgraph_primitive.h"
namespace onnxruntime {
namespace ort_dnnl {
DnnlSoftmax::DnnlSoftmax() {}
void DnnlSoftmax::CreatePrimitive(DnnlSubgraphPrimitive& sp, DnnlNode& node) ... |
;;*****************************************************************************
;;
;; Get_Value_From_Stack.asm
;;
;; Author: Kaiser Mittenburg, Ben Sokol
;; Organization: KU/EECS/EECS 690
;; Date: 2018-09-11
;; Version: 1.0
;;
;; Purpose: Return the value from the stack given an offset
;;
;; Notes:
;;
;;***... |
; A059734: Carryless 11^n base 10; a(n) is carryless sum of 10*a(n-1) and a(n-1).
; 1,11,121,1331,14641,150051,1650561,17155171,188606881,1964664691,10500200501,115502205511,1260524250621,13865766756831,141412323214141,1555535555355551,16000880008800061,176008680086800671
mov $3,$0
lpb $0
lpb $3
mul $1,10
mo... |
; A349066: a(n) = H(2*n, n), where H(n,x) is n-th Hermite polynomial.
; Submitted by Jon Maiga
; 1,2,76,14136,5324432,3275529760,2982971060928,3773262142004096,6332628384952750336,13620318069121988018688,36536710970888029776972800,119598502032157660592768038912,469232422933986002753883881312256,217374796247793616804289... |
;;
;; Copyright (c) 2012-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... |
dnl AMD64 mpn_mul_2 optimised for Intel Haswell.
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 2013 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of e... |
; A008413: Coordination sequence for 5-dimensional cubic lattice.
; 1,10,50,170,450,1002,1970,3530,5890,9290,14002,20330,28610,39210,52530,69002,89090,113290,142130,176170,216002,262250,315570,376650,446210,525002,613810,713450,824770,948650,1086002,1237770,1404930,1588490,1789490,2009002,2248130,2508010,2789810,309473... |
; A215040: a(n) = F(2*n+1)^3, n>=0, with F = A000045 (Fibonacci).
; 1,8,125,2197,39304,704969,12649337,226981000,4073003173,73087061741,1311494070536,23533806109393,422297015640625,7577812474746632,135978327528030989,2440032083025183109,43784599166913148552,785682752921379769625,14098504953417839657513,2529874064085995... |
; A326055: a(n) = n - {the largest square that divides n}.
; 0,1,2,0,4,5,6,4,0,9,10,8,12,13,14,0,16,9,18,16,20,21,22,20,0,25,18,24,28,29,30,16,32,33,34,0,36,37,38,36,40,41,42,40,36,45,46,32,0,25,50,48,52,45,54,52,56,57,58,56,60,61,54,0,64,65,66,64,68,69,70,36,72,73,50,72,76,77,78,64,0,81,82,80,84,85,86,84,88,81,90,88,9... |
; A120304: Catalan number minus 2, or ((2n)!/(n!*(n+1)!) - 2).
; -1,-1,0,3,12,40,130,427,1428,4860,16794,58784,208010,742898,2674438,9694843,35357668,129644788,477638698,1767263188,6564120418,24466267018,91482563638,343059613648,1289904147322,4861946401450,18367353072150,69533550916002,263747951750358,1002242216651366,... |
; A138330: Beatty discrepancy (defined in A138253) giving the closeness of the pair (A136497,A136498) to the Beatty pair (A001951,A001952).
; 1,2,1,1,1,1,2,1,2,1,1,2,1,2,1,1,1,1,2,1,1,1,1,2,1,2,1,1,1,1,2,1,1,1,1,2,1,2,1,1,2,1,2,1,1,1,1,2,1,2,1,1,2,1,2,1,1,1,1,2,1,1,1,1,2,1,2,1,1,2,1,2,1,1,1,1,2,1,2,1,1,2,1,2,1,1,1,1,2,... |
#include "../src/th.hpp"
#include "gtest/gtest.h"
#include <stdlib.h>
#include <math.h>
#ifdef DOUBLE
#define FTYPE double
#else
#define FTYPE float
#endif
class RealTest : public ::testing::Test{
protected:
RealTest(){
}
virtual ~RealTest(){
}
virtual void SetUp(){
}
virtual void TearDown(){
}... |
;
; High Resolution library for the MicroBee
; Version for the 8x11 PCG paged font (640x275)
;
; Written by Stefano Bodrato, November 2016
;
;
; Divide by eleven lookup table
;
;
; $Id: div11.asm,v 1.1 2016/11/21 11:18:37 stefano Exp $
;
SECTION rodata_clib
PUBLIC div11
.div11
defw 0, 1, 2, 3, 4, 5... |
// Copyright 2019 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/browser/ui/webui/chromeos/login/fake_update_required_screen_handler.h"
namespace chromeos {
void FakeUpdateRequiredScreenHandler::SetUI... |
.686p
.mmx
.model flat,stdcall
option casemap:none
option prologue:none
option epilogue:none
extern rc4keytable:DWORD
.code
rc4_crypt proc ptrData:DWORD, lData:DWORD
pushad
mov edi, dword ptr [esp+20h+4+4] ;lData
mov esi, dword ptr [esp+20h+4] ;ptrData
test edi, edi
jz @rc4_enc_exit
xor eax, eax
xor ebx,... |
; A194050: Natural fractal sequence of A014739.
; 1,1,2,3,1,2,3,4,1,2,3,4,5,6,7,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,1,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,1,2,3,4,5,6,7,8,9,10
mov $3,$0
add $0,1
mov $2,$3
lpb $0,1
mov $1,$0
add $0,$2
sub $0,... |
SelectMonFromParty:
call DisableSpriteUpdates
xor a
ld [wPartyMenuActionText], a
call ClearBGPalettes
call InitPartyMenuLayout
call WaitBGMap
call SetPalettes
call DelayFrame
call PartyMenuSelect
call ReturnToMapWithSpeechTextbox
ret
SelectTradeOrDayCareMon:
ld a, b
ld [wPartyMenuActionText], a
call Disa... |
; A044623: Numbers n such that string 6,7 occurs in the base 8 representation of n but not of n+1.
; 55,119,183,247,311,375,447,503,567,631,695,759,823,887,959,1015,1079,1143,1207,1271,1335,1399,1471,1527,1591,1655,1719,1783,1847,1911,1983,2039,2103,2167,2231,2295,2359,2423,2495,2551
add $0,1
mov $1,$0
mod $0,8
trn $0... |
; A022525: Nexus numbers (n+1)^9-n^9.
; 1,511,19171,242461,1690981,8124571,30275911,93864121,253202761,612579511,1357947691,2801832661,5444719021,10056547411,17782312591,30276117361,49868399761,79771413871,124328407411,189312302221,282280046581,412989171211,593883443671,840654878761,1172889725401,1614806413351,21960938... |
/*
* DO NOT EDIT THIS FILE! Automatically generated by SCons.
*/
#ifndef __DEBUG_MinorCPU_HH__
#define __DEBUG_MinorCPU_HH__
namespace Debug {
class SimpleFlag;
extern SimpleFlag MinorCPU;
}
#endif // __DEBUG_MinorCPU_HH__
|
device zxspectrum48
org $C000 ; must be in last 16k as I'm using all-RAM mapping for Layer2
INCLUDE "../../Constants.asm"
INCLUDE "../../Macros.asm"
INCLUDE "../../TestFunctions.asm"
INCLUDE "../../TestData.asm"
INCLUDE "../../OutputFunctions.asm"
; ULA white $B601 (%101 per... |
; A078050: Expansion of (1-x)/(1+x+2*x^2).
; 1,-2,0,4,-4,-4,12,-4,-20,28,12,-68,44,92,-180,-4,364,-356,-372,1084,-340,-1828,2508,1148,-6164,3868,8460,-16196,-724,33116,-31668,-34564,97900,-28772,-167028,224572,109484,-558628,339660,777596,-1456916,-98276,3012108,-2815556,-3208660,8839772
mov $1,2
mov $3,2
lpb $0,1
s... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xf303, %rdx
nop
nop
add $59643, %r13
movw $0x6162, (%rdx)
nop
nop
xor $59603, %rdi
lea addresses_A_ht+0x828b, %rsi
nop
add %rcx, %rcx
movb $0x61, (%rsi)
nop
nop
nop
nop
nop
add... |
; A133203: a(n) = a(n-1) + 8*n + 4, n > 2.
; 0,1,3,31,67,111,163,223,291,367,451,543,643,751,867,991,1123,1263,1411,1567,1731,1903,2083,2271,2467,2671,2883,3103,3331,3567,3811,4063,4323,4591,4867,5151,5443,5743,6051,6367
mul $0,2
add $0,4
mov $1,$0
trn $1,5
mov $2,3
add $2,$0
add $0,$1
sub $0,$2
lpb $0
sub $0,1
ad... |
/*
* TLBoolFalse.cpp
*
* Created on: Feb 8, 2014
* Author: dustin
*/
#include "TLBoolFalse.hpp"
namespace telegram {
namespace tl {
} /* namespace tl */
} /* namespace telegram */
|
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x139ac, %rsi
lea addresses_UC_ht+0x13f4c, %rdi
nop
nop
nop
nop
nop
and %rbx, %rbx
mov $98, %rcx
rep movsb
nop
nop
nop
nop
sub $15222, %rdx
lea addresses_D_ht+0x1908a, %r8
nop
... |
BITS 64
global asm_strcasecmp
section .text
asm_strcasecmp:
push rbp
mov rbp, rsp
push rcx
push r8
push r9
xor rcx, rcx
xor r8, r8
xor r9, r9
xor eax, eax
loop_strcasecmp:
mov r8b, [rdi + rcx]
mov r9b, [rsi + rcx]
cmp r8b, 65
jl check_9
cmp r8b, 90
jg check_9
add r8b, 32
check_9:
cmp r9b, 65
jl c... |
; A017543: a(n) = (12*n + 1)^11.
; 1,1792160394037,2384185791015625,177917621779460413,3909821048582988049,43513917611435838661,313726685568359708377,1673432436896142578125,7153014030880804126753,25804264053054077850709,81402749386839761113321,230339304218442143770717,595728015903604931640625,1428552404463186019525093,... |
; A173263: Successive numbers n such that ChebyshevT[n/2, n] is not an integer.
; 3,5,9,11,13,15,19,21,23,25,27,29,33,35,37,39,41,43,45,47,51,53,55,57,59,61,63,65,67,69,73,75,77,79,81,83,85,87,89,91,93,95,99,101,103,105,107,109,111,113,115,117,119,121,123,125,129,131,133,135,137,139,141,143,145,147,149,151,153,155,157,... |
#include <iostream> // cout
#include <algorithm> // copy, fill
#include "tasks.hpp"
// ИСПОЛЬЗОВАНИЕ ЛЮБЫХ ДРУГИХ БИБЛИОТЕК НЕ СОВЕТУЕТСЯ И МОЖЕТ ПОВЛИЯТЬ НА ВАШИ БАЛЛЫ
using std::cout;
using std::fill;
using std::copy;
// Задание 1
void swap_args(int *lhs, int *rhs) {
if ((lhs==nullptr) || (rhs==nullptr)){
... |
; A017258: a(n) = (9*n + 8)^2.
; 64,289,676,1225,1936,2809,3844,5041,6400,7921,9604,11449,13456,15625,17956,20449,23104,25921,28900,32041,35344,38809,42436,46225,50176,54289,58564,63001,67600,72361,77284,82369,87616,93025,98596,104329,110224,116281,122500,128881,135424,142129,148996,156025,163216,170569,178084,185761,1... |
; A026616: T(2n,n), T given by A026615.
; Submitted by Jon Maiga
; 1,3,10,34,120,434,1596,5940,22308,84370,320892,1226108,4702880,18097044,69832600,270118440,1047043260,4066132050,15816664380,61615392300,240347793840,938669220060,3669940053000
mov $3,2
mov $5,$0
lpb $3
sub $3,1
add $0,$3
sub $0,1
mov $6,2
lp... |
// Copyright (c) 2021 Shuangquan Li. All Rights Reserved.
//
// Licensed under the MIT License (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of the License
// at
//
// http://opensource.org/licenses/MIT
//
// Unless required by applicable law or agreed to i... |
; https://adventofcode.com/2020/day/20 (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" ; expected result: 1951 * 3079 * 2971 * 1171 = 20899048083289
INCBIN "input.txt"
inputEnd:
ASSERT ... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2020 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... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x15472, %rsi
lea addresses_WC_ht+0x1aa70, %rdi
nop
nop
xor $47786, %rbx
mov $95, %rcx
rep movsw
nop
nop
nop
cmp %r11, %r11
lea addresses_normal_ht+0xca70, %r8
nop
nop
nop
nop
... |
#pragma GCC optimize ("O0")
#include <iostream>
#include <random>
#include "minimumConstraints.hpp"
#include "rtsSmoothing.hpp"
#include "observations.hpp"
#include "algebraTrace.hpp"
#include "streamTrace.hpp"
#include "linearCombo.hpp"
#include "navigation.hpp"
#include "acsConfig.hpp"
#include "station.hpp"
#inc... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... |
///////////////////////////////////////////////////////////////
// Copyright 2012 John Maddock. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
//
// Comparison operators for cpp_int_backend:
//
#ifndef BOOST_MP_... |
_usertests: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
return randstate;
}
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 10 ... |
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include "stealth.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWi... |
_wc: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
printf(1, "%d %d %d %s\n", l, w, c, name);
}
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc push -0x4(%ecx)
a: ... |
; A220588: a(n) = 2^n - n^2 - n.
; 1,0,-2,-4,-4,2,22,72,184,422,914,1916,3940,8010,16174,32528,65264,130766,261802,523908,1048156,2096690,4193798,8388056,16776616,33553782,67108162,134216972,268434644,536870042,1073740894,2147482656,4294966240,8589933470,17179867994,34359737108,68719475404,137438952066,274877905462,549... |
;******************************************************************************
;* VP9 loop filter SIMD optimizations
;*
;* Copyright (C) 2013-2014 Clément Bœsch <u pkh me>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser Gen... |
#ifndef __GAME_H__
#define __GAME_H__
#include <array>
#include <iostream>
#include <list>
#include <ncurses.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <vector>
using namespace std;
#define TOPY 4 //장애물 출력 위치 y값
#define TOPX 1 //장애물 출력 위치 x값
//$게임 화면 크기 설정
//#define WIDT... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
SECTION .data
idt_start:
; Exceptions are in the 0x00 - 0x1F range.
; https://en.wikipedia.org/wiki/Interrupt_descriptor_table#Protected_mode
; IRQs are remapped into the 0x20 - 0x2F range.
; https://wiki.osdev.org/Interrupts#General_IBM-PC_Compatible_Interrupt_Information
times 0x30 dq 0
idt_end:
... |
* Draw information sub-window contents V1.01 1986 Jonathan Oakley QJUMP
*
section wman
*
xdef wm_idraw
xdef wm_drinf
*
xref wm_trap3
xref wm_ssubw
*
include dev8_keys_qdos_io
include dev8_keys_wwork
include dev8_keys_wstatus
*
* d... |
; A277361: a(n) = Sum_{k=0..n} k^3 * binomial(n-k, k).
; Submitted by Christian Krause
; 0,0,1,2,11,28,80,194,461,1036,2263,4800,9960,20268,40577,80086,156115,301004,574744,1087918,2043229,3810320,7060079,13004832,23826480,43437240,78827425,142446698,256400411,459826588,821834624,1464149690,2600662157,4606368148
mov $... |
//--------------------------------------------------------------------------------------------------
// Copyright (c) YugaByte, Inc.
//
// 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
//
// ht... |
; A136755: a(n) = leading digit of n! in base 4.
; 1,1,2,1,1,1,2,1,2,1,3,2,1,1,1,1,1,1,1,1,2,2,3,1,2,3,1,2,3,1,3,1,3,1,3,1,1,2,1,3,2,1,3,2,1,1,3,2,1,1,1,3,2,2,2,1,1,1,1,1,1,1,1,3,3,1,1,1,1,1,1,1,1,1,2,2,3,3,1,1,1,2,2,3,1,1,2,2,1,1,1,2,1,1,2,3,1,1,2,1
seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetr... |
; A002700: Coefficients of Chebyshev polynomials: n*(2*n+1) * 4^(n-1).
; 3,40,336,2304,14080,79872,430080,2228224,11206656,55050240,265289728,1258291200,5888802816,27246198784,124822487040,566935683072,2555505541120,11441792876544,50921132261376,225399883694080,992858999881728,4354066045992960,19017153114013696,8275364... |
; A018920: Pisot sequence T(3,10), a(n) = floor(a(n-1)^2/a(n-2)).
; Submitted by Jamie Morken(s4)
; 3,10,33,108,353,1153,3766,12300,40172,131202,428506,1399501,4570771,14928140,48755311,159234864,520061125,1698519827,5547366384,18117700664,59172417076,193257136076,631177877968,2061427183105,6732621943159,21988745758766... |
; Word Search Data File
; (Feel free to invent your own test cases as well)
NumRows EQU 12
NumCols EQU 10
OrigMatrix db 'EHUBBELQMI',
'TI9ABCPUSS',
'ADUSLEAAAT',
'LDPSE2TKME',
'LECE291EER',
'LNHMK1UKTA',
'ADDBINARYM',
'... |
SECTION code_driver
PUBLIC ide_wait_drq
EXTERN __IO_IDE_ALT_STATUS
EXTERN ide_read_byte
;------------------------------------------------------------------------------
; IDE internal subroutines
;
; These routines talk to the drive, using the low level I/O.
; Normally a program should not call these directly.
;--... |
//===- CXCursor.cpp - Routines for manipulating CXCursors -----------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// AtlasMaker.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#define STB_RECT_PACK_IMPLEMENTATION
#include <iostream>
#include "src/stb_rect_pack.h"
#define KGFLAGS_IMPLEMENTATION
#include "src/kgflags.h"
#include <vector>
#include <string>
#include <stdio.h>
#include <sys/ty... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x16351, %r11
nop
nop
nop
inc %r15
mov $0x6162636465666768, %rdx
movq %rdx, %xmm3
vmovups %ymm3, (%r11)
nop
add $49243, %r13
lea addresses_normal_ht+0x4a51, %r12
nop
... |
/*
** Logger.hpp for nexusZiaAPI in /home/enguerrand/delivery/nexusZiaAPI/Logger.hpp
**
** Made by Enguerrand Allamel
** Login <enguerrand.allamel@epitech.eu>
**
** Started on Fri Nov 10 13:28:22 2017 Enguerrand Allamel
** Last update Fri Nov 10 13:28:22 2017 Enguerrand Allamel
*/
#ifndef NEXUSZIAAPI_LOGGER_HPP
#de... |
#include "wmainwindow.h"
#include "ui_wmainwindow.h"
#include "wbrowserbutton.h"
#include <QKeyEvent>
#include <QLayout>
#include <iostream>
#include <sstream>
WMainWindow::WMainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::WMainWindow)
{
ui->setupUi(this);
ui->scrollAreaWidgetContents->... |
SFX_Cry0E_1_Ch4:
dutycycle 165
squarenote 4, 14, 1, 1792
squarenote 4, 15, 2, 1920
squarenote 2, 9, 2, 1856
squarenote 8, 14, 1, 1536
endchannel
SFX_Cry0E_1_Ch5:
dutycycle 10
squarenote 4, 11, 1, 1761
squarenote 3, 12, 2, 1761
squarenote 3, 6, 2, 1665
squarenote 8, 11, 1, 1505
endchannel
SFX_Cry0E_1_Ch7... |
; A155602: 4^n + 3^n - 1.
; 1,6,24,90,336,1266,4824,18570,72096,281826,1107624,4371450,17308656,68703186,273218424,1088090730,4338014016,17309009346,69106897224,276040168410,1102998412176,4408506864306,17623567104024,70462887356490,281757406247136,1126747195452066,4506141493198824
mov $1,4
pow $1,$0
mov $2,3
pow $2,$0... |
#include <stdlib.h>
#include "Application.h"
#include "Globals.h"
#include "Dependencies/SDL/include/SDL.h"
#pragma comment (lib, "glew32.lib")
#pragma comment (lib, "glew32s.lib")
#pragma comment( lib, "SDL2.lib")
#pragma comment( lib, "SDL2main.lib" )
enum main_states
{
MAIN_CREATION,
MAIN_START,
MAIN_UP... |
;***************************************************************************
; Linked list example in 6809, using 16 bit addressing
; copyright Hurray Banana 2018
;***************************************************************************
;***************************************************************************
; ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r15
push %r9
push %rdi
push %rdx
lea addresses_WT_ht+0x18735, %r14
nop
nop
sub $11713, %r12
and $0xffffffffffffffc0, %r14
movaps (%r14), %xmm4
vpextrq $0, %xmm4, %rdi
nop
add $7599, %r9
lea addresses_UC_ht+0x45d9, %rdx
nop
nop
sub $56632, ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: libFormat.asm
AUTHOR: Maryann Simmons, May 12, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date ... |
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: common Graphics routines
FILE: graphicsPCLTIFF.asm
AUTHOR: Dave Durran
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:... |
#include "Carnivore2.hh"
#include "IDEDevice.hh"
#include "IDEDeviceFactory.hh"
#include "CliComm.hh"
#include "MSXCPU.hh"
#include "cstd.hh"
#include "one_of.hh"
#include "ranges.hh"
#include "xrange.hh"
#include <array>
// TODO (besides what's in the code below):
// - FM-PAC mono/stereo setting (bit 7)
// - possibly... |
/*******************************************************************************
* Copyright 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.apache.o... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DmgTyp_Herbivore_HarvestStone_Molerat_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//--------------------------------... |
;
; ZX 81 specific routines
; by Stefano Bodrato, Oct 2007
;
; Internal code to convert a character from ZX81 to ASCII
; in: source character in (HL)
; out: A = converter character
;
; $Id: zx81toasc.asm,v 1.6 2016-06-26 20:32:08 dom Exp $
;
SECTION code_clib
PUBLIC zx81toasc
EXTERN zx81_cnvtab
.zx81toasc
ld a,(hl)... |
[BITS 32]
global write
global exit
global put_char
global open
global sleep
global read
global malloc_init
global malloc
global free
global get_key
global newline
global seek
global stat
global close
global getca
[SECTION .text]
;; put_charシステムコール
;; 一文字シェルに表示する
;; 引数
;; int ch...alレジスタ
;; =>表示したい文字
put_ch... |
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS ... |
; A170070: Number of reduced words of length n in Coxeter group on 13 generators S_i with relations (S_i)^2 = (S_i S_j)^37 = I.
; 1,13,156,1872,22464,269568,3234816,38817792,465813504,5589762048,67077144576,804925734912,9659108818944,115909305827328,1390911669927936,16690940039135232,200291280469622784
add $0,1
mov $3... |
; A100830: Smallest number with same digital root as n but distinct from n and all earlier occurrences.
; 10,11,12,13,14,15,16,17,18,1,2,3,4,5,6,7,8,9,28,29,30,31,32,33,34,35,36,19,20,21,22,23,24,25,26,27,46,47,48,49,50,51,52,53,54,37,38,39,40,41,42,43,44,45,64,65,66,67,68,69,70,71,72,55,56,57,58,59,60,61,62,63,82,83,8... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="pid, pgid"/>
<%docstring>
Invokes the syscall setpgid. See 'man 2 setpgid' for more information.
Arguments:
pid(pid_t): pid
pgid(pid_t): pgid
</%docstring>
${syscall('SYS_setpgid', pid, pgid)}
|
TITLE Macro Examples - 1 (Macro1.ASM)
; This program demonstrates the MACRO directive.
; Last update: 8/15/01.
INCLUDE Irvine32.inc
mPutchar MACRO char
push eax
mov al,char
call WriteChar
pop eax
ENDM
.code
main PROC
mPutchar 'A'
; Invoke the macro in a loop.
mov al,'A'
mov ecx,20
L1... |
; A222407: Digital roots of tribonacci numbers A000073.
; Submitted by Jon Maiga
; 0,0,1,1,2,4,7,4,6,8,9,5,4,9,9,4,4,8,7,1,7,6,5,9,2,7,9,9,7,7,5,1,4,1,6,2,9,8,1,9,9,1,1,2,4,7,4,6,8,9,5,4,9,9,4,4,8,7,1,7,6,5,9,2,7,9,9,7,7,5,1,4,1,6,2,9,8,1,9,9,1,1,2,4,7,4,6,8,9,5,4,9,9,4,4,8,7,1,7,6
seq $0,230724 ; Digital sum of tribo... |
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int diameterOfBinaryTree(TreeNode* root) {
int res = 0;
depth(root, res);
... |
; A050410: Truncated square pyramid numbers: a(n) = Sum_{k = n..2*n-1} k^2.
; 0,1,13,50,126,255,451,728,1100,1581,2185,2926,3818,4875,6111,7540,9176,11033,13125,15466,18070,20951,24123,27600,31396,35525,40001,44838,50050,55651,61655,68076,74928,82225,89981,98210,106926,116143,125875,136136,146940,158301,170233,182750,1... |
; A142248: Odd numbers in A138123.
; 1,3,7,11,17,29,47,75,123,199,321,521,843,1363,2207,3571,5777,9349
seq $0,288219 ; a(n) = a(n-1) + a(n-2) for n >= 3, where a(0) = 2, a(1) = 4, a(2) = 7.
add $0,79
mov $2,$0
div $2,2
mov $0,$2
sub $0,40
mul $0,2
add $0,1
|
/*
* Gray: A Ray Tracing-based Monte Carlo Simulator for PET
*
* Copyright (c) 2018, David Freese, Peter Olcott, Sam Buss, Craig Levin
*
* This software is distributed under the terms of the MIT License unless
* otherwise noted. See LICENSE for further details.
*
*/
#include "Gray/Output/IO.h"
std::istream& ... |
; Spectravideo SVI CRT0 stub
;
; Stefano Bodrato - Apr. 2001
;
; $Id: svi_crt0.asm,v 1.10 2009/06/22 21:20:05 dom Exp $
;
MODULE svi_crt0
;
; Initially include the zcc_opt.def file to find out lots of lovely
; information about what we should do..
;
INCLUDE "zcc_op... |
; A090620: Highest power of 13 dividing n!.
; 0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,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,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,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,10,10,10,10,10... |
/*
* Sarus
*
* Copyright (c) 2018-2022, ETH Zurich. All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <memory>
#include <boost/filesystem.hpp>
#include <rapidjson/document.h>
#include <rapidjson/schema.h>
#include "common/U... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2017 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... |
//
// Copyright (C) 2015 Google, Inc.
//
// 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 ag... |
; AVX-512 testcases from gas
;------------------------
;
; This file is taken from there
; https://gnu.googlesource.com/binutils/+/master/gas/testsuite/gas/i386/x86-64-avx512f-intel.d
; So the original author is "H.J. Lu" <hongjiu dot lu at intel dot com>
;
; Jin Kyu Song converted it for the nasm testing suite usi... |
#pragma once
#include <type_traits>
namespace oeng
{
inline namespace core
{
/**
* Tag type for value-initializing first, constructing second from remaining args
*/
struct ZeroThen
{
explicit ZeroThen() = default;
};
/**
* Tag type for constructing first from one arg, constructing second from remaining args
*... |
/* Boost test/pi.cpp
* test if the pi constant is correctly defined
*
* Copyright 2002-2003 Guillaume Melquiond, Sylvain Pion
*
* 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/numeric/int... |
INCLUDE "header.asm"
INCLUDE "macros.asm"
INCLUDE "registers.asm"
INCLUDE "constants.asm"
INCLUDE "memory.asm"
main:
ld sp, Work_RAM_End
call disable_lcd
call reset_gfx
jp cause_deadlock ; tail call
vblank:
reti
stat:
reti
timer:
reti
serial:
reti
joypad:
reti
cause_deadlock:
di
xor a
ldh [RE... |
global irq0
global irq1
global irq2
global irq3
global irq4
global irq5
global irq6
global irq7
global irq8
global irq9
global irq10
global irq11
global irq12
global irq13
global irq14
global irq15
; 32: IRQ0
irq0:
cli
push byte 0
push byte 32
jmp irq_common_stub
; 33: IRQ1
irq1:
cli
push byte... |
// rareTDT.cpp
// 5/27/2011 Wei-Min Chen
#include "analysis.h"
#include "MathStats.h"
#include "Kinship.h"
#include "QuickIndex.h"
void Engine::rareTDT()
{
int AA, Aa, missing;
int b, id0, id1, id2, id3;
int informative, T, NT, HHH;
int TCount, NTCount, informativeCount;
if(geno.Length()==0) BuildSho... |
/**
* Touhou Community Reliant Automatic Patcher
* Main DLL
*
* ----
*
* Breakpoint entry point. Written for i686-w64-mingw32-as.
*/
.intel_syntax
.global _bp_entry, _bp_entry_caveptr, _bp_entry_localptr, _bp_entry_callptr, _bp_entry_end
_bp_entry:
pusha
pushf
cld
push %esp
_bp_entry_caveptr:
pus... |
;
; 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... |
#import "ntplay-defs.asm"
.const RASTER_LINE = $33
.pc = $02 "Zero page variables" virtual
#import "ntplay-vars.asm"
.pc = $0801 "Basic Upstart"
:BasicUpstart(start)
.pc = $0810 "Code"
start: {
sei
cld
lda #<musicdata
ldx #>musicdata
jsr nt_newmusic
lda #0
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.