text stringlengths 1 1.05M |
|---|
#include <LEException.h>
#include <Windows.h>
wchar_t unicode_oem852_dictionary[170]{0};
void unicode_to_oem852(wchar_t *source) {
if (!unicode_oem852_dictionary[0]) {
unicode_oem852_dictionary[0] = 224;
unicode_oem852_dictionary[32] = 162;
unicode_oem852_dictionary[49] = 164;
unicode_oem852_dictionary[50] ... |
# Load some data into memory
addi $t0, $zero, 15 # $t0 = 0xF
sw $t0, 0($zero) # Copy $t0 to memory[0]
addi $t1, $zero, 240 # $t1 = 0xF0
sw $t1, 4($zero) # Copy $t1 to memory[4]
# Do some calculations
# memory[8] = 0xF0 * (0xF + 0xF0)
add $t3, $t0, $t1 # $t3 = $t0 + $t1
lw $t4, 4($... |
#include "StaticLinesRenderSystem.h"
#include "components/StaticLinesRenderer.h"
void updateStaticLinesRenderSystem(Registry ®istry)
{
registry.view<StaticLinesRenderer>().each([](auto entity, const auto &staticLinesRenderer)
{
glBindBuffer(GL_ARRAY_BUFFER, staticLinesRenderer.vertexBuffer);
... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
; A178392: a(n) = (n^2-1)^2-1.
; 0,-1,8,63,224,575,1224,2303,3968,6399,9800,14399,20448,28223,38024,50175,65024,82943,104328,129599,159200,193599,233288,278783,330624,389375,455624,529983,613088,705599,808200,921599,1046528,1183743
pow $0,2
mov $1,$0
sub $1,2
mul $1,$0
|
.model small
.stack
.code
start:
; Start of background
mov ah, 06h
mov bh, 70h
mov ch, 00
mov cl, 00
mov dh, 32
mov dl, 80
int 10h
mov ah, 06h
mov bh, 00h
mov ch, 2
mov cl, 2
mov dh, 2
mov dl, 4
int 10h
mov ah, 06h
mov bh, 00h
mov ch, 2
mov cl, 7
mov dh, 2
mov dl, 9
int 10h
mov a... |
; A038797: T(n+4,n), array T as in A038792.
; 1,6,23,73,211,581,1560,4135,10890,28590,74946,196326,514123,1346148,3524441,9227311,24157645,63245795,165579930,433494205,1134902916,2971214796,7778741748,20365010748,53316290821,139583862066
add $0,3
lpb $0,1
add $3,$1
add $3,1
trn $3,$0
sub $0,1
add $1,$3
add... |
;
; jdmrgext.asm - merged upsampling/color conversion (64-bit AVX2)
;
; Copyright 2009, 2012 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2009, 2012, 2016, D. R. Commander.
; Copyright (C) 2015, Intel Corporation.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYA... |
/***************************************************************************************[Solver.cc]
Copyright (c) 2003-2006, Niklas Een, Niklas Sorensson
Copyright (c) 2007-2010, Niklas Sorensson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation ... |
; A111733: a(n) = a(n-1) + a(n-2) + 7 where a(0) = a(1) = 1.
; 1,1,9,17,33,57,97,161,265,433,705,1145,1857,3009,4873,7889,12769,20665,33441,54113,87561,141681,229249,370937,600193,971137,1571337,2542481,4113825,6656313,10770145,17426465,28196617,45623089,73819713,119442809
sub $0,1
mov $1,1
mov $2,1
lpb $0
sub $0,1
... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; gfx functions
;
; Videmo memory page handling
; void ozsetactivepage(byte page)
;
;
; ------
; $Id: ozsetactivepage.asm,v 1.1 2003/10/23 10:42:50 stefano Exp $
;
XLIB ozsetactivepage
XREF oz... |
%include "macros/patch.inc"
%include "macros/datatypes.inc"
%include "TiberianSun.inc"
; Changes the cursor for deployable units with repair weapons into
; "deploy" instead of guard when pointing at the unit itself
; by Rampastring
; 0x00656281 in UnitClass::What_Action calls TechnoClass::Combat_Dmaage
; and checks i... |
#include <iostream>
using namespace std;
bool prim(int n){
if(n==0 || n==1) return 0;
if(n==2) return 1;
if(n%2==0) return 0;
for(int d=3; d*d<=n; d=d+2)
if(n%d==0) return 0;
return 1;
}
int main(){
int n, x, k=0;
cin>>n;
for(int i=1; i<=n; i++){
cin>>x;... |
#include "logshots.hpp"
//bool Settings::LogShots::enabled = false;
std::deque<Shots> LogShots::shots;
std::deque<LoggedEvent> LogShots::eventList;
std::array<int, 64> LogShots::missedShots;
std::string HitgroupToString(int hitgroup)
{
switch((HitGroups) hitgroup)
{
case HitGroups::HITGROUP_GENERIC:... |
; A212978: Number of (w,x,y) with all terms in {0,...,n} and range = 2*n-w-x.
; 1,5,11,20,32,46,63,83,105,130,158,188,221,257,295,336,380,426,475,527,581,638,698,760,825,893,963,1036,1112,1190,1271,1355,1441,1530,1622,1716,1813,1913,2015,2120,2228,2338,2451,2567,2685,2806,2930
mov $6,$0
mov $0,1
mov $7,1
add $7,$6
mul... |
;------------------------------------------------------------------------------
;*
;* Copyright (c) 2006 - 2007, 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 th... |
; A130909: Simple periodic sequence (n mod 16).
; 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,8,9
mov $1,$0
mod $1,16
|
db DEX_JOLTEON ; pokedex id
db 65 ; base hp
db 65 ; base attack
db 60 ; base defense
db 130 ; base speed
db 110 ; base special
db ELECTRIC ; species type 1
db ELECTRIC ; species type 2
db 45 ; catch rate
db 197 ; base exp yield
INCBIN "pic/bmon/jolteon.pic",0,1 ; 66, sprite dimensions
dw JolteonPicFront
dw JolteonPicBa... |
push 1
push 2
stack
push 0
write
stack
push 1
write
stack
push 0
read
push 1
read
stack |
EXTERN bInitDebugBootMenuStep:QWORD
EXTERN bInitMoveMapListStep:QWORD
EXTERN ezSelectBotDebugBootMenuString:QWORD
EXTERN debugBootMenuStringModelViewer:QWORD
EXTERN debugBootMenuStringSoundTest:QWORD
EXTERN debugBootMenuStringMapViewer:QWORD
EXTERN debugBootMenuStringStageSelect:QWORD
EXTERN debugBootMenuStringAutoTest... |
; A047598: Numbers that are congruent to {3, 4, 5} mod 8.
; 3,4,5,11,12,13,19,20,21,27,28,29,35,36,37,43,44,45,51,52,53,59,60,61,67,68,69,75,76,77,83,84,85,91,92,93,99,100,101,107,108,109,115,116,117,123,124,125,131,132,133,139,140,141,147,148,149,155,156,157
mov $1,$0
div $1,3
mul $1,5
add $0,$1
add $0,3
|
/*
* Copyright 2010-2016 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... |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//版权所有(c)2011-2018比特币核心开发者
//根据MIT软件许可证分发,请参见随附的
//文件复制或http://www.opensource.org/licenses/mit-license.php。
#include <qt/... |
; A004656: Powers of 3 written in base 2.
; Submitted by Christian Krause
; 1,11,1001,11011,1010001,11110011,1011011001,100010001011,1100110100001,100110011100011,1110011010101001,101011001111111011,10000001101111110001,110000101001111010011,10010001111101101111001,110110101111001001101011,10100100001101011101000001,11... |
; A139329: a(n) = (factorial of the number of 0's in the binary expansion of n).
; Submitted by Christian Krause
; 1,1,1,1,2,1,1,1,6,2,2,1,2,1,1,1,24,6,6,2,6,2,2,1,6,2,2,1,2,1,1,1,120,24,24,6,24,6,6,2,24,6,6,2,6,2,2,1,24,6,6,2,6,2,2,1,6,2,2,1,2,1,1,1,720,120,120,24,120,24,24,6,120,24,24,6,24,6,6,2,120,24,24,6,24,6,6,2,... |
BITS 64
global population_count_u16
population_count_u16:
popcnt ax, di
ret
global population_count_u32
population_count_u32:
popcnt eax, edi
ret
global population_count_u64
population_count_u64:
popcnt rax, rdi
ret
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x22a7, %rsi
lea addresses_D_ht+0x679, %rdi
xor %r14, %r14
mov $27, %rcx
rep movsl
nop
add $51348, %rcx
lea addresses_normal_ht+0x6a81, %rsi
lea addresses_WT_ht+0x16e81, %rdi
no... |
#include "core/physics/body_template.h"
#include "core/physics/errors.h"
#include <fstream>
#include <sstream>
using namespace std;
namespace eversim { namespace core { namespace physics {
void body_template_loader::register_factory(std::string const& type, factory_ptr factory)
{
constraint_loaders[type] = move... |
TILESET_CHARSET_ALPHANUM_FG0_BG2_BANK_NUMBER = CURRENT_BANK_NUMBER
tileset_charset_alphanum_fg0_bg2:
; Tileset's size in tiles (zero means 256)
.byt (tileset_charset_alphanum_fg0_bg2_end-tileset_charset_alphanum_fg0_bg2_tiles)/16
tileset_charset_alphanum_fg0_bg2_tiles:
TILE_ALPHANUM_0 = (*-tileset_charset_alphanum_f... |
<%
from pwnlib.shellcraft.thumb.linux import syscall
%>
<%page args="when"/>
<%docstring>
Invokes the syscall stime. See 'man 2 stime' for more information.
Arguments:
when(time_t): when
</%docstring>
${syscall('SYS_stime', when)}
|
object_const_def ; object_event constants
TVStationElevator_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
TVStationElevator_ElevatorScript:
opentext
elevator .ElevatorData
closetext
iffalse .Done
pause 5
playsound SFX_ELEVATOR
earthquake 60
waitsfx
.Done:
end
.ElevatorData:
db 4 ; floors
elevfloor... |
LoadMenu: subroutine
jsr ClearState
ldx #$3f
PPU_SETADDR $23C0
.attr
lda #$55
sta PPU_DATA
dex
bne .attr
lda #$24
sta func0
sta PPU_ADDR
lda #$a7
sta func1
lda #$8a
sta PPU_ADDR
ldx #$b... |
/** @file
Implementation of Parent Proxy routing
@section license License
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 fil... |
; A141496: a(0)=1; a(1)=5; a(2)=11; a(n)=a(1)*a(n-1).
; 1,5,11,55,275,1375,6875,34375,171875,859375,4296875,21484375,107421875,537109375,2685546875,13427734375,67138671875,335693359375,1678466796875,8392333984375,41961669921875,209808349609375
mov $5,$0
mov $7,2
lpb $7,1
mov $0,$5
sub $7,1
add $0,$7
sub $0,1
... |
###############################################################################
# Copyright 2018 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") containe... |
// #include "event.h"
// void No::Event::Event::On(KEY key, VALUE value) {
// auto vec = _map.find(key);
// if (vec == _map.end()) {
// vector<shared_ptr<VALUE> v;
// v.push_back(value);
// _map.insert(map<KEY, vector<shared_ptr<VALUE>>::value_type(key, v));
// }
// vec->second... |
;--- display status of HDA controller
.386
.MODEL FLAT, stdcall
option casemap:none
option proc:private
?LOGCODEC equ 0
?SENDNULL equ 0
?HDCTL equ 0 ;display PCI register 0x40 (Intel ICH, bit 0: 0=AC97, 1=HDA)
lf equ 10
CStr macro text:vararg ;define a string in .code
local sym
.const
sym ... |
//push argument 1
@1
D=A
@2
A=D+M
D=M
@SP
A=M
M=D
@SP
M=M+1
//pop pointer 1
@4
D=A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
//push constant 0
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
//pop that 0
@0
D=A
@4
A=D+M
D=A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
//push constant 1
@1
D=A
@SP
A=M
M=D
@SP
M=M+1
//pop that 1
@1
D=A
@4
A=D+M
D=A
@R... |
global emu_rdmsr
global emu_wrmsr
global emu_cpuid
section .text
emu_rdmsr:
mov r9,rdx
rdmsr
mov [r9],rdx
mov [r8],rax
ret
emu_wrmsr:
mov rax,r8
wrmsr
ret
emu_cpuid:
mov r10,rcx
mov r11,rdx
mov rax,[r10]
cpuid
mov [r10],rax
mov [r11],rbx
mov [r8],rcx
mov [r9],rdx
ret |
PokemonTower6F_h:
db CEMETERY ; tileset
db POKEMON_TOWER_6F_HEIGHT, POKEMON_TOWER_6F_WIDTH ; dimensions (y, x)
dw PokemonTower6F_Blocks ; blocks
dw PokemonTower6F_TextPointers ; texts
dw PokemonTower6F_Script ; scripts
db 0 ; connections
dw PokemonTower6F_Object ; objects
|
; void __CALLEE__ *HeapAlloc_callee(void *heap, unsigned int size)
; 12.2006 aralbrec
SECTION code_clib
PUBLIC HeapAlloc_callee
PUBLIC _HeapAlloc_callee
PUBLIC ASMDISP_HEAPALLOC_CALLEE
.HeapAlloc_callee
._HeapAlloc_callee
pop hl
pop bc
ex (sp),hl
.asmentry
; Allocate memory from the indicated heap. First... |
// Generated by Haxe 4.2.2
#include <hxcpp.h>
#ifndef INCLUDED_flixel_math_FlxCallbackPoint
#include <flixel/math/FlxCallbackPoint.h>
#endif
#ifndef INCLUDED_flixel_math_FlxPoint
#include <flixel/math/FlxPoint.h>
#endif
#ifndef INCLUDED_flixel_util_IFlxDestroyable
#include <flixel/util/IFlxDestroyable.h>
#endif
#ifnde... |
; Small C+ Math Library
PUBLIC amax
EXTERN ldbchl
EXTERN compare
EXTERN ldfabc
;
; amax(a,b) returns the greater of a and b
.amax LD HL,8 ;offset for 1st argument
ADD HL,SP
CALL ldbchl ;bcixde := 1st argument
CALL ... |
; A289404: Binary representation of the diagonal from the corner to the origin of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 566", based on the 5-celled von Neumann neighborhood.
; 1,1,11,11,111,111,1111,1111,11111,11111,111111,111111,1111111,1111111,11111111,11111111,111111111,... |
#include "operators/operator.h"
#include "datatypes/pointcollection.h"
#include "util/exceptions.h"
#include "util/configuration.h"
#include "util/sha1.h"
#include <json/json.h>
#include <algorithm>
#include <string>
#include <memory>
#include <unordered_set>
#include <vector>
#include <iostream>
#include <pqxx/pqxx>
... |
; A088218: Total number of leaves in all rooted ordered trees with n edges.
; 1,1,3,10,35,126,462,1716,6435,24310,92378,352716,1352078,5200300,20058300,77558760,300540195,1166803110,4537567650,17672631900,68923264410,269128937220,1052049481860,4116715363800,16123801841550,63205303218876,247959266474052,973469712824056,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xae3d, %rsi
lea addresses_D_ht+0x11bdd, %rdi
nop
nop
nop
and %r14, %r14
mov $94, %rcx
rep movsb
and %r13, %r13
lea addresses_A_ht+0x136c9, %r9
nop
sub %rbx, %rbx
movups (%r9), %... |
class Solution {
public:
int numberOfArithmeticSlices(vector<int>& nums) {
bool flag=0; // nếu flag == 1 thì tập con thỏa mãn y/c
int n=nums.size();
if(n<3)return 0;
int ans=0;
for (int len = 3; len <= n; len++)
{
for (int i = 0; i <= n - len; i++) /... |
/*
* Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
* Copyright (C) 2003, 2007, 2008 Apple Inc. All Rights Reserved.
*
* This library 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; ei... |
; A005010: a(n) = 9*2^n.
; 9,18,36,72,144,288,576,1152,2304,4608,9216,18432,36864,73728,147456,294912,589824,1179648,2359296,4718592,9437184,18874368,37748736,75497472,150994944,301989888,603979776,1207959552,2415919104,4831838208,9663676416,19327352832,38654705664,77309411328,154618822656,309237645312,618475290624,123... |
; ===========================================================================
; ---------------------------------------------------------------------------
; Register usage throughout the AMPS codebase in most situations
; ---------------------------------------------------------------------------
; a0 - Dual PCM cue... |
#include "pch.h"
#include "giInternal.h"
#ifdef giSupportD3D11
#include <d3d11.h>
using Microsoft::WRL::ComPtr;
namespace gi {
class GraphicsInterfaceD3D11 : public GraphicsInterface
{
public:
GraphicsInterfaceD3D11(void *device);
~GraphicsInterfaceD3D11() override;
void release() override;
void* ... |
#ifndef RS_MODULARINTEGER_INL
#define RS_MODULARINTEGER_INL
#include "ModularInteger.h" // why is this include needed? maybe it's not
using namespace RSLib;
// construction/destruction:
template<class T>
rsModularInteger<T>::rsModularInteger(rsUint64 initialValue, rsUint64 modulusToUse)
{
modulus = modulusToUse;
... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Stefano Bodrato 19/7/2007
;
;
; $Id: w_multipoint_callee.asm $
;
; CALLER LINKAGE FOR FUNCTION POINTERS
; ----- bool multipoint(int hv, int length, int x, int y)
;Usage:
;pick a vertical or horizontal bit bar, up to 16 bits long
SECTION co... |
//#ifdef _MD_WEB_SERVER_H_
#include <md_webserver.h>
#define WIFI_DEBUG_MODE CFG_DEBUG_NONE
#ifndef WIFI_DEBUG_MODE
#define WIFI_DEBUG_MODE CFG_DEBUG_STARTUP
#endif
#ifndef WIFI_DEBUG_MODE
#define WIFI_DEBUG_MODE CFG_DEBUG_ACTIONS
#endif
// --- declaration
#define WS_IDX_... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... |
## Debug fullscreen
# Debug fullscreen access pattern on the framebuffer using VPM writes to the framebuffer
# Visualizes how fullscreen mode traverses the screen
# Use mode full (-m full) to execute
.include "vc4.qinc"
# Uniforms
.set srcAddr, ra0
.set tgtAddr, ra1
.set srcStride, rb0
.set tgtStride, rb1
.set lineWi... |
#include <zxcvbn/feedback.hpp>
#include <zxcvbn/frequency_lists.hpp>
#include <zxcvbn/optional.hpp>
#include <zxcvbn/scoring.hpp>
#include <zxcvbn/util.hpp>
#include <regex>
namespace zxcvbn {
static
optional::optional<Feedback> get_match_feedback(const Match & match, bool is_sole_match);
static
Feedback get_dicti... |
;
; OPN2 on SFG + turboR PCM driver
;
OPN2OnSFGTurboRPCM_CLOCK: equ 7670453
OPN2OnSFGTurboRPCM: MACRO
super: Driver Device_noName, OPN2OnSFGTurboRPCM_CLOCK, OPN2OnSFGTurboRPCM_PrintInfoImpl
opnFMOnSFGDriver:
dw 0
turboRPCMDriver:
dw 0
; e = register
; d = value
SafeWriteRegister: PROC
ld a,e
cp 2AH
jp... |
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2020, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
w... |
// (C) Copyright David Abrahams 2001.
// 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)
// See http://www.boost.org for most recent version including documentation.
// Revision History
// 1 Apr 2001 Fixes fo... |
; Day-33 Date-28/05/2021
; reverse order print of 8 chars/digits
.model small
.stack 100h
include 'emu8086.inc'
.data
n_line db 0ah,0dh,"$"
.code
main proc
mov ax,@data
mov ds,ax
mov dx,0
mov cx,8
mov ax,0
mov bx,0
@input:
mov ah,1
int 21h
;add ax,'0'
push ax
xor ax,a... |
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; Quicky to make network progs quicker
SECTION code_l_sccz80
PUBLIC l_ghtonsint
l_ghtonsint:
ld a,(hl)
inc hl
ld l,(hl)
ld h,a
ret
|
; Z88 Small C+ Run Time Library
; Long functions
;
SECTION code_l_sccz80
PUBLIC l_long_lneg
EXTERN error_lznc
l_long_lneg:
; deHL = !deHL
; set carry if result true and return val in dehl
ld a,h
or l
or e
or d
jp nz, error_lznc
inc l
scf
ret
|
;; @file
;
; Copyright 2006 - 2010 Unified EFI, Inc.<BR>
; Copyright (c) 2010, 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. The full text... |
db WEEDLE ; pokedex id
db 40 ; base hp
db 35 ; base attack
db 30 ; base defense
db 50 ; base speed
db 20 ; base special
db BUG ; species type 1
db POISON ; species type 2
db 255 ; catch rate
db 52 ; base exp yield
INCBIN "pic/gsmon/weedle.pic",0,1 ; 55, sprite dimensions
dw WeedlePicFront
dw WeedlePicBack
; attacks kno... |
; A060488: Number of 4-block ordered tricoverings of an unlabeled n-set.
; 4,13,28,50,80,119,168,228,300,385,484,598,728,875,1040,1224,1428,1653,1900,2170,2464,2783,3128,3500,3900,4329,4788,5278,5800,6355,6944,7568,8228,8925,9660,10434,11248,12103,13000,13940,14924,15953,17028,18150,19320,20539,21808,23128,24500,25925,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x14db4, %r13
nop
nop
and $55807, %r9
mov $0x6162636465666768, %rax
movq %rax, (%r13)
nop
and %r9, %r9
lea addresses_WT_ht+0x5fd4, %rsi
lea addresses_normal_ht+0x303, %rdi
nop
n... |
/*
* Copyright (c) 2015 - 2022, Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "CNLIOGroup.hpp"
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <map>
#include <memory>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "geopm/Ex... |
db DEX_MUK ; pokedex id
db 105 ; base hp
db 105 ; base attack
db 75 ; base defense
db 50 ; base speed
db 65 ; base special
db POISON ; species type 1
db POISON ; species type 2
db 75 ; catch rate
db 157 ; base exp yield
INCBIN "pic/ymon/muk.pic",0,1 ; 77, sprite dimensions
dw MukPicFront
dw MukPicBack
; attacks known a... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1df7e, %rsi
lea addresses_D_ht+0x2652, %rdi
nop
nop
nop
nop
cmp %r11, %r11
mov $121, %rcx
rep movsq
nop
nop
nop
nop
and $9052, %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r11
ret
.global s_faulty_l... |
bits 32
section .text
align 4
dd 0x1BADB002
dd 0x00
dd - (0x1BADB002+0x00)
global start
extern kmain
start:
cli
call kmain
hlt
|
; A195312: Multiples of 9 and odd numbers interleaved.
; 0,1,9,3,18,5,27,7,36,9,45,11,54,13,63,15,72,17,81,19,90,21,99,23,108,25,117,27,126,29,135,31,144,33,153,35,162,37,171,39,180,41,189,43,198,45,207,47,216,49,225,51,234,53,243,55,252,57,261,59,270,61,279,63,288,65,297,67,306,69,315,71,324,73,333,75,342,77,351,79,36... |
;Testname=unoptimized; Arguments=-fbin -oriprel.bin -O0; Files=stdout stderr riprel.bin
;Testname=optimized; Arguments=-fbin -oriprel.bin -Ox; Files=stdout stderr riprel.bin
bits 64
default abs
mov al,[foo]
mov bl,[foo]
mov ax,[foo]
mov bx,[foo]
mov eax,[foo]
mov ebx,[foo]
mov rax,[foo]
mov r... |
#include "triggerbot.h"
// used: cheat variables
#include "../core/variables.h"
// used: max distance, classindex, itemdefinitionindex
#include "../sdk/definitions.h"
// used: angle/vector calculations
#include "../utilities/math.h"
// used: is key pressed for bind
#include "../utilities/inputsystem.h"
// used: convar... |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/ui/scenic/lib/scheduling/frame_stats.h"
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.h>
#include <lib/async/cpp/exe... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: GrObj
MODULE: GrObj
FILE: grobjGeometry.asm
AUTHOR: Steve Scholl, Mar 3, 1992
Routines:
Name Description
---- -----------
GrObjBeginGeometryCommon
GrObjE... |
section .realmode
int_08_ticks_counter: dd 0
int_08_isr:
bits 16
inc dword [cs:int_08_ticks_counter]
int 0x80 ; call callback
iret
bits 32
global pit_sleep_and_quit_on_keypress
pit_sleep_and_quit_on_keypress:
; Hook int 0x08
mov edx, dword [0x08*4]
mov dword [0x80*4], edx
mov ed... |
; A061983: 3^n - (3n^2 + n + 2)/2.
; 0,0,1,11,54,202,671,2109,6460,19556,58893,176959,531218,1594062,4782667,14348561,43046328,129139720,387419993,1162260915,3486783790,10460352530,31381058871,94143178021,282429535604,847288608492,2541865827301,7625597483879,22876792453770,68630377363606,205891132093283,617673396282489... |
;
; jdsample.asm - upsampling (64-bit SSE2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2009, 2016, D. R. Commander.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice i... |
// Example of inline kickasm in a function
// Commodore 64 PRG executable file
.file [name="inline-kasm-loop.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:Basic... |
subttl emtrig.asm - Trig functions sine, cosine, tangent
page
;*******************************************************************************
; Copyright (c) Microsoft Corporation 1991
; All Rights Reserved
;
;emtrig.asm - Trig functions sine, cosine, tangent
; by Tim Paterson
;
;Purpose:
; FCOS, FPTAN, ... |
; A189706: Fixed point of the morphism 0->011, 1->001.
; 0,1,1,0,0,1,0,0,1,0,1,1,0,1,1,0,0,1,0,1,1,0,1,1,0,0,1,0,1,1,0,0,1,0,0,1,0,1,1,0,0,1,0,0,1,0,1,1,0,1,1,0,0,1,0,1,1,0,0,1,0,0,1,0,1,1,0,0,1,0,0,1,0,1,1,0,1,1,0,0,1,0,1,1,0,0,1,0,0,1,0,1,1,0,1,1,0,0,1,0,1,1,0,1,1,0,0,1,0,1,1,0,0,1,0,0,1,0,1,1,0,1
mul $0,2
cal $0,15... |
//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "GUI/BsGUITexture.h"
#include "2D/BsImageSprite.h"
#include "... |
.MODEL SMALL
.STACK 100H
.DATA
MSG1 DB 'ENTER A NUMBER IN HEX (A-F) : $'
MSG2 DB 0DH,0AH,'NUMBER IN DECIMAL IS: $'
.CODE
MAIN PROC
MOV DX,0
MOV AH,1
INT 21H
WHILE_:
CMP AL,0DH
JE EXIT
INC DX
INT 21H
JMP WHILE_
EXIT:
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN
... |
; A171662: a(n) = floor((2*n^2 + n)/6).
; 0,0,1,3,6,9,13,17,22,28,35,42,50,58,67,77,88,99,111,123,136,150,165,180,196,212,229,247,266,285,305,325,346,368,391,414,438,462,487,513,540,567,595,623,652,682,713,744,776,808,841,875,910,945,981,1017,1054,1092,1131,1170,1210,1250,1291,1333,1376,1419,1463,1507,1552,1598,1645,16... |
;
; Paging
;
; init_pt.asm
;
; Initialize the page table
;
; The Page Table has 4 components which will be mapped as follows:
;
; PML4T -> 0x1000 (Page Map Level 4 Table)
; PDPT -> 0x2000 (Page Directory Pointer Table)
; PDT -> 0x3000 (Page Directory Table)
; PT -> 0x4000 (Page table)
;
; Clear the memory in th... |
TITLE FAKELEDA - Copyright (c) SLR Systems 1994
INCLUDE MACROS
INCLUDE SEGMENTS
PUBLIC FAKE_LEDATA,LEDATA_CONT,FAKE_LEDATA_COMDAT
.DATA
EXTERNDEF LDATA_TYPE:BYTE
EXTERNDEF END_OF_RECORD:DWORD,LDATA_LENGTH:DWORD,LDATA_SEGMOD_GINDEX:DWORD,DEFAULT_SIZE:DWORD
EXTERNDEF LAST_DATA_PTR:DWORD,LDATA_LOC:DW... |
; A032809: Numbers whose set of base-9 digits is {2,3}.
; Submitted by Simon Strandgaard
; 2,3,20,21,29,30,182,183,191,192,263,264,272,273,1640,1641,1649,1650,1721,1722,1730,1731,2369,2370,2378,2379,2450,2451,2459,2460,14762,14763,14771,14772,14843,14844,14852,14853,15491,15492,15500,15501,15572,15573,15581,15582,21323... |
; A037510: Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,0.
; Submitted by Christian Krause
; 1,11,99,892,8030,72270,650431,5853881,52684929,474164362,4267479260,38407313340,345665820061,3110992380551,27998931424959,251990382824632,2267913445421690
mov $2,1
lpb $0
su... |
; A065221: Fill a triangular array by rows by writing numbers 1 up to b(0), 1 up to b(1), etc., where b(n) are the pentagonal numbers. The final elements of the rows form a(n).
; Submitted by Jamie Morken(s3)
; 1,2,5,4,9,3,10,18,5,15,26,3,16,30,45,10,27,45,64,14,35,57,80,12,37,63,90,1,30,60,91,123,11,45,80,116,153,15,5... |
/* Template Author:Simon McCallum
Notes:
Created for the IMT2531 Graphics Exam 2015
To get the naming right I have set.
Project-> Properties -> Configuration properties -> General -> Target name = exam2016.exe
Project-> Properties -> Configuration properties -> Debugging -> Commande Arguments = level01.dat
I suggest... |
Name: zel_mjdt.asm
Type: file
Size: 18338
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: B0445187F84D5A83FC558138B483E4B43C3BE60E
Description: null
|
// push constant 3030
@3030
D=A
@SP
AM=M+1
A=A-1
M=D
// pop pointer 0
@THIS
D=A
@R13
M=D
@SP
M=M-1
A=M
D=M
@R13
A=M
M=D
// push constant 3040
@3040
D=A
@SP
AM=M+1
A=A-1
M=D
// pop pointer 1
@THAT
D=A
@R13
M=D
@SP
M=M-1
A=M
D=M
@R13
A=M
M=D
// push constant 32
@32
D=A
@SP
AM=M+1
A=A-1
M=D
// pop this 2
@2
D=A... |
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
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 applica... |
// Copyright (c) 2012-2019 The Cedicoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <addrdb.h>
#include <addrman.h>
#include <clientversion.h>
#include <test/setup_common.h>
#include <string>
#includ... |
RED EQU 04h
GREEN EQU 02h
LIGHTRED EQU 0Ch
LIGHTGREEN EQU 0Ah
LIGTHBLUE EQU 09h
DATASG SEGMENT PARA 'Data'
STRING DB 'LUCKY'
DATASG ENDS
CODESG SEGMENT PARA 'Code'
ASSUME CS: CODESG, DS:DATASG, SS: CODESG
ORG 100H
MAI... |
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Fill.asm
// Runs an infinite loop that listens to the keyboard input.
// When a key is pressed (any key), the program blackens the screen,
// i.e. writes... |
BITS 32
GLOBAL _start
_start:
cld
call get_find_function
strings:
db "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", 0x0
reg_values:
db "1004120012011001"
url:
db "C:\progra~1\intern~1\iexplore -new", 0x0
get_find_function:
call startup
find_function:
pushad
... |
// license:BSD-3-Clause
// copyright-holders:intealls, R.Belmont
/***************************************************************************
pa_sound.c
PortAudio interface.
*******************************************************************c********/
#include "sound_module.h"
#include "modules/osdmodule.h"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.