text stringlengths 1 1.05M |
|---|
; A142017: Primes congruent to 13 mod 31.
; Submitted by Jon Maiga
; 13,137,199,509,571,757,881,1129,1439,1811,1873,1997,2617,2741,2803,2927,3299,3361,3547,3671,3733,3919,4229,4663,4787,4973,5407,5531,5717,5779,5903,6089,6151,6337,6709,6833,7019,7577,7639,7949,8011,8693,8941,9127,9437,9623,9871,10181,10243,10429,10739,... |
/*
All modification made by Intel Corporation: © 2016 Intel Corporation
All contributions by the University of California:
Copyright (c) 2014, 2015, The Regents of the University of California (Regents)
All rights reserved.
All other contributions:
Copyright (c) 2014, 2015, the respective contributors
All rights rese... |
; A001749: Primes multiplied by 4.
; 8,12,20,28,44,52,68,76,92,116,124,148,164,172,188,212,236,244,268,284,292,316,332,356,388,404,412,428,436,452,508,524,548,556,596,604,628,652,668,692,716,724,764,772,788,796,844,892,908,916,932,956,964,1004,1028,1052,1076,1084,1108,1124,1132,1172,1228,1244,1252,1268,1324,1348,1388,1... |
.L22:
; m -= o_f_f;
mov esi, OFFSET FLAT:o_f_f
mov rdi, rsp
call DS::Numbers::Integer::operator-=
; intType m3(init+intType(3)), m4(init+intType(4)), m6(init+intType(6));
lea rdi, [rsp+96]
mov esi, 3
call DS::Numbers::Integer::Integer(int)
lea rdi, [rsp+48]
mov ... |
; A341579: Number of steps needed to solve the Towers of Hanoi exchanging disks puzzle with 3 pegs and n disks.
; Submitted by Christian Krause
; 0,1,3,7,13,25,47,89,165,307,569,1057,1959,3633,6733,12483,23137,42889,79495,147353,273125,506259,938377,1739345,3223975,5975841,11076573,20531107,38055633,70538425,130747207,... |
#include <utilities/StringEscape.hpp>
#include <sstream>
namespace gdwcore {
namespace utilities {
std::string escape_string_for_c_source_code(const std::string& input)
{
std::ostringstream escaped_string;
escaped_string << "\"";
for (unsigned i = 0; i < input.s... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.14.26428.1
TITLE C:\Users\dkovari\Documents\GitHub\ExtrasToolbox\+extras\external_libs\zlib\src\zlib-1.2.11\inflate.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
CONST SEGMENT
?lenfix@?1??fixedtables@@9@9 ... |
// Copyright (c) 2011-2018 The Test Coin Super Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/bench.h>
#include <chainparams.h>
#include <coins.h>
#include <consensus/merkle.h>
#include <consensu... |
;
; Z88DK Graphics Functions - Small C+ stubs
;
; $Id: xorplot.asm,v 1.5 2016-04-22 20:17:17 dom Exp $
;
;Usage: xorplot(int x, int y)
SECTION code_graphics
PUBLIC c_xorplot
PUBLIC _c_xorplot
EXTERN swapgfxbk
EXTERN __graphics_end... |
map_header SafariZoneNorthRestHouse, SAFARI_ZONE_NORTH_REST_HOUSE, GATE, 0
end_map_header
|
; A275248: Sequence of pairwise relatively prime numbers of class P_4 (see comment in A275246).
; Submitted by Jon Maiga
; 10,21,187,247,713,1073,1927,2279,3953,4331,6059,7031,9991,10807,13843,14803,20413,20989,26219,28199,34189,34933,41567,44377,52891,54731,61937,66013,74513,76151,86881,91123,103603,106829,122491,1252... |
; putting two numbers on the stack
; and adds them
; 10 SYS (32768)
*=$0801
BYTE $0E, $08, $0A, $00, $9E, $20, $28, $33, $32, $37, $36, $38, $29, $00, $00, $00
*=$8000
lda #35
pha ; push the contents of the accumulator on to the stack
lda #... |
// File: SingleGroupTransport.cpp
// Purpose: define a single group transport object
// Date: October 28, 2019
#include "SingleGroupTransport.h"
#include "MultiGroupTransport.h"
#include "StartingAngle.h"
#include "SimpleCornerBalance.h"
using namespace std;
//=======================================================... |
/**
* @cond doxygenLibsbmlInternal
*
* @file IdentifierConsistencyConstraints.cpp
* @brief IdentifierConsistency check constraints. See SBML Wiki
* @author Sarah Keating
*
* <!--------------------------------------------------------------------------
* This file is part of libSBML. Please visit... |
; A004526: Nonnegative integers repeated, floor(n/2).
; 0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47... |
; A001350: Associated Mersenne numbers.
; 0,1,1,4,5,11,16,29,45,76,121,199,320,521,841,1364,2205,3571,5776,9349,15125,24476,39601,64079,103680,167761,271441,439204,710645,1149851,1860496,3010349,4870845,7881196,12752041,20633239,33385280,54018521,87403801,141422324,228826125,370248451,599074576,969323029,1568397605,253... |
_forktest: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
printf(1, "fork test OK\n");
}
int
main(void)
{
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 push... |
; A060561: Number of ways to color vertices of a 9-gon using <= n colors, allowing rotations and reflections.
; 0,1,46,1219,15084,110085,563786,2250311,7472984,21552969,55605670,131077771,286779076,589324749,1148105154,2136122255,3818273456,6588925841,11020906014,17928333139,28446045340,44128712341,67073090106,10006725... |
include uXmx86asm.inc
option casemap:none
ifndef __X64__
.686P
.xmm
.model flat, c
else
.X64P
.xmm
option win64:11
option stackbase:rsp
endif
option frame:auto
.code
align 16
uXm_has_enabled_YMM proto VECCALL (byte)
align 16
uXm_has_enabled_YMM proc VECCALL (byte)
mov ... |
.export ultimem_burn_byte
.export _ultimem_burn_byte
.import _ultimem_send_command
.import _ultimem_poll
.importzp s, d, tmp
.import popax
.proc _ultimem_burn_byte
sty tmp
jsr popax
ldy tmp
.endproc
.proc ultimem_burn_byte
sta s
stx s+1
lda #$a0
jsr _ultimem_send_command
tya
ld... |
;
; KILL THE BIT GAME BY DEAN MCDANIEL, MAY 15, 1975
;
; OBJECT: KILL THE ROTATING BIT. IF YOU MISS THE LIT BIT, ANOTHER
; BIT TURNS ON LEAVING TWO BITS TO DESTROY. QUICKLY
; TOGGLE THE SWITCH, DON'T LEAVE THE SWITCH IN THE UP
; POSITION. BEFORE STARTING, MAKE SURE ALL THE SWITCHES
; ... |
; # Endianess
; x86 is little endian.
; http://stackoverflow.com/questions/5185551/why-is-x86-little-endian
%include "lib/common_nasm.inc"
section .data
x dw 0x0102
ENTRY
ASSERT_EQ [x], 2, byte
EXIT
|
;
;Based on the SG C Tools 1.7
;(C) 1993 Steve Goldsmith
;
;$Id: outvdc.asm,v 1.1 2008/06/23 17:34:34 stefano Exp $
;
;set vdc register
XLIB outvdc
LIB outvdc_callee
XREF ASMDISP_OUTVDC_CALLEE
outvdc:
pop bc ;return address
pop de ;... |
;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
;; See the LICENSE file in the project root for more information.
.586
.model flat
option casemap:none
.code
include AsmMacros.inc
ifdef FEATURE_D... |
/*
* Copyright 2020 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "tests/Test.h"
#include <memory>
#include "src/gpu/GrShaderCaps.h"
#include "src/sksl/SkSLCompiler.h"
#include "src/sksl/SkSLString.h"
#include "src/sksl/ir/SkSLPro... |
/*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2019, the Ginkgo 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 co... |
;------------------------------------------------------------------------------
; dispatch.nasm - dispatching routines.
;------------------------------------------------------------------------------
module librm.dispatch
importproc _ChannelCreate, _ChannelDestroy
importproc _malloc, _free
%include "errors.ah"
%incl... |
_ls: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
close(fd);
}
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 push %eb... |
/*********************************************/
/* Set Cover C++ v1.2 */
/* Simulated Annealing */
/* Mark Mammel 2/25/14 */
/*********************************************/
/*********************************************/
/* compile in Linux with: ... |
###############################################################################
# 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... |
; void balloc_free(void *m)
SECTION code_alloc_balloc
PUBLIC balloc_free
balloc_free:
INCLUDE "alloc/balloc/z80/asm_balloc_free.asm"
|
; Testing the Random Number generator (TestRandom.asm)
; Chapter 5 example
ExitProcess PROTO
WriteInt64 PROTO
Crlf PROTO
Random64 PROTO
RandomRange PROTO
Randomize PROTO
.code
main proc
sub rsp,8 ; align the stack pointer
sub rsp,20h ; reserve 32 bytes for shadow parameters
call... |
; Input:
; x0: [bp + 12] -> [bp + rect_x0]
; y0: [bp + 10] -> [bp + rect_y0]
; w: [bp + 8] -> [bp + rect_w]
; h: [bp + 6] -> [bp + rect_h]
; px: [bp + 4] -> [bp + px_set]
%assign rect_x0 12
%assign rect_y0 10
%assign rect_w 8
%assign rect_h 6
%assign px_set 4
%assign rect_next_row 2
%include "... |
#include "stdafx.h"
#include "Analysis.h"
#include<stdlib.h>
#include<stdio.h>
#include<math.h>
#include "AnalysisDoc.h"
#include "Figure.h"
#include "AnalysisView.h"
#include "SinTable.h"
double CAnalysisView::Mean(double *Array, int N)
{
int i;
double mean=0;
if(N==0 && m_FirstTime0ElementErr)... |
db 0 ; species ID placeholder
db 65, 90, 50, 55, 85, 45
; hp atk def spd sat sdf
db GRASS, POISON ; type
db 120 ; catch rate
db 151 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/weepinbe... |
; uint sp1_ScreenStr(uchar row, uchar col)
; CALLER linkage for function pointers
SECTION code_temp_sp1
PUBLIC sp1_ScreenStr
EXTERN asm_sp1_ScreenStr
sp1_ScreenStr:
ld hl,2
ld e,(hl)
inc hl
inc hl
ld d,(hl)
jp asm_sp1_ScreenStr
|
; A135854: a(n) = (n+1)*(2^n+1) for n>0 with a(0)=1.
; 1,6,15,36,85,198,455,1032,2313,5130,11275,24588,53261,114702,245775,524304,1114129,2359314,4980755,10485780,22020117,46137366,96469015,201326616,419430425,872415258,1811939355,3758096412,7784628253,16106127390,33285996575,68719476768,141733920801,292057776162,60129... |
-- HUMAN RESOURCE MACHINE PROGRAM --
a:
INBOX
COPYTO 0
ADD 0
COPYTO 0
ADD 0
COPYTO 0
ADD 0
COPYTO 1
ADD 1
COPYTO 0
ADD 0
ADD 1
OUTBOX
JUMP a
|
.setcpu "65816"
.autoimport on
.include "utility-macros.inc"
.include "GlobalVarsAndConsts.inc"
.import PaletteBase:far
.export initSystemGenericStatuses
.export initVideoForGame
.export configureSpriteForGame
.export disableScreen
.export enableNMI
.export disableNMI
.export enableScreensWithBrightness
.export trans... |
#ifdef _debug
#define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
using namespace std;
void uni(int x, int y, set<pair<int, int>> &count, vector<string> &area) {
if(area[x][y] == 'o') {
count.insert(make_pair(x, y));
// cout << "uni -> " << x << " " << y << endl;
if(x > 0 && count.find(... |
org 30000
tv_flag equ 5C3Ch
start
; Directs rst 10h output to main screen.
xor a
ld (tv_flag),a
ld b, 50
another
push bc
ld hl,hello
again ld a,(hl)
cp 0
jr z, exit
push hl
rst 10h
pop hl
inc hl
jr again
exit
pop bc
djnz another
ret
hello db "Hello, world.", 0Dh, 0... |
// Copyright (c) 2009-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.
#ifndef WIN32
// for posix_fallocate
#ifdef __linux__
#define _POSIX_C_SOURCE 2001... |
;
; Copyright (c) Microsoft. All rights reserved.
; Licensed under the MIT license. See LICENSE file in the project root for full license information.
;
; ==++==
;
;
; ==--==
include AsmMacros.inc
include AsmConstants.inc
PInvokeStubForHostWorker equ ?PInvokeStubForHostWorker@@YAXKPEAX0@Z
extern PInvokeStub... |
;*****************************************************************
;* - Description: Device definition file for RC Calibration
;* - File: m644.asm
;* - AppNote: AVR053 - Production calibration of the
;* RC oscillator
;*
;* - Author: Atmel Corporation: http://www.atmel.com
;*... |
; This file is part of the ZRDX 0.50 project
; (C) 1998, Sergey Belyakov
;Protected mode handlers for DPMI host
;handler for:
;hardware interrupts from PM PMHIntHand
;hardware interrupts from RM RMHIntHand
;default software interrupts from PM ... |
#include "include/MMVII_all.h"
#include "include/MMVII_Tpl_Images.h"
namespace MMVII
{
static int SomI(int i) {return (i * (i+1)) / 2;}
static int SomIntI(int i0,int i1) {return SomI(i1-1) - SomI(i0-1);}
static double FoncTestIm(const cPt2di & aP)
{
return aP.x() - 1.234 * aP.y() + 1.0 * (1 +pow(std::abs(aP.x()... |
; A096200: n*(n-1)*(n-2)*(3*n-2)/6.
; 0,0,0,7,40,130,320,665,1232,2100,3360,5115,7480,10582,14560,19565,25760,33320,42432,53295,66120,81130,98560,118657,141680,167900,197600,231075,268632,310590,357280,409045,466240,529232,598400,674135,756840,846930,944832
mov $2,$0
bin $0,3
mul $2,3
sub $2,2
mul $0,$2
mov $1,$0
|
; void sms_tiles_put_area(struct r_Rect8 *r, void *src)
SECTION code_clib
SECTION code_arch
PUBLIC _sms_tiles_put_area_callee
EXTERN asm_sms_tiles_put_area
_sms_tiles_put_area_callee:
pop af
pop ix
pop de
push af
jp asm_sms_tiles_put_area
|
AnimateHealingMachine:
ld de, PokeCenterFlashingMonitorAndHealBall
ld hl, vChars0 + $7c0
lb bc, BANK(PokeCenterFlashingMonitorAndHealBall), $03 ; loads one too many tiles
call CopyVideoData
ld hl, wUpdateSpritesEnabled
ld a, [hl]
push af
ld [hl], $ff
push hl
ld a, [rOBP1]
push af
ld a, $e0
ld [rOBP1], a
l... |
#define _CRT_SECURE_NO_WARNINGS
#include<algorithm>
#include<cassert>
#include<cstdio>
#include<cstring>
#include<iostream>
#include<string>
#include<vector>
using namespace std;
namespace Templates
{
struct BigInteger
{
typedef unsigned long long LL;
static const int BASE = 100000000;
static co... |
###############################################################################
# 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... |
#include "doctest.h"
#include "simplegraphics/simplegraphics.hpp"
TEST_CASE("Basic shapes")
{
SimpleGraphics::Rectangle rectangle(0, 0, 50, 100);
rectangle.save("test_1_1.svg");
CHECK(rectangle.to_svg() == "<rect height=\"100\" width=\"50\" x=\"0\" y=\"0\" ></rect>");
SimpleGraphics::Circle circle(0,... |
ROUTE39FARMHOUSE_MILK_PRICE EQU 500
object_const_def ; object_event constants
const ROUTE39FARMHOUSE_POKEFAN_M
const ROUTE39FARMHOUSE_POKEFAN_F
Route39Farmhouse_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
PokefanM_DairyFarmer:
faceplayer
opentext
checkevent EVENT_HEALED_MOOMOO
iftrue FarmerMScript_Se... |
org $0000
; Object types
OBJECT_NONE EQU 0
OBJECT_SWITCH EQU 1
OBJECT_DOOR EQU 2
OBJECT_DOOR_DESTROY EQU 3
OBJECT_FLOOR_DESTROY EQU 4
OBJECT_WALL_DESTROY EQU 5
OBJECT_BOX_LEFT EQU 6
OBJECT_BOX_RIGHT EQU 7
OBJECT_JAR EQU 8
OBJECT_TELEPORTER EQU 9
; Pickable object types
OBJECT_KEY_GREEN EQU 11
OBJECT_KEY_BLUE EQU... |
// Copyright (c) 2020, the GRAPHGEN contributors, as
// shown by the AUTHORS file. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "graphgen.h"
#include "rosenfeld3d_ruleset.h"
using namespace std;
int main()
{
// Setup con... |
// Commodore 64 PRG executable file
.file [name="bitmap-plotter.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
:BasicUpstart(main)
.const BMM = $20
.const DEN... |
title "Debug Support Functions"
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; You may only use this code if you agree to the terms of the Windows Research Kernel Source Code License agreement (see License.txt).
; If you do not agree to the terms, do not use the code.
;
;
; Module Name:... |
SECTION code_fp_am9511
PUBLIC cam32_sccz80_fmod_callee
EXTERN _am9511_fmod, asm_switch_arg
.cam32_sccz80_fmod_callee
; Entry:
; Stack: float left, float right, ret
; Reverse the stack
call asm_switch_arg
call _am9511_fmod
pop af
pop af
pop af
pop af
ret
|
; ---------------------------------------------------------------------------
; Sprite mappings - special stage entry from beta
; ---------------------------------------------------------------------------
Map_Vanish_internal:
dc.w @flash1-Map_Vanish_internal
dc.w @flash2-Map_Vanish_internal
dc.w @flash3-Map_Vani... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %r9
push %rbp
push %rbx
push %rdi
// Faulty Load
lea addresses_normal+0x9762, %r9
nop
nop
and $26090, %r15
vmovups (%r9), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $0, %xmm7, %rbp
lea oracles, %r14
and... |
; A157369: a(n) = 343*n - 273.
; 70,413,756,1099,1442,1785,2128,2471,2814,3157,3500,3843,4186,4529,4872,5215,5558,5901,6244,6587,6930,7273,7616,7959,8302,8645,8988,9331,9674,10017,10360,10703,11046,11389,11732,12075,12418,12761,13104,13447,13790,14133,14476,14819,15162,15505,15848,16191,16534,16877,17220,17563,17906,18... |
// -*- C++ -*-
//
// Package: PhysicsTools/NanoAOD
// Class: LHCInfoProducer
//
/**\class LHCInfoProducer LHCInfoProducer.cc PhysicsTools/NanoAOD/plugins/LHCInfoProducer.cc
Description: [one line class summary]
Implementation:
[Notes on implementation]
*/
//
// Original Author: Justin Williams
// ... |
; char *ltoa(unsigned long num, char *buf, int radix)
SECTION code_clib
SECTION code_stdlib
PUBLIC ltoa
EXTERN asm_ltoa
ltoa:
pop af
pop bc
pop ix
pop hl
pop de
push de
push hl
push hl
push bc
push af
jp asm_ltoa
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _ltoa
defc _l... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x11f57, %r12
nop
nop
cmp %r13, %r13
movups (%r12), %xmm6
vpextrq $1, %xmm6, %rbx
nop
nop
nop
nop
nop
xor $27265, %r12
lea addresses_normal_ht+0x2837, %r9
nop
nop
nop
... |
; uint sp1_ScreenStr(uchar row, uchar col)
; CALLER linkage for function pointers
PUBLIC sp1_ScreenStr
EXTERN sp1_ScreenStr_callee
EXTERN ASMDISP_SP1_SCREENSTR_CALLEE
.sp1_ScreenStr
ld hl,2
ld e,(hl)
inc hl
inc hl
ld d,(hl)
jp sp1_ScreenStr_callee + ASMDISP_SP1_SCREENSTR_CALLEE
|
; A118239: Engel expansion of cosh(1).
; 1,2,12,30,56,90,132,182,240,306,380,462,552,650,756,870,992,1122,1260,1406,1560,1722,1892,2070,2256,2450,2652,2862,3080,3306,3540,3782,4032,4290,4556,4830,5112,5402,5700,6006,6320,6642,6972,7310,7656,8010,8372,8742,9120,9506,9900,10302,10712,11130,11556,11990,12432,12882,13340,1... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %r8
push %rax
push %rcx
lea addresses_D_ht+0x19608, %r8
nop
nop
nop
nop
add %rcx, %rcx
mov (%r8), %r13d
nop
sub $36839, %rax
lea addresses_WT_ht+0x19c9c, %r10
and %r14, %r14
movl $0x61626364, (%r10)
nop
nop
nop
nop
nop
sub %rcx, %... |
# $Id: 14_beq_2.asm,v 1.2 2001/03/22 00:39:04 ellard Exp $
#
# Copyright 1999-2000 by the President and Fellows of Harvard College.
# See LICENSE.txt for license information.
#
#@ test of beq.
# OK
lc r2, $eq
beq r2, r2, r0
add r4, r1, r0
hlt
eq:
lc r3, 10
hlt
|
; "l1 print char a = character, de = Ypixel Xchar of print"
l1_print_char: push de,,hl
pixelad ; hl = address of de
push hl ; save hl for loop
ld h,0
ld l,a
add hl,hl ... |
; SD Card and FAT32 development testbed
; contains reusable functions that can be the basis for enhancing the monitor
; done by sy2002 in June .. August 2016
;
; November 2016 .. December 2016: enhanced by new test case and fixed
; "read multiple files in parallel" bug, so that for example the test program
; c/test_pro... |
//
// ConeParticleEmitterDef.cpp
// Chilli Source
// Created by Ian Copland on 02/11/2014.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Tag Games Limited
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Softwar... |
/*
$Id: heapmerger-pq.cc 5149 2010-03-24 23:37:18Z abehm $
Copyright (C) 2010 by The Regents of the University of California
Redistribution of this file is permitted under the terms of
the BSD license.
This imeplementation merges multiple lists by building a priority queue
(heap) based on the top eleme... |
global @ASM_strlen@4
segment .text align=16
%define string ecx
%define result eax
@ASM_strlen@4:
cmp byte [string], 0
je .return0
mov result, string
.loop:
lea edx, [result + 1]
mov result, edx
cmp byte [edx], 0
je .return
inc result
cmp byte [result], 0
... |
LCCheese label byte
word C_BLACK
Bitmap <71,100,BMC_PACKBITS,BMF_4BIT or mask BMT_MASK>
db 0x00, 0x1f, 0xfa, 0xff, 0x00, 0xf0
db 0x01, 0xdd, 0xd0, 0xe1, 0x00, 0x01, 0xdd, 0xd0
db 0x00, 0x7f, 0xfa, 0xff, 0x00, 0xfc
db 0x05, 0xd0, 0x0e, 0xee, 0xee, 0x6e, 0x6e, 0xf9,
0xee, 0x00, 0x6e, 0xee, 0xee, 0x01, 0x0... |
; void __CALLEE__ *sp1_PreShiftSpr_callee(uchar flag, uchar height, uchar width, void *srcframe, void *destframe, uchar rshift)
; 05.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
PUBLIC sp1_PreShiftSpr_callee
PUBLIC ASMDISP_SP1_PRESHIFTSPR_CALLEE
.sp1_PreShiftSpr_callee
pop af
pop bc
pop iy
... |
; A006003: a(n) = n*(n^2 + 1)/2.
; 0,1,5,15,34,65,111,175,260,369,505,671,870,1105,1379,1695,2056,2465,2925,3439,4010,4641,5335,6095,6924,7825,8801,9855,10990,12209,13515,14911,16400,17985,19669,21455,23346,25345,27455,29679,32020,34481,37065,39775,42614,45585,48691,51935,55320,58849,62525,66351,70330,74465,78759,83215... |
SECTION code_stdio
PUBLIC __stdio_file_destructor
EXTERN asm_mtx_destroy, __0_stdio_file_constructor, l_offset_ix_de
__stdio_file_destructor:
; invalidates the FILE
;
; enter : ix = FILE *
;
; exit : ix = FILE * (now dead FILE)
;
; uses : af, bc, de, hl
ld hl,7
call l_offset_ix_de ... |
; OS function vectors
USERV = &0200
BRKV = &0202
IRQ1V = &0204
IRQ2V = &0206
CLIV = &0208
BYTEV = &020A
WORDV = &020C
WRCHV = &020E
RDCHV = &0210
FILEV = &0212
ARGSV = &0214
BGETV = &0216
BPUTV = &0218
GBPBV = &021A
FINDV = &021C
FSCV = &021E
EVNTV = &0220
UPTV = &0222
NETV = &0224
VDUV = &0226
KEYV = &0228
INSBV = &0... |
; A080039: a(n) = floor((1+sqrt(2))^n).
; Submitted by Jon Maiga
; 1,2,5,14,33,82,197,478,1153,2786,6725,16238,39201,94642,228485,551614,1331713,3215042,7761797,18738638,45239073,109216786,263672645,636562078,1536796801,3710155682,8957108165,21624372014,52205852193,126036076402,304278004997,734592086398,1773462177793,4... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1ee03, %r10
nop
nop
nop
nop
nop
cmp %rdx, %rdx
movl $0x61626364, (%r10)
nop
nop
nop
nop
add %rbx, %rbx
lea addresses_WT_ht+0x1aeb3, %rdi
nop
nop
nop
nop
nop
xor $20997, %rbp
... |
;
; Game device library for the PC6001
;
SECTION code_clib
PUBLIC joystick
PUBLIC _joystick
EXTERN get_psg
.joystick
._joystick
;__FASTCALL__ : joystick no. in HL
ld a,14
dec l
jr z,got_port
ld hl,0
ret
got_port:
ld l,a
call get_psg ;Exits with a = value
ld hl,0
rra
jr nc,not_fire
set 4,... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x15ba1, %r12
nop
sub $28582, %r13
mov $0x6162636465666768, %rdi
movq %rdi, %xmm4
vmovups %ymm4, (%r12)
nop
nop
cmp $7739, %rax
lea addresses_WC_ht+0x11355, %rcx
nop
nop
nop
no... |
; A139288: 2^(2p - 1)/2, where p is prime.
; 4,16,256,4096,1048576,16777216,4294967296,68719476736,17592186044416,72057594037927936,1152921504606846976,4722366482869645213696,1208925819614629174706176,19342813113834066795298816
seq $0,6005 ; The odd prime numbers together with 1.
trn $0,2
mov $2,4
pow $2,$0
mov $0,$2
... |
; A290840: a(n) = n! * [x^n] exp(n*x)/(1 + LambertW(-x)).
; Submitted by Christian Krause
; 1,2,12,117,1584,27525,585108,14726411,428551616,14161828185,523952280900,21456869976135,963553844335536,47078974421716757,2486272976536821332,141118622400977894475,8566597074999702384384,553816179165426157329201,3798597511732265... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x16e33, %r13
nop
nop
dec %rcx
mov (%r13), %si
nop
add $4230, %rsi
lea addresses_WC_ht+0x9c17, %r12
nop
xor %r13, %r13
mov $0x6162636465666768, %r10
movq %r10, %xmm5
movups %xmm5, (%r12... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */
/* link this file in with the server and any client... |
; A237250: Values of x in the solutions to x^2 - 4xy + y^2 + 11 = 0, where 0 < x < y.
; 2,3,5,10,18,37,67,138,250,515,933,1922,3482,7173,12995,26770,48498,99907,180997,372858,675490,1391525,2520963,5193242,9408362,19381443,35112485,72332530,131041578,269948677,489053827,1007462178,1825173730,3759900035,6811641093,14032... |
extern m7_ippsECCPInitStd128r1:function
extern n8_ippsECCPInitStd128r1:function
extern y8_ippsECCPInitStd128r1:function
extern e9_ippsECCPInitStd128r1:function
extern l9_ippsECCPInitStd128r1:function
extern n0_ippsECCPInitStd128r1:function
extern k0_ippsECCPInitStd128r1:function
extern ippcpJumpIndexForMergedLibs
exter... |
/*!
* \brief Unit tests for \ref RemoteReaderAdvertiserImpl
*
* \copyright Copyright (c) 2017-2018 Governikus GmbH & Co. KG, Germany
*/
#include "RemoteReaderAdvertiser.h"
#include "DatagramHandler.h"
#include "Env.h"
#include "messages/Discovery.h"
#include <QNetworkProxy>
#include <QtTest>
using namespace gov... |
DATA SEGMENT
N1 DB 01H,02H,03H,04H,05H,06H,07H,08H,09H
N2 DB 09H,08H,07H,06H,05H,04H,03H,02H,01H
RES DB 09H DUP(?)
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START:
MOV AX,0000H
MOV AX,DATA
MOV DS,AX
MOV CX,0009H
MOV AX,0000H
LPT:
ADD AL,N1[SI]
ADD AL,N2[SI]
MOV RES[SI],AL
MOV AX... |
;***********************************************************
; Version 2.40.00
;***********************************************************
; Function UNPACK
; Processor: C55xx
; Decription: Unpacks the output of a Radix-2 DIF complex FFT using bit-reversed input
; ... |
.ORIG x3600
; Constants
;XDIM 8
;YDIM 10
;FOGOFWAR .FILL x2A ; A '*' char
;FLOORTILE .FILL x2E ; A '.' char
;WALL .FILL x23 ; A '#' char
;Think of map as a 10x8 block of characters (A string)
; Where each row is a array of characters followed by a new line
; This means we have (8 elements + 1 newline)*(number of... |
// Copyright (c) 2018-2021 The UFO Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparamsbase.h>
#include <key_io.h>
#include <rpc/server.h>
#include <rpc/util.h>
#include <util/strencodings.h>
#in... |
.text
ori $s0, $0, 0xfc01
mtc0 $s0, $12
go:
j go
nop
.ktext 0x00004180
ori $k0, $0, 0x7f40
lw $k1, 0($k0)
beq $k1, $0, return
ori $k0, $0, 0x7f2c
lw $t0, 0($k0)
lw $t1, 4($k0)
ori $t2, $0, 0x0001
beq $t2, $k1, calc_1
ori $t2, $0, 0x0002
beq $t2, $k1, calc_2
ori $t2, $0, 0x0004
beq $t2, $k1, calc_3
ori $t2, $0, 0x0008... |
; A050763: Numbers k such that the decimal expansion of k^k contains no pair of consecutive equal digits (probably finite).
; 0,1,2,3,4,5,7,9,15,18
mov $2,$0
sub $2,1
mov $1,$2
max $1,4
lpb $1
mov $0,$2
add $2,$1
trn $1,3
lpe
sub $0,3
|
/*
Helper class used by variadic implementation of variadic boost::signals2::signal.
Author: Frank Mori Hess <fmhess@users.sourceforge.net>
Begin: 2009-05-27
*/
// Copyright Frank Mori Hess 2009
// Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying f... |
/*
* Copyright 2004, François Revol.
* Copyright 2007-2010, Axel Dörfler, axeld@pinc-software.de.
* Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de.
* Copyright 2013, Ingo Weinhold, ingo_weinhold@gmx.de.
*
* Distributed under the terms of the MIT license.
*/
// TODO: this call is currently compiled for the ... |
// Inline functions in two levels
// Commodore 64 PRG executable file
.file [name="inline-function-level2.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
:BasicUps... |
;***********************************************************
; Version 2.40.00
;***********************************************************
; Processor: C55xx
; Description: 32-bit radix-2 DIT complex iFFT using normal input data
; and bit-reversed twiddle table (len... |
; A188082: [nr+kr]-[nr]-[kr], where r=sqrt(3), k=1, [ ]=floor.
; 1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,0,1,1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.