text stringlengths 1 1.05M |
|---|
%include "../UltimaPatcher.asm"
%include "include/uw2.asm"
%include "include/uw2-eop.asm"
%include "../uw1/eop-tryKeyAndMouseBindings.asm"
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1107f, %r12
nop
xor %r14, %r14
mov $0x6162636465666768, %r15
movq %r15, %xmm0
and $0xffffffffffffffc0, %r12
vmovaps %ymm0, (%r12)
nop
nop
nop
nop
xor %rdx, %rdx
lea addresse... |
; A052149: Nonsquare rectangles on an n X n board.
; 0,4,22,70,170,350,644,1092,1740,2640,3850,5434,7462,10010,13160,17000,21624,27132,33630,41230,50050,60214,71852,85100,100100,117000,135954,157122,180670,206770,235600,267344,302192,340340,381990,427350,476634,530062,587860,650260,717500,789824,867482,950730,1039830,1... |
/*
Copyright (c) 2015-2016, Arvid Norberg
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 conditions and ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1e779, %rsi
lea addresses_normal_ht+0x13499, %rdi
nop
nop
nop
nop
nop
cmp $20799, %r8
mov $50, %rcx
rep movsw
nop
nop
nop
cmp %rdx, %rdx
lea addresses_UC_ht+0xd09, %r11
nop
n... |
./Release/tst-noinit.elf: file format elf32-avr
Disassembly of section .text:
00000000 <__vectors>:
0: 09 c0 rjmp .+18 ; 0x14 <__ctors_end>
2: 0e c0 rjmp .+28 ; 0x20 <__bad_interrupt>
4: 0d c0 rjmp .+26 ; 0x20 <__bad_interrupt>
6: 0c c0 rjmp .+24 ; 0x2... |
db DEX_TENTACRUEL ; pokedex id
db 80 ; base hp
db 70 ; base attack
db 65 ; base defense
db 100 ; base speed
db 120 ; base special
db WATER ; species type 1
db POISON ; species type 2
db 60 ; catch rate
db 205 ; base exp yield
INCBIN "pic/bmon/tentacruel.pic",0,1 ; 66, sprite dimensions
dw TentacruelPicFront
dw Tentacru... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x126c9, %r15
clflush (%r15)
nop
and %r9, %r9
mov (%r15), %rax
nop
nop
nop
nop
add %rbp, %rbp
lea addresses_WT_ht+0xcca9, %rsi
lea addresses_UC_ht+0x14221, %rdi
nop
dec %r14
mo... |
; A077802: Sum of products of parts increased by 1 in hook partitions of n, where hook partitions are of the form h*1^(n-h).
; 1,2,7,18,41,88,183,374,757,1524,3059,6130,12273,24560,49135,98286,196589,393196,786411,1572842,3145705,6291432,12582887,25165798,50331621,100663268,201326563,402653154,805306337,1610612704
mov... |
; A172123: Number of ways to place 2 nonattacking bishops on an n X n board.
; 0,4,26,92,240,520,994,1736,2832,4380,6490,9284,12896,17472,23170,30160,38624,48756,60762,74860,91280,110264,132066,156952,185200,217100,252954,293076,337792,387440,442370,502944,569536,642532,722330,809340,903984,1006696,1117922,1238120,1367... |
/**
*
* @file DeviceManager.cpp
* @author Naoki Takahashi
*
**/
#include "DeviceManager.hpp"
#include <Tools/ConfigFileOperator/JsonLoader.hpp>
#include "SerialDeviceSelector.hpp"
#include "Communicator/SerialControlSelector.hpp"
namespace IO {
DeviceManager::DeviceManager(RobotStatus::InformationPtr &r... |
// Copyright 2014 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 <stddef.h>
#include <vector>
#include "ash/shell.h"
#include "ash/wallpaper/wallpaper_controller.h"
#include "base/command_line.h"
#include "ba... |
#include <cmath>
#include <vector>
#include <arbor/math.hpp>
#include <arbor/morph/place_pwlin.hpp>
#include <arbor/morph/morphology.hpp>
#include <arbor/morph/primitives.hpp>
#include "util/piecewise.hpp"
#include "util/rangeutil.hpp"
#include "../test/gtest.h"
#include "common_cells.hpp"
using namespace arb;
nam... |
// (C) 2017-2021 by folkert van heusden, released under Apache License v2.0
#include "config.h"
#include <stddef.h>
#include <cstring>
#include "gen.h"
#include "filter_mirror_v.h"
filter_mirror_v::filter_mirror_v()
{
}
filter_mirror_v::~filter_mirror_v()
{
}
void filter_mirror_v::apply_io(instance *const i, interf... |
#ifdef FULL_NOTE
#undef FULL_NOTE
#undef HALF_NOTE
#undef QUARTER_NOTE
#endif
#define FULL_NOTE 20
#define HALF_NOTE 10
#define QUARTER_NOTE 5
#include "game/music/theme_main/samples_square1.asm"
#include "game/music/theme_main/samples_square2.asm"
#include "game/music/theme_main/samples_triangle.asm"
|
; This file is generated from a similarly-named Perl script in the BoringSSL
; source tree. Do not edit by hand.
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
%ifdef BORINGSSL_PREFIX
%include "boringssl_prefix_symbols_nasm.inc"
%endif
section .text code align=64
EXTERN OPENSSL_ia32cap_P
... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
mov ecx, 0x20F
cvtsi2sd xmm0, ecx
mov ecx, 0xFFFFFF
cvtsi2sd xmm1, ecx
;TEST_BEGIN_RECORDING
minsd xmm0, xmm1
;TEST_END_RECORDING
xor ecx, ecx
cvtsi2sd xmm0, ecx
cvtsi2sd xmm1, ecx
|
; BR 3392275: don't require xmm0 to be explicitly declared when implicit
bits 32
blendvpd xmm2,xmm1,xmm0
blendvpd xmm2,xmm1
blendvps xmm2,xmm1,xmm0
blendvps xmm2,xmm1
pblendvb xmm2,xmm1,xmm0
pblendvb xmm2,xmm1
sha256rnds2 xmm2,xmm1,xmm0
sha256rnds2 xmm2,xmm1
|
;
; jemul8 - JavaScript x86 Emulator
; Copyright (c) 2013 http://jemul8.com. All Rights Reserved.
;
; MODULE: Tests for CMOS I/O device
;
%include '../tools.inc'
; Jump over data
jmp main
; --- Data ---
; Test descriptions
test1 db "should return 0xFF when reading index port 0x70",0
test2 db "should return 0x04 whe... |
; int adt_QueuePushFront(struct adt_Queue *q, void *item)
; CALLER linkage for function pointers
XLIB adt_QueuePushFront
LIB adt_QueuePushFront_callee
XREF ASMDISP_ADT_QUEUEPUSHFRONT_CALLEE
.adt_QueuePushFront
pop bc
pop de
pop hl
push hl
push de
push bc
jp adt_QueuePushFront_callee + ASMDI... |
#include "BVH.h"
void BVH::updateBVH(std::vector<BV*>& bvs, int dim, int l, int r) {
left = 0, right = 0;
axis = dim;
if (l == r)
{
bv = bvs[l];
return;
}
if (l < 0) {
l = 0;
r = (int)bvs.size() - 1;
}
num = r - l + 1;
bv = new BV();
bv->Include(b... |
; A073363: Nested floor product of n and fractions (k+1)/k for all k>0 (mod 6), divided by 6.
; Submitted by Jamie Morken
; 1,7,28,84,175,421,847,1288,1939,3780,5656,9247,15148,22099,25375,39676,54607,75208,90559,129360,166321,209832,240268,320719,399595,536956,672672,816733,906444,1115275,1321741,1595832,1908088,23239... |
object_const_def ; object_event constants
const VERMILIONGYM_SURGE
const VERMILIONGYM_GENTLEMAN
const VERMILIONGYM_ROCKER
const VERMILIONGYM_SUPER_NERD
const VERMILIONGYM_GYM_GUY
VermilionGym_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
VermilionGymSurgeScript:
faceplayer
opentext
checkflag ENGINE_TH... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
// Reading
FILE *file = fopen("somefile.binary", "rb");
assert(file);
fseek(file, 0, SEEK_END);
int size = ftell(file);
rewind (file);
printf("size: %d\n", size);
char *buffer = (char*) malloc (sizeof(char)*s... |
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="fd, buf"/>
<%docstring>
Invokes the syscall fstat. See 'man 2 fstat' for more information.
Arguments:
fd(int): fd
buf(stat): buf
</%docstring>
${syscall('SYS_fstat', fd, buf)}
|
; _Noreturn void quick_exit(int status)
SECTION code_clib
SECTION code_stdlib
PUBLIC _quick_exit
EXTERN asm_quick_exit
_quick_exit:
pop af
pop hl
jp asm_quick_exit
|
TITLE ASK3
ASSUME CS:KODIKAS, DS:DEDOMENA
KODIKAS SEGMENT PUBLIC
ARXH:
MOV AX,DEDOMENA
MOV DS,AX
LEA DX,PROTROPI
MOV AH,09H
INT 21H
B1:
MOV SI,0
B2:
MOV AH,01H
INT 21H
B3:
CMP AL,13
JE Emfanisi
B4:
CMP AL,32
JE B7
CMP AL,'.'
JE B7
B5:
CMP AL,'A'
... |
_wc: file format elf32-i386
Disassembly of section .text:
00000000 <wc>:
char buf[512];
void
wc(int fd, char *name)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 48 sub $0x48,%esp
int i, n;
int l, w, c, inword;
l = w = c = 0;
6: c7... |
/*
* Copyright 2010 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 agreed to... |
; SMSQ dummy end V2.01
section end_all
xdef smsq_end
dc.w ' END'
smsq_end
end
|
int main()
{
//TODO
return 0;
}
|
; HW sound channel register base addresses
HW_CH1_BASE EQU (rNR10 % $100)
HW_CH2_BASE EQU ((rNR21 % $100) - 1)
HW_CH3_BASE EQU (rNR30 % $100)
HW_CH4_BASE EQU ((rNR41 % $100) - 1)
; HW sound channel enable bit masks
HW_CH1_ENABLE_MASK EQU %00010001
HW_CH2_ENABLE_MASK EQU %00100010
HW_CH3_ENABLE_MASK EQU %01000100
HW_CH... |
section .text
global _start
_start:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80
mov eax,1
int 0x80
section .data
msg db 'Hello, World!', 0xa
len equ $ - msg
|
; double __FASTCALL__ log10(double x)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sccz80_log10
EXTERN am48_log10
defc cm48_sccz80_log10 = am48_log10
|
; A082450: a(n) = 5*(n^2-n+2)/2.
; 5,5,10,20,35,55,80,110,145,185,230,280,335,395,460,530,605,685,770,860,955,1055,1160,1270,1385,1505,1630,1760,1895,2035,2180,2330,2485,2645,2810,2980,3155,3335,3520,3710,3905,4105,4310,4520,4735,4955,5180,5410,5645,5885,6130,6380,6635,6895,7160,7430,7705,7985,8270,8560,8855,9155,9460,... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC _copysign_callee
EXTERN cm48_sdcciy_copysign_callee
defc _copysign_callee = cm48_sdcciy_copysign_callee
|
db 0 ; species ID placeholder
db 70, 95, 85, 70, 55, 65
; hp atk def spd sat sdf
db ROCK, PSYCHIC ; type
db 45 ; catch rate
db 150 ; base exp
db NO_ITEM, SUN_STONE ; items
db GENDER_UNKNOWN ; gender ratio
db 25 ; step cycles to hatch
INCBIN "gfx/pokemon/solrock/front.dimensions"
db GROWTH_FAST... |
;*****************************************************************************
;* MMX/SSE2-optimized H.264 iDCT
;*****************************************************************************
;* Copyright (C) 2004-2005 Michael Niedermayer, Loren Merritt
;* Copyright (C) 2003-2008 x264 project
;*
;* Authors: Laurent Aima... |
copyright zengfr site:http://github.com/zengfr/romhack
003AE6 move.w (A1)+, D0 [1p+20, 1p+22, boss+20, boss+22, container+20, container+22, enemy+20, enemy+22, weapon+20, weapon+22]
003B0C movea.l ($20,A6), A1 [1p+20, 1p+22, boss+20, boss+22, container+20, container+22, enemy+20, enemy+22, weapon+20, weapon+22]
003... |
; A033996: 8 times triangular numbers: a(n) = 4*n*(n+1).
; 0,8,24,48,80,120,168,224,288,360,440,528,624,728,840,960,1088,1224,1368,1520,1680,1848,2024,2208,2400,2600,2808,3024,3248,3480,3720,3968,4224,4488,4760,5040,5328,5624,5928,6240,6560,6888,7224,7568,7920,8280,8648,9024,9408,9800,10200,10608,11024,11448,11880,1232... |
; A124443: a(1)=1, a(n) = LCM of the integers, from 1 to n/2, which are coprime to n.
; Submitted by Jon Maiga
; 1,1,1,1,2,1,6,3,4,3,60,5,60,15,28,105,840,35,2520,63,40,315,27720,385,5544,3465,40040,6435,360360,1001,360360,45045,7280,45045,350064,85085,12252240,765765,1989680,2909907,232792560,230945,232792560,1322685
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xf0cb, %rdi
cmp %rax, %rax
movb $0x61, (%rdi)
nop
nop
sub %r9, %r9
lea addresses_WC_ht+0x250b, %rsi
lea addresses_WC_ht+0x1180b, %rdi
nop
nop
nop
inc %r13
mov $118, %rcx
rep mo... |
#if 0
; Check if a movement collide with an obstacle
; tmpfield1 - Original position X
; tmpfield2 - Original position Y
; tmpfield3 - Final position X (high byte)
; tmpfield4 - Final position Y (high byte)
; tmpfield5 - Obstacle top-left X
; tmpfield6 - Obstacle top-left Y
; tmpfield7 - Obstacle bottom-right X
... |
// Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#pragma once
#include "../../include/libvideostitch/overlay.hpp"
#include "../../include/libvideostitch/allocator.hpp"
#include "../../include/libvideostitch/stitchOutput.hpp"
#include <GL/glew.h>
#ifdef __APPLE__
#include <OpenGL/gl.h>
#else
... |
; A125711: In the "3x+1" problem, let 1 denote a halving step and 0 denote an x->3x+1 step. Then a(n) is obtained by writing the sequence of steps needed to reach 1 from 2n and reading it as a decimal number.
; Submitted by Christian Krause
; 1,3,175,7,47,431,87791,15,743151,111,22255,943,751,218863,175087,31,5871,1791... |
%define BPM 100
%include "../src/sointu.inc"
BEGIN_PATTERNS
PATTERN 0,0,0,0,0,0,0,0,
PATTERN 72, HLD, HLD, HLD, HLD, HLD, HLD, 0,
PATTERN 64, HLD, HLD, HLD, HLD, HLD, HLD, 0,
PATTERN 60, HLD, HLD, HLD, HLD, HLD, HLD, 0,
PATTERN 40, HLD, HLD, HLD, HLD, HLD, HLD, 0,
END_PATTERNS
BEGIN_TRACKS
TR... |
; A262882: Right diagonal of A262881.
; 0,1,2,3,3,5,6,7,7,7,7,11,11,13,14,15,15,15,15,15,15,15,15,23,23,23,23,27,27,29,30,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,47,47,47,47,47,47,47,47,55,55,55,55,59,59,61,62,63,63,63,63,63
lpb $0
mov $1,$0
cal $1,37834 ; Sum{|d(i)-d(i-1)|: i=1,...,m}, where Sum{d(i)*2^i:... |
SECTION CODE
EXTERN _usingAnsiDrv, _AnsiPrint, _usingAnsiDrv, _AnsiPutChar
; // This print function has been copied from HGET / Konamiman
; // Using it as fusion-c Print uses bios calls, and do not work with PUT9000
; // That hooks the dos call.
; void print(char* s) __z88dk_fastcall
PUBLIC _print
_print:
ld ... |
//
// This is a test input file for asm.
//
my_define = 1; my_define_2 = my_define // This is a trailing comment.
My_Define = 2
my_alignment_size=4
my_blank_size=4
my_large_define = 1000
my_negative_define = -42
my_hex_define = 0x42
my_octal_define = 042
// This is a mid-file comment.
.word my_define, my_defin... |
#include <dis7/PointObjectStatePdu.h>
using namespace DIS;
PointObjectStatePdu::PointObjectStatePdu() : SyntheticEnvironmentFamilyPdu(),
_objectID(),
_referencedObjectID(),
_updateNumber(0),
_forceID(0),
_modifications(0),
_objectType(),
_objectLocation(),
_objectOrientation(),
_ob... |
/*
* All MBAFF frame picture HWMC kernels
* Copyright © <2010>, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
* http://www.opensource.org/licenses/eclipse-1.0.php.
*
*/
// 2857702934 //... |
;
; Spectravideo SVI C Library
;
; getk() Read key status
;
; Stefano Bodrato - Apr. 2000
;
;
; $Id: getk.asm,v 1.2 2001/04/13 14:14:00 stefano Exp $
;
XLIB getk
.getk
ld hl,0
ret ; I have no idea for this..
|
;===================================================================================================
; PRESET DATA HEADER
;===================================================================================================
presetheader_defeatblind:
dw presetSRAM_defeatblind ; location of SRAM
dw presetpersistent_defe... |
;------------------------------------------------------------------------------
;
; 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... |
.data
msg1: .asciiz "\nDigite o primeiro número: "
msg2: .asciiz "Digite o segundo número: "
msg3: .asciiz "\nO MDC é igual a: "
.text
.globl main
main:
li $v0, 4 #printa a mensagem 1
la $a0, msg1
syscall
li $v0, 5 #le o primeiro inteiro
syscall
add $a1, $v0, $zero #guarda valor lido no $a1 (par... |
#include <ros/ros.h> //ALWAYS need to include this
#include <gazebo_msgs/GetModelState.h>
#include <gazebo_msgs/ApplyJointEffort.h>
#include <gazebo_msgs/GetJointProperties.h>
#include <sensor_msgs/JointState.h>
#include <string.h>
#include <stdio.h>
#include <std_msgs/Float64.h>
#include <math.h>
//some "magic number... |
NewFireBarDamage:
{
LDA $00EE : CMP $0F20, X : BNE .NotSameLayer
JSL Sprite_AttemptDamageToPlayerPlusRecoilLong
RTL
.NotSameLayer
RTL
} |
# /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt... |
// Copyright Epic Games, Inc. All Rights Reserved.
#include "Airsim_Drone.h"
#define LOCTEXT_NAMESPACE "FAirsim_DroneModule"
void FAirsim_DroneModule::StartupModule()
{
// This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module
}
void FAirsim_Dr... |
; A338199: a(n) = v(1 + F(4*n - 3)), where F(x) = (3*x + 1)/2^v(3*x + 1), x is any odd natural number, and v(y) is the 2-adic valuation of y.
; Submitted by Jamie Morken(s4)
; 1,1,3,1,1,1,2,2,1,3,5,1,1,1,2,3,1,1,3,1,1,1,2,2,1,2,4,1,1,2,2,4,1,1,3,1,1,3,2,2,1,5,7,1,1,1,2,3,1,1,3,1,1,1,2,2,1,2,4,1,1,3,2,5,1,1,3,1,1,1,2,2,... |
#include "Processor.h"
#include "Config.h"
#include "Controller.h"
#include "SpeedyController.h"
#include "Memory.h"
#include "DRAM.h"
#include "Statistics.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <stdlib.h>
#include <functional>
#include <map>
/* Standards */
#include "Gem5Wrapper.h"
#inclu... |
; A184105: n-1+ceiling((n/5)^2); complement of A184104.
; 1,2,3,4,5,7,8,10,12,13,15,17,19,21,23,26,28,30,33,35,38,41,44,47,49,53,56,59,62,65,69,72,76,80,83,87,91,95,99,103,108,112,116,121,125,130,135,140,145,149,155,160,165,170,175,181,186,192,198,203,209,215,221,227,233,240,246,252,259,265
mov $1,$0
mov $2,$0
pow $0,... |
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
SECTION code_clib
SECTION code_l_sccz80
PUBLIC l_lt
EXTERN l_compare_result
l_lt:
; DE < HL [signed
; set carry if true
ld a,h
add a,$80
ld b,a... |
/*
This file is part of Corrade.
Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
2017, 2018 Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... |
; **********************************************************************
; Output buffer
; **********************************************************************
; outputReset - reset output buffer
;
; on exit:
; A undefined
; X preserved
; Y current buffer size
.outputReset
LDA #0 ... |
#include "AlignmentRandomRepa.h"
#include <cstring>
#include <stdlib.h>
using namespace Alignment;
// historyRepasShuffle_u :: HistoryRepa -> Int -> HistoryRepa
std::unique_ptr<HistoryRepa> Alignment::historyRepasShuffle_u(const HistoryRepa& hr, unsigned s)
{
auto n = hr.dimension;
auto vv = hr.vectorV... |
Route16Object:
db $f ; border block
db $9 ; warps
db $a, $11, $0, ROUTE_16_GATE_1F
db $b, $11, $0, ROUTE_16_GATE_1F
db $a, $18, $2, ROUTE_16_GATE_1F
db $b, $18, $2, ROUTE_16_GATE_1F
db $4, $11, $4, ROUTE_16_GATE_1F
db $5, $11, $4, ROUTE_16_GATE_1F
db $4, $18, $6, ROUTE_16_GATE_1F
db $5, $18, $6, ROUTE_16_GAT... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: welcome
FILE: cmainStartupRoomTrigger.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 12/89 Initial version
DESCRIP... |
; A176345: Sum of gcd(k,n) from k = 1 to n over "regular" integers only (an integer k is regular if there is an x such that k^2 x == k (mod n))
; Submitted by Simon Strandgaard
; 1,3,5,6,9,15,13,12,15,27,21,30,25,39,45,24,33,45,37,54,65,63,45,60,45,75,45,78,57,135,61,48,105,99,117,90,73,111,125,108,81,195,85,126,135,13... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x86cf, %rsi
lea addresses_WC_ht+0x1c012, %rdi
nop
nop
nop
nop
nop
cmp $31673, %rbp
mov $124, %rcx
rep movsl
nop
nop
nop
sub $16413, %rbx
lea addresses_UC_ht+0x1205b, %r12
nop
nop
nop
d... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x11dd9, %rsi
lea addresses_A_ht+0x12cd9, %rdi
nop
nop
nop
sub $51261, %rax
mov $123, %rcx
rep movsw
nop
add $4706, %rdi
lea addresses_WC_ht+0x36f1, %rsi
lea addresses_WC_ht+0x11859, %r... |
#include "Omega_h_mesh.hpp"
#include <algorithm>
#include <cctype>
#include <iostream>
#include "Omega_h_array_ops.hpp"
#include "Omega_h_bcast.hpp"
#include "Omega_h_compare.hpp"
#include "Omega_h_element.hpp"
#include "Omega_h_for.hpp"
#include "Omega_h_ghost.hpp"
#include "Omega_h_inertia.hpp"
#include "Omega_h_ma... |
; Reads controller.
; Reliable even if DMC is playing.
; Time: ~660 clocks
; hat tip: http://forums.nesdev.com/viewtopic.php?f=2&t=4124&start=15 (Thank you blargg!!)
read_controller:
; Preserve the old stuff.
lda ctrlButtons
sta lastCtrlButtons
jsr read_controller_internal
sta <temp3
jsr read_controller_interna... |
; A065482: a(n) = round( 2^n/n ).
; Submitted by Jon Maiga
; 2,2,3,4,6,11,18,32,57,102,186,341,630,1170,2185,4096,7710,14564,27594,52429,99864,190650,364722,699051,1342177,2581110,4971027,9586981,18512790,35791394,69273666,134217728,260301048,505290270,981706811,1908874354,3714566310,7233629130,14096302920,27487790694,... |
;/*
; * FreeRTOS Kernel V10.1.1
; * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * 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,... |
db 0 ; species ID placeholder
db 65, 60, 110, 65, 130, 95
; hp atk def spd sat sdf
db ICE, ICE ; type
db 45 ; catch rate
db 184 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F12_5 ; gender ratio
db 100 ; unknown 1
db 35 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/glaceon/fron... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0
TITLE D:\Projects\TaintAnalysis\AntiTaint\Epilog\src\func-fparam.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
_DATA SEGMENT
$SG5417 DB '%f %f %f %s', 0aH, 00H
_DATA ENDS
PUBLIC ___... |
// Copyright (c) 2011-2017 The Cryptonote developers
// Copyright (c) 2014-2017 XDN developers
// Copyright (c) 2016-2017 BXC developers
// Copyright (c) 2017 UltraNote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.ph... |
; A166728: Positive integers with English names ending in "x".
; 6,26,36,46,56,66,76,86,96,106,126,136,146,156,166,176,186,196,206,226,236,246,256,266,276,286,296,306,326,336,346,356,366,376,386,396,406,426,436,446,456,466,476,486,496,506,526,536,546,556,566,576,586,596
mov $1,$0
mul $1,10
add $1,8
div $1,9
mul $1,10
... |
/*
* 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 ... |
/*
Copyright (c) 2007-2015 Contributors as noted in the AUTHORS file
This file is part of libzmq, the ZeroMQ core engine in C++.
libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Found... |
inw {z1} |
#include <cstdlib>
#include <cstdio>
#include <vector>
#include <sstream>
#include <iostream>
using namespace std;
int timing_seconds(string s)
{
int colon;
istringstream ss;
int min, sec;
colon = s.find(':');
if (colon == string::npos) return -1;
s[colon] = ' ';
ss.str(s);
if (!(ss >> min >> sec)) re... |
/**
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and relate... |
.INCLUDE "stage1.inc"
.BANK $7f
.ORG $1000-16
.dw $3000, $0000, $1000, $7f7f ; payload size and target address
.dw $1000, $7f7f, $0000, $0000 ; entry point and reserved
payload:
ai16
pea $0000
plb
plb
lda.w #$0000
sta.l $004200 ; Disable NMI and autojoy reads
sta.l $00420c ; Disable H-DMA
... |
; A052635: E.g.f. (1-3x)/(1-3x-x^2).
; Submitted by Jamie Morken(s4)
; 1,0,2,18,240,3960,78480,1814400,47940480,1425029760,47065536000,1709915961600,67769625369600,2909762279424000,134544087553075200,6665534018567424000,352236213903974400000,19777072162153033728000
mov $1,1
lpb $0
mov $2,$3
mul $3,3
add $3,$1
... |
0x0000 (0x000000) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0001 (0x000002) 0x291D- f:00024 d: 285 | OR[285] = A
0x0002 (0x000004) 0x211D- f:00020 d: 285 | A = OR[285]
0x0003 (0x000006) 0x841E- f:00102 d: 30 | P = P + 30 (0x0021), A = 0
... |
#ifndef skye_detail_boost_assertion_reporting_hpp
#define skye_detail_boost_assertion_reporting_hpp
#include <skye/detail/validator.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/execution_monitor.hpp>
namespace skye {
namespace detail {
/// Common logging function for Boost.Test reporting
inline void... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xedb7, %rbx
cmp $1377, %rdi
vmovups (%rbx), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %rsi
nop
nop
nop
and %r14, %r14
lea addresses_normal_ht+0x199b7, %rdi
n... |
include uXmx86asm.inc
option casemap:none
ifndef __X64__
.686P
.xmm
.model flat, c
else
.X64P
.xmm
option win64:11
option stackbase:rsp
endif
option frame:auto
.code
align 16
uXm_has_VAES proto VECCALL (byte)
align 16
uXm_has_VAES proc VECCALL (byte)
mov eax, 7
cp... |
; A064651: a(n) = ceiling(a(n-1)/2) + a(n-2) with a(0)=0 and a(1)=1.
; 0,1,1,2,2,3,4,5,7,9,12,15,20,25,33,42,54,69,89,114,146,187,240,307,394,504,646,827,1060,1357,1739,2227,2853,3654,4680,5994,7677,9833,12594,16130,20659,26460,33889,43405,55592,71201,91193,116798,149592,191594,245389,314289,402534,515556,660312,845712... |
; A040670: Continued fraction for sqrt(697).
; 26,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2,52,2,2
seq $0,40954 ; Continued fraction for sqrt(986).
mov $2,$0
mov $3,$0
mul $3,4
add $... |
; A040522: Continued fraction for sqrt(546).
; Submitted by Jon Maiga
; 23,2,1,2,1,2,46,2,1,2,1,2,46,2,1,2,1,2,46,2,1,2,1,2,46,2,1,2,1,2,46,2,1,2,1,2,46,2,1,2,1,2,46,2,1,2,1,2,46,2,1,2,1,2,46,2,1,2,1,2,46,2,1,2,1,2,46,2,1,2,1,2,46,2,1,2,1,2,46,2,1,2,1,2,46,2,1
mov $1,-82
pow $1,$0
mul $1,14
bin $1,2
mov $0,$1
div $0,9... |
; A036094: Centered cube numbers: (n+1)^16 + n^16.
; 1,65537,43112257,4338014017,156882857921,2973697798081,36054040477057,314707907280257,2134495165562497,11853020188851841,55949729863572161,230833988758608577,850300868078216257,2843369946992550977,8746361693522261761,25015152429422442241,67107935949376420097,17010072... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; size_t strlcpy(char * restrict s1, const char * restrict s2, size_t n)
;
; Copy at most n bytes from s2 to s1, including NUL.
; s1 is always terminated with NUL.
;
; Retur... |
; A138714: Add 1, modulo 10, to the decimal expansion of e, A001113.
; Submitted by Christian Krause
; 3,8,2,9,3,9,2,9,3,9,5,6,0,1,5,6,3,4,6,4,7,1,3,9,8,5,8,2,4,6,3,7,7,3,5,0,8,8,6,8,3,5,8,1,0,4,7,0,0,0,6,0,6,8,5,0,7,7,0,7,8,7,3,8,8,3,5,1,8,7,7,4,1,4,6,4,6,5,8,6,0,5,6,8,2,4,9,3,2,8,9,6,3,6,2,7,7,5,3,8
mov $1,2
mov $2,... |
;;;
;;; This is Suggested Project 7.9.2.2
;;; Basically do simple signed addition, subtraction, multiplication, modulo
;;; Pg. 136 for the problem
;;; Pg. 24 for Registers
;;; Pg. 48 for Data Types
SECTION .data
SUCCESS: equ 0 ; Default success value
SYS_EXIT: equ 60 ; Default system exit value
... |
; A106469: Expansion of (1+x^2)(1+2x)/(1-x^2).
; 1,2,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4
mov $1,$0
gcd $0,2
min $1,3
div $1,$0
mov $0,$1
add $0,1
|
// gixform.cpp: 实现坐标系管理类 GiTransform
// Copyright (c) 2004-2015, https://github.com/rhcad/vgcore, BSD License
#include "gixform.h"
#include "gilock.h"
//! GiTransform的内部数据
struct GiTransformImpl
{
int cxWnd; //!< 显示窗口宽度,像素
int cyWnd; //!< 显示窗口高度,像素
float ... |
/**
* Titik Data Type Driver File
*
*/
#include <iostream>
#include "../src/inc/titik2.h"
int main() {
Titik2 t(1.0f, 2.3f);
std::cout << t.getX() << " " << t.getY() << std::endl;
t.dilate(2);
std::cout << t.getX() << " " << t.getY() << std::endl;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.