text stringlengths 1 1.05M |
|---|
; A318274: Triangle read by rows: T(n,k) = n for 0 < k < n and T(n,0) = T(n,n) = 1.
; 1,1,1,1,2,1,1,3,3,1,1,4,4,4,1,1,5,5,5,5,1,1,6,6,6,6,6,1,1,7,7,7,7,7,7,1,1,8,8,8,8,8,8,8,1,1,9,9,9,9,9,9,9,9,1,1,10,10,10,10,10,10,10,10,10,1,1,11,11,11,11,11,11,11,11,11,11,1,1,12
mov $1,1
mov $2,$0
lpb $2,1
trn $3,$2
lpb $3,1
... |
/**
* Copyright (c) 2016-present, Facebook, 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 ... |
// Copyright 2020 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 "content/browser/conversions/conversion_test_utils.h"
#include <limits.h>
#include <tuple>
#include "base/bind.h"
#include "base/bind_helpers.... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2018 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
.module errortest
.title Tests errorModule
.include 'error.def'
.include '..\io\io.def'
.include '..\program\program.def'
STACK == 0xFFFF ;SYSTEM STACK
.area BOOT (ABS)
.org 0x0000
RST0:
DI
LXI SP,STACK ;INITALIZE STACK
JMP START
;*********************************************************
;* MAIN PRO... |
SECTION code_fp
PUBLIC frexp
EXTERN fa
EXTERN dload
; float frexpf (float x, int *pw2);
frexp:
ld hl,4
add hl,sp
call dload
pop bc ;Ret
pop de ;pw2
push de
push bc
ld hl,fa+5
ld a,(hl)
and a
ld (hl),0
jr z,zero
sub $80
ld (hl),128
zero:
ld (de),a
rlca
sbc a
inc de
ld (de),a
ret
|
;** Standard device IO for MSDOS (first 12 function calls)
;
TITLE IBMCPMIO - device IO for MSDOS
NAME IBMCPMIO
;
; Microsoft Confidential
; Copyright (C) Microsoft Corporation 1991
; All Rights Reserved.
;
;** CPMIO.ASM - Standard device IO for MSDOS (first 12 function calls)
;
;
; Old style CP/M 1-12 system call... |
/*
* Copyright (c) 2021, Oleg Sikorskiy <olegsik@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, thi... |
; A020720: Pisot sequences E(7,9), P(7,9).
; 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,396655,525456,696081,922111,1221537,1618192,2143648,2839729,3761840,4983377,6601569,8745217,1... |
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkPlaneWidget.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software i... |
// C++.
#include <sstream>
#include <cassert>
// Qt.
#include <QMouseEvent>
#include <QToolTip>
// Local.
#include "radeon_gpu_analyzer_gui/qt/rg_check_box.h"
#include "radeon_gpu_analyzer_gui/rg_data_types_opencl.h"
RgCheckBox::RgCheckBox(QWidget* parent) : QCheckBox(parent)
{
}
void RgCheckBox::focusInEvent(QFocu... |
;
;----------------------------------------------------------------
; 32-bit x86 assembler code for Skein block functions
;
; Author: Doug Whiting, Hifn
;
; This code is released to the public domain.
;----------------------------------------------------------------
;
.386p
.model flat
.code
;
... |
; A214971: Integers k for which the base-phi representation of k includes 1.
; 1,4,8,11,15,19,22,26,29,33,37,40,44,48,51,55,58,62,66,69,73,76,80,84,87,91,95,98,102,105,109,113,116,120,124,127,131,134,138,142,145,149,152,156,160,163,167,171,174,178,181,185,189,192,196,199,203,207,210,214,218,221,225,228,232,236,239,243,... |
; A004158: Triangular numbers written backwards.
; 0,1,3,6,1,51,12,82,63,54,55,66,87,19,501,21,631,351,171,91,12,132,352,672,3,523,153,873,604,534,564,694,825,165,595,36,666,307,147,87,28,168,309,649,99,5301,1801,8211,6711,5221,5721,6231,8731,1341,5841,451,6951,3561,1171,771,381,1981,3591,6102,802,5412,1122,8722,6432,5... |
// =============================================================================
// 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... |
###############################################################################
# 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... |
;
; ZX IF1 & Microdrive functions
;
; remove a given file in the given drive
;
; int if1_remove (int drive, char *filename);
;
; $Id: if1_remove_file.asm,v 1.2 2006/05/23 21:47:25 stefano Exp $
;
XLIB if1_remove_file
LIB if1_setname
LIB if1_rommap
XREF ERASEM
; parameters and variable... |
lc r4, 0x00000000
lc r5, 0x0000101f
lc r6, 0x00000000
tlbse r6, r4
lc r8, 0x40000000
lc r9, 0x0000101f
lc r10, 0x00000001
tlbse r10, r8
lc r11, 0xdeadbeef
lc r12, 0x7fffffff
lc r13, 0x7fffffff
st1 r11, r13, 2
halt
#@expected values
#r4 = 0x00000000
#r5 = 0x0000101f
#... |
; A092774: Prime(prime(n))^2+1
; 10,26,122,290,962,1682,3482,4490,6890,11882,16130,24650,32042,36482,44522,58082,76730,80090,109562,124610,134690,160802,185762,212522,259082,299210,316970,344570,358802,380690,502682,546122,597530,635210
seq $0,40 ; The prime numbers.
mov $2,$0
sub $2,1
mov $0,$2
seq $0,6005 ; The odd ... |
#include <iostream>
#include <Interpolators/_1D/CubicSplineInterpolator.hpp>
int main() {
_1D::CubicSplineInterpolator<double> interp;
}
|
#include "Explosion.h"
Explosion::Explosion(sf::Vector2f pos)
: AnimatedSprite(pos)
{
AnimatedSprite::setTexture(GAME.getTexture("Resources/bigExplosion.png"));
SetUpExplosionAnimation();
playAnimation("explosion", AnimationMode::OnceForwards);
boom_.setBuffer(GAME.getSoundBuffer("Resources/boom.wav"));
boom_.pla... |
; LICENSE:
; This submission to NSS is to be made available under the terms of the
; Mozilla Public License, v. 2.0. You can obtain one at http:
; //mozilla.org/MPL/2.0/.
;###############################################################################
; Copyright(c) 2014, Intel Corp.
; Developers and authors:
; Shay Gu... |
; Port IO - read/write to a port
; vi:filetype=nasm
global read_port
global write_port
read_port:
mov edx, [esp + 4]
in al, dx
ret
write_port:
mov edx, [esp + 4]
mov al, [esp + 8]
out dx, al
ret
|
; int wv_stack_reserve(wv_stack_t *s, size_t n)
SECTION code_adt_wv_stack
PUBLIC _wv_stack_reserve
EXTERN _w_vector_reserve
defc _wv_stack_reserve = _w_vector_reserve
|
; A118538: a(n) = A000040(n+1) - 6.
; -3,-1,1,5,7,11,13,17,23,25,31,35,37,41,47,53,55,61,65,67,73,77,83,91,95,97,101,103,107,121,125,131,133,143,145,151,157,161,167,173,175,185,187,191,193,205,217,221,223,227,233,235,245,251,257,263,265,271,275,277,287,301,305,307,311,325,331,341,343,347
add $0,1
cal $0,40 ; The prime... |
%ifdef CONFIG
{
"RegData": {
"MM7": ["0x8000000000000000", "0x4009"]
},
"Mode": "32BIT"
}
%endif
lea edx, [.data]
fild dword [edx + 8 * 0]
hlt
.data:
dq 1024
|
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.24241.7
TITLE C:\projects\gsl\tests\span_compile_only.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC ??0exception@std@@QAE@ABV01@@Z ; std::exception::exception
PUBLIC ??1exception@s... |
/*==============================================================================
Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
Queen's University, Kingston, ON, Canada. All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by appl... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2021 Intel Corporation
#ifdef HAVE_ONEVPL
#include "../perf_precomp.hpp"
#include "../../test/common/gap... |
StartTest:
di ; Turn off interrupts in case they interfere.
; clear ULA screen to: BORDER 7 : PAPER 7 : INK 0 : CLS
; - this removes any ULA artefacts left by SNA loaders and majority of tests expects
; this "BASIC" state of screen, so let's make sure it is like that.
ld ... |
; Test case:
ONE: equ 1
ld ix,list
ld a,(ix+ONE) ; this should be optimized to use hl
ld (var),a
ld ix,list2
ld a,(ix) ; this should be optimized to use hl too
ld (var),a
ld hl,#ffff
ld ix,list
ld a,(ix) ; this should not be optimized, as we would modify hl
ld (var),a
ld a,(hl)
ld (var),a
end:
jp end
... |
/****************************************************************************
*
* Copyright (c) 2019 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1dad7, %rsi
lea addresses_WC_ht+0x13964, %rdi
clflush (%rsi)
cmp $39726, %rdx
mov $105, %rcx
rep movsl
nop
dec %r10
lea addresses_D_ht+0xf57, %r15
nop
nop
xor $28290, %r12
mo... |
/*
* Copyright (c) 2016, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... |
#ifndef BOOST_ARCHIVE_TEXT_WOARCHIVE_HPP
#define BOOST_ARCHIVE_TEXT_WOARCHIVE_HPP
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// text_woarchive.hpp
// (C) Copyright 20... |
; void fzx_state_init(struct fzx_state *fs, struct fzx_font *ff, struct r_Rect16 *window)
SECTION code_font_fzx
PUBLIC fzx_state_init_callee
EXTERN asm_fzx_state_init
fzx_state_init_callee:
pop hl
pop de
pop bc
ex (sp),hl
jp asm_fzx_state_init
|
; char __CALLEE__ *strchrnul_callee(char *s, char c)
; return ptr to first occurrence of c in s
; 04.2001 dom, 04.2012 stefano
PUBLIC strchrnul_callee
PUBLIC ASMDISP_STRCHRNUL_CALLEE
.strchrnul_callee
pop hl
pop bc
ex (sp),hl
; enter : c = char c
; hl = char *s
; exit : found : hl = p... |
; A296716: Numbers congruent to {7, 11, 13, 29} mod 30.
; Submitted by Christian Krause
; 7,11,13,29,37,41,43,59,67,71,73,89,97,101,103,119,127,131,133,149,157,161,163,179,187,191,193,209,217,221,223,239,247,251,253,269,277,281,283,299,307,311,313,329,337,341,343,359,367,371,373,389,397,401,403,419,427,431,433,449,457,... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; File: OS.ASM
;;; Purpose: provide PennSim with an OS to handle I/O
;;; PennSim will load the contents of this file in x8200
;;; author: Amir Roth; modified by CJT 10/17/10; by TJF 3/17/14
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.40629.0
TITLE C:\Users\cex123\Desktop\XXXXX\osdev\osdev-211\Source\Applications\Fire\Fire.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM _lookup:DWORD
COMM _heatmap:DWORD
... |
; Read From the Console (ReadConsole.asm)
; Read a line of input from standard input.
INCLUDE Irvine32.inc
BufSize = 80
.data
buffer BYTE BufSize DUP(?)
stdInHandle HANDLE ?
bytesRead DWORD ?
.code
main PROC
; Get handle to standard input
INVOKE GetStdHandle, STD_INPUT_HANDLE
mov stdI... |
###############################################################################
# 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... |
; A194112: a(n) = Sum_{j=1..n} floor(j*sqrt(8)); n-th partial sum of Beatty sequence for sqrt(8).
; 2,7,15,26,40,56,75,97,122,150,181,214,250,289,331,376,424,474,527,583,642,704,769,836,906,979,1055,1134,1216,1300,1387,1477,1570,1666,1764,1865,1969,2076,2186,2299,2414,2532,2653,2777,2904,3034,3166
lpb $0
mov $2,$0
... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: HMUI.FlowCoordinator
#include "HMUI/FlowCoordinator.hpp"
#include "ex... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; CpuIdEx.Asm
;
; Abstract:
;
; AsmCpuidEx function
;
; Notes:
;
;--------------... |
MACRO someMacro2
.macro2:
someMacro1
jr .skip
db CSPECT_EASY+2 ; WPMEM
.skip
ENDM
INCLUDE "../sld_example.i.asm"
MMU 7 n, 30, $E000
mmu7p30:
docolor %000'101'00 ; green
someMacro1
nextreg $56,21
jp mmu6p21
ALIGN $2000
mmu7p31:
docolor %101'101'00 ; yello... |
; A332164: a(n) = 6*(10^(2*n+1)-1)/9 - 2*10^n.
; 4,646,66466,6664666,666646666,66666466666,6666664666666,666666646666666,66666666466666666,6666666664666666666,666666666646666666666,66666666666466666666666,6666666666664666666666666,666666666666646666666666666,66666666666666466666666666666,6666666666666664666666666666666... |
; A015221: Odd square pyramidal numbers.
; 1,5,55,91,285,385,819,1015,1785,2109,3311,3795,5525,6201,8555,9455,12529,13685,17575,19019,23821,25585,31395,33511,40425,42925,51039,53955,63365,66729,77531,81375,93665,98021,111895,116795,132349,137825
mov $2,$0
mul $0,2
gcd $0,4
mov $1,4
mul $1,$2
add $1,$0
bin $1,3
div $1,... |
; A157367: a(n) = 4802*n^2 + 196*n + 1.
; 4999,19601,43807,77617,121031,174049,236671,308897,390727,482161,583199,693841,814087,943937,1083391,1232449,1391111,1559377,1737247,1924721,2121799,2328481,2544767,2770657,3006151,3251249,3505951,3770257,4044167,4327681,4620799,4923521,5235847,5557777,5889311,6230449,6581191,6... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef KAGOME_OFFCHAIN_OFFCHAINWORKER
#define KAGOME_OFFCHAIN_OFFCHAINWORKER
#include <boost/optional.hpp>
#include <libp2p/multi/multiaddress.hpp>
#include <libp2p/peer/peer_id.hpp>
#include "common/buffer.hpp"
#in... |
/*
* Copyright 2010-2017 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... |
; Disassembly of the file "002.rom"
;
; Created with dZ80 v1.31
;
; on Saturday, 20 of April 2002 at 07:05 PM
;
4000 00 01 02 03 04 05 06 07 Main Back Print F1 F2 F3 F4 F5
4008 00 00 00 08 09 0a 48 19 Main Main Main @ Size Spell Email PgUp
4010 0b 0c 0d 0e 0f 10 11 12 ` 1... |
; A250761: Number of (6+1) X (n+1) 0..2 arrays with nondecreasing x(i,j)-x(i,j-1) in the i direction and nondecreasing x(i,j)+x(i-1,j) in the j direction.
; 9585,22197,40023,63063,91317,124785,163467,207363,256473,310797,370335,435087,505053,580233,660627,746235,837057,933093,1034343,1140807,1252485,1369377,1491483,161... |
/*
* Copyright 2020 Justas Masiulis
*
* 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... |
; A273781: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 929", based on the 5-celled von Neumann neighborhood.
; 1,5,26,74,155,276,445,670,959,1320,1761,2290,2915,3644,4485,5446,6535,7760,9129,10650,12331,14180,16205,18414,20815,2341... |
/**
* @file introduction_to_pca.cpp
* @brief This program demonstrates how to use OpenCV PCA to extract the orientation of an object
* @author OpenCV team
*/
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#include <iostream>
using namespace std;
using namespa... |
// Copyright (c) 2019 The PIVX developers
// Copyright (c) 2021 The INFINCOIN developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "addressbook.h"
#include <string>
namespace AddressBook {
namespace AddressB... |
// dear imgui, v1.69 WIP
// (demo code)
// Message to the person tempted to delete this file when integrating Dear ImGui into their code base:
// Do NOT remove this file from your project! Think again! It is the most useful reference code that you and other coders
// will want to refer to and call. Have the ImGui::Sho... |
;******************************************************************************
.define dir_reg, 0x00
.define port_reg, 0x01
.define pin_reg, 0x02
.define prescaler_l, 0x03
.define prescaler_h, 0x04
.define count_ctrl, 0x05
.define counter_val, 0x08
.def... |
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
include <AsmMacros.inc>
include AsmConstants.inc
extern TheUMEntryPrestubWorker:proc
extern UMEntryPrestubUnwindFrameChainHandler:proc
;
; METHODDESC_REGISTER: UMEntryThunk*
;
NESTED... |
; lzo1y_s1.asm -- lzo1y_decompress_asm
;
; This file is part of the LZO real-time data compression library.
;
; Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
; All Rights Reserved.
;
; The LZO library is free software; you can redistribute it and/or
; modify it under the terms of the GNU General P... |
; A128961: a(n) = (n^3 - n)*3^n.
; 0,54,648,4860,29160,153090,734832,3306744,14171760,58458510,233834040,911952756,3482001432,13057505370,48212327520,175630621680,632270238048,2252462723046,7949868434280,27824539519980,96653663595720,333455139405234,1143274763675088,3897527603437800,13217702307310800,44609745287173950,... |
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_math
PUBLIC l_fast_mulu_16_16x16
EXTERN l_fast_mulu_24_16x8
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_IMATH_FAST & $80
EXTERN error_mulu_overflow_mc
ELSE
EXTERN l_fast_mulu_32_24x16
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
l_fast_mulu_16_16x16... |
#include "kernel.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
start:
pcall(getLcdLock)
pcall(allocScreenBuffer)
pcall(clearScreen)
kld(hl, message)
ld de, 0
pcall(drawStr)
jr $ ; Loop forever
message:
.db "Hello world!", 0
|
; void *balloc_firstfit(unsigned int queue, unsigned char num)
SECTION code_clib
SECTION code_alloc_balloc
PUBLIC _balloc_firstfit
EXTERN l0_balloc_firstfit_callee
_balloc_firstfit:
pop af
pop hl
pop bc
push bc
push hl
push af
jp l0_balloc_firstfit_callee
|
; A102678: Number of digits >= 6 in the decimal representations of all integers from 0 to n.
; 0,0,0,0,0,0,1,2,3,4,4,4,4,4,4,4,5,6,7,8,8,8,8,8,8,8,9,10,11,12,12,12,12,12,12,12,13,14,15,16,16,16,16,16,16,16,17,18,19,20,20,20,20,20,20,20,21,22,23,24,25,26,27,28,29,30,32,34,36,38,39,40,41,42,43,44,46,48,50,52,53,54,55,56,... |
; A236967: Expansion of (1+3*x)^2/(1-3*x)^2.
; 1,12,72,324,1296,4860,17496,61236,209952,708588,2361960,7794468,25509168,82904796,267846264,860934420,2754990144,8781531084,27894275208,88331871492,278942752080,878669669052,2761533245592,8661172452084,27113235502176,84728860944300
add $0,1
mov $3,$0
mov $5,3
lpb $0
sub... |
SECTION code_fp_math48
PUBLIC ___schar2fs_callee
EXTERN cm48_sdccixp_schar2ds_callee
defc ___schar2fs_callee = cm48_sdccixp_schar2ds_callee
|
/*
* Copyright 2017 Google LLC
*
* 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 ... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; void *wa_priority_queue_top(wa_priority_queue_t *q)
;
; Return word stored at front of queue.
;
; ===============================================================
SECTION ... |
db 0 ; species ID placeholder
db 60, 60, 40, 35, 65, 45
; hp atk def spd sat sdf
db FIRE, GROUND ; type
db 255 ; catch rate
db 88 ; base exp
db ICE_BERRY, ICE_BERRY ; items
db GENDER_F50 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/numel/front.dimensions"
db GROWTH_MEDIUM_FA... |
;
; System Call for REX6000
;
; $Id: syscall5.asm,v 1.5 2015/01/19 01:33:06 pauloscustodio Exp $
;
PUBLIC syscall5
.syscall5
ld ix,2
add ix,sp
ld l,(ix+0) ;par 5
ld h,(ix+1)
ld ($c00a),hl
ld l,(ix+2) ;par 4
ld h,(ix+3)
ld ($c008),hl
ld l,(ix+4) ;par 3
ld h,(ix+5)
ld ($c006),hl
ld l,(ix+6) ;par 2
ld h,... |
/**********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2016, Gabriel Hottiger, Christian Gehring
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
/*
* 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... |
;
; Automatically generated
;
.include "detokenise/detokenise.asm"
.include "detokenise/dtprint.asm"
.include "detokenise/identifier.asm"
.include "detokenise/token.asm"
.include "tokenise/search.asm"
.include "tokenise/test.asm"
.include "tokenise/tokenise.asm"
.include "tokenise/tokident.asm"
.include "token... |
; A195180: a(n) = 5*n - floor(3*n*sqrt(2)).
; 0,1,2,3,4,4,5,6,7,7,8,9,10,10,11,12,13,13,14,15,16,16,17,18,19,19,20,21,22,22,23,24,25,25,26,27,28,29,29,30,31,32,32,33,34,35,35,36,37,38,38,39,40,41,41,42,43,44,44,45,46,47,47,48,49,50,50,51,52,53,54,54,55,56,57,57,58,59,60,60,61,62,63,63,64,65,66,66,67,68,69,69,70,71,72,7... |
; A056121: a(n) = n*(n + 15)/2.
; 0,8,17,27,38,50,63,77,92,108,125,143,162,182,203,225,248,272,297,323,350,378,407,437,468,500,533,567,602,638,675,713,752,792,833,875,918,962,1007,1053,1100,1148,1197,1247,1298,1350,1403,1457,1512,1568,1625
mov $1,$0
add $0,15
mul $1,$0
div $1,2
|
; A179741: a(n) = (2*n+1)*(6*n-1).
; -1,15,55,119,207,319,455,615,799,1007,1239,1495,1775,2079,2407,2759,3135,3535,3959,4407,4879,5375,5895,6439,7007,7599,8215,8855,9519,10207,10919,11655,12415,13199,14007,14839,15695,16575,17479,18407,19359,20335,21335,22359,23407,24479,25575,26695,27839,29007,30199,31415,32655,33919,... |
ORG 0000H
MOV R0,#40H
MOV R2,#10H
MOV DPTR,#9000H
LOOP: MOV A,@R0
CJNE A,B,Z
INC R1
Z: INC R0
DJNZ R2,LOOP
MOV A,R1
MOVX @DPTR,A
JMP $
RET
END |
#include "Platform.inc"
#include "TestDoubles.inc"
radix decimal
udata
global calledEnableAdcCount
global calledDisableAdcCount
calledEnableAdcCount res 1
calledDisableAdcCount res 1
EnableDisableAdcMocks code
global initialiseEnableAndDisableAdcMocks
global enableAdc
global disableAdc
initialiseEnableAnd... |
main:
main.loop:
CAL getc
CMP $20, $0, #10
CAL putc
BRA main.loop, !NE $20
main.end:
RET
|
#include "daScript/misc/platform.h"
#include "daScript/ast/ast.h"
#include "daScript/ast/ast_match.h"
#include "daScript/ast/ast_expressions.h"
#include "daScript/simulate/runtime_array.h"
#include "daScript/simulate/runtime_table_nodes.h"
#include "daScript/simulate/runtime_range.h"
#include "daScript/simulate/runti... |
/*--------------------------------------------------------
* xsubgraph.cc
* Random extraction of a (possibly) connected subgraph
* See: argraph.h, xsubgraph.h
*
* Author: P. Foggia
--------------------------------------------------------*/
#include <assert.h>
#include <stdlib.h>
#include <math.h>
#include "argr... |
// 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 "sandbox/linux/bpf_dsl/bpf_dsl.h"
#include <errno.h>
#include <limits>
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include... |
;=================================================
; Name: Adrian Harminto
; Email: aharm002@ucr.edu
;
; Lab: lab 4
; Lab section: 24
; TA: Bryan Marsh
;
;=================================================
.orig x3000
;------------
;Instruction
;------------
LEA R0, intro ;exercise 2
PUTS
LD R6, siz... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp>
#include "base58.h"
#include "bitcoinrpc.h"
#inclu... |
/*
* Unit tests for XmlRpc++
*
* Copyright (C) 2017, Zoox Inc
*
* 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; either
* version 2.1 of the License, or (at your option) any later ... |
//
// buffered_stream.hpp
// ~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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)
//
#ifndef BOOST_ASIO_... |
; A112557: Smallest number of stones in Tchoukaillon (or Mancala, or Kalahari) solitaire which make use of (2*n-1)-th hole for n>=1; a bisection of A002491.
; 1,4,10,18,30,42,58,78,102,118,150,174,210,240,274,322,360,402,442,498,540,612,648,718,780,840,918,990,1054,1122,1200,1278,1392,1428,1548,1632,1714,1834,1882,2040... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xa6bc, %r15
xor $29680, %r9
movb (%r15), %r12b
nop
nop
nop
nop
xor %r13, %r13
lea addresses_WT_ht+0x6abc, %r15
nop
dec %r14
movb $0x61, (%r15)
xor %r13, %r13
lea addresses_A_h... |
; A110556: a(n) = binomial(2*n-1,n)*(-1)^n for n>0; a(0) = 1.
; 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,... |
; int __FASTCALL__ fgetc(FILE *stream)
; 05.2008 aralbrec
PUBLIC fgetc
PUBLIC ASMDISP_FGETC
EXTERN l_jpix, stdio_error_mc, stdio_error_eacces_mc
INCLUDE "../stdio.def"
.fgetc
push hl
pop ix
.asmentry
; enter : ix = FILE *
; exit : a = hl = char and carry reset for success
; hl = -1 and car... |
; void __CALLEE__ sp1_Initialize_callee(uchar iflag, uchar colour, uchar tile)
; 03.2006 aralbrec, Sprite Pack v3.0
; sinclair zx version
SECTION code_temp_sp1
PUBLIC sp1_Initialize_callee
sp1_Initialize_callee:
pop bc
pop hl
pop de
ld h,e
pop de
ld a,e
push bc
INCLUDE "temp/sp1/zx/updater/... |
aci -128 ; CE 80
aci 127 ; CE 7F
aci 255 ; CE FF
adc (hl) ; 8E
adc (hl+) ; 8E 23
adc (hl-) ; 8E 2B
adc (ix) ; FD 8E 00
adc (ix+127) ; FD 8E ... |
; A024019: 2^n-n^9.
; 1,1,-508,-19675,-262128,-1953093,-10077632,-40353479,-134217472,-387419977,-999998976,-2357945643,-5159776256,-10604491181,-20661030400,-38443326607,-68719411200,-118587745425,-198359028224,-322687173491,-511998951424,-794277949429,-1207265023488,-1801144272855,-2641790763008,-3814663711193,-54294... |
#include "pch.h"
#include "AssimpWrapper.h"
#include "Mesh.h"
#include "VertSignature.h"
#include "SkeletalModel.h"
#include "AnimChannel.h"
const aiScene* AssimpWrapper::loadScene(Assimp::Importer& importer, const std::string& path, UINT pFlags)
{
assert(FileUtils::fileExists(path) && "File not accessible!");
con... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rdx
push %rsi
lea addresses_normal_ht+0x12b19, %rdx
nop
nop
nop
nop
xor $41577, %rax
mov $0x6162636465666768, %rbx
movq %rbx, (%rdx)
and %rax, %rax
lea addresses_A_ht+0xf719, %rcx
nop
sub %rsi, %rsi
mov $0x61626364656667... |
; Initialize the stack pointer
MOV XL, 0xFF
MOV XH, 0xFA
MOV SP, X
; The offset value is stored in a register
MOV G, 1
; =================================================================
; Indirect Memory Addressing with a register based positive offset
; ==============================================================... |
aLine 0
gNew currentPtr
gMoveNext currentPtr, Root
aLine 1
sInit i, 0
sBge i, {1:D}, 10
aLine 2
gBne currentPtr, null, 3
aLine 3
Exception NOT_FOUND
aLine 5
gMoveNext currentPtr, currentPtr
aLine 1
sInc i, 1
Jmp -9
aLine 7
gBne currentPtr, null, 3
aLine 8
Exception NOT_FOUND
aLine 10
nNew newNodePtr, {0:D}
gNew... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.