text stringlengths 1 1.05M |
|---|
db "ELESQUIRREL@" ; species name
db "It's one of many"
next "#MON with"
next "electric cheek"
page "pouches. It will"
next "shoot charges from"
next "its tail.@"
|
// Copyright (c) 2014 The ShadowCoin developers
// Copyright (c) 2017-2019 The DeepOnion Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "stealth.h"
#include "base58.h"
#include "arith_uint256.h"
#in... |
//============================================================================
// Name : L40_The_Auto_Keyword.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//===========================================================================... |
; A207262: a(n) = 2^(4n - 2) + 1.
; 5,65,1025,16385,262145,4194305,67108865,1073741825,17179869185,274877906945,4398046511105,70368744177665,1125899906842625,18014398509481985,288230376151711745,4611686018427387905,73786976294838206465,1180591620717411303425,18889465931478580854785,302231454903657293676545,483570327845... |
// The MIT License (MIT)
//
// Copyright (c) 2015 Markus Herb
//
// 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, cop... |
#include "mmap_utils.h"
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/fcntl.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "utils.h"
constexpr int32_t INVALID_INT32 = -1;
void *GetMmapBuff(void *start, size_t length, i... |
; $Id: bs3-cmn-SelProtFar16DataToRealMode.asm 69111 2017-10-17 14:26:02Z vboxsync $
;; @file
; BS3Kit - Bs3SelProtFar16DataToRealMode.
;
;
; Copyright (C) 2007-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free softwar... |
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
80
.text@150
lbegin:
ld c, 41
ld b, 03
lbegin_waitm3:
ldff a, (c)
and a, b
cmp a, b
jrnz lbegin_waitm3
ld a, 20
ldff(c), a
xor a, a
ldff(0f), a
ld a, 02
ldff(ff), a
ei
ld c, 0f
.text@1000
lstatint:
ld a, 08
ldff(41), a
.text@105c
xo... |
; A021967: Decimal expansion of 1/963.
; Submitted by Jon Maiga
; 0,0,1,0,3,8,4,2,1,5,9,9,1,6,9,2,6,2,7,2,0,6,6,4,5,8,9,8,2,3,4,6,8,3,2,8,1,4,1,2,2,5,3,3,7,4,8,7,0,1,9,7,3,0,0,1,0,3,8,4,2,1,5,9,9,1,6,9,2,6,2,7,2,0,6,6,4,5,8,9,8,2,3,4,6,8,3,2,8,1,4,1,2,2,5,3,3,7,4
seq $0,42 ; Unary representation of natural numbers.
di... |
; A071578: Number of iterations of Pi(n) needed to reach 1, where Pi(x) denotes the number of primes <= x.
; 0,1,2,2,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5
... |
C x86_64/camellia-crypt-internal.asm
ifelse(<
Copyright (C) 2010, Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundatio... |
;******************************************************************************
;
; (c) 2012 by BECK IPC GmbH
; http://www.beck-ipc.com
;
;******************************************************************************
;
; Module: spi9Fdyn.asm
; Function: Dynamic linking of SPI API Function spi_waiton_sem_ext_dyn(... |
; FILE *freopen(char *filename, char *mode, FILE *stream)
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC freopen_callee
EXTERN asm_freopen
freopen_callee:
pop hl
pop ix
pop de
ex (sp),... |
; The MIT License (MIT)
;
; Copyright (c) 2014 Microsoft
;
; 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... |
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2016 The Khronos Group Inc.
* Copyright (c) 2016 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use ... |
;/*
; * FreeRTOS Kernel V10.5.2
; * Copyright (C) 2020 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 restri... |
; uint32_t _random_uniform_xor_32_(uint32_t *seed)
SECTION code_clib
SECTION code_stdlib
PUBLIC __random_uniform_xor_32_
EXTERN __random_uniform_xor_32__fastcall
__random_uniform_xor_32_:
pop af
pop hl
push hl
push af
jp __random_uniform_xor_32__fastcall
|
/*
Copyright (c) 2009-2013, Jack Poulson
2013, Jed Brown
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#pragma once
#ifnde... |
; A013954: a(n) = sigma_6(n), the sum of the 6th powers of the divisors of n.
; 1,65,730,4161,15626,47450,117650,266305,532171,1015690,1771562,3037530,4826810,7647250,11406980,17043521,24137570,34591115,47045882,65019786,85884500,115151530,148035890,194402650,244156251,313742650,387952660,489541650,594823322,741453700,... |
copyright zengfr site:http://github.com/zengfr/romhack
003AF4 move.l ($2,A1), ($2a,A6) [1p+24, 1p+26, boss+24, boss+26, container+24, container+26, enemy+24, enemy+26, weapon+24, weapon+26]
003B2E move.l ($2,A1), ($2a,A6) [1p+24, 1p+26, boss+24, boss+26, container+24, container+26, enemy+24, enemy+26, weapon+24, w... |
SFX_Pound_Ch1:
unknownnoise0x20 2, 161, 34
endchannel
|
;*****************************************************************************
;* MMX/SSE2/AVX-optimized 10-bit H.264 iDCT code
;*****************************************************************************
;* Copyright (C) 2005-2011 x264 project
;*
;* Authors: Daniel Kang <daniel.d.kang@gmail.com>
;*
;* This file is p... |
; A318765: a(n) = (n + 2)*(n^2 + n - 1).
; -2,3,20,55,114,203,328,495,710,979,1308,1703,2170,2715,3344,4063,4878,5795,6820,7959,9218,10603,12120,13775,15574,17523,19628,21895,24330,26939,29728,32703,35870,39235,42804,46583,50578,54795,59240,63919,68838,74003,79420,85095,91034,97243,103728,110495,117550,124899,132548,14... |
global start
section .text
start:
mov eax, 10
mov ebx, 15
sub ebx, eax
mov ecx, 5
cmp ecx, 5
je skip
push dword mesg2.lenght ; pushes the lenght of the message on the stack
push dword mesg2 ; pushes the message itself on the stack ; "We did not jump :/"
... |
; A320947: a(n) is the number of dominoes, among all domino tilings of the 2 X n rectangle, sharing a length-2 side with the boundary of the rectangle.
; 1,4,8,16,30,56,102,184,328,580,1018,1776,3082,5324,9160,15704,26838,45736,77742,131840,223112,376844,635378,1069536,1797650,3017236,5057672,8467744,14161038,23657240,... |
; A189890: a(n) = (n^3 - 2*n^2 + 3*n + 2)/2.
; 2,4,10,23,46,82,134,205,298,416,562,739,950,1198,1486,1817,2194,2620,3098,3631,4222,4874,5590,6373,7226,8152,9154,10235,11398,12646,13982,15409,16930,18548,20266,22087,24014,26050,28198,30461,32842,35344,37970,40723,43606,46622,49774,53065,56498,60076,63802,67679,71710,758... |
* Set up the window working area V1.04 1986 Tony Tebby QJUMP
* 2013-12-21 1.05 check for and possibly set appsub wdw csizes (wl)
*
section wman
*
xdef wm_fsize
xdef wm_setup
xdef wm_smenu
*
xref wm_entry
*
include dev8_keys_qdos_sms
include dev8_keys_sys
include dev8_keys_wdef
include dev8_keys_wwork
... |
; A009759: Expansion of (3 - 21*x + 4*x^2)/((x-1)*(x^2 - 6*x + 1)).
; -3,0,17,116,693,4056,23657,137900,803757,4684656,27304193,159140516,927538917,5406093000,31509019097,183648021596,1070379110493,6238626641376,36361380737777,211929657785300,1235216565974037,7199369738058936,41961001862379593,244566641436218636,142543... |
Music_Dungeon2_Ch1::
tempo 144
volume 7, 7
duty_cycle 3
toggle_perfect_pitch
vibrato 10, 1, 4
Music_Dungeon2_branch_7e892::
note_type 12, 11, 2
octave 4
note E_, 4
note E_, 4
note E_, 4
note E_, 4
note A#, 4
note A#, 4
note A#, 4
note A#, 4
note E_, 4
note E_, 4
note E_, 4
note E_, 4
octave 5
note... |
; HL = HL - DE
PUBLIC int_sub
int_sub:
ld a, e
sub l
ld l, a
ld a, d
sbc a, h
ld h, a
ret |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1e87, %rsi
lea addresses_UC_ht+0xc96b, %rdi
clflush (%rdi)
add $56280, %r8
mov $96, %rcx
rep movsq
nop
nop
and $46308, %r12
lea addresses_normal_ht+0x567f, %r10
nop
nop
nop
c... |
/*
Basic ELF file reader implementation.
-------------------------------------------------------------------------------
MIT License
Copyright (c) 2019 Ivan Roberto de Oliveira
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Softwa... |
// ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 02.01.11.0938
// ----------------------------------------------------------------------------
// pcl/Font.cpp - Released 2019-01-21T12:06:21Z
// ---------------------... |
/*
* Copyright (C) 2005-2019 by Centre National d'Etudes Spatiales (CNES)
*
* This file is licensed under 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 restric... |
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at www.aome... |
; iy02.asm 22.1.98
; Symbolinen konekieliesimerkki
; Tero Kukka IY96A
.model tiny ;muistikoko
.stack 00h ;pinon koko 0
.data ;muuttujat
luku1 dw 1 ; int luku1=1;
luku2 dw 2 ; int luku2=2;
summa dw ? ; int summa; ? alustamatta
.code ;ohjelmalohko
mai... |
_HW4: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "syscall.h"
#include "traps.h"
#include "memlayout.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 ... |
; A293638: a(n) is the integer k that minimizes |k/Fibonacci(n) - 1/5|.
; 0,0,0,0,1,1,2,3,4,7,11,18,29,47,75,122,197,319,517,836,1353,2189,3542,5731,9274,15005,24279,39284,63562,102846,166408,269254,435662,704916,1140577,1845493,2986070,4831563,7817634,12649197,20466831,33116028,53582859,86698887,140281747,226980634,36... |
/**
* Copyright (C) Mellanox Technologies Ltd. 2001-2014. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#include "uct_p2p_test.h"
extern "C" {
#include <ucs/arch/atomic.h>
}
class uct_flush_test : public uct_test {
public:
static const uint64_t SEED1 = 0x1111111111111111lu;
static const uint64_t SE... |
///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Mathematics (glm.g-truc.net)
///
/// Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentatio... |
HallOfFame_Object:
db $3 ; border block
def_warps
warp 4, 7, 2, CHAMPIONS_ROOM
warp 5, 7, 3, CHAMPIONS_ROOM
def_signs
def_objects
object SPRITE_OAK, 5, 2, STAY, DOWN, 1 ; person
def_warps_to HALL_OF_FAME
|
/*
* Copyright 2008-2013 NVIDIA 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
; SUBROUTINE - Load sectors from disk
; Number of sectors in 'dh'
; Drive index in 'dl'
; Loads into ES:BX
disk_load:
pusha
; Need to save value in dx to use later
push dx
; Set ah to hold 'disk read' function (0x02)
mov ah, 0x02
; Set al to hold number of sectors to read (0x01-0x80)
mov al, dh
; Set cl to... |
; **************************************************
; SMSlib - C programming library for the SMS/GG
; ( part of devkitSMS - github.com/sverx/devkitSMS )
; **************************************************
INCLUDE "SMSlib_private.inc"
SECTION code_clib
SECTION code_SMSlib
PUBLIC asm_SMSlib_VDPturnOnFeature
EXTERN ... |
; A144945: Number of ways to place 2 queens on an n X n chessboard so that they attack each other.
; 0,6,28,76,160,290,476,728,1056,1470,1980,2596,3328,4186,5180,6320,7616,9078,10716,12540,14560,16786,19228,21896,24800,27950,31356,35028,38976,43210,47740,52576,57728,63206,69020,75180,81696,88578,95836,103480,111520,119... |
#include <Switch/Switch>
using namespace System;
namespace SwitchEvents {
// Define a class to hold custom event info
/// The following example shows how to declare and raise an event that uses EventHandler as the underlying delegate type.
/// @include Event.cpp
class CustomEventArgs : public EventArgs {
pu... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2020 The PIVX developers
// Copyright (c) 2021 The DECENOMY Core Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses... |
setrepeat 4
frame 0, 04
frame 5, 04
dorepeat 1
endanim
|
; A261471: Cyclotomic polynomial value Phi(6,n!).
; 1,1,3,31,553,14281,517681,25396561,1625662081,131681531521,13168185811201,1593350882323201,229442532323558401,38775788037405619201,7600054456464819148801,1710012252722891749632001,437763136697374129754112001,126513546505546814497787904001,40990389067797276737636278272... |
; A096231: Number of n-th generation triangles in the tiling of the hyperbolic plane by triangles with angles {Pi/2, Pi/3, 0}.
; 1,3,5,7,9,12,16,21,28,37,49,65,86,114,151,200,265,351,465,616,816,1081,1432,1897,2513,3329,4410,5842,7739,10252,13581,17991,23833,31572,41824,55405,73396,97229,128801,170625,226030,299426,396... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
; Home directory functions v1.00 2005 Wolfgang Lenerz
; Marcel Kilgus
;
; 2005-11-17 1.00 reset correct job ID when freeing home thing (mk)
section gen_util
xdef gu_shome
xdef gu_shomeover
xdef gu_shomecurr
xdef gu_shomedef
xdef gu_ghome
xdef gu_ghomefile
xdef gu_ghomecurr
xdef gu_ho... |
; A087452: G.f.: (2-x)/((1+3x)(1-4x)); e.g.f.: exp(4x) + exp(-3x); a(n) = 4^n + (-3)^n.
; 2,1,25,37,337,781,4825,14197,72097,242461,1107625,4017157,17308657,65514541,273218425,1059392917,4338014017,17050729021,69106897225,273715645477,1102998412177,4387586157901,17623567104025,70274600998837,281757406247137
mov $1,-3
... |
;; ============================================================================================
;;
;; Copyright (C) 2001,2002 the LGPL VGABios developers Team
;;
;; 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 ... |
; A092343: a(n) = sigma_3(3n+2).
; 9,126,585,1332,3096,4914,9198,12168,19782,24390,37449,43344,61740,68922,97236,103824,141759,148878,201240,205380,268128,276948,358722,357912,455886,458208,589806,571788,715572,704970,888264,864360,1061937,1030302,1285830
mul $0,3
add $0,2
mov $2,$0
lpb $0
mov $3,$2
dif $3,$0
cm... |
.MACRO Snes_Init
sei ; Disabled interrupts
clc ; clear carry to switch to native mode
xce ; Xchange carry & emulation bit. native mode
rep #$18 ; Binary mode (decimal mode off), X/Y 16 bit
ldx #$1FFF ; set stack to $1FFF
txs
jsr Init
.ENDM
.bank 0
.section "Snes_Init" SEMIFREE
Init:
sep... |
#define BOOST_TEST_MODULE
#include <boost/test/unit_test.hpp>
#include <util/test_macros.hpp>
#include <string>
#include <iostream>
#include <shmipc/shmipc.hpp>
#include <parallel/pthread_tools.hpp>
using namespace turi;
// 16 byte buffer
const size_t BUFFER_SIZE = 16;
struct shmipc_test {
public:
shmipc::server se... |
%define FLOAT_SIZE 4
section .text
global __vec_add
global __vec_sub
global __vec_mul
global __vec_div
global __vec_max
global __vec_min
global __vec_norm
global __vec_abs
global __vec_sadd
global __vec_ssub
global __vec_smul
global __vec_sdiv
global __vec_len
global __vec_neg
global __vec_dot
global __vec3_cross
exte... |
; A164494: Number of binary strings of length n with no substrings equal to 0010 0101 or 1010
; 13,23,40,70,123,216,379,665,1167,2048,3594,6307,11068,19423,34085,59815,104968,184206,323259,567280,995507,1746993,3065759,5380032,9441298,16568323,29075380,51023735,89540413,157132471,275748264,483904470,849193147,149023008... |
bits 16
org 0x7c00
; initialize ds to 0
xor bx, bx
mov ds, bx
; initialize stack
mov sp, 0x7c00
; initialize FPU
fninit
; enter 320x200 256-color graphics mode (mode 13h)
mov ax, 0x13
int 0x10
; zero out a sector of the post-MBR storage in RAM, jus... |
; A070357: a(n) = 3^n mod 28.
; 1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3,9,27,25,19,1,3... |
; A140681: a(n) = 3*n*(n+6).
; 0,21,48,81,120,165,216,273,336,405,480,561,648,741,840,945,1056,1173,1296,1425,1560,1701,1848,2001,2160,2325,2496,2673,2856,3045,3240,3441,3648,3861,4080,4305,4536,4773,5016,5265,5520,5781,6048,6321,6600,6885,7176,7473,7776,8085,8400,8721,9048,9381,9720,10065,10416,10773,11136,11505,11880... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2011-2013 The PPCoin developers
// Copyright (c) 2013-2014 The NovaCoin Developers
// Copyright (c) 2014-2018 The BlackCoin Developers
// Copyright (c) 2015-2020 ... |
/*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@author Hartwig Anzt
@generated from zbaiter.cpp normal z -> d, Fri Jan 30 19:00:30 2015
*/
#include "common_magma.h"
#include "magmas... |
lc r4, 0x00000001
lc r5, 0x7ffffffe
gtu r6, r4, r5
halt
#@expected values
#r4 = 0x00000001
#r5 = 0x7ffffffe
#r6 = 0x00000000
#pc = -2147483628
#e0 = 0
#e1 = 0
#e2 = 0
#e3 = 0
|
#include <Arduino.h>
#include <SoftwareSerial.h>
// Software Serial
SoftwareSerial *SIM900 = NULL;
void sim900SendChar(const char cmd)
{
SIM900->print(cmd);
}
void sim900SendCmd(const char* cmd)
{
SIM900->print(cmd);
}
void sim900SendCmdFlash(const __FlashStringHelper* cmd)
{
SIM900->print(cmd);
}
void... |
; ===============================================================
; May 2016
; ===============================================================
;
; int ffsll(long long i)
;
; Return bit position of least significant bit set. Bit
; positions are numbered 1-64 with 0 returned if no bits
; are set.
;
; =================... |
;;
;; This program operates in an endless loop, and increments the
;; value stored at a particular address.
;;
;; Since there is no output it is a tricky-program to test, but
;; if you're single-stepping through code, and can dump RAM then
;; it is a nice standalone example program.
;;
org 0
;; Set HL to the addre... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
TITLE z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\test_autogenerated_1.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB OLDNAMES
END
|
; A064097: A quasi-logarithm defined inductively by a(1) = 0 and a(p) = 1 + a(p-1) if p is prime and a(n*m) = a(n) + a(m) if m,n > 1.
; 0,1,2,2,3,3,4,3,4,4,5,4,5,5,5,4,5,5,6,5,6,6,7,5,6,6,6,6,7,6,7,5,7,6,7,6,7,7,7,6,7,7,8,7,7,8,9,6,8,7,7,7,8,7,8,7,8,8,9,7,8,8,8,6,8,8,9,7,9,8,9,7,8,8,8,8,9,8,9,7,8,8,9,8,8,9,9,8,9,8,9,9,... |
; Replaces the functionality of sgb.asm to work with CGB hardware.
CheckCGB:
ldh a, [hCGB]
and a
ret
LoadSGBLayoutCGB:
ld a, b
cp SCGB_RAM
jr nz, .not_ram
ld a, [wSGBPredef]
.not_ram
cp SCGB_PARTY_MENU_HP_PALS
jp z, CGB_ApplyPartyMenuHPPals
call ResetBGPals
ld l, a
ld h, 0
add hl, hl
ld de, .dw
add hl,... |
// Copyright (c) 2020 PaddlePaddle 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... |
; A010798: n!.(n+1)!.(n+2)!.(n+3)! / 2!.3!.4!.
; Submitted by Christian Krause
; 1,120,43200,36288000,60963840000,184354652160000,929147446886400000,7358847779340288000000,87423111618562621440000000,1500180595374534583910400000000,36040338623277818843863449600000000
mov $2,3
mov $3,2
mov $4,1
lpb $0
sub $0,1
add $... |
; Aula 07 - Controle de Fluxo de Execucao
; arquivo: a07e01a.asm
; objetivo: laco de repeticao infinito
; ctrl+c para finalizar
; nasm -f elf64 a07e01a.asm ; ld a07e01a.o -o a07e01a.x
section .bss
destino: resq 1
section .text
global _start
_start:
; play dead
jmp _start ; label é o de... |
; A283318: Image of 0 under repeated applications of the morphism 0 -> 0,1,0,0, 1 -> 1,1,0,1.
; 0,1,0,0,1,1,0,1,0,1,0,0,0,1,0,0,1,1,0,1,1,1,0,1,0,1,0,0,1,1,0,1,0,1,0,0,1,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,1,1,0,1,0,1,0,0,0,1,0,0,1,1,0,1,1,1,0,1,0,1,0,0,1,1,0,1,1,1,0,1,1,1,0,1,0,1,0,0,1,1,0,1,0,1,0,0
mov $1,$0
lpb $0
div ... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/viz/service/display_embedder/software_output_surface.h"
#include <utility>
#include "base/bind.h"
#include "base/location.h"
#inclu... |
.MODEL SMALL
.STACK 64
.DATA
STRING DB ?
SYM DB '$'
INPUT_M DB 0ah,0dh,0AH,0DH, 'ENTER THE INPUT STRING/INTEGER: ',0DH,0AH,'$'
OUTPUT_M DB 0ah,0dh,0AH,0DH, 'THE OUTPUT IS: ',0DH,0AH,'$'
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
MOV DX, OFFSET INPUT_M
MOV AH, 9
INT 21H
... |
#include <stdio.h>
#include <testComponent722/lib1.h>
int testComponent722_21 () {
printf("Hello world!\n");
return 0;
}
|
/**
* \file linsolveramgx.cpp
* \brief Implementation of LinSolverAmgX.
* \copyright Copyright (c) 2016-2018, Barba group. All rights reserved.
* \license BSD 3-Clause License.
*/
#include <cstdio>
#include <fstream>
#include <iostream>
// PetIBM
#include <petibm/linsolveramgx.h>
namespace petibm
{
namespace li... |
###############################################################################
# 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) 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... |
; Options:
; startup=1 --> RAM mode
; startup=2 --> ROM mode (position code at location 0 and provide minimal interrupt services)
;
; CRT_ORG_CODE = start address
; CRT_ORG_BSS = address for bss variables
; CRT_MODEL = 0 (RAM), 1 = (ROM, code copied), 2 = (ROM, cod... |
/* ARM assembly AARCH64 Raspberry PI 3B */
/* program disMessGraph64.s */
/* link with gcc options -lX11 -L/usr/lpp/X11/lib */
/*******************************************/
/* Constantes file */
/*******************************************/
/* for this file see task include a... |
.enum -2
ChannelState_FE_Control_ChannelPlayingTone db
ChannelState_FF_Control_ChannelPlayingPercussion db
ChannelState_00_Control_StopMusic db
.ende
.struct MenuSound
TrackState db ; See ChannelState_* enum above, also used to signal a percussion instrument change
MinimumAttenuation db ; Atte... |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2001, 2016 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
/*
* In this application, we specify all communication via the command line. In
* a real application, we would expect that information about the other sites
... |
#include <efsw/Thread.hpp>
#include <efsw/platform/platformimpl.hpp>
namespace efsw {
Thread::Thread() :
mThreadImpl(NULL),
mEntryPoint(NULL)
{
}
Thread::~Thread()
{
wait();
efSAFE_DELETE( mEntryPoint );
}
void Thread::launch()
{
wait();
mThreadImpl = new Platform::ThreadImpl( this );
}
void Thread::wait()... |
//===--- SemaCUDA.cpp - Semantic Analysis for CUDA constructs -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
ldy #1
lda ({z2}),y
pha
dey
lda ({z2}),y
ldy #{c1}
sta ({z1}),y
iny
pla
sta ({z1}),y
|
.definelabel .gs_layer_solid, 0x01
.definelabel .gs_layer_alpha, 0x04
.definelabel .gs_layer_trans, 0x05
// ******** Cmd 00: Branch and Store ******** //
.macro .gs_00, segAddr
.word 0x00000000, segAddr
.endmacro
// ******** Cmd 01: End Geometry Layout ******** //
.macro .gs_01
.word 0x01000000
.endmacro
.macro .gs... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xe6f8, %rsi
lea addresses_D_ht+0x140f8, %rdi
nop
nop
nop
nop
nop
xor $20134, %r14
mov $61, %rcx
rep movsq
nop
nop
nop
nop
add $43178, %rdi
lea addresses_UC_ht+0x19450, %rsi
lea addresse... |
#include <fstream>
#include <sstream>
#include <ThirdParty/pugixml/pugixml.hpp>
#include "BibleData/Files/BibleDataFile.h"
namespace BIBLE_DATA::FILES
{
/// Attempts to parse the verse per line file at the specified path.
/// A verse per line file is simple text file that contains one Bible verse per line.
... |
.data
msg_error: .asciiz "O modulo nao eh primo.\n"
msg_r1: .asciiz "A exponenciacao modular "
msg_r2: .asciiz " elavado a "
msg_r3: .asciiz " (mod "
msg_r4: .asciiz ") eh "
.text
main:
# -- read the base of the exponentiation --
jal read_int
addi $s0, $v0, 0 # move the number to $s0 because read_int sto... |
; **************************************************
; SMSlib - C programming library for the SMS/GG
; ( part of devkitSMS - github.com/sverx/devkitSMS )
; **************************************************
INCLUDE "SMSlib_private.inc"
SECTION code_clib
SECTION code_SMSlib
PUBLIC asm_SMSlib_setClippingWindow
EXTERN... |
#include <phosphor-logging/log.hpp>
#include "main.hpp"
#include "sd_event_loop.hpp"
#include "sol_context.hpp"
#include "sol_manager.hpp"
namespace sol
{
using namespace phosphor::logging;
void Context::processInboundPayload(uint8_t seqNum,
uint8_t ackSeqNum,
... |
; This program rapidly updates the colors
; of the screen and the border.
*=$c000 ; starting address of the program
BORDER = $d020
SCREEN = $d021
start inc SCREEN ; increase screen colour
inc BORDER ; increase border colour
jmp start ; repeat
|
; Characteristics of each move.
move: MACRO
db \1 ; animation
db \2 ; effect
db \3 ; power
db \4 ; type
db \5 percent ; accuracy
db \6 ; pp
db \7 percent ; effect chance
ENDM
Moves:
; entries correspond to constants/move_constants.asm
move POUND, EFFECT_NORMAL_HIT, 40, NORMAL, 100, 35, 0
m... |
; A008578: Prime numbers at the beginning of the 20th century (today 1 is no longer regarded as a prime).
; 1,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281... |
; A105927: Let d(n) = A000166(n); then a(n) = ( (n^2+n-1)*d(n) + (-1)^(n-1)*(n-1) )/2.
; Submitted by Jamie Morken(s1)
; 0,0,2,12,84,640,5430,50988,526568,5940576,72755370,961839340,13656650172,207316760352,3351430059614,57487448630220,1042952206111440,19954639072648768,401578933206288978,8480263630552747596,1875055652... |
#include <sys/time.h>
#include "AampOcdmGstSessionAdapter.h"
#ifdef AMLOGIC
#include "gst/video/gstvideotimecode.h"
#include "gst/video/gstvideometa.h"
#endif
#define USEC_PER_SEC 1000000
static inline uint64_t GetCurrentTimeStampInUSec()
{
struct timeval timeStamp;
uint64_t retVal = 0;
gettimeofday(&timeSta... |
SECTION "Text", ROMX[$7EE0], BANK[1]
NEWCHARMAP default
CHARMAP " ", "~"
CHARMAP ":", "\{"
CHARMAP "'", $7F
crashText::
db "FATAL:PC at 0x38"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.