text stringlengths 1 1.05M |
|---|
; A279557: Number of length n inversion sequences avoiding the patterns 110, 120, and 021.
; Submitted by Jon Maiga
; 1,1,2,6,20,68,233,805,2807,9879,35073,125513,452389,1641029,5986994,21954974,80884424,299233544,1111219334,4140813374,15478839554,58028869154,218123355524,821908275548,3104046382352,11747506651600,44546... |
frame 1, 14
frame 2, 16
frame 3, 16
frame 1, 14
frame 4, 16
frame 0, 16
frame 4, 16
endanim
|
; void __LIB__ adt_Heapify_callee(void **array, uint n, void *compare)
; 08.2005 aralbrec
XLIB adt_Heapify_callee
LIB ADTHeapify, ADThcompare
.adt_Heapify_callee
pop de
pop iy
pop hl
pop bc
push de
ld ix,ADThcompare
jp ADTHeapify
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x10527, %r10
nop
nop
nop
and %r9, %r9
movw $0x6162, (%r10)
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_A_ht+0x7167, %rsi
nop
nop
nop
nop
and %r12, %r12
mov (%rsi), %rdi
nop
nop... |
#pragma execution_character_set("utf-8")
#include "rulerslider.h"
#include "qpainter.h"
#include "qevent.h"
#include "qtimer.h"
#include "qdebug.h"
RulerSlider::RulerSlider(QWidget *parent) : QWidget(parent)
{
minValue = 0.0;
maxValue = 100.0;
value = 0.0;
precision = 0;
longStep = 10;
s... |
//! \file
/*
** Copyright (C) - Triton
**
** This program is under the terms of the BSD License.
*/
#include <triton/pythonBindings.hpp>
#include <triton/pythonUtils.hpp>
#include <triton/pythonXFunctions.hpp>
#include <triton/aarch64Specifications.hpp>
#include <triton/x86Specifications.hpp>
/*! \page py_OPCODE_... |
; BUILT-IN ASSEMBLER MACROS
; NOTES:
; Some macros might trash the F register.
; Macros dealing with memory might trash the HL registers.
; sets HALT bit in the STATUS REGISTER
@macro
HALT:
inb f, 0x00
or f, 0x08
outb 0x00, f
; clear flags
@macro
CLF:
mw f, 0x00
; subtract without borrow
@macro
S... |
db 0 ; species ID placeholder
db 90, 90, 85, 100, 125, 90
; hp atk def spd sat sdf
db ELECTRIC, FLYING ; type
db 3 ; catch rate
db 216 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_UNKNOWN ; gender ratio
db 100 ; unknown 1
db 80 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/zap... |
#include "Item.h"
using std::string;
Item::Item(string itemName, ItemType itemType)
: name{std::move(itemName)},
type{itemType} {
}
bool Item::isTerminal() const {
return this->type == ItemType::Terminal;
}
bool Item::isNoTerminal() const {
return !isTerminal();
}
bool Item::operator<(c... |
; This table translates key presses into ascii codes.
; Also used by 'GetKey' and 'LookupKey'. An effort has been made for
; this key translation table to emulate a PC keyboard with the 'CTRL' key
SECTION rodata_clib
PUBLIC in_keytranstbl
.in_keytranstbl
;Unshifted - lower 2 bits are always unused, so each port ... |
#include "platform_interface.h"
#include "engine/command_line_parser.h"
#include "engine/iallocator.h"
#include "engine/string.h"
#include "imgui/imgui.h"
#include <cerrno>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <dirent.h>
#include <fcntl.h>
#include <sys/sendfile.h>
#include <sys/stat.h>
#inc... |
#ifndef __GUMPP_STRING_HPP__
#define __GUMPP_STRING_HPP__
#include "gumpp.hpp"
#include "podwrapper.hpp"
#include <cstring>
namespace Gum
{
class StringImpl : public PodWrapper<StringImpl, String, gchar>
{
public:
StringImpl (gchar * str)
{
assign_handle (str);
}
virtual ~StringImpl ()
... |
;********************************************************************************************************
; uC/LIB
; CUSTOM LIBRARY MODULES
;
; (c) Copyright 2004-2015; Micrium, Inc.; Weston, FL
;
; ... |
//
// file_handler.hpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2020 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 HTTP_SERVER4_FILE_HANDLER_H... |
; A040271: Continued fraction for sqrt(288).
; 16,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32
mov $1,16
lpb $0,1
mod $0,2
mul $1,2
lpe
gcd $1,$0
|
; A023645: a(n) = tau(n)-1 if n is odd or tau(n)-2 if n is even.
; 0,0,1,1,1,2,1,2,2,2,1,4,1,2,3,3,1,4,1,4,3,2,1,6,2,2,3,4,1,6,1,4,3,2,3,7,1,2,3,6,1,6,1,4,5,2,1,8,2,4,3,4,1,6,3,6,3,2,1,10,1,2,5,5,3,6,1,4,3,6,1,10,1,2,5,4,3,6,1,8,4,2,1,10,3,2,3,6,1,10,3,4,3,2,3,10,1,4,5,7,1,6,1,6,7,2,1,10,1,6,3,8,1,6,3,4,5,2,3,14,2,2,3,... |
_text SEGMENT
; char _InterlockedCompareExchange8(volatile char*, char NewValue, char Expected)
; - RCX, RDX, R8
_InterlockedCompareExchange8 PROC
mov eax,r8d
lock cmpxchg [rcx],dl
ret
_InterlockedCompareExchange8 ENDP
_text ENDS
END
|
; A303223: Sum of the perimeters of the family of rectangles with dimensions p and q such that |q - p| is prime, n = p + q and p < q.
; 0,0,0,8,10,12,28,16,54,20,66,24,104,28,150,32,170,36,228,40,294,44,322,48,400,52,432,56,464,60,558,64,660,68,700,72,740,76,858,80,902,84,1032,88,1170,92,1222,96,1372,100,1428,104,1484,... |
%include "util.asm"
%include "core.asm"
global _start
section .bss
resb 10
buffer resb 1024
section .code
_start:
enter 4,0
DUR EQU 100
regza
reglog
sleep 1000
reglog
beep 350, DUR
beep 400, DUR
beep 450, DUR
; mov ecx, 10
; play:
; beep 440, 100
; sleep 100
; loop play
leave
ret
|
#include "ofApp.h"
extern "C" {
#include "macGlutfix.h"
}
//--------------------------------------------------------------
void ofApp::setup(){
config::setup();
//UI
ofEnableAlphaBlending();
ofBackground(78);
logoX = 0;
logo.load("gui/images/logo.png");
fboPosition.y = 60;
... |
.psx
.create "output.bin", 0
; Simple region, like area, with sufficient space.
.region 20h
.word 1,2,3,4
.endregion
; A simple region with insufficient space.
.region 4h
.word 5,6
.endregion
; Should fit.
.autoregion
.warning "Allocated at " + tohex(.)
.word 7,8,9
.endautoregion
; Won't fit.
.autoregion
.warning... |
dnl PPC-32 mpn_divrem_2 -- Divide an mpn number by a normalized 2-limb number.
dnl Copyright 2007, 2008, 2012 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser Genera... |
; int bv_stack_pop(bv_stack_t *s)
SECTION code_adt_bv_stack
PUBLIC _bv_stack_pop
EXTERN _b_array_pop_back
defc _bv_stack_pop = _b_array_pop_back
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xaed, %r12
clflush (%r12)
nop
nop
nop
nop
sub %r13, %r13
mov $0x6162636465666768, %rdx
movq %rdx, %xmm0
and $0xffffffffffffffc0, %r12
movaps %xmm0, (%r12)
nop
nop
nop
nop
nop... |
/*-----------------------------------------------------------
Name: fisp
Author: fisper@163.com
Date: 2016.12
Copyright (c). All rights reserved.
------------------------------------------------------------*/
#include "../include/frame.h"
namespace fisp
{
namespace engine
{
/*----------------------------------... |
; A168939: Number of reduced words of length n in Coxeter group on 22 generators S_i with relations (S_i)^2 = (S_i S_j)^22 = I.
; 1,22,462,9702,203742,4278582,89850222,1886854662,39623947902,832102905942,17474161024782,366957381520422,7706105011928862,161828205250506102,3398392310260628142,71366238515473190982
add $0,... |
global long_mode_start
extern kernel_main
section .text
bits 64
long_mode_start:
; load null into all data segment registers
mov ax, 0
mov ss, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
call kernel_main
hlt
|
; Z88 Small C+ Run Time Library
; Long functions
;
; feilipu 10/2021
SECTION code_clib
SECTION code_l_sccz80
PUBLIC l_long_div
EXTERN l_long_div_u_0, l_long_neg_mhl
;quotient = primary / secondary
;enter with secondary (divisor) in dehl, primary (dividend | quotient) on stack
;exit with quotien... |
// Copyright (c) 2017 Victhor S. Sartorio. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root.
#include "var.hpp"
// Default constructor
var::var()
: type(var_type::integer)
{
value.i = 0;
}
// Integer constructors
var::var(int i)
: type(var_type::integer)
{
value.i = ... |
;Xor可以实现快速清零作用
;0False,1True
;0 xor 0 = 0
;0 xor 1 = 1
;1 xor 0 = 1
;1 xor 1 = 1
xor ax,ax
|
; A295077: a(n) = 2*n*(n-1) + 2^n - 1.
; 0,1,7,19,39,71,123,211,367,655,1203,2267,4359,8503,16747,33187,66015,131615,262755,524971,1049335,2097991,4195227,8389619,16778319,33555631,67110163,134219131,268436967,536872535,1073743563,2147485507,4294969279,8589936703,17179871427,34359740747,68719479255,137438956135,2748779... |
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#include "flutter/generated_plugin_registrant.h"
struct _MyApplication {
GtkApplication parent_instance;
char** dart_entrypoint_arguments;
};
G_DEFINE_TYPE(MyApplication, my_application, GT... |
/* scheme/make_sob_vector.asm
* Takes V1, ..., Vn, n, on the stack. Places in R0 the address
* of a newly-allocated pointer to a Scheme vector.
*
* Programmer: Mayer Goldberg, 2010
*/
MAKE_SOB_VECTOR:
PUSH(FP);
MOV(FP, SP);
PUSH(R1);
PUSH(R2);
PUSH(R3);
MOV(R0, FPARG(0));
ADD(R0, IMM(2));
PUSH(R... |
; X : width
; Y : height
; C : current cell mask (01b or 10b)
; 0x1000 ... : cell states
; Set width/height
set X, 0x10 ; width
set Y, 0x08 ; height
set C, 0x1 ; 01b
; Setup a glider in the top left corner
set... |
#pragma once
#include "./BaseInterpolator.hpp"
namespace android::content
{
class Context;
}
namespace android::view::animation
{
class DecelerateInterpolator : public android::view::animation::BaseInterpolator
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit DecelerateInterpo... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r9
push %rbp
push %rbx
push %rcx
push %rdx
lea addresses_D_ht+0x14ccd, %rcx
nop
nop
nop
nop
sub $3276, %r11
movb $0x61, (%rcx)
add %r12, %r12
lea addresses_D_ht+0xc261, %rbp
nop
nop
nop
nop
add %rdx, %rdx
mov (%rbp), %ebx
nop
nop
nop
nop
nop
add %rb... |
; A034472: a(n) = 3^n + 1.
; 2,4,10,28,82,244,730,2188,6562,19684,59050,177148,531442,1594324,4782970,14348908,43046722,129140164,387420490,1162261468,3486784402,10460353204,31381059610,94143178828,282429536482,847288609444,2541865828330,7625597484988,22876792454962,68630377364884,205891132094650,617673396283948,185302... |
%INCLUDE "lib.h"
global _start
section .data
input_prompt db "Please input a hex number: ", 0
out_msg db "The decimal value is: ", 0
endl db 10, 0
section .bss
hex_number resb 41 ; to store hex number
buffer resb 41
section .code
_start:
puts input_prompt ; request an hex number
... |
; Test case:
include_label: equ $
label: ; this was inside of the include
nop
loop:
jr loop
__mdlrenamed__end: |
;------------------------------------------------------------------------------
;
; Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; PeiCoreEntry.nasm
;
; Abstract:
;
; Find and call SecStartup
;
;------------------------... |
#include "IOPool/Streamer/interface/StreamerInputSource.h"
#include "IOPool/Streamer/interface/EventMessage.h"
#include "IOPool/Streamer/interface/InitMessage.h"
#include "IOPool/Streamer/interface/ClassFiller.h"
#include "FWCore/Framework/interface/EventPrincipal.h"
#include "FWCore/Framework/interface/FileBlock.h"
... |
;
; Spectravideo SVI specific routines
; by Stefano Bodrato
; MSX emulation layer
;
; GTSTCK
;
;
; $Id: svi_gtstck.asm,v 1.5 2016-06-16 19:30:25 dom Exp $
;
SECTION code_clib
PUBLIC GTSTCK
EXTERN svi_slstick
EXTERN msxbios
GTSTCK:
; dec a
; jr nc,getkeys
call svi_slstick
stick0:
ld hl,$3253 ; Joysti... |
; A115014: Sum_{i=1..n, gcd(6,i)=1} i.
; 1,1,1,1,6,6,13,13,13,13,24,24,37,37,37,37,54,54,73,73,73,73,96,96,121,121,121,121,150,150,181,181,181,181,216,216,253,253,253,253,294,294,337,337,337,337,384,384,433,433,433,433,486,486,541,541,541,541,600,600,661
mov $3,$0
add $3,1
lpb $3
mov $0,6
sub $3,1
mov $4,7
add... |
format PE64 console
entry _start
section '.idata' data readable import
include "win64a.inc"
library kernel32, 'kernel32.dll', \
msvcrt, 'msvcrt.dll'
import kernel32, ExitProcess, 'ExitProcess'
import msvcrt, printf, 'printf', \
malloc, 'malloc', \
free, 'free'
section '.text' ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Local Memory Manager
FILE: lmErrorCheck.asm
AUTHOR: John Wedgwood, Apr 12, 1989
ROUTINES:
Name Description
---- -----------
INT ECLM... |
; A157371: a(n) = (n+1)*(9-9*n+5*n^2-n^3).
; 9,8,9,0,-55,-216,-567,-1216,-2295,-3960,-6391,-9792,-14391,-20440,-28215,-38016,-50167,-65016,-82935,-104320,-129591,-159192,-193591,-233280,-278775,-330616,-389367,-455616,-529975,-613080,-705591,-808192,-921591,-1046520,-1183735,-1334016,-1498167,-1677016,-1871415,-2082240... |
INCLUDE "config_private.inc"
SECTION rodata_driver
EXTERN __crt_org_vector_table
PUBLIC __sio_init_async_rodata
.__sio_init_async_rodata
defb __siob_init_async_rodata_end-__siob_init_async_rodata_begin
defb __IO_SIOB_CONTROL_REGISTER
.__siob_init_async_rodata_begin
defb __IO_SIO_WR0_CHANNEL... |
###############################################################################
# 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... |
; A112609: Number of representations of n as a sum of three times a triangular number and four times a triangular number.
; 1,0,0,1,1,0,0,1,0,1,0,0,1,1,0,1,0,0,1,0,0,1,1,0,1,0,0,1,0,0,2,0,0,1,1,0,0,0,0,0,1,0,2,1,0,1,0,0,0,2,0,0,0,0,1,0,0,1,1,0,1,0,0,2,0,0,0,1,0,2,1,0,0,0,0,1,0,0,1,0,0,0,0,0,2,1,0,2,1,0,1,0,0,1,0,0,1,0,... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestGradientAndVorticity.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 ... |
// Show a Koala Painter picture
// The (uncompressed) picture is supposed to be concatenated at the end of the output of this code,
// Compile asm -> prg with http://www.theweb.dk/KickAssembler
// java -jar KickAss.jar KoalaShower.asm
.label bitmap = $2000
.label screenRam = bitmap + 8000
.label colorRam = screenRam +... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <policy/feerate.h>
#include <tinyformat.h>
const std::string CURRENCY_... |
// Copyright (c) 2011-2019 The Wflscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/openuridialog.h>
#include <qt/forms/ui_openuridialog.h>
#include <qt/guiutil.h>
#include <qt/sendcoinsrecipien... |
// This file defines an interface for making cuts in
// Mu2eG4SteppingAction and Mu2eG4StackingAction. Example cuts are a
// cut on the G4 volume of a track/step (aka
// "g4SteppingAction.killInTheseVolumes" in G4_module's SimpleConfig),
// or a cut on the energy of a particle ("g4.killLowEKine" in
// SimpleConfig). ... |
LCClassic 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 0x01, 0xd0, 0x03, 0xe2, 0xbb, 0x02, 0xb3, 0x00,
0xd0
db 0x00, 0x7f, 0xfa, 0xff, 0x00... |
;
; SAM Coupe C Library
;
; getk() Read key status
;
; We will corrupt any register
;
; Stefano Bodrato - Mar.2001
;
;
; $Id: getk.asm,v 1.4 2015/01/19 01:33:21 pauloscustodio Exp $
;
PUBLIC getk
.getk
call $0169
ld h,0
jr nz,gotkey
ld l,h
ret
.gotkey
ld l,a
ret
|
; A068397: a(n) = Lucas(n) + (-1)^n + 1.
; 1,5,4,9,11,20,29,49,76,125,199,324,521,845,1364,2209,3571,5780,9349,15129,24476,39605,64079,103684,167761,271445,439204,710649,1149851,1860500,3010349,4870849,7881196,12752045,20633239,33385284,54018521,87403805,141422324,228826129,370248451,599074580,969323029,1568397609,2537... |
//=================================================================================================
/*!
// \file src/mathtest/smatsmatmult/MIbUCa.cpp
// \brief Source file for the MIbUCa sparse matrix/sparse matrix multiplication math test
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This fi... |
; A343041: a(0) = 0 and for any n > 0, a(n) = A343040(a(n-1), n).
; Submitted by Jamie Morken(s2)
; 0,1,3,3,5,5,11,11,11,11,11,11,17,17,17,17,17,17,23,23,23,23,23,23,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,95,95,95,9... |
// Copyright 2018 The Beam Team
//
// 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 in... |
; Third test file
#include "stdmath.asm"
; MMU setup
; Sets a 1 to 1 mapping up to 32
mmu_setup:
#define PAGE_TABLE_SIZE 32
MOV r0 0 ; Page table index
mmu_start:
CMP r0 PAGE_TABLE_SIZE
;< MOV @r0 r0
INC r0
< JMP mmu_start
RETURN
; Peripheral setup
perf_setup:
#define perf_index r0
#defi... |
; A222256: Lexicographically earliest injective sequence of nonnegative integers such that the sum of 6 consecutive terms is always divisible by 6.
; 0,1,2,3,4,8,6,7,14,9,10,20,12,13,26,15,16,32,18,19,38,21,22,44,24,25,50,27,28,56,30,31,62,33,34,68,36,37,74,39,40,80,42,43,86,45,46,92,48,49,98,51,52,104,54,55,110,57,58,... |
#include <pibt_plus.hpp>
#include "gtest/gtest.h"
TEST(PIBT_PLUS, solve)
{
auto P = MAPF_Instance("../tests/instances/example.txt");
auto solver = std::make_unique<PIBT_PLUS>(&P);
solver->solve();
ASSERT_TRUE(solver->succeed());
ASSERT_TRUE(solver->getSolution().validate(&P));
}
|
/*=========================================================================
Program: Visualization Toolkit
Module: vtkDataSetToPiston.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Th... |
ldy #0
sec
lda ({z2}),y
sbc ({z1}),y
pha
iny
lda ({z2}),y
sbc ({z1}),y
sta {z1}+1
pla
sta {z1}
|
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; WriteMm5.Asm
;
; Abstract:
;
; AsmWriteMm5 function
;
; Notes:
;
;-------------------... |
; A099480: Count from 1, repeating 2n five times.
; 1,2,2,2,2,2,3,4,4,4,4,4,5,6,6,6,6,6,7,8,8,8,8,8,9,10,10,10,10,10,11,12,12,12,12,12,13,14,14,14,14,14,15,16,16,16,16,16,17,18,18,18,18,18,19,20,20,20,20,20,21,22,22,22,22,22,23,24,24,24,24,24,25,26,26,26,26,26
add $0,17
mov $2,$0
div $2,2
mod $2,3
sub $0,$2
div $0,3
s... |
TITLE reorder.asm
; Rearranges the values of an array into a different order
; Uses only:
; MOV and XCHG
; Direct offset addressing
INCLUDE Irvine32.inc
.data
clearEAX TEXTEQU <mov eax, 0>
clearEBX TEXTEQU <mov ebx, 0>
arrayD DWORD 32, 51, 12
.data?
.code
main PROC
clearEAX
clearEBX
MOV eax, [arrayD] ; Move ... |
;++
;
; Copyright (c) Petr Benes. All rights reserved.
;
; Module:
;
; vcpu.asm
;
; Abstract:
;
; This module implements VM-Exit stub handler.
;
; Author:
;
; Petr Benes (@PetrBenes) 26-Jul-2018 - Initial version
;
; Environment:
;
; Kernel mode only.
;
;--
INCLUDE ksamd64.inc
INCLUDE ia32/win32/common.inc
... |
; A066872: p^2 + 1 as p runs through the primes.
; Submitted by Jamie Morken(s3)
; 5,10,26,50,122,170,290,362,530,842,962,1370,1682,1850,2210,2810,3482,3722,4490,5042,5330,6242,6890,7922,9410,10202,10610,11450,11882,12770,16130,17162,18770,19322,22202,22802,24650,26570,27890,29930,32042,32762,36482,37250,38810,39602,44... |
; A100828: Expansion of (1+2*x-2*x^3-3*x^2)/((x-1)*(x+1)*(x^2+2*x-1)).
; 1,4,7,18,41,100,239,578,1393,3364,8119,19602,47321,114244,275807,665858,1607521,3880900,9369319,22619538,54608393,131836324,318281039,768398402,1855077841,4478554084,10812186007,26102926098,63018038201,152139002500,367296043199,886731088898,214075... |
Func_f1f77:
ld hl, .WelcomeText
call PrintText
ld a, MONEY_BOX
ld [wTextBoxID], a
call DisplayTextBoxID
call YesNoChoice
ld a, [wCurrentMenuItem]
and a
jp nz, .declined
ld hl, wPlayerMoney
ld a, [hli]
or [hl]
inc hl
or [hl]
jr nz, .has_positive_balance
call SafariZoneEntranceGetLowCostAdmissionText
jr ... |
; A248758: Ceiling(n*Pi^(1/3)).
; 0,2,3,5,6,8,9,11,12,14,15,17,18,20,21,22,24,25,27,28,30,31,33,34,36,37,39,40,42,43,44,46,47,49,50,52,53,55,56,58,59,61,62,63,65,66,68,69,71,72,74,75,77,78,80,81,83,84,85,87,88,90,91,93,94,96
mov $2,36
mov $3,5
mov $4,5
mov $5,$0
mul $5,33
mov $6,$0
lpb $2
lpb $4
div $3,2
add... |
SECTION code_fp_math16
PUBLIC ldexpf16_callee
EXTERN cm16_sccz80_ldexp_callee
defc ldexpf16_callee = cm16_sccz80_ldexp_callee
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _ldexpf16_callee
EXTERN cm16_sdcc_ldexp_callee
defc _ldexpf16_callee = cm16_sdcc_ldexp_callee
ENDIF
|
; A086088: Decimal expansion of the limit of the ratio of consecutive terms in the tetranacci sequence A000078.
; Submitted by Christian Krause
; 1,9,2,7,5,6,1,9,7,5,4,8,2,9,2,5,3,0,4,2,6,1,9,0,5,8,6,1,7,3,6,6,2,2,1,6,8,6,9,8,5,5,4,2,5,5,1,6,3,3,8,4,7,2,7,1,4,6,6,4,7,0,3,8,0,0,9,6,6,6,0,6,2,2,9,7,8,1,5,5,5,9,1,4,9,8,1,... |
.size 8000
.text@50
jp ltimaint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
xor a, a
ldff(0f), a
ldff(ff), a
ld a, f0
ldff(05), a
ldff(06), a
ld a, 04
ldff(ff), a
ld a, 05
ldff(07), a
ei
nop
halt
.text@1000
ltimaint:
nop
.text@1026
ld c, 05
ld a, 10
ldff(05), a
ldff a, (c)
.text@104a
... |
; void bv_priority_queue_clear(bv_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_bv_priority_queue
PUBLIC _bv_priority_queue_clear
EXTERN _ba_priority_queue_clear
defc _bv_priority_queue_clear = _ba_priority_queue_clear
|
; A079295: (D(p)-6)/(12p) where D(p) denotes the denominator of the 2p-th Bernoulli number and p runs through the primes.
; Submitted by Jon Maiga
; 1,1,1,0,1,0,0,0,1,1,0,0,1,0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,1,0,0,1... |
; Lower case character table/conversion V2.01 1986 Tony Tebby QJUMP
section cv
xdef cv_locas
xdef cv_lctab
;+++
; Convert character to lower case
;
; Registers:
; Entry Exit
; D1.w character (MSB ignored) lower-case equivalent
;---
cv_locas
and.w #$00ff,d1 ; ensure upper byte clear
move.b cv_... |
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR NIRVANA+ ENGINE - by Einar Saukas
;
; See "nirvana+.h" for further details
; ----------------------------------------------------------------
; void NIRVANAM_drawW(unsigned int tile, unsigned int lin, unsigned int col)
SE... |
//
// Created by Victor Debray on 2018-12-28.
//
#ifndef SERVER_HPP_
# define SERVER_HPP_
# include <string>
# include <thread>
# include <atomic>
# include <memory>
# include <cstdint>
# include <unordered_map>
# include "ServerNetwork.hpp"
# include "MessagePacket.hpp"
class ServerNetwork;
class Server {
privat... |
; A068504: Highest power of 2 dividing prime(n)+1.
; 1,4,2,8,4,2,2,4,8,2,32,2,2,4,16,2,4,2,4,8,2,16,4,2,2,2,8,4,2,2,128,4,2,4,2,8,2,4,8,2,4,2,64,2,2,8,4,32,4,2,2,16,2,4,2,8,2,16,2,2,4,2,4,8,2,2,4,2,4,2,2,8,16,2,4,128,2,2,2,2,4,2,16,2,8,4,2,2,2,16,4,32,8,4,4,8,2,2,4,2
seq $0,129070 ; Numbers n such that (n-5)/4 is prim... |
//
// PlistCpp Property List (plist) serialization and parsing library.
//
// https://github.com/animetrics/PlistCpp
//
// Copyright (c) 2011 Animetrics Inc. (marc@animetrics.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated docume... |
; void *p_forward_list_next_fastcall(void *item)
SECTION code_clib
SECTION code_adt_p_forward_list
PUBLIC _p_forward_list_next_fastcall
EXTERN asm_p_forward_list_next
defc _p_forward_list_next_fastcall = asm_p_forward_list_next
|
; A313696: Coordination sequence Gal.6.327.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,5,10,15,19,24,30,35,39,44,49,54,59,64,69,73,78,84,89,93,98,103,108,113,118,123,127,132,138,143,147,152,157,162,167,172,177,181,186,192,197... |
; A121839: Decimal expansion of Sum_{k>=1} 1/C(k), where C(k) is a Catalan Number (A000108).
; Submitted by Jon Maiga
; 1,8,0,6,1,3,3,0,5,0,7,7,0,7,6,3,4,8,9,1,5,2,9,2,3,6,7,0,0,6,3,1,8,0,3,2,5,4,5,9,5,8,4,9,9,9,1,5,2,3,2,9,1,4,4,6,9,7,7,2,6,6,3,7,9,5,0,2,7,6,9,6,9,3,8,9,4,9,0,6,1,4,9,7,0,7,2,2,2,1,6,9,8,3,1,3,7,8,5,2
... |
//===-- PPCInstrInfo.cpp - PowerPC Instruction Information ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
section .text vstart=0x00042000
bits 64
%include "macro.asm"
entry:
mov rsp, 0x00080000
call memory.init
jc error.notenoughmemory
call descriptor_tables.init
call console_out.init
mov rax, msg.initializing
call console_out.prints
call interrupts.init
call objects.init
call device.init
ldid a... |
// Concord
//
// Copyright (c) 2020-2021 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in
// compliance with the Apache 2.0 License.
//
// This product may include a number of subcomponents with separate copyrigh... |
/*******************************************************************************
* Piotr's Computer Vision Matlab Toolbox Version 3.00
* Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
* Licensed under the Simplified BSD License [see external/bsd.txt]
******************************************************... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
/**
* @author Peter Boros
* @date 2004/08/20
* @version $Id$
* @file segmenter.cpp
* @brief Query segmenter based on %FSA (%Finite %State %Automaton) (implementation)
*
*/
#ifdef HAVE_CONFIG_H
#incl... |
; A070426: a(n) = 7^n mod 44.
; 1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,7,5,35,25,43,37,39,9,19,1,... |
include xlibproc.inc
include Wintab.inc
PROC_TEMPLATE WTExtGet, 3, Wintab, -, 63
|
//Copyright (c) 2013 Singapore-MIT Alliance for Research and Technology
//Licensed under the terms of the MIT License, as described in the file:
// license.txt (http://opensource.org/licenses/MIT)
#include "BusStopAgent.hpp"
#include "message/ST_Message.hpp"
#include "entities/PT_Statistics.hpp"
#include "conf/Con... |
; *******************************************************************************************
; *******************************************************************************************
;
; Name : basic.asm
; Purpose : Basic Interpreter (Main)
; Date : 25th July 2019
; Author : Paul Robson (paul@robsons.org.u... |
dnl mpn_xor_n
dnl Copyright 2009 Jason Moxham
dnl This file is part of the MPIR Library.
dnl The MPIR Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by the Free Software Foundation; either version 2.1 of the Licen... |
; A157216: Decimal expansion of (18 + 5*sqrt(2))/(18 - 5*sqrt(2)).
; Submitted by Jon Maiga
; 2,2,9,4,0,0,8,9,0,9,5,8,8,1,6,4,6,3,0,5,9,9,6,4,9,5,2,6,8,5,3,0,8,6,3,2,8,9,8,7,3,7,5,6,8,4,5,5,4,1,9,9,4,6,4,1,3,0,6,6,5,5,2,1,3,0,7,7,8,0,4,6,0,3,0,3,5,7,3,9,6,7,1,2,7,9,9,1,8,1,0,8,7,2,1,7,3,2,9,5
mov $1,2
mov $2,2
mov $3,... |
TITLE OSCMD - Operating System Command line access
;***
;OSCMD.ASM - Operating System command line access
;
; Copyright <C> 1987, Microsoft Corporation
;
;Purpose:
; This module contains routines to access and manipulate the
; command line. This is used by statements such as OPEN "PIPE:",
; RUN/CHAIN/SHELL/COMMAND$... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2016 Intel Corporation All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; * Redistributions of so... |
; A006370: The Collatz or 3x+1 map: a(n) = n/2 if n is even, 3n + 1 if n is odd.
; 0,4,1,10,2,16,3,22,4,28,5,34,6,40,7,46,8,52,9,58,10,64,11,70,12,76,13,82,14,88,15,94,16,100,17,106,18,112,19,118,20,124,21,130,22,136,23,142,24,148,25,154,26,160,27,166,28,172,29,178,30,184,31,190,32,196,33,202,34,208,35,214,36,220,37,22... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.