text stringlengths 1 1.05M |
|---|
; A190038: Number of nondecreasing arrangements of n+2 numbers in 0..6 with the last equal to 6 and each after the second equal to the sum of one or two of the preceding three.
; 10,18,30,47,72,107,151,203,263,331,407,491,583,683,791,907,1031,1163,1303,1451,1607,1771,1943,2123,2311,2507,2711,2923,3143,3371,3607,3851,41... |
#include <catch2/catch2.hpp>
#include <cpuemu/common/memory.hpp>
#define TAGS "[common][memory]"
namespace emu
{
TEST_CASE("Memory", TAGS)
{
constexpr uint64_t Length = 65536;
Memory<Length> mem;
SECTION("memory has the proper size")
{
using std::size;
REQUIRE(size(mem.data) == Leng... |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// http://code.google.com/p/protobuf/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistri... |
; ::: include
#ruledef reg
{
a => 0xaa
b => 0xbb
}
#ruledef
{
emit {r: reg} => r`8
test {r: reg} => asm { emit {r} }
}
; :::
emit a ; = 0xaa
emit b ; = 0xbb
test a ; = 0xaa
test b ; = 0xbb
; :::
test c ; error: no match
; :::
test 0x12 ; error: no match
; ::: include
; :::
#ruledef reg
{
a ... |
// Copyright (c) 2014 Martin Stumpf
//
// 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 "maps_image_generator.hpp"
#include "../../../../opencl.hpp"
#include <hpx/lcos/when_all.hpp>
#include <cmat... |
TITLE C32MOVES - Copyright (c) SLR Systems, Inc 1994
INCLUDE MACROS
if fg_dospack OR fg_winpack
INCLUDE SECTS
INCLUDE SLR32
PUBLIC MOVE_EAX_TO_COMPRESS_OUTPUT,?_KEEP_QUIK_COMPRESSED
.DATA
EXTERNDEF OVL_PANIC_PARAS:DWORD,OVL_DELTA_PARAS:DWORD,OVL_LIMIT:DWORD,NEXT_AVAIL_2:DWORD
EXTERNDEF NEXT_AVAIL... |
; A171623: Floor(n-th composite / n).
; 4,3,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
add $0,3
mov $1,9
div $1,$0
add $1,1
mov $0,$1
|
;
; ANSI Video handling for the Amstrad CPC
;
; Clean a text line
;
; Stefano Bodrato - Jul. 2004
;
; in: A = text row number
;
;
; $Id: f_ansi_dline.asm,v 1.3 2009/06/22 21:44:17 dom Exp $
;
XLIB ansi_del_line
INCLUDE "cpcfirm.def"
.ansi_del_line
ld a,$11
call firmware
... |
; A117451: Expansion of (1-x+x^2+x^5)/((1-x)(1-x^5)).
; 1,0,1,1,1,3,2,3,3,3,5,4,5,5,5,7,6,7,7,7,9,8,9,9,9,11,10,11,11,11,13,12,13,13,13,15,14,15,15,15,17,16,17,17,17,19,18,19,19,19,21,20,21,21,21,23,22,23,23,23,25,24,25,25,25,27,26,27,27,27,29,28,29,29,29,31,30,31
mul $0,2
mov $2,2
lpb $0,1
sub $0,1
trn $0,2
add... |
; PRAVALLIKA SALADI
; 119EC0013
; ========== Finding Maximum and Minimum Numbers ========
include 'emu8086.inc'
org 100h
mov... |
SECTION code_graphics
PUBLIC w_pixeladdress_320
PUBLIC w_pixeladdress_640
; Entry:
; hl = x
; de = y
; Exit:
; hl = address
; a = bit number
; fz = 1 if bit number is 0
w_pixeladdress_320:
ld b,l
call pixel_address
ld ... |
/************************************************************************
Handy 3D geometrical primitives
$Id: geom3d.cxx 427 2004-09-27 04:45:31Z garland $
************************************************************************/
#include <gfx/gfx.h>
#include <gfx/geom3d.h>
#include <gfx/mat4.h>
namespace gf... |
clr r0
r2m r0 0
rset r0 4
r2m r0 0
m2r r0 0
r2o r0 o0
|
; A211786: n^3 + floor(n^3/2).
; 1,12,40,96,187,324,514,768,1093,1500,1996,2592,3295,4116,5062,6144,7369,8748,10288,12000,13891,15972,18250,20736,23437,26364,29524,32928,36583,40500,44686,49152,53905,58956,64312,69984,75979,82308,88978,96000,103381,111132,119260,127776,136687,146004,155734,165888,176473,187500,198976,2... |
; A103326: a(n) = Fibonacci(5n)/Fibonacci(n).
; 5,55,305,2255,15005,104005,709805,4873055,33379505,228841255,1568358005,10750060805,73681030805,505019869255,3461450947505,23725155368255,162614587921805,1114577087604805,7639424691459005,52361396626646255
cal $0,127546 ; a(n) = F(n)^2 + F(n+1)^2 + F(n+2)^2, where F(n) d... |
/* Copyright 2018 The TensorFlow Authors. 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 by applicable law or a... |
; Copyright (C) 2018 Matt Currie <me@mattcurrie.com>
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, mer... |
; A243581: Integers of the form 8k + 7 that can be written as a sum of four distinct squares of the form m, m + 2, m + 3, m + 4, where m == 2 (mod 4).
; 119,351,711,1199,1815,2559,3431,4431,5559,6815,8199,9711,11351,13119,15015,17039,19191,21471,23879,26415,29079,31871,34791,37839,41015,44319,47751,51311,54999,58815,62... |
// Copyright (C) 2002-2012 Thomas Alten
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
/*
Based on Code from Copyright (c) 2003 Randy Reddig
Based on code from Nvidia's DDS example:
http://www.nvidia.com/object/dxtc_decompression... |
; A144612: Sturmian word of slope (3-sqrt(3))/2.
; 1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,0,1,1
add $0,1
seq $0,245222 ; Continued fraction of the constant c in A24... |
###############################################################################
# Copyright 2019 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... |
//------------------------------------------------------------------------------
//
// Copyright (c) 2008 - 2009, Apple Inc. 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 dis... |
// Copyright 2012 the V8 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.
#include "src/x64/assembler-x64.h"
#include <cstring>
#if V8_TARGET_ARCH_X64
#if V8_LIBC_MSVCRT
#include <intrin.h> // _xgetbv()
#endif
#if V8_OS_MA... |
/**
* @file static_u8string.hpp
*
* @brief static_u8string の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_STATIC_STRING_STATIC_U8STRING_HPP
#define BKSGE_FND_STATIC_STRING_STATIC_U8STRING_HPP
#include <bksge/fnd/static_string/basic_static_string.hpp>
#include <bksge/fnd/config.hpp>
#include <cstdde... |
SECTION code_clib
SECTION code_sound_bit
PUBLIC _bitfx_2
EXTERN asm_bit_beep_raw
_bitfx_2:
; Strange squeak hl=300,de=2
; Game up hl=300,de=10 inc de
; - like a PACMAN sound
ld b,1
fx6_1:
push bc
ld de,10
ld hl,300
fx6_2:
push de
push hl
call asm_bit_beep_raw
pop h... |
.MODEL SMALL
.STACK 100H
.DATA
PROMPT DB 'Digits: $'
PROMPT2 DB 'Sum: $'
SUM DW 0h
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
LEA DX, PROMPT
MOV AH, 9
INT 21H
MOV CX, 10
MOV AH, 2
... |
_echo: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
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 pushl -0x4(%ecx)
a: 55 ... |
SECTION code_clib
SECTION code_stdio
PUBLIC __stdio_printf_llu
EXTERN __stdio_printf_number_tail_ulonglong
__stdio_printf_llu:
; %llu converter called from vfprintf()
;
; enter : ix = FILE *
; hl = void *stack_param
; de = void *buffer_digits
; stack = buffer_digits, width... |
; A040019: Continued fraction for sqrt(24).
; 4,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1
pow $0,4
mov $1,$0
trn $1,4
sub $1,4
gcd $0,$1
|
;; test of default output file name in normal input file mode
; enable output into default output file ("dir_output_default_name.out")
OUTPUT
DB 'test'
|
//===-- MICmdCmd.cpp --------------------------------------------*- C++ -*-===//
//
// 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
//
//===---------------------------... |
; ---------------------------------------------------------------------------
; Subroutine to animate level graphics
; ---------------------------------------------------------------------------
; ||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||
AnimateLevelGfx:
tst.w (f_pause).w ; is th... |
; *******************************************************************************************
; *******************************************************************************************
;
; Name : dec.asm
; Purpose : Convert string to number (hexadecimal)
; Date : 22nd August 2019
; Review : 1st September 201... |
; A170290: Number of reduced words of length n in Coxeter group on 41 generators S_i with relations (S_i)^2 = (S_i S_j)^41 = I.
; 1,41,1640,65600,2624000,104960000,4198400000,167936000000,6717440000000,268697600000000,10747904000000000,429916160000000000,17196646400000000000,687865856000000000000,2751463424000000000000... |
; A010018: a(0) = 1, a(n) = 28*n^2 + 2 for n>0.
; 1,30,114,254,450,702,1010,1374,1794,2270,2802,3390,4034,4734,5490,6302,7170,8094,9074,10110,11202,12350,13554,14814,16130,17502,18930,20414,21954,23550,25202,26910,28674,30494,32370,34302,36290,38334,40434,42590,44802,47070,49394,51774,54210,56702,59250,61854,64514,6723... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1406f, %rsi
lea addresses_normal_ht+0x1d957, %rdi
nop
nop
nop
xor $35701, %r10
mov $51, %rcx
rep movsb
nop
cmp $34762, %r13
lea addresses_WC_ht+0x4a2f, %rbp
clflush (%rbp)
nop... |
;---------------------------------------------
; Binary Data
;---------------------------------------------
rootPath db "/",#00
binPath db "/bin",#00
fontsPath db "/fonts",#00
libsPath db "/libs",#00
localePath db "/locale",#00
systemPath db "/system",#00
cdBinPath db "/bin/"
cibPath db " "
cibFile ... |
;
; 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... |
///////////////////////////////////////////////////////////////////////////
// DirDialog.cpp: implementation of the CDirDialog class.
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#define RESOURCERDOC_DLL
#include "DirDialog.h"
#include "shlobj.h"
#include "Standard/CharSt... |
#include "castel/runtime/boxes/Class.hh"
#include "castel/runtime/Box.hh"
using namespace castel;
using runtime::Box;
bool Box::operatorBoolCast( void )
{
return false;
}
runtime::Box * Box::operatorPositive( void )
{
return nullptr;
}
runtime::Box * Box::operatorNegative( void )
{
return nullptr;
}
ru... |
; Substring assigment eg. LET a$(p0 TO p1) = "xxxx"
; HL = Start of string
; TOP of the stack -> p1 (16 bit, unsigned)
; TOP -1 of the stack -> p0 register
; TOP -2 Flag (popped out in A register)
; A Register => 0 if HL is not freed from memory
; => Not 0 if HL must be freed from memory on exit
; TOP -3 B$ addr... |
; A045801: 1-ish numbers (end in 11, 39, 73, 77).
; 11,39,73,77,111,139,173,177,211,239,273,277,311,339,373,377,411,439,473,477,511,539,573,577,611,639,673,677,711,739,773,777,811,839,873,877,911,939,973,977,1011,1039,1073,1077,1111,1139,1173,1177,1211,1239,1273,1277,1311,1339,1373,1377,1411,1439,1473,1477,1511,1539,15... |
; A139172: Natural numbers of the form (n!-2)/2.
; 0,2,11,59,359,2519,20159,181439,1814399,19958399,239500799,3113510399,43589145599,653837183999,10461394943999,177843714047999,3201186852863999,60822550204415999,1216451004088319999,25545471085854719999,562000363888803839999,12926008369442488319999,310224200866619719679... |
bits 64
push ax
pop ax
push rax
pop rax
push word 0x7F
push dword 0x7FFF
push qword 0x7FFFFFFF
push word [rbx]
pop word [rbx]
push word [ebx]
pop word [ebx]
push qword [rbx]
pop qword [rbx]
push ... |
; A158544: a(n) = 24*n^2 - 1.
; Submitted by Christian Krause
; 23,95,215,383,599,863,1175,1535,1943,2399,2903,3455,4055,4703,5399,6143,6935,7775,8663,9599,10583,11615,12695,13823,14999,16223,17495,18815,20183,21599,23063,24575,26135,27743,29399,31103,32855,34655,36503,38399,40343,42335,44375,46463,48599,50783,53015,55... |
;*****************************************************************
;* - Description: Device definition file for RC Calibration
;* - File: t85.asm
;* - AppNote: AVR053 - Production calibration of the
;* RC oscillator
;*
;* - Author: Atmel Corporation: http://www.atmel.com
;* ... |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/memory/raw_ptr.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "base/json/json_reader.h"
#include "base/one_shot_... |
; A079949: Special values of Hermite polynomials.
; Submitted by Jamie Morken(s1)
; 1,6,38,252,1740,12456,92136,702288,5503632,44258400,364615776,3072862656,26458723008,232501041792,2082933048960,19007627463936,176533756252416,1667446616360448,16006827410744832,156069042653445120,1544673697528974336,1551080389131165081... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x8c44, %r12
nop
nop
nop
nop
xor $60574, %r10
mov $0x6162636465666768, %rsi
movq %rsi, %xmm5
movups %xmm5, (%r12)
nop
xor $3691, %r8
lea addresses_UC_ht+0x6444, %rsi
lea addresse... |
%ifdef CONFIG
{
"RegData": {
"MM6": ["0xF000000000000000", "0xBFFF"],
"MM7": ["0xC000000000000000", "0x4000"]
},
"Mode": "32BIT"
}
%endif
lea edx, [data]
fld tword [edx + 8 * 0]
fxtract
hlt
align 8
data:
dt -15.0
dq 0
|
; A024312: a(n) = s(1)s(n) + s(2)s(n-1) + ... + s(k)s(n+1-k), where k=[ (n+1)/2) ], s = (natural numbers >= 3).
; 9,12,31,38,70,82,130,148,215,240,329,362,476,518,660,712,885,948,1155,1230,1474,1562,1846,1948,2275,2392,2765,2898,3320,3470,3944,4112,4641,4828,5415,5622,6270,6498,7210,7460,8239,8512,9361,9658,10580,10902... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_SF|FLAG_ZF|FLAG_AF|FLAG_PF
;TEST_FILE_META_END
; IMUL64rr
mov ebx, 0x20000
mov ecx, 0x34
;TEST_BEGIN_RECORDING
imul ebx, ecx
;TEST_END_RECORDING
|
/*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <type_traits>
/** \ingroup common
@{
\defgroup defs Common Definitions
@{
*/
/**
@file
... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %rbp
push %rbx
push %rdx
push %rsi
// Store
mov $0x1261a80000000543, %r10
nop
nop
nop
nop
sub $30833, %rsi
mov $0x5152535455565758, %r12
movq %r12, %xmm1
movups %xmm1, (%r10)
nop
nop
add $19807... |
/*
*
* Copyright (c) 2021 Project CHIP Authors
*
* 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 requir... |
; ***************************************************************************************
; ***************************************************************************************
;
; Name : data.asm
; Author : Paul Robson (paul@robsons.org.uk)
; Date : 5th January 2019
; Purpose : Data area
;
; ***************... |
; A294486: a(n) = binomial(2n,n) * (2n+1)^2.
; 1,18,150,980,5670,30492,156156,772200,3719430,17551820,81477396,373173528,1690097500,7582037400,33738060600,149067936720,654576544710,2858667619500,12423860225700,53760146239800,231720014946420,995238809839560,4260800401533000
mov $1,$0
add $1,$0
bin $1,$0
mov $2,$0
add $... |
copyright zengfr site:http://github.com/zengfr/romhack
002A44 cmpi.b #$4, ($29,A1) [base+2A6, base+2C6, base+2E6]
002A4A bne $2a84 [123p+ 29, enemy+29]
002A52 bne $2a84 [123p+ 29, enemy+29]
002C2A move.b (A1), D1 [base+2A6, base+2C6, base+2E6]
002C2C move.b D1, ($c,A4) [123p+ 29]
007B24 cmpi.b #$4, ($... |
_RocketElevatorText_4578b::
text "It appears to"
line "need a key.@"
text_end
|
; 16-bit print function
;
; Parameters:
; BX - address of string to be printed
;
; Print is performed with the help of a BIOS function (interrupt 0x10)
print:
pusha
mov ah, 0x0e ; Tell BIOS to output in tele-type mode
print_char:
mov al, [bx] ; Move first character of string into AL for pr... |
bits 64
global asm_get_cr2
asm_get_cr2:
mov rax, cr2
ret
|
; AcessOS Microkernel Version
; Start.asm
[bits 32]
KERNEL_BASE equ 0xC0000000
%define MAX_CPUS 16
[extern __load_addr]
[extern __bss_start]
[extern gKernelEnd]
[section .multiboot]
mboot:
; Multiboot macros to make a few lines later more readable
MULTIBOOT_PAGE_ALIGN equ 1<<0
MULTIBOOT_MEMORY_INFO equ 1<<1
MULT... |
; A091999: Numbers that are congruent to {2, 10} mod 12.
; 2,10,14,22,26,34,38,46,50,58,62,70,74,82,86,94,98,106,110,118,122,130,134,142,146,154,158,166,170,178,182,190,194,202,206,214,218,226,230,238,242,250,254,262,266,274,278,286,290,298,302,310,314,322,326,334
mov $1,$0
mul $1,3
add $1,1
div $1,2
mul $1,4
add $1,2... |
%define BPM 100
%include "../src/sointu.inc"
BEGIN_PATTERNS
PATTERN 80, HLD, HLD, HLD, HLD, HLD, HLD, HLD, HLD, HLD, HLD, 0, 0, 0, 0, 0
END_PATTERNS
BEGIN_TRACKS
TRACK VOICES(1),0
END_TRACKS
BEGIN_PATCH
BEGIN_INSTRUMENT VOICES(1) ; Instrument0
SU_ENVELOPE MONO,ATTAC(80),DECAY(80),SUSTAIN(64),R... |
; A229489: Conjecturally, possible differences between prime(k)^2 and the next prime for some k.
; 1,2,4,6,10,12,16,18,22,24,28,30,34,36,40,42,46,48,52,54,58,60,64,66,70,72,76,78,82,84,88,90,94,96,100,102,106,108,112,114,118,120,124,126,130,132,136,138,142,144,148,150,154,156,160,162,166,168,172,174
mov $1,$0
trn $0,2... |
data_base:
pm_msg:
db "Message from protected mode.", 0
pm_msg_to_exit:
db "Press enter for switch to real mode", 0
pm_exit_msg:
db "Protected mode exited. Returned to real mode.", 0
pm_memory_detected_size:
db "Memory size: ", 0
pm_bytes:
db " bytes", 0
pm_dummy_int:
db "UNEXPECTED INTERR... |
BITS 64
global asm_memcpy
section .text
asm_memcpy:
while:
test rdx, rdx;un AND origen y destino no save, modifica flaqs
je end
mov bl, BYTE[rsi]
mov BYTE[rdi], bl
inc rdi
inc rsi
dec rdx
jmp while
end:
ret
|
.include "defaults_mod.asm"
table_file_jp equ "exe4-utf8.tbl"
table_file_en equ "bn4-utf8.tbl"
game_code_len equ 3
game_code equ 0x4234574A // B4WJ
game_code_2 equ 0x42345745 // B4WE
game_code_3 equ 0x42345750 // B4WP
card_type equ 1
card_id equ 63
card_no equ "063"
card_sub equ "Mod Card 063"
card_sub_x ... |
;######Player Hold Item Script!####
LoadPokeItem::
ld hl, wPartyMon1CatchRate
ld a, [wPlayerMonNumber]
ld bc, wPartyMon2 - wPartyMon1
call AddNTimes ;now HL should point to our chosen mon's catch rate.
ld a, [hl];[wBattleMonCatchRate] except that doesn't seem to update well, so we use this instead
ret
Mega... |
%include "include/u7bg-all-includes.asm"
%include "../u7-common/patch-eop-canItemAcceptItems.asm"
|
_servo:
;Servo.mbas,7 :: sub procedure servo (dim x as byte)
;Servo.mbas,8 :: portc.5 = 1
BSF PORTC+0, 5
;Servo.mbas,9 :: delay_us (600)
MOVLW 10
MOVWF R12, 0
MOVLW 88
MOVWF R13, 0
L__servo1:
DECFSZ R13, 1, 1
BRA L__servo1
DECFSZ R12, 1, 1
BRA ... |
; A191109: a(1)=1, and if x is a term then 3x-1 and 3x+2 are terms too.
; 1,2,5,8,14,17,23,26,41,44,50,53,68,71,77,80,122,125,131,134,149,152,158,161,203,206,212,215,230,233,239,242,365,368,374,377,392,395,401,404,446,449,455,458,473,476,482,485,608,611,617,620,635,638,644,647,689,692,698,701,716,719,725,728,1094,1097,... |
;
; To address https://bugzilla.nasm.us/show_bug.cgi?id=3392527
;
%ifndef __OUTPUT_FORMAT__
%fatal '__OUTPUT_FORMAT__ defined as ', __OUTPUT_FORMAT__
%endif
|
; A182619: Number of vertices that are connected to two edges in a spiral without holes constructed with n hexagons.
; 6,8,9,10,11,12,12,13,14,14,15,15,16,16,17,17,18,18,18,19,19,20,20,20,21,21,21,22,22,22,23,23,23,24,24,24,24
mov $2,$0
add $2,$0
mul $0,4
mul $2,4
add $2,4
add $0,$2
lpb $0,1
sub $0,3
add $1,1
ad... |
;******************************************************************************
;* x86 optimized Format Conversion Utils
;* Copyright (c) 2008 Loren Merritt
;*
;* 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 General Public
;* L... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r8
push %rbp
push %rcx
push %rsi
// Faulty Load
lea addresses_WT+0x1ca59, %r8
nop
inc %r15
movups (%r8), %xmm4
vpextrq $0, %xmm4, %rcx
lea oracles, %r8
and $0xff, %rcx
shlq $12, %rcx
mov (%r8,%rcx,1), %... |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r15
push %r8
push %rax
push %rcx
// Store
mov $0x7ada1b0000000869, %r10
nop
nop
nop
nop
add %r15, %r15
mov $0x5152535455565758, %rax
movq %rax, %xmm4
movups %xmm4, (%r10)
nop
nop
nop
nop
cmp $2452, %rax... |
;
; Old School Computer Architecture - SD Card driver
; Taken from the OSCA Bootcode by Phil Ruston 2011
; Port by Stefano Bodrato, 2012
;
; int sd_write_sector(struct SD_INFO descriptor, long sector, unsigned char *address);
;
; sd_card_info and card_select must be accessible,
; a good place to put them is in the var... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %rax
push %rbx
push %rdi
// Faulty Load
lea addresses_normal+0x8130, %rax
nop
nop
nop
xor %r13, %r13
movb (%rax), %bl
lea oracles, %rax
and $0xff, %rbx
shlq $12, %rbx
mov (%rax,%rbx,1), %rbx
pop %rdi
pop... |
// boost/cstdlib.hpp header ------------------------------------------------//
// Copyright Beman Dawes 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/libs/utility/cstdlib... |
;
; Z88dk Generic Floating Point Math Library
;
; TOS >= FA
;
; $Id: dleq.asm,v 1.1 2002/01/21 20:35:22 dom Exp $:
XLIB dleq
LIB dcompar
LIB f_yes
LIB f_no
.dleq call dcompar
jp z,f_yes
jp p,f_yes
jp f_no
|
page ,132
;Thunk Compiler Version 1.8 Dec 14 1994 14:53:05
;File Compiled Tue Jan 28 11:38:37 1997
;Command Line: ..\..\..\..\dev\tools\binr\thunk.exe -NC _TEXT ..\w95thk.thk
TITLE $..\w95thk.asm
.386
OPTION READONLY
OPTION OLDSTRUCTS
IFNDEF IS_16
IFNDEF IS_32
%out command line error: specify... |
/*
A* -------------------------------------------------------------------
B* This file contains source code for the PyMOL computer program
C* copyright 1998-2000 by Warren Lyford Delano of DeLano Scientific.
D* -------------------------------------------------------------------
E* It is unlawful to modify or remove ... |
/**
* @file bug143.cpp bug143 regression case (MaxScale ignores host in user authentication)
*
* - create user@'non_existing_host1', user@'%', user@'non_existing_host2' identified by different passwords.
* - try to connect using RWSplit. First and third are expected to fail, second should succeed.
*/
#include <m... |
/*
Copyright 2009 Sun Microsystems, Inc.
All rights reserved. Use is subject to license terms.
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; version 2 of the License.
This progr... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitat... |
;UmbreonBaseStats: ; 3926a (e:526a)
db DEX_UMBREON ; pokedex id
db 95 ; base hp
db 65 ; base attack
db 110 ; base defense
db 65 ; base speed
db 130 ; base special
db DARK ; species type 1
db DARK ; species type 2
db 52 ; catch rate full heal
db 196 ; base exp yield
INCBIN "pic/ymon/umbreon.pic",0,1 ; 66, sprite dimensi... |
SECTION code_fp_math48
PUBLIC d2mlib, dx2mlib
EXTERN cm48_sdccixp_d2m48, cm48_sdccixp_dx2m48
defc d2mlib = cm48_sdccixp_d2m48
defc dx2mlib = cm48_sdccixp_dx2m48
|
%ifdef CONFIG
{
"RegData": {
"R15": "0xA"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
%macro cfmerge 0
; Get CF
sbb r14, r14
and r14, 1
; Merge in to results
shl r15, 1
or r15, r14
%endmacro
mov rdx, 0xe0000000
mov rax, 0xFFFFFFFF80000000
mov [rdx + 8 * 0], rax
mov [rdx + 8 * 1], rax
mo... |
/*
* Copyright 2015 WebAssembly Community Group
*
* 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 l... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_wchar_t_memmove_64a.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805.string.label.xml
Template File: sources-sink-64a.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSo... |
;;
;; Copyright (c) 2020-2022, 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... |
; char *strtok_r(char * restrict s, const char * restrict sep, char ** restrict lasts)
SECTION code_string
PUBLIC _strtok_r
EXTERN asm_strtok_r
_strtok_r:
pop af
pop hl
pop de
pop bc
push bc
push de
push hl
push af
jp asm_strtok_r
|
#include "builtin/capi_handle.hpp"
namespace rubinius {
CApiHandle* CApiHandle::create(STATE, capi::Handle* handle) {
CApiHandle* wrapper = state->new_object<CApiHandle>(G(object));
wrapper->handle = handle;
return wrapper;
}
}
|
/*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publi... |
SECTION code_driver
PUBLIC _disk_read
EXTERN asm_disk_read
;------------------------------------------------------------------------------
; Routines that talk with the IDE drive, these should be called from diskio.h
;
; DRESULT disk_read (
; BYTE pdrv, /* Physical drive number to identify the drive *... |
;================================================================================
; Dark World Spawn Location Fix & Master Sword Grove Fix
;--------------------------------------------------------------------------------
DarkWorldSaveFix:
LDA.b #$a0 : PHA : PLB ; thing we wrote over - data bank change
JSL.l zelda_sav... |
#include "Leader.h"
V2::Leader::Leader(const EU4::Leader& oldLeader, const mappers::LeaderTraitMapper& leaderTraitMapper):
name(oldLeader.getName()), activationDate(oldLeader.getActivationDate()), isLand(oldLeader.isLand())
{
const auto& incPersonality = leaderTraitMapper.getPersonality(oldLeader.getFire(), oldLead... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.